/* La expedición del becario — interfaz encima del juego, con acabado de juego de móvil (botones con relieve, paneles y letras con contorno) */

@font-face { font-family: "Lilita"; src: url(../fuentes/lilita-one-latin-400.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Nunito"; src: url(../fuentes/nunito-latin-var.woff2) format("woff2"); font-weight: 200 1000; font-display: swap; }
/* las del diploma (se dibuja en un lienzo con las fuentes 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 {
  --contorno: #140f2b;
  --blanco: #FFFFFF;
  --crema: #FFF7E8;
  --oro: #FFD23F;
  --oro-osc: #F59E0B;
  --naranja: #FF8A1F;
  --naranja-osc: #E0560A;
  --verde: #7BE34B;
  --verde-osc: #23A31C;
  --rojo: #FF5468;
  --rojo-osc: #C3173A;
  --azul: #5BC2FF;
  --azul-osc: #1F6FE0;
  --panel: #3442B8;
  --panel-osc: #1E2575;
  --noche: #141838;
  --texto-suave: #C9CFF5;
  --muelle: cubic-bezier(.34, 1.56, .64, 1);
  --salida: cubic-bezier(.22, 1, .36, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
*:not(html) { margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: radial-gradient(circle at 50% 40%, #2C2F7A, #0D0F26 75%);
  color: var(--blanco);
  font-family: "Nunito", system-ui, sans-serif; font-weight: 800;
  overflow: hidden;
  display: grid; place-items: center;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none; user-select: none;
  touch-action: manipulation;
}
[hidden] { display: none !important; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
img { -webkit-user-drag: none; }

.rayos-fondo {
  position: fixed; left: 50%; top: 50%;
  width: 260vmax; height: 260vmax; margin: -130vmax 0 0 -130vmax;
  background: repeating-conic-gradient(rgba(255,210,63,.09) 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;
}
@keyframes girar { to { transform: rotate(360deg); } }

/* El juego siempre en vertical; en pantallas anchas, centrado como un móvil */
#marco {
  position: relative;
  width: min(100vw, 100dvh * 9 / 16);
  height: min(100dvh, 100vw * 19.5 / 9);
  container-type: size;
  overflow: hidden;
  background: var(--noche);
}
@media (min-aspect-ratio: 10/16) {
  #marco { height: calc(100dvh - 32px); width: calc((100dvh - 32px) * 9 / 16); border: 5px solid var(--contorno); border-radius: 30px; box-shadow: 0 0 0 3px rgba(255,255,255,.08), 0 30px 80px rgba(0,0,0,.6); }
}
#lienzo, #lienzo canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; }
#ui { position: absolute; inset: 0; pointer-events: none; font-size: 2.6cqw; }
#ui > * { pointer-events: auto; }
#ui > .rotulo, #ui > .bocadillo, #ui > .progreso-nivel, #ui > .vida-jefe, #ui > .aviso, #ui > .mapa-pista { pointer-events: none; }

/* ---------- Letras de juego: blancas con contorno y sombra debajo ---------- */
.btn-grande, .btn-sec, .hud-btn, .hud-nivel, .mapa-titulo b, .mapa-estrellas, .rango b, .premio i, .dock-btn i, .mapa-pista,
.pt1, .pt2, .r-nombre, .t-btn, .t-veredicto, .v-titulo, .vida-jefe span, .du-puntos b, .du-cat-sale, .du-cat, .du-vs b, .t-op b,
.r-chip, .t-chip, .du-titulo, .s-red, .m-mundo b, .c-texto, .du-cats span, .du-rondas b, .aviso {
  font-family: "Lilita", "Archivo Black", sans-serif; font-weight: 400;
  -webkit-text-stroke: var(--trazo, .9cqw) var(--contorno); paint-order: stroke fill;
  text-shadow: 0 var(--sombra, .6cqw) 0 var(--contorno);
  letter-spacing: .01em;
}

/* ---------- Botones con relieve ---------- */
.btn-grande, .btn-sec {
  position: relative; isolation: isolate;
  font-size: 6cqw; line-height: 1.05; color: var(--blanco);
  border: .7cqw solid var(--contorno); border-radius: 3.8cqw;
  padding: 3cqw 6cqw 3.4cqw;
  --cara-1: #FFE36B; --cara-2: #FFC21A; --cara-3: #FF9A0A; --labio: #B4520A;
  background: linear-gradient(180deg, var(--cara-1) 0%, var(--cara-2) 48%, var(--cara-3) 52%, var(--cara-3) 100%);
  box-shadow: inset 0 .8cqw 0 rgba(255,255,255,.55), inset 0 -1.3cqw 0 var(--labio), 0 1.1cqw 0 var(--contorno), 0 2.4cqw 3cqw rgba(0,0,0,.35);
  transition: transform .09s, box-shadow .09s, filter .15s;
  overflow: hidden;
}
.btn-grande::after, .btn-sec::after { /* brillo que cruza el botón */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.55) 45%, transparent 55%);
  transform: translateX(-120%); animation: brillo 3.6s ease-in-out 1.2s infinite;
}
@keyframes brillo { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.btn-grande:active, .btn-sec:active { transform: translateY(.9cqw); box-shadow: inset 0 .8cqw 0 rgba(255,255,255,.55), inset 0 -.6cqw 0 var(--labio), 0 .2cqw 0 var(--contorno), 0 .8cqw 1.4cqw rgba(0,0,0,.3); }
.btn-sec {
  font-size: 4.4cqw; padding: 2.4cqw 4cqw 2.8cqw; border-radius: 3.2cqw;
  --cara-1: #8FD8FF; --cara-2: #4FB3FF; --cara-3: #2A86F0; --labio: #164FB0;
}
.btn-sec::after { display: none; }
.btn-verde { --cara-1: #B6F57A; --cara-2: #7BE34B; --cara-3: #3FBF26; --labio: #1C7A12; }
.btn-rojo { --cara-1: #FF9BA6; --cara-2: #FF5468; --cara-3: #E8293F; --labio: #8E0C25; }
button:disabled { cursor: default; }
button:focus-visible { outline: .9cqw solid var(--oro); outline-offset: .6cqw; }

/* Panel de juego: azul con brillo arriba y borde de luz */
.panel, .tarjeta, .v-caja {
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(255,255,255,.16), transparent 60%),
    linear-gradient(180deg, #4656D6 0%, var(--panel) 40%, var(--panel-osc) 100%);
  border: .7cqw solid var(--contorno);
  border-radius: 5.4cqw;
  box-shadow: inset 0 0 0 .6cqw rgba(140,170,255,.28), inset 0 1cqw 0 rgba(255,255,255,.12), 0 1.3cqw 0 var(--contorno), 0 4cqw 7cqw rgba(0,0,0,.55);
}

/* Iconos dibujados */
.ic { width: 1em; height: 1em; object-fit: contain; display: inline-block; vertical-align: middle; filter: drop-shadow(0 .5cqw 0 rgba(20,15,43,.55)); }

/* ---------- HUD ---------- */
.hud, .mapa-cabeza {
  position: absolute; left: 0; right: 0; top: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 2cqw;
  padding: max(3cqw, env(safe-area-inset-top)) 3.5cqw 2cqw;
}
.hud-btn {
  width: 11cqw; height: 11cqw; flex: none; border-radius: 3.4cqw;
  border: .6cqw solid var(--contorno);
  background: linear-gradient(180deg, #8FD8FF 0%, #4FB3FF 48%, #2A86F0 52%, #2A86F0 100%);
  box-shadow: inset 0 .6cqw 0 rgba(255,255,255,.55), inset 0 -1cqw 0 #164FB0, 0 .9cqw 0 var(--contorno);
  font-size: 7.6cqw; line-height: 1; color: var(--blanco);
  display: grid; place-items: center; padding-bottom: 1cqw;
}
.hud-btn:active { transform: translateY(.7cqw); box-shadow: inset 0 .6cqw 0 rgba(255,255,255,.55), inset 0 -.4cqw 0 #164FB0, 0 .2cqw 0 var(--contorno); }
.hud-son { padding: 0 0 .6cqw; }
.hud-son svg { width: 6.4cqw; height: 6.4cqw; overflow: visible; }
.hud-centro, .mapa-titulo {
  display: flex; flex-direction: column; align-items: center; min-width: 0;
  background: linear-gradient(180deg, rgba(30,36,100,.92), rgba(16,18,52,.92));
  border: .6cqw solid var(--contorno); border-radius: 3.6cqw;
  padding: 1cqw 5cqw 1.6cqw;
  box-shadow: inset 0 0 0 .5cqw rgba(140,170,255,.22), 0 .9cqw 0 var(--contorno), 0 2cqw 3cqw rgba(0,0,0,.35);
}
.hud-mundo, .mapa-titulo span { white-space: nowrap; font-family: "Lilita", sans-serif; font-size: 2.9cqw; letter-spacing: .1em; color: var(--oro); }
.hud-nivel, .mapa-titulo b { font-size: 6cqw; line-height: 1; white-space: nowrap; --trazo: .8cqw; --sombra: .5cqw; }
.hud-nivel.largo { font-size: 4.6cqw; }
.mapa-titulo b.largo { font-size: 4.6cqw; }
.hud-dcha { display: flex; align-items: center; gap: 2cqw; }
.vidas { display: flex; gap: .2cqw; }
.vidas > * { width: 7cqw; height: 7cqw; object-fit: contain; filter: drop-shadow(0 .5cqw 0 rgba(20,15,43,.6)); transition: transform .3s var(--muelle), opacity .3s, filter .3s; }
.vidas > .perdida { opacity: .45; transform: scale(.78); filter: grayscale(1) brightness(.55); }
.vidas > .cae { animation: caeVida .7s ease-in both; }
@keyframes caeVida { 0% { transform: none; } 25% { transform: scale(1.6) rotate(12deg); } 100% { transform: translateY(8cqw) rotate(-50deg) scale(.6); opacity: .45; filter: grayscale(1) brightness(.55); } }
.mapa-estrellas {
  display: flex; align-items: center; gap: 1cqw;
  font-size: 4.4cqw; color: var(--blanco); --trazo: .7cqw; --sombra: .4cqw;
  background: linear-gradient(180deg, rgba(30,36,100,.92), rgba(16,18,52,.92));
  border: .6cqw solid var(--contorno); border-radius: 3.4cqw; padding: 1.4cqw 2.6cqw 1.8cqw 1.8cqw;
  box-shadow: inset 0 0 0 .5cqw rgba(140,170,255,.22), 0 .9cqw 0 var(--contorno);
}
.mapa-estrellas .ic { width: 7cqw; height: 7cqw; margin: -1.6cqw .2cqw -1.6cqw 0; }
.mapa-estrellas b { color: var(--oro); font-size: 5.6cqw; font-weight: 400; }

.progreso-nivel { position: absolute; top: calc(max(3cqw, env(safe-area-inset-top)) + 15.5cqw); left: 50%; translate: -50% 0; display: flex; gap: 1.6cqw; padding: 1.2cqw 2.4cqw; border-radius: 99px; background: rgba(16,18,52,.55); border: .5cqw solid rgba(20,15,43,.7); }
.progreso-nivel i { width: 4.4cqw; height: 4.4cqw; border-radius: 50%; background: rgba(255,255,255,.14); border: .5cqw solid var(--contorno); transition: transform .35s var(--muelle); }
.progreso-nivel i.ok { background: radial-gradient(circle at 35% 30%, #FFF6B5, var(--oro) 45%, var(--oro-osc)); transform: scale(1.2); box-shadow: 0 0 2cqw rgba(255,210,63,.8); }
.progreso-nivel i.meta { border-radius: 1.2cqw; }

.vida-jefe { position: absolute; top: calc(max(3cqw, env(safe-area-inset-top)) + 15.5cqw); left: 7cqw; right: 7cqw; display: flex; flex-direction: column; align-items: center; gap: 1cqw; }
.vida-jefe span { font-size: 4cqw; letter-spacing: .06em; color: var(--blanco); --trazo: .8cqw; --sombra: .4cqw; }
.vj-barra { position: relative; width: 100%; height: 5.6cqw; border: .6cqw solid var(--contorno); border-radius: 99px; background: #2A1A3A; overflow: hidden; box-shadow: inset 0 1cqw 1cqw rgba(0,0,0,.5), 0 .8cqw 0 var(--contorno); }
.vj-barra i { display: block; height: 100%; width: 100%; background: linear-gradient(180deg, #FF9BA6, var(--rojo) 50%, #D41C3A 51%, #B0102E); box-shadow: inset 0 .6cqw 0 rgba(255,255,255,.45); transition: width .6s var(--salida); }

/* ---------- Portada ---------- */
.portada {
  position: absolute; inset: 0; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.6cqw;
  padding: 8cqw 6cqw;
  text-align: center;
  background: radial-gradient(circle at 50% 44%, rgba(255,160,40,.38), transparent 55%), linear-gradient(180deg, rgba(14,16,48,.55), rgba(8,9,28,.9));
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
}
.portada::before {
  content: ""; position: absolute; left: 50%; top: 52%; width: 200cqw; height: 200cqw; translate: -50% -50%; z-index: -1; pointer-events: none;
  background: repeating-conic-gradient(rgba(255,210,63,.16) 0 8deg, transparent 8deg 20deg);
  -webkit-mask: radial-gradient(circle, #000 0 6%, transparent 45%); mask: radial-gradient(circle, #000 0 6%, transparent 45%);
  animation: girar 40s linear infinite;
}
.portada-chip { display: flex; align-items: center; gap: 1.4cqw; font-family: "Lilita", sans-serif; font-size: 3.6cqw; letter-spacing: .08em; color: var(--blanco); background: rgba(16,18,52,.85); border: .6cqw solid var(--contorno); border-radius: 99px; padding: 1.4cqw 4cqw 1.6cqw; box-shadow: inset 0 0 0 .5cqw rgba(140,170,255,.25), 0 .8cqw 0 var(--contorno); animation: caer .6s var(--muelle) both; }
.portada-chip span { color: var(--oro); }
.portada-titulo { display: flex; flex-direction: column; align-items: center; line-height: .86; rotate: -4deg; filter: drop-shadow(0 2cqw 2.4cqw rgba(0,0,0,.45)); }
.pt1, .pt2 { --trazo: 2.2cqw; --sombra: 0; text-shadow: 0 .6cqw 0 var(--contorno), 0 1.2cqw 0 var(--contorno), 0 1.8cqw 0 var(--contorno); }
.pt1 { font-size: 13cqw; color: var(--blanco); animation: caer .7s var(--muelle) .1s both; }
.pt2 { font-size: 15.5cqw; color: var(--oro); animation: caer .7s var(--muelle) .25s both; background: none; }
@keyframes caer { 0% { transform: translateY(-12cqw) scale(1.8); opacity: 0; } 60% { opacity: 1; } 100% { transform: none; opacity: 1; } }
.portada-sub { font-size: 4.2cqw; line-height: 1.3; color: #E4E8FF; max-width: 30ch; font-weight: 900; text-shadow: 0 .4cqw 0 rgba(0,0,0,.5); }
.portada-sub b { color: var(--oro); }
/* si no cabe todo (pantallas anchas, donde el marco es más bajo), solo encoge el dibujo del becario: el botón nunca */
.portada > * { flex-shrink: 0; }
.portada > .portada-becario { flex: 0 1 auto; min-height: 0; object-fit: contain; }
.portada-becario { height: 36cqh; max-height: 62cqw; filter: drop-shadow(0 0 6cqw rgba(255,180,60,.55)) drop-shadow(0 2cqw 0 rgba(0,0,0,.35)); animation: flota 2.4s ease-in-out infinite alternate; }
@keyframes flota { from { transform: translateY(0) rotate(-3deg); } to { transform: translateY(-3cqw) rotate(3deg); } }
.btn-jugar { font-size: 8.6cqw; padding: 3.4cqw 14cqw 4cqw; border-radius: 4.6cqw; animation: latido 1.6s ease-in-out 1s infinite; }
@keyframes latido { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.portada-pie { font-family: "Lilita", sans-serif; font-size: 3.2cqw; color: #9BA3D6; letter-spacing: .05em; }
.portada-otros { font-family: "Nunito", sans-serif; font-weight: 900; font-size: 3.4cqw; color: #FFC93C; text-decoration: none; padding: 1.4cqw 3.4cqw; margin-top: -0.6cqw; border: 0.5cqw solid rgba(255,201,60,.45); border-radius: 99px; background: rgba(20,24,56,.55); }
.portada-reset { font-family: "Nunito", sans-serif; font-weight: 900; font-size: 3.4cqw; color: #C9CFF5; text-decoration: underline; padding: 1.6cqw 3cqw; margin-top: -1cqw; }

/* ---------- Rótulo de nivel ---------- */
.rotulo {
  position: absolute; left: 0; right: 0; top: 22%; z-index: 7;
  display: flex; flex-direction: column; align-items: center; gap: 2.4cqw;
  padding: 6cqw 6cqw; text-align: center;
  animation: rotuloEntra .55s var(--muelle) both;
}
.rotulo::before { content: ""; position: absolute; inset: -20cqw -10cqw; z-index: -1; background: radial-gradient(closest-side, rgba(8,9,28,.85), rgba(8,9,28,.6) 60%, transparent); }
.rotulo::after {
  content: ""; position: absolute; left: 50%; top: 42%; width: 180cqw; height: 180cqw; translate: -50% -50%; z-index: -1; pointer-events: none;
  background: repeating-conic-gradient(rgba(255,210,63,.18) 0 7deg, transparent 7deg 18deg);
  -webkit-mask: radial-gradient(circle, #000 0 4%, transparent 38%); mask: radial-gradient(circle, #000 0 4%, transparent 38%);
  animation: girar 18s linear infinite;
}
.rotulo.sale { animation: rotuloSale .38s ease-in both; }
@keyframes rotuloEntra { 0% { transform: scale(2.4); opacity: 0; filter: blur(8px); } 60% { opacity: 1; filter: none; } 100% { transform: none; } }
@keyframes rotuloSale { to { transform: scale(.6) translateY(-10cqw); opacity: 0; } }
.r-chip { font-size: 3.6cqw; letter-spacing: .1em; color: var(--blanco); --trazo: .7cqw; --sombra: .4cqw; background: linear-gradient(180deg, #FFB36B, var(--naranja) 50%, var(--naranja-osc) 51%); border: .6cqw solid var(--contorno); border-radius: 99px; padding: 1cqw 4cqw 1.4cqw; box-shadow: inset 0 .5cqw 0 rgba(255,255,255,.5), 0 .7cqw 0 var(--contorno); }
.r-nombre { font-size: 15cqw; line-height: .9; color: var(--blanco); text-transform: uppercase; text-wrap: balance; rotate: -3deg; --trazo: 2cqw; --sombra: 0; text-shadow: 0 .6cqw 0 var(--contorno), 0 1.2cqw 0 var(--contorno), 0 0 8cqw rgba(255,180,60,.6); }
.r-texto { font-weight: 900; font-size: 4.2cqw; line-height: 1.3; color: #E4E8FF; max-width: 32ch; text-wrap: balance; text-shadow: 0 .4cqw 0 rgba(0,0,0,.6); }

/* ---------- Mapa ---------- */
.mapa-premios {
  position: absolute; left: 3.5cqw; right: 3.5cqw; top: calc(max(3cqw, env(safe-area-inset-top)) + 15cqw);
  display: flex; align-items: center; gap: 2.2cqw;
}
.rango {
  flex: 1; min-width: 0; position: relative; display: flex; flex-direction: column; align-items: flex-start;
  background: linear-gradient(180deg, rgba(30,36,100,.92), rgba(16,18,52,.92)); border: .6cqw solid var(--contorno); border-radius: 3.4cqw;
  padding: 1.2cqw 3cqw 1.6cqw 14cqw; box-shadow: inset 0 0 0 .5cqw rgba(140,170,255,.22), 0 .9cqw 0 var(--contorno);
}
.rango .ic { position: absolute; left: 1.4cqw; top: 50%; translate: 0 -50%; width: 11cqw; height: 11cqw; }
.rango small { font-family: "Lilita", sans-serif; font-size: 2.6cqw; letter-spacing: .1em; color: var(--oro); }
.rango b { font-size: 4.6cqw; line-height: 1.05; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; --trazo: .7cqw; --sombra: .35cqw; padding: 0 .4cqw; }
.rango b.largo { font-size: 3.5cqw; }
.rango b.muylargo { font-size: 3cqw; }
.rango span { font-size: 2.8cqw; color: var(--texto-suave); font-weight: 900; }
.premio {
  position: relative; flex: none; width: 15cqw; height: 15cqw; border-radius: 3.6cqw;
  border: .6cqw solid var(--contorno);
  background: linear-gradient(180deg, #8FD8FF 0%, #4FB3FF 48%, #2A86F0 52%, #2A86F0 100%);
  box-shadow: inset 0 .6cqw 0 rgba(255,255,255,.55), inset 0 -1cqw 0 #164FB0, 0 .9cqw 0 var(--contorno);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 1cqw;
}
.premio:active { transform: translateY(.7cqw); box-shadow: inset 0 .6cqw 0 rgba(255,255,255,.55), inset 0 -.4cqw 0 #164FB0, 0 .2cqw 0 var(--contorno); }
.premio .ic { position: absolute; left: 50%; top: -2.6cqw; translate: -50% 0; width: 13cqw; height: 13cqw; }
.premio i { font-style: normal; font-size: 2.6cqw; --trazo: .55cqw; --sombra: .3cqw; }
.premio.cerrado { background: linear-gradient(180deg, #B7BCD6, #8D93B4 50%, #7A80A3 51%); box-shadow: inset 0 .6cqw 0 rgba(255,255,255,.4), inset 0 -1cqw 0 #555B80, 0 .9cqw 0 var(--contorno); }
.premio.cerrado .ic { filter: grayscale(.9) brightness(.7) drop-shadow(0 .5cqw 0 rgba(20,15,43,.55)); }
.premio.cerrado::after { content: ""; position: absolute; right: -2cqw; top: -2.4cqw; width: 6.4cqw; height: 6.4cqw; background: url(../img/exp/ui/candado.webp) center / contain no-repeat; filter: drop-shadow(0 .4cqw 0 rgba(20,15,43,.6)); }
.premio.nuevo { background: linear-gradient(180deg, #FFE36B 0%, #FFC21A 48%, #FF9A0A 52%); box-shadow: inset 0 .6cqw 0 rgba(255,255,255,.55), inset 0 -1cqw 0 #B4520A, 0 .9cqw 0 var(--contorno), 0 0 5cqw rgba(255,210,63,.75); animation: latido 1.2s ease-in-out infinite; }
.mapa-pista { position: absolute; left: 0; right: 0; bottom: calc(max(3cqw, env(safe-area-inset-bottom)) + 23cqw); text-align: center; font-size: 4.2cqw; color: var(--blanco); --trazo: .8cqw; --sombra: .5cqw; animation: botita 1.2s ease-in-out infinite; }
@keyframes botita { 50% { transform: translateY(-1.2cqw); } }

/* ---------- Bocadillo de los personajes ---------- */
.bocadillo {
  position: absolute; z-index: 3;
  width: max-content; max-width: 56cqw;
  background: linear-gradient(180deg, #FFFFFF, #EEF1FF);
  color: var(--contorno);
  border: .7cqw solid var(--contorno); border-radius: 4.4cqw;
  padding: 2.2cqw 3.6cqw 2.6cqw;
  font-family: "Nunito", sans-serif; font-weight: 900; font-size: 4cqw; line-height: 1.15;
  box-shadow: inset 0 -.8cqw 0 rgba(120,130,200,.25), 0 1cqw 0 var(--contorno), 0 2.4cqw 3cqw rgba(0,0,0,.35);
  translate: -50% -100%;
  animation: pop .45s var(--muelle) both;
  text-align: center; text-wrap: balance;
}
.bocadillo::after {
  content: ""; position: absolute; left: 50%; bottom: -3.6cqw; translate: -50% 0;
  border: 2cqw solid transparent; border-top: 3cqw solid var(--contorno); border-bottom: 0;
}
.bocadillo.malo { background: linear-gradient(180deg, #FF6B7D, #D8203F); color: var(--blanco); text-shadow: 0 .4cqw 0 rgba(80,0,20,.6); }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }

/* ---------- Tarjeta de pregunta ---------- */
.tarjeta {
  position: absolute; left: 2.6cqw; right: 2.6cqw; bottom: max(2.6cqw, env(safe-area-inset-bottom));
  z-index: 5;
  padding: 7cqw 4.4cqw 4.6cqw;
  animation: subeTarjeta .55s var(--muelle) both;
}
.tarjeta.sale { animation: bajaTarjeta .35s ease-in both; }
@keyframes subeTarjeta { from { transform: translateY(125%) scale(.9); } to { transform: none; } }
@keyframes bajaTarjeta { to { transform: translateY(130%); } }
.tarjeta.tiembla { animation: temblor .45s; }
@keyframes temblor { 10%, 90% { transform: translateX(-.6cqw); } 20%, 80% { transform: translateX(1.2cqw); } 30%, 50%, 70% { transform: translateX(-2cqw); } 40%, 60% { transform: translateX(2cqw); } }
.tarjeta.acierto { box-shadow: inset 0 0 0 .6cqw rgba(123,227,75,.75), 0 1.3cqw 0 var(--contorno), 0 0 8cqw rgba(123,227,75,.45); }
.tarjeta.fallo { box-shadow: inset 0 0 0 .6cqw rgba(255,84,104,.8), 0 1.3cqw 0 var(--contorno), 0 0 8cqw rgba(255,84,104,.45); }
.t-tiempo { position: absolute; left: 6cqw; right: 6cqw; top: 5.4cqw; height: 2.6cqw; border-radius: 99px; background: rgba(8,9,28,.6); border: .45cqw solid var(--contorno); overflow: hidden; }
.t-tiempo i { display: block; height: 100%; width: 100%; background: linear-gradient(180deg, #B6F57A, var(--verde) 50%, var(--verde-osc) 51%); transform-origin: left; }
.t-tiempo.prisa i { background: linear-gradient(180deg, #FF9BA6, var(--rojo) 50%, var(--rojo-osc) 51%); }
.tarjeta:has(.t-tiempo:not([hidden])) { padding-top: 10.6cqw; }
.t-cabeza { position: absolute; left: 0; right: 0; top: -4.6cqw; display: flex; justify-content: center; }
.t-chip {
  font-size: 4cqw; letter-spacing: .06em; color: var(--blanco); --trazo: .8cqw; --sombra: .4cqw;
  background: linear-gradient(180deg, #FFB36B, var(--naranja) 50%, var(--naranja-osc) 51%, var(--naranja-osc));
  border: .7cqw solid var(--contorno); border-radius: 2.6cqw; padding: 1.2cqw 5cqw 1.6cqw;
  box-shadow: inset 0 .6cqw 0 rgba(255,255,255,.5), 0 .8cqw 0 var(--contorno);
}
.t-pregunta { font-family: "Lilita", sans-serif; font-size: 5.8cqw; line-height: 1.12; text-align: center; text-wrap: balance; margin-bottom: 3.8cqw; color: var(--blanco); text-shadow: 0 .5cqw 0 rgba(10,8,30,.55); letter-spacing: .01em; }
.t-respuestas { display: flex; flex-direction: column; gap: 2.4cqw; }
.t-fila { display: flex; gap: 3cqw; }
.t-btn {
  flex: 1; font-size: 6.6cqw; padding: 3.6cqw 2cqw 4.2cqw; color: var(--blanco);
  border: .7cqw solid var(--contorno); border-radius: 4cqw;
  transition: transform .09s, box-shadow .09s, opacity .2s, filter .2s;
}
.t-mito { background: linear-gradient(180deg, #FF9BA6 0%, var(--rojo) 48%, #E8293F 52%); box-shadow: inset 0 .7cqw 0 rgba(255,255,255,.5), inset 0 -1.3cqw 0 #8E0C25, 0 1.1cqw 0 var(--contorno); }
.t-verdad { background: linear-gradient(180deg, #B6F57A 0%, var(--verde) 48%, #3FBF26 52%); box-shadow: inset 0 .7cqw 0 rgba(255,255,255,.5), inset 0 -1.3cqw 0 #1C7A12, 0 1.1cqw 0 var(--contorno); }
.t-btn:active { transform: translateY(.9cqw); }
.t-op {
  position: relative;
  background: linear-gradient(180deg, #FFFFFF 0%, #F1F3FF 55%, #DDE2FA 100%);
  color: var(--contorno);
  border: .7cqw solid var(--contorno); border-radius: 3.6cqw;
  box-shadow: inset 0 -1cqw 0 #B9C1E8, 0 1cqw 0 var(--contorno);
  padding: 2.8cqw 3.4cqw 3.4cqw; font-family: "Nunito", sans-serif; font-weight: 900; font-size: 4.5cqw; line-height: 1.15; text-align: left;
  display: flex; align-items: center; gap: 3cqw;
  transition: transform .09s, box-shadow .09s, background .2s;
}
.t-op:active { transform: translateY(.8cqw); box-shadow: inset 0 -.5cqw 0 #B9C1E8, 0 .2cqw 0 var(--contorno); }
.t-op b { flex: none; width: 8cqw; height: 8cqw; border-radius: 2.4cqw; color: var(--blanco); display: grid; place-items: center; font-size: 4.6cqw; --trazo: .7cqw; --sombra: .35cqw; border: .5cqw solid var(--contorno);
  background: linear-gradient(180deg, #8FD8FF, #4FB3FF 50%, #2A86F0 51%); box-shadow: inset 0 .4cqw 0 rgba(255,255,255,.5); padding-bottom: .4cqw; }
.t-respuestas > .t-op:nth-of-type(2) b { background: linear-gradient(180deg, #D7B6FF, #A77BFF 50%, #7C4DE8 51%); }
.t-respuestas > .t-op:nth-of-type(3) b { background: linear-gradient(180deg, #FFB36B, var(--naranja) 50%, var(--naranja-osc) 51%); }
.t-op.puesta { background: linear-gradient(180deg, #FFF6C2, #FFE36B 55%, #FFC21A); box-shadow: inset 0 -1cqw 0 #D98A0A, 0 1cqw 0 var(--contorno); }
.t-op.puesta b { background: linear-gradient(180deg, #B6F57A, var(--verde) 50%, var(--verde-osc) 51%); }
.t-rejilla { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4cqw; }
.t-rejilla .t-op { padding: 2.4cqw 2.2cqw 3cqw; font-size: 4cqw; gap: 2cqw; }
.t-ordena-pie { display: flex; justify-content: center; margin-top: .4cqw; }
.t-borrar { font-family: "Nunito", sans-serif; font-weight: 900; font-size: 3.6cqw; color: var(--texto-suave); padding: 1.6cqw 3cqw; text-decoration: underline; }
/* lo elegido se queda marcado hasta pulsar COMPROBAR */
.t-btn.elegida { transform: translateY(-1cqw) scale(1.04); outline: 1.1cqw solid var(--oro); outline-offset: .5cqw; filter: brightness(1.08); }
.t-respuestas.con-eleccion .t-btn:not(.elegida) { opacity: .5; filter: saturate(.6); }
.t-op.elegida { background: linear-gradient(180deg, #FFF6C2, #FFE36B 55%, #FFC21A); box-shadow: inset 0 -1cqw 0 #D98A0A, 0 1cqw 0 var(--contorno), 0 0 0 1cqw rgba(255,210,63,.45); transform: scale(1.02); }
.t-comprobar { width: 100%; margin-top: .6cqw; font-size: 6.2cqw; padding: 2.8cqw 4cqw 3.4cqw;
  --cara-1: #B6F57A; --cara-2: #7BE34B; --cara-3: #3FBF26; --labio: #1C7A12; }
.t-comprobar:disabled { --cara-1: #9AA0C8; --cara-2: #858BB6; --cara-3: #737AA6; --labio: #555B80; color: #D6DAF2; filter: saturate(.6); }
.t-comprobar:disabled::after { display: none; }
.t-comprobar:not(:disabled) { animation: pop .35s var(--muelle) both; }
.t-respuestas.entra > * { animation: entra .4s var(--muelle) both; }
.t-respuestas.entra > *:nth-child(2) { animation-delay: .06s; }
.t-respuestas.entra > *:nth-child(3) { animation-delay: .12s; }
.t-respuestas.entra > *:nth-child(4) { animation-delay: .18s; }
.t-respuestas.entra > *:nth-child(5) { animation-delay: .24s; }
@keyframes entra { from { transform: translateY(5cqw) scale(.92); opacity: 0; } to { transform: none; opacity: 1; } }

.t-resultado { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2.4cqw; animation: entra .35s var(--salida) both; }
.t-veredicto { font-size: 11cqw; line-height: .95; text-transform: uppercase; --trazo: 1.6cqw; --sombra: .9cqw; rotate: -3deg; animation: golpe .5s var(--muelle) both; }
@keyframes golpe { 0% { transform: scale(2.6); opacity: 0; } 100% { transform: none; opacity: 1; } }
.t-veredicto.ok { color: var(--oro); }
.t-veredicto.mal { color: var(--rojo); }
.t-dato {
  font-family: "Lilita", sans-serif; font-size: 6.2cqw; color: var(--contorno);
  background: linear-gradient(180deg, #FFFFFF, #FFE9A8); border: .6cqw solid var(--contorno);
  padding: 1.2cqw 4cqw 1.6cqw; border-radius: 3cqw; rotate: 2deg;
  box-shadow: inset 0 -.7cqw 0 rgba(217,138,10,.35), 0 .9cqw 0 var(--contorno);
  animation: pegar .5s var(--muelle) .15s both;
}
@keyframes pegar { from { transform: rotate(-25deg) scale(0); } to { transform: none; } }
.t-texto { font-size: 4.2cqw; line-height: 1.38; color: #E4E8FF; font-weight: 800; }
.t-texto b { color: var(--oro); font-weight: 900; }
.t-seguir { align-self: stretch; margin-top: 1cqw; }
.tarjeta.resuelta { padding-top: 6cqw; }
.tarjeta.resuelta .t-pregunta { font-family: "Nunito", sans-serif; font-weight: 900; font-size: 3.6cqw; color: var(--texto-suave); margin-bottom: .6cqw; text-shadow: none; }

/* ---------- Ventanas (fin de nivel, premios…) ---------- */
.ventana { position: absolute; inset: 0; z-index: 8; display: grid; place-items: center; padding: 6cqw; background: radial-gradient(circle at 50% 40%, rgba(40,46,120,.55), rgba(8,9,28,.82)); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: aparece .3s both; }
@keyframes aparece { from { opacity: 0; } }
.v-caja {
  position: relative; width: 100%;
  padding: 22cqw 6cqw 6cqw; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 3cqw;
  animation: subeCaja .6s var(--muelle) both;
}
@keyframes subeCaja { from { transform: translateY(40%) scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }
.v-caja::before {
  content: ""; position: absolute; left: 50%; top: -2cqw; z-index: -1; pointer-events: none;
  width: 170cqw; height: 170cqw; translate: -50% -50%;
  background: repeating-conic-gradient(rgba(255,210,63,.45) 0 8deg, transparent 8deg 19deg);
  -webkit-mask: radial-gradient(circle, #000 0 10%, transparent 52%); mask: radial-gradient(circle, #000 0 10%, transparent 52%);
  animation: girar 22s linear infinite;
}
.v-becario { position: absolute; top: -27cqw; left: 50%; translate: -50% 0; height: 48cqw; filter: drop-shadow(0 0 5cqw rgba(255,200,80,.55)) drop-shadow(0 1.6cqw 0 rgba(0,0,0,.3)); animation: flota 2.4s ease-in-out infinite alternate; }
.v-titulo { font-size: 10cqw; line-height: .95; text-transform: uppercase; text-wrap: balance; color: var(--blanco); --trazo: 1.6cqw; --sombra: .8cqw; }
.v-titulo .naranja { color: var(--oro); }
.v-estrellas { display: flex; align-items: flex-end; gap: 1cqw; margin: -1cqw 0 -1cqw; }
.v-estrellas span { width: 17cqw; height: 17cqw; font-size: 0; color: transparent; background: url(../img/exp/ui/estrella.webp) center / contain no-repeat; filter: grayscale(1) brightness(.35) drop-shadow(0 .6cqw 0 rgba(20,15,43,.5)); }
.v-estrellas span:nth-child(2) { width: 22cqw; height: 22cqw; margin-bottom: 3cqw; }
.v-estrellas span.si { filter: drop-shadow(0 0 3cqw rgba(255,210,63,.85)) drop-shadow(0 .6cqw 0 rgba(20,15,43,.5)); animation: estrella .6s var(--muelle) both; }
.v-estrellas span.si:nth-child(2) { animation-delay: .3s; }
.v-estrellas span.si:nth-child(3) { animation-delay: .6s; }
@keyframes estrella { 0% { transform: scale(3) rotate(-60deg); opacity: 0; } 60% { opacity: 1; } 100% { transform: none; } }
.v-texto { font-weight: 800; font-size: 4.2cqw; line-height: 1.35; color: #E4E8FF; text-wrap: balance; }
.v-texto b { color: var(--oro); font-weight: 900; }
.v-pegatinas { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.8cqw; }
.v-pegatinas:empty { display: none; }
.v-pegatinas img { width: 13cqw; height: 13cqw; object-fit: contain; background: radial-gradient(circle at 50% 35%, #FFFFFF, #E6E9FF); border: .6cqw solid var(--contorno); border-radius: 3.2cqw; padding: .8cqw; box-shadow: 0 .7cqw 0 var(--contorno); animation: estrella .45s var(--muelle) both; }
.v-btns { display: flex; flex-direction: column; gap: 3cqw; width: 100%; margin-top: 1cqw; }

/* ---------- Sigue al becario ---------- */
.s-caja { gap: 2.6cqw; }
.s-caja .v-titulo { font-size: 8.4cqw; }
.s-caja .v-texto { font-size: 3.8cqw; }
.s-redes { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4cqw; width: 100%; }
.s-red {
  font-size: 4.6cqw; text-decoration: none; color: var(--blanco); text-align: center; --trazo: .7cqw; --sombra: .4cqw;
  border: .6cqw solid var(--contorno); border-radius: 3.4cqw; padding: 2.6cqw 2cqw 3cqw;
  box-shadow: inset 0 .6cqw 0 rgba(255,255,255,.35), inset 0 -1cqw 0 rgba(0,0,0,.25), 0 .9cqw 0 var(--contorno);
  transition: transform .08s, box-shadow .08s;
}
.s-red:active { transform: translateY(.8cqw); box-shadow: inset 0 .6cqw 0 rgba(255,255,255,.35), 0 .1cqw 0 var(--contorno); }
.s-tiktok { background: linear-gradient(180deg, #3A3A3A, #111); }
.s-instagram { background: linear-gradient(45deg, #F58529, #DD2A7B 55%, #8134AF); }
.s-youtube { background: linear-gradient(180deg, #FF5A52, #D9201A); }
.s-facebook { background: linear-gradient(180deg, #4C9BFF, #1466D6); }
#sYa:disabled { --cara-1: #9AA0C8; --cara-2: #858BB6; --cara-3: #737AA6; --labio: #555B80; font-size: 4.6cqw; color: #D6DAF2; }
#sYa:disabled::after { display: none; }
.s-caja .d-campo input.tiembla { animation: temblor .45s; border-color: var(--rojo); }
.s-error { min-height: 3.6cqw; margin-top: -1.4cqw; font-weight: 900; font-size: 3.6cqw; color: #FF8E9B; }
.s-caja .v-btns { margin-top: 0; }

/* ---------- Diploma y campos de texto ---------- */
.d-caja { padding-top: 6cqw; gap: 2.6cqw; max-height: 100%; overflow-x: hidden; overflow-y: auto; }
.d-caja::before { display: none; }
.d-caja .v-titulo { font-size: 9cqw; }
.d-campo { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 1cqw; font-weight: 900; font-size: 3.8cqw; color: var(--texto-suave); }
.d-campo input {
  width: 100%; font: 900 max(16px, 5cqw) "Nunito", sans-serif; color: var(--contorno);
  background: linear-gradient(180deg, #E9ECFF, #FFFFFF 40%); border: .6cqw solid var(--contorno); border-radius: 3cqw; padding: 2.2cqw 3cqw;
  box-shadow: inset 0 .8cqw 0 rgba(20,15,43,.12), 0 .6cqw 0 var(--contorno);
  -webkit-user-select: text; user-select: text;
}
.d-campo input::placeholder { color: #8C93BF; }
.d-campo input:focus { outline: .8cqw solid var(--oro); outline-offset: .4cqw; }
.d-vista { width: 78%; aspect-ratio: 4 / 5; border: .6cqw solid var(--contorno); border-radius: 2.4cqw; box-shadow: 0 1cqw 0 var(--contorno), 0 3cqw 4cqw rgba(0,0,0,.4); background: #222A35; }
.d-btns { display: flex; gap: 2.4cqw; width: 100%; }
.d-btns > * { flex: 1; }
.d-btns .btn-grande, .d-btns .btn-sec { font-size: 4.8cqw; padding: 3cqw 2cqw 3.4cqw; }
.d-btns button:disabled { opacity: .45; }

/* ---------- Avisos, carga y cortina entre pantallas ---------- */
.aviso {
  position: absolute; left: 50%; top: max(3cqw, env(safe-area-inset-top)); z-index: 9; translate: -50% 0;
  background: linear-gradient(180deg, #4656D6, var(--panel-osc)); color: var(--blanco);
  border: .7cqw solid var(--contorno); box-shadow: inset 0 0 0 .5cqw rgba(255,210,63,.6), 0 1cqw 0 var(--contorno), 0 0 6cqw rgba(255,210,63,.35);
  font-size: 4.2cqw; --trazo: .7cqw; --sombra: .4cqw; width: max-content; max-width: 90cqw; text-align: center; text-wrap: balance;
  padding: 2.4cqw 4.4cqw 2.8cqw; border-radius: 3.4cqw;
  opacity: 0; transform: translateY(-6cqw) scale(.8);
  transition: opacity .25s, transform .4s var(--muelle);
}
.aviso.si { opacity: 1; transform: none; }
.aviso img { width: 8cqw; height: 8cqw; vertical-align: middle; margin-right: 1.6cqw; object-fit: contain; }
.cargando { position: absolute; inset: 0; z-index: 20; overflow: hidden; background: radial-gradient(circle at 50% 42%, #3442B8, #141838 70%); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4cqw; transition: opacity .4s; }
.cargando::before { content: ""; position: absolute; left: 50%; top: 42%; width: 200cqw; height: 200cqw; translate: -50% -50%; background: repeating-conic-gradient(rgba(255,255,255,.06) 0 8deg, transparent 8deg 20deg); animation: girar 30s linear infinite; }
.c-becario { position: relative; height: 34cqw; animation: flota 1.2s ease-in-out infinite alternate; filter: drop-shadow(0 0 5cqw rgba(255,200,80,.5)); }
.c-texto { position: relative; font-size: 5cqw; color: var(--blanco); --trazo: .8cqw; --sombra: .5cqw; }
#ui > .cargando.fuera { opacity: 0; pointer-events: none; visibility: hidden; transition: opacity .4s, visibility 0s .4s; }
.c-barra { position: relative; width: 64cqw; height: 6cqw; border: .7cqw solid var(--contorno); border-radius: 99px; overflow: hidden; background: rgba(8,9,28,.7); box-shadow: inset 0 1cqw 1cqw rgba(0,0,0,.5), 0 .8cqw 0 var(--contorno); }
.c-barra i { display: block; height: 100%; width: 0; background: linear-gradient(180deg, #FFE36B, #FFC21A 50%, #FF9A0A 51%); box-shadow: inset 0 .6cqw 0 rgba(255,255,255,.5); transition: width .2s; }
.cortina {
  position: absolute; inset: 0; z-index: 25; pointer-events: none; overflow: hidden;
  display: grid; place-items: center;
  visibility: hidden;
}
.cortina::before {
  content: ""; position: absolute; top: -10%; bottom: -10%; left: -30%; right: -30%;
  background: repeating-linear-gradient(-55deg, rgba(255,255,255,.05) 0 4cqw, transparent 4cqw 8cqw), linear-gradient(160deg, #4656D6, #1E2575 70%);
  border-left: 1.4cqw solid var(--oro); border-right: 1.4cqw solid var(--oro);
  transform: translateX(-140%) skewX(-12deg);
}
.cortina img { position: relative; height: 30cqw; opacity: 0; filter: drop-shadow(0 0 5cqw rgba(255,200,80,.55)); }
.cortina.entra { visibility: visible; pointer-events: auto; }
.cortina.entra::before { animation: cortinaEntra .32s cubic-bezier(.6, 0, .4, 1) both; }
.cortina.entra img { animation: pop .3s var(--muelle) .15s both; opacity: 1; }
.cortina.sale { visibility: visible; }
.cortina.sale::before { animation: cortinaSale .42s cubic-bezier(.6, 0, .4, 1) both; }
.cortina.sale img { opacity: 0; transition: opacity .12s; }
@keyframes cortinaEntra { from { transform: translateX(-140%) skewX(-12deg); } to { transform: translateX(0) skewX(-12deg); } }
@keyframes cortinaSale { from { transform: translateX(0) skewX(-12deg); } to { transform: translateX(140%) skewX(-12deg); } }

/* ---------- Mapa: elegir mundo y botones de abajo ---------- */
.mapa-titulo { font: inherit; cursor: pointer; }
.mapa-titulo:active { transform: translateY(.5cqw); }
.mapa-titulo.nuevo { box-shadow: inset 0 0 0 .5cqw rgba(255,210,63,.7), 0 .9cqw 0 var(--contorno), 0 0 5cqw rgba(255,210,63,.6); animation: latido 1.2s ease-in-out infinite; }
.dock {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.4cqw;
  padding: 6cqw 3cqw max(3.4cqw, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, rgba(8,9,28,.75) 45%);
}
.dock-btn {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  height: 16cqw; padding-bottom: 1.4cqw;
  border: .6cqw solid var(--contorno); border-radius: 3.6cqw;
  --cara-1: #8FD8FF; --cara-2: #4FB3FF; --cara-3: #2A86F0; --labio: #164FB0;
  background: linear-gradient(180deg, var(--cara-1) 0%, var(--cara-2) 48%, var(--cara-3) 52%);
  box-shadow: inset 0 .6cqw 0 rgba(255,255,255,.55), inset 0 -1.1cqw 0 var(--labio), 0 1cqw 0 var(--contorno), 0 2cqw 3cqw rgba(0,0,0,.4);
  transition: transform .09s;
}
#btnDuelo { --cara-1: #FF9BA6; --cara-2: #FF5468; --cara-3: #E8293F; --labio: #8E0C25; }
#btnCofre { --cara-1: #FFE36B; --cara-2: #FFC21A; --cara-3: #FF9A0A; --labio: #B4520A; }
#btnRopa { --cara-1: #D7B6FF; --cara-2: #A77BFF; --cara-3: #7C4DE8; --labio: #4B23A6; }
.dock-btn:active { transform: translateY(.8cqw); }
.dock-btn .ic { position: absolute; left: 50%; top: -6.4cqw; translate: -50% 0; width: 15cqw; height: 15cqw; transition: transform .3s var(--muelle); }
.dock-btn:active .ic { transform: scale(.9); }
.dock-btn i { font-style: normal; font-size: 3cqw; white-space: nowrap; --trazo: .6cqw; --sombra: .35cqw; }
.dock-btn em { position: absolute; top: -3cqw; right: -1.6cqw; display: flex; align-items: center; gap: .3cqw; font-style: normal; font-family: "Lilita", sans-serif; font-size: 3.4cqw; color: var(--blanco); -webkit-text-stroke: .6cqw var(--contorno); paint-order: stroke fill; background: linear-gradient(180deg, #FF9BA6, var(--rojo) 50%, var(--rojo-osc) 51%); border: .5cqw solid var(--contorno); border-radius: 99px; padding: .2cqw 1.6cqw .5cqw .6cqw; box-shadow: 0 .5cqw 0 var(--contorno); }
.dock-btn em .ic { position: static; translate: none; width: 4.6cqw; height: 4.6cqw; filter: none; }
.dock-btn.nuevo { animation: latido 1.2s ease-in-out infinite; }
.dock-btn.nuevo::after { content: "!"; position: absolute; top: -3.4cqw; left: -1.6cqw; width: 6cqw; height: 6cqw; display: grid; place-items: center; border-radius: 50%; font-family: "Lilita", sans-serif; font-size: 4cqw; color: var(--blanco); -webkit-text-stroke: .6cqw var(--contorno); paint-order: stroke fill; background: linear-gradient(180deg, #FF9BA6, var(--rojo) 50%, var(--rojo-osc) 51%); border: .5cqw solid var(--contorno); box-shadow: 0 .4cqw 0 var(--contorno); }

.m-lista { display: flex; flex-direction: column; gap: 2.6cqw; width: 100%; }
.m-mundo {
  display: flex; align-items: center; gap: 3cqw; width: 100%; text-align: left; color: var(--contorno);
  background: linear-gradient(180deg, #FFFFFF, #E4E8FF); border: .6cqw solid var(--contorno); border-radius: 4cqw;
  box-shadow: inset 0 -1cqw 0 #B9C1E8, 0 1cqw 0 var(--contorno); padding: 2cqw 3cqw 2.6cqw;
}
button.m-mundo:active { transform: translateY(.8cqw); box-shadow: inset 0 -.5cqw 0 #B9C1E8, 0 .2cqw 0 var(--contorno); }
.m-mundo img { width: 15cqw; height: 15cqw; object-fit: contain; flex: none; filter: drop-shadow(0 .5cqw 0 rgba(20,15,43,.4)); }
.m-mundo span { display: flex; flex-direction: column; gap: .4cqw; min-width: 0; }
.m-mundo small { font-family: "Lilita", sans-serif; font-size: 2.8cqw; letter-spacing: .08em; color: var(--azul-osc); }
.m-mundo b { font-size: 6cqw; line-height: 1; color: var(--blanco); --trazo: .8cqw; --sombra: .4cqw; }
.m-mundo i { font-style: normal; font-weight: 900; font-size: 3.4cqw; color: #4B5280; }
.m-mundo.actual { background: linear-gradient(180deg, #FFF6C2, #FFE36B 55%, #FFC21A); box-shadow: inset 0 -1cqw 0 #D98A0A, 0 1cqw 0 var(--contorno), 0 0 5cqw rgba(255,210,63,.5); }
.m-mundo.actual small { color: #A34C00; }
.m-mundo.cerrado { background: linear-gradient(180deg, #A9AED0, #8D93B4); box-shadow: inset 0 -1cqw 0 #6D7398, 0 1cqw 0 var(--contorno); }
.m-mundo.cerrado img { filter: grayscale(1) brightness(.6); opacity: .8; }
.m-mundo.cerrado b { color: #DADDF0; }
.m-mundo.tiembla, .r-gorro-btn.tiembla { animation: temblor .45s; }

/* ---------- Vestuario ---------- */
.r-vista { position: relative; height: 46cqw; width: 100%; display: flex; justify-content: center; margin-top: 6cqw; }
.r-vista::before { content: ""; position: absolute; left: 50%; bottom: -2cqw; width: 50cqw; height: 50cqw; translate: -50% 0; border-radius: 50%; background: radial-gradient(circle, rgba(255,210,63,.45), transparent 65%); }
.r-vista img:first-child { position: relative; height: 100%; filter: drop-shadow(0 1.4cqw 0 rgba(0,0,0,.3)); }
.r-gorro { position: absolute; animation: pop .45s var(--muelle) both; }
.r-lista { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4cqw; width: 100%; }
.r-gorro-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1cqw; min-height: 25cqw; color: var(--contorno);
  background: linear-gradient(180deg, #FFFFFF, #E4E8FF); border: .6cqw solid var(--contorno); border-radius: 3.6cqw;
  box-shadow: inset 0 -1cqw 0 #B9C1E8, 0 1cqw 0 var(--contorno); padding: 1.6cqw;
}
.r-gorro-btn:active { transform: translateY(.8cqw); }
.r-gorro-btn img { width: 16cqw; height: 12cqw; object-fit: contain; filter: drop-shadow(0 .5cqw 0 rgba(20,15,43,.35)); }
.r-gorro-btn span { font-size: 8cqw; line-height: 12cqw; }
.r-gorro-btn i { font-style: normal; font-family: "Nunito", sans-serif; font-weight: 900; font-size: 2.7cqw; line-height: 1.1; }
.r-gorro-btn.puesto { background: linear-gradient(180deg, #FFF6C2, #FFE36B 55%, #FFC21A); box-shadow: inset 0 -1cqw 0 #D98A0A, 0 1cqw 0 var(--contorno), 0 0 4cqw rgba(255,210,63,.55); }
.r-gorro-btn.cerrado { background: linear-gradient(180deg, #A9AED0, #8D93B4); box-shadow: inset 0 -1cqw 0 #6D7398, 0 1cqw 0 var(--contorno); }
.r-gorro-btn.cerrado img { filter: grayscale(1) brightness(.3); opacity: .55; }

/* ---------- Comodines en la tarjeta ---------- */
.t-comodines { display: flex; justify-content: center; gap: 2.6cqw; }
.t-comodin {
  position: relative; display: flex; align-items: center; gap: 1cqw;
  font-family: "Lilita", sans-serif; font-size: 3.8cqw; color: var(--blanco); -webkit-text-stroke: .6cqw var(--contorno); paint-order: stroke fill; text-shadow: 0 .35cqw 0 var(--contorno);
  background: linear-gradient(180deg, #D7B6FF, #A77BFF 50%, #7C4DE8 51%); border: .6cqw solid var(--contorno); border-radius: 99px;
  padding: .8cqw 3.4cqw 1.2cqw 1cqw; box-shadow: inset 0 .5cqw 0 rgba(255,255,255,.5), 0 .8cqw 0 var(--contorno);
}
.t-comodin .ic { width: 6.4cqw; height: 6.4cqw; margin: -1.6cqw 0 -1.4cqw; }
.t-comodin em { position: absolute; right: -1.8cqw; top: -2cqw; font-style: normal; min-width: 5cqw; height: 5cqw; display: grid; place-items: center; padding: 0 1cqw; font-size: 3cqw; border-radius: 99px; background: linear-gradient(180deg, #FF9BA6, var(--rojo) 50%, var(--rojo-osc) 51%); border: .45cqw solid var(--contorno); }
.t-comodin:active { transform: translateY(.6cqw); box-shadow: inset 0 .5cqw 0 rgba(255,255,255,.5), 0 .2cqw 0 var(--contorno); }
.t-comodin:disabled { filter: grayscale(1) brightness(.75); opacity: .55; box-shadow: none; }
.t-comodin.activo { opacity: 1; filter: none; background: linear-gradient(180deg, #FFE36B, #FFC21A 50%, #FF9A0A 51%); box-shadow: inset 0 .5cqw 0 rgba(255,255,255,.5), 0 .8cqw 0 var(--contorno), 0 0 4cqw rgba(255,210,63,.7); }
.t-op.quitada { opacity: .3; text-decoration: line-through; box-shadow: none; transform: scale(.96); }

/* ---------- Duelo y reto del día ---------- */
.duelo {
  position: absolute; inset: 0; z-index: 4; overflow: hidden;
  background: radial-gradient(circle at 50% 35%, #6A3FD0, #2A1F7A 45%, #120F38 80%);
}
.duelo[data-modo="dia"] { background: radial-gradient(circle at 50% 35%, #2F8CF0, #1E3FA8 45%, #0F173F 80%); }
.duelo::before {
  content: ""; position: absolute; left: 50%; top: 40%; width: 220cqw; height: 220cqw; translate: -50% -50%; pointer-events: none;
  background: repeating-conic-gradient(rgba(255,255,255,.07) 0 9deg, transparent 9deg 20deg); animation: girar 60s linear infinite;
}
.du-cabeza { position: absolute; left: 0; right: 0; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 2cqw; padding: max(3cqw, env(safe-area-inset-top)) 3.5cqw 2cqw; }
.du-puntos { display: flex; flex-direction: column; align-items: center; min-width: 18cqw; background: linear-gradient(180deg, rgba(30,36,100,.92), rgba(16,18,52,.92)); border: .6cqw solid var(--contorno); border-radius: 3.4cqw; padding: .6cqw 2cqw 1cqw; box-shadow: inset 0 0 0 .5cqw rgba(140,170,255,.22), 0 .9cqw 0 var(--contorno); }
.du-puntos b { font-size: 6.6cqw; line-height: 1; color: var(--oro); --trazo: .8cqw; --sombra: .4cqw; }
.du-puntos small { font-family: "Lilita", sans-serif; font-size: 2.4cqw; letter-spacing: .1em; color: var(--texto-suave); }
.du-puntos.salta-du { animation: pop .45s var(--muelle); }
.du-cuerpo { position: absolute; left: 0; right: 0; top: calc(max(3cqw, env(safe-area-inset-top)) + 16cqw); bottom: 0; overflow-y: auto; overflow-x: hidden; padding: 2cqw 5cqw 6cqw; color: var(--blanco); }
.du-cuerpo.entra-du > * { animation: entra .45s var(--muelle) both; }
.du-intro, .du-final, .du-ruleta-caja { display: flex; flex-direction: column; align-items: center; gap: 3.2cqw; text-align: center; min-height: 100%; justify-content: center; }
.duelo .v-texto { color: #E4E8FF; }
.duelo .btn-grande, .duelo .btn-sec { width: 100%; }
.duelo .t-borrar { color: var(--texto-suave); }
.du-icono { width: 34cqw; height: 34cqw; object-fit: contain; filter: drop-shadow(0 0 6cqw rgba(255,210,63,.55)) drop-shadow(0 1.4cqw 0 rgba(0,0,0,.4)); animation: flota 2.4s ease-in-out infinite alternate; }
.du-fecha { font-family: "Lilita", sans-serif; font-size: 4cqw; letter-spacing: .06em; color: var(--oro); }
.du-rv { font-weight: 900; font-size: 3.8cqw; background: rgba(255,210,63,.16); border: .6cqw solid var(--oro); border-radius: 3cqw; padding: 2cqw 3cqw; }
.du-cats { display: flex; gap: 1.6cqw; }
.du-cats span { width: 12cqw; height: 12cqw; display: grid; place-items: center; font-size: 6cqw; background: linear-gradient(180deg, rgba(255,255,255,.35), transparent 50%, rgba(0,0,0,.15) 51%), var(--c); border: .6cqw solid var(--contorno); border-radius: 50%; box-shadow: 0 .8cqw 0 var(--contorno); -webkit-text-stroke: 0; text-shadow: none; }
.du-campo { color: var(--texto-suave); }
.du-ruleta { position: relative; width: 78cqw; aspect-ratio: 1; }
.du-ruleta::before { content: ""; position: absolute; inset: -6cqw; border-radius: 50%; background: radial-gradient(circle, rgba(255,210,63,.45), transparent 65%); }
.du-ruleta svg { position: relative; width: 100%; height: 100%; filter: drop-shadow(0 1.8cqw 0 rgba(10,8,30,.6)); }
.du-aguja { position: absolute; left: 50%; top: -3.4cqw; translate: -50% 0; width: 10cqw; height: 12cqw; background: linear-gradient(180deg, #FFF6C2, var(--oro) 50%, var(--oro-osc)); clip-path: polygon(0 0, 100% 0, 50% 100%); filter: drop-shadow(0 .8cqw 0 var(--contorno)); }
.du-aguja::after { content: ""; position: absolute; inset: 1cqw 1.6cqw 3cqw; background: linear-gradient(180deg, rgba(255,255,255,.7), transparent); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.du-titulo { font-size: 5.6cqw; letter-spacing: .06em; color: var(--oro); --trazo: .9cqw; --sombra: .5cqw; }
#duGirar.fuera { visibility: hidden; }
.du-cat-sale { font-size: 8.4cqw; background: linear-gradient(180deg, rgba(255,255,255,.35), transparent 50%, rgba(0,0,0,.15) 51%), var(--c); color: var(--blanco); --trazo: 1.2cqw; --sombra: .6cqw; border: .7cqw solid var(--contorno); border-radius: 4cqw; padding: 1.6cqw 5cqw 2.2cqw; box-shadow: 0 1cqw 0 var(--contorno), 0 0 6cqw rgba(255,255,255,.3); animation: golpe .5s var(--muelle) both; }
.du-pregunta { display: flex; flex-direction: column; align-items: center; gap: 2cqw; }
.du-cat { font-size: 4.2cqw; letter-spacing: .04em; background: linear-gradient(180deg, rgba(255,255,255,.35), transparent 50%, rgba(0,0,0,.15) 51%), var(--c); color: var(--blanco); --trazo: .8cqw; --sombra: .4cqw; border: .6cqw solid var(--contorno); border-radius: 99px; padding: 1cqw 4.4cqw 1.4cqw; box-shadow: 0 .8cqw 0 var(--contorno); }
.du-reel { font-family: "Lilita", sans-serif; font-size: 3.4cqw; color: var(--contorno); background: linear-gradient(180deg, #FFE36B, #FFC21A); border: .5cqw solid var(--contorno); border-radius: 99px; padding: .8cqw 3cqw 1cqw; }
.du-personaje { height: min(36cqw, 20cqh); filter: drop-shadow(0 0 4cqw rgba(255,255,255,.35)) drop-shadow(0 1.4cqw 0 rgba(0,0,0,.4)); animation: flota 2.4s ease-in-out infinite alternate; }
.du-emoji { font-size: min(26cqw, 15cqh); line-height: 1.1; animation: flota 2.4s ease-in-out infinite alternate; filter: drop-shadow(0 1.4cqw 0 rgba(0,0,0,.35)); }
.du-rondas { display: flex; gap: 1.8cqw; flex-wrap: wrap; justify-content: center; }
.du-rondas span { position: relative; width: 12.6cqw; height: 12.6cqw; display: grid; place-items: center; font-size: 6cqw; background: linear-gradient(180deg, rgba(255,255,255,.35), transparent 50%, rgba(0,0,0,.15) 51%), var(--c); border: .6cqw solid var(--contorno); border-radius: 3.2cqw; box-shadow: 0 .7cqw 0 var(--contorno); }
.du-rondas span.no { filter: grayscale(.85) brightness(.65); }
.du-rondas b { position: absolute; right: -1.6cqw; bottom: -1.6cqw; width: 6cqw; height: 6cqw; display: grid; place-items: center; border-radius: 50%; font-size: 3.4cqw; color: var(--blanco); --trazo: .5cqw; --sombra: .2cqw; background: linear-gradient(180deg, #B6F57A, var(--verde) 50%, var(--verde-osc) 51%); border: .45cqw solid var(--contorno); }
.du-rondas span.no b { background: linear-gradient(180deg, #FF9BA6, var(--rojo) 50%, var(--rojo-osc) 51%); }
.du-vs { display: flex; align-items: center; gap: 3cqw; }
.du-vs div { display: flex; flex-direction: column; align-items: center; min-width: 30cqw; background: linear-gradient(180deg, rgba(30,36,100,.92), rgba(16,18,52,.92)); border: .6cqw solid var(--contorno); border-radius: 4cqw; padding: 2cqw 3cqw; box-shadow: 0 .9cqw 0 var(--contorno); }
.du-vs div.gana { background: linear-gradient(180deg, #FFE36B, #FFC21A 50%, #FF9A0A 51%); box-shadow: inset 0 .6cqw 0 rgba(255,255,255,.5), 0 .9cqw 0 var(--contorno), 0 0 6cqw rgba(255,210,63,.55); }
.du-vs small { font-family: "Lilita", sans-serif; font-size: 3cqw; letter-spacing: .06em; max-width: 28cqw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--texto-suave); }
.du-vs div.gana small { color: var(--contorno); }
.du-vs b { font-size: 11cqw; line-height: 1; color: var(--blanco); --trazo: 1.2cqw; --sombra: .6cqw; }
.du-vs > span { font-family: "Lilita", sans-serif; font-size: 7cqw; color: var(--oro); -webkit-text-stroke: 1cqw var(--contorno); paint-order: stroke fill; }
.du-tabla { border-collapse: separate; border-spacing: 1.4cqw .9cqw; font-family: "Lilita", sans-serif; font-size: 4.4cqw; }
.du-tabla th { font-size: 3cqw; letter-spacing: .06em; color: var(--texto-suave); max-width: 26cqw; overflow: hidden; text-overflow: ellipsis; font-weight: 400; }
.du-tabla td { width: 11cqw; height: 10cqw; text-align: center; border-radius: 2.6cqw; border: .5cqw solid var(--contorno); }
.du-tabla td:first-child { background: linear-gradient(180deg, rgba(255,255,255,.35), transparent 50%, rgba(0,0,0,.15) 51%), var(--c); font-size: 5cqw; }
.du-tabla td.si { background: linear-gradient(180deg, #B6F57A, var(--verde) 50%, var(--verde-osc) 51%); color: var(--blanco); -webkit-text-stroke: .6cqw var(--contorno); paint-order: stroke fill; }
.du-tabla td.no { background: rgba(8,9,28,.5); color: #8C93BF; }
.du-emojis { font-size: 11cqw; letter-spacing: .1em; line-height: 1; filter: drop-shadow(0 .8cqw 0 rgba(0,0,0,.35)); }
.du-enlace { width: 100%; font: 900 max(16px, 3.4cqw) "Nunito", sans-serif; color: var(--contorno); background: #fff; border: .6cqw solid var(--contorno); border-radius: 3cqw; padding: 2cqw 3cqw; -webkit-user-select: text; user-select: text; }
.du-cuenta { font-family: "Lilita", sans-serif; font-size: 4cqw; color: var(--oro); letter-spacing: .04em; }

/* ---------- Pruebas nuevas: adivina la cifra ---------- */
.t-cifra { display: flex; flex-direction: column; align-items: center; gap: 1.6cqw; }
.t-cifra-valor { display: flex; align-items: baseline; gap: 1.8cqw; min-height: 14cqw; }
.t-cifra-valor b { font-family: "Lilita", sans-serif; font-weight: 400; font-size: 13cqw; line-height: 1; color: var(--oro);
  -webkit-text-stroke: 1.4cqw var(--contorno); paint-order: stroke fill; text-shadow: 0 .8cqw 0 var(--contorno); }
.t-cifra-valor b.late { animation: salto .18s var(--muelle); }
@keyframes salto { 0% { transform: scale(1.18); } 100% { transform: none; } }
.t-cifra-valor span { font-family: "Nunito", sans-serif; font-weight: 900; font-size: 4.4cqw; color: #E4E8FF; }
.t-cifra-fila { display: flex; align-items: center; gap: 2.4cqw; width: 100%; }
.t-cifra-mas { flex: none; width: 11cqw; height: 11cqw; border-radius: 50%; font-family: "Lilita", sans-serif; font-size: 7.6cqw; line-height: 1; color: var(--blanco);
  -webkit-text-stroke: .8cqw var(--contorno); paint-order: stroke fill; border: .6cqw solid var(--contorno); padding-bottom: .8cqw;
  background: linear-gradient(180deg, #8FD8FF, #4FB3FF 50%, #2A86F0 51%); box-shadow: inset 0 .5cqw 0 rgba(255,255,255,.5), 0 .8cqw 0 var(--contorno); }
.t-cifra-mas:active { transform: translateY(.6cqw); box-shadow: inset 0 .5cqw 0 rgba(255,255,255,.5), 0 .2cqw 0 var(--contorno); }
.t-cifra input[type="range"] { flex: 1; min-width: 0; -webkit-appearance: none; appearance: none; height: 5cqw; border-radius: 99px; margin: 0;
  border: .6cqw solid var(--contorno); background: linear-gradient(90deg, var(--oro) var(--p, 50%), rgba(8,9,28,.65) var(--p, 50%)); touch-action: none; }
.t-cifra input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 10cqw; height: 10cqw; border-radius: 50%;
  border: .7cqw solid var(--contorno); background: radial-gradient(circle at 35% 30%, #FFF6C2, #FFC21A 45%, #FF9A0A); box-shadow: 0 .7cqw 0 var(--contorno); }
.t-cifra input[type="range"]::-moz-range-thumb { width: 9cqw; height: 9cqw; border-radius: 50%;
  border: .7cqw solid var(--contorno); background: radial-gradient(circle at 35% 30%, #FFF6C2, #FFC21A 45%, #FF9A0A); }
.t-cifra-escala { display: flex; justify-content: space-between; width: 100%; padding: 0 13.4cqw; font-weight: 900; font-size: 3.4cqw; color: var(--texto-suave); }
.t-cifra.late { animation: salto .3s var(--muelle); }

/* ---------- Pruebas nuevas: une las parejas ---------- */
.t-parejas { display: grid; grid-template-columns: 1fr 1fr; gap: 2.6cqw; }
.t-col { display: flex; flex-direction: column; gap: 2cqw; }
.t-par { position: relative; display: flex; align-items: center; gap: 1.8cqw; min-height: 12cqw; text-align: left;
  font-family: "Nunito", sans-serif; font-weight: 900; font-size: 3.7cqw; line-height: 1.12; color: var(--contorno);
  padding: 1.8cqw 2.2cqw 2.4cqw; border: .6cqw solid var(--contorno); border-radius: 3cqw;
  background: linear-gradient(180deg, #FFFFFF 0%, #F1F3FF 55%, #DDE2FA 100%); box-shadow: inset 0 -.9cqw 0 #B9C1E8, 0 .9cqw 0 var(--contorno);
  transition: transform .09s, box-shadow .12s, background .2s; }
.t-col-d .t-par { flex-direction: row-reverse; text-align: right; }
.t-par b { flex: none; width: 5.4cqw; height: 5.4cqw; border-radius: 50%; border: .5cqw solid var(--contorno); background: #C9CFEE; transition: background .2s, transform .2s; }
.t-par.elegida { outline: 1cqw solid var(--oro); outline-offset: .3cqw; transform: translateY(-.6cqw) scale(1.03); }
.t-par.elegida b { background: var(--oro); animation: latido .6s infinite; }
.t-par[data-c="0"] { --pc: #4FB3FF; } .t-par[data-c="1"] { --pc: #A77BFF; } .t-par[data-c="2"] { --pc: #FF8A1F; }
.t-par[data-c="3"] { --pc: #3FBF26; } .t-par[data-c="4"] { --pc: #FF5C9E; }
.t-par.unida { background: linear-gradient(180deg, #FFFFFF, color-mix(in srgb, var(--pc) 30%, #FFFFFF)); box-shadow: inset 0 -.9cqw 0 color-mix(in srgb, var(--pc) 70%, #000000), 0 .9cqw 0 var(--contorno); }
.t-par.unida b { background: var(--pc); transform: scale(1.15); box-shadow: inset 0 .4cqw 0 rgba(255,255,255,.5); }
.t-par.fija { border-style: dashed; }

/* ---------- Pruebas nuevas: forma la palabra ---------- */
.t-letras { display: flex; flex-direction: column; align-items: center; gap: 3.4cqw; }
.t-huecos { display: flex; justify-content: center; gap: 1.4cqw; width: 100%; }
.t-hueco { flex: 0 1 10cqw; min-width: 0; aspect-ratio: 1 / 1.18; border-radius: 2.4cqw; border: .55cqw dashed rgba(228,232,255,.55); background: rgba(8,9,28,.45);
  font-family: "Lilita", sans-serif; font-size: 6.6cqw; color: var(--contorno); display: grid; place-items: center; padding-bottom: .4cqw; }
.t-hueco.llena { border: .6cqw solid var(--contorno); background: linear-gradient(180deg, #FFFFFF, #F1F3FF 55%, #DDE2FA); box-shadow: inset 0 -.8cqw 0 #B9C1E8, 0 .7cqw 0 var(--contorno); animation: pop .22s var(--muelle); }
.t-hueco.fija { background: linear-gradient(180deg, #FFF6C2, #FFE36B 55%, #FFC21A); box-shadow: inset 0 -.8cqw 0 #D98A0A, 0 .7cqw 0 var(--contorno); }
.t-monton { display: flex; flex-wrap: wrap; justify-content: center; gap: 2cqw; max-width: 88cqw; }
.t-ficha { width: 11.4cqw; height: 12cqw; border-radius: 2.8cqw; border: .6cqw solid var(--contorno);
  font-family: "Lilita", sans-serif; font-size: 7cqw; color: var(--blanco); -webkit-text-stroke: .8cqw var(--contorno); paint-order: stroke fill; padding-bottom: .6cqw;
  background: linear-gradient(180deg, #FFE36B 0%, #FFC21A 48%, #FF9A0A 52%); box-shadow: inset 0 .5cqw 0 rgba(255,255,255,.55), inset 0 -.9cqw 0 #B4520A, 0 .8cqw 0 var(--contorno);
  transition: transform .1s, opacity .2s; }
.t-ficha:active { transform: translateY(.7cqw); }
.t-ficha.usada { opacity: .2; transform: scale(.86); box-shadow: none; }
.t-ficha.fuera { display: none; }

/* ---------- Pruebas nuevas: ráfaga de verdad o mito ---------- */
.t-rafaga { display: flex; flex-direction: column; gap: 1.8cqw; }
.t-rf { display: flex; align-items: center; gap: 1.8cqw; padding: 1.6cqw 1.6cqw 1.6cqw 3cqw; border-radius: 3.4cqw;
  background: rgba(8,9,28,.42); border: .45cqw solid rgba(228,232,255,.18); }
.t-rf p { flex: 1; font-weight: 900; font-size: 3.8cqw; line-height: 1.18; color: var(--blanco); }
.t-rf-btn { flex: none; width: 11cqw; height: 11cqw; border-radius: 3cqw; border: .6cqw solid var(--contorno);
  font-family: "Lilita", sans-serif; font-size: 6cqw; color: var(--blanco); -webkit-text-stroke: .7cqw var(--contorno); paint-order: stroke fill;
  transition: transform .1s, opacity .2s, filter .2s; }
.t-rf-btn.mito { background: linear-gradient(180deg, #FF9BA6, var(--rojo) 50%, #E8293F 51%); box-shadow: inset 0 .5cqw 0 rgba(255,255,255,.5), 0 .8cqw 0 var(--contorno); }
.t-rf-btn.verdad { background: linear-gradient(180deg, #B6F57A, var(--verde) 50%, #3FBF26 51%); box-shadow: inset 0 .5cqw 0 rgba(255,255,255,.5), 0 .8cqw 0 var(--contorno); }
.t-rf-btn.elegida { outline: .9cqw solid var(--oro); outline-offset: .3cqw; transform: scale(1.08); }
.t-rf.hecha .t-rf-btn:not(.elegida) { opacity: .35; filter: saturate(.4); }
.t-rf.hecha { border-color: rgba(255,210,63,.45); }
.t-rf.fija { border-style: dashed; border-color: var(--oro); }
.t-rf-res { display: flex; flex-direction: column; gap: 1cqw; text-align: left; margin-bottom: 1.4cqw; }
.t-rf-res i { display: flex; align-items: center; gap: 1.6cqw; font-style: normal; font-size: 3.4cqw; line-height: 1.2; }
.t-rf-res i.si { color: #C9F7A8; } .t-rf-res i.no { color: #FFB3BD; }
.t-rf-res i b { flex: none; margin-left: auto; font-size: .86em; padding: 0 1.2cqw; border-radius: 99px; background: rgba(255,255,255,.12); color: var(--oro); white-space: nowrap; }

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