/* ============================================================================
 * ENGLISH GUIDE · estilo
 * Atardecer en el Cusco: ciruela, naranja y papel de pasaporte.
 * ========================================================================== */
@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: #22142e;
  --noche2: #4a1f4a;
  --panel: rgba(255, 255, 255, .07);
  --panel2: rgba(255, 255, 255, .12);
  --linea: rgba(255, 255, 255, .14);
  --tinta: #f7f5ff;
  --suave: #e3c3d9;
  --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='260' height='260' fill='%23ffffff' fill-opacity='.045' font-family='Georgia,serif' font-size='30'%3E%3Ctext x='18' y='50'%3EA%3C/text%3E%3Ctext x='150' y='90'%3Eb%3C/text%3E%3Ctext x='70' y='160'%3EC%3C/text%3E%3Ctext x='200' y='210'%3Ed%3C/text%3E%3Ctext x='30' y='240'%3Ee%3C/text%3E%3C/svg%3E"),
    radial-gradient(120% 70% at 50% -10%, #b4453a 0%, var(--noche2) 40%, var(--noche) 78%);
  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; }

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

/* ══════════════════════════════════════════════════════════════════════
 *  ENGLISH GUIDE
 * ══════════════════════════════════════════════════════════════════════ */
:root { --c: #ff7a45; }
.btn.verde { background: var(--verde); color: #fff; }
.centro { text-align: center; }
.hoja.centro .btn { margin: 6px auto; display: flex; max-width: 360px; }
.kk-caja { background: linear-gradient(160deg, #ffb37a, #ffe2c2); }
.kk-caja::after { background: #c96b3c; }
.portada h1 { background: linear-gradient(180deg, #fff 40%, #ffd1a6); -webkit-background-clip: text; background-clip: text; }
.semana { display: flex; flex-direction: column; gap: 1px; padding: 9px 12px; border-radius: 14px; background: rgba(34,160,107,.16); 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); }
.juego-card { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; border: 0; border-radius: 20px; padding: 14px; margin: 10px 0; color: #fff;
  box-shadow: 0 6px 0 rgba(0,0,0,.3); animation: aparece .35s both; }
.juego-card.guia { background: linear-gradient(120deg, #ff7a45, #e5484d); }
.juego-card.wordle { background: linear-gradient(120deg, #2fae5a, #1f8a7a); }
.juego-card:active { transform: translateY(4px); box-shadow: 0 2px 0 rgba(0,0,0,.3); }
.jc-ico { font-size: 40px; width: 56px; height: 56px; display: grid; place-items: center; background: rgba(255,255,255,.18); border-radius: 16px; flex: none; }
.jc-txt { flex: 1; display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.jc-txt small { font-size: 12px; opacity: .9; text-transform: uppercase; letter-spacing: .05em; }
.jc-txt b { font-size: 19px; font-weight: 800; text-shadow: 0 2px 0 rgba(0,0,0,.15); }
.jc-txt span { font-size: 14px; opacity: .95; }
.jc-ir { font-size: 34px; opacity: .8; }
.niveles { display: grid; gap: 10px; }
.nivel-op { text-align: left; border: 0; border-radius: 16px; padding: 12px 14px; background: var(--panel2); display: flex; flex-direction: column; gap: 2px; }
.nivel-op b { font-size: 18px; } .nivel-op span { color: #ffd1a6; } .nivel-op small { color: var(--suave); }

/* Mapa */
.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; 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; }
.pestanas button.mio:not(.si) { border-color: #ffd166; }
.pestanas button.cerrado { opacity: .55; }
.ruta { list-style: none; padding: 0 0 0 22px; margin: 8px 0; position: relative; }
.ruta::before { content: ''; position: absolute; left: 33px; top: 30px; bottom: 30px; border-left: 4px dashed rgba(255,255,255,.25); }
.parada { margin: 10px 0; position: relative; }
.parada button { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; border: 0; border-radius: 18px; padding: 10px 12px 10px 0; background: var(--papel); color: var(--tinta-papel);
  box-shadow: 0 5px 0 rgba(0,0,0,.3); }
.parada.cerrada button { background: rgba(255,255,255,.12); color: var(--suave); box-shadow: none; }
.p-num { width: 46px; height: 46px; margin-left: -22px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-size: 22px; font-weight: 800;
  box-shadow: 0 3px 0 rgba(0,0,0,.25), 0 0 0 4px var(--noche); flex: none; }
.parada.hecha .p-num { background: var(--verde); }
.parada.cerrada .p-num { background: #5a4a63; font-size: 18px; }
.p-txt { flex: 1; display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.p-txt b { font-size: 17px; } .p-txt small { font-size: 13px; color: #7a6b80; display: flex; align-items: center; gap: 5px; }
.parada.cerrada .p-txt small { color: var(--suave); }
.band { width: 20px; height: 15px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); flex: none; }
.p-est { display: flex; flex-direction: column; align-items: center; font-size: 18px; line-height: 1; }
.p-est i { font-style: normal; color: #d8cfdc; } .p-est i.si { color: #f2b705; text-shadow: 0 1px 0 rgba(0,0,0,.2); }
.p-est > span, .p-est small { font-size: 11px; color: #7a6b80; }
.p-est { flex-direction: row; flex-wrap: wrap; justify-content: center; width: 58px; }

/* Misión */
body[data-vista="mision"] .vista { padding-top: max(10px, env(safe-area-inset-top)); }
.mision { display: flex; flex-direction: column; gap: 10px; min-height: calc(100dvh - 30px); }
.m-cab { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; }
.j-salir { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--linea); background: var(--panel); font-size: 18px; }
.m-prog { display: flex; gap: 4px; }
.m-prog i { flex: 1; height: 10px; border-radius: 99px; background: rgba(255,255,255,.15); }
.m-prog i.hecho { background: var(--verde); } .m-prog i.ahora { background: #ffd166; }
.vidas { display: flex; gap: 2px; }
.vidas i { width: 24px; height: 24px; font-style: normal; display: grid; place-items: center; }
.vidas i::before { content: '♥'; font-size: 24px; color: var(--rojo); transition: .3s; }
.vidas i.ida::before { color: rgba(255,255,255,.18); } .vidas i.ida { animation: pierde .45s; }
.turista { display: flex; align-items: center; gap: 10px; background: var(--panel); border-radius: 14px; padding: 8px 12px; }
.turista .band { width: 34px; height: 25px; }
.turista b { display: block; font-size: 16px; } .turista small { color: var(--suave); font-size: 13px; }
.kk-mini { margin-left: auto; width: 40px; height: 40px; } .kk-mini .kk-sprite { width: 40px; height: 40px; }
.paso { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.paso.entra { animation: aparece .25s both; }
.p-tit { margin: 4px 0 0; font-size: 17px; color: #ffd1a6; }
.globo-tur { position: relative; background: var(--papel); color: var(--tinta-papel); border-radius: 20px; padding: 16px 16px 16px 58px; font-size: 22px; font-weight: 800; line-height: 1.25;
  box-shadow: 0 6px 0 rgba(0,0,0,.3); }
.globo-tur::after { content: ''; position: absolute; top: -10px; left: 30px; border: 10px solid transparent; border-top: 0; border-bottom-color: var(--papel); }
.oir { border: 0; background: #ffd166; color: #2a1f00; border-radius: 12px; font-size: 22px; width: 42px; height: 42px; }
.globo-tur .oir { position: absolute; left: 10px; top: 12px; }
.oir.grande { width: 100%; height: auto; padding: 18px; font-size: 54px; border-radius: 22px; display: flex; flex-direction: column; align-items: center; box-shadow: 0 6px 0 rgba(0,0,0,.3); }
.oir.grande small { font-size: 14px; font-weight: 700; }
.oir.chico { width: 34px; height: 34px; font-size: 17px; border-radius: 10px; vertical-align: middle; }
.tarjeta { display: flex; flex-direction: column; align-items: center; gap: 4px; background: var(--papel); color: var(--tinta-papel); border-radius: 22px; padding: 14px; box-shadow: 0 6px 0 rgba(0,0,0,.3); }
.tarjeta b { font-size: 24px; }
.emo { font-size: 34px; line-height: 1.1; } .emo.grande { font-size: 64px; }
.ops { display: grid; gap: 10px; }
.ops-2 { grid-template-columns: 1fr 1fr; }
.op { border: 0; border-radius: 16px; background: #fff; color: var(--tinta-papel); font-size: 18px; font-weight: 800; padding: 14px 12px; min-height: 58px; box-shadow: 0 5px 0 rgba(0,0,0,.3);
  transition: transform .08s, background .15s, opacity .2s; line-height: 1.2; }
.op:disabled:not(.bien):not(.mal):not(.era) { opacity: .7; }
.op.dibujo { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.op.dibujo small { font-size: 14px; color: #6a5b70; }
.op:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 2px 0 rgba(0,0,0,.3); }
.op.bien { background: var(--verde); color: #fff; } .op.bien small { color: #fff; }
.op.mal { background: var(--rojo); color: #fff; } .op.mal small { color: #fff; }
.op.era:not(.bien) { box-shadow: 0 0 0 4px var(--verde), 0 5px 0 rgba(0,0,0,.3); }
.armado { min-height: 76px; background: var(--papel); color: var(--tinta-papel); border-radius: 18px; padding: 12px; font-size: 21px; font-weight: 800; display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  box-shadow: inset 0 -4px 0 rgba(0,0,0,.08); }
.armado .vacio { color: #a395a8; font-weight: 600; font-size: 16px; }
.armado span:not(.vacio) { background: #ffe2c2; border-radius: 8px; padding: 2px 8px; }
.armado.bien, .casillas.bien i { background: #d2f5e1; } .armado.mal, .casillas.mal i { background: #ffd9da; }
.fichas { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.ficha { border: 0; border-radius: 12px; background: #fff; color: var(--tinta-papel); font-size: 19px; font-weight: 800; padding: 10px 14px; box-shadow: 0 4px 0 rgba(0,0,0,.3); }
.ficha.usada { opacity: .25; transform: scale(.92); }
.letras .ficha { width: 48px; height: 52px; padding: 0; font-size: 24px; }
.casillas { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.casillas i { width: 40px; height: 48px; border-radius: 10px; background: var(--papel); color: var(--tinta-papel); font-style: normal; font-size: 26px; font-weight: 800; display: grid; place-items: center;
  box-shadow: inset 0 -4px 0 rgba(0,0,0,.1); }
.acciones { display: flex; gap: 10px; justify-content: center; }
.feedback { position: sticky; bottom: 0; margin-top: auto; border-radius: 20px 20px 0 0; padding: 14px 16px max(14px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px;
  animation: sube-fb .25s both; margin-left: -16px; margin-right: -16px; }
.feedback.bien { background: #1d6b42; } .feedback.mal { background: #8a2a2e; }
.feedback b { font-size: 22px; } .feedback em { font-style: normal; font-weight: 800; color: #ffd166; }
@keyframes sube-fb { from { transform: translateY(100%); } }

/* Fin de misión */
.estrellas-fin { display: flex; justify-content: center; gap: 8px; font-size: 64px; line-height: 1; margin: 6px 0; }
.estrellas-fin i { font-style: normal; color: rgba(255,255,255,.18); }
.estrellas-fin i.si { color: #f2b705; text-shadow: 0 4px 0 rgba(0,0,0,.25); animation: late .5s var(--d) both; }
.repaso li { flex-direction: column; align-items: flex-start; gap: 2px; position: relative; padding-right: 50px; }
.repaso li small { color: #7a6b80; } .repaso li b { font-size: 17px; }
.repaso li .oir { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); }

/* Word of the Day */
.wd h2 { padding-left: 50px; }
.lv { padding: 0 6px; border-radius: 5px; color: #fff; font-weight: 800; } .lv.v { background: #2fae5a; } .lv.a { background: #d4a017; }
.w-tablero { display: grid; gap: 6px; margin: 10px auto; width: min(100%, calc(var(--L) * 62px)); }
.w-tablero.oculto { display: none; }
.w-fila { display: grid; grid-template-columns: repeat(var(--L), 1fr); gap: 6px; }
.w-fila i { aspect-ratio: 1; border: 2px solid rgba(255,255,255,.25); border-radius: 8px; display: grid; place-items: center; font-style: normal; font-size: clamp(22px, 7vw, 32px); font-weight: 800; }
.w-fila i.lleno { border-color: rgba(255,255,255,.7); animation: pulso .12s; }
.w-fila i.v { background: #2fae5a; border-color: #2fae5a; } .w-fila i.a { background: #d4a017; border-color: #d4a017; } .w-fila i.n { background: #4a3a52; border-color: #4a3a52; }
.w-fila.sacude { animation: tiembla .35s; }
.w-msj { text-align: center; min-height: 26px; font-weight: 800; opacity: 0; transition: opacity .2s; } .w-msj.ver { opacity: 1; }
.teclado { display: flex; flex-direction: column; gap: 6px; margin: 6px -10px 0; }
.t-fila { display: flex; gap: 5px; justify-content: center; }
.tecla { flex: 1; max-width: 42px; height: 54px; border: 0; border-radius: 8px; background: #8a7a92; color: #fff; font-size: 17px; font-weight: 800; padding: 0; }
.tecla.ancha { max-width: 66px; flex: 1.5; font-size: 13px; }
.tecla.v { background: #2fae5a; } .tecla.a { background: #d4a017; } .tecla.n { background: #3a2a42; color: #9d8aa6; }
.w-fin { text-align: center; background: var(--panel); border-radius: 18px; padding: 14px; margin-top: 8px; }
.w-pal { font-size: 34px; font-weight: 800; letter-spacing: .12em; margin: 0; color: #ffd166; }
.w-es { margin: 0 0 8px; color: var(--suave); }

/* Rankings y casas */
.seg { display: inline-flex; background: rgba(0,0,0,.25); border-radius: 12px; padding: 3px; margin: 6px 0; }
.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; }
.seg.doble { display: flex; } .seg.doble button { flex: 1; }
.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 42px; align-items: center; gap: 8px; background: var(--panel); border-radius: 12px; padding: 7px 10px; }
.podio li { grid-template-columns: 28px 1fr auto auto auto; background: rgba(0,0,0,.18); }
.rk-lista li.yo { background: rgba(255,209,102,.22); outline: 2px solid #ffd166; }
.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; }
.gana, .mas { color: #ffd166; font-weight: 800; text-align: right; }
.tu { margin: 14px 0 6px; color: var(--suave); font-size: 14px; }
.vacio, .cargando { text-align: center; color: var(--suave); padding: 30px 10px; }
.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); }
.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; }
.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: 16px; font-weight: 800; padding: 8px 0; }
.podio ol { margin-bottom: 8px; } .podio .casa { font-size: 10px; }
.pasos { padding-left: 22px; font-size: 16px; line-height: 1.45; } .pasos li { margin: 8px 0; }
.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; }
