/* ============================================================================
 * EL GRAN DESAFÍO GEOGRÁFICO · estilo
 * Océano profundo, mapas y una pista de atletismo con cerros andinos.
 * ========================================================================== */
@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: #072a33;
  --noche2: #0c4a52;
  --panel: rgba(255, 255, 255, .07);
  --panel2: rgba(255, 255, 255, .12);
  --linea: rgba(255, 255, 255, .14);
  --tinta: #f7f5ff;
  --suave: #a9d3d0;
  --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='240' height='240' fill='none' stroke='%23ffffff' stroke-opacity='.05' stroke-width='2'%3E%3Cpath d='M0 60h240M0 120h240M0 180h240'/%3E%3Cpath d='M60 0q-30 120 0 240M120 0v240M180 0q30 120 0 240'/%3E%3C/svg%3E"),
    radial-gradient(120% 70% at 50% -10%, #17707a 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; }

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

/* ── 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: #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; }
.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; } }

/* ══════════════════════════════════════════════════════════════════════
 *  DESAFÍO GEOGRÁFICO
 * ══════════════════════════════════════════════════════════════════════ */
.portada { padding: 8px 0 4px; }
.titulo { display: flex; align-items: center; gap: 12px; }
.globo-caja { flex: none; width: 84px; height: 84px; border-radius: 22px; display: grid; place-items: end center; overflow: hidden; position: relative;
  background: linear-gradient(180deg, #7cc6ff 0 55%, #c8553d 55% 100%); box-shadow: var(--sombra); }
.globo-caja::before { content: '🌎'; position: absolute; top: 4px; right: 6px; font-size: 26px; }
.globo-caja canvas { width: 40px; height: 64px; image-rendering: pixelated; margin-bottom: 6px; }
.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; background: linear-gradient(180deg, #fff 40%, #b6f0d8);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.lema { margin: 4px 0 0; font-size: 16px; 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); }
.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; 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(242,194,48,.14); border-color: rgba(242,194,48,.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(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: 14px 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: 112px; color: #fff; display: flex; flex-direction: column; gap: 2px;
  background: linear-gradient(165deg, color-mix(in srgb, var(--c) 88%, #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 { font-size: 30px; line-height: 1.1; height: 36px; }
.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: .95; }
.tema::after { content: ''; position: absolute; right: -18px; top: -18px; width: 70px; height: 70px; border-radius: 50%; background: rgba(255,255,255,.14); }
.tema.global { grid-column: 1 / -1; min-height: 96px; background: linear-gradient(120deg, #0ea5e9, #22a06b 55%, #d4a017); box-shadow: 0 6px 0 #0b6b52; }
.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; }
.version { text-align: center; color: rgba(255,255,255,.35); font-size: 12px; margin: 14px 0 0; }
.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: 54px; box-shadow: var(--sombra); }
.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; }
.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 carrera */
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; min-height: calc(100dvh - 18px); gap: 8px; }
.tablero { display: grid; grid-template-columns: 44px 1fr 64px; 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: 36px; 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 16px 2px; min-width: 140px; text-align: center; }
.puesto { display: flex; flex-direction: column; align-items: center; background: var(--oro); color: #2a1f00; border-radius: 14px; padding: 4px 0 2px; line-height: 1; box-shadow: var(--sombra); }
.puesto b { font-size: 24px; } .puesto small { font-size: 11px; }
.estado { display: flex; justify-content: space-between; align-items: center; font-size: 15px; }
.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); }
.tramo { color: var(--suave); } .tramo b { color: #fff; font-size: 20px; }
.pregunta { flex: 1; min-height: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: var(--papel); color: var(--tinta-papel);
  border-radius: 22px; box-shadow: 0 6px 0 rgba(0,0,0,.3); padding: 14px; text-align: center; }
.enun { font-size: clamp(22px, 6.4vw, 30px); font-weight: 800; line-height: 1.2; }
.enun b { color: color-mix(in srgb, var(--c) 80%, #000); }
.enun .grande { display: block; font-size: 1.35em; margin-top: 4px; color: #0b6b52; }
.band { display: block; height: min(24vh, 150px); width: auto; max-width: 100%; border-radius: 8px; box-shadow: 0 3px 10px rgba(0,0,0,.25), 0 0 0 1px rgba(0,0,0,.08); }
.band.chica { height: min(12vh, 70px); }
.ops { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.op { position: relative; min-height: 70px; border: 0; border-radius: 18px; background: #fff; color: var(--tinta-papel); font-size: 20px; font-weight: 800; line-height: 1.15;
  box-shadow: 0 5px 0 rgba(0,0,0,.3); display: grid; place-items: center; padding: 8px 10px 6px 30px; transition: transform .08s, background .15s, opacity .15s; }
.op small { position: absolute; left: 8px; top: 7px; width: 20px; height: 20px; border-radius: 6px; background: var(--c); color: #fff; font-size: 12px; line-height: 21px; }
.op.t-s { font-size: 17px; } .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); }
.ops.de-banderas .op { padding: 8px; min-height: 84px; }
.band-op { height: 64px; width: auto; max-width: 100%; border-radius: 5px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.pista-caja { position: relative; height: 180px; border-radius: 18px; overflow: hidden; box-shadow: 0 6px 0 rgba(0,0,0,.3); flex: none; }
.pista-caja canvas { width: 100%; height: 100%; display: block; }
.pasaste { position: absolute; left: 50%; top: 8px; transform: translate(-50%, -150%); background: var(--oro); color: #2a1f00; font-weight: 800; font-size: 15px;
  padding: 4px 14px; border-radius: 99px; transition: transform .25s; white-space: nowrap; box-shadow: 0 3px 8px rgba(0,0,0,.25); }
.pasaste.ver { transform: translate(-50%, 0); }
.pasaste.mal { background: #fff; color: #7a2a2a; }

/* Fin */
.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; }
.casa-gana { text-align: center; font-size: 15px; background: var(--panel); border-radius: 12px; padding: 8px 12px; }
.repaso li { gap: 10px; }
.repaso li span { font-size: 17px; font-weight: 600; } .repaso li b { color: #0b6b52; }
.band-mini { height: 28px; width: auto; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }

/* Rankings */
.rk-lista li { grid-template-columns: 34px 1fr 12px auto 42px; }
.ac { font-variant-numeric: tabular-nums; }
.gana { color: var(--oro); font-weight: 800; text-align: right; font-size: 15px; }
.podio li { grid-template-columns: 28px 1fr auto auto auto; }
.ti { display: none; }
@media (max-height: 700px) { .pista-caja { height: 150px; } .op { min-height: 60px; } .crono { font-size: 30px; } .band { height: min(20vh, 120px); } }
