:root {
  --neon-cyan: #00f0ff;
  --neon-magenta: #ff0050;
  --neon-purple: #a855f7;
  --neon-green: #00ff64;
  --bg-dark: #07020d;
  --font-title: 'Orbitron', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

/* ======================================================
   INTRO SPLASH
   ====================================================== */

.intro-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.7s ease, transform 0.7s ease;
  -webkit-tap-highlight-color: transparent;
}

.intro-overlay.salir {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}

.intro-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('./sobre.png') center/cover no-repeat;
  animation: intro-zoom 5s ease-out forwards;
}

@keyframes intro-zoom {
  0% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.intro-sombra {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.intro-contenido {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 20px;
}

.intro-titulo {
  font-family: var(--font-title);
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: 12px;
  color: var(--neon-cyan);
  text-shadow:
    0 0 10px var(--neon-cyan),
    0 0 20px var(--neon-cyan),
    0 0 40px rgba(0, 240, 255, 0.5);
  margin-bottom: 16px;
  animation: intro-flotar 2.5s ease-in-out infinite;
  text-transform: uppercase;
}

.intro-sub {
  font-size: 1rem;
  letter-spacing: 5px;
  color: rgba(255, 255, 255, 0.5);
  animation: intro-parpadear 1.8s ease-in-out infinite;
}

@keyframes intro-flotar {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes intro-parpadear {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 1; }
}

@media (max-width: 700px) {
  .intro-titulo {
    font-size: 1.8rem;
    letter-spacing: 8px;
  }
  .intro-sub {
    font-size: 0.8rem;
    letter-spacing: 3px;
  }
}

@media (max-width: 450px) {
  .intro-titulo {
    font-size: 1.3rem;
    letter-spacing: 5px;
  }
  .intro-sub {
    font-size: 0.7rem;
  }
}

/* ======================================================
   HOME SCREEN — GAMING EDITION
   ====================================================== */

.home-screen {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100vh;
  transition: opacity 0.7s ease, transform 0.7s ease;
  overflow: hidden;
  gap: 60px;
}

/* ── ANIMATED NEON BACKGROUND ── */

.home-screen::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 20% 50%, rgba(0, 240, 255, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse 50% 60% at 80% 30%, rgba(255, 0, 100, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 40% 40% at 50% 80%, rgba(0, 255, 100, 0.06) 0%, transparent 50%);
  animation: neon-bg-move 18s ease-in-out infinite alternate;
}

.home-screen::after {
  content: '';
  position: absolute;
  top: -60%;
  left: -60%;
  width: 220%;
  height: 220%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 40% 30% at 70% 60%, rgba(0, 240, 255, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse 30% 40% at 30% 30%, rgba(255, 0, 200, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse 50% 30% at 60% 80%, rgba(0, 255, 200, 0.04) 0%, transparent 50%);
  animation: neon-bg-move 22s ease-in-out infinite alternate-reverse;
  filter: blur(60px);
}

/* ── MOVING GRID ── */

.grid-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 240, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: grid-mov 24s linear infinite;
}

@keyframes grid-mov {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

/* ── CRT SCANLINES ── */

.scanlines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.06) 2px,
    rgba(0, 0, 0, 0.06) 4px
  );
}

/* ── HOME FLOATING PARTICLES ── */

.particulas-home {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.p-home {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  animation: home-particula-flotar 6s ease-out infinite;
}

@keyframes home-particula-flotar {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.4;
  }
  100% {
    transform: translate(var(--dx), var(--dy)) scale(0.1);
    opacity: 0;
  }
}

@keyframes neon-bg-move {
  0% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(2%, -2%) rotate(2deg); }
  50% { transform: translate(-1%, 3%) rotate(-1deg); }
  75% { transform: translate(3%, 1%) rotate(3deg); }
  100% { transform: translate(-2%, -1%) rotate(-2deg); }
}

/* ── STATES ── */

.home-screen.oculto {
  position: absolute;
  top: 0;
  z-index: 1;
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
}

.home-screen.saliendo {
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
}

/* ── HOME TITLES ── */
.home-titulo-container {
  position: relative;
  z-index: 2;
  text-align: center;
  animation: home-entrada 1s ease-out backwards;
}

.home-main-title {
  font-family: var(--font-title);
  font-size: 4rem;
  font-weight: 900;
  letter-spacing: 15px;
  color: var(--neon-cyan);
  text-shadow:
    0 0 10px var(--neon-cyan),
    0 0 20px var(--neon-cyan),
    0 0 60px rgba(0, 240, 255, 0.8);
  margin-bottom: 10px;
  text-transform: uppercase;
  animation: intro-flotar 3s ease-in-out infinite;
}

.home-sub-title {
  font-family: var(--font-title);
  font-size: 1.2rem;
  letter-spacing: 8px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  animation: intro-parpadear 2s ease-in-out infinite;
}

@media (max-width: 800px) {
  .home-main-title {
    font-size: 2.5rem;
    letter-spacing: 10px;
  }
  .home-sub-title {
    font-size: 0.9rem;
    letter-spacing: 5px;
  }
}

/* ── IMAGE BUTTONS ── */

.home-botones {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 80px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 20px;
  animation: home-entrada 0.9s ease-out backwards;
  animation-delay: 0.3s;
}

@keyframes home-entrada {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

.btn-img {
  width: 500px;
  max-width: 70vw;
  height: auto;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  border-radius: 18px;
  border: 1px solid rgba(0, 240, 255, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.35s ease, box-shadow 0.35s ease;
  animation: img-flotar 4s ease-in-out infinite;
  filter: drop-shadow(0 0 30px rgba(0, 240, 255, 0.5));
}

/* Fullscreen toggle button */
.btn-fullscreen {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.4);
  border: 1.5px solid rgba(0, 240, 255, 0.3);
  color: #0ff;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  z-index: 10000;

}

.btn-fullscreen:hover {
  background: rgba(0, 240, 255, 0.1);
  border-color: rgba(0, 240, 255, 0.6);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}
.btn-fullscreen:active {
  transform: scale(0.95);
}

#btnJuegos {
  animation-delay: 1s;
  filter: drop-shadow(0 0 12px rgba(168, 85, 247, 0.15));
}

@keyframes img-flotar {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.btn-img:hover {
  animation: img-hover-glow 1.5s linear infinite, img-flotar 4s ease-in-out infinite;
  transform: scale(1.2);
  filter: brightness(1.3) contrast(1.2) drop-shadow(0 0 40px rgba(0, 240, 255, 0.7));
  border-radius: 18px;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.6), 0 0 40px rgba(0, 240, 255, 0.3);
}

@keyframes img-hover-glow {
  0% { box-shadow: 0 0 30px rgba(255, 0, 80, 0.4), 0 0 60px rgba(255, 0, 80, 0.15); }
  20% { box-shadow: 0 0 30px rgba(255, 100, 0, 0.4), 0 0 60px rgba(255, 100, 0, 0.15); }
  40% { box-shadow: 0 0 30px rgba(255, 255, 0, 0.4), 0 0 60px rgba(255, 255, 0, 0.15); }
  60% { box-shadow: 0 0 30px rgba(0, 255, 100, 0.4), 0 0 60px rgba(0, 255, 100, 0.15); }
  80% { box-shadow: 0 0 30px rgba(0, 100, 255, 0.4), 0 0 60px rgba(0, 100, 255, 0.15); }
  100% { box-shadow: 0 0 30px rgba(255, 0, 80, 0.4), 0 0 60px rgba(255, 0, 80, 0.15); }
}

#btnJuegos:hover {
  animation: img-hover-glow-juegos 1.5s linear infinite, img-flotar 4s ease-in-out infinite;
}

@keyframes img-hover-glow-juegos {
  0% { box-shadow: 0 0 30px rgba(180, 0, 255, 0.4), 0 0 60px rgba(180, 0, 255, 0.15); }
  25% { box-shadow: 0 0 30px rgba(255, 0, 100, 0.4), 0 0 60px rgba(255, 0, 100, 0.15); }
  50% { box-shadow: 0 0 30px rgba(0, 200, 255, 0.4), 0 0 60px rgba(0, 200, 255, 0.15); }
  75% { box-shadow: 0 0 30px rgba(255, 0, 200, 0.4), 0 0 60px rgba(255, 0, 200, 0.15); }
  100% { box-shadow: 0 0 30px rgba(180, 0, 255, 0.4), 0 0 60px rgba(180, 0, 255, 0.15); }
}

.btn-img:active {
  transform: scale(0.93);
  animation: none;
}

.btn-img.sacudir {
  animation: sacudir 0.4s ease !important;
}

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

/* ======================================================
   GAMES HUB - GALERÍA DE EXPERIENCIAS
   ====================================================== */

.games-screen {
  position: absolute;
  top: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 100vh;
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
  overflow-y: auto;
  padding: 80px 20px 40px;
}

.games-screen.active {
  position: relative;
  z-index: 2;
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

/* ── DESTINO SCREEN ── */
.destino-screen {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1000px;
  min-height: 80vh;
  animation: home-entrada 0.8s ease-out backwards;
  gap: 30px;
}

.destino-particles {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.destino-titulo {
  font-family: var(--font-title);
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: 14px;
  color: var(--neon-purple);
  text-shadow: 0 0 30px rgba(168,85,247,0.6), 0 0 80px rgba(168,85,247,0.3);
  text-transform: uppercase;
  animation: flotar-texto 3s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

.destino-sub {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 8px;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
  margin-top: -10px;
}

/* ── Destiny Cards Row ── */
.destino-cards {
  display: flex;
  gap: 18px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
  perspective: 1200px;
}

.destino-card {
  width: 150px;
  height: 180px;
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.35s cubic-bezier(0.34,1.56,0.64,1);
  user-select: none;
  position: relative;
  overflow: hidden;
}

.destino-card .destino-card-icono {
  font-size: 2.4rem;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.destino-card .destino-card-nombre {
  font-family: var(--font-title);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.3;
  transition: color 0.3s ease;
  padding: 0 6px;
}

/* ── Card colors ── */
.destino-card[data-game="espejo"] { border-color: rgba(0,240,255,0.25); }
.destino-card[data-game="espejo"] .destino-card-nombre { color: var(--neon-cyan); }
.destino-card[data-game="ruleta"] { border-color: rgba(255,215,0,0.25); }
.destino-card[data-game="ruleta"] .destino-card-nombre { color: #ffd700; }
.destino-card[data-game="verdad"] { border-color: rgba(0,255,100,0.25); }
.destino-card[data-game="verdad"] .destino-card-nombre { color: var(--neon-green); }
.destino-card[data-game="caja"] { border-color: rgba(255,0,80,0.25); }
.destino-card[data-game="caja"] .destino-card-nombre { color: var(--neon-magenta); }
.destino-card[data-game="prefieres"] { border-color: rgba(255,165,0,0.25); }
.destino-card[data-game="prefieres"] .destino-card-nombre { color: #ffa500; }

/* ── Card states ── */
.destino-card.iluminado {
  transform: scale(1.15) translateY(-8px);
  border-color: #fff;
  box-shadow: 0 0 40px rgba(255,255,255,0.4), 0 0 80px rgba(255,255,255,0.2), inset 0 0 20px rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.08);
}
.destino-card.iluminado .destino-card-icono {
  transform: scale(1.15);
  filter: brightness(1.8) drop-shadow(0 0 15px currentColor);
}
.destino-card.iluminado .destino-card-nombre {
  color: #fff;
  text-shadow: 0 0 20px rgba(255,255,255,0.5);
}

.destino-card.iluminado-espejo {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 50px rgba(0,240,255,0.6), 0 0 100px rgba(0,240,255,0.3), inset 0 0 25px rgba(0,240,255,0.15);
  background: rgba(0,240,255,0.1);
}
.destino-card.iluminado-espejo .destino-card-nombre { color: var(--neon-cyan); text-shadow: 0 0 20px rgba(0,240,255,0.6); }

.destino-card.iluminado-ruleta {
  border-color: #ffd700;
  box-shadow: 0 0 50px rgba(255,215,0,0.6), 0 0 100px rgba(255,215,0,0.3), inset 0 0 25px rgba(255,215,0,0.15);
  background: rgba(255,215,0,0.1);
}
.destino-card.iluminado-ruleta .destino-card-nombre { color: #ffd700; text-shadow: 0 0 20px rgba(255,215,0,0.6); }

.destino-card.iluminado-verdad {
  border-color: var(--neon-green);
  box-shadow: 0 0 50px rgba(0,255,100,0.6), 0 0 100px rgba(0,255,100,0.3), inset 0 0 25px rgba(0,255,100,0.15);
  background: rgba(0,255,100,0.1);
}
.destino-card.iluminado-verdad .destino-card-nombre { color: var(--neon-green); text-shadow: 0 0 20px rgba(0,255,100,0.6); }

.destino-card.iluminado-caja {
  border-color: var(--neon-magenta);
  box-shadow: 0 0 50px rgba(255,0,80,0.6), 0 0 100px rgba(255,0,80,0.3), inset 0 0 25px rgba(255,0,80,0.15);
  background: rgba(255,0,80,0.1);
}
.destino-card.iluminado-caja .destino-card-nombre { color: var(--neon-magenta); text-shadow: 0 0 20px rgba(255,0,80,0.6); }

.destino-card.iluminado-prefieres {
  border-color: #ffa500;
  box-shadow: 0 0 50px rgba(255,165,0,0.6), 0 0 100px rgba(255,165,0,0.3), inset 0 0 25px rgba(255,165,0,0.15);
  background: rgba(255,165,0,0.1);
}
.destino-card.iluminado-prefieres .destino-card-nombre { color: #ffa500; text-shadow: 0 0 20px rgba(255,165,0,0.6); }

/* ── Card dim (losers) ── */
.destino-card.oscurecido {
  opacity: 0.25;
  transform: scale(0.92);
  filter: grayscale(0.6) blur(1px);
  pointer-events: none;
}

/* ── Card winner (explosion) ── */
.destino-card.ganador {
  transform: scale(1.3) translateY(-12px);
  z-index: 10;
  animation: ganador-pulso 0.6s ease-in-out 3;
}
@keyframes ganador-pulso {
  0%, 100% { box-shadow: 0 0 60px rgba(255,255,255,0.5), 0 0 120px rgba(255,255,255,0.2); }
  50% { box-shadow: 0 0 100px rgba(255,255,255,0.8), 0 0 200px rgba(255,255,255,0.4); }
}

/* ── THE BUTTON ── */
.destino-btn {
  position: relative;
  z-index: 1;
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 8px;
  padding: 22px 60px;
  background: transparent;
  border: 2.5px solid var(--neon-purple);
  border-radius: 60px;
  color: var(--neon-purple);
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.35s cubic-bezier(0.34,1.56,0.64,1);
  text-shadow: 0 0 20px rgba(168,85,247,0.4);
  box-shadow: 0 0 30px rgba(168,85,247,0.2), inset 0 0 30px rgba(168,85,247,0.05);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  animation: btn-respirar 2.5s ease-in-out infinite;
}

@keyframes btn-respirar {
  0%, 100% { box-shadow: 0 0 30px rgba(168,85,247,0.2), inset 0 0 30px rgba(168,85,247,0.05); }
  50% { box-shadow: 0 0 60px rgba(168,85,247,0.4), inset 0 0 40px rgba(168,85,247,0.1); }
}

.destino-btn:hover {
  transform: translateY(-4px) scale(1.04);
  background: rgba(168,85,247,0.1);
  box-shadow: 0 0 60px rgba(168,85,247,0.5), inset 0 0 40px rgba(168,85,247,0.15);
  border-color: #fff;
  color: #fff;
  text-shadow: 0 0 30px rgba(255,255,255,0.5);
}

.destino-btn:active {
  transform: scale(0.96);
}

.destino-btn:disabled {
  opacity: 0.3;
  cursor: default;
  transform: none;
  animation: none;
  pointer-events: none;
}

/* ── RESULT OVERLAY ── */
.destino-resultado {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  background: rgba(0,0,0,0);
  transition: opacity 0.6s ease, background 0.6s ease;
}

.destino-resultado.show {
  opacity: 1;
  background: rgba(0,0,0,0.75);
  pointer-events: auto;
}

.destino-resultado-inner {
  text-align: center;
  padding: 50px 40px;
  background: rgba(10,5,20,0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: 30px;
  max-width: 500px;
  width: 90%;
  transform: scale(0.8) translateY(20px);
  transition: transform 0.7s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow: 0 0 80px rgba(168,85,247,0.2), 0 0 160px rgba(168,85,247,0.1);
}

.destino-resultado.show .destino-resultado-inner {
  transform: scale(1) translateY(0);
}

.destino-elegido {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 8px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 20px;
  text-transform: uppercase;
}

.destino-ganador {
  margin: 30px 0;
}

.destino-ganador-icono {
  font-size: 5rem;
  margin-bottom: 10px;
  animation: ganador-flotar 2s ease-in-out infinite;
}

@keyframes ganador-flotar {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.05); }
}

.destino-ganador-nombre {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 6px;
  line-height: 1.3;
  text-shadow: 0 0 30px currentColor, 0 0 60px currentColor;
}

.destino-comenzar {
  margin-top: 10px;
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 5px;
  padding: 16px 50px;
  background: transparent;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 40px;
  color: #fff;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.35s cubic-bezier(0.34,1.56,0.64,1);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease 0.3s, transform 0.5s ease 0.3s, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.destino-resultado.show .destino-comenzar {
  opacity: 1;
  transform: translateY(0);
}

.destino-comenzar:hover {
  background: rgba(255,255,255,0.08);
  border-color: #fff;
  box-shadow: 0 0 30px rgba(255,255,255,0.2);
  transform: translateY(-3px);
}

.destino-comenzar:active {
  transform: scale(0.96);
}

/* ── Game Views ── */
.game-view {
  position: absolute;
  top: 0; left: 0;
  width: 100%; min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  padding: 80px 20px 40px;
  z-index: 3;
}
.game-view.active {
  pointer-events: auto;
  opacity: 1;
}

.btn-back-game {
  position: fixed !important;
  z-index: 100 !important;
}

/* ======================================================
   GAME: ROMPE EL ESPEJO
   ====================================================== */
.espejo-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 700px;
  width: 100%;
  perspective: 1000px;
}

.fragmento {
  position: relative;
  aspect-ratio: 1;
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0,240,255,0.2);
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: rgba(0,240,255,0.6);
  text-shadow: 0 0 10px rgba(0,240,255,0.3);
  transition: transform 0.5s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.4s ease, border-color 0.4s ease, background 0.4s ease;
  transform-style: preserve-3d;
  min-height: 100px;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.fragmento:hover {
  transform: translateY(-3px) scale(1.03);
  border-color: rgba(0,240,255,0.6);
  box-shadow: 0 0 20px rgba(0,240,255,0.3);
}
.fragmento.revelado {
  transform: rotateY(180deg) scale(1.05);
  background: rgba(0,240,255,0.08);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 30px rgba(0,240,255,0.5);
}
.fragmento .frag-texto {
  display: none;
  font-size: 0.75rem;
  font-weight: 400;
  color: #fff;
  text-shadow: none;
  padding: 10px;
  text-align: center;
  line-height: 1.3;
  transform: rotateY(180deg);
}
.fragmento.revelado .frag-texto {
  display: block;
}
.fragmento.revelado .frag-num {
  display: none;
}

/* ======================================================
   GAME: RULETA DEL DESTINO — TV SHOW EDITION
   ====================================================== */
.ruleta-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  width: 100%;
  min-height: 80vh;
  padding: 20px;
}

/* ── Stage ── */
.ruleta-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 820px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}
.ruleta-stage-beam {
  position: absolute;
  top: -30%;
  left: -10%;
  width: 120%;
  height: 120%;
  background: radial-gradient(ellipse at 50% 30%, rgba(255,215,0,0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
  animation: ruleta-beam-pulse 4s ease-in-out infinite;
}
@keyframes ruleta-beam-pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}
.ruleta-stage-vignette {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.4) 100%);
  pointer-events: none;
  z-index: 1;
  border-radius: 50%;
}
.ruleta-stage-glow {
  position: absolute;
  top: 50%; left: 50%;
  width: 120%; height: 120%;
  transform: translate(-50%,-50%) scale(0.8);
  background: radial-gradient(circle at center, rgba(255,215,0,0.15) 0%, rgba(255,150,0,0.05) 30%, transparent 60%);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
  border-radius: 50%;
}

/* ── Particles container ── */
.ruleta-particles {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 5;
  overflow: visible;
}

/* ── Wheel wrapper ── */
.ruleta-wheel-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 75vmin;
  height: 75vmin;
  max-width: 700px;
  max-height: 700px;
}

#ruletaCanvas {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  touch-action: none;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 40px rgba(255,215,0,0.2));
}
.ruleta-container.girando #ruletaCanvas {
  filter: drop-shadow(0 0 60px rgba(255,215,0,0.4)) brightness(1.1);
}

/* ── Outer cosmic ring ── */
.ruleta-outer-ring {
  position: absolute;
  top: -12px; left: -12px;
  width: calc(100% + 24px);
  height: calc(100% + 24px);
  border-radius: 50%;
  border: 3px solid rgba(255,215,0,0.15);
  z-index: 1;
  pointer-events: none;
  animation: ruleta-ring-rotate 12s linear infinite;
  box-shadow:
    0 0 30px rgba(255,215,0,0.1),
    inset 0 0 30px rgba(255,215,0,0.05);
}
@keyframes ruleta-ring-rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.ruleta-container.girando .ruleta-outer-ring {
  animation-duration: 3s;
  border-color: rgba(255,215,0,0.4);
  box-shadow:
    0 0 60px rgba(255,215,0,0.3),
    inset 0 0 60px rgba(255,215,0,0.1);
}

/* ── Indicator ── */
.ruleta-indicator {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  pointer-events: none;
  filter: drop-shadow(0 0 10px rgba(255,215,0,0.5));
}
.ruleta-indicator-arrow {
  width: 0;
  height: 0;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-top: 30px solid #ffd700;
  filter: drop-shadow(0 0 8px rgba(255,215,0,0.6));
  animation: ruleta-indicator-pulse 1.5s ease-in-out infinite;
}
@keyframes ruleta-indicator-pulse {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(255,215,0,0.4)); }
  50% { filter: drop-shadow(0 0 20px rgba(255,215,0,0.8)); }
}

/* ── Energy FX ── */
.ruleta-energy {
  position: absolute;
  top: 50%; left: 50%;
  width: 100%; height: 100%;
  transform: translate(-50%,-50%);
  pointer-events: none;
  z-index: 3;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.ruleta-energy.pulse {
  animation: ruleta-energy-pulse 0.8s ease-out forwards;
}
@keyframes ruleta-energy-pulse {
  0% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(255,215,0,0.6);
  }
  100% {
    opacity: 0;
    box-shadow: 0 0 0 80px rgba(255,215,0,0);
  }
}

/* ── FX Particles ── */
.ruleta-fx-particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 6;
}
@keyframes ruleta-part-flotar {
  0% { opacity: 1; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(var(--dx, 100px), var(--dy, -100px)) scale(0); }
}

.ruleta-ambient-particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
}
@keyframes ruleta-ambient-float {
  0%, 100% { opacity: 0; transform: translateY(0) scale(1); }
  20% { opacity: 0.6; }
  80% { opacity: 0.3; transform: translateY(-30px) scale(0.6); }
}

/* ── GIRAR button ── */
.ruleta-btn {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 8px;
  padding: 18px 70px;
  background: linear-gradient(135deg, rgba(255,215,0,0.08) 0%, rgba(255,215,0,0.02) 100%);
  border: 2px solid #ffd700;
  border-radius: 50px;
  color: #ffd700;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1);
  text-shadow: 0 0 15px rgba(255,215,0,0.3);
  box-shadow: 0 0 30px rgba(255,215,0,0.15), 0 4px 30px rgba(0,0,0,0.3);
  position: relative;
  z-index: 10;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  animation: ruleta-btn-respirar 3s ease-in-out infinite;
}
.ruleta-btn:hover {
  background: linear-gradient(135deg, rgba(255,215,0,0.15) 0%, rgba(255,215,0,0.05) 100%);
  box-shadow: 0 0 60px rgba(255,215,0,0.4), 0 6px 40px rgba(0,0,0,0.4);
  transform: translateY(-4px) scale(1.02);
  text-shadow: 0 0 25px rgba(255,215,0,0.5);
}
.ruleta-btn:active {
  transform: scale(0.96);
}
.ruleta-btn:disabled {
  opacity: 0.5;
  cursor: default;
  transform: none;
  animation: none;
  box-shadow: none;
}
@keyframes ruleta-btn-respirar {
  0%, 100% { box-shadow: 0 0 30px rgba(255,215,0,0.15), 0 4px 30px rgba(0,0,0,0.3); }
  50% { box-shadow: 0 0 50px rgba(255,215,0,0.3), 0 4px 30px rgba(0,0,0,0.3); }
}

/* ── Result overlay ── */
.ruleta-resultado {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%) scale(0);
  background: rgba(5, 0, 15, 0.92);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 2px solid #ffd700;
  border-radius: 24px;
  padding: 40px 50px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  z-index: 300;
  box-shadow: 0 0 100px rgba(255,215,0,0.3), 0 0 200px rgba(255,215,0,0.15);
  transition: transform 0.6s cubic-bezier(0.34,1.56,0.64,1);
}
.ruleta-resultado.show {
  transform: translate(-50%,-50%) scale(1);
}
.ruleta-resultado p {
  font-size: 1.4rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: 1px;
  line-height: 1.6;
  margin-top: 8px;
}
.ruleta-resultado .categoria {
  font-size: 1rem;
  letter-spacing: 6px;
  text-transform: uppercase;
  margin-bottom: 10px;
  font-weight: 800;
  animation: ruleta-categoria-brillar 2s ease-in-out infinite;
}
@keyframes ruleta-categoria-brillar {
  0%, 100% { text-shadow: 0 0 20px currentColor; }
  50% { text-shadow: 0 0 40px currentColor, 0 0 80px currentColor; }
}
.ruleta-resultado .cerrar {
  margin-top: 24px;
  padding: 12px 36px;
  background: rgba(255,255,255,0.03);
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 30px;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  font-family: var(--font-title);
  font-size: 0.75rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}
.ruleta-resultado .cerrar:hover {
  background: rgba(255,215,0,0.08);
  border-color: #ffd700;
  color: #ffd700;
  box-shadow: 0 0 30px rgba(255,215,0,0.2);
}

.ruleta-resultado-explosion {
  position: absolute;
  top: -20px; left: -20px;
  width: calc(100% + 40px);
  height: calc(100% + 40px);
  border: 2px solid;
  border-radius: 30px;
  pointer-events: none;
  opacity: 0.6;
  animation: ruleta-explosion-pulse 3s ease-out forwards;
}
@keyframes ruleta-explosion-pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  30% { transform: scale(1.02); opacity: 0.4; }
  100% { transform: scale(1.05); opacity: 0; }
}

/* ── Responsive ── */
@media (max-width: 700px) {
  .ruleta-wheel-wrapper {
    width: 82vmin;
    height: 82vmin;
  }
  .ruleta-resultado { padding: 28px 24px; max-width: 380px; }
  .ruleta-resultado p { font-size: 1.1rem; }
  .ruleta-btn { font-size: 0.95rem; padding: 14px 40px; letter-spacing: 6px; }
  .ruleta-indicator { top: -22px; }
  .ruleta-indicator-arrow { border-left-width: 12px; border-right-width: 12px; border-top-width: 24px; }
}
@media (max-width: 450px) {
  .ruleta-wheel-wrapper {
    width: 88vmin;
    height: 88vmin;
  }
  .ruleta-resultado { padding: 24px 18px; max-width: 320px; border-radius: 18px; }
  .ruleta-resultado p { font-size: 0.95rem; }
  .ruleta-resultado .categoria { font-size: 0.8rem; }
  .ruleta-btn { font-size: 0.8rem; padding: 12px 30px; letter-spacing: 4px; }
  .ruleta-indicator { top: -18px; }
  .ruleta-indicator-arrow { border-left-width: 10px; border-right-width: 10px; border-top-width: 20px; }
}

/* ======================================================
   GAME: VERDAD O MENTIRA
   ====================================================== */
.verdad-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 620px;
  width: 100%;
  text-align: center;
  animation: home-entrada 0.5s ease-out backwards;
}

/* ── Top bar: progress + score ── */
.verdad-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 10px 4px;
}
.verdad-progress {
  font-size: 0.75rem;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
}
.verdad-score {
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffd700;
  text-shadow: 0 0 10px rgba(255,215,0,0.3);
  letter-spacing: 2px;
}

/* ── Question card ── */
.verdad-card {
  width: 100%;
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(168,85,247,0.25);
  border-radius: 20px;
  padding: 0;
  overflow: hidden;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
  animation: dim-aparecer 0.5s ease backwards;
}
.verdad-card.animar {
  animation: dim-aparecer 0.5s ease backwards;
}

.verdad-categoria {
  background: rgba(168,85,247,0.1);
  border-bottom: 1px solid rgba(168,85,247,0.15);
  padding: 8px 20px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

.verdad-afirmacion {
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  line-height: 1.5;
  color: #fff;
  padding: 30px 28px;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Buttons ── */
.verdad-botones {
  display: flex;
  gap: 24px;
  width: 100%;
  max-width: 420px;
}
.verdad-btn {
  flex: 1;
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 5px;
  padding: 16px 20px;
  border-radius: 16px;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.verdad-btn-v {
  background: transparent;
  border: 2px solid var(--neon-green);
  color: var(--neon-green);
  text-shadow: 0 0 10px rgba(0,255,100,0.3);
  box-shadow: 0 0 15px rgba(0,255,100,0.1);
}
.verdad-btn-v:hover:not(:disabled) { background: rgba(0,255,100,0.1); box-shadow: 0 0 35px rgba(0,255,100,0.3); transform: translateY(-3px); }
.verdad-btn-m {
  background: transparent;
  border: 2px solid var(--neon-magenta);
  color: var(--neon-magenta);
  text-shadow: 0 0 10px rgba(255,0,80,0.3);
  box-shadow: 0 0 15px rgba(255,0,80,0.1);
}
.verdad-btn-m:hover:not(:disabled) { background: rgba(255,0,80,0.1); box-shadow: 0 0 35px rgba(255,0,80,0.3); transform: translateY(-3px); }
.verdad-btn:disabled { opacity: 0.3; cursor: default; transform: none !important; pointer-events: none; }

/* ── Feedback ── */
.verdad-feedback {
  width: 100%;
  padding: 20px;
  border-radius: 16px;
  opacity: 0;
  transform: translateY(10px) scale(0.95);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-height: 0;
}
.verdad-feedback.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.verdad-feedback.acierto {
  background: rgba(0,255,100,0.06);
  border: 1px solid rgba(0,255,100,0.25);
  box-shadow: 0 0 30px rgba(0,255,100,0.1);
}
.verdad-feedback.fallo {
  background: rgba(255,0,80,0.06);
  border: 1px solid rgba(255,0,80,0.25);
  box-shadow: 0 0 30px rgba(255,0,80,0.1);
}
.verdad-feedback-icono {
  font-size: 2rem;
  font-weight: 900;
  animation: ganador-pulso 0.6s ease-in-out 2;
}
.verdad-feedback.acierto .verdad-feedback-icono { color: var(--neon-green); text-shadow: 0 0 30px rgba(0,255,100,0.5); }
.verdad-feedback.fallo .verdad-feedback-icono { color: var(--neon-magenta); text-shadow: 0 0 30px rgba(255,0,80,0.5); }
.verdad-feedback-texto {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.verdad-feedback.acierto .verdad-feedback-texto { color: var(--neon-green); }
.verdad-feedback.fallo .verdad-feedback-texto { color: var(--neon-magenta); }
.verdad-feedback-explicacion {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.5px;
  line-height: 1.5;
  max-width: 480px;
  margin-top: 4px;
}

/* ── Next indicator ── */
.verdad-siguiente {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
  letter-spacing: 3px;
  animation: pulse-carga 1.2s ease-in-out infinite;
  min-height: 20px;
}

/* ── Results Screen ── */
.verdad-resultados {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  background: rgba(0,0,0,0);
  transition: opacity 0.6s ease, background 0.6s ease;
}
.verdad-resultados.show {
  opacity: 1;
  background: rgba(0,0,0,0.8);
  pointer-events: auto;
}
.verdad-resultados-inner {
  text-align: center;
  padding: 50px 40px;
  background: rgba(10,5,20,0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1.5px solid rgba(255,255,255,0.08);
  border-radius: 30px;
  max-width: 460px;
  width: 90%;
  transform: scale(0.8) translateY(20px);
  transition: transform 0.7s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow: 0 0 60px rgba(168,85,247,0.15);
}
.verdad-resultados.show .verdad-resultados-inner {
  transform: scale(1) translateY(0);
}
.verdad-resultados-titulo {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 8px;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.verdad-resultados-puntaje {
  font-family: var(--font-title);
  font-size: 4rem;
  font-weight: 900;
  letter-spacing: 4px;
  text-shadow: 0 0 40px currentColor, 0 0 80px currentColor;
}
.verdad-resultados-label {
  font-size: 0.7rem;
  letter-spacing: 5px;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.verdad-resultados-aciertos {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 2px;
  margin-bottom: 6px;
}
.verdad-resultados-nivel {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 5px;
  margin: 20px 0;
  text-transform: uppercase;
  text-shadow: 0 0 30px currentColor, 0 0 60px currentColor;
}
.verdad-resultados-bar {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  overflow: hidden;
  margin: 20px 0 30px;
}
.verdad-resultados-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 1s ease;
  box-shadow: 0 0 10px currentColor;
}
.verdad-resultados-reintentar {
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 4px;
  padding: 14px 40px;
  background: transparent;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 40px;
  color: #fff;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.35s cubic-bezier(0.34,1.56,0.64,1);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.verdad-resultados-reintentar:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.5);
  box-shadow: 0 0 20px rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

/* ======================================================
   GAME: CAJA MISTERIOSA
   ====================================================== */
.caja-container {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
  perspective: 1000px;
}
.caja-item {
  width: 160px;
  height: 160px;
  background: linear-gradient(145deg, rgba(255,0,80,0.08), rgba(168,85,247,0.08));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid rgba(255,0,80,0.3);
  border-radius: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  box-shadow: 0 0 20px rgba(255,0,80,0.1);
}
.caja-item:hover {
  transform: translateY(-6px) scale(1.04);
  border-color: rgba(255,0,80,0.6);
  box-shadow: 0 0 40px rgba(255,0,80,0.3);
}
.caja-item.abriendo {
  animation: caja-abrir 0.8s ease forwards;
}
@keyframes caja-abrir {
  0% { transform: scale(1) rotateY(0); }
  30% { transform: scale(1.2) rotateY(90deg); box-shadow: 0 0 80px rgba(255,0,80,0.6); }
  60% { transform: scale(1.3) rotateY(180deg); border-color: var(--neon-cyan); }
  100% { transform: scale(1) rotateY(0); border-color: var(--neon-cyan); box-shadow: 0 0 30px rgba(0,240,255,0.3); }
}
.caja-item.abierto {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 40px rgba(0,240,255,0.3);
  cursor: default;
}
.caja-item .caja-contenido {
  display: none;
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  padding: 16px;
  text-align: center;
  color: #fff;
  line-height: 1.4;
}
.caja-item.abierto .caja-contenido {
  display: flex;
}
.caja-item.abierto .caja-icono {
  display: none;
}

/* ======================================================
   GAME: QUÉ PREFIERES
   ====================================================== */
.prefieres-container {
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 750px;
  width: 100%;
}
.prefieres-panel {
  flex: 1;
  min-width: 200px;
  min-height: 180px;
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid rgba(255,165,0,0.3);
  border-radius: 20px;
  padding: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.5;
  color: #fff;
  transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 0 20px rgba(255,165,0,0.1);
  position: relative;
}
.prefieres-panel:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(255,165,0,0.6);
  box-shadow: 0 0 40px rgba(255,165,0,0.3);
}
.prefieres-panel.seleccionado {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 50px rgba(0,240,255,0.4);
  background: rgba(0,240,255,0.05);
}
.prefieres-vs {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 900;
  color: #ffa500;
  text-shadow: 0 0 20px rgba(255,165,0,0.6);
  animation: pulse-carga 1.5s ease-in-out infinite;
  flex-shrink: 0;
}

/* ======================================================
   RESPONSIVE — DESTINO SCREEN
   ====================================================== */
@media (max-width: 700px) {
  .destino-titulo { font-size: 1.5rem; letter-spacing: 8px; }
  .destino-sub { font-size: 0.75rem; letter-spacing: 5px; }
  .destino-cards { gap: 12px; }
  .destino-card { width: 120px; height: 150px; }
  .destino-card .destino-card-icono { font-size: 1.8rem; }
  .destino-card .destino-card-nombre { font-size: 0.55rem; letter-spacing: 1.5px; }
  .destino-btn { font-size: 1.1rem; padding: 18px 40px; letter-spacing: 6px; }
  .destino-ganador-icono { font-size: 3.5rem; }
  .destino-ganador-nombre { font-size: 1.4rem; letter-spacing: 4px; }

  .espejo-container { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .fragmento { min-height: 80px; font-size: 1.2rem; }

  #ruletaCanvas { width: 300px; height: 300px; }
  .ruleta-btn { font-size: 1rem; padding: 14px 40px; }
  .ruleta-resultado p { font-size: 1.1rem; }

  .verdad-afirmacion { font-size: 1.15rem; padding: 24px 20px; min-height: 100px; }
  .verdad-btn { font-size: 0.85rem; padding: 14px 16px; min-width: 0; letter-spacing: 3px; }
  .verdad-top { padding: 6px 2px; }
  .verdad-categoria { font-size: 0.55rem; padding: 6px 16px; letter-spacing: 3px; }
  .verdad-resultados-puntaje { font-size: 3rem; }
  .verdad-resultados-nivel { font-size: 1rem; letter-spacing: 3px; }
  .verdad-resultados-inner { padding: 35px 24px; }

  .caja-item { width: 130px; height: 130px; font-size: 2.2rem; }

  .prefieres-container { flex-direction: column; }
  .prefieres-panel { min-width: auto; width: 100%; min-height: 130px; font-size: 1rem; }
  .prefieres-vs { font-size: 1.5rem; }
}

@media (max-width: 450px) {
  .destino-titulo { font-size: 1.1rem; letter-spacing: 5px; }
  .destino-sub { font-size: 0.65rem; letter-spacing: 3px; }
  .destino-cards { gap: 8px; }
  .destino-card { width: 90px; height: 120px; border-radius: 12px; }
  .destino-card .destino-card-icono { font-size: 1.4rem; }
  .destino-card .destino-card-nombre { font-size: 0.5rem; letter-spacing: 1px; }
  .destino-btn { font-size: 0.9rem; padding: 14px 28px; letter-spacing: 4px; border-radius: 40px; }
  .destino-resultado-inner { padding: 30px 20px; }
  .destino-elegido { font-size: 0.85rem; letter-spacing: 5px; }
  .destino-ganador-icono { font-size: 2.8rem; }
  .destino-ganador-nombre { font-size: 1.1rem; letter-spacing: 3px; }
  .destino-comenzar { font-size: 0.8rem; padding: 14px 30px; letter-spacing: 3px; }

  .espejo-container { grid-template-columns: repeat(2, 1fr); }
  .fragmento { min-height: 70px; font-size: 1rem; }

  #ruletaCanvas { width: 240px; height: 240px; }
  .ruleta-btn { font-size: 0.85rem; padding: 12px 30px; }

  .verdad-afirmacion { font-size: 0.95rem; padding: 18px 14px; min-height: 80px; }
  .verdad-btn { font-size: 0.75rem; padding: 12px 12px; min-width: 0; letter-spacing: 2px; }
  .verdad-botones { gap: 12px; }
  .verdad-top { gap: 8px; }
  .verdad-progress { font-size: 0.6rem; }
  .verdad-score { font-size: 0.65rem; }
  .verdad-categoria { font-size: 0.5rem; padding: 4px 12px; }
  .verdad-feedback { padding: 14px; }
  .verdad-feedback-explicacion { font-size: 0.7rem; }
  .verdad-resultados-puntaje { font-size: 2.4rem; }
  .verdad-resultados-nivel { font-size: 0.85rem; letter-spacing: 2px; }
  .verdad-resultados-inner { padding: 28px 18px; }
  .verdad-resultados-reintentar { font-size: 0.7rem; padding: 12px 28px; letter-spacing: 3px; }

  .caja-item { width: 110px; height: 110px; font-size: 1.8rem; }
  .caja-item .caja-contenido { font-size: 0.7rem; }

  .prefieres-panel { min-height: 100px; font-size: 0.9rem; }
}

/* ======================================================
   GAME SCREEN
   ====================================================== */

.game-screen {
  position: absolute;
  top: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100vh;
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.game-screen.active {
  position: relative;
  z-index: 2;
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

/* Background video for game screen */
/* .game-screen retains absolute positioning */

.bg-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -1;
  pointer-events: none;
}

.btn-back {
  position: absolute;
  top: 20px;
  left: 20px;
  background: transparent;
  border: 1.5px solid rgba(0, 255, 255, 0.2);
  color: rgba(0, 255, 255, 0.5);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  padding: 8px 18px;
  border-radius: 20px;
  cursor: pointer;
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease,
    box-shadow 0.3s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  z-index: 50;
  font-family: inherit;
}

.btn-back:hover {
  background: rgba(0, 255, 255, 0.06);
  border-color: rgba(0, 255, 255, 0.5);
  color: #0ff;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.15);
}

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

body {
  background: var(--bg-dark);
  background-image: radial-gradient(ellipse at 50% 30%, #2b004d 0%, var(--bg-dark) 60%);
  color: #fff;
  font-family: var(--font-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-x: hidden;
}

.encabezado {
  text-align: center;
  margin-bottom: 50px;
}

h1 {
  font-family: var(--font-title);
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: 6px;
  color: var(--neon-cyan);
  text-shadow: 0 0 10px var(--neon-cyan), 0 0 30px var(--neon-cyan), 0 0 60px rgba(0, 240, 255, 0.6);
  margin-bottom: 10px;
  transition: text-shadow 0.5s ease;
  text-transform: uppercase;
}

h1.activo {
  text-shadow: 0 0 15px #0ff, 0 0 40px #0ff, 0 0 80px rgba(0, 255, 255, 0.7);
}

.subtitulo {
  font-size: 1rem;
  color: #888;
  letter-spacing: 2px;
  transition: color 0.5s ease;
}

.subtitulo.oculto {
  opacity: 0;
  transform: translateY(-10px);
}

.contenedor-sobres {
  display: flex;
  gap: 120px;  /* further increased spacing between sobres cards */
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
}

/* ---------- SOBRE BASE ---------- */
.sobre {
  position: relative;
  width: 200px;
  height: 270px;
  background: rgba(20, 20, 40, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 240, 255, 0.6);
  border-radius: 8px;
  box-shadow:
    0 0 20px rgba(0, 240, 255, 0.2),
    0 8px 32px rgba(0, 0, 0, 0.8),
    inset 0 0 20px rgba(0, 240, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 30px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.4s ease,
    opacity 0.5s ease;
  transform-style: preserve-3d;
  overflow: visible;
}

.sobre:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow:
    0 0 40px rgba(0, 240, 255, 0.6),
    0 12px 40px rgba(0, 0, 0, 0.9),
    inset 0 0 30px rgba(0, 240, 255, 0.3);
  border-color: var(--neon-cyan);
}

.sobre:active {
  transform: scale(0.96);
  box-shadow:
    0 0 20px rgba(0, 255, 255, 0.3),
    0 4px 15px rgba(0, 0, 0, 0.8);
}

/* ---------- SOLAPA (flap) ---------- */
.solapa {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 55%;
  background: linear-gradient(160deg, #151a25, #0a0e1a);
  border-bottom: 1.5px solid rgba(0, 255, 255, 0.3);
  border-radius: 6px 6px 0 0;
  clip-path: polygon(0 0, 100% 0, 100% 65%, 50% 100%, 0 65%);
  z-index: 3;
  pointer-events: none;
  transition:
    transform 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.5s ease;
  transform-origin: top center;
  backface-visibility: hidden;
}

.sobre:hover .solapa {
  background: linear-gradient(160deg, #1a2235, #0e1425);
}

/* ---------- CUERPO (body) ---------- */
.cuerpo-sobre {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, rgba(20, 30, 50, 0.6), rgba(5, 10, 20, 0.8));
  border-radius: 6px;
  z-index: 1;
  pointer-events: none;
  transition:
    transform 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.5s ease;
}

/* ---------- NÚMERO ---------- */
.numero {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: #0ff;
  text-shadow: 0 0 8px rgba(0, 255, 255, 0.4);
  z-index: 4;
  position: relative;
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
  pointer-events: none;
}

/* ---------- INTERIOR (hidden content) ---------- */
.interior {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease 0.6s;
}

/* ---------- BRILLO (glow burst) ---------- */
.brillo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 255, 255, 0.9), rgba(138, 43, 226, 0.5), transparent);
  z-index: 5;
  pointer-events: none;
  opacity: 0;
}

.brillo.animar {
  animation: explosion-brillo 0.8s ease-out forwards;
}

@keyframes explosion-brillo {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  50% {
    transform: scale(15);
    opacity: 0.6;
  }
  100% {
    transform: scale(25);
    opacity: 0;
  }
}

/* ---------- PARTÍCULAS ---------- */
.particulas {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  z-index: 6;
  pointer-events: none;
}

.particula {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
}

.particula.animar {
  animation: volar 0.9s ease-out forwards;
}

@keyframes volar {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(var(--dx, 0), var(--dy, 0)) scale(0.2);
    opacity: 0;
  }
}

/* ---------- REVELAR (content reveal) ---------- */
.revelar {
  text-align: center;
  opacity: 0;
  transform: translateY(15px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 7;
  pointer-events: none;
}

.revelar.visible {
  opacity: 1;
  transform: translateY(0);
}

.revelar-texto {
  font-size: 1rem;
  font-weight: 600;
  color: #0ff;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.revelar-cargando {
  font-size: 0.75rem;
  color: rgba(0, 255, 255, 0.5);
  letter-spacing: 4px;
  animation: pulse-carga 1.2s ease-in-out infinite;
}

@keyframes pulse-carga {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ========== ESTADOS DEL SOBRE ========== */

/* PRESIONAR (clic) */
.sobre.presionar {
  transform: scale(0.92);
  transition-duration: 0.12s;
}

/* SELECCIONADO (inicio animación) */
.sobre.seleccionado {
  transform: scale(1.08) rotate(-2deg);
  z-index: 10;
  box-shadow:
    0 0 40px rgba(0, 255, 255, 0.5),
    0 15px 50px rgba(0, 0, 0, 0.9);
  border-color: rgba(0, 255, 255, 0.9);
  transition:
    transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

/* ABRIENDO (animación activa) */
.sobre.abriendo {
  z-index: 10;
}

.sobre.abriendo .solapa {
  transform: rotateX(-180deg) translateY(-100%);
  opacity: 0;
}

.sobre.abriendo .cuerpo-sobre {
  transform: scaleY(0.6) translateY(30%);
  opacity: 0;
}

.sobre.abriendo .numero {
  opacity: 0;
  transform: scale(0.5);
}

.sobre.abriendo .interior {
  opacity: 1;
}

/* ABIERTO (final) */
.sobre.abierto {
  width: 220px;
  height: 200px;
  z-index: 10;
  border-color: rgba(0, 255, 255, 0.6);
  box-shadow:
    0 0 50px rgba(0, 255, 255, 0.3),
    0 20px 60px rgba(0, 0, 0, 0.9);
  background: rgba(255, 255, 255, 0.02);
  cursor: default;
  transition:
    width 0.5s ease,
    height 0.5s ease,
    box-shadow 0.5s ease;
}

.sobre.abierto .solapa,
.sobre.abierto .cuerpo-sobre {
  display: none;
}

.sobre.abierto .numero {
  display: none;
}

.sobre.abierto .interior {
  opacity: 1;
}

/* OCULTO (los otros sobres) */
.sobre.oculto {
  opacity: 0;
  transform: scale(0.8) translateY(20px);
  pointer-events: none;
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 700px) {
  h1 {
    font-size: 1.6rem;
    letter-spacing: 3px;
  }

  .encabezado {
    margin-bottom: 35px;
  }

  .contenedor-sobres {
    gap: 20px;
  }

  .sobre {
    width: 150px;
    height: 210px;
    padding-bottom: 22px;
  }

  .sobre.abierto {
    width: 170px;
    height: 160px;
  }

  .numero {
    font-size: 0.9rem;
  }

  .revelar-texto {
    font-size: 0.85rem;
  }

  .revelar-cargando {
    font-size: 0.65rem;
  }
}

@media (max-width: 450px) {
  .contenedor-sobres {
    gap: 12px;
  }

  .sobre {
    width: 105px;
    height: 155px;
    padding-bottom: 16px;
  }

  .sobre.abierto {
    width: 125px;
    height: 120px;
  }

  .numero {
    font-size: 0.75rem;
    letter-spacing: 1px;
  }

  h1 {
    font-size: 1.1rem;
    letter-spacing: 2px;
  }
}

/* ======================================================
   DIMENSION THEMES  (CSS custom properties)
   ====================================================== */

:root, body.dim-hub {
  --c1: 0, 255, 255;
  --c2: 138, 43, 226;
  --c3: 255, 0, 255;
  --ct: 0, 255, 255;
}

body.dim-verdad {
  --c1: 0, 180, 255;
  --c2: 100, 180, 255;
  --c3: 150, 210, 255;
  --ct: 126, 200, 255;
  background: radial-gradient(ellipse at center, #0a1628 0%, #000810 70%);
}

body.dim-sombras {
  --c1: 180, 60, 255;
  --c2: 255, 40, 180;
  --c3: 200, 80, 255;
  --ct: 200, 130, 255;
  background: radial-gradient(ellipse at center, #1a0a28 0%, #0a0018 70%);
}

body.dim-decision {
  --c1: 0, 255, 136;
  --c2: 0, 200, 255;
  --c3: 80, 255, 180;
  --ct: 120, 255, 190;
  background: radial-gradient(ellipse at center, #0a1a14 0%, #000a08 70%);
}

/* ======================================================
   PORTAL — INTERACTIVE DIMENSION
   ====================================================== */

/* ---------- ENVELOPE TRANSFORMATION ---------- */

.sobre.transformando {
  z-index: 100;
  transform: scale(2);
  border-radius: 50%;
  border-color: rgba(var(--c1), 0.9);
  box-shadow:
    0 0 60px rgba(var(--c1), 0.5),
    0 0 120px rgba(var(--c2), 0.4),
    0 0 200px rgba(var(--c1), 0.3),
    0 0 300px rgba(var(--c2), 0.15),
    inset 0 0 80px rgba(var(--c1), 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  width: 220px;
  height: 220px;
  pointer-events: none;
  transition:
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    border-radius 0.9s ease,
    box-shadow 0.9s ease,
    width 0.9s ease,
    height 0.9s ease;
}

.sobre.transformando .solapa,
.sobre.transformando .cuerpo-sobre,
.sobre.transformando .numero {
  opacity: 0;
  transition: opacity 0.35s ease;
}

.sobre.transformando .interior {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.sobre.fundido {
  opacity: 0;
  transform: scale(2.5);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* ---------- PORTAL OVERLAY ---------- */

.portal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 200;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  background: rgba(0, 0, 0, 0);
  transition: opacity 0.6s ease, background 0.8s ease;
}

.portal-overlay.activado {
  opacity: 1;
  background: rgba(0, 0, 0, 0.25);
}

.portal-overlay.contenido {
  background: rgba(0, 0, 0, 0.45);
}

.portal-overlay.dimension {
  background: rgba(0, 0, 0, 0.7);
  pointer-events: auto;
}

/* ---------- PORTAL CIRCLE ---------- */

.portal {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition:
    width 1.2s cubic-bezier(0.22, 1, 0.36, 1),
    height 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.portal-overlay.activado .portal {
  width: 300px;
  height: 300px;
}

.portal-overlay.contenido .portal {
  width: 340px;
  height: 340px;
  transition:
    width 0.6s ease,
    height 0.6s ease,
    box-shadow 0.6s ease;
  box-shadow:
    0 0 80px rgba(var(--c1), 0.3),
    0 0 160px rgba(var(--c2), 0.2);
}

.portal-overlay.dimension .portal {
  opacity: 0.35;
  transform: scale(0.55);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* ---------- PORTAL GLOW ---------- */

.portal-brillo {
  position: absolute;
  top: -40%;
  left: -40%;
  width: 180%;
  height: 180%;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    circle,
    rgba(var(--c1), 0.12) 0%,
    rgba(var(--c2), 0.06) 40%,
    transparent 70%
  );
  transition: opacity 0.8s ease;
}

.portal-overlay.activado .portal-brillo {
  opacity: 1;
  animation: portal-palpitar 3s ease-in-out infinite;
}

/* ---------- PORTAL RINGS (VORTEX) ---------- */

.portal-anillo {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.portal-overlay.activado .portal-anillo {
  opacity: 1;
}

.portal-anillo.r1 {
  top: -6px;
  left: -6px;
  width: calc(100% + 12px);
  height: calc(100% + 12px);
  border: 2px solid rgba(var(--c1), 0.5);
  box-shadow:
    inset 0 0 20px rgba(var(--c1), 0.25),
    0 0 20px rgba(var(--c1), 0.2);
  animation: girar-lento 10s linear infinite;
}

.portal-anillo.r2 {
  top: -16px;
  left: -16px;
  width: calc(100% + 32px);
  height: calc(100% + 32px);
  border: 2px solid rgba(var(--c2), 0.4);
  box-shadow:
    inset 0 0 20px rgba(var(--c2), 0.2),
    0 0 20px rgba(var(--c2), 0.15);
  animation: girar-medio 6s linear infinite reverse;
}

.portal-anillo.r3 {
  top: -26px;
  left: -26px;
  width: calc(100% + 52px);
  height: calc(100% + 52px);
  border: 1.5px solid rgba(var(--c3), 0.3);
  box-shadow:
    0 0 25px rgba(var(--c3), 0.15);
  animation: girar-rapido 3.5s linear infinite;
}

/* ---------- LIQUID GLASS ---------- */

.portal-liquido {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  background: conic-gradient(
    from 0deg,
    rgba(var(--c1), 0.08),
    rgba(var(--c2), 0.06),
    rgba(var(--c3), 0.04),
    rgba(var(--c1), 0.1),
    rgba(var(--c2), 0.06),
    transparent 35%,
    rgba(var(--c1), 0.07) 55%,
    rgba(var(--c3), 0.04) 75%,
    transparent
  );
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: opacity 0.8s ease;
}

.portal-overlay.activado .portal-liquido {
  opacity: 1;
  animation: liquido 10s linear infinite;
}

/* ---------- PORTAL CORE ---------- */

.portal-nucleo {
  position: absolute;
  top: 25%;
  left: 25%;
  width: 50%;
  height: 50%;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.35) 0%,
    rgba(var(--c1), 0.15) 40%,
    transparent 70%
  );
  filter: blur(10px);
  transition: opacity 0.8s ease;
}

.portal-overlay.activado .portal-nucleo {
  opacity: 1;
  animation: nucleo-respirar 2.5s ease-in-out infinite;
}

/* ---------- PORTAL PARTICLES ---------- */

.portal-particulas {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  z-index: 5;
  pointer-events: none;
  animation: girar-lento 6s linear infinite;
}

.p-portal {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  animation: portal-orbita 2.8s ease-out forwards;
}

/* ---------- PORTAL CONTENT ---------- */

.portal-contenido {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.portal-overlay.contenido .portal-contenido {
  opacity: 1;
}

.portal-overlay.dimension .portal-contenido {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.portal-titulo {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: rgb(var(--ct));
  text-shadow:
    0 0 20px rgba(var(--ct), 0.6),
    0 0 40px rgba(var(--ct), 0.3),
    0 0 80px rgba(var(--c2), 0.2);
  animation: flotar-texto 2.5s ease-in-out infinite;
}

.portal-sub {
  font-size: 0.8rem;
  color: rgba(var(--ct), 0.55);
  letter-spacing: 6px;
  margin-top: 14px;
  animation:
    pulse-carga 1.2s ease-in-out infinite,
    flotar-texto 2.5s ease-in-out infinite 0.4s;
}

/* ======================================================
   DIMENSION SCENE
   ====================================================== */

.dim-scene {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 15;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.portal-overlay.dimension .dim-scene {
  opacity: 1;
  pointer-events: auto;
}

.dim-contenido {
  text-align: center;
  max-width: 520px;
  padding: 20px;
}

.dim-titulo {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 6px;
  color: rgb(var(--ct));
  text-shadow:
    0 0 30px rgba(var(--ct), 0.5),
    0 0 60px rgba(var(--ct), 0.25);
  margin-bottom: 8px;
  animation: flotar-texto 3s ease-in-out infinite;
}

.dim-descripcion {
  font-size: 0.85rem;
  color: rgba(var(--ct), 0.5);
  letter-spacing: 4px;
  margin-bottom: 30px;
}

.dim-lista {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dim-pregunta {
  background: rgba(var(--c1), 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(var(--c1), 0.2);
  border-radius: 12px;
  padding: 14px 20px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.5px;
  text-align: center;
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease;
  animation: dim-aparecer 0.6s ease backwards;
}

.dim-pregunta:nth-child(1) { animation-delay: 0.1s; }
.dim-pregunta:nth-child(2) { animation-delay: 0.25s; }
.dim-pregunta:nth-child(3) { animation-delay: 0.4s; }
.dim-pregunta:nth-child(4) { animation-delay: 0.55s; }
.dim-pregunta:nth-child(5) { animation-delay: 0.7s; }

.dim-pregunta:hover {
  background: rgba(var(--c1), 0.12);
  border-color: rgba(var(--c1), 0.4);
  transform: translateY(-2px);
}

/* ---------- DIMENSION RETURN BUTTON ---------- */

.dim-volver {
  margin-top: 30px;
  background: transparent;
  border: 1.5px solid rgba(var(--ct), 0.3);
  color: rgb(var(--ct));
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 3px;
  padding: 12px 30px;
  border-radius: 30px;
  cursor: pointer;
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  font-family: inherit;
}

.dim-volver:hover {
  background: rgba(var(--ct), 0.1);
  border-color: rgba(var(--ct), 0.6);
  box-shadow: 0 0 20px rgba(var(--ct), 0.2);
  transform: translateY(-2px);
}

.dim-volver:active {
  transform: scale(0.96);
}

/* ======================================================
   KEYFRAMES
   ====================================================== */

@keyframes girar-lento {
  to { transform: rotate(360deg); }
}

@keyframes girar-medio {
  to { transform: rotate(-360deg); }
}

@keyframes girar-rapido {
  to { transform: rotate(360deg); }
}

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

@keyframes portal-palpitar {
  0%, 100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

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

@keyframes portal-orbita {
  0% {
    transform: translate(0, 0) scale(1.2);
    opacity: 0;
  }
  8% {
    opacity: 0.9;
  }
  100% {
    transform: translate(var(--dx), var(--dy)) scale(0.1);
    opacity: 0;
  }
}

@keyframes flotar-texto {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes dim-aparecer {
  0% {
    opacity: 0;
    transform: translateY(15px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ======================================================
   WELCOME SCREEN (cinematic code entry)
   ====================================================== */
.welcome-screen {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, #0a0018 0%, #07020d 70%);
  overflow: hidden;
}

.welcome-screen.oculto {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

.welcome-particles {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.welcome-card {
  position: relative;
  z-index: 1;
  background: rgba(10, 5, 20, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1.5px solid rgba(168, 85, 247, 0.25);
  border-radius: 30px;
  padding: 50px 45px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 0 60px rgba(168, 85, 247, 0.15), 0 0 120px rgba(0, 240, 255, 0.05);
  animation: dim-aparecer 0.8s ease backwards;
}

.welcome-icono {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.25), transparent);
  border-radius: 50%;
  position: relative;
  animation: nucleo-respirar 3s ease-in-out infinite;
}
.welcome-icono::before {
  content: '\1FA9E';
  font-size: 2.5rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.welcome-titulo-principal {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: 6px;
  color: var(--neon-cyan);
  text-shadow: 0 0 30px rgba(0, 240, 255, 0.5), 0 0 60px rgba(0, 240, 255, 0.25);
  margin-bottom: 14px;
  line-height: 1.4;
}

.welcome-sub {
  font-size: 0.75rem;
  letter-spacing: 5px;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  margin-bottom: 32px;
}

.welcome-input-group {
  position: relative;
  margin-bottom: 16px;
}

.welcome-input {
  width: 100%;
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid rgba(0, 240, 255, 0.2);
  border-radius: 16px;
  color: #fff;
  font-family: var(--font-title);
  font-size: 1.3rem;
  text-align: center;
  outline: none;
  transition: all 0.35s ease;
  letter-spacing: 4px;
  text-transform: uppercase;
}
.welcome-input::placeholder {
  color: rgba(255, 255, 255, 0.15);
  letter-spacing: 3px;
  font-size: 0.9rem;
  text-transform: none;
}
.welcome-input:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.2), inset 0 0 20px rgba(0, 240, 255, 0.05);
  background: rgba(0, 240, 255, 0.04);
}

.welcome-error {
  font-size: 0.7rem;
  color: var(--neon-magenta);
  letter-spacing: 3px;
  min-height: 1.2em;
  margin-bottom: 8px;
  text-shadow: 0 0 10px rgba(255, 0, 80, 0.4);
}

.welcome-btn {
  width: 100%;
  font-family: var(--font-title);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 6px;
  padding: 18px 30px;
  background: transparent;
  border: 2px solid var(--neon-cyan);
  border-radius: 40px;
  color: var(--neon-cyan);
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.1), inset 0 0 20px rgba(0, 240, 255, 0.03);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.welcome-btn:hover {
  transform: translateY(-3px);
  background: rgba(0, 240, 255, 0.06);
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.3), inset 0 0 30px rgba(0, 240, 255, 0.08);
  border-color: #fff;
  color: #fff;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}
.welcome-btn:active {
  transform: scale(0.96);
}
.welcome-btn:disabled {
  opacity: 0.3;
  cursor: default;
  transform: none;
  pointer-events: none;
}

.welcome-bienvenido {
  position: absolute;
  z-index: 10002;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.welcome-bienvenido.show {
  opacity: 1;
}
.welcome-bienvenido-texto {
  font-family: var(--font-title);
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: 8px;
  color: var(--neon-cyan);
  text-shadow: 0 0 40px rgba(0, 240, 255, 0.6), 0 0 80px rgba(0, 240, 255, 0.3);
  animation: intro-flotar 2.5s ease-in-out infinite;
}
.welcome-bienvenido-sub {
  font-size: 0.8rem;
  letter-spacing: 6px;
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
}

/* ── PROFILE CODE ── */
.profile-codigo {
  font-size: 0.7rem;
  letter-spacing: 4px;
  color: rgba(255, 255, 255, 0.25);
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* ======================================================
   ADMIN PANEL
   ====================================================== */
.admin-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  background: rgba(0, 0, 0, 0);
  transition: opacity 0.4s ease, background 0.4s ease;
}
.admin-overlay.show {
  pointer-events: auto;
  opacity: 1;
  background: rgba(0, 0, 0, 0.85);
}

.admin-card {
  background: rgba(10, 5, 20, 0.95);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1.5px solid rgba(168, 85, 247, 0.25);
  border-radius: 24px;
  padding: 36px 32px;
  max-width: 640px;
  width: 92%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 0 60px rgba(168, 85, 247, 0.15);
  animation: dim-aparecer 0.4s ease backwards;
}

.admin-cerrar {
  position: absolute;
  top: 14px; right: 18px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.3);
  font-size: 1.4rem;
  cursor: pointer;
  transition: color 0.2s;
}
.admin-cerrar:hover { color: #fff; }

.admin-titulo {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 6px;
  color: var(--neon-purple);
  text-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
  margin-bottom: 20px;
  text-align: center;
}

/* Admin Login */
.admin-login { text-align: center; }
.admin-login-sub {
  font-size: 0.75rem;
  letter-spacing: 4px;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 20px;
}
.admin-login-input-group { margin-bottom: 12px; }
.admin-input {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid rgba(168, 85, 247, 0.2);
  border-radius: 14px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  text-align: center;
  outline: none;
  transition: all 0.3s ease;
}
.admin-input:focus {
  border-color: var(--neon-purple);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.2);
}
.admin-input-sm { max-width: 200px; display: inline-block; }
.admin-error {
  font-size: 0.65rem;
  color: var(--neon-magenta);
  letter-spacing: 2px;
  min-height: 1.2em;
  margin-bottom: 8px;
}
.admin-btn {
  font-family: var(--font-title);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 4px;
  padding: 12px 28px;
  background: transparent;
  border: 1.5px solid var(--neon-purple);
  border-radius: 30px;
  color: var(--neon-purple);
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.3s ease;
}
.admin-btn:hover {
  background: rgba(168, 85, 247, 0.1);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.2);
}
.admin-btn-sm { font-size: 0.7rem; padding: 8px 18px; letter-spacing: 3px; }

/* Admin Panel */
.admin-panel { text-align: left; }

.admin-stats-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.admin-stat {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 12px 20px;
  text-align: center;
  min-width: 90px;
}
.admin-stat-label {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.25);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.admin-stat-val {
  font-family: var(--font-title);
  font-size: 1.4rem;
  color: #fff;
}

.admin-columns {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.admin-col {
  flex: 1;
  min-width: 220px;
}
.admin-col-titulo {
  font-family: var(--font-title);
  font-size: 0.8rem;
  letter-spacing: 4px;
  color: var(--neon-cyan);
  margin-bottom: 12px;
  text-align: center;
}

.admin-guest-list {
  max-height: 280px;
  overflow-y: auto;
  margin-bottom: 16px;
}

.admin-guest-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  gap: 8px;
  font-size: 0.75rem;
}
.admin-guest-item-info {
  flex: 1;
  min-width: 0;
}
.admin-guest-item-nombre {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}
.admin-guest-item-codigo {
  font-size: 0.6rem;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.25);
}
.admin-guest-item-puntos {
  font-family: var(--font-title);
  color: var(--neon-cyan);
  font-size: 0.75rem;
  white-space: nowrap;
}
.admin-guest-actions {
  display: flex;
  gap: 4px;
}
.admin-guest-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.6rem;
  padding: 4px 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.admin-guest-btn:hover {
  border-color: var(--neon-magenta);
  color: var(--neon-magenta);
}
.admin-guest-btn.admin-guest-btn-edit:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
}

.admin-add-guest {
  text-align: center;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.admin-add-guest h4 {
  width: 100%;
  font-family: var(--font-title);
  font-size: 0.7rem;
  letter-spacing: 4px;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 4px;
}

.admin-games-config {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.admin-game-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}
.admin-game-toggle-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 2px;
}
.admin-game-toggle-switch {
  position: relative;
  width: 40px;
  height: 22px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.3s;
}
.admin-game-toggle-switch.active {
  background: var(--neon-cyan);
}
.admin-game-toggle-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.3s;
}
.admin-game-toggle-switch.active::after {
  transform: translateX(18px);
}

/* ── Responsive Welcome ── */
@media (max-width: 700px) {
  .welcome-titulo-principal { font-size: 1.1rem; letter-spacing: 5px; }
  .welcome-card { padding: 35px 28px; }
  .welcome-input { font-size: 1.1rem; padding: 14px 16px; }
  .welcome-btn { font-size: 0.85rem; padding: 16px 24px; letter-spacing: 4px; }
  .welcome-bienvenido-texto { font-size: 1.8rem; letter-spacing: 6px; }
  .admin-card { padding: 28px 20px; }
  .admin-columns { flex-direction: column; }
  .admin-titulo { font-size: 1.1rem; letter-spacing: 5px; }
}
@media (max-width: 450px) {
  .welcome-titulo-principal { font-size: 0.95rem; letter-spacing: 4px; }
  .welcome-card { padding: 28px 20px; border-radius: 20px; }
  .welcome-sub { font-size: 0.6rem; letter-spacing: 4px; }
  .welcome-input { font-size: 1rem; padding: 12px 14px; border-radius: 12px; }
  .welcome-btn { font-size: 0.75rem; padding: 14px 20px; letter-spacing: 3px; }
  .welcome-icono { width: 60px; height: 60px; }
  .welcome-icono::before { font-size: 2rem; }
  .welcome-bienvenido-texto { font-size: 1.4rem; letter-spacing: 4px; }
  .admin-card { padding: 22px 16px; border-radius: 16px; }
  .admin-titulo { font-size: 0.95rem; letter-spacing: 4px; }
  .admin-columns { flex-direction: column; }
  .admin-stat { padding: 8px 14px; min-width: 70px; }
  .admin-stat-val { font-size: 1.1rem; }
}

/* ======================================================
   DESTINO ACTION BUTTONS (Perfil / Ranking)
   ====================================================== */
.destino-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.destino-action-btn {
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  padding: 10px 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.destino-action-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(168, 85, 247, 0.4);
  color: var(--neon-purple);
  text-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.1);
  transform: translateY(-2px);
}
.destino-action-btn:active {
  transform: scale(0.95);
}

/* ======================================================
   PROFILE OVERLAY
   ====================================================== */
.profile-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  background: rgba(0, 0, 0, 0);
  transition: opacity 0.5s ease, background 0.5s ease;
  padding: 20px;
}
.profile-overlay.show {
  opacity: 1;
  background: rgba(0, 0, 0, 0.8);
  pointer-events: auto;
}

.profile-card {
  width: 100%;
  max-width: 460px;
  max-height: 85vh;
  overflow-y: auto;
  background: rgba(10, 5, 20, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1.5px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  padding: 40px 30px;
  text-align: center;
  transform: scale(0.85) translateY(20px);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 80px rgba(168, 85, 247, 0.12);
  position: relative;
}
.profile-overlay.show .profile-card {
  transform: scale(1) translateY(0);
}

.profile-card::-webkit-scrollbar {
  width: 4px;
}
.profile-card::-webkit-scrollbar-track {
  background: transparent;
}
.profile-card::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.3);
  border-radius: 2px;
}

.profile-cerrar {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.25);
  font-size: 1.4rem;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.3s ease;
  line-height: 1;
}
.profile-cerrar:hover {
  color: #fff;
  transform: rotate(90deg);
}

.profile-header {
  margin-bottom: 16px;
}

.profile-avatar {
  width: 70px;
  height: 70px;
  margin: 0 auto 12px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.2), transparent);
  border: 2px solid rgba(168, 85, 247, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  animation: nucleo-respirar 3s ease-in-out infinite;
}

.profile-nombre {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 4px;
  color: #fff;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
  margin-bottom: 8px;
  word-break: break-word;
}

.profile-nivel-badge {
  display: inline-block;
  padding: 6px 20px;
  border-radius: 30px;
  font-family: var(--font-title);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid;
}

.profile-puntos-section {
  margin: 20px 0 10px;
}
.profile-puntos-label {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 5px;
  color: rgba(255, 255, 255, 0.2);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.profile-puntos-val {
  font-family: var(--font-title);
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: 4px;
  text-shadow: 0 0 40px currentColor, 0 0 80px currentColor;
}

.profile-bar-container {
  margin: 16px 0 24px;
}
.profile-bar-label {
  font-size: 0.55rem;
  letter-spacing: 4px;
  color: rgba(255, 255, 255, 0.2);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.profile-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 6px;
}
.profile-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.8s ease;
  box-shadow: 0 0 10px currentColor;
}
.profile-bar-text {
  font-size: 0.6rem;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.25);
}

.profile-stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.profile-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
}
.profile-stat-label {
  font-size: 0.7rem;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
}
.profile-stat-val {
  font-family: var(--font-title);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--neon-cyan);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.profile-historial {
  text-align: left;
}
.profile-historial-titulo {
  font-family: var(--font-title);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 4px;
  color: rgba(255, 255, 255, 0.2);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.profile-historial-lista {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 180px;
  overflow-y: auto;
}
.profile-historial-lista::-webkit-scrollbar {
  width: 3px;
}
.profile-historial-lista::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.2);
  border-radius: 2px;
}

.profile-historial-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  font-size: 0.7rem;
}
.profile-historial-item .h-juego {
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 1px;
}
.profile-historial-item .h-puntos {
  font-weight: 700;
  font-family: var(--font-title);
  font-size: 0.75rem;
}
.profile-historial-item .h-detalles {
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 0.5px;
}

/* ======================================================
   RANKING OVERLAY
   ====================================================== */
.ranking-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  background: rgba(0, 0, 0, 0);
  transition: opacity 0.5s ease, background 0.5s ease;
  padding: 20px;
}
.ranking-overlay.show {
  opacity: 1;
  background: rgba(0, 0, 0, 0.8);
  pointer-events: auto;
}

.ranking-card {
  width: 100%;
  max-width: 460px;
  max-height: 80vh;
  overflow-y: auto;
  background: rgba(10, 5, 20, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1.5px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  padding: 40px 30px;
  text-align: center;
  transform: scale(0.85) translateY(20px);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 80px rgba(168, 85, 247, 0.12);
  position: relative;
}
.ranking-overlay.show .ranking-card {
  transform: scale(1) translateY(0);
}

.ranking-card::-webkit-scrollbar {
  width: 4px;
}
.ranking-card::-webkit-scrollbar-track {
  background: transparent;
}
.ranking-card::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.3);
  border-radius: 2px;
}

.ranking-cerrar {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.25);
  font-size: 1.4rem;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.3s ease;
  line-height: 1;
}
.ranking-cerrar:hover {
  color: #fff;
  transform: rotate(90deg);
}

.ranking-titulo {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 8px;
  color: var(--neon-purple);
  text-shadow: 0 0 30px rgba(168, 85, 247, 0.5);
  margin-bottom: 4px;
}

.ranking-sub {
  font-size: 0.65rem;
  letter-spacing: 4px;
  color: rgba(255, 255, 255, 0.2);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.ranking-lista {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.ranking-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.ranking-item.es-tu {
  background: rgba(168, 85, 247, 0.06);
  border-color: rgba(168, 85, 247, 0.2);
}

.ranking-item-num {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.15);
  min-width: 30px;
  text-align: center;
}

.ranking-item-info {
  flex: 1;
}
.ranking-item-nombre {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}
.ranking-item-nivel {
  font-size: 0.6rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.5;
}
.ranking-item-puntos {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 700;
  color: var(--neon-cyan);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
  min-width: 60px;
  text-align: right;
}

.ranking-vacio {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 2px;
  padding: 30px 0;
}

.ranking-medalla {
  font-size: 1.2rem;
  min-width: 30px;
  text-align: center;
}

/* ── Responsive Profile & Ranking ── */
@media (max-width: 700px) {
  .profile-card { padding: 30px 20px; }
  .profile-nombre { font-size: 1.3rem; }
  .profile-puntos-val { font-size: 2.8rem; }
  .profile-avatar { width: 60px; height: 60px; font-size: 1.6rem; }
  .profile-stats { gap: 6px; }
  .profile-stat { padding: 8px 12px; }
  .ranking-card { padding: 30px 20px; }
  .ranking-titulo { font-size: 1.1rem; letter-spacing: 6px; }
  .ranking-item { padding: 10px 12px; gap: 10px; }
  .destino-action-btn { font-size: 0.65rem; padding: 8px 18px; letter-spacing: 2px; }
}
@media (max-width: 450px) {
  .profile-card { padding: 24px 16px; border-radius: 18px; }
  .profile-nombre { font-size: 1.1rem; letter-spacing: 3px; }
  .profile-puntos-val { font-size: 2.2rem; }
  .profile-avatar { width: 50px; height: 50px; font-size: 1.3rem; }
  .ranking-card { padding: 24px 16px; border-radius: 18px; }
  .ranking-titulo { font-size: 0.95rem; }
  .ranking-item-num { font-size: 0.9rem; min-width: 24px; }
  .ranking-item-nombre { font-size: 0.75rem; }
  .ranking-item-puntos { font-size: 0.85rem; min-width: 50px; }
  .destino-action-btn { font-size: 0.55rem; padding: 6px 14px; letter-spacing: 1.5px; }
  .destino-actions { gap: 10px; }
}

/* ========== RESPONSIVE — PORTAL ========== */

@media (max-width: 700px) {
  .portal-overlay.activado .portal {
    width: min(80vw, 240px);
    height: min(80vw, 240px);
  }

  .portal-overlay.contenido .portal {
    width: min(85vw, 280px);
    height: min(85vw, 280px);
  }

  .portal-titulo {
    font-size: 1rem;
    letter-spacing: 2px;
  }

  .portal-sub {
    font-size: 0.7rem;
    letter-spacing: 4px;
  }

  .sobre.transformando {
    width: 170px;
    height: 170px;
  }

  .dim-titulo {
    font-size: 1.3rem;
    letter-spacing: 4px;
  }

  .dim-contenido {
    max-width: 85vw;
  }

  .dim-pregunta {
    font-size: 0.85rem;
    padding: 12px 16px;
  }

  .dim-volver {
    font-size: 0.75rem;
    padding: 10px 24px;
  }

  .home-screen {
    padding: 20px;
  }

  .home-botones {
    gap: 24px;
  }

  .btn-img {
    width: 170px;
  }

  .btn-back {
    font-size: 0.7rem;
    padding: 6px 14px;
    top: 12px;
    left: 12px;
  }
}

@media (max-width: 450px) {
  .portal-overlay.activado .portal {
    width: min(78vw, 180px);
    height: min(78vw, 180px);
  }

  .portal-overlay.contenido .portal {
    width: min(82vw, 200px);
    height: min(82vw, 200px);
  }

  .portal-titulo {
    font-size: 0.85rem;
  }

  .portal-sub {
    font-size: 0.6rem;
    letter-spacing: 3px;
  }

  .sobre.transformando {
    width: 130px;
    height: 130px;
  }

  .dim-titulo {
    font-size: 1.1rem;
    letter-spacing: 3px;
  }

  .dim-contenido {
    max-width: 90vw;
    padding: 10px;
  }

  .dim-descripcion {
    font-size: 0.75rem;
    margin-bottom: 20px;
  }

  .dim-pregunta {
    font-size: 0.8rem;
    padding: 10px 14px;
  }

  .dim-volver {
    font-size: 0.7rem;
    padding: 8px 20px;
    margin-top: 22px;
  }

  .home-screen {
    padding: 16px;
  }

  .home-botones {
    gap: 16px;
  }

  .btn-img {
    width: 140px;
    max-width: 38vw;
  }

  .btn-back {
    font-size: 0.65rem;
    padding: 5px 12px;
    top: 10px;
    left: 10px;
  }
}

/* ═══════════════════════════════════════════════
   HOST BAR — Sala en tiempo real
   ═══════════════════════════════════════════════ */

.host-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 16px;
  background: rgba(7, 2, 13, 0.92);
  border-bottom: 1px solid rgba(0, 240, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--font-body);
  font-size: 0.7rem;
  min-height: 36px;
}

.host-bar-left,
.host-bar-center,
.host-bar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.host-bar-label {
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 2px;
  font-size: 0.6rem;
}

.host-bar-codigo {
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 5px;
  color: var(--neon-cyan);
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.3);
}

.host-bar-participantes {
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 1px;
  font-size: 0.6rem;
}

.host-bar-btn {
  padding: 4px 14px;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.15);
  border-radius: 6px;
  color: var(--neon-cyan);
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
}

.host-bar-btn:hover {
  background: rgba(0, 240, 255, 0.15);
}

.host-bar-btn-cerrar {
  background: rgba(255, 0, 80, 0.08);
  border-color: rgba(255, 0, 80, 0.2);
  color: var(--neon-magenta);
}

.host-bar-btn-cerrar:hover {
  background: rgba(255, 0, 80, 0.15);
}

/* Ajuste para que el contenido no quede detr�s de la host bar */
body.has-host-bar .welcome-screen,
body.has-host-bar .home-screen,
body.has-host-bar .games-screen,
body.has-host-bar .game-screen {
  padding-top: 36px;
}

/* Responsive host bar */
@media (max-width: 600px) {
  .host-bar {
    flex-wrap: wrap;
    gap: 4px;
    padding: 4px 10px;
    font-size: 0.6rem;
  }
  .host-bar-codigo {
    font-size: 0.75rem;
    letter-spacing: 3px;
  }
  .host-bar-btn {
    padding: 3px 10px;
    font-size: 0.55rem;
  }
  .host-bar-center {
    order: 3;
    width: 100%;
    justify-content: center;
  }
}


