/* RESPONSIVE DESIGN - Mobile-First Approach for SMUGGLERS */

/* Base mobile-first styles (320px and up) */
:root {
  --mobile-padding: 16px;
  --tablet-padding: 24px;
  --desktop-padding: 32px;
  --mobile-font-size: 16px;
  --tablet-font-size: 18px;
  --desktop-font-size: 20px;
}

/* Typography scaling */
html {
  font-size: var(--mobile-font-size);
}

@media (min-width: 768px) {
  html {
    font-size: var(--tablet-font-size);
  }
}

@media (min-width: 1200px) {
  html {
    font-size: var(--desktop-font-size);
  }
}

/* Layout containers */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--mobile-padding);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--tablet-padding);
  }
}

@media (min-width: 1200px) {
  .container {
    padding: 0 var(--desktop-padding);
  }
}

/* Grid system */
.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (min-width: 1200px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

/* Navigation */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #39ff14;
  padding: 12px var(--mobile-padding);
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.25rem;
  font-weight: bold;
  color: #39ff14;
  text-decoration: none;
}

.nav-links {
  display: none;
  gap: 2rem;
}

.nav-links.active {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.95);
  padding: 1rem var(--mobile-padding);
  border-bottom: 1px solid #39ff14;
}

.mobile-menu-toggle {
  display: block;
  background: none;
  border: 1px solid #39ff14;
  color: #39ff14;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
    position: static;
    flex-direction: row;
    background: transparent;
    padding: 0;
    border-bottom: none;
  }

  .mobile-menu-toggle {
    display: none;
  }
}

.nav-link {
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  font-size: 0.875rem;
}

.nav-link:hover,
.nav-link.active {
  color: #39ff14;
  background: rgba(57, 255, 20, 0.1);
}

/* Hero section */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px var(--mobile-padding) 40px;
  background: linear-gradient(135deg, #000 0%, #0a0a0a 50%, #000 100%);
}

.hero-title {
  font-size: clamp(2rem, 10vw, 4rem);
  font-weight: bold;
  color: #39ff14;
  text-shadow: 0 0 30px #39ff14;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: clamp(0.875rem, 4vw, 1.25rem);
  color: #ccc;
  max-width: 500px;
  margin-bottom: 2rem;
  line-height: 1.4;
}

.cta-button {
  background: linear-gradient(135deg, #39ff14 0%, #00ff88 100%);
  color: #000;
  border: none;
  padding: 16px 32px;
  font-size: clamp(1rem, 3vw, 1.25rem);
  font-weight: bold;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 20px rgba(57, 255, 20, 0.3);
  min-width: 200px;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(57, 255, 20, 0.5);
}

@media (min-width: 768px) {
  .hero-section {
    padding: 100px var(--tablet-padding) 60px;
  }

  .cta-button {
    padding: 18px 40px;
    min-width: 250px;
  }
}

/* Game interface */
.game-interface {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 20px var(--mobile-padding);
  min-height: 100vh;
}

.sidebar {
  order: 2;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid #39ff14;
  border-radius: 8px;
  padding: 20px;
}

.main-content {
  order: 1;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid #39ff14;
  border-radius: 8px;
  padding: 20px;
  min-height: 60vh;
}

@media (min-width: 1024px) {
  .game-interface {
    grid-template-columns: 300px 1fr;
    gap: 30px;
    padding: 30px var(--desktop-padding);
  }

  .sidebar {
    order: 1;
  }

  .main-content {
    order: 2;
  }
}

/* Character creation */
.character-creation {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px var(--mobile-padding);
}

.creation-step {
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid #39ff14;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
}

.step-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.step-number {
  width: 40px;
  height: 40px;
  background: #39ff14;
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-right: 16px;
}

.step-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: #39ff14;
  margin: 0;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  background: rgba(57, 255, 20, 0.05);
  border: 1px solid #39ff14;
  border-radius: 8px;
}

.stat-label {
  font-size: 0.875rem;
  color: #ccc;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-value {
  font-size: 2rem;
  font-weight: bold;
  color: #39ff14;
}

@media (min-width: 768px) {
  .character-creation {
    padding: 40px var(--tablet-padding);
  }

  .stat-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .stat-item {
    padding: 20px;
  }
}

/* Mission board */
.mission-board {
  display: grid;
  gap: 16px;
}

.mission-card {
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid #39ff14;
  border-radius: 8px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mission-card:hover {
  border-color: #ffff88;
  box-shadow: 0 0 20px rgba(57, 255, 20, 0.3);
  transform: translateY(-2px);
}

.mission-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.mission-title {
  font-size: 1.125rem;
  font-weight: bold;
  color: #39ff14;
  margin: 0;
}

.mission-difficulty {
  color: #ffff88;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 4px 8px;
  border: 1px solid #ffff88;
  border-radius: 12px;
}

.mission-description {
  color: #ccc;
  margin-bottom: 16px;
  line-height: 1.5;
}

.mission-rewards {
  display: flex;
  gap: 16px;
  font-size: 0.875rem;
}

.reward-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

@media (min-width: 768px) {
  .mission-board {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
  }

  .mission-card {
    padding: 24px;
  }
}

/* Modal dialogs */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: var(--mobile-padding);
}

.modal-content {
  background: #000;
  border: 1px solid #39ff14;
  border-radius: 8px;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #333;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: #39ff14;
  margin: 0;
}

.modal-close {
  background: none;
  border: 1px solid #39ff14;
  color: #39ff14;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.modal-body {
  padding: 24px;
}

@media (min-width: 768px) {
  .modal-content {
    max-width: 600px;
    max-height: 80vh;
  }

  .modal {
    padding: var(--tablet-padding);
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 0.875rem;
  min-height: 44px; /* Touch target size */
}

.btn-primary {
  background: #39ff14;
  color: #000;
}

.btn-primary:hover {
  background: #00ff88;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(57, 255, 20, 0.3);
}

.btn-secondary {
  background: rgba(57, 255, 20, 0.1);
  color: #39ff14;
  border: 1px solid #39ff14;
}

.btn-secondary:hover {
  background: rgba(57, 255, 20, 0.2);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
  min-height: 48px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

@media (min-width: 768px) {
  .btn {
    font-size: 0.875rem;
  }

  .btn-lg {
    padding: 18px 36px;
    font-size: 1.125rem;
  }
}

/* Form elements */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  color: #ccc;
  margin-bottom: 8px;
  font-size: 0.875rem;
  font-weight: 500;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #333;
  border-radius: 6px;
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s ease;
  min-height: 44px; /* Touch target */
}

.form-input:focus {
  outline: none;
  border-color: #39ff14;
  box-shadow: 0 0 0 2px rgba(57, 255, 20, 0.2);
}

.form-input::placeholder {
  color: #666;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 16px 16px;
  padding-right: 40px;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Touch targets */
@media (pointer: coarse) {
  .btn,
  .nav-link,
  .mission-card,
  .form-input {
    min-height: 44px;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .btn-primary {
    background: #fff;
    color: #000;
    border: 2px solid #000;
  }

  .btn-secondary {
    border: 2px solid #fff;
  }
}

/* Reduced transparency */
@media (prefers-reduced-transparency: reduce) {
  .modal,
  .main-nav {
    backdrop-filter: none;
    background: rgba(0, 0, 0, 0.95);
  }
}

/* VOICE CHAT STYLES */

/* Voice Chat UI Container */
.voice-chat-ui {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.9);
  border: 1px solid #39ff14;
  border-radius: 8px;
  padding: 12px;
  z-index: 1000;
  min-width: 200px;
  backdrop-filter: blur(10px);
}

.voice-controls {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.voice-btn {
  background: rgba(57, 255, 20, 0.1);
  border: 1px solid #39ff14;
  color: #39ff14;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.3s ease;
}

.voice-btn:hover {
  background: rgba(57, 255, 20, 0.2);
  transform: scale(1.1);
}

.voice-btn.active {
  background: rgba(57, 255, 20, 0.3);
  box-shadow: 0 0 10px rgba(57, 255, 20, 0.5);
}

.voice-btn.muted {
  background: rgba(255, 100, 100, 0.1);
  border-color: #ff6464;
  color: #ff6464;
}

.voice-participants {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 150px;
  overflow-y: auto;
}

.voice-participant {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  font-size: 0.875rem;
}

.participant-avatar {
  width: 24px;
  height: 24px;
  background: #39ff14;
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 12px;
}

.participant-info {
  flex: 1;
}

.participant-name {
  color: #fff;
  font-weight: 500;
}

.participant-status {
  color: #39ff14;
  font-size: 0.75rem;
}

.participant-status.speaking {
  color: #ffff88;
}

.voice-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: rgba(57, 255, 20, 0.1);
  border-radius: 4px;
  margin-top: 8px;
}

.voice-level-bars {
  display: flex;
  align-items: end;
  gap: 2px;
  height: 16px;
}

.voice-bar {
  width: 3px;
  background: #39ff14;
  border-radius: 1px;
  transition: height 0.1s ease;
}

.voice-status {
  color: #39ff14;
  font-size: 0.75rem;
  font-weight: 500;
}

.voice-settings-panel {
  position: absolute;
  bottom: 100%;
  right: 0;
  background: rgba(0, 0, 0, 0.95);
  border: 1px solid #39ff14;
  border-radius: 8px;
  padding: 16px;
  min-width: 250px;
  margin-bottom: 8px;
}

.voice-settings-panel h4 {
  color: #39ff14;
  margin: 0 0 16px 0;
  font-size: 1rem;
}

.setting-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.setting-item label {
  color: #ccc;
  font-size: 0.875rem;
  flex: 1;
  cursor: pointer;
}

.setting-item input[type="range"] {
  flex: 2;
}

.setting-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

.setting-item span {
  color: #39ff14;
  font-size: 0.75rem;
  min-width: 40px;
  text-align: right;
}

/* MULTIPLAYER STYLES */

.multiplayer-loading {
  text-align: center;
  padding: 40px 20px;
}

.multiplayer-loading h3 {
  color: #39ff14;
  margin-bottom: 16px;
}

.multiplayer-loading p {
  color: #ccc;
  margin-bottom: 8px;
  line-height: 1.5;
}

.loading-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.loading-dots span {
  width: 8px;
  height: 8px;
  background: #39ff14;
  border-radius: 50%;
  animation: loadingDot 1.4s ease-in-out infinite;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes loadingDot {
  0%, 80%, 100% {
    transform: scale(0);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

.multiplayer-error {
  text-align: center;
  padding: 40px 20px;
}

.multiplayer-error h3 {
  color: #ff6464;
  margin-bottom: 16px;
}

.multiplayer-error p {
  color: #ccc;
  margin-bottom: 16px;
  line-height: 1.5;
}

.multiplayer-error button {
  background: #39ff14;
  color: #000;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

.multiplayer-error button:hover {
  background: #00ff88;
}

/* Room controls layout */
.room-controls-left,
.room-controls-right {
  display: flex;
  gap: 12px;
  align-items: center;
}

.room-controls-right {
  margin-left: auto;
}

.voice-toggle.active {
  background: rgba(57, 255, 20, 0.2);
  border-color: #ffff88;
  color: #ffff88;
}

/* Mobile responsiveness for voice chat */
@media (max-width: 768px) {
  .voice-chat-ui {
    bottom: 10px;
    right: 10px;
    min-width: 180px;
    padding: 8px;
  }

  .voice-controls {
    gap: 6px;
    margin-bottom: 8px;
  }

  .voice-btn {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .voice-settings-panel {
    min-width: 220px;
    padding: 12px;
  }

  .setting-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .setting-item input[type="range"] {
    width: 100%;
  }
}

/* COMBAT UI IMPROVEMENTS */

.combat-ui {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  display: flex;
  flex-direction: column;
}

.combat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #39ff14;
  background: rgba(0, 0, 0, 0.8);
}

.combat-info h2 {
  color: #39ff14;
  margin: 0;
}

.combat-stats {
  display: flex;
  gap: 20px;
  color: #ccc;
}

.combat-field {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
}

.combatants {
  display: flex;
  align-items: center;
  gap: 60px;
}

.combatant {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 30px;
  background: rgba(0, 0, 0, 0.8);
  border: 2px solid #333;
  border-radius: 12px;
  min-width: 200px;
}

.combatant.local-player {
  border-color: #39ff14;
}

.combatant-avatar {
  width: 80px;
  height: 80px;
  background: #333;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.combatant-info {
  text-align: center;
}

.combatant-info h3 {
  color: #fff;
  margin: 0 0 16px 0;
}

.health-bar {
  position: relative;
  width: 150px;
  height: 20px;
  background: #333;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 8px;
}

.health-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff6464 0%, #39ff14 100%);
  transition: width 0.3s ease;
}

.health-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 0.75rem;
  font-weight: bold;
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.8);
}

.wounds {
  color: #ff6464;
  font-size: 0.875rem;
  font-weight: 500;
}

.combat-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.combat-btn {
  padding: 12px 20px;
  background: rgba(57, 255, 20, 0.1);
  border: 1px solid #39ff14;
  color: #39ff14;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.combat-btn:hover {
  background: rgba(57, 255, 20, 0.2);
  transform: translateY(-1px);
}

.combat-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.combat-log {
  padding: 20px;
  background: rgba(0, 0, 0, 0.8);
  border-top: 1px solid #333;
}

.combat-log h4 {
  color: #39ff14;
  margin: 0 0 16px 0;
}

.combat-log-entries {
  max-height: 150px;
  overflow-y: auto;
  font-family: monospace;
  font-size: 0.875rem;
}

.combat-log-entry {
  color: #ccc;
  margin-bottom: 4px;
  padding: 2px 0;
}

.combat-controls {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.8);
  border-top: 1px solid #333;
}

/* Mobile combat adjustments */
@media (max-width: 768px) {
  .combat-header {
    padding: 16px;
    flex-direction: column;
    gap: 16px;
  }

  .combat-stats {
    justify-content: center;
  }

  .combat-field {
    padding: 20px;
  }

  .combatants {
    flex-direction: column;
    gap: 30px;
  }

  .combatant {
    min-width: 160px;
    padding: 20px;
  }

  .combat-actions {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .combat-controls {
    flex-direction: column;
    gap: 12px;
  }

  .combat-log {
    padding: 16px;
  }

  .combat-log-entries {
    max-height: 100px;
  }
}

/* MATCHMAKING UI */

.matchmaking-header {
  text-align: center;
  margin-bottom: 30px;
}

.matchmaking-header h2 {
  color: #39ff14;
  margin-bottom: 8px;
}

.matchmaking-header p {
  color: #ccc;
  font-size: 1.1rem;
}

.matchmaking-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.option-card {
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid #39ff14;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.option-card:hover {
  border-color: #ffff88;
  box-shadow: 0 0 20px rgba(57, 255, 20, 0.2);
  transform: translateY(-2px);
}

.option-card h3 {
  color: #39ff14;
  margin: 0 0 12px 0;
  font-size: 1.25rem;
}

.option-card p {
  color: #ccc;
  margin: 0 0 20px 0;
  line-height: 1.5;
}

.find-match-btn,
.create-room-btn {
  background: linear-gradient(135deg, #39ff14 0%, #00ff88 100%);
  color: #000;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.find-match-btn:hover,
.create-room-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(57, 255, 20, 0.4);
}

.matchmaking-status {
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid #39ff14;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  margin-bottom: 30px;
}

.status-text {
  color: #39ff14;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.cancel-matchmaking-btn {
  background: rgba(255, 100, 100, 0.1);
  border: 1px solid #ff6464;
  color: #ff6464;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
}

.cancel-matchmaking-btn:hover {
  background: rgba(255, 100, 100, 0.2);
}

.active-rooms {
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid #333;
  border-radius: 8px;
  padding: 20px;
}

.active-rooms h3 {
  color: #39ff14;
  margin: 0 0 16px 0;
}

.room-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  margin-bottom: 8px;
}

.room-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.room-name {
  color: #fff;
  font-weight: 500;
}

.room-players {
  color: #ccc;
  font-size: 0.875rem;
}

.join-room-btn {
  background: #39ff14;
  color: #000;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.875rem;
}

.join-room-btn:hover {
  background: #00ff88;
}

/* ROOM UI */

.room-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #333;
}

.back-btn {
  background: rgba(57, 255, 20, 0.1);
  border: 1px solid #39ff14;
  color: #39ff14;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
}

.back-btn:hover {
  background: rgba(57, 255, 20, 0.2);
}

.room-title {
  color: #39ff14;
  font-size: 1.5rem;
  margin: 0;
}

.room-status {
  color: #ffff88;
  font-size: 1rem;
}

.room-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}

.players-section h3 {
  color: #39ff14;
  margin: 0 0 20px 0;
}

.players-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.player-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.player-avatar {
  width: 48px;
  height: 48px;
  background: #39ff14;
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.25rem;
}

.player-info {
  flex: 1;
}

.player-name {
  color: #fff;
  font-weight: 500;
  margin-bottom: 4px;
}

.player-status {
  font-size: 0.875rem;
  padding: 4px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.player-status.ready {
  background: rgba(57, 255, 20, 0.2);
  color: #39ff14;
}

.player-status.waiting {
  background: rgba(255, 255, 255, 0.1);
  color: #ccc;
}

.kick-btn {
  background: rgba(255, 100, 100, 0.1);
  border: 1px solid #ff6464;
  color: #ff6464;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.75rem;
}

.kick-btn:hover {
  background: rgba(255, 100, 100, 0.2);
}

.room-settings {
  margin-bottom: 30px;
}

.game-settings h4 {
  color: #39ff14;
  margin: 0 0 16px 0;
}

.setting-item {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.setting-item label {
  color: #ccc;
  min-width: 80px;
  font-size: 0.875rem;
}

.setting-item select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #333;
  color: #fff;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 0.875rem;
}

.setting-item select:focus {
  outline: none;
  border-color: #39ff14;
}

.chat-section h4 {
  color: #39ff14;
  margin: 0 0 16px 0;
}

.chat-messages {
  height: 200px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid #333;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 12px;
}

.chat-message {
  margin-bottom: 8px;
  line-height: 1.4;
}

.chat-sender {
  color: #39ff14;
  font-weight: 500;
}

.chat-text {
  color: #ccc;
}

.chat-input {
  display: flex;
  gap: 8px;
}

.chat-input input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #333;
  color: #fff;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 0.875rem;
}

.chat-input input:focus {
  outline: none;
  border-color: #39ff14;
}

.chat-input button {
  background: #39ff14;
  color: #000;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
}

.chat-input button:hover {
  background: #00ff88;
}

/* Mobile room adjustments */
@media (max-width: 1024px) {
  .room-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .room-header {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* Print styles */
@media print {
  .modal,
  .mobile-menu-toggle,
  .cta-button {
    display: none !important;
  }

  * {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  .hero-title,
  .hero-subtitle {
    color: black !important;
    text-shadow: none !important;
  }
}