/* ¿Mito o verdad? — mismos colores, fuentes y texturas que las portadas de los reels */

@font-face { font-family: "Bricolage"; src: url(fuentes/bricolage-grotesque-latin-800-normal.woff2) format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Archivo"; src: url(fuentes/archivo-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Archivo"; src: url(fuentes/archivo-latin-800-normal.woff2) format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Archivo Black"; src: url(fuentes/archivo-black-latin-400-normal.woff2) format("woff2"); font-display: swap; }

:root {
  --fondo: #E7D6B7;
  --fondo2: #E2CFAD;
  --tinta: #1E2431;
  --suave: #5E5A50;
  --acento: #FF7A1A;
  --acento-osc: #E0600A;
  --tarjeta: #FFFBF2;
  --oscuro: #222A35;
  --borde: #16130F;
  --linea: #D6C4A2;
  --rojo: #E5484D;
  --verde: #2BB673;
  --muelle: cubic-bezier(.34, 1.56, .64, 1);
  --suave-salida: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
*:not(html) { margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--fondo);
  color: var(--tinta);
  font-family: "Archivo", system-ui, sans-serif;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}
/* grano de papel, como en los reels */
body::after {
  content: "";
  position: fixed; inset: 0;
  background: url(img/grano.png);
  background-size: 256px;
  mix-blend-mode: multiply;
  opacity: .22;
  pointer-events: none;
  z-index: 50;
}
[hidden] { display: none !important; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { -webkit-user-drag: none; user-select: none; }

/* ---------- Fondo ---------- */
.rayos-fondo {
  position: fixed;
  left: 50%; top: 42%;
  width: 260vmax; height: 260vmax;
  margin: -130vmax 0 0 -130vmax;
  background: repeating-conic-gradient(from 0deg, rgba(255,122,26,.17) 0 10deg, transparent 10deg 22.5deg);
  -webkit-mask: radial-gradient(circle, #000 0 8%, rgba(0,0,0,.85) 18%, transparent 42%);
          mask: radial-gradient(circle, #000 0 8%, rgba(0,0,0,.85) 18%, transparent 42%);
  animation: girar 90s linear infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes girar { to { transform: rotate(360deg); } }

.pegatinas-fondo { position: fixed; inset: 0; pointer-events: none; z-index: 0; display: none; }
.pegatinas-fondo img {
  position: absolute;
  width: var(--w, 120px);
  filter: var(--pegatina);
  opacity: .95;
  animation: flotar var(--d, 6s) ease-in-out var(--r, 0s) infinite alternate;
}
@media (min-width: 900px) { .pegatinas-fondo { display: block; } }

:root {
  --pegatina:
    drop-shadow(3px 0 0 #fff) drop-shadow(-3px 0 0 #fff)
    drop-shadow(0 3px 0 #fff) drop-shadow(0 -3px 0 #fff)
    drop-shadow(5px 7px 0 rgba(22,19,15,.22));
}

@keyframes flotar {
  from { transform: translateY(0) rotate(var(--g0, -6deg)); }
  to   { transform: translateY(-14px) rotate(var(--g1, 6deg)); }
}

/* ---------- Estructura ---------- */
#app {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.cabecera {
  display: flex; align-items: center; justify-content: space-between;
  padding: max(10px, env(safe-area-inset-top)) 16px 4px;
  position: relative; z-index: 5;
}
.marca {
  font-family: "Archivo Black", sans-serif;
  font-size: 13px; letter-spacing: .06em;
  background: var(--oscuro); color: #F5F2EC;
  padding: 7px 13px; border-radius: 99px;
}
.marca-punto { color: var(--acento); }
.btn-sonido {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--tarjeta); border: 2.5px solid var(--borde);
  box-shadow: 2px 3px 0 var(--borde);
  font-size: 18px; line-height: 1;
}
.btn-sonido:active { transform: translate(2px, 3px); box-shadow: none; }

.pantalla {
  position: relative;
  flex: 1;
  display: flex; flex-direction: column; align-items: center;
  padding: 0 16px;
  min-height: 0;
}
.pantalla[hidden] { display: none; }

.banda {
  position: relative; z-index: 2;
  background: var(--oscuro);
  border-top: 6px solid var(--acento);
  text-align: center;
  padding: 9px 16px max(9px, env(safe-area-inset-bottom));
}
.banda-nombre { font-family: "Archivo Black", sans-serif; color: #F5F2EC; font-size: 15px; letter-spacing: .05em; }
.banda-usuario { font-family: "Archivo", sans-serif; font-weight: 800; color: var(--acento); font-size: 13px; }

/* ---------- Piezas comunes ---------- */
.chip {
  font-family: "Archivo Black", sans-serif;
  background: var(--oscuro); color: #F5F2EC;
  font-size: 14px; letter-spacing: .1em;
  padding: 8px 18px; border-radius: 99px;
  display: inline-flex; gap: 8px; align-items: center;
}
.chip span { color: var(--acento); }

.titulo, .nota, .hoja-veredicto, .rango {
  font-family: "Bricolage", "Archivo Black", sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  line-height: .92;
  letter-spacing: -.01em;
}

.bocadillo {
  position: relative;
  background: var(--tarjeta);
  border: 3px solid var(--borde);
  border-radius: 22px;
  padding: 9px 16px;
  font-family: "Archivo Black", sans-serif;
  font-size: 15px;
  line-height: 1.1;
  box-shadow: 4px 5px 0 rgba(22,19,15,.22);
  transform: rotate(-3deg);
  white-space: nowrap;
}
.bocadillo::before {
  content: "";
  position: absolute; left: -14px; bottom: 9px;
  border: 9px solid transparent;
  border-right: 14px solid var(--borde);
  border-left: 0;
}
.bocadillo::after {
  content: "";
  position: absolute; left: -9px; bottom: 11px;
  border: 7px solid transparent;
  border-right: 11px solid var(--tarjeta);
  border-left: 0;
}
.bocadillo.pop { animation: bocadilloPop .45s var(--muelle) both; }
@keyframes bocadilloPop { from { transform: rotate(-3deg) scale(0); } to { transform: rotate(-3deg) scale(1); } }

.pegatina {
  display: inline-block;
  font-family: "Archivo Black", sans-serif;
  background: var(--acento);
  color: var(--borde);
  font-size: 22px;
  padding: 8px 18px;
  border-radius: 14px;
  transform: rotate(-4deg);
  box-shadow: 4px 5px 0 rgba(22,19,15,.25);
  white-space: nowrap;
}

.btn-grande {
  font-family: "Archivo Black", sans-serif;
  font-size: 24px; letter-spacing: .03em;
  background: var(--acento); color: var(--borde);
  border: 3px solid var(--borde);
  border-radius: 20px;
  padding: 16px 40px;
  box-shadow: 0 7px 0 var(--borde);
  transition: transform .08s, box-shadow .08s;
}
.btn-grande:active { transform: translateY(5px); box-shadow: 0 2px 0 var(--borde); }
.btn-sec {
  font-family: "Archivo Black", sans-serif;
  font-size: 14px; letter-spacing: .03em;
  background: var(--tarjeta);
  border: 3px solid var(--borde);
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: 0 5px 0 var(--borde);
  display: inline-flex; align-items: center; justify-content: center;
  text-align: center;
  transition: transform .08s, box-shadow .08s;
}
.btn-sec:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--borde); }

/* ---------- Medallón (el círculo claro de las portadas) ---------- */
.medallon {
  position: relative;
  width: var(--m, 200px); height: var(--m, 200px);
  flex: none;
}
.medallon::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #FFFCF5 0 45%, #F7EBD6 72%, rgba(247,235,214,0) 73%);
  box-shadow: 0 0 40px 10px rgba(255,251,242,.55);
}
.medallon-rayos {
  position: absolute; inset: -40%;
  border-radius: 50%;
  background: repeating-conic-gradient(rgba(255,122,26,.22) 0 8deg, transparent 8deg 20deg);
  -webkit-mask: radial-gradient(circle, transparent 0 34%, #000 36%, transparent 70%);
          mask: radial-gradient(circle, transparent 0 34%, #000 36%, transparent 70%);
  animation: girar 30s linear infinite;
  z-index: -1;
}
.medallon-img, .medallon-img2 {
  position: absolute;
  object-fit: contain;
  filter: drop-shadow(4px 6px 0 rgba(22,19,15,.18));
}
.medallon-img { inset: 12%; width: 76%; height: 76%; animation: balanceo 3.2s ease-in-out infinite alternate; }
.medallon-img2 {
  width: 46%; height: 46%; right: -14%; bottom: -4%;
  animation: balanceo 2.6s ease-in-out -1.2s infinite alternate;
}
.medallon-img2.no { display: none; }
.medallon-img.tiene2 { inset: 8% 20% 16% 4%; width: 76%; height: 76%; }
@keyframes balanceo {
  from { transform: translateY(3px) rotate(-3deg); }
  to   { transform: translateY(-5px) rotate(3deg); }
}
.medallon-img.pop, .medallon-img2.pop { animation: aparecer .55s var(--muelle) both, balanceo 3s ease-in-out .55s infinite alternate; }
@keyframes aparecer { from { transform: scale(0) rotate(-25deg); } to { transform: scale(1) rotate(0); } }

.chispa { position: absolute; width: 22px; height: 22px; fill: var(--borde); animation: titilar 1.8s ease-in-out infinite alternate; }
.chispa.c1 { fill: var(--acento); width: 34px; height: 34px; left: 2%; top: 6%; }
.chispa.c2 { right: 0; top: 2%; animation-delay: -.7s; }
.chispa.c3 { left: 10%; bottom: 8%; width: 16px; height: 16px; animation-delay: -1.2s; }
@keyframes titilar { from { transform: scale(.7) rotate(0); } to { transform: scale(1.15) rotate(20deg); } }

/* ---------- INICIO ---------- */
#inicio { justify-content: flex-start; gap: clamp(6px, 1.5vh, 14px); padding-bottom: clamp(130px, 21vh, 190px); }

.escaparate {
  position: relative;
  width: 100%;
  height: clamp(128px, 23vh, 240px);
  display: grid; place-items: center;
  margin-top: clamp(0px, 1vh, 10px);
}
.medallon-xl { --m: clamp(112px, 19vh, 200px); }
.escaparate .chispa.c1 { left: 18%; top: 14%; }
.escaparate .chispa.c2 { right: 20%; top: 8%; }
.escaparate .chispa.c3 { left: 24%; bottom: 10%; }
.orbita { position: absolute; inset: 0; }
.orbita img {
  position: absolute;
  width: var(--w, 70px);
  filter: var(--pegatina);
  animation: flotar var(--d, 4s) ease-in-out var(--r, 0s) infinite alternate;
}

.titulo {
  font-size: min(clamp(52px, 9.6vh, 90px), 19.5vw);
  text-align: center;
  display: flex; flex-wrap: wrap; justify-content: center;
  column-gap: .22em;
  color: var(--tinta);
  text-shadow: .045em .05em 0 rgba(22,19,15,.28);
}
.titulo .t3 { flex-basis: 100%; }
.naranja { color: var(--acento); text-shadow: .045em .05em 0 var(--borde); }
.t-pal { display: inline-block; animation: caerPalabra .7s var(--muelle) both; }
.t1 { animation-delay: .1s; } .t2 { animation-delay: .22s; } .t3 { animation-delay: .34s; }
@keyframes caerPalabra {
  0% { transform: translateY(-40px) scale(1.8) rotate(-8deg); opacity: 0; }
  60% { opacity: 1; }
  100% { transform: none; opacity: 1; }
}
.subtitulo { font-weight: 800; font-size: clamp(16px, 2.3vh, 19px); color: var(--suave); }
.btn-jugar { margin-top: 4px; font-size: 28px; padding: 16px 54px; animation: latido 1.6s ease-in-out 1s infinite; }
@keyframes latido { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.btn-jugar:active { animation: none; }
.record { font-family: "Archivo Black", sans-serif; font-size: 14px; color: var(--suave); min-height: 1em; }

.becario-esquina {
  position: absolute;
  left: 0; bottom: 0;
  display: flex; align-items: flex-start;
  pointer-events: none;
}
.becario-img {
  height: clamp(130px, 21vh, 190px);
  margin-left: -6px;
  margin-bottom: -8px;
  transform-origin: bottom center;
  animation: respirar 2.8s ease-in-out infinite;
}
@keyframes respirar { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.025) translateY(-1px); } }
.becario-esquina .bocadillo { margin: 22px 0 0 8px; }

/* ---------- JUEGO ---------- */
#juego { padding-bottom: 10px; }
.hud { width: 100%; padding-top: 2px; }
.progreso { display: flex; gap: 5px; }
.progreso i {
  flex: 1; height: 10px; border-radius: 99px;
  background: rgba(22,19,15,.13);
  border: 2px solid transparent;
  transition: background .3s;
}
.progreso i.actual { border-color: var(--borde); background: var(--tarjeta); }
.progreso i.bien { background: var(--acento); border-color: var(--borde); }
.progreso i.mal { background: var(--oscuro); border-color: var(--borde); }
.hud-fila { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; height: 32px; }
.marcador { font-family: "Archivo Black", sans-serif; font-size: 15px; }
.marcador b { font-family: "Bricolage", sans-serif; font-size: 26px; display: inline-block; }
.marcador b.salta { animation: saltoNum .4s var(--muelle); }
@keyframes saltoNum { 50% { transform: scale(1.5); color: var(--acento); } }
.racha {
  font-family: "Archivo Black", sans-serif; font-size: 15px;
  background: var(--oscuro); color: #F5F2EC;
  padding: 5px 12px; border-radius: 99px;
  opacity: 0; transform: scale(.5);
  transition: opacity .25s, transform .35s var(--muelle);
}
.racha.si { opacity: 1; transform: scale(1); }

.mazo { position: relative; width: 100%; flex: 1; min-height: 0; margin: 8px 0 14px; display: flex; }
.mazo::before, .mazo::after {
  content: ""; position: absolute; inset: 0;
  background: var(--tarjeta); border: 3px solid var(--borde); border-radius: 28px;
}
.mazo::before { transform: rotate(3.5deg) translate(6px, 6px); background: #F3E8D3; }
.mazo::after { transform: rotate(-2.5deg) translate(-4px, 4px); background: #F8F0E1; }

.carta {
  position: relative; z-index: 1;
  flex: 1;
  background: var(--tarjeta);
  border: 3px solid var(--borde);
  border-radius: 28px;
  box-shadow: 6px 8px 0 var(--borde);
  display: flex; flex-direction: column; align-items: center;
  padding: 18px 18px clamp(84px, 14vh, 120px);
  overflow: hidden;
  touch-action: none;
  cursor: grab;
  will-change: transform;
}
.carta.arrastrando { cursor: grabbing; }
.carta.vuelve { transition: transform .45s var(--muelle); }
.carta.entra { animation: cartaEntra .55s var(--muelle) both; }
@keyframes cartaEntra { from { transform: translateY(60px) scale(.85) rotate(-6deg); opacity: 0; } to { transform: none; opacity: 1; } }
.carta.sale-izq { transition: transform .45s cubic-bezier(.5,0,.75,0), opacity .45s; transform: translateX(-140%) rotate(-28deg); opacity: 0; }
.carta.sale-der { transition: transform .45s cubic-bezier(.5,0,.75,0), opacity .45s; transform: translateX(140%) rotate(28deg); opacity: 0; }
.carta.tiembla { animation: temblor .45s; }
@keyframes temblor {
  10%, 90% { transform: translateX(-3px); } 20%, 80% { transform: translateX(6px); }
  30%, 50%, 70% { transform: translateX(-10px) rotate(-1deg); } 40%, 60% { transform: translateX(10px) rotate(1deg); }
}

.tiempo { position: absolute; left: 0; right: 0; top: 0; height: 8px; background: rgba(22,19,15,.08); }
.tiempo-barra { height: 100%; width: 100%; background: var(--acento); transform-origin: left; transform: scaleX(var(--t, 1)); }
.tiempo-barra.prisa { background: var(--rojo); animation: parpadeo .5s steps(2) infinite; }
@keyframes parpadeo { 50% { opacity: .45; } }

.carta-num {
  align-self: flex-start;
  font-family: "Archivo Black", sans-serif; font-size: 13px; letter-spacing: .08em;
  background: var(--oscuro); color: #F5F2EC;
  padding: 5px 11px; border-radius: 99px;
  margin-top: 4px;
}
.medallon-carta { --m: clamp(118px, 25vh, 230px); margin: clamp(0px, 1vh, 10px) 0 clamp(8px, 2vh, 18px); }
.afirmacion {
  font-family: "Archivo", sans-serif; font-weight: 800;
  font-size: clamp(19px, 3vh, 26px);
  line-height: 1.2;
  text-align: center;
  text-wrap: balance;
  max-width: 24ch;
}

.etiqueta-arrastre {
  position: absolute; top: 46px;
  font-family: "Archivo Black", sans-serif; font-size: 26px;
  padding: 6px 14px; border: 4px solid; border-radius: 14px;
  opacity: 0; pointer-events: none;
}
.et-verdad { left: 16px; color: var(--acento-osc); transform: rotate(-14deg); opacity: var(--verdad, 0); }
.et-mito { right: 16px; color: var(--oscuro); transform: rotate(14deg); opacity: var(--mito, 0); }

.sello {
  position: absolute; left: 50%; top: 27%;
  font-family: "Bricolage", sans-serif; font-weight: 800;
  font-size: min(clamp(40px, 7.4vh, 64px), 12.5vw);
  padding: 2px 18px 6px;
  border: 7px solid; border-radius: 22px;
  translate: -50% -50%;
  rotate: -12deg;
  opacity: 0;
  pointer-events: none;
  z-index: 4;
  white-space: nowrap;
  background: rgba(255,251,242,.88);
}
.sello.verdad { color: var(--acento); border-color: var(--acento); text-shadow: .04em .04em 0 var(--borde); }
.sello.mito { color: var(--oscuro); border-color: var(--oscuro); }
.sello.golpe { animation: golpeSello .42s cubic-bezier(.2,1.4,.5,1) both; }
@keyframes golpeSello {
  0% { opacity: 0; transform: scale(3); }
  60% { opacity: 1; transform: scale(.92); }
  100% { opacity: 1; transform: scale(1); }
}

.becario-carta {
  position: absolute; left: 6px; bottom: 0;
  display: flex; align-items: flex-start;
  pointer-events: none;
}
.becario-carta img {
  height: clamp(86px, 15vh, 124px);
  margin-bottom: -6px;
  transform-origin: bottom center;
  animation: respirar 2.8s ease-in-out infinite;
}
.becario-carta img.cambia { animation: cambioPose .4s var(--muelle); }
@keyframes cambioPose { from { transform: translateY(30px) scale(.8); } to { transform: none; } }
.bocadillo-peq { font-size: 13px; padding: 7px 12px; margin: 12px 0 0 6px; border-width: 2.5px; }

.botones { display: flex; gap: 12px; width: 100%; }
.btn-respuesta {
  flex: 1;
  font-family: "Archivo Black", sans-serif; font-size: 22px; letter-spacing: .03em;
  padding: 15px 8px;
  border: 3px solid var(--borde); border-radius: 20px;
  box-shadow: 0 7px 0 var(--borde);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .08s, box-shadow .08s, filter .2s, opacity .2s;
}
.btn-respuesta .ico { font-size: 26px; line-height: 1; }
.b-mito { background: var(--oscuro); color: #F5F2EC; }
.b-verdad { background: var(--acento); color: var(--borde); }
.btn-respuesta:active, .btn-respuesta.pulsado { transform: translateY(5px); box-shadow: 0 2px 0 var(--borde); }
.btn-respuesta.apagado { opacity: .35; filter: grayscale(.6); }
.btn-respuesta.inclina { transform: scale(1.06); }
.pista { margin-top: 10px; font-size: 13px; font-weight: 800; color: var(--suave); }

/* Hoja de resultado */
.hoja {
  position: absolute; left: 8px; right: 8px; bottom: 6px;
  z-index: 10;
  background: var(--tarjeta);
  border: 3px solid var(--borde);
  border-radius: 28px;
  box-shadow: 0 -6px 0 rgba(22,19,15,.08), 6px 8px 0 var(--borde);
  padding: 14px 16px 14px;
  transform: translateY(130%);
  transition: transform .5s var(--suave-salida);
}
.hoja.abierta { transform: none; transition: transform .55s var(--muelle); }
.hoja.acierto { border-top: 10px solid var(--acento); }
.hoja.fallo { border-top: 10px solid var(--oscuro); }
.hoja-becario {
  position: absolute; left: 4px; bottom: calc(100% - 46px);
  height: clamp(120px, 19vh, 165px);
  pointer-events: none;
}
.hoja.abierta .hoja-becario { animation: asomar .6s var(--muelle) .1s both; }
@keyframes asomar { from { transform: translateY(70px) scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }
.hoja-bocadillo { position: absolute; left: clamp(110px, 17vh, 145px); top: -44px; font-size: 17px; }
.hoja.abierta .hoja-bocadillo { animation: bocadilloPop .45s var(--muelle) .3s both; }
.hoja-cuerpo { padding-top: 26px; }
.hoja-veredicto { font-size: clamp(30px, 4.8vh, 40px); white-space: nowrap; }
.hoja-veredicto small { font-family: "Archivo Black", sans-serif; font-size: .5em; color: var(--acento); vertical-align: middle; margin-left: 6px; }
.hoja.fallo .hoja-veredicto { color: var(--oscuro); }
.hoja-dato { margin: 8px 0 8px; }
.hoja-dato .pegatina { font-size: clamp(20px, 3.2vh, 26px); padding: 6px 16px; }
.hoja.abierta .pegatina { animation: pegar .5s var(--muelle) .25s both; }
@keyframes pegar { from { transform: rotate(-20deg) scale(0); } to { transform: rotate(-4deg) scale(1); } }
.hoja-texto { font-size: clamp(14.5px, 2.1vh, 16.5px); line-height: 1.36; font-weight: 600; color: #2E3340; }
.hoja-acciones { display: flex; gap: 10px; margin-top: 12px; }
.hoja-acciones .btn-sec { flex: none; font-size: 13px; padding: 10px 12px; }
.btn-sig { flex: 1; font-size: 19px; padding: 12px 8px; white-space: nowrap; }

/* ---------- FINAL ---------- */
#final { gap: clamp(6px, 1.3vh, 12px); padding-top: 4px; padding-bottom: 14px; }
.final-hero { display: flex; align-items: flex-end; justify-content: center; gap: 4px; width: 100%; }
.becario-final {
  height: clamp(130px, 21vh, 190px);
  transform-origin: bottom center;
  animation: asomar .6s var(--muelle) both, respirar 2.8s ease-in-out .6s infinite;
}
.final-nota { display: flex; flex-direction: column; align-items: flex-start; padding-bottom: 6px; }
.nota { font-size: clamp(84px, 15vh, 140px); display: flex; align-items: baseline; color: var(--acento); text-shadow: .04em .045em 0 var(--borde); }
.nota-num { display: inline-block; min-width: .6em; text-align: right; }
.nota-de { font-size: .42em; color: var(--tinta); text-shadow: .04em .045em 0 rgba(22,19,15,.25); }
.nota-de.texto { font-family: "Archivo Black", sans-serif; font-size: .2em; letter-spacing: .04em; margin-left: .3em; }
.nota.pop .nota-num { animation: saltoNum .35s var(--muelle); }
.nota-pts { font-family: "Archivo Black", sans-serif; font-size: 15px; margin-top: 2px; }
.nota-pts b { font-family: "Bricolage", sans-serif; font-size: 24px; }
.nuevo-record {
  background: var(--acento); border: 2.5px solid var(--borde); border-radius: 10px;
  padding: 3px 9px; font-family: "Archivo Black", sans-serif; font-size: 12px;
  transform: rotate(-5deg); margin-top: 6px; visibility: hidden;
}
.nuevo-record.si { visibility: visible; animation: pegar .5s var(--muelle) both; }
.rango { font-size: clamp(28px, 4.6vh, 40px); text-align: center; text-wrap: balance; min-height: .92em; }
.rango.entra { animation: caerPalabra .6s var(--muelle) both; }
.frase-final { font-family: "Archivo Black", sans-serif; font-size: 14px; color: var(--suave); min-height: 1.2em; }
.frase-final.pop { animation: bocadilloPop .45s var(--muelle) both; }

.rejilla { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; width: 100%; max-width: min(340px, 44vh); margin: 2px 0; }
.mini {
  position: relative; aspect-ratio: 1;
  background: radial-gradient(circle, #FFFCF5 0 55%, #F3E5CC 100%);
  border: 2.5px solid var(--borde); border-radius: 16px;
  display: grid; place-items: center;
  animation: aparecer .4s var(--muelle) both;
}
.mini img { width: 78%; height: 78%; object-fit: contain; }
.mini b {
  position: absolute; right: -6px; top: -6px;
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 13px; line-height: 1; color: #fff;
  border: 2px solid var(--borde);
}
.mini.bien b { background: var(--acento); color: var(--borde); }
.mini.mal b { background: var(--oscuro); }
.mini.mal img { opacity: .55; filter: grayscale(.5); }

.acciones-final { display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 380px; margin-top: auto; }
.acciones-final .btn-grande { font-size: 20px; padding: 14px 10px; }
.fila-btns { display: flex; gap: 10px; }
.fila-btns .btn-sec { flex: 1; }
.btn-tiktok { background: var(--oscuro); color: #F5F2EC; }

/* ---------- Cuenta atrás ---------- */
.cuenta {
  position: absolute; inset: 0; z-index: 20;
  display: grid; place-items: center; align-content: center;
  background: rgba(231,214,183,.9);
  backdrop-filter: blur(4px);
}
.cuenta[hidden] { display: none; }
.cuenta img { height: clamp(220px, 40vh, 340px); }
.cuenta span {
  font-family: "Bricolage", sans-serif; font-weight: 800;
  font-size: clamp(90px, 16vh, 140px); line-height: .9;
  color: var(--acento); text-shadow: .045em .05em 0 var(--borde);
  margin-top: -10px;
}
.cuenta .golpe { animation: golpeSello .4s cubic-bezier(.2,1.4,.5,1) both; }

/* ---------- Efectos ---------- */
.confeti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; }
.flash { position: fixed; inset: 0; pointer-events: none; z-index: 55; opacity: 0; box-shadow: inset 0 0 120px 30px rgba(34,42,53,.55); }
.flash.si { animation: flash .6s ease-out; }
@keyframes flash { 0% { opacity: 1; } 100% { opacity: 0; } }
.puntos-vuelan {
  position: fixed; z-index: 61; pointer-events: none;
  font-family: "Bricolage", sans-serif; font-weight: 800; font-size: 44px;
  color: var(--acento); text-shadow: .045em .05em 0 var(--borde);
  animation: vuela 1s var(--suave-salida) forwards;
  translate: -50% -50%;
}
@keyframes vuela { 0% { transform: scale(.4); opacity: 0; } 20% { transform: scale(1.2); opacity: 1; } 100% { transform: translateY(-120px) scale(1); opacity: 0; } }
.aviso {
  position: fixed; left: 50%; bottom: 90px; z-index: 70;
  translate: -50% 0;
  background: var(--oscuro); color: #F5F2EC;
  font-family: "Archivo Black", sans-serif; font-size: 14px;
  padding: 12px 18px; border-radius: 14px;
  opacity: 0; transform: translateY(20px);
  transition: opacity .25s, transform .3s var(--muelle);
  pointer-events: none;
  white-space: nowrap;
}
.aviso.si { opacity: 1; transform: none; }

/* ---------- Capas: compartir y pegatina en grande ---------- */
.capa {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(30,36,49,.72);
  display: grid; place-items: center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
}
.caja {
  background: var(--tarjeta); border: 3px solid var(--borde); border-radius: 26px;
  box-shadow: 6px 8px 0 var(--borde);
  width: min(420px, 100%); max-height: 100%; overflow: auto;
  padding: 16px; display: flex; flex-direction: column; align-items: center; gap: 10px;
  animation: cartaEntra .45s var(--muelle) both;
}
.postal-caja { -webkit-user-select: text; user-select: text; }
.postal-img { height: min(46vh, 420px); width: auto; max-width: 100%; border-radius: 14px; border: 2.5px solid var(--borde); -webkit-touch-callout: default; }
.postal-ayuda { font-size: 13px; font-weight: 800; color: var(--suave); text-align: center; }
.postal-texto { font-size: 14px; line-height: 1.35; background: #F3E8D3; border-radius: 12px; padding: 10px 12px; width: 100%; }
.postal-btns { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.postal-btns .btn-grande { font-size: 18px; padding: 12px; text-align: center; }
.peg-caja { padding-top: 30px; }
.peg-medallon { --m: min(200px, 26vh); margin-bottom: 8px; }
.peg-num { font-family: "Archivo Black", sans-serif; font-size: 12px; letter-spacing: .1em; background: var(--oscuro); color: #F5F2EC; padding: 5px 12px; border-radius: 99px; }
.peg-titulo { font-family: "Bricolage", sans-serif; font-weight: 800; font-size: 28px; line-height: 1; text-align: center; text-transform: uppercase; text-wrap: balance; margin-bottom: 6px; }

/* ---------- Sala de juegos ---------- */
.pantalla-scroll { overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; padding-bottom: 22px; scrollbar-width: none; }
.pantalla-scroll::-webkit-scrollbar { display: none; }
#final { overflow-y: auto; scrollbar-width: none; }
#final > *, .pantalla-scroll > * { flex-shrink: 0; }
.sala-hero { display: flex; align-items: flex-end; width: 100%; flex: none; margin-top: 2px; }
.becario-sala {
  height: clamp(124px, 19vh, 176px); flex: none; margin-left: -12px;
  transform-origin: bottom center;
  animation: asomar .6s var(--muelle) both, respirar 2.8s ease-in-out .6s infinite;
}
.sala-cabeza { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding-bottom: 14px; min-width: 0; }
.bocadillo-sala { font-size: 14px; padding: 7px 13px; }
.bocadillo-sala { animation: bocadilloPop .45s var(--muelle) .5s both; }
.titulo-sala { display: block; text-align: left; font-size: min(clamp(36px, 6vh, 54px), 11.2vw); }
.titulo-sala .t-pal { display: block; }

.tarjeta-juego {
  position: relative; flex: none;
  background: var(--tarjeta); color: var(--tinta);
  border: 3px solid var(--borde); border-radius: 22px;
  box-shadow: 0 6px 0 var(--borde);
  text-align: left;
  transition: transform .12s, box-shadow .12s;
}
.tarjeta-juego:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--borde); }
@media (hover: hover) { .tarjeta-juego:hover { transform: translateY(-3px) rotate(-.6deg); box-shadow: 0 9px 0 var(--borde); } }
.tarjeta-juego:focus-visible, .btn-grande:focus-visible, .btn-sec:focus-visible, .btn-respuesta:focus-visible, .qr-op:focus-visible, .peg:focus-visible { outline: 3px solid var(--acento-osc); outline-offset: 3px; }
.tarjeta-juego.entra { animation: cartaEntra .5s var(--muelle) both; }
.rejilla-juegos .tarjeta-juego:nth-child(1).entra { animation-delay: .08s; }
.rejilla-juegos .tarjeta-juego:nth-child(2).entra { animation-delay: .14s; }
.rejilla-juegos .tarjeta-juego:nth-child(3).entra { animation-delay: .2s; }
.rejilla-juegos .tarjeta-juego:nth-child(4).entra { animation-delay: .26s; }

.tj-img { display: grid; place-items: center; flex: none; }
.tj-img img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(3px 4px 0 rgba(22,19,15,.2)); animation: balanceo 3s ease-in-out infinite alternate; }
.tj-etq { font-family: "Archivo Black", sans-serif; font-size: 11px; letter-spacing: .07em; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tj-nombre { font-family: "Bricolage", sans-serif; font-weight: 800; text-transform: uppercase; line-height: .95; }
.tj-info { font-size: 13px; font-weight: 800; line-height: 1.25; }

.tj-reto {
  width: 100%; margin-top: 10px;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: var(--acento); color: var(--borde);
}
.tj-reto .tj-img { width: clamp(66px, 10vh, 84px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #FFFCF5 0 55%, #F7EBD6 100%); border: 3px solid var(--borde); padding: 7px; }
.tj-reto .tj-nombre { font-size: clamp(25px, 3.6vh, 31px); margin: 2px 0 3px; }
.tj-texto { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.tj-racha {
  position: absolute; top: -14px; right: 14px;
  font-family: "Archivo Black", sans-serif; font-size: 14px;
  background: var(--oscuro); color: #F5F2EC;
  padding: 4px 11px; border-radius: 99px; border: 2.5px solid var(--borde);
  animation: latido 1.6s ease-in-out infinite;
}
.tj-racha.apagada { animation: none; opacity: .65; }
.tj-reto.hecho { background: var(--tarjeta); }
/* la expedición: el juego de aventuras, con el fondo del espacio */
.tj-expedicion { margin-top: 16px; text-decoration: none; color: #FFFFFF; background: #1d2150 url(img/exp/fondos/mapa.webp) center 30% / cover; }
.tj-expedicion .tj-img { background: radial-gradient(circle, #4a50a8 0 45%, #1d2150 100%); padding: 4px; }
.tj-expedicion .tj-etq { color: #FFC93C; opacity: 1; }
.tj-expedicion .tj-nombre { text-shadow: 0 3px 0 var(--borde); }
.tj-expedicion .tj-info { color: #E9ECFF; }
.tj-expedicion .tj-racha { background: #FFC93C; color: var(--borde); }

.rejilla-juegos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: 100%; margin-top: 16px; }
.tj-mini { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px; min-height: clamp(132px, 19vh, 162px); overflow: hidden; }
.tj-mini .tj-img { width: clamp(54px, 8vh, 70px); height: clamp(54px, 8vh, 70px); margin-bottom: 4px; }
.tj-mini .tj-nombre { font-size: clamp(18px, 2.6vh, 22px); }
.tj-mini .tj-info { color: var(--suave); }
.tj-oscura { background: var(--oscuro); color: #F5F2EC; }
.tj-oscura .tj-info { color: #C9C2B4; }
.tj-album .tj-info b { color: var(--acento-osc); }
.tj-barra { display: block; width: 100%; height: 9px; border-radius: 99px; background: rgba(22,19,15,.12); overflow: hidden; margin-top: auto; }
.tj-barra i { display: block; height: 100%; width: 0; background: var(--acento); border-radius: 99px; transition: width .6s var(--suave-salida); }

/* ---------- ¿Más o menos? ---------- */
#masmenos { padding-bottom: 12px; gap: 10px; }
.mm-hud { display: flex; justify-content: space-between; align-items: center; width: 100%; padding-top: 2px; gap: 8px; }
.chip-cat { font-size: 13px; padding: 7px 14px; letter-spacing: .06em; }
.chip-cat.cambia { animation: pegar .5s var(--muelle) both; }
.mm-racha { display: flex; align-items: baseline; gap: 6px; font-family: "Archivo Black", sans-serif; font-size: 12px; letter-spacing: .08em; }
.mm-racha b { font-family: "Bricolage", sans-serif; font-weight: 800; font-size: 34px; line-height: 1; letter-spacing: 0; color: var(--acento); text-shadow: .045em .05em 0 var(--borde); display: inline-block; }
.mm-racha b.salta { animation: saltoNum .4s var(--muelle); }
.mm-pila { flex: 1; min-height: 0; width: 100%; display: flex; flex-direction: column; }
.mm-carta {
  position: relative; flex: 1; min-height: 0;
  display: flex; align-items: center; gap: 14px;
  background: var(--tarjeta); border: 3px solid var(--borde); border-radius: 24px;
  box-shadow: 5px 7px 0 var(--borde);
  padding: 12px 14px; overflow: hidden;
}
.mm-b { background: #FFF1DC; }
.mm-carta.entra { animation: cartaEntra .5s var(--muelle) both; }
.mm-carta.tiembla { animation: temblor .45s; }
.mm-carta.sale-arriba { transition: transform .38s cubic-bezier(.5,0,.75,0), opacity .38s; transform: translateY(-40%) scale(.85); opacity: 0; }
.mm-carta.sube { transition: transform .38s var(--suave-salida); transform: translateY(calc(-100% - 20px)); }
.mm-img { flex: none; width: clamp(84px, 14vh, 128px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #FFFCF5 0 55%, #F3E5CC 100%); display: grid; place-items: center; }
.mm-img img { width: 86%; height: 86%; object-fit: contain; filter: drop-shadow(3px 4px 0 rgba(22,19,15,.18)); animation: balanceo 3s ease-in-out infinite alternate; }
.mm-texto { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.mm-nombre { font-weight: 800; font-size: clamp(15px, 2.3vh, 19px); line-height: 1.2; text-wrap: balance; }
.mm-tras { font-weight: 800; font-size: clamp(14px, 2.1vh, 17px); line-height: 1.2; color: var(--suave); }
.mm-tras:empty { display: none; }
.mm-valor { font-family: "Bricolage", sans-serif; font-weight: 800; font-size: clamp(24px, 4.2vh, 36px); line-height: 1; color: var(--acento); text-shadow: .045em .05em 0 var(--borde); overflow-wrap: anywhere; }
.mm-valor.mm-oculto { color: var(--tinta); text-shadow: none; font-size: clamp(36px, 6vh, 52px); display: inline-block; width: max-content; animation: latido 1.4s ease-in-out infinite; }
.mm-valor.mm-gira { color: var(--suave); text-shadow: none; font-variant-numeric: tabular-nums; }
.mm-valor.aparece { animation: golpeSello .4s cubic-bezier(.2,1.4,.5,1) both; }
.mm-vs {
  align-self: center; position: relative; z-index: 2; flex: none;
  margin: -16px 0; width: 52px; height: 52px;
  border-radius: 50%; background: var(--oscuro); color: #F5F2EC;
  border: 3px solid var(--fondo); box-shadow: 0 0 0 3px var(--borde);
  display: grid; place-items: center;
  font-family: "Archivo Black", sans-serif; font-size: 17px;
}
.mm-sello {
  position: absolute; right: 12px; top: 10px;
  font-family: "Bricolage", sans-serif; font-weight: 800; font-size: 22px;
  padding: 1px 10px 3px; border: 4px solid; border-radius: 12px;
  rotate: 10deg; opacity: 0; background: rgba(255,251,242,.92);
  pointer-events: none;
}
.mm-sello.ok { color: var(--acento-osc); border-color: var(--acento); }
.mm-sello.mal { color: var(--oscuro); border-color: var(--oscuro); font-size: 30px; }
.mm-sello.golpe { animation: golpeSello .42s cubic-bezier(.2,1.4,.5,1) both; }
.mm-pregunta { font-weight: 800; font-size: 15px; color: var(--suave); }
.mm-pregunta b { color: var(--tinta); }
.btn-respuesta:disabled { cursor: default; }

/* ---------- ¿Qué reel es? ---------- */
#quereel { gap: 10px; padding-bottom: 12px; }
.qr-pista { font-family: "Archivo Black", sans-serif; font-size: 11px; letter-spacing: .08em; color: var(--suave); }
.qr-marco {
  position: relative; flex: none;
  width: min(100%, 38vh); aspect-ratio: 1;
  background: radial-gradient(circle at 50% 45%, #FFFCF5 0 50%, #F3E5CC 100%);
  border: 3px solid var(--borde); border-radius: 28px;
  box-shadow: 6px 8px 0 var(--borde);
  overflow: hidden;
}
.qr-marco canvas { width: 100%; height: 100%; display: block; }
.qr-marco .sello { top: 50%; font-size: min(clamp(36px, 6vh, 54px), 12vw); }
.qr-marco .tiempo { z-index: 3; }
.qr-marco.entra { animation: cartaEntra .5s var(--muelle) both; }
.qr-marco.tiembla { animation: temblor .45s; }
.qr-preg { font-weight: 800; font-size: 15px; text-align: center; min-height: 1.3em; text-wrap: balance; }
.qr-preg b { color: var(--acento-osc); }
.qr-opciones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; }
.qr-op {
  background: var(--tarjeta); border: 3px solid var(--borde); border-radius: 16px;
  box-shadow: 0 5px 0 var(--borde);
  padding: 8px 10px; min-height: clamp(56px, 8.5vh, 70px);
  font-weight: 800; font-size: clamp(13px, 1.9vh, 15px); line-height: 1.15;
  text-align: center; text-wrap: balance;
  animation: cartaEntra .4s var(--muelle) both;
  transition: transform .08s, box-shadow .08s, opacity .2s, background .2s;
}
.qr-op:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--borde); }
.qr-op:disabled { cursor: default; }
.qr-op.correcta { background: var(--acento); }
.qr-op.fallada { background: var(--oscuro); color: #F5F2EC; animation: temblor .45s; }
.qr-op.apagada { animation: none; opacity: .4; }
.qr-sig { width: 100%; font-size: 20px; padding: 12px; }
.qr-sig.entra { animation: cartaEntra .4s var(--muelle) both; }

/* ---------- Álbum ---------- */
.album-cabeza { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding-top: 6px; }
.album-cuenta { font-family: "Bricolage", sans-serif; font-weight: 800; line-height: 1; }
.album-cuenta b { font-size: 68px; color: var(--acento); text-shadow: .045em .05em 0 var(--borde); }
.album-cuenta span { font-size: 30px; }
.album-barra { width: min(320px, 100%); height: 14px; border: 2.5px solid var(--borde); border-radius: 99px; background: var(--tarjeta); overflow: hidden; }
.album-barra i { display: block; height: 100%; width: 0; background: var(--acento); transition: width .8s var(--suave-salida); }
.album-ayuda { font-size: 13px; font-weight: 800; color: var(--suave); max-width: 32ch; }
.album-rejilla { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; width: 100%; margin-top: 16px; }
.peg {
  position: relative; aspect-ratio: 1;
  border-radius: 16px; border: 2.5px dashed #C2AD86;
  background: rgba(255,251,242,.45);
  display: grid; place-items: center;
}
.peg img { width: 78%; height: 78%; object-fit: contain; }
.peg.falta img { filter: brightness(0); opacity: .13; }
.peg.tiene { border: 2.5px solid var(--borde); background: radial-gradient(circle, #FFFCF5 0 55%, #F3E5CC 100%); box-shadow: 0 4px 0 var(--borde); }
.peg.tiene img { filter: drop-shadow(2px 3px 0 rgba(22,19,15,.18)); }
.peg.tiene:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--borde); }
.peg span { position: absolute; right: 6px; bottom: 2px; font-family: "Archivo Black", sans-serif; font-size: 10px; color: var(--suave); }
.peg.tiembla { animation: temblor .45s; }

/* ---------- Pegatina nueva ---------- */
.nueva-peg {
  position: fixed; left: 50%; top: max(10px, env(safe-area-inset-top));
  z-index: 75;
  display: flex; align-items: center; gap: 10px;
  background: var(--tarjeta); border: 3px solid var(--borde); border-radius: 18px;
  box-shadow: 4px 5px 0 var(--borde);
  padding: 6px 14px 6px 6px;
  transform: translate(-50%, -180%);
  transition: transform .4s var(--suave-salida);
  pointer-events: none;
  max-width: calc(100vw - 32px);
}
.nueva-peg.si { transform: translate(-50%, 0); transition: transform .5s var(--muelle); }
.nueva-peg img { width: 48px; height: 48px; object-fit: contain; flex: none; }
.nueva-peg.si img { animation: aparecer .5s var(--muelle) .1s both; }
.nueva-peg div { min-width: 0; }
.nueva-peg b { display: block; font-family: "Archivo Black", sans-serif; font-weight: 400; font-size: 13px; color: var(--acento-osc); }
.nueva-peg span { display: block; font-size: 12px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 230px; }

/* ---------- Final: extras ---------- */
.final-extra { font-weight: 800; font-size: 14px; text-align: center; line-height: 1.55; }
.final-extra:empty { display: none; }
.final-extra .cuadros { display: block; font-size: 24px; letter-spacing: 3px; line-height: 1.2; margin-bottom: 4px; }
.final-extra b { font-family: "Archivo Black", sans-serif; font-weight: 400; }
.final-extra .cuenta-reto { font-family: "Archivo Black", sans-serif; color: var(--acento-osc); }
.btn-oscuro { background: var(--oscuro); color: #F5F2EC; }

@media (max-height: 700px) {
  .qr-marco { width: min(100%, 32vh); }
  .tj-mini { min-height: 118px; }
  .mm-img { width: 74px; }
}

/* Pantallas bajitas (móviles pequeños o apaisados) */
@media (max-height: 680px) {
  .pista { display: none; }
  .bocadillo-peq { display: none; }
  .banda { padding-top: 6px; padding-bottom: max(6px, env(safe-area-inset-bottom)); }
  .banda-usuario { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
