/* ===================== SHARED SPA BASE STYLES ===================== */
/* Estilos combinados para index, login y games en SPA */

@font-face {
  font-family: 'ChauPhilomeneOne-Regular';
  src: url('/01_Yo_nunca/src/fuentes/ChauPhilomeneOne-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'ChauPhilomeneOne-Italic';
  src: url('/01_Yo_nunca/src/fuentes/ChauPhilomeneOne-Italic.ttf') format('truetype');
  font-weight: normal;
  font-style: italic;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100vh;
  width: 100%;
  font-family: 'ChauPhilomeneOne-Regular', sans-serif;
  overflow: hidden;
  background: linear-gradient(90deg, #014AAD, #C96CE6);
  background-attachment: fixed;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* ===================== FIXED ELEMENTS FOR GAMES VIEW ===================== */
/* Logo y Dropdown fijos en el viewport, fuera del SPA container */

.logo-fixed-games {
  position: fixed;
  top: 3vh;
  left: 3vw;
  width: clamp(80px, 10vw, 140px);
  height: auto;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  pointer-events: none;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.logo-fixed-games.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#dropdown-fixed-games,
.dropdown-fixed-games {
  position: fixed !important;
  top: 3vh !important;
  right: 3vw !important;
  left: auto !important;
  bottom: auto !important;
  transform: none !important;
  margin: 0 !important;
  z-index: 1100 !important;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  pointer-events: none;
  display: block !important;
  width: auto !important;
  max-width: none !important;
}

#dropdown-fixed-games.visible,
.dropdown-fixed-games.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Botón dropdown más grande */
#dropdown-fixed-games .dropdown-btn-large,
.dropdown-btn-large {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem) !important;
  font-family: 'ChauPhilomeneOne-Regular', sans-serif !important;
  font-weight: 500 !important;
  border-radius: 50px !important;
  background: rgba(30, 30, 30, 0.95) !important;
  border: 2px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 30px rgba(201, 108, 230, 0.2) !important;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease !important;
  white-space: nowrap !important;
}

#dropdown-fixed-games .dropdown-btn-large:hover,
.dropdown-btn-large:hover {
  background: rgba(50, 50, 50, 0.95) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.5), 0 0 40px rgba(201, 108, 230, 0.3) !important;
  transform: translateY(-2px);
}

#dropdown-fixed-games .dropdown-icon,
.dropdown-btn-large .dropdown-icon {
  font-size: 1.2em !important;
}

#dropdown-fixed-games .dropdown-text,
.dropdown-btn-large .dropdown-text {
  font-weight: 500 !important;
  font-size: 1.5rem !important;
}

/* Menú dropdown más grande */
.dropdown-menu-large {
  min-width: 320px !important;
  padding: 1rem 0 !important;
  font-size: 1.3rem !important;
  border-radius: 16px !important;
  background: rgba(30, 30, 30, 0.98) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
  backdrop-filter: blur(20px);
}

.dropdown-menu-large .dropdown-item {
  padding: 1rem 1.8rem !important;
  font-size: 1.2rem !important;
  color: #fff !important;
  transition: all 0.2s ease !important;
}

.dropdown-menu-large .dropdown-item:hover {
  background: rgba(201, 108, 230, 0.2) !important;
  color: #fff !important;
}

.dropdown-menu-large .dropdown-divider {
  border-color: rgba(255, 255, 255, 0.1) !important;
  margin: 0.5rem 0 !important;
}

/* ===================== INDEX VIEW STYLES ===================== */

#view-index .container-index {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  width: 100vw;
  height: 100vh;
}

#view-index .logo-index {
  font-size: 8vw;
  font-family: 'Arial', sans-serif;
  font-weight: bold;
  width: 30vw;
  height: auto;
  margin-bottom: 5vh;
  margin-top: -4vh;
}

#view-index .main-heading-index {
  font-size: 4vw;
  font-weight: bold;
  margin-bottom: 2vh;
  margin-top: 0vh;
  font-family: 'ChauPhilomeneOne-Italic', sans-serif;
  letter-spacing: 0.3vw;
  text-shadow: 0.1vw 0.1vw 0.2vw rgb(244, 29, 29), -0.1vw -0.1vw 0.2vw rgb(0, 255, 255);
  transition: transform 0.3s ease, text-shadow 0.3s ease;
  color: white;
}

#view-index .rowContainer {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  border-radius: 5vh;
  background-color: transparent;
  width: 100vw;
  height: auto;
  gap: 2vw;
}

#view-index .btn-entrar-index {
  background-color: #29211d;
  color: white;
  width: auto;
  padding: 1vh 4vw;
  font-family: 'ChauPhilomeneOne-Regular', sans-serif;
  font-size: 4vw;
  border-radius: 12vh;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  text-align: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

#view-index .btn-entrar-index:hover {
  background-color: #4b3810;
  transform: translateY(-0.5vh);
  box-shadow: 1vw 1vw 2vw rgba(0, 0, 0, 0.4);
}

#view-index .btn-entrar-index:active {
  background-color: #30aabb;
  transform: translateY(0.5vh);
  box-shadow: 0.5vw 0.5vw 1vw rgba(0, 0, 0, 0.3);
}

#view-index .btn-info {
  background-color: #29211d;
  color: white;
  width: 6vw;
  height: auto;
  aspect-ratio: 1 / 1;
  font-family: 'ChauPhilomeneOne-Regular', sans-serif;
  text-decoration: none;
  border-radius: 50%;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

#view-index .btn-info:hover {
  background-color: #4b3810;
  transform: translateY(-0.5vh);
  box-shadow: 1vw 1vw 2vw rgba(0, 0, 0, 0.4);
}

#view-index .icon-image {
  width: 60%;
  height: 60%;
}

/* Footer solo visible cuando view-index está activo */
#view-index .footer-index {
  font-family: 'ChauPhilomeneOne-Regular', sans-serif;
  color: #ffffff;
  font-size: 2vw;
  text-align: center;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  position: absolute;
  bottom: 8px;
  left: 0;
  width: 100%;
  background-color: transparent;
  padding: 10px 0;
  z-index: 10;
}

#view-index .ai-icon {
  height: 2vw;
  width: auto;
  vertical-align: middle;
  margin-left: 0.2vw;
  filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.5));
}

/* ===================== LOGIN VIEW STYLES ===================== */

#view-login .container-login {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#view-login .logo-container-login {
  margin-bottom: 2vh;
}

#view-login .logo-login {
  font-size: 8vw;
  font-family: 'Arial', sans-serif;
  font-weight: bold;
  width: 20vw;
  height: auto;
  margin-bottom: 2vh;
  margin-top: 2vh;
}

#view-login .login-form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#view-login .input-container-login {
  display: flex;
  align-items: center;
  margin-bottom: 2vh;
  background-color: #f2f2f2;
  border-radius: 6vh;
  padding: 1vh 2vw;
  width: 30vw;
  height: auto;
}

#view-login .icon {
  width: 3vw;
  height: auto;
  margin-right: 1vw;
}

#view-login .input-field {
  border: none;
  background-color: transparent;
  outline: none;
  font-size: 1.8vw;
  width: 100%;
  padding: 1vw;
  font-family: 'ChauPhilomeneOne-Regular', sans-serif;
}

#view-login .button-container-login {
  display: flex;
  flex-direction: column;
  gap: 1vh;
}

#view-login .btn-entrar-login,
#view-login .btn-cancelar {
  background-color: #29211d;
  color: white;
  padding: 1.5vw 4vh;
  font-size: 1.8vw;
  text-decoration: none;
  border-radius: 6vh;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  font-family: 'ChauPhilomeneOne-Regular', sans-serif;
  width: 20vw;
  height: auto;
  border: none;
  cursor: pointer;
}

#view-login .btn-entrar-login:hover {
  background-color: #4b3810;
  transform: translateY(-0.5vh);
  box-shadow: 1vw 1vw 2vw rgba(0, 0, 0, 0.4);
}

#view-login .btn-cancelar:hover {
  background-color: #fd5a90;
  transform: translateY(-0.5vh);
  box-shadow: 1vw 1vw 2vw rgba(0, 0, 0, 0.4);
}

#view-login .btn-cancelar:active {
  background-color: #fd5a90;
  transform: translateY(0.5vh);
  box-shadow: 0.5vw 0.5vw 1vw rgba(0, 0, 0, 0.3);
}

/* ===================== GAMES VIEW STYLES ===================== */

#view-games {
  overflow-y: auto;
  overflow-x: hidden;
}

#view-games .container-games {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  text-align: center;
  position: relative;
  z-index: 1;
  align-items: center;
  justify-content: flex-start;
  padding-top: 0.5vh;
}

#view-games .header-container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  padding: 0;
  max-width: 100vw;
}

/* Logo y dropdown solo visibles cuando view-games está activo */
#view-games .logo-games {
  width: 5vw;
  height: auto;
  position: absolute;
  top: 2vh;
  left: 1vw;
  z-index: 10;
}

#view-games .header-container .dropdown {
  position: absolute;
  top: 2vh;
  right: 1vw;
  z-index: 10;
}

#view-games .title-container {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 2vh;
}

#view-games .Lettering {
  font-size: 8vw;
  font-family: 'Arial', sans-serif;
  font-weight: bold;
  width: 30vw;
  height: auto;
  margin-top: 6vh;
}

#view-games .core-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  justify-items: center;
  gap: 2vw;
  margin-top: 1vh;
  margin-bottom: 3vh;
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

#view-games .game-list {
  display: flex;
  flex-direction: column;
  gap: 4vh;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 1.5vw;
  border-radius: 3vh;
  margin-top: 0.5vh;
  margin-bottom: 10vh;
  grid-column: 2;
  justify-self: center;
}

#view-games .game-btn {
  background-color: #29211d;
  color: white;
  padding: 1.5vw 1vh;
  font-size: 3vw;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  border-radius: 8vh;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  font-family: 'ChauPhilomeneOne-Regular', sans-serif;
  width: 28vw;
  height: 12vh;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

#view-games .game-btn:hover {
  background-color: #4b3810;
  transform: translateY(-0.5vh);
  box-shadow: 1vw 1vw 2vw rgba(0, 0, 0, 0.4);
}

#view-games .instructions-text {
  font-size: 2.5vw;
  font-family: 'ChauPhilomeneOne-Regular', sans-serif;
  color: #29211d;
  background-color: transparent;
  margin-top: -2vh;
  border-radius: 2vh;
  text-align: center;
  width: 100%;
  max-width: 28vw;
  height: auto;
  overflow: hidden;
  display: flex;
  align-items: top;
  justify-content: center;
  grid-column: 3;
  justify-self: center;
}

/* Footer solo visible cuando view-games está activo */
#view-games .footer-games {
  font-family: 'ChauPhilomeneOne-Regular', sans-serif;
  color: #ffffff;
  font-size: 1vw;
  text-align: center;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 100%;
  background-color: transparent;
  padding: 10px 0;
  z-index: 10;
}

/* Halloween Pumpkin - solo visible cuando view-games está activo */
#view-games .halloween-pumpkin-container {
  position: absolute;
  bottom: 2vh;
  right: 2vw;
  width: 10vw;
  height: auto;
  z-index: 10;
}

/* ===================== MODALS (Games View) ===================== */

.control-modal {
  background: linear-gradient(180deg, rgba(26, 240, 162, 0.8) 0%, rgba(75, 143, 229, 0.8) 100%);
  border: 0;
  backdrop-filter: blur(6px);
  color: #fff;
  border-radius: 2.4vw;
  overflow: hidden;
  box-shadow: 0 1.6vw 3.2vw rgba(0,0,0,0.25);
}

.control-modal__header {
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.control-modal__title {
  font-family: 'ChauPhilomeneOne-Regular', sans-serif;
  font-size: 2.2vw;
  text-shadow: 0 0.2vw 0.4vw rgba(0,0,0,0.35);
  color: #ffffff;
}

.control-modal__body {
  padding: 2.2vw;
}

.control-modal__text {
  font-size: 1.3vw;
  opacity: 0.95;
  margin-bottom: 3vh;
  font-family: 'Roboto', 'Arial', sans-serif;
}

.control-modal__center {
  width: 100%;
  display: flex;
  justify-content: center;
}

.qr-frame {
  padding: 1.2vw;
  border-radius: 1.8vw;
  background: linear-gradient(145deg, rgba(255,255,255,0.25), rgba(255,255,255,0.05));
  box-shadow: 0 1vw 2vw rgba(0,0,0,0.25), inset 0 0 0.6vw rgba(255,255,255,0.25);
}

#qr-control-partida {
  background: #ffffff;
  padding: 0.6vw;
  border-radius: 1.2vw;
  display: inline-block;
}

.control-modal__footer {
  border-top: 1px solid rgba(255,255,255,0.15);
  display: flex;
  gap: 1vw;
  justify-content: flex-end;
}

.control-modal .btn-action {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 1.2vw;
  padding: 0.8vw 1.4vw;
}

.control-modal .btn-action:hover {
  background: rgba(255,255,255,0.25);
}

/* ===================== TEMPORIZADOR OVERLAY ===================== */

.temporizador-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.92);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(10px);
  animation: fadeInOverlay 0.5s ease-in-out;
}

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

.temporizador-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.temporizador-container {
  position: relative;
  text-align: center;
  background: linear-gradient(180deg, rgba(26, 240, 162, 0.95) 0%, rgba(75, 143, 229, 0.95) 100%);
  padding: 3vw 3.5vw 2vw 3.5vw;
  border-radius: 3vw;
  box-shadow: 
    0 2vw 4vw rgba(0,0,0,0.4),
    0 0 2vw rgba(255,255,255,0.3),
    inset 0 0 1.5vw rgba(255,255,255,0.2);
  border: 2px solid rgba(255,255,255,0.3);
  z-index: 2;
  animation: containerEntrance 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: visible;
  max-width: 90vw;
  max-height: 80vh;
  margin-bottom: 2vh;
}

@keyframes containerEntrance {
  0% {
    transform: scale(0.5) rotate(-5deg);
    opacity: 0;
  }
  60% {
    transform: scale(1.05) rotate(2deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

.temporizador-circle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.3), transparent);
  animation: floatCircle 4s ease-in-out infinite;
}

.temporizador-circle-1 {
  width: 150px;
  height: 150px;
  top: -50px;
  left: -50px;
  animation-duration: 6s;
}

.temporizador-circle-2 {
  width: 200px;
  height: 200px;
  bottom: -80px;
  right: -80px;
  animation-delay: 1s;
  animation-duration: 7s;
}

.temporizador-circle-3 {
  width: 100px;
  height: 100px;
  top: 50%;
  right: -30px;
  animation-delay: 2s;
  animation-duration: 5s;
}

@keyframes floatCircle {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.3;
  }
  50% {
    transform: translate(20px, -20px) scale(1.1);
    opacity: 0.5;
  }
}

.temporizador-content {
  position: relative;
  z-index: 3;
}

.temporizador-lettering-wrapper {
  animation: letteringFloat 3s ease-in-out infinite;
}

@keyframes letteringFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.02); }
}

.temporizador-lettering {
  max-width: 70vw !important;
  max-height: 20vh !important;
  width: auto;
  height: auto;
  margin: 0 auto 2vh auto !important;
  object-fit: contain;
  filter: drop-shadow(0 0.8vw 1.5vw rgba(0,0,0,0.5)) 
          drop-shadow(0 0 2vw rgba(255,255,255,0.3));
  display: block;
  animation: logoGlow 2s ease-in-out infinite;
}

@keyframes logoGlow {
  0%, 100% {
    filter: drop-shadow(0 0.8vw 1.5vw rgba(0,0,0,0.5)) 
            drop-shadow(0 0 2vw rgba(255,255,255,0.3));
  }
  50% {
    filter: drop-shadow(0 0.8vw 1.5vw rgba(0,0,0,0.5)) 
            drop-shadow(0 0 3vw rgba(255,255,255,0.6));
  }
}

.temporizador-display-wrapper {
  position: relative;
  display: inline-block;
}

.temporizador-display {
  font-family: 'ChauPhilomeneOne-Italic', sans-serif;
  font-size: 12vw;
  color: #ffffff;
  text-shadow: 
    0 0 1vw rgba(255,255,255,0.8),
    0 0 2vw rgba(255,255,255,0.6),
    0 0.8vw 1.5vw rgba(0,0,0,0.6);
  margin: 0;
  font-weight: bold;
  position: relative;
  z-index: 2;
  animation: pulseNumber 1.5s ease-in-out infinite;
}

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

.temporizador-display-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(255,255,255,0.3), transparent 70%);
  animation: glowPulse 2s ease-in-out infinite;
  z-index: 1;
}

@keyframes glowPulse {
  0%, 100% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

.temporizador-text {
  font-family: 'ChauPhilomeneOne-Italic', sans-serif;
  font-size: 2vw;
  color: #ffffff;
  opacity: 0.95;
  text-shadow: 
    0 0.3vw 0.6vw rgba(0,0,0,0.4),
    0 0 1vw rgba(255,255,255,0.3);
  animation: textFade 3s ease-in-out infinite;
  font-weight: 600;
  letter-spacing: 0.05em;
}

@keyframes textFade {
  0%, 100% { opacity: 0.95; }
  50% { opacity: 1; }
}

.temporizador-btn-cerrar {
  font-family: 'ChauPhilomeneOne-Italic', sans-serif;
  font-size: 2.2vw;
  padding: 1vw 2.5vw;
  border-radius: 3vw;
  font-weight: bold;
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,255,255,0.85));
  color: #333;
  border: 2px solid rgba(255,255,255,0.5);
  box-shadow: 
    0 0.4vw 1.2vw rgba(0,0,0,0.3),
    inset 0 0.15vw 0.3vw rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5vw;
  margin: 1.5vh auto 1vh auto;
  position: relative;
  overflow: hidden;
}

.temporizador-btn-cerrar:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 1vw 2vw rgba(0,0,0,0.4),
    inset 0 0.2vw 0.4vw rgba(255,255,255,0.7);
}

.temporizador-btn-icon {
  font-size: 2.5vw;
  line-height: 1;
}

.temporizador-btn-text {
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ===================== INTRO JUGADOR VIEW STYLES ===================== */

#view-intro-jugador .container-intro-jugador {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

#view-intro-jugador .logo-container-intro-jugador {
  margin-top: 4vh;
}

#view-intro-jugador .logo-intro-jugador {
  font-size: 8vw;
  font-family: 'Arial', sans-serif;
  font-weight: bold;
  width: 60vw;
  height: auto;
  margin-top: 2vh;
  margin-left: auto;
  margin-right: auto;
}

#view-intro-jugador .main-heading-intro-jugador {
  font-size: 8vw;
  font-weight: bold;
  margin-bottom: 4vh;
  margin-top: 4vh;
  font-family: 'ChauPhilomeneOne-Regular', sans-serif;
  letter-spacing: 0.3vw;
  color: white;
  text-shadow: 
    -2px -2px 0 #000,
    2px -2px 0 #000,
    -2px 2px 0 #000,
    2px 2px 0 #000,
    0 0 10px rgba(0, 0, 0, 0.8);
  transition: transform 0.3s ease, text-shadow 0.3s ease;
  line-height: 1.2;
}

#view-intro-jugador .core-container-intro-jugador {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2vh;
  margin-bottom: 4vh;
}

#view-intro-jugador .input-container-intro-jugador {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  margin-bottom: 1vh;
  background-color: #f2f2f2;
  border-radius: 4vh;
  padding: 1vw 1vh;
  width: 80vw;
  height: 9vh;
}

#view-intro-jugador .input-container-intro-jugador .icon {
  width: 5vw;
  max-width: 35px;
  height: auto;
  margin-right: 1vw;
}

#view-intro-jugador .input-container-intro-jugador .input-field {
  border: none;
  background-color: transparent;
  outline: none;
  font-size: 6vw;
  width: 100%;
  padding: 1vw;
  font-family: 'ChauPhilomeneOne-Regular', sans-serif;
}

#view-intro-jugador .button-container-intro-jugador {
  display: flex;
  flex-direction: column;
  gap: 2vh;
  width: 80%;
  max-width: 350px;
  margin-top: 2vh;
  margin-bottom: 2vh;
}

#view-intro-jugador .btn-entrar-intro-jugador {
  background-color: #29211d;
  color: white;
  padding: 4vw 4vh;
  font-size: 6vw;
  text-decoration: none;
  border-radius: 4vh;
  transition: background-color 0.3s ease;
  font-family: 'ChauPhilomeneOne-Regular', sans-serif;
  width: 100%;
  border: none;
  cursor: pointer;
}

#view-intro-jugador .btn-entrar-intro-jugador:hover {
  background-color: #4b3810;
  transform: translateY(-0.5vh);
  box-shadow: 1vw 1vw 2vw rgba(0, 0, 0, 0.4);
}

#view-intro-jugador .error-message-intro {
  color: #ff1010;
  font-size: 4vw;
  font-weight: 700;
  margin-top: 1vh;
  text-align: center;
  -webkit-text-stroke: 0.5px #ffffff;
  text-shadow: 0 0 1px rgba(255,255,255,0.9);
}

/* ===================== ESPERA JUGADOR VIEW STYLES ===================== */

#view-espera-jugador .container-espera-jugador {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

#view-espera-jugador .logo-container-espera-jugador {
  margin-top: 4vh;
}

#view-espera-jugador .logo-espera-jugador {
  font-size: 8vw;
  font-family: 'Arial', sans-serif;
  font-weight: bold;
  width: 60vw;
  height: auto;
  margin-top: 4vh;
  margin-left: auto;
  margin-right: auto;
}

#view-espera-jugador .lottie-container-espera {
  width: 50%;
  height: 30%;
  background-color: transparent;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  z-index: 2;
}

#view-espera-jugador .main-heading-espera-jugador {
  color: white !important;
  font-size: 10vw;
  font-weight: bold;
  margin-bottom: 2vh;
  margin-top: 2vh;
  font-family: 'ChauPhilomeneOne-Regular', sans-serif;
  letter-spacing: 0.2vw;
  text-shadow: none;
  text-align: center;
  line-height: 1.1;
}

#view-espera-jugador .third-heading-espera-jugador {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 8vw;
  font-weight: bold;
  margin-bottom: 3vh;
  margin-top: 1vh;
  font-family: 'ChauPhilomeneOne-Regular', sans-serif;
  letter-spacing: 0.2vw;
  text-shadow: 
    2px 2px 6px rgba(0, 0, 0, 0.7),
    0 0 10px rgba(255, 255, 255, 0.4);
  text-align: center;
}

#view-espera-jugador .actions-espera-jugador {
  display: flex;
  justify-content: center;
}

#view-espera-jugador .btn-volver {
  background: linear-gradient(90deg, #2563eb 60%, #38bdf8 100%);
  color: #fff;
  border: none;
  padding: 1em 2.2em;
  border-radius: 2.5em;
  font-size: 1.2em;
  font-family: 'ChauPhilomeneOne-Regular', sans-serif;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(56,189,248,0.10);
  transition: background 0.2s, transform 0.1s;
}

#view-espera-jugador .btn-volver:hover {
  background: linear-gradient(90deg, #1e40af 60%, #0ea5e9 100%);
  transform: translateY(-2px) scale(1.02);
}

/* ===================== POPUP CONFIRMACIÓN (ESPERA JUGADOR) ===================== */

#view-espera-jugador .confirm-popup-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease-out;
}

#view-espera-jugador .confirm-popup-content {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
  border-radius: 2.5em;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  padding: 3em 2.5em 2.5em 2.5em;
  text-align: center;
  max-width: 90vw;
  width: 400px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  animation: slideIn 0.3s ease-out;
  font-family: 'ChauPhilomeneOne-Regular', sans-serif;
}

#view-espera-jugador .confirm-popup-icon {
  font-size: 4em;
  margin-bottom: 0.5em;
  animation: pulse 2s infinite;
}

#view-espera-jugador .confirm-popup-title {
  font-size: 3em;
  margin-bottom: 0.8em;
  color: #1e293b;
  font-weight: 700;
  line-height: 1.3;
}

#view-espera-jugador .confirm-popup-message {
  font-size: 1.1em;
  color: #64748b;
  margin-bottom: 2em;
  line-height: 1.5;
}

#view-espera-jugador .confirm-popup-buttons {
  display: flex;
  gap: 1.5em;
  justify-content: center;
  align-items: center;
}

#view-espera-jugador .confirm-btn {
  padding: 1em 2.5em;
  border: none;
  border-radius: 2em;
  font-size: 1.2em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 120px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#view-espera-jugador .confirm-btn-no {
  background: linear-gradient(90deg, #64748b 60%, #94a3b8 100%);
  color: #fff;
}

#view-espera-jugador .confirm-btn-no:hover {
  background: linear-gradient(90deg, #475569 60%, #64748b 100%);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 16px rgba(100, 116, 139, 0.3);
}

#view-espera-jugador .confirm-btn-yes {
  background: linear-gradient(90deg, #dc2626 60%, #ef4444 100%);
  color: #fff;
}

#view-espera-jugador .confirm-btn-yes:hover {
  background: linear-gradient(90deg, #b91c1c 60%, #dc2626 100%);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.3);
}

/* ===================== HALLOWEEN SPIDER BACKGROUND ===================== */

.halloween-spider-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -0.5;
  pointer-events: none;
  opacity: 0.6;
}

/* Animaciones para popup */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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