/* ===================== TEMA HALLOWEEN ===================== */

/* Aplicar solo cuando el tema Halloween este activo */
body.halloween-theme {
  /* Gradiente de fondo principal para Halloween */
  background: linear-gradient(45deg, rgb(255, 117, 24), rgb(0, 0, 0)) !important;
  background-attachment: fixed !important;
  
  /* Efectos de fondo adicionales */
  position: relative;
  overflow-x: hidden;
}

/* ===================== TELARAÑAS ===================== */
/* Telarañas removidas para dar espacio a animaciones Lottie personalizadas */

/* ===================== CALABAZA HALLOWEEN LOTTIE ===================== */
body.halloween-theme .halloween-pumpkin-container {
  position: fixed;
  left: 15%;
  top: 50%;
  transform: translateY(-50%);
  width: 280px;
  height: 280px;
  z-index: 1000;
  pointer-events: none;
}

/* Responsive para móviles */
@media (max-width: 768px) {
  body.halloween-theme .halloween-pumpkin-container {
    width: 220px;
    height: 220px;
    left: 10%;
    top: 50%;
    transform: translateY(-50%);
  }
}

@media (max-width: 480px) {
  body.halloween-theme .halloween-pumpkin-container {
    width: 180px;
    height: 180px;
    left: 5%;
    top: 50%;
    transform: translateY(-50%);
  }
}

/* Lottie araña de fondo para intro_jugador: por encima del bg, debajo de UI */
body.halloween-theme .halloween-spider-bg {
  position: fixed;
  inset: 0;
  z-index: -0.5; /* por debajo de cualquier contenido con z>=0, por encima del bg */
  pointer-events: none;
}

/* Calabaza fija abajo-derecha para yonunca_frase */
body.halloween-theme .halloween-pumpkin-frase {
  position: fixed;
  right: 5vw;
  bottom: 10vh;
  width: 240px;
  height: 240px;
  z-index: 1000;
  pointer-events: none;
}

@media (max-width: 768px) {
  body.halloween-theme .halloween-pumpkin-frase {
    width: 200px;
    height: 200px;
    right: 4vw;
    bottom: 8vh;
  }
}

@media (max-width: 480px) {
  body.halloween-theme .halloween-pumpkin-frase {
    width: 160px;
    height: 160px;
    right: 3vw;
    bottom: 6vh;
  }
}

/* ===================== MURCIÉLAGOS VOLANDO ===================== */
body.halloween-theme .bat-1 {
  position: fixed;
  top: 15%;
  left: -50px;
  width: 30px;
  height: 20px;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 20"><path d="M15 2 L5 8 L8 15 L15 12 L22 15 L25 8 L15 2 Z" fill="rgba(0,0,0,0.7)"/></svg>') no-repeat;
  background-size: contain;
  z-index: 999;
  animation: bat-fly-1 12s linear infinite;
}

body.halloween-theme .bat-2 {
  position: fixed;
  top: 25%;
  right: -50px;
  width: 25px;
  height: 18px;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 20"><path d="M15 2 L5 8 L8 15 L15 12 L22 15 L25 8 L15 2 Z" fill="rgba(0,0,0,0.6)"/></svg>') no-repeat;
  background-size: contain;
  z-index: 999;
  animation: bat-fly-2 15s linear infinite;
}

body.halloween-theme .bat-3 {
  position: fixed;
  top: 70%;
  left: -40px;
  width: 20px;
  height: 15px;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 20"><path d="M15 2 L5 8 L8 15 L15 12 L22 15 L25 8 L15 2 Z" fill="rgba(0,0,0,0.5)"/></svg>') no-repeat;
  background-size: contain;
  z-index: 999;
  animation: bat-fly-3 18s linear infinite;
}

/* ===================== PARTÍCULAS DE HOJAS ===================== */
body.halloween-theme .leaf-particle {
  position: fixed;
  width: 15px;
  height: 15px;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15 15"><path d="M7.5 1 L12 4 L10 8 L7.5 12 L5 8 L3 4 Z" fill="rgba(255,165,0,0.6)"/></svg>') no-repeat;
  background-size: contain;
  z-index: 998;
  animation: leaf-fall 8s linear infinite;
}

/* ===================== EFECTOS EN BOTONES ===================== */
body.halloween-theme .btn, 
body.halloween-theme button,
body.halloween-theme input[type="button"],
body.halloween-theme input[type="submit"] {
  position: relative;
  border-radius: 8px !important;
  box-shadow: 0 4px 15px rgba(255, 117, 24, 0.3) !important;
  transition: all 0.3s ease !important;
}

/* Botón específico de navegación en yonunca_stats (evita position:relative genérico) */
body.halloween-theme .halloween-stats-btn {
  position: absolute !important; /* permite anclar al canvas */
}

/* Botón "Reiniciar Juego" en yonunca_game: mantener fixed (no relative) */
body.halloween-theme .reiniciar {
  position: fixed !important;
}

/* Botón "Cerrar" de stats_jugador para Halloween */
body.halloween-theme #close-button {
  background: linear-gradient(45deg, rgb(255, 117, 24), rgb(200, 50, 0)) !important;
  border: 2px solid rgb(255, 117, 24) !important;
  color: #000 !important;
  box-shadow: 0 0 15px rgba(255, 117, 24, 0.5) !important;
  font-weight: bold !important;
}

body.halloween-theme #close-button:hover {
  background: linear-gradient(45deg, rgb(255, 140, 50), rgb(220, 70, 0)) !important;
  box-shadow: 0 0 20px rgba(255, 117, 24, 0.8) !important;
  transform: translateY(-2px) !important;
}

body.halloween-theme .btn:hover, 
body.halloween-theme button:hover,
body.halloween-theme input[type="button"]:hover,
body.halloween-theme input[type="submit"]:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(255, 117, 24, 0.5) !important;
  filter: brightness(1.1) !important;
}

/* ===================== EFECTOS EN TARJETAS/CONTENEDORES ===================== */
body.halloween-theme .card,
body.halloween-theme .container,
body.halloween-theme .panel,
body.halloween-theme .box {
  position: relative;
  border-radius: 12px !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
  border: 1px solid rgba(255, 117, 24, 0.3) !important;
  background: rgba(0, 0, 0, 0.1) !important;
  backdrop-filter: blur(10px) !important;
}

/* ===================== CONTENEDOR PRINCIPAL TRANSPARENTE ===================== */
body.halloween-theme .container {
  background: transparent !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
  border: none !important;
}

/* ===================== LISTA DE JUEGOS TRANSPARENTE ===================== */
body.halloween-theme .game-list {
  background: transparent !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
  border: none !important;
}

/* ===================== BOTONES DE JUEGO HALLOWEEN ===================== */
body.halloween-theme .game-btn {
  background: rgba(0, 0, 0, 0.7) !important;
  border: 2px solid rgba(255, 117, 24, 0.8) !important;
  color: #FF7518 !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
  box-shadow: 0 4px 15px rgba(255, 117, 24, 0.4) !important;
  backdrop-filter: blur(5px) !important;
  transition: all 0.3s ease !important;
}

body.halloween-theme .game-btn:hover {
  background: rgba(255, 117, 24, 0.2) !important;
  border-color: #FF7518 !important;
  color: #FFB366 !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 6px 20px rgba(255, 117, 24, 0.6) !important;
  text-shadow: 0 0 10px rgba(255, 117, 24, 0.8) !important;
}

/* ===================== TÍTULO PRINCIPAL HALLOWEEN ===================== */
body.halloween-theme .main-title {
  color: #FF7518 !important;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8) !important;
  font-weight: bold !important;
  position: relative !important;
}

body.halloween-theme .main-title::after {
  content: '🎃';
  position: absolute;
  right: -40px;
  top: 0;
  font-size: 0.8em;
  animation: pumpkin-bounce 2s ease-in-out infinite;
}

/* ===================== HEADER TRANSPARENTE ===================== */
body.halloween-theme .header-container {
  background: transparent !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
  border: none !important;
}

/* ===================== LOGO HALLOWEEN ===================== */
/* Logo oculto solo en games.html - regla específica más abajo */

/* ===================== BOTÓN DE AJUSTES HALLOWEEN ===================== */
body.halloween-theme .settings-btn {
  background: rgba(0, 0, 0, 0.7) !important;
  border: 2px solid rgba(255, 117, 24, 0.8) !important;
  color: #FF7518 !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
  box-shadow: 0 4px 15px rgba(255, 117, 24, 0.4) !important;
  backdrop-filter: blur(5px) !important;
  position: relative !important;
  z-index: 9999 !important;
  pointer-events: auto !important;
}

body.halloween-theme .settings-btn:hover {
  background: rgba(255, 117, 24, 0.2) !important;
  border-color: #FF7518 !important;
  color: #FFB366 !important;
  text-shadow: 0 0 10px rgba(255, 117, 24, 0.8) !important;
  z-index: 9999 !important;
}

/* ===================== HEADER CON MÁXIMA PRIORIDAD ===================== */
body.halloween-theme .header-container {
  background: transparent !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
  border: none !important;
  position: relative !important;
  z-index: 9998 !important;
}

/* ===================== ELEMENTOS INTERACTIVOS DEL HEADER ===================== */
body.halloween-theme .header-container * {
  position: relative !important;
  z-index: 9999 !important;
  pointer-events: auto !important;
}

/* Logo oculto solo en games.html - regla específica más abajo */

/* ===================== DROPDOWN HALLOWEEN ===================== */
body.halloween-theme .dropdown {
  position: fixed !important;
  top: 2vh !important;
  right: 1vw !important;
  z-index: 10000 !important;
  transform: none !important;
  margin: 0 !important;
  padding: 0 !important;
  max-width: calc(100vw - 2vw) !important;
  max-height: calc(100vh - 4vh) !important;
}

/* Asegurar que el dropdown no afecte el layout */
body.halloween-theme .dropdown-menu {
  position: absolute !important;
  top: 100% !important;
  transform: none !important;
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  min-width: 200px !important;
  max-width: calc(100vw - 4vw) !important;
  max-height: calc(100vh - 8vh) !important;
  overflow-y: auto !important;
  background: rgba(0, 0, 0, 0.9) !important;
  border: 2px solid rgba(255, 117, 24, 0.8) !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 15px rgba(255, 117, 24, 0.4) !important;
  backdrop-filter: blur(5px) !important;
  z-index: 10001 !important;
}

body.halloween-theme .dropdown-item {
  color: #FF7518 !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8) !important;
  padding: 0.8rem 1rem !important;
  transition: all 0.3s ease !important;
}

body.halloween-theme .dropdown-item:hover {
  background: rgba(255, 117, 24, 0.2) !important;
  color: #FFB366 !important;
  text-shadow: 0 0 5px rgba(255, 117, 24, 0.8) !important;
}

/* ===================== TEXTO DE INSTRUCCIONES HALLOWEEN ===================== */
body.halloween-theme .instructions-text {
  color: white !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
}

/* ===================== YONUNCA INTRO HALLOWEEN ===================== */
/* Telaraña en esquina superior derecha */
body.halloween-theme .spiderweb-corner {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  width: 120px !important;
  height: 120px !important;
  background-image: url('/00_shared/src/images/spiderweb.png') !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: top right !important;
  z-index: 1000 !important;
  pointer-events: none !important;
  animation: spiderweb-sway 3s ease-in-out infinite alternate !important;
}

/* Animación de la telaraña */
@keyframes spiderweb-sway {
  0% {
    transform: rotate(-2deg);
  }
  100% {
    transform: rotate(2deg);
  }
}

/* Contenedor principal transparente */
body.halloween-theme .container {
  background: transparent !important;
  backdrop-filter: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* Eliminar cualquier "marco" del contenedor en la pantalla de games (tema Halloween) */
body.games-page.halloween-theme .container {
  width: 100vw !important;
  height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Desactiva el pseudo-elemento que genera borde/brillo alrededor del contenedor */
body.games-page.halloween-theme .container::before {
  content: none !important;
  display: none !important;
}

/* Core container transparente */
body.halloween-theme .core-container {
  background: transparent !important;
  backdrop-filter: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* Header/logo container transparente para pantallas como yonunca_intro */
body.halloween-theme .header-container {
  background: transparent !important;
  backdrop-filter: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* Logo containers únicos de Yo Nunca - todos transparentes en Halloween */
body.halloween-theme .logo-container_intro,
body.halloween-theme .logo-container_frase,
body.halloween-theme .logo-container_game,
body.halloween-theme .logo-container_stats,
body.halloween-theme .logo-container_stats_likes,
body.halloween-theme .logo-container_frase_jugador,
body.halloween-theme .logo-container_espera_frases_jugador,
body.halloween-theme .logo-container_yonunca_jugador,
body.halloween-theme .logo-container_yonunca_like_jugador,
body.halloween-theme .logo-container_yonunca_final_jugador {
  background: transparent !important;
  backdrop-filter: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* Logos únicos de Yo Nunca - mantener visibles en Halloween (no ocultar como en games.html) */
body.halloween-theme .logo_intro,
body.halloween-theme .logo_frase,
body.halloween-theme .logo_game,
body.halloween-theme .logo_stats,
body.halloween-theme .logo_stats_likes,
body.halloween-theme .logo_frase_jugador,
body.halloween-theme .logo_espera_frases_jugador,
body.halloween-theme .logo_yonunca_jugador,
body.halloween-theme .logo_yonunca_like_jugador,
body.halloween-theme .logo_yonunca_final_jugador {
  /* Los logos de Yo Nunca permanecen visibles en Halloween */
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  /* Opcional: agregar efectos Halloween específicos si se desea */
  filter: drop-shadow(0 0 10px rgba(255, 117, 24, 0.5)) !important;
}

/* Botones de juego Halloween */
body.halloween-theme .game-btn {
  background: rgba(0, 0, 0, 0.7) !important;
  border: 2px solid rgba(255, 117, 24, 0.8) !important;
  color: #FF7518 !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8) !important;
  box-shadow: 0 4px 15px rgba(255, 117, 24, 0.3) !important;
  backdrop-filter: blur(10px) !important;
  transition: all 0.3s ease !important;
}

body.halloween-theme .game-btn:hover {
  background: rgba(255, 117, 24, 0.2) !important;
  border-color: #FF7518 !important;
  color: #FFB366 !important;
  box-shadow: 0 6px 20px rgba(255, 117, 24, 0.5) !important;
  transform: translateY(-2px) !important;
}

/* Botón de configuración Halloween */
body.halloween-theme .settings-button {
  background: rgba(0, 0, 0, 0.8) !important;
  border: 2px solid rgba(255, 117, 24, 0.8) !important;
  color: #FF7518 !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8) !important;
  box-shadow: 0 4px 15px rgba(255, 117, 24, 0.3) !important;
  backdrop-filter: blur(10px) !important;
  transition: all 0.3s ease !important;
  z-index: 9999 !important;
  pointer-events: auto !important;
}

body.halloween-theme .settings-button:hover {
  background: rgba(255, 117, 24, 0.2) !important;
  border-color: #FF7518 !important;
  color: #FFB366 !important;
  box-shadow: 0 6px 20px rgba(255, 117, 24, 0.5) !important;
  transform: translateY(-2px) !important;
}

/* Título principal Halloween */
body.halloween-theme .main-title {
  color: #FF7518 !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
  animation: halloween-glow 2s ease-in-out infinite alternate !important;
}

body.halloween-theme .main-title::after {
  content: '🎃' !important;
  margin-left: 10px !important;
  animation: halloween-bounce 1s ease-in-out infinite alternate !important;
}

/* Logo oculto en Halloween - Solo en games.html (no en Yo Nunca SPA) */
body.games-page.halloween-theme .logo {
  display: none !important;
}

/* QR Container Halloween */
body.halloween-theme .qr-container {
  background: rgba(0, 0, 0, 0.6) !important;
  border: 2px solid rgba(255, 117, 24, 0.8) !important;
  border-radius: 15px !important;
  box-shadow: 0 4px 15px rgba(255, 117, 24, 0.3) !important;
  backdrop-filter: blur(10px) !important;
}


body.halloween-theme .qr-text {
  color: #FF7518 !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8) !important;
}

/* Texto de instrucciones Halloween */
body.halloween-theme .instructions-text,
body.halloween-theme .qr-text,
body.halloween-theme .game-description {
  color: white !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
}

/* ===================== YONUNCA FRASE HALLOWEEN ===================== */
/* Contenedor principal transparente */
body.halloween-theme .phrase {
  background: rgba(0, 0, 0, 0.6) !important;
  border: 2px solid rgba(255, 117, 24, 0.8) !important;
  border-radius: 15px !important;
  box-shadow: 0 4px 15px rgba(255, 117, 24, 0.3) !important;
  backdrop-filter: blur(10px) !important;
  color: white !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
  padding: 3vw;
}

/* Logo oculto en Halloween - Solo en games.html */
body.games-page.halloween-theme .logo {
  display: none !important;
}

/* Texto de instrucciones Halloween */
body.halloween-theme .phrase p,
body.halloween-theme .instructions-text,
body.halloween-theme .qr-text,
body.halloween-theme .game-description {
  color: white !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
}

/* Animaciones Halloween para Yonunca Intro */
@keyframes halloween-glow {
  from {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 10px rgba(255, 117, 24, 0.5);
  }
  to {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 117, 24, 0.8);
  }
}

@keyframes halloween-bounce {
  from {
    transform: translateY(0px);
  }
  to {
    transform: translateY(-5px);
  }
}

/* ===================== ASEGURAR CLICKEABILIDAD ===================== */
body.halloween-theme .settings-btn,
body.halloween-theme .settings-btn *,
body.halloween-theme .header-container button,
body.halloween-theme .header-container a {
  z-index: 9999 !important;
  pointer-events: auto !important;
  position: relative !important;
}

body.halloween-theme .card::before,
body.halloween-theme .container::before,
body.halloween-theme .panel::before,
body.halloween-theme .box::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, rgba(255, 117, 24, 0.3), rgba(0, 0, 0, 0.3));
  border-radius: 14px;
  z-index: -1;
}

/* ===================== EFECTOS EN TÍTULOS ===================== */
body.halloween-theme h1,
body.halloween-theme h3,
body.halloween-theme .title,
body.halloween-theme .heading {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
  color: #FF7518 !important;
  font-weight: bold !important;
  position: relative;
}

body.halloween-theme h2 {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
  color: #fff8e1 !important;
  font-weight: bold !important;
  position: relative;
}

body.halloween-theme #autor-frase {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
  color: #fff8e1 !important;
  font-weight: bold !important;
  position: relative;
}

/* Eliminado adorno de calabaza en títulos: innecesario en varias pantallas */

/* ===================== EFECTOS EN INPUTS ===================== */
body.halloween-theme input,
body.halloween-theme textarea,
body.halloween-theme select {
  border: 2px solid rgba(255, 117, 24, 0.5) !important;
  border-radius: 8px !important;
  background: rgba(0, 0, 0, 0.2) !important;
  color: #FF7518 !important;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3) !important;
}

body.halloween-theme input:focus,
body.halloween-theme textarea:focus,
body.halloween-theme select:focus {
  border-color: #FF7518 !important;
  box-shadow: 0 0 10px rgba(255, 117, 24, 0.5) !important;
  outline: none !important;
}

/* ===================== EFECTOS EN ENLACES ===================== */
body.halloween-theme a {
  color: #fff8e1 !important;
  text-decoration: none !important;
  position: relative;
  transition: all 0.3s ease !important;
}

body.halloween-theme a:hover {
  color: #f9de87 !important;
  text-shadow: 0 0 5px rgba(255, 117, 24, 0.8) !important;
}

body.halloween-theme a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #FF7518;
  transition: width 0.3s ease;
}

body.halloween-theme a:hover::after {
  width: 100%;
}

/* ===================== ANIMACIONES ===================== */
@keyframes spiderweb-sway {
  0%, 100% { 
    transform: rotate(-2deg) translateY(0px) scale(1);
    opacity: 0.8;
  }
  25% { 
    transform: rotate(1deg) translateY(-3px) scale(1.02);
    opacity: 0.9;
  }
  50% { 
    transform: rotate(2deg) translateY(-5px) scale(1.05);
    opacity: 1;
  }
  75% { 
    transform: rotate(1deg) translateY(-2px) scale(1.02);
    opacity: 0.9;
  }
}

@keyframes spiderweb-build {
  0% { 
    opacity: 0;
    transform: scale(0.5) rotate(0deg);
  }
  25% { 
    opacity: 0.3;
    transform: scale(0.7) rotate(90deg);
  }
  50% { 
    opacity: 0.6;
    transform: scale(0.9) rotate(180deg);
  }
  75% { 
    opacity: 0.8;
    transform: scale(1.05) rotate(270deg);
  }
  100% { 
    opacity: 1;
    transform: scale(1) rotate(360deg);
  }
}

@keyframes spiderweb-glow {
  0%, 100% { 
    filter: brightness(1) drop-shadow(0 0 5px rgba(255,255,255,0.3));
  }
  50% { 
    filter: brightness(1.2) drop-shadow(0 0 10px rgba(255,255,255,0.6));
  }
}

@keyframes bat-fly-1 {
  0% { transform: translateX(-100px) translateY(0px) rotate(0deg); }
  25% { transform: translateX(25vw) translateY(-20px) rotate(5deg); }
  50% { transform: translateX(50vw) translateY(10px) rotate(-3deg); }
  75% { transform: translateX(75vw) translateY(-15px) rotate(4deg); }
  100% { transform: translateX(100vw) translateY(0px) rotate(0deg); }
}

@keyframes bat-fly-2 {
  0% { transform: translateX(100px) translateY(0px) rotate(0deg); }
  25% { transform: translateX(75vw) translateY(-25px) rotate(-5deg); }
  50% { transform: translateX(50vw) translateY(15px) rotate(3deg); }
  75% { transform: translateX(25vw) translateY(-10px) rotate(-4deg); }
  100% { transform: translateX(-100px) translateY(0px) rotate(0deg); }
}

@keyframes bat-fly-3 {
  0% { transform: translateX(-100px) translateY(0px) rotate(0deg); }
  33% { transform: translateX(33vw) translateY(-30px) rotate(6deg); }
  66% { transform: translateX(66vw) translateY(20px) rotate(-4deg); }
  100% { transform: translateX(100vw) translateY(0px) rotate(0deg); }
}

@keyframes leaf-fall {
  0% { 
    transform: translateY(-100px) translateX(0px) rotate(0deg);
    opacity: 1;
  }
  100% { 
    transform: translateY(100vh) translateX(50px) rotate(360deg);
    opacity: 0;
  }
}

@keyframes pumpkin-bounce {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-5px) rotate(10deg); }
}

/* ===================== EFECTOS ESPECIALES ===================== */
body.halloween-theme .spooky-glow {
  animation: spooky-glow 3s ease-in-out infinite alternate;
}

@keyframes spooky-glow {
  0% { 
    box-shadow: 0 0 5px rgba(255, 117, 24, 0.3);
    filter: brightness(1);
  }
  100% { 
    box-shadow: 0 0 20px rgba(255, 117, 24, 0.8);
    filter: brightness(1.2);
  }
}

/* ===================== TEMPORIZADOR YO NUNCA HALLOWEEN ===================== */

/* Modal del temporizador - Solo cuando Halloween está activo */
body.halloween-theme #timer-modal .modal-content {
  background: rgba(0, 0, 0, 0.9) !important;
  border: 2px solid rgba(255, 117, 24, 0.8) !important;
  border-radius: 15px !important;
  box-shadow: 0 0 30px rgba(255, 117, 24, 0.5) !important;
  backdrop-filter: blur(10px) !important;
}

body.halloween-theme #timer-modal .modal-header {
  border-bottom: 1px solid rgba(255, 117, 24, 0.3) !important;
}

body.halloween-theme #timer-modal .modal-title {
  color: #FF7518 !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
}

body.halloween-theme #timer-modal .modal-close-btn {
  color: #FF7518 !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8) !important;
}

body.halloween-theme #timer-modal .modal-close-btn:hover {
  color: #FFB366 !important;
  text-shadow: 0 0 5px rgba(255, 117, 24, 0.8) !important;
}

body.halloween-theme #timer-modal .form-label {
  color: white !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8) !important;
}

body.halloween-theme #timer-modal .form-control {
  background: rgba(0, 0, 0, 0.6) !important;
  border: 2px solid rgba(255, 117, 24, 0.5) !important;
  color: #FF7518 !important;
  border-radius: 8px !important;
}

body.halloween-theme #timer-modal .form-control:focus {
  border-color: #FF7518 !important;
  box-shadow: 0 0 10px rgba(255, 117, 24, 0.5) !important;
  outline: none !important;
}

body.halloween-theme #timer-modal .btn-action {
  background: rgba(0, 0, 0, 0.8) !important;
  border: 2px solid rgba(255, 117, 24, 0.8) !important;
  color: #FF7518 !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8) !important;
  box-shadow: 0 4px 15px rgba(255, 117, 24, 0.4) !important;
  backdrop-filter: blur(5px) !important;
  transition: all 0.3s ease !important;
}

body.halloween-theme #timer-modal .btn-action:hover {
  background: rgba(255, 117, 24, 0.2) !important;
  border-color: #FF7518 !important;
  color: #FFB366 !important;
  box-shadow: 0 6px 20px rgba(255, 117, 24, 0.6) !important;
  transform: translateY(-2px) !important;
}

/* Overlay del temporizador - Solo cuando Halloween está activo */
body.halloween-theme #timer-overlay {
  background: linear-gradient(45deg, rgba(255, 117, 24, 0.1), rgba(0, 0, 0, 0.8)) !important;
}

body.halloween-theme #timer-overlay .temporizador-particles {
  background: radial-gradient(circle at 20% 50%, rgba(255, 117, 24, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(0, 0, 0, 0.3) 0%, transparent 50%),
              radial-gradient(circle at 40% 80%, rgba(255, 117, 24, 0.05) 0%, transparent 50%) !important;
}

/* Contenedor del temporizador Halloween */
body.halloween-theme .temporizador-container {
  background: rgba(0, 0, 0, 0.6) !important;
  border: 2px solid rgba(255, 117, 24, 0.8) !important;
  border-radius: 20px !important;
  box-shadow: 0 0 40px rgba(255, 117, 24, 0.4) !important;
  backdrop-filter: blur(15px) !important;
  overflow: visible !important;
}

/* Círculos decorativos Halloween */
body.halloween-theme .temporizador-circle {
  background: radial-gradient(circle, rgba(255, 117, 24, 0.3) 0%, transparent 70%) !important;
  border: 1px solid rgba(255, 117, 24, 0.2) !important;
}

body.halloween-theme .temporizador-circle-1 {
  animation: halloween-circle-glow 3s ease-in-out infinite alternate !important;
}

body.halloween-theme .temporizador-circle-2 {
  animation: halloween-circle-glow 3s ease-in-out infinite alternate-reverse !important;
}

body.halloween-theme .temporizador-circle-3 {
  animation: halloween-circle-glow 3s ease-in-out infinite alternate !important;
}

/* Lettering del Yo Nunca Halloween */
body.halloween-theme .temporizador-lettering {
  filter: drop-shadow(0 0 10px rgba(255, 117, 24, 0.6)) !important;
  animation: halloween-lettering-glow 2s ease-in-out infinite alternate !important;
}

/* Display del tiempo Halloween - SIN BORDE DEL CONTENEDOR */
body.halloween-theme .temporizador-display-wrapper {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.halloween-theme .temporizador-display-glow {
  background: transparent !important;
  animation: none !important;
}

body.halloween-theme .temporizador-display {
  color: #FFD700 !important; /* Dorado brillante para mejor contraste */
  text-shadow: 
    0 0 10px rgba(255, 215, 0, 1),
    0 0 20px rgba(255, 215, 0, 0.8),
    0 0 30px rgba(255, 215, 0, 0.6),
    0 0 40px rgba(255, 215, 0, 0.4),
    2px 2px 4px rgba(0, 0, 0, 0.8) !important;
  animation: halloween-timer-glow-enhanced 1.5s ease-in-out infinite alternate !important;
  font-weight: 900 !important;
  font-size: 20vh !important;
}

/* Texto del temporizador Halloween - MISMO TAMAÑO que tema básico */
body.halloween-theme .temporizador-text {
  font-family: 'ChauPhilomeneOne-Italic', sans-serif !important;
  font-size: 2vw !important;
  color: white !important;
  opacity: 0.95 !important;
  text-shadow: 
    0 0.3vw 0.6vw rgba(0,0,0,0.4),
    0 0 1vw rgba(255,255,255,0.3) !important;
  font-weight: 600 !important;
  letter-spacing: 0.05em !important;
  background: rgba(0, 0, 0, 0.6) !important;
  border: 1px solid rgba(255, 117, 24, 0.3) !important;
  border-radius: 10px !important;
  padding: 1rem !important;
  backdrop-filter: blur(5px) !important;
  /* Mismo tamaño que tema básico */
}

/* ===================== BOTONES DE JUEGOS HALLOWEEN ===================== */
/* Botones de juegos en página games.html */
body.halloween-theme .game-btn {
  color: white !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
  font-weight: bold !important;
}

body.halloween-theme .game-btn:hover {
  color: #FFB366 !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9) !important;
}

/* ===================== MODAL CONFIGURACIÓN TEMPORIZADOR HALLOWEEN ===================== */
/* Modal overlay Halloween */
body.halloween-theme .modal-overlay {
  background: rgba(0, 0, 0, 0.8) !important;
  backdrop-filter: blur(10px) !important;
}

/* Modal content Halloween */
body.halloween-theme .modal-content {
  background: rgba(0, 0, 0, 0.9) !important;
  border: 2px solid rgba(255, 117, 24, 0.8) !important;
  border-radius: 15px !important;
  box-shadow: 0 0 30px rgba(255, 117, 24, 0.5) !important;
  backdrop-filter: blur(15px) !important;
}

/* Modal header Halloween */
body.halloween-theme .modal-header {
  background: linear-gradient(135deg, rgba(255, 117, 24, 0.8), rgba(0, 0, 0, 0.9)) !important;
  border-bottom: 1px solid rgba(255, 117, 24, 0.3) !important;
  border-radius: 15px 15px 0 0 !important;
}

/* Modal title Halloween */
body.halloween-theme .modal-title {
  color: white !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
  font-weight: bold !important;
}

/* Modal close button Halloween */
body.halloween-theme .modal-close-btn {
  color: white !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8) !important;
  background: rgba(255, 117, 24, 0.2) !important;
  border: 1px solid rgba(255, 117, 24, 0.5) !important;
  border-radius: 50% !important;
  width: 30px !important;
  height: 30px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

body.halloween-theme .modal-close-btn:hover {
  background: rgba(255, 117, 24, 0.4) !important;
  border-color: #FF7518 !important;
  color: #FFB366 !important;
}

/* Modal body Halloween */
body.halloween-theme .modal-body {
  background: rgba(0, 0, 0, 0.7) !important;
  color: white !important;
}

/* Form labels Halloween */
body.halloween-theme .form-label {
  color: white !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8) !important;
  font-weight: bold !important;
}

/* Form controls Halloween */
body.halloween-theme .form-control {
  background: rgba(0, 0, 0, 0.6) !important;
  border: 2px solid rgba(255, 117, 24, 0.5) !important;
  color: white !important;
  border-radius: 8px !important;
}

body.halloween-theme .form-control:focus {
  border-color: #FF7518 !important;
  box-shadow: 0 0 10px rgba(255, 117, 24, 0.5) !important;
  outline: none !important;
  background: rgba(0, 0, 0, 0.8) !important;
}

/* Banner preview Halloween */
body.halloween-theme .banner-preview {
  background: rgba(0, 0, 0, 0.6) !important;
  border: 1px solid rgba(255, 117, 24, 0.3) !important;
  border-radius: 8px !important;
  padding: 10px !important;
}

body.halloween-theme .banner-text {
  color: white !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8) !important;
}

body.halloween-theme .banner-placeholder {
  color: rgba(255, 117, 24, 0.7) !important;
  font-style: italic !important;
}

/* Modal footer Halloween */
body.halloween-theme .modal-footer {
  background: rgba(0, 0, 0, 0.7) !important;
  border-top: 1px solid rgba(255, 117, 24, 0.3) !important;
  border-radius: 0 0 15px 15px !important;
}

/* Botón acción Halloween */
body.halloween-theme .btn-action {
  background: linear-gradient(135deg, rgba(255, 117, 24, 0.8), rgba(0, 0, 0, 0.9)) !important;
  border: 2px solid rgba(255, 117, 24, 0.8) !important;
  color: white !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8) !important;
  box-shadow: 0 4px 15px rgba(255, 117, 24, 0.4) !important;
  backdrop-filter: blur(5px) !important;
  transition: all 0.3s ease !important;
  border-radius: 10px !important;
  font-weight: bold !important;
}

body.halloween-theme .btn-action:hover {
  background: linear-gradient(135deg, rgba(255, 117, 24, 0.9), rgba(0, 0, 0, 0.8)) !important;
  border-color: #FF7518 !important;
  color: #FFB366 !important;
  box-shadow: 0 6px 20px rgba(255, 117, 24, 0.6) !important;
  transform: translateY(-2px) !important;
}

/* Botón cerrar Halloween */
body.halloween-theme .temporizador-btn-cerrar {
  /* Replicar exactamente el comportamiento del tema básico */
  position: relative !important;
  margin: 1.5vh auto 1vh auto !important;
  
  /* Solo cambiar estilos visuales, mantener comportamiento */
  background: rgba(0, 0, 0, 0.9) !important;
  border: 2px solid rgba(255, 117, 24, 0.8) !important;
  color: #FF7518 !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8) !important;
  box-shadow: 0 4px 15px rgba(255, 117, 24, 0.4) !important;
  backdrop-filter: blur(5px) !important;
  border-radius: 10px !important;
  padding: 1vw 2.5vw !important;
  font-size: 2.2vw !important;
  font-weight: bold !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  /* Mismo comportamiento que tema básico */
}

body.halloween-theme .temporizador-btn-cerrar:hover {
  background: rgba(255, 117, 24, 0.2) !important;
  border-color: #FF7518 !important;
  color: #FFB366 !important;
  box-shadow: 0 6px 20px rgba(255, 117, 24, 0.6) !important;
  transform: translateY(-2px) !important;
}

body.halloween-theme .temporizador-btn-icon {
  text-shadow: 0 0 5px rgba(255, 117, 24, 0.8) !important;
}

body.halloween-theme .temporizador-btn-text {
  text-shadow: 0 0 5px rgba(255, 117, 24, 0.8) !important;
}

/* ===================== CALABAZAS LOTTIE EN TEMPORIZADOR ===================== */
/* Calabaza izquierda */
body.halloween-theme .temporizador-overlay .halloween-pumpkin-left {
  position: absolute !important;
  top: 50% !important;
  left: 30px !important;
  transform: translateY(-50%) !important;
  width: 320px !important;
  height: 320px !important;
  z-index: 1001 !important;
}

/* Calabaza derecha */
body.halloween-theme .temporizador-overlay .halloween-pumpkin-right {
  position: absolute !important;
  top: 50% !important;
  right: 30px !important;
  transform: translateY(-50%) !important;
  width: 320px !important;
  height: 320px !important;
  z-index: 1001 !important;
}

/* ===================== MURCIÉLAGOS EN TEMPORIZADOR ===================== */
body.halloween-theme .temporizador-overlay .bat-timer-1 {
  position: absolute !important;
  top: 15% !important;
  left: -50px !important;
  width: 25px !important;
  height: 18px !important;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 20"><path d="M15 2 L5 8 L8 15 L15 12 L22 15 L25 8 L15 2 Z" fill="rgba(255,215,0,0.8)"/></svg>') no-repeat !important;
  background-size: contain !important;
  z-index: 1000 !important;
  animation: bat-timer-fly-1 8s linear infinite !important;
}

body.halloween-theme .temporizador-overlay .bat-timer-2 {
  position: absolute !important;
  top: 25% !important;
  right: -50px !important;
  width: 20px !important;
  height: 15px !important;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 20"><path d="M15 2 L5 8 L8 15 L15 12 L22 15 L25 8 L15 2 Z" fill="rgba(255,215,0,0.7)"/></svg>') no-repeat !important;
  background-size: contain !important;
  z-index: 1000 !important;
  animation: bat-timer-fly-2 10s linear infinite !important;
}

body.halloween-theme .temporizador-overlay .bat-timer-3 {
  position: absolute !important;
  top: 65% !important;
  left: -40px !important;
  width: 18px !important;
  height: 12px !important;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 20"><path d="M15 2 L5 8 L8 15 L15 12 L22 15 L25 8 L15 2 Z" fill="rgba(255,215,0,0.6)"/></svg>') no-repeat !important;
  background-size: contain !important;
  z-index: 1000 !important;
  animation: bat-timer-fly-3 12s linear infinite !important;
}

body.halloween-theme .temporizador-overlay .bat-timer-4 {
  position: absolute !important;
  top: 35% !important;
  left: -60px !important;
  width: 22px !important;
  height: 16px !important;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 20"><path d="M15 2 L5 8 L8 15 L15 12 L22 15 L25 8 L15 2 Z" fill="rgba(255,215,0,0.9)"/></svg>') no-repeat !important;
  background-size: contain !important;
  z-index: 1000 !important;
  animation: bat-timer-fly-4 9s linear infinite !important;
}

body.halloween-theme .temporizador-overlay .bat-timer-5 {
  position: absolute !important;
  top: 45% !important;
  right: -60px !important;
  width: 19px !important;
  height: 14px !important;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 20"><path d="M15 2 L5 8 L8 15 L15 12 L22 15 L25 8 L15 2 Z" fill="rgba(255,215,0,0.5)"/></svg>') no-repeat !important;
  background-size: contain !important;
  z-index: 1000 !important;
  animation: bat-timer-fly-5 11s linear infinite !important;
}

body.halloween-theme .temporizador-overlay .bat-timer-6 {
  position: absolute !important;
  top: 75% !important;
  right: -45px !important;
  width: 16px !important;
  height: 11px !important;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 20"><path d="M15 2 L5 8 L8 15 L15 12 L22 15 L25 8 L15 2 Z" fill="rgba(255,215,0,0.8)"/></svg>') no-repeat !important;
  background-size: contain !important;
  z-index: 1000 !important;
  animation: bat-timer-fly-6 13s linear infinite !important;
}


/* ===================== ANIMACIONES TEMPORIZADOR HALLOWEEN ===================== */
@keyframes halloween-circle-glow {
  0% {
    box-shadow: 0 0 10px rgba(255, 117, 24, 0.3);
    transform: scale(1);
  }
  100% {
    box-shadow: 0 0 30px rgba(255, 117, 24, 0.6);
    transform: scale(1.05);
  }
}

@keyframes halloween-lettering-glow {
  0% {
    filter: drop-shadow(0 0 10px rgba(255, 117, 24, 0.6));
    transform: scale(1);
  }
  100% {
    filter: drop-shadow(0 0 20px rgba(255, 117, 24, 0.9));
    transform: scale(1.02);
  }
}

@keyframes halloween-timer-glow-enhanced {
  0% {
    text-shadow: 
      0 0 10px rgba(255, 215, 0, 1),
      0 0 20px rgba(255, 215, 0, 0.8),
      0 0 30px rgba(255, 215, 0, 0.6),
      0 0 40px rgba(255, 215, 0, 0.4),
      2px 2px 4px rgba(0, 0, 0, 0.8);
    transform: scale(1);
  }
  100% {
    text-shadow: 
      0 0 15px rgba(255, 215, 0, 1),
      0 0 30px rgba(255, 215, 0, 0.9),
      0 0 45px rgba(255, 215, 0, 0.7),
      0 0 60px rgba(255, 215, 0, 0.5),
      2px 2px 4px rgba(0, 0, 0, 0.8);
    transform: scale(1.05);
  }
}

@keyframes bat-timer-fly-1 {
  0% { transform: translateX(-100px) translateY(0px) rotate(0deg); }
  25% { transform: translateX(25vw) translateY(-15px) rotate(3deg); }
  50% { transform: translateX(50vw) translateY(8px) rotate(-2deg); }
  75% { transform: translateX(75vw) translateY(-12px) rotate(3deg); }
  100% { transform: translateX(100vw) translateY(0px) rotate(0deg); }
}

@keyframes bat-timer-fly-2 {
  0% { transform: translateX(100px) translateY(0px) rotate(0deg); }
  25% { transform: translateX(75vw) translateY(-20px) rotate(-3deg); }
  50% { transform: translateX(50vw) translateY(12px) rotate(2deg); }
  75% { transform: translateX(25vw) translateY(-8px) rotate(-3deg); }
  100% { transform: translateX(-100px) translateY(0px) rotate(0deg); }
}

@keyframes bat-timer-fly-3 {
  0% { transform: translateX(-100px) translateY(0px) rotate(0deg); }
  33% { transform: translateX(33vw) translateY(-25px) rotate(4deg); }
  66% { transform: translateX(66vw) translateY(15px) rotate(-3deg); }
  100% { transform: translateX(100vw) translateY(0px) rotate(0deg); }
}

@keyframes bat-timer-fly-4 {
  0% { transform: translateX(-120px) translateY(0px) rotate(0deg); }
  20% { transform: translateX(20vw) translateY(-30px) rotate(5deg); }
  40% { transform: translateX(40vw) translateY(20px) rotate(-2deg); }
  60% { transform: translateX(60vw) translateY(-15px) rotate(3deg); }
  80% { transform: translateX(80vw) translateY(25px) rotate(-4deg); }
  100% { transform: translateX(120vw) translateY(0px) rotate(0deg); }
}

@keyframes bat-timer-fly-5 {
  0% { transform: translateX(120px) translateY(0px) rotate(0deg); }
  20% { transform: translateX(80vw) translateY(-20px) rotate(-3deg); }
  40% { transform: translateX(60vw) translateY(30px) rotate(4deg); }
  60% { transform: translateX(40vw) translateY(-10px) rotate(-2deg); }
  80% { transform: translateX(20vw) translateY(20px) rotate(3deg); }
  100% { transform: translateX(-120px) translateY(0px) rotate(0deg); }
}

@keyframes bat-timer-fly-6 {
  0% { transform: translateX(100px) translateY(0px) rotate(0deg); }
  25% { transform: translateX(75vw) translateY(-35px) rotate(-5deg); }
  50% { transform: translateX(50vw) translateY(10px) rotate(2deg); }
  75% { transform: translateX(25vw) translateY(-25px) rotate(-3deg); }
  100% { transform: translateX(-100px) translateY(0px) rotate(0deg); }
}

/* ===================== ANIMACIONES CALABAZAS ===================== */
/* Las calabazas usan animaciones Lottie internas, no CSS */

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
  body.halloween-theme::before,
  body.halloween-theme::after {
    width: 80px;
    height: 80px;
  }
  
  body.halloween-theme .bat-1,
  body.halloween-theme .bat-2,
  body.halloween-theme .bat-3 {
    width: 20px;
    height: 15px;
  }
  
  /* Responsive para temporizador Halloween */
  body.halloween-theme .temporizador-container {
    margin: 2vh !important;
    padding: 2vh !important;
  }
  
  body.halloween-theme .temporizador-display {
    font-size: 3rem !important;
  }
  
  /* Responsive para texto del temporizador - MISMO TAMAÑO que tema básico */
  body.halloween-theme .temporizador-text {
    font-size: 4.5vw !important;
  }
  
  /* Responsive para elementos Halloween del temporizador */
  body.halloween-theme .temporizador-overlay .halloween-pumpkin-left,
  body.halloween-theme .temporizador-overlay .halloween-pumpkin-right {
    width: 200px !important;
    height: 200px !important;
  }
  
  body.halloween-theme .temporizador-overlay .halloween-pumpkin-left {
    left: -15px !important;
  }
  
  body.halloween-theme .temporizador-overlay .halloween-pumpkin-right {
    right: -15px !important;
  }
  
  body.halloween-theme .temporizador-overlay .bat-timer-1,
  body.halloween-theme .temporizador-overlay .bat-timer-2,
  body.halloween-theme .temporizador-overlay .bat-timer-3,
  body.halloween-theme .temporizador-overlay .bat-timer-4,
  body.halloween-theme .temporizador-overlay .bat-timer-5,
  body.halloween-theme .temporizador-overlay .bat-timer-6 {
    width: 15px !important;
    height: 12px !important;
  }
}

/* Responsive para pantallas pequeñas (576px) - MISMO TAMAÑO que tema básico */
@media (max-width: 576px) {
  body.halloween-theme .temporizador-display {
    font-size: 2.5rem !important;
  }
  
  body.halloween-theme .temporizador-text {
    font-size: 5.5vw !important;
  }
}

/* ===================== ESTILOS ESPECÍFICOS PARA PASAPALABRA ===================== */

/* Telaraña Halloween esquina inferior izquierda (solo después de comenzar) */
body.halloween-theme .halloween-spiderweb-corner-left {
  position: fixed;
  left: 0;
  bottom: 0;
  width: min(22vw, 260px);
  height: auto;
  z-index: 1;
  pointer-events: none;
}

/* Calabaza centrada antes de empezar */
body.halloween-theme .halloween-pumpkin-center {
  position: fixed;
  left: 50%;
  top: 85%;
  transform: translate(-50%, -50%);
  width: 260px;
  height: 260px;
  z-index: 1000;
  pointer-events: none;
}

/* ————— Halloween: convertir las letras del rosco en calabazas ————— */
body.halloween-theme .letra {
  background: linear-gradient(180deg, #ff8a1a 0%, #ff7518 60%, #d95d0f 100%);
  border-radius: 50% / 60%;
  color: #fff8e1;
  text-shadow: 0 1px 0 rgba(255,255,255,0.6), 0 0 3px rgba(0,0,0,0.25);
  border-color: rgba(0,0,0,0.06);
  position: absolute;
  z-index: 1;
}
body.halloween-theme .letra::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: repeating-linear-gradient(
    90deg,
    rgba(0,0,0,0.08) 0 6%,
    rgba(255,255,255,0.10) 6% 12%
  );
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
}
body.halloween-theme .letra::after {
  content: '';
  position: absolute;
  top: -18%;
  left: 50%;
  width: 20%;
  height: 28%;
  transform: translateX(-50%) rotate(-12deg);
  background: linear-gradient(180deg, #2e7d32, #1b5e20);
  border-radius: 3px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.25);
  z-index: 0;
}

/* Halloween: convertir letra-actual en calabaza */
body.halloween-theme .letra-actual {
  background: linear-gradient(180deg, #ff8a1a 0%, #ff7518 60%, #d95d0f 100%);
  border-radius: 50% / 60%;
  color: #fff8e1;
  text-shadow: 0 1px 0 rgba(255,255,255,0.6), 0 0 3px rgba(0,0,0,0.25);
  border: 1px solid rgba(0,0,0,0.06);
  position: relative;
  z-index: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
body.halloween-theme .letra-actual::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: repeating-linear-gradient(
    90deg,
    rgba(0,0,0,0.08) 0 6%,
    rgba(255,255,255,0.10) 6% 12%
  );
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
}
body.halloween-theme .letra-actual::after {
  content: '';
  position: absolute;
  top: -15%;
  left: 50%;
  width: 18%;
  height: 25%;
  transform: translateX(-50%) rotate(-12deg);
  background: linear-gradient(180deg, #2e7d32, #1b5e20);
  border-radius: 3px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.25);
  z-index: 0;
}

/* ===== ESTILOS QR PARA PASAPALABRA ===== */
body.halloween-theme .qr-container {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

body.halloween-theme .qr-card {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}
body.halloween-theme .qr-code-wrapper {
  padding: 0 !important;
  line-height: 0;
  background: transparent !important;
}
body.halloween-theme .qr-code-wrapper svg {
  display: block;
}

/* Estilo exclusivo para el Rulo en Halloween */
body.halloween-theme .qr-container-rulo {
  background: rgb(255 255 255 / 100%) !important;
  border: 2px solid rgba(255, 117, 24, 0.8) !important;
  border-radius: 15px !important;
  box-shadow: 0 4px 15px rgba(255, 117, 24, 0.3) !important;
  backdrop-filter: blur(10px) !important;
  padding: 2vh !important;
}

/* Hacer que qr-card y qr-code-wrapper también sean blancos dentro de qr-container-rulo */
body.halloween-theme .qr-container-rulo .qr-card {
  background: white !important;
  border: none !important;
  box-shadow: none !important;
  padding: 1.5vh !important;
}

body.halloween-theme .qr-container-rulo .qr-code-wrapper {
  background: white !important;
  padding: 0 !important;
}

body.halloween-theme .qr-code-wrapper svg {
  width: calc(24vw - 0.2vw);
  height: calc(24vw - 0.2vw);
}

/* ===================== ESTILOS ESPECÍFICOS PARA BINGO ===================== */

/* Telaraña Halloween esquina inferior derecha */
body.halloween-theme .halloween-spiderweb-corner {
  position: fixed;
  right: 0;
  bottom: 0;
  width: min(22vw, 260px);
  height: auto;
  z-index: 1;
  pointer-events: none;
}

/* Calabaza Halloween - posición específica para Bingo */
body.halloween-theme .halloween-pumpkin-bingo {
  position: fixed;
  right: 2vw;
  bottom: 0vh;
  width: 240px;
  height: 240px;
  z-index: 1000;
  pointer-events: none;
}

/* Halloween: convertir bolas del historial en calabazas */
body.halloween-theme .bola-historial {
  width: clamp(56px, 7vw, 90px);
  height: clamp(40px, 5vw, 70px);
  border-radius: 50% / 60%;
  background: linear-gradient(180deg, #ff8a1a 0%, #ff7518 60%, #d95d0f 100%);
  color: #fff8e1;
  text-shadow: 0 1px 0 rgba(255,255,255,0.6), 0 0 3px rgba(0,0,0,0.3);
  position: relative;
}
body.halloween-theme .bola-historial::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: repeating-linear-gradient(
    90deg,
    rgba(0,0,0,0.08) 0 6%,
    rgba(255,255,255,0.10) 6% 12%
  );
  mix-blend-mode: multiply;
  pointer-events: none;
}
body.halloween-theme .bola-historial::after {
  content: '';
  position: absolute;
  top: -0.9vw;
  left: 50%;
  width: clamp(8px, 0.9vw, 14px);
  height: clamp(10px, 1.2vw, 18px);
  transform: translateX(-50%) rotate(-12deg);
  background: linear-gradient(180deg, #2e7d32, #1b5e20);
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.25);
}

/* Halloween Theme Overrides para el bombo */
body.halloween-theme .bombo-fondo {
  border-color: #f8a136;
  background: radial-gradient(circle, #feae2f 0%, #161615 65%);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

body.halloween-theme .number-ball {
  background: radial-gradient(circle, #ffc97e 0%, #f4a629 70%);
  color: #ffffff;
  border: none;
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.15);
}

/* Halloween: convertir bola-bingo en calabaza */
body.halloween-theme .bola-bingo {
  width: clamp(120px, 25vw, 200px) !important;
  height: clamp(96px, 20vw, 160px) !important;
  border-radius: 50% / 60% !important;
  background: linear-gradient(180deg, #ff8a1a 0%, #ff7518 60%, #d95d0f 100%) !important;
  color: #fff8e1 !important;
  box-shadow: 0 3px 8px rgba(0,0,0,0.3) !important;
  border: 2px solid rgba(217, 93, 15, 0.8) !important;
  /* Eliminada la animación bolaBounce para evitar la rotación de la textura */
  animation: none !important;
  transform-style: preserve-3d !important;
  overflow: visible !important;
}

body.halloween-theme .bola-bingo::before {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: inherit !important;
  background: repeating-linear-gradient(
    90deg,
    rgba(0,0,0,0.08) 0 6%,
    rgba(255,255,255,0.10) 6% 12%
  ) !important;
  mix-blend-mode: multiply !important;
  pointer-events: none !important;
  animation: none !important;
}

body.halloween-theme .bola-bingo::after {
  content: '' !important;
  position: absolute !important;
  top: -18% !important;
  left: 50% !important;
  width: 20% !important;
  height: 28% !important;
  transform: translateX(-50%) rotate(-12deg) !important;
  background: #2e7d32 !important;
  border-radius: 0px !important;
  border: 2px solid #1b5e20 !important;
  box-shadow: 0 1px 2px rgba(0,0,0,0.4), 0 0 4px rgba(27, 94, 32, 0.5) !important;
  z-index: 10 !important;
  filter: contrast(1.2) brightness(0.95) !important;
}

body.halloween-theme .numero-bingo {
  color: #fff8e1 !important;
  text-shadow: 
    0 1px 0 rgba(255,255,255,0.6),
    0 0 3px rgba(0,0,0,0.25) !important;
}

/* ===================== ESTILOS ESPECÍFICOS PARA PASAPALABRA ===================== */

/* Telaraña Halloween esquina inferior izquierda (solo después de comenzar) */
body.halloween-theme .halloween-spiderweb-corner-left {
  position: fixed;
  left: 0;
  bottom: 0;
  width: min(22vw, 260px);
  height: auto;
  z-index: 1;
  pointer-events: none;
}

/* Calabaza centrada antes de empezar */
body.halloween-theme .halloween-pumpkin-center {
  position: fixed;
  left: 50%;
  top: 85%;
  transform: translate(-50%, -50%);
  width: 260px;
  height: 260px;
  z-index: 1000;
  pointer-events: none;
}

/* ————— Halloween: convertir las letras del rosco en calabazas ————— */
body.halloween-theme .letra {
  background: linear-gradient(180deg, #ff8a1a 0%, #ff7518 60%, #d95d0f 100%);
  border-radius: 50% / 60%;
  color: #fff8e1;
  text-shadow: 0 1px 0 rgba(255,255,255,0.6), 0 0 3px rgba(0,0,0,0.25);
  border-color: rgba(0,0,0,0.06);
  position: absolute;
  z-index: 1;
}
body.halloween-theme .letra::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: repeating-linear-gradient(
    90deg,
    rgba(0,0,0,0.08) 0 6%,
    rgba(255,255,255,0.10) 6% 12%
  );
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
}
body.halloween-theme .letra::after {
  content: '';
  position: absolute;
  top: -18%;
  left: 50%;
  width: 20%;
  height: 28%;
  transform: translateX(-50%) rotate(-12deg);
  background: linear-gradient(180deg, #2e7d32, #1b5e20);
  border-radius: 3px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.25);
  z-index: 0;
}

/* Halloween: convertir letra-actual en calabaza */
body.halloween-theme .letra-actual {
  background: linear-gradient(180deg, #ff8a1a 0%, #ff7518 60%, #d95d0f 100%);
  border-radius: 50% / 60%;
  color: #fff8e1;
  text-shadow: 0 1px 0 rgba(255,255,255,0.6), 0 0 3px rgba(0,0,0,0.25);
  border: 1px solid rgba(0,0,0,0.06);
  position: relative;
  z-index: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
body.halloween-theme .letra-actual::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: repeating-linear-gradient(
    90deg,
    rgba(0,0,0,0.08) 0 6%,
    rgba(255,255,255,0.10) 6% 12%
  );
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
}
body.halloween-theme .letra-actual::after {
  content: '';
  position: absolute;
  top: -15%;
  left: 50%;
  width: 18%;
  height: 25%;
  transform: translateX(-50%) rotate(-12deg);
  background: linear-gradient(180deg, #2e7d32, #1b5e20);
  border-radius: 3px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.25);
  z-index: 0;
}

/* ===== ESTILOS QR PARA PASAPALABRA ===== */
body.halloween-theme .qr-container {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

body.halloween-theme .qr-card {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}
body.halloween-theme .qr-code-wrapper {
  padding: 0 !important;
  line-height: 0;
  background: transparent !important;
}
body.halloween-theme .qr-code-wrapper svg {
  display: block;
}

/* Estilo exclusivo para el Rulo en Halloween */
body.halloween-theme .qr-container-rulo {
  background: rgb(255 255 255 / 100%) !important;
  border: 2px solid rgba(255, 117, 24, 0.8) !important;
  border-radius: 15px !important;
  box-shadow: 0 4px 15px rgba(255, 117, 24, 0.3) !important;
  backdrop-filter: blur(10px) !important;
  padding: 2vh !important;
}

/* Hacer que qr-card y qr-code-wrapper también sean blancos dentro de qr-container-rulo */
body.halloween-theme .qr-container-rulo .qr-card {
  background: white !important;
  border: none !important;
  box-shadow: none !important;
  padding: 1.5vh !important;
}

body.halloween-theme .qr-container-rulo .qr-code-wrapper {
  background: white !important;
  padding: 0 !important;
}

body.halloween-theme .qr-code-wrapper svg {
  width: calc(24vw - 0.2vw);
  height: calc(24vw - 0.2vw);
}

/* ===================== ESTILOS ESPECÍFICOS PARA BINGO ===================== */

/* Telaraña Halloween esquina inferior derecha */
body.halloween-theme .halloween-spiderweb-corner {
  position: fixed;
  right: 0;
  bottom: 0;
  width: min(22vw, 260px);
  height: auto;
  z-index: 1;
  pointer-events: none;
}

/* Calabaza Halloween - posición específica para Bingo */
body.halloween-theme .halloween-pumpkin-bingo {
  position: fixed;
  right: 2vw;
  bottom: 0vh;
  width: 240px;
  height: 240px;
  z-index: 1000;
  pointer-events: none;
}

/* Halloween: convertir bolas del historial en calabazas */
body.halloween-theme .bola-historial {
  width: clamp(56px, 7vw, 90px);
  height: clamp(40px, 5vw, 70px);
  border-radius: 50% / 60%;
  background: linear-gradient(180deg, #ff8a1a 0%, #ff7518 60%, #d95d0f 100%);
  color: #fff8e1;
  text-shadow: 0 1px 0 rgba(255,255,255,0.6), 0 0 3px rgba(0,0,0,0.3);
  position: relative;
}
body.halloween-theme .bola-historial::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: repeating-linear-gradient(
    90deg,
    rgba(0,0,0,0.08) 0 6%,
    rgba(255,255,255,0.10) 6% 12%
  );
  mix-blend-mode: multiply;
  pointer-events: none;
}
body.halloween-theme .bola-historial::after {
  content: '';
  position: absolute;
  top: -0.9vw;
  left: 50%;
  width: clamp(8px, 0.9vw, 14px);
  height: clamp(10px, 1.2vw, 18px);
  transform: translateX(-50%) rotate(-12deg);
  background: linear-gradient(180deg, #2e7d32, #1b5e20);
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.25);
}

/* Halloween Theme Overrides para el bombo */
body.halloween-theme .bombo-fondo {
  border-color: #f8a136;
  background: radial-gradient(circle, #feae2f 0%, #161615 65%);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

body.halloween-theme .number-ball {
  background: radial-gradient(circle, #ffc97e 0%, #f4a629 70%);
  color: #ffffff;
  border: none;
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.15);
}

/* Halloween: convertir bola-bingo en calabaza */
body.halloween-theme .bola-bingo {
  width: clamp(120px, 25vw, 200px) !important;
  height: clamp(96px, 20vw, 160px) !important;
  border-radius: 50% / 60% !important;
  background: linear-gradient(180deg, #ff8a1a 0%, #ff7518 60%, #d95d0f 100%) !important;
  color: #fff8e1 !important;
  box-shadow: 0 3px 8px rgba(0,0,0,0.3) !important;
  border: 2px solid rgba(217, 93, 15, 0.8) !important;
  /* Eliminada la animación bolaBounce para evitar la rotación de la textura */
  animation: none !important;
  transform-style: preserve-3d !important;
  overflow: visible !important;
}

body.halloween-theme .bola-bingo::before {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: inherit !important;
  background: repeating-linear-gradient(
    90deg,
    rgba(0,0,0,0.08) 0 6%,
    rgba(255,255,255,0.10) 6% 12%
  ) !important;
  mix-blend-mode: multiply !important;
  pointer-events: none !important;
  animation: none !important;
}

body.halloween-theme .bola-bingo::after {
  content: '' !important;
  position: absolute !important;
  top: -18% !important;
  left: 50% !important;
  width: 20% !important;
  height: 28% !important;
  transform: translateX(-50%) rotate(-12deg) !important;
  background: #2e7d32 !important;
  border-radius: 0px !important;
  border: 2px solid #1b5e20 !important;
  box-shadow: 0 1px 2px rgba(0,0,0,0.4), 0 0 4px rgba(27, 94, 32, 0.5) !important;
  z-index: 10 !important;
  filter: contrast(1.2) brightness(0.95) !important;
}

body.halloween-theme .numero-bingo {
  color: #fff8e1 !important;
  text-shadow: 
    0 1px 0 rgba(255,255,255,0.6),
    0 0 3px rgba(0,0,0,0.25) !important;
}

/* ===================== ESTILOS ESPECÍFICOS PARA PASAPALABRA ===================== */

/* Telaraña Halloween esquina inferior izquierda (solo después de comenzar) */
body.halloween-theme .halloween-spiderweb-corner-left {
  position: fixed;
  left: 0;
  bottom: 0;
  width: min(22vw, 260px);
  height: auto;
  z-index: 1;
  pointer-events: none;
}

/* Calabaza centrada antes de empezar */
body.halloween-theme .halloween-pumpkin-center {
  position: fixed;
  left: 50%;
  top: 85%;
  transform: translate(-50%, -50%);
  width: 260px;
  height: 260px;
  z-index: 1000;
  pointer-events: none;
}

/* ————— Halloween: convertir las letras del rosco en calabazas ————— */
body.halloween-theme .letra {
  background: linear-gradient(180deg, #ff8a1a 0%, #ff7518 60%, #d95d0f 100%);
  border-radius: 50% / 60%;
  color: #fff8e1;
  text-shadow: 0 1px 0 rgba(255,255,255,0.6), 0 0 3px rgba(0,0,0,0.25);
  border-color: rgba(0,0,0,0.06);
  position: absolute;
  z-index: 1;
}
body.halloween-theme .letra::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: repeating-linear-gradient(
    90deg,
    rgba(0,0,0,0.08) 0 6%,
    rgba(255,255,255,0.10) 6% 12%
  );
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
}
body.halloween-theme .letra::after {
  content: '';
  position: absolute;
  top: -18%;
  left: 50%;
  width: 20%;
  height: 28%;
  transform: translateX(-50%) rotate(-12deg);
  background: linear-gradient(180deg, #2e7d32, #1b5e20);
  border-radius: 3px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.25);
  z-index: 0;
}

/* Halloween: convertir letra-actual en calabaza */
body.halloween-theme .letra-actual {
  background: linear-gradient(180deg, #ff8a1a 0%, #ff7518 60%, #d95d0f 100%);
  border-radius: 50% / 60%;
  color: #fff8e1;
  text-shadow: 0 1px 0 rgba(255,255,255,0.6), 0 0 3px rgba(0,0,0,0.25);
  border: 1px solid rgba(0,0,0,0.06);
  position: relative;
  z-index: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
body.halloween-theme .letra-actual::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: repeating-linear-gradient(
    90deg,
    rgba(0,0,0,0.08) 0 6%,
    rgba(255,255,255,0.10) 6% 12%
  );
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
}
body.halloween-theme .letra-actual::after {
  content: '';
  position: absolute;
  top: -15%;
  left: 50%;
  width: 18%;
  height: 25%;
  transform: translateX(-50%) rotate(-12deg);
  background: linear-gradient(180deg, #2e7d32, #1b5e20);
  border-radius: 3px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.25);
  z-index: 0;
}

/* ===== ESTILOS QR PARA PASAPALABRA ===== */
body.halloween-theme .qr-container {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

body.halloween-theme .qr-card {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}
body.halloween-theme .qr-code-wrapper {
  padding: 0 !important;
  line-height: 0;
  background: transparent !important;
}
body.halloween-theme .qr-code-wrapper svg {
  display: block;
}

/* Estilo exclusivo para el Rulo en Halloween */
body.halloween-theme .qr-container-rulo {
  background: rgb(255 255 255 / 100%) !important;
  border: 2px solid rgba(255, 117, 24, 0.8) !important;
  border-radius: 15px !important;
  box-shadow: 0 4px 15px rgba(255, 117, 24, 0.3) !important;
  backdrop-filter: blur(10px) !important;
  padding: 2vh !important;
}

/* Hacer que qr-card y qr-code-wrapper también sean blancos dentro de qr-container-rulo */
body.halloween-theme .qr-container-rulo .qr-card {
  background: white !important;
  border: none !important;
  box-shadow: none !important;
  padding: 1.5vh !important;
}

body.halloween-theme .qr-container-rulo .qr-code-wrapper {
  background: white !important;
  padding: 0 !important;
}

body.halloween-theme .qr-code-wrapper svg {
  width: calc(24vw - 0.2vw);
  height: calc(24vw - 0.2vw);
}

/* ===================== ESTILOS ESPECÍFICOS PARA BINGO ===================== */

/* Telaraña Halloween esquina inferior derecha */
body.halloween-theme .halloween-spiderweb-corner {
  position: fixed;
  right: 0;
  bottom: 0;
  width: min(22vw, 260px);
  height: auto;
  z-index: 1;
  pointer-events: none;
}

/* Calabaza Halloween - posición específica para Bingo */
body.halloween-theme .halloween-pumpkin-bingo {
  position: fixed;
  right: 2vw;
  bottom: 0vh;
  width: 240px;
  height: 240px;
  z-index: 1000;
  pointer-events: none;
}

/* Halloween: convertir bolas del historial en calabazas */
body.halloween-theme .bola-historial {
  width: clamp(56px, 7vw, 90px);
  height: clamp(40px, 5vw, 70px);
  border-radius: 50% / 60%;
  background: linear-gradient(180deg, #ff8a1a 0%, #ff7518 60%, #d95d0f 100%);
  color: #fff8e1;
  text-shadow: 0 1px 0 rgba(255,255,255,0.6), 0 0 3px rgba(0,0,0,0.3);
  position: relative;
}
body.halloween-theme .bola-historial::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: repeating-linear-gradient(
    90deg,
    rgba(0,0,0,0.08) 0 6%,
    rgba(255,255,255,0.10) 6% 12%
  );
  mix-blend-mode: multiply;
  pointer-events: none;
}
body.halloween-theme .bola-historial::after {
  content: '';
  position: absolute;
  top: -0.9vw;
  left: 50%;
  width: clamp(8px, 0.9vw, 14px);
  height: clamp(10px, 1.2vw, 18px);
  transform: translateX(-50%) rotate(-12deg);
  background: linear-gradient(180deg, #2e7d32, #1b5e20);
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.25);
}

/* Halloween Theme Overrides para el bombo */
body.halloween-theme .bombo-fondo {
  border-color: #f8a136;
  background: radial-gradient(circle, #feae2f 0%, #161615 65%);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

body.halloween-theme .number-ball {
  background: radial-gradient(circle, #ffc97e 0%, #f4a629 70%);
  color: #ffffff;
  border: none;
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.15);
}

/* Halloween: convertir bola-bingo en calabaza - Diseño Premium con Brillo */
body.halloween-theme .bola-bingo {
  width: clamp(120px, 25vw, 200px) !important;
  height: clamp(96px, 20vw, 160px) !important;
  border-radius: 50% / 60% !important;
  /* Gradiente mejorado con más contraste y profundidad */
  background: linear-gradient(
    180deg,
    #ffb84d 0%,
    #ff9619 25%,
    #ff7518 50%,
    #e85d04 75%,
    #d95d0f 100%
  ) !important;
  color: #fff8e1 !important;
  /* Sombra múltiple para efecto 3D y brillo profesional */
  box-shadow: 
    0 0 20px rgba(255, 117, 24, 0.8),
    0 0 40px rgba(255, 140, 0, 0.6),
    0 8px 20px rgba(0, 0, 0, 0.5),
    inset 0 2px 10px rgba(255, 255, 255, 0.3),
    inset 0 -2px 10px rgba(0, 0, 0, 0.2) !important;
  border: 3px solid rgba(255, 165, 0, 0.9) !important;
  position: relative !important;
  animation: none !important;
  transform-style: preserve-3d !important;
  overflow: visible !important;
  /* Efecto de brillo sutil constante */
  filter: brightness(1.1) contrast(1.2) drop-shadow(0 0 15px rgba(255, 140, 0, 0.5)) !important;
}

body.halloween-theme .bola-bingo::before {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: inherit !important;
  /* Textura mejorada con más definición */
  background: repeating-linear-gradient(
    90deg,
    rgba(0,0,0,0.12) 0 5%,
    rgba(255,255,255,0.15) 5% 10%,
    rgba(0,0,0,0.12) 10% 15%
  ) !important;
  mix-blend-mode: overlay !important;
  pointer-events: none !important;
  animation: none !important;
  /* Brillo interno para dar profundidad */
  box-shadow: inset 0 0 20px rgba(255, 200, 0, 0.2) !important;
}

body.halloween-theme .bola-bingo::after {
  content: '' !important;
  position: absolute !important;
  top: -18% !important;
  left: 50% !important;
  width: 20% !important;
  height: 28% !important;
  transform: translateX(-50%) rotate(-12deg) !important;
  /* Tallo mejorado con gradiente y brillo */
  background: linear-gradient(180deg, #4caf50 0%, #2e7d32 50%, #1b5e20 100%) !important;
  border-radius: 3px !important;
  border: 2px solid #1b5e20 !important;
  /* Sombra y brillo para el tallo */
  box-shadow: 
    0 2px 8px rgba(0,0,0,0.5),
    0 0 15px rgba(46, 125, 50, 0.8),
    inset 0 1px 2px rgba(255, 255, 255, 0.3) !important;
  z-index: 10 !important;
  filter: contrast(1.3) brightness(1.1) !important;
}

body.halloween-theme .numero-bingo {
  color: #ffffff !important;
  /* Texto con sombra múltiple para máximo contraste y brillo */
  text-shadow: 
    0 0 10px rgba(255, 215, 0, 1),
    0 0 20px rgba(255, 200, 0, 0.8),
    0 0 30px rgba(255, 140, 0, 0.6),
    0 2px 4px rgba(0, 0, 0, 0.8),
    0 4px 8px rgba(0, 0, 0, 0.6) !important;
  /* Brillo adicional */
  filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.9)) !important;
  position: relative !important;
  z-index: 100 !important;
  font-weight: 900 !important;
}
