/* ============================================================================
 * EL GRAN DESAFÍO DEL CUERPO HUMANO · estilo
 * Noche azul de laboratorio, láminas de papel y tarjetas de colores.
 * ========================================================================== */
@font-face { font-family: 'Baloo 2'; font-weight: 600; font-display: swap; src: url('fuentes/baloo-2-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Baloo 2'; font-weight: 800; font-display: swap; src: url('fuentes/baloo-2-latin-800-normal.woff2') format('woff2'); }

:root {
  --noche: #101834;
  --noche2: #1b2b5a;
  --panel: rgba(255, 255, 255, .07);
  --panel2: rgba(255, 255, 255, .12);
  --linea: rgba(255, 255, 255, .14);
  --tinta: #f6f4ff;
  --suave: #b3bde3;
  --papel: #fffdf6;
  --tinta-papel: #1d2140;
  --oro: #ffcd3c;
  --verde: #22b46a;
  --rojo: #e5484d;
  --azul: #3b82f6;
  --c: #ffcd3c;
  --radio: 18px;
  --sombra: 0 6px 0 rgba(0, 0, 0, .28);
  --fuente: 'Baloo 2', 'Nunito', 'Trebuchet MS', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  font-family: var(--fuente); font-weight: 600; color: var(--tinta);
  background-color: var(--noche);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' fill='none' stroke='%23ffffff' stroke-opacity='.05' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M30 22v16M22 30h16M90 82v16M82 90h16'/%3E%3C/svg%3E"),
    radial-gradient(120% 70% at 50% -10%, #2c4a92 0%, var(--noche2) 38%, var(--noche) 75%);
  background-attachment: fixed;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
button, input, select { font-family: inherit; font-weight: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
a { color: var(--oro); }

.vista { max-width: 560px; margin: 0 auto; padding: max(14px, env(safe-area-inset-top)) 16px max(18px, env(safe-area-inset-bottom)); }

/* ── Botones ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 14px; padding: 12px 20px; font-size: 18px; font-weight: 800; text-decoration: none;
  background: var(--panel2); color: var(--tinta); box-shadow: var(--sombra); transition: transform .08s, box-shadow .08s;
}
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 rgba(0, 0, 0, .28); }
.btn:disabled { opacity: .6; }
.btn.grande { width: 100%; padding: 16px 20px; font-size: 22px; }
.btn.chico { padding: 8px 14px; font-size: 15px; border-radius: 12px; }
.btn.oro { background: var(--oro); color: #2a1f00; }
.btn.color { background: var(--c); color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .2); }
.btn.azul { background: var(--azul); color: #fff; }
.btn.gris { background: var(--panel2); }
.btn-txt { background: none; border: 0; color: var(--suave); font-size: 15px; text-decoration: underline; text-underline-offset: 3px; padding: 6px; }

/* ── Hojas ───────────────────────────────────────────────────────────── */
.hoja { position: relative; padding-top: 4px; animation: aparece .25s both; }
.hoja h2 { margin: 6px 0 6px; font-size: 28px; font-weight: 800; line-height: 1.1; padding-left: 50px; min-height: 40px; display: flex; align-items: center; }
.hoja h3 { margin: 22px 0 8px; font-size: 18px; color: var(--suave); }
.volver { position: absolute; left: 0; top: 4px; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--linea); background: var(--panel); font-size: 22px; line-height: 1; }
.nota { color: var(--suave); font-size: 15px; line-height: 1.4; margin: 6px 0 12px; }
.nota.alerta { color: #ffe08a; }
form label { display: block; margin: 12px 0; font-size: 15px; color: var(--suave); }
form label small { color: rgba(255, 255, 255, .5); }
form input { display: block; width: 100%; margin-top: 4px; padding: 12px 14px; font-size: 22px; letter-spacing: .04em; border-radius: 14px;
  border: 2px solid var(--linea); background: rgba(0, 0, 0, .25); color: #fff; outline: none; }
form input:focus { border-color: var(--oro); }
.error { color: #ff9a9d; min-height: 1.2em; font-size: 15px; margin: 6px 0 12px; }
.separa { text-align: center; color: var(--suave); margin: 22px 0 10px; font-size: 14px; }
.hoja > .btn.gris { width: 100%; }

/* ── Portada ─────────────────────────────────────────────────────────── */
.portada { padding: 8px 0 4px; }
.titulo { display: flex; align-items: center; gap: 12px; }
.logo { flex: none; width: 84px; height: 84px; border-radius: 24px; background: linear-gradient(160deg, #ff8a8f, #e5484d); box-shadow: var(--sombra); display: grid; place-items: center; }
.logo svg { width: 66px; height: 66px; animation: latido 1.6s ease-in-out infinite; }
.sobre { margin: 0; font-size: 16px; color: var(--oro); letter-spacing: .06em; text-transform: uppercase; line-height: 1; }
.portada h1 { margin: 0; font-size: clamp(30px, 9vw, 42px); font-weight: 800; line-height: .95; background: linear-gradient(180deg, #fff 40%, #ffc9cb);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.lema { margin: 4px 0 0; font-size: 15px; color: var(--suave); }
.cuenta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 14px 0 8px; padding: 10px 12px; background: var(--panel); border: 1px solid var(--linea); border-radius: var(--radio); }
.cuenta .yo { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; min-width: 0; }
.cuenta .yo b { font-size: 18px; } .cuenta .yo span:not(.casa) { color: var(--suave); font-size: 14px; }
.casa { display: inline-flex; align-items: center; font-size: 12px; font-weight: 800; letter-spacing: .05em; padding: 1px 9px 0; border-radius: 99px; background: var(--c); color: #fff;
  text-shadow: 0 1px 0 rgba(0,0,0,.25); line-height: 20px; }
.semana { display: flex; flex-direction: column; gap: 1px; padding: 9px 12px; border-radius: 14px; background: rgba(34,160,107,.18); border: 1px solid rgba(34,160,107,.45); margin: 0 0 8px; }
.semana b { font-size: 15px; } .semana span { font-size: 13px; color: var(--suave); }
.semana.pausa { background: rgba(255,205,60,.14); border-color: rgba(255,205,60,.45); }
.sinc { display: none; font-size: 14px; padding: 7px 12px; border-radius: 12px; margin: 0 0 6px; }
.sinc.ver { display: block; } .sinc.ok { color: #9be7bd; background: rgba(34,180,106,.12); } .sinc.pend { color: #ffe08a; background: rgba(255,205,60,.12); }
.sinc button { margin-left: 6px; border: 0; border-radius: 8px; background: var(--oro); color: #2a1f00; font-weight: 800; font-size: 13px; padding: 2px 10px; }
h2.sub { margin: 16px 0 10px; font-size: 20px; color: var(--suave); font-weight: 800; }
.temas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.tema { position: relative; text-align: left; border: 0; border-radius: var(--radio); padding: 12px 12px 10px; min-height: 124px; color: #fff; display: flex; flex-direction: column; gap: 2px;
  background: linear-gradient(165deg, color-mix(in srgb, var(--c) 86%, #fff), var(--c)); box-shadow: 0 6px 0 color-mix(in srgb, var(--c) 58%, #000);
  animation: aparece .35s calc(var(--i) * 40ms) both; transition: transform .08s, box-shadow .08s; overflow: hidden; }
@supports not (background: color-mix(in srgb, red 50%, blue)) { .tema { background: var(--c); box-shadow: var(--sombra); } }
.tema:active { transform: translateY(4px); box-shadow: 0 2px 0 rgba(0,0,0,.3); }
.tema .ico { width: 40px; height: 40px; }
.tema .ico svg { width: 40px; height: 40px; display: block; filter: drop-shadow(0 2px 0 rgba(0,0,0,.15)); }
.tema .nom { font-size: 19px; font-weight: 800; line-height: 1.05; text-shadow: 0 2px 0 rgba(0,0,0,.18); margin-top: 4px; }
.tema .mar { margin-top: auto; font-size: 13px; opacity: .95; padding-top: 4px; }
.tema::after { content: ''; position: absolute; right: -18px; top: -18px; width: 70px; height: 70px; border-radius: 50%; background: rgba(255,255,255,.14); }
.tema.t-todo { grid-column: 1 / -1; min-height: 100px; background: linear-gradient(120deg, #d48a1f, #e5484d 35%, #8b5cf6 70%, #1f9d61); box-shadow: 0 6px 0 #5b2c86; }
.tema.t-inicial { grid-column: 1 / -1; min-height: 96px; background: linear-gradient(120deg, #ff9ec3, #ec5f9a 55%, #ffb648); box-shadow: 0 6px 0 #a83467; }
.tema.t-todo .ico, .tema.t-inicial .ico { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 58px; height: 58px; }
.tema.t-todo .ico svg, .tema.t-inicial .ico svg { width: 58px; height: 58px; }
.pie { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 18px 0 10px; }
.pie button { border: 1px solid var(--linea); background: var(--panel); border-radius: 14px; padding: 8px 4px; font-size: 13px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.pie button span { font-size: 22px; line-height: 1.1; }
.extra { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 12px; margin-top: 6px; }
.extra.otros .btn-txt { font-size: 14px; padding: 4px; }
.version { text-align: center; color: rgba(255,255,255,.35); font-size: 12px; margin: 14px 0 0; }

/* ── Antes de jugar ──────────────────────────────────────────────────── */
.previa { text-align: center; } .previa h2 { justify-content: center; padding: 0; }
.previa-ico { width: 104px; height: 104px; margin: 10px auto 4px; border-radius: 30px; background: var(--c); display: grid; place-items: center; box-shadow: var(--sombra); }
.previa-ico svg { width: 70px; height: 70px; }
.reglas { text-align: left; margin: 10px 0 12px; padding: 12px 14px 12px 34px; background: var(--panel); border-radius: var(--radio); font-size: 16px; line-height: 1.4; }
.reglas li { margin: 4px 0; }
.tu-marca { margin: 0 0 14px; color: var(--suave); } .tu-marca b { color: #fff; }
.interruptor { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 14px; color: var(--suave); font-size: 15px; }
.interruptor input { width: 20px; height: 20px; accent-color: var(--c); }
.cuenta-atras { min-height: 80vh; display: grid; place-items: center; }
.cuenta-atras span { font-size: 160px; font-weight: 800; color: var(--c); text-shadow: 0 8px 0 rgba(0,0,0,.3); animation: late .65s both; }

/* ── La partida ──────────────────────────────────────────────────────── */
body[data-vista="juego"] .vista { padding: max(8px, env(safe-area-inset-top)) 12px max(8px, env(safe-area-inset-bottom)); }
.juego { display: flex; flex-direction: column; height: calc(100dvh - 16px); min-height: 480px; gap: 7px; }
.tablero { display: grid; grid-template-columns: 44px auto 1fr auto; align-items: center; gap: 10px; flex: none; }
.j-salir { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--linea); background: var(--panel); font-size: 18px; }
.vidas { font-size: 22px; letter-spacing: 1px; line-height: 1; white-space: nowrap; }
.vidas i { font-style: normal; color: #ff5a62; text-shadow: 0 2px 0 rgba(0,0,0,.3); }
.vidas i.no { color: rgba(255,255,255,.18); text-shadow: none; animation: pierde .4s; }
.crono { justify-self: center; font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; background: rgba(0,0,0,.3); border: 2px solid var(--linea);
  border-radius: 14px; padding: 6px 12px 2px; min-width: 104px; text-align: center; }
.cuenta-ac { display: flex; align-items: baseline; background: var(--oro); color: #2a1f00; border-radius: 14px; padding: 4px 10px 1px; line-height: 1; box-shadow: var(--sombra); }
.cuenta-ac b { font-size: 26px; } .cuenta-ac small { font-size: 14px; }
.barra { height: 8px; border-radius: 99px; background: rgba(255,255,255,.12); overflow: hidden; flex: none; }
.barra i { display: block; height: 100%; width: 100%; background: var(--c); border-radius: 99px; }
.barra i.poco { background: var(--rojo); }
.estado { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; flex: none; min-height: 22px; }
.nivel { background: var(--c); color: #fff; border-radius: 99px; padding: 1px 12px 0; font-weight: 800; text-shadow: 0 1px 0 rgba(0,0,0,.25); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nivel.sube { animation: sube-n 1.4s ease-out; }
@keyframes sube-n { 0% { transform: scale(.6); } 20% { transform: scale(1.25); box-shadow: 0 0 0 6px rgba(255,205,60,.5); } 100% { transform: scale(1); } }
.tipo { color: var(--suave); white-space: nowrap; transition: color .2s; }
.tipo.ojo { color: #ffe08a; }
.pregunta { position: relative; flex: none; min-height: 64px; display: flex; align-items: center; justify-content: center; background: var(--papel); color: var(--tinta-papel);
  border-radius: 20px; box-shadow: 0 5px 0 rgba(0,0,0,.3); padding: 10px 14px; text-align: center; }
.enun { font-size: clamp(20px, 5.8vw, 26px); font-weight: 800; line-height: 1.18; }
.enun b { color: color-mix(in srgb, var(--c) 78%, #000); }
.juego.tipo-F .pregunta { flex: 1; min-height: 150px; }
.juego.tipo-F .enun { font-size: clamp(23px, 6.6vw, 31px); }
.juego.tipo-F .dibujo { display: none; }
.repetir { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--c); color: #fff; font-size: 22px; box-shadow: 0 3px 0 rgba(0,0,0,.25); }
.ini .pregunta { padding-right: 62px; }
.dibujo { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; background: var(--papel); border-radius: 20px; box-shadow: 0 5px 0 rgba(0,0,0,.3); padding: 6px; overflow: hidden; touch-action: manipulation; }
.dibujo .lam { width: 100%; height: 100%; display: block; }
.ops { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; flex: none; }
.juego.tipo-T .ops, .juego.tipo-S .ops { display: none; }
.op { position: relative; min-height: 64px; border: 0; border-radius: 16px; background: #fff; color: var(--tinta-papel); font-size: 19px; font-weight: 800; line-height: 1.12;
  box-shadow: 0 5px 0 rgba(0,0,0,.3); display: grid; place-items: center; padding: 6px 10px 4px 28px; transition: transform .08s, background .15s, opacity .15s; }
.op small { position: absolute; left: 7px; top: 7px; width: 19px; height: 19px; border-radius: 6px; background: var(--c); color: #fff; font-size: 12px; line-height: 20px; }
.op.t-s { font-size: 16px; } .op.t-xs { font-size: 14px; }
.ops:not(.listo) .op:not(.bien):not(.mal):not(.era) { opacity: .75; }
.op:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 2px 0 rgba(0,0,0,.3); }
.op.bien { background: var(--verde); color: #fff; animation: pulso .3s; }
.op.mal { background: var(--rojo); color: #fff; }
.op.era { box-shadow: 0 0 0 4px var(--verde), 0 5px 0 rgba(0,0,0,.3); }

/* Las láminas */
.lam [data-p] { transition: opacity .2s; }
.lam.tocar [data-p] { cursor: pointer; }
.lam.con-marca [data-p]:not(.marca) { opacity: .28; }
.lam .marca { filter: drop-shadow(0 0 3px #ffb100) drop-shadow(0 0 6px #ffb100); animation: brillo 1.1s ease-in-out infinite; }
.lam .ok { filter: drop-shadow(0 0 3px #16a34a) drop-shadow(0 0 7px #22c55e); }
.lam .no { filter: drop-shadow(0 0 3px #e5484d) drop-shadow(0 0 6px #e5484d); }
.lam.con-era [data-p]:not(.era):not(.no) { opacity: .3; }
.lam .era { filter: drop-shadow(0 0 3px #16a34a) drop-shadow(0 0 7px #22c55e); animation: brillo-v .7s ease-in-out infinite; }
.lam text { font-family: var(--fuente); }
@keyframes brillo { 50% { filter: drop-shadow(0 0 5px #ffb100) drop-shadow(0 0 12px #ffcd3c) brightness(1.15); } }
@keyframes brillo-v { 50% { filter: drop-shadow(0 0 5px #16a34a) drop-shadow(0 0 12px #4ade80) brightness(1.12); } }

/* Inicial: todo más grande */
.ini .enun { font-size: clamp(24px, 7vw, 32px); }
.ini .vidas { font-size: 26px; }

/* ── Fin ─────────────────────────────────────────────────────────────── */
.fin-cab { display: flex; align-items: center; gap: 14px; margin-top: 4px; }
.fin-cab h2 { padding: 0; margin: 0; font-size: 32px; }
.fin-ico { width: 84px; height: 84px; border-radius: 22px; background: var(--c); display: grid; place-items: center; font-size: 46px; box-shadow: var(--sombra); flex: none; }
.fin-ico svg { width: 58px; height: 58px; }
.estrellas { text-align: center; font-size: 46px; margin: 10px 0 0; letter-spacing: 6px; animation: late .6s both; min-height: 10px; }
.cifras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0 10px; }
.cifras div { background: var(--panel); border: 1px solid var(--linea); border-radius: var(--radio); padding: 10px 6px 8px; text-align: center; }
.cifras b { display: block; font-size: 32px; font-weight: 800; line-height: 1.05; font-variant-numeric: tabular-nums; }
.cifras b small { font-size: 16px; color: var(--suave); }
.cifras div:first-child b { color: #ffe08a; }
.cifras span { font-size: 13px; color: var(--suave); line-height: 1.15; display: block; }
.record { text-align: center; font-size: 22px; font-weight: 800; color: var(--oro); margin: 8px 0; animation: pulso .6s 2; }
.estado-sinc { text-align: center; font-size: 15px; color: var(--suave); background: rgba(0, 0, 0, .2); border-radius: 12px; padding: 8px 12px; margin: 10px 0; }
.estado-sinc:empty { display: none; }
.estado-sinc.bien { color: #9be7bd; }
.estado-sinc.mal { color: #ff9a9d; }
.casa-gana { text-align: center; font-size: 15px; background: var(--panel); border-radius: 12px; padding: 8px 12px; }
.repaso { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.repaso li { background: var(--papel); color: var(--tinta-papel); border-radius: 14px; padding: 8px 12px; display: flex; align-items: center; gap: 12px; }
.repaso .mini { flex: none; width: 92px; height: 92px; display: grid; place-items: center; background: #fff; border-radius: 10px; }
.repaso .mini svg { width: 100%; height: 100%; }
.repaso .rtxt { font-size: 17px; font-weight: 600; line-height: 1.25; }
.repaso .rtxt b { color: #0b6b52; }
.botones { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.botones .grande { grid-column: 1 / -1; }

/* ── Rankings ────────────────────────────────────────────────────────── */
.pestanas { display: flex; gap: 8px; overflow-x: auto; padding: 4px 16px 10px; margin: 4px -16px 0; scrollbar-width: none; }
.pestanas::-webkit-scrollbar { display: none; }
.pestanas button { flex: none; display: inline-flex; align-items: center; gap: 6px; border: 2px solid var(--linea); background: var(--panel); border-radius: 99px; padding: 3px 14px 1px 6px; font-size: 15px; white-space: nowrap; }
.pestanas .pi { width: 24px; height: 24px; border-radius: 50%; background: var(--c); display: grid; place-items: center; }
.pestanas .pi svg { width: 18px; height: 18px; }
.pestanas button.si { background: var(--c); border-color: var(--c); color: #fff; font-weight: 800; text-shadow: 0 1px 0 rgba(0, 0, 0, .25); }
.filtros { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.seg { display: inline-flex; background: rgba(0, 0, 0, .25); border-radius: 12px; padding: 3px; }
.seg button { border: 0; background: none; padding: 6px 12px 4px; border-radius: 9px; font-size: 15px; color: var(--suave); }
.seg button.si { background: var(--panel2); color: #fff; font-weight: 800; }
.filtros select { flex: 1; min-width: 130px; background: rgba(0, 0, 0, .25); border: 1px solid var(--linea); border-radius: 12px; padding: 8px 10px; font-size: 15px; }
.filtros select option { background: var(--noche2); }
.rk-lista ol, .podio ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rk-lista li { display: grid; grid-template-columns: 34px 1fr 12px auto 42px; align-items: center; gap: 8px; background: var(--panel); border-radius: 12px; padding: 7px 10px; }
.podio li { display: grid; grid-template-columns: 28px 1fr auto auto auto; align-items: center; gap: 8px; border-radius: 12px; padding: 7px 10px; background: rgba(0, 0, 0, .18); }
.rk-lista li.yo { background: rgba(255, 205, 60, .22); outline: 2px solid var(--oro); }
.pu { font-weight: 800; font-size: 18px; text-align: center; color: var(--suave); }
li.p1 .pu, li.p2 .pu, li.p3 .pu { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #2a1f00; font-size: 16px; }
li.p1 .pu { background: radial-gradient(circle at 35% 30%, #fff1a6, #d9a514); }
li.p2 .pu { background: radial-gradient(circle at 35% 30%, #fff, #9aa3b2); }
li.p3 .pu { background: radial-gradient(circle at 35% 30%, #f3b27a, #b0672a); }
.qn { min-width: 0; display: flex; flex-direction: column; line-height: 1.1; }
.qn b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qn small { color: var(--suave); font-size: 12px; }
.pto { width: 12px; height: 12px; border-radius: 50%; background: var(--c); }
.pto.no { background: none; }
.ac { font-size: 15px; white-space: nowrap; font-variant-numeric: tabular-nums; text-align: right; display: flex; flex-direction: column; line-height: 1.05; }
.ac b { font-size: 19px; }
.ac small { font-size: 12px; color: var(--suave); }
.gana { color: var(--oro); font-weight: 800; text-align: right; font-size: 15px; }
.tu { margin: 14px 0 6px; color: var(--suave); font-size: 14px; }
.vacio, .cargando { text-align: center; color: var(--suave); padding: 30px 10px; }

/* ── Casas ───────────────────────────────────────────────────────────── */
.cs-tarjetas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cs-t { position: relative; border-radius: var(--radio); padding: 12px; background: var(--c); color: #fff; box-shadow: var(--sombra); display: flex; flex-direction: column; gap: 2px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .25); overflow: hidden; }
.cs-t.mia { outline: 3px solid #fff; }
.cs-pu { position: absolute; right: 10px; top: 6px; font-size: 34px; font-weight: 800; opacity: .35; }
.cs-n { font-size: 22px; letter-spacing: .05em; }
.cs-p b { font-size: 26px; }
.cs-t small { font-size: 12px; opacity: .9; line-height: 1.2; }
.cs-t em { font-style: normal; font-size: 12px; background: rgba(255, 255, 255, .25); border-radius: 99px; padding: 0 8px; align-self: flex-start; margin-top: 4px; }
.podio { background: var(--panel); border-radius: var(--radio); margin: 8px 0; padding: 4px 12px; border-left: 6px solid var(--c); }
.podio summary { cursor: pointer; font-size: 17px; font-weight: 800; padding: 8px 0; }
.podio .casa { font-size: 10px; }
.mas { color: var(--oro); font-weight: 800; }
.podio ol { margin-bottom: 8px; }
.podio .ac { flex-direction: row; }

/* ── Ayuda ───────────────────────────────────────────────────────────── */
.pasos { padding-left: 22px; font-size: 16px; line-height: 1.45; }
.pasos li { margin: 8px 0; }

/* ── Aviso ───────────────────────────────────────────────────────────── */
.aviso { visibility: hidden; position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translate(-50%, 150%); background: var(--papel); color: var(--tinta-papel);
  padding: 10px 18px; border-radius: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); font-size: 16px; max-width: calc(100% - 32px); transition: transform .3s, visibility .3s; z-index: 50; text-align: center; }
.aviso.ver { transform: translate(-50%, 0); visibility: visible; }
.aviso.bien { border-left: 6px solid var(--verde); }
.aviso.mal { border-left: 6px solid var(--rojo); }
body[data-vista="juego"] .aviso { top: max(64px, env(safe-area-inset-top)); bottom: auto; transform: translate(-50%, -300%); }
body[data-vista="juego"] .aviso.ver { transform: translate(-50%, 0); }

/* ── Animaciones ─────────────────────────────────────────────────────── */
@keyframes aparece { from { opacity: 0; transform: translateY(8px); } }
@keyframes late { 0% { transform: scale(.4); opacity: 0; } 40% { transform: scale(1.15); opacity: 1; } 100% { transform: scale(1); opacity: .9; } }
@keyframes pulso { 50% { transform: scale(1.08); } }
@keyframes pierde { 40% { transform: scale(1.6); } }
@keyframes latido { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.07); } 24% { transform: scale(1); } 36% { transform: scale(1.05); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

@media (max-height: 640px) {
  .crono { font-size: 24px; min-width: 88px; }
  .op { min-height: 54px; font-size: 17px; }
  .pregunta { min-height: 52px; }
  .enun { font-size: clamp(18px, 5vw, 22px); }
}
@media (min-width: 700px) { .vista { padding-top: 28px; } }
