/* ============================================================================
 * EL GRAN DESAFÍO MATEMÁTICO · estilo
 * Noche andina, tiza de colores y números grandes que se leen de lejos.
 * ========================================================================== */
@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: #10143a;
  --noche2: #1c2366;
  --panel: rgba(255, 255, 255, .07);
  --panel2: rgba(255, 255, 255, .12);
  --linea: rgba(255, 255, 255, .14);
  --tinta: #f7f5ff;
  --suave: #b8bde6;
  --papel: #fffdf6;
  --tinta-papel: #1b1d3a;
  --oro: #f2c230;
  --oro2: #c99a0e;
  --verde: #22b46a;
  --rojo: #e5484d;
  --azul: #3b82f6;
  --c: #f2c230;
  --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='220' height='220' fill='none' stroke='%23ffffff' stroke-opacity='.05' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M30 40h24M42 28v24M150 30l18 18M168 30l-18 18M90 110h26M103 98h0M103 122h0M170 150h22M40 160l8 8 14-26h18M120 190q10-14 20 0t20 0'/%3E%3C/svg%3E"),
    radial-gradient(120% 70% at 50% -10%, #343b9a 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); }
sup { font-size: .55em; vertical-align: super; line-height: 0; }

.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; }

/* ── Portada ─────────────────────────────────────────────────────────── */
.portada { position: relative; padding: 8px 0 6px; }
.titulo { display: flex; align-items: center; gap: 12px; }
.kk-caja { flex: none; width: 84px; height: 84px; border-radius: 22px; background: linear-gradient(160deg, #7cc6ff, #d8f1ff); display: grid; place-items: center;
  box-shadow: inset 0 -10px 0 rgba(0, 0, 0, .08), var(--sombra); overflow: hidden; position: relative; }
.kk-caja::after { content: ''; position: absolute; left: -10%; right: -10%; bottom: -6px; height: 26px; background: #5cbf4f; border-radius: 50% 50% 0 0; }
.kk-sprite { width: 64px; height: 64px; image-rendering: pixelated; image-rendering: crisp-edges; position: relative; z-index: 1; }
.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(34px, 10vw, 46px); font-weight: 800; line-height: .95; letter-spacing: -.01em;
  background: linear-gradient(180deg, #fff 40%, #ffe48a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lema { margin: 4px 0 0; font-size: 16px; color: var(--suave); }
.lema::before { content: '«'; } .lema::after { content: '»'; }
.globo { position: relative; margin: 12px 0 0 6px; display: inline-block; background: var(--papel); color: var(--tinta-papel); padding: 6px 14px;
  border-radius: 14px; font-size: 15px; box-shadow: var(--sombra); animation: aparece .5s .2s both; }
.globo::before { content: ''; position: absolute; top: -8px; left: 28px; border: 8px solid transparent; border-top: 0; border-bottom-color: var(--papel); }

.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); }
.yo { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; min-width: 0; }
.yo b { font-size: 18px; }
.yo span:not(.casa) { color: var(--suave); font-size: 14px; }
.casa { display: inline-flex; align-items: center; gap: 5px; 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; }
.casa.grande { font-size: 15px; line-height: 26px; }

.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(242, 194, 48, .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: 118px;
  background: linear-gradient(165deg, color-mix(in srgb, var(--c) 92%, #fff), var(--c)); color: #fff;
  box-shadow: 0 6px 0 color-mix(in srgb, var(--c) 60%, #000); display: flex; flex-direction: column; gap: 2px;
  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 { font-size: 34px; font-weight: 800; line-height: 1; text-shadow: 0 3px 0 rgba(0, 0, 0, .18); height: 38px; }
.tema .nom { font-size: 19px; font-weight: 800; line-height: 1.05; text-shadow: 0 2px 0 rgba(0, 0, 0, .18); }
.tema .mar { margin-top: auto; font-size: 13px; opacity: .92; }
.tema .mar b { font-size: 15px; }
.tema::after { content: ''; position: absolute; right: -18px; top: -18px; width: 70px; height: 70px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.tema.todo { grid-column: 1 / -1; min-height: 96px; color: #2a1f00; background: linear-gradient(120deg, #ffd84d, #f2a830 60%, #f27a30);
  box-shadow: 0 6px 0 #a5620d; }
.tema.todo .nom, .tema.todo .ico { text-shadow: none; }
.tema .med { position: absolute; right: 10px; top: 10px; z-index: 1; }

.med { display: inline-block; width: 26px; height: 26px; border-radius: 50%; position: relative; box-shadow: 0 2px 0 rgba(0, 0, 0, .3), inset 0 -3px 0 rgba(0, 0, 0, .15); }
.med::after { content: '★'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 14px; color: rgba(255, 255, 255, .9); text-shadow: 0 1px 0 rgba(0, 0, 0, .3); }
.med.bronce { background: radial-gradient(circle at 35% 30%, #f3b27a, #b0672a); }
.med.plata  { background: radial-gradient(circle at 35% 30%, #ffffff, #9aa3b2); }
.med.oro    { background: radial-gradient(circle at 35% 30%, #fff1a6, #d9a514); }

.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: 10px; margin-top: 6px; }
.version { text-align: center; color: rgba(255, 255, 255, .35); font-size: 12px; margin: 14px 0 0; }

/* ── Hojas (entrar, previa, fin, rankings…) ──────────────────────────── */
.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; }
.nota.centro { text-align: center; }
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%; }

.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; font-size: 56px; font-weight: 800;
  color: #fff; text-shadow: 0 3px 0 rgba(0, 0, 0, .2); box-shadow: var(--sombra); }
.reglas { text-align: left; margin: 10px 0 14px; 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; }

.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; }

/* ── El juego ────────────────────────────────────────────────────────── */
body[data-vista="juego"] .vista { padding-top: max(10px, env(safe-area-inset-top)); }
.juego { display: flex; flex-direction: column; min-height: calc(100dvh - 28px); gap: 10px; position: relative; }
.tablero { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 10px; }
.j-salir { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--linea); background: var(--panel); font-size: 18px; }
.crono { justify-self: center; font-size: 40px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: .02em; line-height: 1;
  background: rgba(0, 0, 0, .3); border: 2px solid var(--linea); border-radius: 14px; padding: 6px 16px 2px; min-width: 150px; text-align: center; }
.vidas { display: flex; gap: 3px; }
.vidas i { width: 26px; height: 24px; font-style: normal; display: grid; place-items: center; }
.vidas i::before { content: '♥'; font-size: 26px; color: var(--rojo); text-shadow: 0 2px 0 rgba(0, 0, 0, .3); transition: .3s; }
.vidas i.ida::before { color: rgba(255, 255, 255, .18); text-shadow: none; }
.vidas i.ida { animation: pierde .45s; }
.estado { display: flex; justify-content: space-between; align-items: center; font-size: 16px; }
.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); }
.acier { color: var(--suave); }
.acier b { color: #fff; font-size: 22px; }
.acier.pulso b { display: inline-block; animation: pulso .3s; }
.limite { height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.limite i { display: block; height: 100%; background: var(--c); transform-origin: left; border-radius: 99px; }
.limite i.poco { background: var(--rojo); }

.pregunta { flex: 1; min-height: 150px; display: grid; place-items: center; background: var(--papel); color: var(--tinta-papel); border-radius: 24px;
  box-shadow: 0 8px 0 rgba(0, 0, 0, .3); padding: 18px 14px; position: relative; text-align: center; }
.enun { font-size: clamp(46px, 14vw, 72px); font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; }
.enun.t-m { font-size: clamp(40px, 11vw, 60px); }
.enun.t-s { font-size: clamp(32px, 9vw, 48px); }
.enun.t-xs { font-size: clamp(26px, 7vw, 38px); }
.enun.t-f, .enun.t-fl { font-size: clamp(38px, 11vw, 58px); }
.pregunta.k-primo .enun, .pregunta.k-divisible .enun { font-size: clamp(28px, 8vw, 40px); }
.enun b { color: var(--c); filter: brightness(.85); }
.enun .pide { display: block; font-size: 18px; color: #7a7d9c; font-weight: 600; margin-top: 2px; }

.ops { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.op { position: relative; min-height: 92px; border: 0; border-radius: 20px; background: #fff; color: var(--tinta-papel); font-size: 36px; font-weight: 800;
  box-shadow: 0 6px 0 rgba(0, 0, 0, .3); display: grid; place-items: center; padding: 8px 10px; font-variant-numeric: tabular-nums;
  transition: transform .08s, box-shadow .08s, background .15s, opacity .15s; }
.ops:not(.listo) .op:not(.bien):not(.mal):not(.era) { opacity: .75; }
.op small { position: absolute; left: 10px; top: 7px; width: 22px; height: 22px; border-radius: 7px; background: var(--c); color: #fff; font-size: 13px; line-height: 23px; }
.op:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 2px 0 rgba(0, 0, 0, .3); }
.op.t-s { font-size: 28px; } .op.t-xs { font-size: 22px; } .op.t-f { font-size: 34px; }
.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 6px 0 rgba(0, 0, 0, .3); animation: brilla .5s 2; }
.op:disabled { cursor: default; }
.kk-juego { position: absolute; right: 8px; top: 120px; width: 48px; height: 48px; pointer-events: none; opacity: .95; }
.kk-juego .kk-sprite { width: 48px; height: 48px; }
.tiembla { animation: tiembla .35s; }
.sube { position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%); z-index: 5; background: var(--oro); color: #2a1f00; font-size: 30px; font-weight: 800;
  padding: 8px 22px; border-radius: 18px; box-shadow: var(--sombra); animation: sube 1.2s both; white-space: nowrap; pointer-events: none; }
.sube.mal { background: var(--rojo); color: #fff; font-size: 24px; }

/* Fracciones y raíces */
.fr { display: inline-flex; flex-direction: column; vertical-align: middle; text-align: center; line-height: 1; margin: 0 .08em; }
.fr > span { padding: 0 .12em; }
.fr > span + span { border-top: .07em solid currentColor; padding-top: .06em; }
.enun .fr { font-size: .78em; }
.op .fr { font-size: .86em; }
.rad { display: inline-flex; align-items: stretch; white-space: nowrap; }
.rad-s { width: .5em; height: auto; flex: none; overflow: visible; margin-right: -.02em; }
.rad-s path { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.enun .rad-s path { stroke-width: 4; }
.op .rad-s path { stroke-width: 3; }
.rad .bajo { border-top: .07em solid currentColor; padding: .02em .08em 0 .04em; line-height: 1.05; }
sup.ind { font-size: .42em; vertical-align: top; position: relative; top: .25em; margin-right: -.38em; z-index: 1; }

/* ── Fin ─────────────────────────────────────────────────────────────── */
.fin-cab { display: flex; align-items: center; gap: 14px; margin-top: 4px; }
.fin-cab h2 { padding: 0; margin: 0; font-size: 32px; }
.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: 34px; font-weight: 800; line-height: 1.05; font-variant-numeric: tabular-nums; }
.cifras div:first-child b { color: var(--c); filter: brightness(1.2); }
.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; }
.medalla-nueva { display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--panel); border-radius: 14px; padding: 8px; margin: 6px 0; }
.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; }
.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 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; }
.r-enun { font-size: 24px; font-weight: 800; }
.r-res { font-size: 24px; font-weight: 800; color: var(--verde); }
.repaso small { flex-basis: 100%; color: #7a7d9c; font-size: 13px; }
.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 2px 10px; margin: 4px -16px 0; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
.pestanas::-webkit-scrollbar { display: none; }
.pestanas button { flex: none; border: 2px solid var(--linea); background: var(--panel); border-radius: 99px; padding: 4px 14px 2px; font-size: 15px; white-space: nowrap; }
.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, .podio li { display: grid; grid-template-columns: 34px 1fr 12px auto auto; align-items: center; gap: 8px; background: var(--panel); border-radius: 12px; padding: 7px 10px; }
.podio li { grid-template-columns: 28px 1fr auto auto auto; }
.rk-lista li.yo { background: rgba(242, 194, 48, .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; }
.ac b { font-size: 19px; }
.ti { font-size: 14px; color: var(--suave); font-variant-numeric: tabular-nums; min-width: 54px; text-align: right; }
.tu { margin: 14px 0 6px; color: var(--suave); font-size: 14px; }
.tu.nada { text-align: center; }
.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 .pg { margin: 6px 0 4px; font-size: 13px; color: var(--suave); text-transform: uppercase; letter-spacing: .06em; }
.podio li { background: rgba(0, 0, 0, .18); }
.podio .casa { font-size: 10px; }
.mas { color: var(--oro); font-weight: 800; }
.podio ol { margin-bottom: 8px; }

/* ── 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); }

/* ── 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 brilla { 50% { box-shadow: 0 0 0 8px var(--verde), 0 6px 0 rgba(0, 0, 0, .3); } }
@keyframes tiembla { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@keyframes pierde { 40% { transform: scale(1.5); } }
@keyframes sube { 0% { opacity: 0; transform: translate(-50%, -20%) scale(.7); } 20% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); } 80% { opacity: 1; transform: translate(-50%, -60%); } 100% { opacity: 0; transform: translate(-50%, -90%); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* Celulares bajitos (o en horizontal) */
@media (max-height: 640px) {
  .crono { font-size: 32px; min-width: 120px; }
  .op { min-height: 66px; font-size: 30px; }
  .pregunta { min-height: 110px; }
  .enun { font-size: clamp(38px, 11vw, 56px); }
}
@media (min-width: 700px) { .vista { padding-top: 28px; } }
