/* Estilos del juego FPS Three.js */

body {
  margin: 0;
  overflow: hidden;
  font-family: 'Comic Sans MS', 'Nunito', 'Poppins', Arial, sans-serif;
}

canvas {
  display: block;
}

/* ==================== LOBBY STYLES ==================== */

#lobby-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #E0F4FF 0%, #B8E4F0 50%, #D4F1F9 100%);
  z-index: 10000;
  display: flex;
  transition: opacity 0.4s ease;
  overflow: hidden;
}

#lobby-screen::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(135, 206, 250, 0.4) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(176, 224, 230, 0.4) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(173, 216, 230, 0.3) 0%, transparent 60%);
  pointer-events: none;
}

/* Efecto minimalista - burbujas flotantes */
#lobby-screen::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle 8px at 15% 25%, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.8) 50%, transparent 50%),
    radial-gradient(circle 12px at 85% 15%, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.7) 50%, transparent 50%),
    radial-gradient(circle 6px at 75% 75%, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0.6) 50%, transparent 50%),
    radial-gradient(circle 10px at 25% 80%, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.7) 50%, transparent 50%),
    radial-gradient(circle 5px at 50% 50%, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.5) 50%, transparent 50%),
    radial-gradient(circle 7px at 90% 60%, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0.6) 50%, transparent 50%),
    radial-gradient(circle 9px at 10% 60%, rgba(255,255,255,0.65) 0%, rgba(255,255,255,0.65) 50%, transparent 50%),
    radial-gradient(circle 4px at 60% 20%, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.5) 50%, transparent 50%);
  animation: floatBubbles 12s ease-in-out infinite;
  pointer-events: none;
}

@keyframes floatBubbles {
  0%, 100% { 
    transform: translateY(0) translateX(0); 
  }
  25% {
    transform: translateY(-15px) translateX(8px);
  }
  50% { 
    transform: translateY(-25px) translateX(0);
  }
  75% {
    transform: translateY(-15px) translateX(-8px);
  }
}

#lobby-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

#lobby-screen.hidden-immediate {
  display: none;
}

/* Pantallas del lobby */
.lobby-pantalla {
  display: none;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  position: relative;
  z-index: 1;
}

.lobby-pantalla.active {
  display: flex;
  opacity: 1;
  transform: translateY(0);
  animation: fadeSlideIn 0.3s ease forwards;
}

.lobby-pantalla.exiting {
  animation: fadeSlideOut 0.3s ease forwards;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeSlideOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

/* Layout principal del lobby - pantalla completa */
.lobby-layout {
  display: grid;
  grid-template-columns: 280px 1fr 320px;
  grid-template-rows: auto 1fr auto;
  width: 100%;
  height: 100%;
  padding: 30px;
  box-sizing: border-box;
  gap: 30px;
}

/* Panel lateral izquierdo */
.lobby-sidebar-left {
  grid-row: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Panel central */
.lobby-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

/* Panel lateral derecho */
.lobby-sidebar-right {
  grid-row: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Contenedor de tarjeta para paneles */
.lobby-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}

.lobby-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(126, 200, 227, 0.2);
}

.lobby-card-title {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 0 0 16px 0;
  font-weight: 600;
}

/* Contenedor principal del lobby - para pantallas secundarias */
.lobby-container {
  background: linear-gradient(135deg, #F8FCFF 0%, #EDF7FC 100%);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 8px 0 rgba(91, 163, 192, 0.35), 0 15px 40px rgba(126, 200, 227, 0.25);
  border: 4px solid #9DCFE8;
  width: 100%;
  max-width: 480px;
  box-sizing: border-box;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lobby-container:hover {
  box-shadow: 0 10px 0 rgba(91, 163, 192, 0.4), 0 20px 50px rgba(126, 200, 227, 0.3);
}

/* Contenedor centrado para pantallas secundarias */
.lobby-pantalla-centrada {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 30px;
  box-sizing: border-box;
}

/* Título del lobby */
.lobby-titulo {
  color: white;
  font-size: 72px;
  font-weight: 900;
  text-align: center;
  margin: 0;
  letter-spacing: 8px;
  text-shadow: 
    3px 3px 0 #5BA3C0,
    6px 6px 0 #3D8EB0,
    0 0 30px rgba(126, 200, 227, 0.6);
}

.lobby-titulo-sub {
  color: #6A9BB5;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 6px;
  margin-top: 10px;
  text-align: center;
  font-weight: 600;
}

.lobby-subtitulo {
  color: #2C5F7C;
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  letter-spacing: 1px;
}

/* Header con botón volver */
.lobby-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 3px solid #E8E8E8;
  background: transparent;
  margin: -40px -40px 30px -40px;
  padding: 20px 40px;
  border-radius: 24px 24px 0 0;
}

.btn-volver {
  background: white;
  border: 3px solid #E8E8E8;
  border-radius: 12px;
  padding: 10px 18px;
  color: #2C5F7C;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 3px 0 #D0D0D0;
}

.btn-volver:hover {
  background: #F0FAFF;
  transform: translateX(-3px) translateY(-2px);
  border-color: #7EC8E3;
  box-shadow: 0 5px 0 #5BA3C0;
}

.btn-volver:active {
  transform: translateX(-1px) translateY(2px);
  box-shadow: 0 1px 0 #D0D0D0;
}

/* Secciones del lobby */
.lobby-seccion {
  margin-bottom: 25px;
}

.lobby-seccion label {
  display: block;
  color: #6A9BB5;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

/* Input grupo (input + botón) */
.input-grupo {
  display: flex;
  gap: 10px;
}

.input-grupo input {
  flex: 1;
}

/* Inputs del lobby */
#lobby-screen input[type="text"],
#lobby-screen input[type="password"] {
  width: 100%;
  padding: 14px 18px;
  background: white;
  border: 3px solid #E8E8E8;
  border-radius: 14px;
  color: #2C5F7C;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-sizing: border-box;
  box-shadow: 0 3px 0 #D0D0D0;
}

#lobby-screen input[type="text"]:focus,
#lobby-screen input[type="password"]:focus {
  outline: none;
  border-color: #7EC8E3;
  background: #F0FAFF;
  box-shadow: 0 3px 0 #5BA3C0, 0 0 0 3px rgba(126, 200, 227, 0.2);
}

#lobby-screen input[type="text"]::placeholder,
#lobby-screen input[type="password"]::placeholder {
  color: #9DCFE8;
}

#lobby-screen input[type="text"]:focus::placeholder,
#lobby-screen input[type="password"]:focus::placeholder {
  color: #7FB3D5;
}

/* Botón de icono (dado aleatorio) */
.btn-icono {
  background: white;
  border: 3px solid #E8E8E8;
  border-radius: 12px;
  width: 50px;
  height: 50px;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 0 #D0D0D0;
}

.btn-icono:hover {
  background: #F0FAFF;
  border-color: #7EC8E3;
  transform: scale(1.08) rotate(5deg) translateY(-2px);
  box-shadow: 0 5px 0 #5BA3C0;
}

.btn-icono:active {
  transform: scale(0.95) rotate(0deg) translateY(2px);
  box-shadow: 0 1px 0 #D0D0D0;
}

/* Mensaje de error */
.error-mensaje {
  display: block;
  color: #E74C3C;
  font-size: 13px;
  font-weight: 600;
  margin-top: 8px;
  min-height: 18px;
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.error-mensaje:not(:empty) {
  opacity: 1;
  transform: translateY(0);
  animation: errorShake 0.4s ease;
}

@keyframes errorShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}

.error-mensaje.centro {
  text-align: center;
  margin-top: 15px;
}

/* Estadísticas mini del lobby */
.lobby-stats {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

.stat-mini {
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  padding: 20px 28px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
  min-width: 100px;
}

.stat-mini:hover {
  transform: translateY(-4px);
  background: rgba(126, 200, 227, 0.15);
  border-color: rgba(126, 200, 227, 0.3);
}

.stat-mini-valor {
  display: block;
  color: #5BA3C0;
  font-size: 36px;
  font-weight: 700;
  text-shadow: 0 0 20px rgba(91, 163, 192, 0.4);
  transition: all 0.25s ease;
  line-height: 1.2;
}

.stat-mini:hover .stat-mini-valor {
  transform: scale(1.08);
}

.stat-mini-label {
  display: block;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 6px;
  font-weight: 500;
}

/* Stats grandes para sidebar */
.lobby-stats-vertical {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 2px solid #E8E8E8;
}

.stat-row:last-child {
  border-bottom: none;
}

.stat-row-label {
  color: #6A9BB5;
  font-size: 14px;
  font-weight: 600;
}

.stat-row-value {
  color: #5BA3C0;
  font-size: 18px;
  font-weight: 700;
}

/* Botones del lobby */
.lobby-botones {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 25px;
}

.lobby-btn {
  display: flex;
  align-items: center;
  padding: 18px 22px;
  background: white;
  border: 3px solid #E8E8E8;
  border-radius: 16px;
  color: #2C5F7C;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-align: left;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 0 #D0D0D0;
}

.lobby-btn:hover {
  transform: translateY(-3px);
  background: #F0FAFF;
  border-color: #7EC8E3;
  box-shadow: 0 7px 0 #5BA3C0, 0 10px 20px rgba(126, 200, 227, 0.3);
}

.lobby-btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #D0D0D0;
}

.lobby-btn.btn-primario {
  background: linear-gradient(135deg, #D4F1F9 0%, #B8E4F0 100%);
  border-color: #9DCFE8;
  box-shadow: 0 4px 0 #7EC8E3;
}

.lobby-btn.btn-primario:hover {
  background: linear-gradient(135deg, #B8E4F0 0%, #D4F1F9 100%);
  box-shadow: 0 7px 0 #7EC8E3, 0 10px 20px rgba(126, 200, 227, 0.3);
}

.lobby-btn.btn-secundario {
  background: white;
  border-color: #E8E8E8;
}

.lobby-btn.btn-secundario:hover {
  background: #F0FAFF;
  border-color: #7EC8E3;
}

.lobby-btn.btn-full {
  justify-content: center;
  text-align: center;
}

.btn-icono-grande {
  font-size: 28px;
  margin-right: 18px;
  width: 40px;
  text-align: center;
  transition: transform 0.3s ease;
}

.lobby-btn:hover .btn-icono-grande {
  transform: scale(1.15);
}

.btn-texto {
  display: flex;
  flex-direction: column;
}

.btn-titulo {
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 3px;
  color: #2C5F7C;
}

.btn-desc {
  font-size: 13px;
  color: #6A9BB5;
  font-weight: 600;
  transition: color 0.25s ease;
}

.lobby-btn:hover .btn-desc {
  color: #5BA3C0;
}

/* Botón de configuración pequeño */
.lobby-btn-config {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  background: white;
  border: 3px solid #E8E8E8;
  border-radius: 10px;
  color: #6A9BB5;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 3px 0 #D0D0D0;
  transition: all 0.3s ease;
}

.lobby-btn-config:hover {
  background: rgba(255, 255, 255, 0.05);
  color: white;
  border-color: rgba(126, 200, 227, 0.3);
}

.lobby-btn-config:active {
  transform: scale(0.98);
}

.lobby-btn-config:hover span:first-child {
  transform: rotate(90deg);
}

.lobby-btn-config span {
  transition: transform 0.3s ease;
}

/* Matchmaking spinner - Pantalla de búsqueda de partida */
.matchmaking-contenido {
  text-align: center;
  padding: 50px 20px;
  background: rgba(126, 200, 227, 0.08);
  border-radius: 16px;
  margin: 10px 0;
  border: 1px solid rgba(126, 200, 227, 0.15);
}

.matchmaking-spinner {
  width: 70px;
  height: 70px;
  border: 4px solid rgba(126, 200, 227, 0.2);
  border-top-color: #7EC8E3;
  border-right-color: #9DCFE8;
  border-radius: 50%;
  margin: 0 auto 30px;
  animation: spin 1s linear infinite;
  box-shadow: 0 0 30px rgba(126, 200, 227, 0.15);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.matchmaking-texto {
  color: white;
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 12px 0;
  animation: textPulse 2s ease-in-out infinite;
}

@keyframes textPulse {
  0%, 100% { 
    opacity: 1;
    transform: scale(1);
  }
  50% { 
    opacity: 0.8;
    transform: scale(0.98);
  }
}

.matchmaking-subtexto {
  color: rgba(255, 255, 255, 0.5);
  font-size: 15px;
  margin: 0;
}

/* Indicador de progreso de matchmaking */
.matchmaking-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.matchmaking-dot {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  animation: dotPulse 1.5s ease-in-out infinite;
}

.matchmaking-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.matchmaking-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes dotPulse {
  0%, 100% {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1);
  }
  50% {
    background: #7EC8E3;
    transform: scale(1.2);
  }
}

/* Sala info (código) - Pantalla de sala creada */
.sala-info {
  text-align: center;
  padding: 30px;
  background: rgba(126, 200, 227, 0.1);
  border-radius: 18px;
  border: 1px solid rgba(126, 200, 227, 0.2);
  margin-bottom: 25px;
  transition: all 0.3s ease;
}

.sala-info:hover {
  background: rgba(126, 200, 227, 0.15);
  border-color: rgba(126, 200, 227, 0.3);
}

.sala-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 12px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sala-codigo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.sala-codigo {
  font-size: 40px;
  font-weight: 800;
  background: linear-gradient(135deg, #5BA3C0 0%, #7EC8E3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 8px;
  text-shadow: 0 0 30px rgba(91, 163, 192, 0.4);
}

.btn-copiar {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-copiar:hover {
  background: rgba(126, 200, 227, 0.2);
  border-color: rgba(126, 200, 227, 0.3);
  transform: scale(1.08);
}

.btn-copiar:active {
  transform: scale(0.95);
}

.btn-copiar.copied {
  background: rgba(72, 187, 120, 0.2);
  border-color: rgba(72, 187, 120, 0.4);
}

.sala-hint {
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
  margin: 14px 0 0 0;
}

/* Lista de jugadores en sala */
.sala-jugadores {
  margin-bottom: 25px;
}

.sala-jugadores > .sala-label {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sala-jugadores > .sala-label span {
  color: #5BA3C0;
  font-weight: 700;
}

.jugadores-lista {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 180px;
  overflow-y: auto;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.jugadores-lista::-webkit-scrollbar {
  width: 6px;
}

.jugadores-lista::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.jugadores-lista::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #7EC8E3 0%, #5BA3C0 100%);
  border-radius: 3px;
}

.jugador-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  color: white;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.25s ease;
  animation: playerSlideIn 0.3s ease forwards;
  border: 1px solid transparent;
}

@keyframes playerSlideIn {
  from {
    opacity: 0;
    transform: translateX(-15px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.jugador-item:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(4px);
}

.jugador-item.host {
  border: 1px solid rgba(126, 200, 227, 0.3);
  background: rgba(126, 200, 227, 0.1);
}

.jugador-item.host:hover {
  background: rgba(126, 200, 227, 0.15);
}

.jugador-item.host::after {
  content: '👑';
  margin-left: auto;
  font-size: 16px;
}

.jugador-icono {
  font-size: 20px;
  width: 28px;
  text-align: center;
}

/* Panel de configuración del lobby */
.config-lista {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 25px;
}

.config-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.25s ease;
}

.config-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(126, 200, 227, 0.2);
}

.config-item label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  font-weight: 600;
  margin: 0;
}

.config-control {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Estilos personalizados para sliders */
.config-item input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 130px;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  cursor: pointer;
}

.config-item input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #7EC8E3 0%, #5BA3C0 100%);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(91, 163, 192, 0.4);
  transition: all 0.2s ease;
}

.config-item input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(91, 163, 192, 0.5);
}

.config-item input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #7EC8E3 0%, #5BA3C0 100%);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(91, 163, 192, 0.4);
}

.config-item input[type="range"]:focus {
  outline: none;
}

/* Estilos personalizados para checkboxes */
.config-item input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.config-item input[type="checkbox"]:checked {
  background: linear-gradient(135deg, #7EC8E3 0%, #5BA3C0 100%);
  border-color: #7EC8E3;
}

.config-item input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 14px;
  font-weight: bold;
}

.config-item input[type="checkbox"]:hover {
  border-color: rgba(126, 200, 227, 0.5);
}

.config-item input[type="checkbox"]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(126, 200, 227, 0.2);
}

.config-control span {
  color: #5BA3C0;
  font-weight: 700;
  font-size: 14px;
  min-width: 55px;
  text-align: right;
  background: rgba(91, 163, 192, 0.15);
  padding: 4px 10px;
  border-radius: 8px;
}

/* Indicador de modo local */
#modo-local-indicator {
  position: fixed;
  top: 15px;
  left: 15px;
  background: rgba(255, 170, 0, 0.2);
  border: 1px solid rgba(255, 170, 0, 0.5);
  border-radius: 8px;
  padding: 8px 15px;
  color: #ffaa00;
  font-size: 13px;
  font-weight: 600;
  z-index: 200;
  display: none;
}

#modo-local-indicator.visible {
  display: block;
}

/* Estilos adicionales para el nuevo layout del lobby */

/* Lista de controles en sidebar */
.lobby-controls-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.control-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
}

.control-hint kbd {
  background: rgba(126, 200, 227, 0.2);
  border: 1px solid rgba(126, 200, 227, 0.3);
  border-radius: 4px;
  padding: 3px 8px;
  font-family: monospace;
  font-size: 11px;
  color: #5BA3C0;
  min-width: 50px;
  text-align: center;
}

/* Estado online */
.online-status {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}

.online-indicator {
  width: 10px;
  height: 10px;
  background: #48bb78;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(72, 187, 120, 0.5);
  animation: onlinePulse 2s ease-in-out infinite;
}

@keyframes onlinePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.1); }
}

.online-count {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

/* Tips del día */
.lobby-tips {
  flex: 1;
}

.tip-text {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

/* Contenedor del título */
.lobby-titulo-container {
  text-align: center;
  margin-bottom: 20px;
}

/* Versión del juego */
.lobby-version {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: rgba(255, 255, 255, 0.3);
  font-size: 12px;
  z-index: 2;
}

/* Decoración de fondo para el panel central */
.lobby-main::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(66, 153, 225, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

/* Responsive para el nuevo layout */
@media (max-width: 1200px) {
  .lobby-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    padding: 20px;
    gap: 20px;
    overflow-y: auto;
  }
  
  .lobby-sidebar-left,
  .lobby-sidebar-right {
    grid-row: auto;
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  .lobby-sidebar-left .lobby-card,
  .lobby-sidebar-right .lobby-card {
    flex: 1;
    min-width: 250px;
  }
  
  .lobby-main {
    order: -1;
  }
  
  .lobby-titulo {
    font-size: 48px;
  }
}

@media (max-width: 768px) {
  .lobby-layout {
    padding: 15px;
  }
  
  .lobby-sidebar-left,
  .lobby-sidebar-right {
    flex-direction: column;
  }
  
  .lobby-sidebar-left .lobby-card,
  .lobby-sidebar-right .lobby-card {
    min-width: auto;
  }
  
  .lobby-titulo {
    font-size: 36px;
    letter-spacing: 4px;
  }
  
  .lobby-titulo-sub {
    font-size: 12px;
    letter-spacing: 4px;
  }
  
  .lobby-card {
    padding: 18px;
  }
}

/* Responsive para lobby */
@media (max-width: 520px) {
  .lobby-container {
    margin: 15px;
    padding: 25px;
    border-radius: 16px;
  }
  
  .lobby-titulo {
    font-size: 36px;
    letter-spacing: 2px;
    margin-bottom: 20px;
  }
  
  .lobby-stats {
    gap: 12px;
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .stat-mini {
    padding: 14px 18px;
    min-width: 75px;
  }
  
  .stat-mini-valor {
    font-size: 24px;
  }
  
  .stat-mini-label {
    font-size: 11px;
  }
  
  .lobby-btn {
    padding: 14px 16px;
  }
  
  .btn-icono-grande {
    font-size: 24px;
    margin-right: 14px;
    width: 32px;
  }
  
  .btn-titulo {
    font-size: 15px;
  }
  
  .btn-desc {
    font-size: 12px;
  }
  
  .sala-codigo {
    font-size: 28px;
    letter-spacing: 4px;
  }
  
  .lobby-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
  }
  
  .lobby-subtitulo {
    font-size: 20px;
  }
  
  .config-item {
    padding: 14px 16px;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .config-item label {
    font-size: 14px;
  }
  
  .config-item input[type="range"] {
    width: 110px;
  }
  
  .config-item input[type="checkbox"] {
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 380px) {
  .lobby-container {
    margin: 10px;
    padding: 20px;
  }
  
  .lobby-titulo {
    font-size: 28px;
  }
  
  .lobby-stats {
    gap: 10px;
    padding: 12px;
  }
  
  .stat-mini {
    padding: 12px 14px;
    min-width: 65px;
  }
  
  .stat-mini-valor {
    font-size: 22px;
  }
  
  .lobby-btn {
    padding: 12px 14px;
  }
  
  .btn-icono-grande {
    font-size: 20px;
    margin-right: 10px;
    width: 28px;
  }
  
  .sala-codigo {
    font-size: 24px;
    letter-spacing: 3px;
  }
  
  .sala-info {
    padding: 18px;
  }
  
  .matchmaking-spinner {
    width: 50px;
    height: 50px;
  }
  
  .matchmaking-texto {
    font-size: 18px;
  }
}

/* Landscape mode on mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .lobby-container {
    padding: 20px 30px;
    max-height: 90vh;
    overflow-y: auto;
  }
  
  .lobby-titulo {
    font-size: 32px;
    margin-bottom: 15px;
  }
  
  .lobby-stats {
    margin-bottom: 15px;
    padding: 12px;
  }
  
  .lobby-botones {
    margin-bottom: 15px;
    gap: 10px;
  }
  
  .lobby-btn {
    padding: 12px 16px;
  }
  
  .lobby-seccion {
    margin-bottom: 15px;
  }
}

/* Tablet styles */
@media (min-width: 521px) and (max-width: 768px) {
  .lobby-container {
    max-width: 420px;
    padding: 35px;
  }
  
  .lobby-titulo {
    font-size: 42px;
  }
}

/* ==================== FIN LOBBY STYLES ==================== */

/* Pantalla de carga */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #E0F4FF 0%, #B8E4F0 50%, #D4F1F9 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

#loading-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-content {
  text-align: center;
  color: #2C5F7C;
}

.loading-title {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: 8px;
  margin-bottom: 30px;
  color: white;
  text-shadow: 
    3px 3px 0 #5BA3C0,
    6px 6px 0 #3D8EB0,
    0 0 30px rgba(126, 200, 227, 0.6);
}

.loading-bar-container {
  width: 300px;
  height: 12px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 10px;
  overflow: hidden;
  margin: 0 auto 20px;
  box-shadow: 0 4px 0 rgba(91, 163, 192, 0.4);
  border: 3px solid white;
}

.loading-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #7EC8E3 0%, #5BA3C0 100%);
  border-radius: 8px;
  transition: width 0.3s ease;
}

.loading-text {
  font-size: 16px;
  font-weight: 600;
  color: #5BA3C0;
  letter-spacing: 2px;
}

/* Panel de información/controles */
#info {
  position: absolute;
  top: 10px;
  left: 10px;
  color: white;
  background: rgba(0, 0, 0, 0.7);
  padding: 15px;
  border-radius: 5px;
  font-size: 14px;
}

/* Punto de mira */
#crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4px;
  height: 4px;
  background: white;
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.5);
  transition: all 0.2s ease;
  z-index: 100;
}

#crosshair::before,
#crosshair::after {
  content: "";
  position: absolute;
  background: white;
  transition: all 0.2s ease;
}

#crosshair::before {
  width: 20px;
  height: 2px;
  top: 1px;
  left: -8px;
}

#crosshair::after {
  width: 2px;
  height: 20px;
  top: -8px;
  left: 1px;
}

/* Crosshair cuando está apuntando */
#crosshair.aiming {
  background: #00ff00;
  box-shadow: 0 0 0 1px rgba(0, 255, 0, 0.8);
}

#crosshair.aiming::before,
#crosshair.aiming::after {
  background: #00ff00;
}

/* Display de munición */
#weapon-info {
  position: absolute;
  bottom: 30px;
  right: 30px;
  color: white;
  background: rgba(0, 0, 0, 0.7);
  padding: 15px 25px;
  border-radius: 5px;
  font-weight: bold;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Slots de armas intercambiables */
/* Requirements: 4.3, 4.4, 4.5 */
.weapon-slot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 5px 0;
  transition: all 0.2s ease;
}

.weapon-slot.secundario {
  opacity: 0.6;
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 8px;
}

.weapon-slot.secundario:hover {
  opacity: 0.8;
}

.weapon-slot.principal {
  opacity: 1;
}

.slot-nombre {
  color: #aaa;
}

.slot-tecla {
  background: rgba(255, 170, 0, 0.3);
  color: #ffaa00;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: bold;
}

/* Ocultar slot superior cuando no hay arma secundaria */
#weapon-slot-superior.hidden {
  display: none;
}

#weapon-name {
  font-size: 18px;
  color: #ffaa00;
  margin-bottom: 5px;
}

#ammo {
  font-size: 24px;
}

/* Ocultar munición cuando el cuchillo está equipado */
#ammo.hidden {
  display: none;
}

/* Indicador de apuntado */
#aim-indicator {
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translateX(-50%);
  color: #00ff00;
  font-size: 16px;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  z-index: 100;
}

#aim-indicator.active {
  opacity: 1;
}
#weapon-change-notification {
  position: fixed;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  z-index: 900;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Indicador de daño */
#damage-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: red;
  font-size: 32px;
  font-weight: bold;
  pointer-events: none;
  opacity: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Cargas de dash */
#dash-charges {
  position: absolute;
  bottom: 30px;
  left: 30px;
  color: white;
  background: rgba(0, 0, 0, 0.7);
  padding: 15px 25px;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
}

/* Iconos de dash */
.dash-icon {
  display: inline-block;
  width: 30px;
  height: 30px;
  margin: 0 5px;
  background: #00ff00;
  border-radius: 5px;
  vertical-align: middle;
  transition: background 0.3s;
}

.dash-icon.recharging {
  background: #ffaa00;
}

.dash-icon.empty {
  background: #333333;
}


/* Death screen overlay */
#death-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(139, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 900;
  transition: opacity 0.3s ease;
}

#death-screen.hidden {
  display: none;
}

.death-content {
  text-align: center;
  color: white;
}

.death-title {
  font-size: 72px;
  font-weight: bold;
  text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.8);
  margin-bottom: 20px;
  animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.death-killer {
  font-size: 24px;
  margin-bottom: 30px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

#killer-name {
  color: #ff6666;
  font-weight: bold;
}

.respawn-countdown {
  font-size: 32px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

#respawn-timer {
  color: #ffff00;
  font-weight: bold;
  font-size: 48px;
}

/* Kill feed */
#kill-feed {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 300px;
  max-height: 200px;
  overflow: hidden;
  z-index: 100;
}

.kill-entry {
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 12px;
  margin-bottom: 5px;
  border-radius: 4px;
  font-size: 14px;
  animation: slideIn 0.3s ease-out, fadeOut 0.5s ease-in 4.5s forwards;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

.kill-entry .killer {
  color: #ff6666;
  font-weight: bold;
}

.kill-entry .victim {
  color: #6666ff;
  font-weight: bold;
}

.kill-entry .weapon-icon {
  margin: 0 8px;
  color: #aaaaaa;
}

/* Health bar - Estilo moderno */
#health-bar-container {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 24px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

#health-bar {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #00ff00 0%, #00dd00 50%, #00bb00 100%);
  transition: width 0.15s linear;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

#health-bar.low {
  background: linear-gradient(180deg, #ff4444 0%, #dd0000 50%, #bb0000 100%);
}

#health-bar.medium {
  background: linear-gradient(180deg, #ffcc00 0%, #ffaa00 50%, #dd8800 100%);
}

#health-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 14px;
  font-weight: bold;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
  pointer-events: none;
  letter-spacing: 1px;
}

/* Damage flash effect */
#damage-flash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(255, 0, 0, 0.4) 100%);
  pointer-events: none;
  opacity: 0;
  z-index: 800;
  transition: opacity 0.1s ease;
}

#damage-flash.active {
  opacity: 1;
}


/* Floating damage dealt indicator */
@keyframes floatUp {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-50px);
  }
}

.damage-dealt-indicator {
  animation: floatUp 1s ease-out forwards;
}

/* Pause Menu Styles */
#pause-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
}

#pause-menu.hidden {
  display: none;
}

.pause-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(184, 228, 240, 0.85);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.pause-content {
  position: relative;
  background: white;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 8px 0 rgba(91, 163, 192, 0.4), 0 15px 40px rgba(126, 200, 227, 0.3);
  border: 4px solid #7EC8E3;
  width: 340px;
}

.pause-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pause-btn {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.9);
  border: 3px solid #E8E8E8;
  border-radius: 14px;
  color: #2C5F7C;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 0 #D0D0D0;
}

.pause-btn:hover {
  background: #F0FAFF;
  border-color: #7EC8E3;
  transform: translateY(-3px);
  box-shadow: 0 7px 0 #5BA3C0, 0 10px 20px rgba(126, 200, 227, 0.3);
}

.pause-btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #D0D0D0;
}

.pause-btn.primary {
  background: linear-gradient(135deg, #ABEBC6 0%, #82E0AA 100%);
  border-color: #58D68D;
  box-shadow: 0 4px 0 #2ECC71;
  color: #1E8449;
}

.pause-btn.primary:hover {
  background: linear-gradient(135deg, #82E0AA 0%, #ABEBC6 100%);
  box-shadow: 0 7px 0 #2ECC71, 0 10px 20px rgba(88, 214, 141, 0.4);
}

.pause-btn.danger {
  background: linear-gradient(135deg, #F5B7B1 0%, #F1948A 100%);
  border-color: #EC7063;
  box-shadow: 0 4px 0 #E74C3C;
  color: #922B21;
}

.pause-btn.danger:hover {
  background: linear-gradient(135deg, #F1948A 0%, #F5B7B1 100%);
  box-shadow: 0 7px 0 #E74C3C, 0 10px 20px rgba(231, 76, 60, 0.3);
}

.btn-icon {
  font-size: 18px;
  margin-right: 14px;
  width: 24px;
  text-align: center;
}

/* Pause Panels */
.pause-panel {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: white;
  border-radius: 24px;
  padding: 24px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.pause-panel.hidden {
  display: none;
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 3px solid #E8E8E8;
  flex-shrink: 0;
}

.panel-header h3 {
  color: #2C5F7C;
  font-size: 18px;
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.back-btn {
  background: white;
  border: 3px solid #E8E8E8;
  border-radius: 10px;
  width: 40px;
  height: 40px;
  color: #2C5F7C;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 0 #D0D0D0;
}

.back-btn:hover {
  background: #F0FAFF;
  border-color: #7EC8E3;
  transform: translateY(-2px);
  box-shadow: 0 5px 0 #5BA3C0;
}

/* Settings Panel */
.settings-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 10px 0;
}

.setting-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: #F0FAFF;
  border-radius: 12px;
  border: 3px solid #E8E8E8;
  width: 100%;
  box-sizing: border-box;
  box-shadow: 0 3px 0 #D0D0D0;
}

.setting-item label {
  color: #2C5F7C;
  font-size: 14px;
  font-weight: 600;
}

.setting-item input[type="range"] {
  width: 100px;
  margin: 0 12px;
  accent-color: #5BA3C0;
}

.setting-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #5BA3C0;
}

.setting-item span {
  color: #5BA3C0;
  font-weight: 700;
  font-size: 13px;
  min-width: 50px;
  text-align: right;
}

/* Controls Panel */
.controls-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-content: center;
  flex: 1;
}

.control-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #F0FAFF;
  border-radius: 12px;
  border: 3px solid #E8E8E8;
  transition: all 0.2s ease;
  box-shadow: 0 3px 0 #D0D0D0;
}

.control-item:hover {
  background: white;
  border-color: #7EC8E3;
  transform: translateY(-2px);
  box-shadow: 0 5px 0 #5BA3C0;
}

.control-item span {
  color: #2C5F7C;
  font-size: 13px;
  font-weight: 600;
}

.control-item kbd {
  background: linear-gradient(135deg, #AED6F1 0%, #85C1E9 100%);
  color: #2C5F7C;
  padding: 5px 10px;
  border-radius: 8px;
  font-family: 'Consolas', monospace;
  font-size: 12px;
  font-weight: 700;
  border: 2px solid #5BA3C0;
  box-shadow: 0 2px 0 #3D8EB0;
}

/* Stats Panel */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  align-content: center;
  flex: 1;
}

.stat-card {
  background: #F0FAFF;
  border-radius: 14px;
  padding: 16px 12px;
  text-align: center;
  border: 3px solid #E8E8E8;
  transition: all 0.2s ease;
  box-shadow: 0 3px 0 #D0D0D0;
}

.stat-card:hover {
  background: white;
  border-color: #7EC8E3;
  transform: translateY(-2px);
  box-shadow: 0 5px 0 #5BA3C0;
}

.stat-value {
  font-size: 28px;
  font-weight: 800;
  color: #5BA3C0;
  line-height: 1;
}

.stat-label {
  color: #6A9BB5;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 6px;
  font-weight: 600;
}

/* FPS Counter */
#fps-counter {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: #00ff00;
  padding: 8px 15px;
  border-radius: 5px;
  font-family: monospace;
  font-weight: bold;
  font-size: 14px;
  z-index: 200;
}

#fps-counter.hidden {
  display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .pause-content {
    margin: 20px;
    padding: 30px 20px;
    min-width: auto;
  }
  
  .pause-title {
    font-size: 28px;
  }
  
  .pause-btn {
    padding: 12px 20px;
    font-size: 16px;
  }
  
  .controls-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   AUTH SYSTEM STYLES
   ============================================ */

/* Auth Overlay */
.auth-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 25000; /* Por encima de todo */
  transition: opacity 0.3s ease;
}

.auth-overlay.hidden {
  display: none;
}

.auth-container {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.1);
  min-width: 400px;
  max-width: 500px;
  position: relative;
}

.auth-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 15px;
}

.auth-header h2 {
  color: white;
  font-size: 24px;
  margin: 0;
}

.auth-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  margin-top: 5px;
}

.auth-close {
  background: none;
  border: none;
  color: white;
  font-size: 30px;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.auth-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-form.hidden {
  display: none;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  color: white;
  font-size: 14px;
  font-weight: bold;
}

.form-group input {
  padding: 12px 15px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: rgba(0, 255, 0, 0.6);
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.auth-btn {
  padding: 15px 25px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.auth-btn.primary {
  background: linear-gradient(135deg, #00ff00 0%, #00dd00 100%);
  color: black;
}

.auth-btn.primary:hover {
  background: linear-gradient(135deg, #00dd00 0%, #00bb00 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 255, 0, 0.3);
}

.auth-switch {
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  font-size: 14px;
}

.auth-switch a {
  color: #00ff00;
  text-decoration: none;
  font-weight: bold;
}

.auth-switch a:hover {
  text-decoration: underline;
}

.auth-error {
  background: rgba(255, 0, 0, 0.2);
  border: 1px solid rgba(255, 0, 0, 0.5);
  color: #ff6666;
  padding: 12px 15px;
  border-radius: 8px;
  font-size: 14px;
  margin-top: 15px;
}

.auth-error.hidden {
  display: none;
}

.auth-loading {
  text-align: center;
  color: white;
  font-size: 16px;
  margin-top: 15px;
}

.auth-loading.hidden {
  display: none;
}

/* User Menu Overlay */
.user-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 30000;
  transition: opacity 0.3s ease;
}

.user-menu-overlay.hidden {
  display: none;
}

.user-menu-container {
  width: 90%;
  max-width: 1200px;
  height: 90%;
  max-height: 800px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  border-radius: 20px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.user-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  background: rgba(255, 255, 255, 0.1);
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.user-menu-header h2 {
  color: white;
  font-size: 28px;
  margin: 0;
  font-weight: bold;
}

.user-menu-close {
  background: none;
  border: none;
  color: white;
  font-size: 32px;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.user-menu-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.user-menu-content {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 300px;
  grid-template-rows: 1fr auto;
  gap: 20px;
  padding: 20px;
}

/* 3D Character Display */
.user-menu-canvas {
  grid-column: 1;
  grid-row: 1 / 3;
  background: linear-gradient(135deg, #87CEEB 0%, #4FC3F7 100%);
  border-radius: 15px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.user-menu-canvas canvas {
  width: 100% !important;
  height: 100% !important;
  border-radius: 13px;
}

/* Weapon Info */
.user-menu-weapon-info {
  grid-column: 2;
  grid-row: 1;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.user-menu-weapon-info h3 {
  color: #4FC3F7;
  font-size: 24px;
  margin: 0 0 10px 0;
  font-weight: bold;
  text-align: center;
}

.user-menu-weapon-info p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  text-align: center;
}

/* User Stats */
.user-menu-stats {
  grid-column: 2;
  grid-row: 2;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 400px;
  overflow-y: auto;
}

.user-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.user-stat:last-child {
  border-bottom: none;
}

.stat-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.stat-value {
  color: #4FC3F7;
  font-size: 16px;
  font-weight: bold;
}

/* Barra de progreso de experiencia */
.xp-progress-container {
  margin: 10px 0;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.xp-progress-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  margin-bottom: 5px;
  text-align: center;
}

.xp-progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.xp-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4FC3F7 0%, #29B6F6 100%);
  border-radius: 4px;
  transition: width 0.3s ease;
}

/* Weapon Selector */
.user-menu-weapon-selector {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-top: 2px solid rgba(255, 255, 255, 0.2);
  flex-wrap: wrap;
}

.weapon-selector-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 80px;
}

.weapon-selector-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #4FC3F7;
  transform: translateY(-2px);
}

.weapon-selector-btn.active {
  background: rgba(79, 195, 247, 0.3);
  border-color: #4FC3F7;
  box-shadow: 0 0 20px rgba(79, 195, 247, 0.4);
}

.weapon-icon {
  font-size: 24px;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.weapon-selector-btn:hover .weapon-icon,
.weapon-selector-btn.active .weapon-icon {
  filter: grayscale(0%);
}

.weapon-name {
  color: white;
  font-size: 12px;
  font-weight: bold;
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .user-menu-container {
    width: 95%;
    height: 95%;
  }
  
  .user-menu-content {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto auto;
  }
  
  .user-menu-canvas {
    grid-column: 1;
    grid-row: 1;
    min-height: 300px;
  }
  
  .user-menu-weapon-info {
    grid-column: 1;
    grid-row: 2;
  }
  
  .user-menu-stats {
    grid-column: 1;
    grid-row: 3;
  }
}

.user-info.hidden {
  display: none;
}

.user-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #00ff00 0%, #00dd00 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.user-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.user-name {
  color: white;
  font-weight: bold;
  font-size: 16px;
}

.user-level {
  color: #00ff00;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.user-menu-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 35px;
  height: 35px;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.user-menu-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

/* Login Button */
/* Botón de autenticación en el lobby */
.lobby-btn-auth {
  width: 100%;
  background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.lobby-btn-auth:hover {
  background: linear-gradient(135deg, #3182ce 0%, #2c5aa0 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(66, 153, 225, 0.3);
}

.auth-hint {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  margin: 5px 0 0 0;
}

/* Responsive Auth */
@media (max-width: 768px) {
  .auth-container {
    margin: 20px;
    min-width: auto;
    padding: 25px 20px;
  }
  
  .user-info {
    top: 10px;
    right: 10px;
    padding: 10px;
    gap: 10px;
  }
}

/* ==================== MODO LOCAL INDICATOR ==================== */
/* Requirements: 2.3 - Mostrar indicador "Modo Local" cuando corresponda */

.modo-local-indicator {
  position: fixed;
  top: 15px;
  left: 15px;
  background: rgba(255, 170, 0, 0.2);
  border: 1px solid rgba(255, 170, 0, 0.5);
  border-radius: 8px;
  padding: 8px 15px;
  color: #ffaa00;
  font-size: 13px;
  font-weight: 600;
  z-index: 200;
  display: none;
}

.modo-local-indicator.visible {
  display: block;
}

/* ==================== NUEVO LAYOUT DEL LOBBY ==================== */

.lobby-layout-new {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 0;
  box-sizing: border-box;
}

/* Header del lobby con perfil */
.lobby-header-new {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 10;
}

.lobby-profile-section {
  display: flex;
  align-items: center;
  gap: 20px;
}

.profile-avatar {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #4299e1 0%, #667eea 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 20px rgba(66, 153, 225, 0.4);
}

.avatar-icon {
  font-size: 32px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.profile-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.lobby-seccion-inline {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-name-input {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 10px 16px;
  color: white;
  font-size: 18px;
  font-weight: 600;
  width: 250px;
  transition: all 0.3s ease;
}

.profile-name-input:focus {
  outline: none;
  border-color: #4299e1;
  background: rgba(66, 153, 225, 0.15);
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
}

.profile-name-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.btn-icono-small {
  background: rgba(66, 153, 225, 0.2);
  border: 2px solid rgba(66, 153, 225, 0.3);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-icono-small:hover {
  background: rgba(66, 153, 225, 0.35);
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 4px 15px rgba(66, 153, 225, 0.4);
}

.error-mensaje-small {
  display: block;
  color: #fc8181;
  font-size: 12px;
  min-height: 16px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.error-mensaje-small:not(:empty) {
  opacity: 1;
}

.lobby-header-actions {
  display: flex;
  gap: 15px;
}

.lobby-btn-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: white;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lobby-btn-header:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(66, 153, 225, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.lobby-btn-header span:first-child {
  font-size: 18px;
}

/* Contenido principal del lobby */
.lobby-main-new {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  gap: 60px;
}

/* Hero section con título */
.lobby-hero {
  text-align: center;
  animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lobby-titulo-new {
  color: white;
  font-size: 96px;
  font-weight: 900;
  margin: 0 0 10px 0;
  letter-spacing: 12px;
  text-shadow: 0 0 80px rgba(66, 153, 225, 0.8),
    0 0 120px rgba(102, 126, 234, 0.5),
    0 10px 40px rgba(0, 0, 0, 0.8);
  background: linear-gradient(135deg, #4299e1 0%, #667eea 40%, #48bb78 70%, #4299e1 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleGradientShiftNew 6s ease infinite;
  position: relative;
}

.lobby-titulo-new::after {
  content: 'FPS ARENA';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #4299e1 0%, #667eea 40%, #48bb78 70%, #4299e1 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleGradientShiftNew 6s ease infinite reverse;
  opacity: 0.3;
  filter: blur(20px);
  z-index: -1;
}

@keyframes titleGradientShiftNew {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.lobby-subtitle-new {
  color: rgba(255, 255, 255, 0.6);
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 8px;
  margin: 0 0 40px 0;
  font-weight: 500;
}

/* Stats inline debajo del título */
.lobby-stats-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding: 20px 40px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.stat-inline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.stat-inline-value {
  color: #4299e1;
  font-size: 32px;
  font-weight: 800;
  text-shadow: 0 0 20px rgba(66, 153, 225, 0.5);
  line-height: 1;
}

.stat-inline-label {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}

.stat-divider {
  width: 2px;
  height: 40px;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
}

/* Modos de juego */
.game-modes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 900px;
  width: 100%;
}

.mode-card {
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.mode-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.6s ease;
}

.mode-card:hover::before {
  left: 100%;
}

.mode-card:hover {
  transform: translateY(-8px) scale(1.02);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.mode-card-primary {
  background: linear-gradient(135deg, rgba(66, 153, 225, 0.2) 0%, rgba(102, 126, 234, 0.15) 100%);
  border-color: rgba(66, 153, 225, 0.4);
}

.mode-card-primary:hover {
  background: linear-gradient(135deg, rgba(66, 153, 225, 0.3) 0%, rgba(102, 126, 234, 0.25) 100%);
  border-color: rgba(66, 153, 225, 0.6);
  box-shadow: 0 20px 60px rgba(66, 153, 225, 0.4);
}

.mode-icon {
  font-size: 48px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
  transition: transform 0.4s ease;
}

.mode-card:hover .mode-icon {
  transform: scale(1.2) rotate(5deg);
}

.mode-content {
  flex: 1;
  text-align: left;
}

.mode-title {
  color: white;
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 8px 0;
  letter-spacing: 0.5px;
}

.mode-desc {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  margin: 0;
  letter-spacing: 0.3px;
}

.mode-arrow {
  color: rgba(255, 255, 255, 0.3);
  font-size: 32px;
  transition: all 0.4s ease;
}

.mode-card:hover .mode-arrow {
  color: white;
  transform: translateX(8px);
}

/* Footer del lobby */
.lobby-footer-new {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 30px 40px;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.footer-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(66, 153, 225, 0.3);
}

.footer-card-icon {
  font-size: 32px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.footer-card-content h4 {
  color: white;
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px 0;
  letter-spacing: 0.5px;
}

.footer-card-content p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  margin: 0;
  line-height: 1.5;
}

.online-status-new {
  display: flex;
  align-items: center;
  gap: 10px;
}

.online-dot {
  width: 10px;
  height: 10px;
  background: #48bb78;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(72, 187, 120, 0.6);
  animation: onlinePulseNew 2s ease-in-out infinite;
}

@keyframes onlinePulseNew {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.2); }
}

/* Responsive para el nuevo diseño */
@media (max-width: 1200px) {
  .lobby-titulo-new {
    font-size: 72px;
    letter-spacing: 8px;
  }
  
  .game-modes {
    max-width: 700px;
  }
  
  .mode-card {
    padding: 25px;
  }
  
  .mode-icon {
    font-size: 40px;
  }
}

@media (max-width: 900px) {
  .lobby-header-new {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }
  
  .lobby-titulo-new {
    font-size: 56px;
    letter-spacing: 6px;
  }
  
  .game-modes {
    grid-template-columns: 1fr;
    max-width: 500px;
  }
  
  .lobby-footer-new {
    grid-template-columns: 1fr;
  }
  
  .lobby-stats-inline {
    flex-wrap: wrap;
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .lobby-header-new {
    padding: 15px;
  }
  
  .profile-avatar {
    width: 50px;
    height: 50px;
  }
  
  .avatar-icon {
    font-size: 24px;
  }
  
  .profile-name-input {
    width: 180px;
    font-size: 16px;
    padding: 8px 12px;
  }
  
  .btn-icono-small {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  
  .lobby-btn-header {
    padding: 10px 18px;
    font-size: 14px;
  }
  
  .lobby-main-new {
    padding: 20px;
    gap: 40px;
  }
  
  .lobby-titulo-new {
    font-size: 40px;
    letter-spacing: 4px;
  }
  
  .lobby-subtitle-new {
    font-size: 12px;
    letter-spacing: 4px;
  }
  
  .lobby-stats-inline {
    padding: 15px 25px;
    gap: 15px;
  }
  
  .stat-inline-value {
    font-size: 24px;
  }
  
  .stat-inline-label {
    font-size: 10px;
  }
  
  .mode-card {
    padding: 20px;
    gap: 15px;
  }
  
  .mode-icon {
    font-size: 32px;
  }
  
  .mode-title {
    font-size: 20px;
  }
  
  .mode-desc {
    font-size: 12px;
  }
  
  .lobby-footer-new {
    padding: 20px;
  }
  
  .footer-card {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
}

/* ==================== DISEÑO MODERNO Y LIMPIO DEL LOBBY ==================== */

.lobby-layout-modern {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 40px;
  box-sizing: border-box;
  position: relative;
}

.lobby-content-modern {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
  max-width: 600px;
  width: 100%;
  animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero section moderna */
.lobby-hero-modern {
  text-align: center;
  width: 100%;
}

/* Perfil compacto integrado */
.profile-compact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 15px;
}

.profile-avatar-small {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.profile-input-compact {
  display: flex;
  align-items: center;
  gap: 8px;
}

.input-modern {
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 10px 18px;
  color: white;
  font-size: 16px;
  font-weight: 500;
  width: 220px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.input-modern:focus {
  outline: none;
  border-color: #667eea;
  background: rgba(102, 126, 234, 0.15);
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
  transform: scale(1.02);
}

.input-modern::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.btn-dice {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  width: 38px;
  height: 38px;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-dice:hover {
  background: rgba(102, 126, 234, 0.3);
  border-color: #667eea;
  transform: rotate(20deg) scale(1.1);
}

.btn-dice:active {
  transform: rotate(0deg) scale(0.95);
}

.error-mensaje-modern {
  display: block;
  color: #ff6b6b;
  font-size: 12px;
  min-height: 18px;
  margin-bottom: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.error-mensaje-modern:not(:empty) {
  opacity: 1;
  animation: shake 0.4s ease;
}

/* Título moderno y elegante */
.title-modern {
  font-size: 84px;
  font-weight: 900;
  margin: 0;
  letter-spacing: 10px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientFlow 4s ease infinite;
  filter: drop-shadow(0 0 40px rgba(102, 126, 234, 0.6));
  line-height: 1;
}

@keyframes gradientFlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.subtitle-modern {
  color: rgba(255, 255, 255, 0.5);
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 6px;
  margin: 15px 0 30px 0;
  font-weight: 600;
}

/* Stats compactas */
.stats-compact {
  display: flex;
  gap: 35px;
  justify-content: center;
  align-items: center;
}

.stat-item-compact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 15px 25px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.stat-item-compact:hover {
  background: rgba(102, 126, 234, 0.15);
  border-color: rgba(102, 126, 234, 0.4);
  transform: translateY(-3px);
}

.stat-number {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-label-compact {
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
}

/* Modos de juego modernos */
.modes-modern {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
}

.mode-btn-modern {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 28px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.mode-btn-modern::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.mode-btn-modern:hover::before {
  width: 500px;
  height: 500px;
}

.mode-btn-modern:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.mode-primary {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
  border-color: rgba(102, 126, 234, 0.4);
}

.mode-primary:hover {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.25) 0%, rgba(118, 75, 162, 0.25) 100%);
  border-color: rgba(102, 126, 234, 0.6);
  box-shadow: 0 15px 50px rgba(102, 126, 234, 0.3);
}

.mode-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.mode-icon-modern {
  font-size: 40px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
  transition: transform 0.4s ease;
  position: relative;
  z-index: 1;
}

.mode-btn-modern:hover .mode-icon-modern {
  transform: scale(1.15) rotate(-5deg);
}

.mode-text-modern {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  z-index: 1;
}

.mode-title-modern {
  color: white;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.mode-subtitle-modern {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  font-weight: 500;
}

/* Acciones rápidas */
.quick-actions {
  display: flex;
  gap: 12px;
  width: 100%;
}

.quick-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.quick-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(102, 126, 234, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.quick-btn span:first-child {
  font-size: 16px;
}

/* Info flotante en la esquina */
.floating-info {
  position: absolute;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: fadeInRight 1s ease 0.5s both;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.info-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.info-icon {
  font-size: 18px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.info-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 500;
}

/* Responsive moderno */
@media (max-width: 768px) {
  .lobby-layout-modern {
    padding: 25px;
  }
  
  .title-modern {
    font-size: 56px;
    letter-spacing: 6px;
  }
  
  .subtitle-modern {
    font-size: 12px;
    letter-spacing: 4px;
  }
  
  .stats-compact {
    gap: 20px;
    flex-wrap: wrap;
  }
  
  .stat-item-compact {
    padding: 12px 20px;
  }
  
  .stat-number {
    font-size: 24px;
  }
  
  .floating-info {
    bottom: 20px;
    right: 20px;
  }
}

@media (max-width: 500px) {
  .lobby-layout-modern {
    padding: 20px;
  }
  
  .lobby-content-modern {
    gap: 35px;
  }
  
  .title-modern {
    font-size: 42px;
    letter-spacing: 4px;
  }
  
  .input-modern {
    width: 160px;
    font-size: 14px;
    padding: 8px 14px;
  }
  
  .profile-avatar-small {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }
  
  .btn-dice {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }
  
  .stats-compact {
    gap: 15px;
  }
  
  .stat-item-compact {
    padding: 10px 16px;
  }
  
  .mode-btn-modern {
    padding: 18px 22px;
    gap: 15px;
  }
  
  .mode-icon-modern {
    font-size: 32px;
  }
  
  .mode-title-modern {
    font-size: 18px;
  }
  
  .mode-subtitle-modern {
    font-size: 12px;
  }
  
  .quick-actions {
    flex-direction: column;
  }
  
  .floating-info {
    position: relative;
    bottom: auto;
    right: auto;
    width: 100%;
  }
  
  .info-badge {
    justify-content: center;
  }
}

@media (max-width: 380px) {
  .title-modern {
    font-size: 36px;
    letter-spacing: 3px;
  }
  
  .profile-input-compact {
    flex-direction: column;
    gap: 8px;
  }
  
  .input-modern {
    width: 100%;
  }
}

/* ==================== DISEÑO MINIMALISTA - BEARSTRIKE (CARTOON PASTEL) ==================== */

.lobby-minimal {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: relative;
  padding: 20px;
  box-sizing: border-box;
}

.lobby-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  animation: fadeInScale 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: center;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Avatar minimalista - Cartoon */
.avatar-minimal {
  width: 55px;
  height: 55px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 0 rgba(91, 163, 192, 0.5), 0 8px 25px rgba(126, 200, 227, 0.3);
  border: 4px solid white;
  flex-shrink: 0;
}

/* Título del juego - Cartoon */
.game-title {
  font-size: 85px;
  font-weight: 900;
  margin: 0;
  letter-spacing: 8px;
  color: white;
  text-transform: uppercase;
  line-height: 1;
  text-shadow: 
    3px 3px 0 #5BA3C0,
    6px 6px 0 #3D8EB0,
    0 0 30px rgba(126, 200, 227, 0.6);
  animation: titleBounce 3s ease-in-out infinite;
}

@keyframes titleBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Sección de nickname */
.nickname-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 420px;
}

.nickname-input-group {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.nickname-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.85);
  border: 4px solid white;
  border-radius: 20px;
  padding: 14px 20px;
  color: #2C5F7C;
  font-size: 17px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: left;
  box-shadow: 0 4px 0 rgba(91, 163, 192, 0.5), 0 8px 25px rgba(126, 200, 227, 0.3);
}

.nickname-input:focus {
  outline: none;
  background: white;
  box-shadow: 0 4px 0 rgba(61, 142, 176, 0.6), 0 8px 30px rgba(126, 200, 227, 0.5);
  transform: translateY(-2px);
}

.nickname-input::placeholder {
  color: #7FB3D5;
}

.random-btn {
  background: rgba(255, 255, 255, 0.9);
  border: 4px solid white;
  border-radius: 16px;
  width: 56px;
  height: 56px;
  font-size: 26px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 0 rgba(91, 163, 192, 0.5), 0 8px 25px rgba(126, 200, 227, 0.3);
}

.random-btn:hover {
  background: white;
  transform: rotate(180deg) scale(1.1) translateY(2px);
  box-shadow: 0 2px 0 rgba(91, 163, 192, 0.6), 0 6px 20px rgba(126, 200, 227, 0.5);
}

.random-btn:active {
  transform: rotate(180deg) scale(0.95) translateY(4px);
  box-shadow: 0 1px 0 rgba(91, 163, 192, 0.5);
}

.error-minimal {
  display: block;
  color: #E74C3C;
  font-size: 14px;
  font-weight: 700;
  min-height: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.error-minimal:not(:empty) {
  opacity: 1;
  animation: shakeError 0.5s ease;
}

@keyframes shakeError {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-10px); }
  40%, 80% { transform: translateX(10px); }
}

/* Botones de juego - Cartoon */
.game-buttons {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  max-width: 420px;
  margin-top: 10px;
}

.game-btn {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 28px;
  background: white;
  border: 4px solid #E8E8E8;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 0 #D0D0D0, 0 10px 25px rgba(0, 0, 0, 0.1);
}

.game-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(255,255,255,0.8) 0%, transparent 50%);
  pointer-events: none;
}

.game-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 0 #D0D0D0, 0 15px 35px rgba(0, 0, 0, 0.15);
}

.game-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #D0D0D0, 0 5px 15px rgba(0, 0, 0, 0.1);
}

.primary-btn {
  background: white;
  border-color: #7EC8E3;
  box-shadow: 0 6px 0 #5BA3C0, 0 10px 25px rgba(126, 200, 227, 0.4);
}

.primary-btn:hover {
  background: #F0FAFF;
  box-shadow: 0 10px 0 #5BA3C0, 0 15px 35px rgba(126, 200, 227, 0.5);
}

.primary-btn:active {
  box-shadow: 0 2px 0 #5BA3C0, 0 5px 15px rgba(126, 200, 227, 0.3);
}

.secondary-btn {
  background: white;
  border-color: #98D9A8;
  box-shadow: 0 6px 0 #6BC48A, 0 10px 25px rgba(152, 217, 168, 0.4);
}

.secondary-btn:hover {
  background: #F0FFF4;
  box-shadow: 0 10px 0 #6BC48A, 0 15px 35px rgba(152, 217, 168, 0.5);
}

.secondary-btn:active {
  box-shadow: 0 2px 0 #6BC48A, 0 5px 15px rgba(152, 217, 168, 0.3);
}

.btn-icon-game {
  font-size: 40px;
  filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, 0.1));
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  z-index: 1;
}

.game-btn:hover .btn-icon-game {
  transform: scale(1.2) rotate(-8deg);
}

.btn-content-game {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  z-index: 1;
  text-align: left;
}

.btn-title-game {
  color: #2C5F7C;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.btn-subtitle-game {
  color: #6A9BB5;
  font-size: 13px;
  font-weight: 600;
}

.primary-btn .btn-title-game {
  color: #2C5F7C;
}

.primary-btn .btn-subtitle-game {
  color: #5BA3C0;
}

.secondary-btn .btn-title-game {
  color: #2D6A4F;
}

.secondary-btn .btn-subtitle-game {
  color: #6BC48A;
}

/* Opciones en la esquina - Cartoon */
.corner-options {
  position: absolute;
  top: 30px;
  right: 30px;
  display: flex;
  gap: 12px;
  animation: slideInRight 0.6s ease 0.3s both;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.corner-btn {
  width: 50px;
  height: 50px;
  background: white;
  border: 4px solid #E8E8E8;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 0 #D0D0D0, 0 6px 15px rgba(0, 0, 0, 0.1);
}

.corner-btn:hover {
  background: linear-gradient(135deg, #7EC8E3 0%, #5BA3C0 100%);
  border-color: #5BA3C0;
  transform: translateY(-3px) rotate(5deg);
  box-shadow: 0 7px 0 #3D8EB0, 0 10px 20px rgba(126, 200, 227, 0.5);
}

.corner-btn:active {
  transform: translateY(2px) rotate(0deg);
  box-shadow: 0 1px 0 #D0D0D0;
}

/* Botón de login con texto - Cartoon */
.login-btn-corner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: white;
  border: 4px solid #F5B041;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-size: 14px;
  font-weight: 700;
  color: #9A6700;
  box-shadow: 0 4px 0 #D68910, 0 6px 15px rgba(245, 176, 65, 0.4);
}

.login-btn-corner span {
  font-size: 18px;
}

.login-btn-corner:hover {
  background: #FFF8E7;
  transform: translateY(-3px);
  box-shadow: 0 7px 0 #D68910, 0 10px 20px rgba(245, 176, 65, 0.5);
}

.login-btn-corner:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #D68910;
}

/* Info inferior */
.bottom-info {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: fadeInUpBottom 0.6s ease 0.5s both;
}

@keyframes fadeInUpBottom {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 25px;
  backdrop-filter: blur(10px);
}

.info-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.info-dot.online {
  background: #48bb78;
  box-shadow: 0 0 15px rgba(72, 187, 120, 0.7);
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.3);
  }
}

.info-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 500;
}

/* Responsive minimalista - Cartoon */
@media (max-width: 768px) {
  .game-title {
    font-size: 55px;
    letter-spacing: 5px;
  }
  
  .nickname-section,
  .game-buttons {
    max-width: 90%;
  }
  
  .corner-options {
    top: 20px;
    right: 20px;
  }
  
  .corner-btn {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }
  
  .bottom-info {
    bottom: 20px;
  }
}

@media (max-width: 500px) {
  .game-title {
    font-size: 42px;
    letter-spacing: 4px;
  }
  
  .avatar-minimal {
    width: 45px;
    height: 45px;
    font-size: 24px;
  }
  
  .nickname-input {
    padding: 12px 16px;
    font-size: 16px;
  }
  
  .random-btn {
    width: 50px;
    height: 50px;
    font-size: 22px;
  }
  
  .game-btn {
    padding: 16px 20px;
    gap: 16px;
  }
  
  .btn-icon-game {
    font-size: 32px;
  }
  
  .btn-title-game {
    font-size: 18px;
  }
  
  .btn-subtitle-game {
    font-size: 12px;
  }
  
  .corner-options {
    top: 15px;
    right: 15px;
    gap: 8px;
  }
  
  .corner-btn {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  
  .login-btn-corner {
    padding: 10px 16px;
    font-size: 12px;
  }
}

@media (max-width: 380px) {
  .game-title {
    font-size: 36px;
    letter-spacing: 3px;
  }
  
  .lobby-center {
    gap: 25px;
  }
}


/* ==================== MENÚ DE SELECCIÓN DE ARMAS ==================== */
/* Requirements: 1.1, 1.2, 1.4, 3.1 */

#menu-seleccion-armas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10001;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#menu-seleccion-armas.hidden {
  display: none;
}

#menu-seleccion-armas.visible {
  opacity: 1;
}

.seleccion-armas-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(44, 95, 124, 0.95) 0%, rgba(91, 163, 192, 0.9) 100%);
  backdrop-filter: blur(10px);
}

.seleccion-armas-contenido {
  position: relative;
  background: linear-gradient(135deg, #F8FCFF 0%, #EDF7FC 100%);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 8px 0 rgba(91, 163, 192, 0.35), 0 20px 60px rgba(0, 0, 0, 0.4);
  border: 4px solid #9DCFE8;
  max-width: 900px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  animation: slideUp 0.4s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.seleccion-armas-titulo {
  color: #2C5F7C;
  font-size: 32px;
  font-weight: 800;
  text-align: center;
  margin: 0 0 30px 0;
  letter-spacing: 2px;
}

/* Grid de tarjetas de armas */
.seleccion-armas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

/* Tarjeta de arma individual */
.tarjeta-arma {
  background: white;
  border: 3px solid #E8E8E8;
  border-radius: 16px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 4px 0 #D0D0D0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tarjeta-arma:hover {
  transform: translateY(-4px);
  border-color: #7EC8E3;
  box-shadow: 0 8px 0 #5BA3C0, 0 12px 25px rgba(126, 200, 227, 0.3);
}

.tarjeta-arma.seleccionada {
  border-color: #5BA3C0;
  background: linear-gradient(135deg, #D4F1F9 0%, #B8E4F0 100%);
  box-shadow: 0 4px 0 #5BA3C0, 0 0 0 4px rgba(126, 200, 227, 0.3);
  transform: translateY(-2px);
}

.tarjeta-arma.seleccionada::before {
  content: '✓';
  position: absolute;
  top: 10px;
  right: 10px;
  background: #5BA3C0;
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
}

.tarjeta-arma {
  position: relative;
}

/* Icono del arma */
.tarjeta-arma-icono {
  font-size: 48px;
  text-align: center;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Info del arma */
.tarjeta-arma-info {
  text-align: center;
}

.tarjeta-arma-nombre {
  color: #2C5F7C;
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 4px 0;
}

.tarjeta-arma-tipo {
  display: inline-block;
  background: rgba(126, 200, 227, 0.2);
  color: #5BA3C0;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 12px;
  margin-bottom: 8px;
}

.tarjeta-arma-desc {
  color: #6A9BB5;
  font-size: 13px;
  margin: 0;
  line-height: 1.4;
}

/* Stats del arma */
.tarjeta-arma-stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 12px;
  border-top: 2px solid #E8E8E8;
}

.stat-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stat-bar-label {
  color: #6A9BB5;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  min-width: 60px;
}

.stat-bar-track {
  flex: 1;
  height: 8px;
  background: #E8E8E8;
  border-radius: 4px;
  overflow: hidden;
}

.stat-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.stat-bar-fill.daño {
  background: linear-gradient(90deg, #E74C3C 0%, #C0392B 100%);
}

.stat-bar-fill.cadencia {
  background: linear-gradient(90deg, #F39C12 0%, #D68910 100%);
}

.stat-bar-fill.precision {
  background: linear-gradient(90deg, #27AE60 0%, #1E8449 100%);
}

/* Botón Jugar */
.seleccion-armas-btn-jugar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  padding: 18px 32px;
  background: linear-gradient(135deg, #ABEBC6 0%, #82E0AA 100%);
  border: 4px solid #58D68D;
  border-radius: 16px;
  color: #1E8449;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 0 #2ECC71;
}

.seleccion-armas-btn-jugar:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 9px 0 #2ECC71, 0 15px 30px rgba(46, 204, 113, 0.4);
}

.seleccion-armas-btn-jugar:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #2ECC71;
}

.seleccion-armas-btn-jugar:disabled {
  background: linear-gradient(135deg, #E8E8E8 0%, #D0D0D0 100%);
  border-color: #BFBFBF;
  color: #999;
  cursor: not-allowed;
  box-shadow: 0 4px 0 #BFBFBF;
}

.btn-jugar-icono {
  font-size: 24px;
}

.btn-jugar-texto {
  letter-spacing: 1px;
}

/* Responsive para menú de selección de armas */
@media (max-width: 768px) {
  .seleccion-armas-contenido {
    padding: 25px;
    margin: 15px;
    width: calc(100% - 30px);
  }
  
  .seleccion-armas-titulo {
    font-size: 24px;
    margin-bottom: 20px;
  }
  
  .seleccion-armas-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
  }
  
  .tarjeta-arma {
    padding: 15px;
  }
  
  .tarjeta-arma-icono {
    font-size: 36px;
  }
  
  .tarjeta-arma-nombre {
    font-size: 16px;
  }
  
  .tarjeta-arma-desc {
    font-size: 12px;
  }
}

@media (max-width: 500px) {
  .seleccion-armas-contenido {
    padding: 20px;
    border-radius: 16px;
  }
  
  .seleccion-armas-titulo {
    font-size: 20px;
  }
  
  .seleccion-armas-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .tarjeta-arma {
    flex-direction: row;
    align-items: center;
    padding: 12px 15px;
    gap: 15px;
  }
  
  .tarjeta-arma-icono {
    font-size: 32px;
    flex-shrink: 0;
  }
  
  .tarjeta-arma-info {
    text-align: left;
    flex: 1;
  }
  
  .tarjeta-arma-stats {
    display: none;
  }
  
  .seleccion-armas-btn-jugar {
    padding: 14px 24px;
    font-size: 16px;
  }
}

/* ==================== FIN MENÚ DE SELECCIÓN DE ARMAS ==================== */

/* ==================== PANTALLA DE MUERTE CON SELECCIÓN DE ARMAS ==================== */
/* Requirements: 3.1, 3.2, 3.4 - Pantalla de muerte con menú de selección de armas */

#death-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9000;
  opacity: 1;
  transition: opacity 0.3s ease;
}

#death-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

.death-content {
  text-align: center;
  max-width: 800px;
  width: 90%;
  padding: 30px;
}

.death-title {
  font-size: 64px;
  font-weight: 900;
  color: #ff4444;
  text-shadow: 0 0 30px rgba(255, 68, 68, 0.6);
  margin-bottom: 10px;
  letter-spacing: 8px;
  animation: deathPulse 2s ease-in-out infinite;
}

@keyframes deathPulse {
  0%, 100% { 
    opacity: 1;
    transform: scale(1);
  }
  50% { 
    opacity: 0.8;
    transform: scale(1.02);
  }
}

.death-killer {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 30px;
}

.death-killer #killer-name {
  color: #ffaa00;
  font-weight: 700;
}

/* Contenedor de selección de armas en pantalla de muerte */
.death-weapon-selection {
  margin: 25px 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.death-weapon-selection .death-weapon-title {
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Grid de armas en pantalla de muerte */
.death-weapon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  max-width: 600px;
  margin: 0 auto;
}

/* Tarjeta de arma compacta para pantalla de muerte */
.death-weapon-card {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 15px 10px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
}

.death-weapon-card:hover {
  background: rgba(126, 200, 227, 0.15);
  border-color: rgba(126, 200, 227, 0.4);
  transform: translateY(-3px);
}

.death-weapon-card.seleccionada {
  background: rgba(126, 200, 227, 0.25);
  border-color: #7EC8E3;
  box-shadow: 0 0 20px rgba(126, 200, 227, 0.3);
}

.death-weapon-card .weapon-icon {
  font-size: 28px;
  margin-bottom: 8px;
  display: block;
}

.death-weapon-card .weapon-name {
  color: white;
  font-size: 13px;
  font-weight: 600;
}

.death-weapon-card.seleccionada .weapon-name {
  color: #7EC8E3;
}

/* Countdown de respawn */
.respawn-countdown {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.6);
  margin: 20px 0;
}

.respawn-countdown #respawn-timer {
  color: #ffaa00;
  font-weight: 700;
  font-size: 24px;
}

/* Botón de reaparecer */
.btn-reaparecer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 40px;
  background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
  border: none;
  border-radius: 14px;
  color: white;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 0 #2f855a, 0 8px 20px rgba(72, 187, 120, 0.3);
  margin-top: 10px;
}

.btn-reaparecer:hover:not(.disabled) {
  transform: translateY(-3px);
  box-shadow: 0 7px 0 #2f855a, 0 12px 30px rgba(72, 187, 120, 0.4);
}

.btn-reaparecer:active:not(.disabled) {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #2f855a;
}

.btn-reaparecer.disabled {
  background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
  box-shadow: 0 4px 0 #1a202c;
  cursor: not-allowed;
  opacity: 0.6;
}

.btn-reaparecer-icono {
  font-size: 22px;
  transition: transform 0.3s ease;
}

.btn-reaparecer:hover:not(.disabled) .btn-reaparecer-icono {
  transform: rotate(180deg);
}

/* Responsive para pantalla de muerte */
@media (max-width: 600px) {
  .death-title {
    font-size: 42px;
    letter-spacing: 4px;
  }
  
  .death-killer {
    font-size: 16px;
  }
  
  .death-weapon-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  
  .death-weapon-card {
    padding: 12px 8px;
  }
  
  .death-weapon-card .weapon-icon {
    font-size: 24px;
  }
  
  .death-weapon-card .weapon-name {
    font-size: 11px;
  }
  
  .btn-reaparecer {
    padding: 14px 30px;
    font-size: 16px;
  }
}

@media (max-width: 400px) {
  .death-weapon-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==================== FIN PANTALLA DE MUERTE ==================== */

/* ==================== SCOREBOARD STYLES ==================== */

/* Panel principal del scoreboard */
.scoreboard-panel {
  position: fixed;
  top: 20px;
  left: 20px;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 12px;
  padding: 15px;
  min-width: 200px;
  max-width: 280px;
  z-index: 500;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Header del scoreboard */
.scoreboard-header {
  color: #7EC8E3;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

/* Entrada de cada jugador */
.scoreboard-entry {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  margin: 4px 0;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.scoreboard-entry:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Corona del líder */
.scoreboard-crown {
  font-size: 16px;
  margin-right: 8px;
  animation: crownPulse 2s ease-in-out infinite;
}

@keyframes crownPulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 3px rgba(255, 215, 0, 0.5));
  }
  50% {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.8));
  }
}

/* Nombre del jugador */
.scoreboard-nombre {
  flex: 1;
  color: white;
  font-size: 14px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Contador de kills */
.scoreboard-kills {
  color: #7EC8E3;
  font-size: 16px;
  font-weight: 700;
  min-width: 30px;
  text-align: right;
}

/* Mensaje cuando no hay jugadores */
.scoreboard-empty {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  text-align: center;
  padding: 15px;
  font-style: italic;
}

/* Responsive para scoreboard */
@media (max-width: 600px) {
  .scoreboard-panel {
    top: 10px;
    left: 10px;
    min-width: 160px;
    max-width: 220px;
    padding: 10px;
  }
  
  .scoreboard-header {
    font-size: 12px;
    letter-spacing: 1px;
  }
  
  .scoreboard-entry {
    padding: 6px 8px;
  }
  
  .scoreboard-nombre {
    font-size: 12px;
  }
  
  .scoreboard-kills {
    font-size: 14px;
  }
  
  .scoreboard-crown {
    font-size: 14px;
    margin-right: 6px;
  }
}

/* ==================== FIN SCOREBOARD STYLES ==================== */


/* ==================== TRAINING STATS UI STYLES ==================== */
/* Requirements: 6.1, 6.2, 4.4 - UI de estadísticas de entrenamiento */

/* Panel de estadísticas de entrenamiento */
.training-stats-panel {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.85);
  border-radius: 12px;
  padding: 0;
  min-width: 180px;
  z-index: 500;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(126, 200, 227, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.training-stats-panel.hidden {
  opacity: 0;
  transform: translateX(20px);
  pointer-events: none;
}

/* Header del panel */
.training-stats-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 15px;
  background: linear-gradient(135deg, rgba(126, 200, 227, 0.2) 0%, rgba(91, 163, 192, 0.2) 100%);
  border-radius: 12px 12px 0 0;
  border-bottom: 1px solid rgba(126, 200, 227, 0.2);
}

.training-stats-icon {
  font-size: 18px;
}

.training-stats-title {
  color: #7EC8E3;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Contenido del panel */
.training-stats-content {
  padding: 12px 15px;
}

/* Fila de estadística */
.training-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
}

.training-stat-row .stat-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 500;
}

.training-stat-row .stat-value {
  color: white;
  font-size: 16px;
  font-weight: 700;
  min-width: 30px;
  text-align: right;
  transition: transform 0.2s ease, color 0.2s ease;
}

/* Animación cuando se actualiza el valor */
.training-stat-row .stat-value.stat-updated {
  transform: scale(1.3);
  color: #7EC8E3;
}

/* Divisor */
.training-stat-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 8px 0;
}

/* Fila de total */
.training-stat-row.total .stat-label {
  color: #7EC8E3;
  font-weight: 600;
}

.training-stat-row.total .stat-value {
  color: #7EC8E3;
  font-size: 18px;
}

/* Fila de precisión */
.training-stat-row.precision .stat-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}

.training-stat-row.precision .stat-value {
  color: #48bb78;
  font-size: 14px;
}

/* ==================== ZONE INDICATOR STYLES ==================== */
/* Requirement 4.4: Indicador de zona actual */

.zone-indicator {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.8);
  border-radius: 16px;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 600;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(126, 200, 227, 0.4);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

.zone-indicator.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.zone-indicator.hidden {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
}

.zone-indicator .zone-icon {
  font-size: 32px;
  animation: zoneIconPulse 1.5s ease-in-out infinite;
}

@keyframes zoneIconPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.zone-indicator .zone-name {
  color: white;
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Responsive para training stats */
@media (max-width: 600px) {
  .training-stats-panel {
    top: 10px;
    right: 10px;
    min-width: 150px;
  }
  
  .training-stats-header {
    padding: 10px 12px;
  }
  
  .training-stats-icon {
    font-size: 16px;
  }
  
  .training-stats-title {
    font-size: 12px;
  }
  
  .training-stats-content {
    padding: 10px 12px;
  }
  
  .training-stat-row .stat-label {
    font-size: 12px;
  }
  
  .training-stat-row .stat-value {
    font-size: 14px;
  }
  
  .zone-indicator {
    padding: 15px 25px;
  }
  
  .zone-indicator .zone-icon {
    font-size: 24px;
  }
  
  .zone-indicator .zone-name {
    font-size: 18px;
    letter-spacing: 1px;
  }
}

/* ==================== FIN TRAINING STATS UI STYLES ==================== */


/* ==================== HEALING BAR STYLES ==================== */
/* Requirements: 3.1 - Barra de progreso de curación */

#healing-bar-container {
  position: fixed;
  bottom: 120px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 12px;
  background: rgba(0, 0, 0, 0.7);
  border: 2px solid rgba(0, 255, 100, 0.5);
  border-radius: 6px;
  overflow: hidden;
  z-index: 900;
  opacity: 0;
  transition: opacity 0.2s ease;
}

#healing-bar-progress {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #00ff66 0%, #00cc55 50%, #00aa44 100%);
  border-radius: 4px;
  transition: width 0.1s ease;
  box-shadow: 0 0 10px rgba(0, 255, 100, 0.5);
}

#healing-bar-text {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  color: #00ff66;
  font-size: 14px;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
}

/* Animación de pulso para la barra de curación */
@keyframes healingPulse {
  0%, 100% {
    box-shadow: 0 0 10px rgba(0, 255, 100, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(0, 255, 100, 0.8);
  }
}

#healing-bar-container.active #healing-bar-progress {
  animation: healingPulse 1s ease-in-out infinite;
}
/* ==================== WEAPON SELECTOR LOCAL ==================== */

.weapon-selector-local {
  position: fixed;
  bottom: 180px;
  right: 20px;
  background: rgba(0, 0, 0, 0.8);
  border: 2px solid #00ff00;
  border-radius: 10px;
  padding: 10px;
  backdrop-filter: blur(5px);
  z-index: 1000;
}

.weapon-selector-local.hidden {
  display: none;
}

.weapon-selector-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  min-width: 240px;
}

.weapon-selector-item {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  padding: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  position: relative;
  min-height: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.weapon-selector-item:hover {
  background: rgba(0, 255, 0, 0.2);
  border-color: #00ff00;
  transform: scale(1.05);
}

.weapon-selector-item.active {
  background: rgba(0, 255, 0, 0.3);
  border-color: #00ff00;
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.weapon-selector-item .weapon-icon {
  font-size: 20px;
  margin-bottom: 2px;
}

.weapon-selector-item .weapon-name {
  color: white;
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
}

.weapon-selector-item .weapon-key {
  position: absolute;
  top: 2px;
  right: 4px;
  background: rgba(0, 0, 0, 0.7);
  color: #00ff00;
  padding: 1px 3px;
  border-radius: 2px;
  font-size: 8px;
  font-weight: bold;
}

/* Animación de aparición */
@keyframes weaponSelectorFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.weapon-selector-local:not(.hidden) {
  animation: weaponSelectorFadeIn 0.3s ease-out;
}