/* ============================================================================
 * DESAFÍO DE AJEDREZ · estilo
 * Club de ajedrez de noche: verde paño, tablero de madera y oro de Killincho.
 * ========================================================================== */
@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: #0d1f17;
  --noche2: #1b3a2c;
  --panel: rgba(255, 255, 255, .07);
  --panel2: rgba(255, 255, 255, .12);
  --linea: rgba(255, 255, 255, .14);
  --tinta: #f4fbf6;
  --suave: #b9d4c6;
  --papel: #fffaf0;
  --tinta-papel: #1c241f;
  --oro: #f2c230;
  --verde: #22b46a;
  --rojo: #e5484d;
  --azul: #3b82f6;
  --clara: #eed8b0;
  --oscura: #b07d4f;
  --marco: #5a3a22;
  --c: #f2c230;
  --g: #8bc34a;
  --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:
    repeating-conic-gradient(rgba(255, 255, 255, .028) 0 25%, transparent 0 50%),
    radial-gradient(120% 70% at 50% -10%, #2f6b52 0%, var(--noche2) 42%, var(--noche) 80%);
  background-size: 64px 64px, 100% 100%;
  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)); }
.centro { text-align: center; }

/* ── 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: 15px 20px; font-size: 22px; }
.btn.chico { padding: 8px 14px; font-size: 15px; border-radius: 12px; }
.btn.chico small { font-size: 12px; opacity: .75; font-weight: 600; }
.btn.oro { background: var(--oro); color: #2a1f00; }
.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; }

/* ── Piezas (en todas partes) ────────────────────────────────────────── */
.pieza { display: inline-block; width: 1.2em; height: 1.2em; background: center / contain no-repeat; vertical-align: middle; }
.wK { background-image: url('piezas/wK.svg'); } .wQ { background-image: url('piezas/wQ.svg'); } .wR { background-image: url('piezas/wR.svg'); }
.wB { background-image: url('piezas/wB.svg'); } .wN { background-image: url('piezas/wN.svg'); } .wP { background-image: url('piezas/wP.svg'); }
.bK { background-image: url('piezas/bK.svg'); } .bQ { background-image: url('piezas/bQ.svg'); } .bR { background-image: url('piezas/bR.svg'); }
.bB { background-image: url('piezas/bB.svg'); } .bN { background-image: url('piezas/bN.svg'); } .bP { background-image: url('piezas/bP.svg'); }

/* ── 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; display: grid; place-items: center; position: relative; overflow: hidden;
  background: repeating-conic-gradient(var(--oscura) 0 25%, var(--clara) 0 50%) 0 0 / 42px 42px; box-shadow: 0 0 0 4px var(--marco), var(--sombra); }
.kk-sprite { width: 64px; height: 64px; image-rendering: pixelated; image-rendering: crisp-edges; position: relative; z-index: 1; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .3)); }
.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(38px, 11vw, 52px); 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: '»'; }
.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; }
.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); }
.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; }

.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; text-shadow: 0 1px 0 rgba(0, 0, 0, .2); }
.juego-card.dia { background: linear-gradient(120deg, #f2a830, #d9603b); }
.juego-card.camino { background: linear-gradient(120deg, var(--g), #1f6b4f); animation-delay: .06s; }
.juego-card:active { transform: translateY(4px); box-shadow: 0 2px 0 rgba(0, 0, 0, .3); }
.jc-ico { width: 58px; height: 58px; display: grid; place-items: center; background: rgba(255, 255, 255, .2); border-radius: 16px; flex: none; }
.jc-ico .pieza { width: 46px; height: 46px; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .25)); }
.jc-txt { flex: 1; display: flex; flex-direction: column; line-height: 1.2; min-width: 0; gap: 2px; }
.jc-txt small { font-size: 12px; opacity: .92; text-transform: uppercase; letter-spacing: .05em; }
.jc-txt b { font-size: 20px; font-weight: 800; }
.jc-txt > span { font-size: 14px; opacity: .95; }
.jc-ir { font-size: 34px; opacity: .8; }
.pips { display: inline-flex; gap: 4px; vertical-align: middle; margin-left: 4px; }
.pips i { width: 12px; height: 12px; border-radius: 50%; background: rgba(255, 255, 255, .25); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .2); }
.pips i.si { background: var(--oro); }
.pips.grandes i { width: 18px; height: 18px; }
.dias { display: inline-flex; gap: 4px; }
.dias i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 800; background: rgba(0, 0, 0, .18); color: rgba(255, 255, 255, .7); }
.dias i.si { background: var(--verde); color: #fff; } .dias i.no { background: rgba(229, 72, 77, .7); color: #fff; } .dias i.hoy { box-shadow: 0 0 0 2px #fff; color: #fff; }
.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: 4px 10px; margin-top: 6px; }
.version { text-align: center; color: rgba(255, 255, 255, .35); font-size: 12px; margin: 14px 0 0; }
.mini-tablero { display: grid; grid-template-columns: repeat(8, 1fr); width: min(240px, 70vw); margin: 14px auto 8px; border-radius: 8px; overflow: hidden; box-shadow: 0 0 0 4px var(--marco), var(--sombra); }
.mini-tablero i { aspect-ratio: 1; display: grid; place-items: center; }
.mini-tablero i.cl { background: var(--clara); } .mini-tablero i.os { background: var(--oscura); }
.mini-tablero .pieza { width: 92%; height: 92%; }

/* ── 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); }
.hoja.centro .btn { margin: 6px auto; display: flex; max-width: 360px; }
.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%; }
.botones { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.mas { color: var(--oro); font-weight: 800; }

/* ── El camino ───────────────────────────────────────────────────────── */
.cam-yo { display: flex; gap: 14px; align-items: center; border-radius: 20px; padding: 14px; margin: 8px 0 12px; color: #fff;
  background: linear-gradient(120deg, var(--g), #1f6b4f); box-shadow: var(--sombra); text-shadow: 0 1px 0 rgba(0, 0, 0, .2); }
.cam-yo > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cam-yo small { font-size: 13px; opacity: .9; } .cam-yo b { font-size: 26px; line-height: 1.05; } .cam-yo span { font-size: 13px; opacity: .92; }
.cam-yo .pips { margin: 4px 0 2px; }
.pieza.grande { flex: none; width: 70px; height: 70px; border-radius: 18px; background-color: rgba(255, 255, 255, .2); background-size: 82%; }
.tramos { margin-top: 6px; }
.tramo { margin: 14px 0; }
.tramo h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; color: #fff; font-size: 19px; }
.tramo h3 .pieza { width: 30px; height: 30px; }
.nvs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.nv { border: 0; border-radius: 14px; padding: 8px 2px 7px; background: var(--panel); display: flex; flex-direction: column; align-items: center; gap: 0; line-height: 1.15; min-width: 0; }
.nv b { font-size: 20px; } .nv span { font-size: 12px; } .nv small { font-size: 10px; opacity: .65; }
.nv .pips { margin: 3px 0 0; gap: 2px; } .nv .pips i { width: 7px; height: 7px; }
.nv.hecho { background: color-mix(in srgb, var(--g) 30%, transparent); }
.nv.hecho b { color: var(--g); }
.nv.actual { background: var(--g); color: #fff; box-shadow: 0 0 0 3px #fff, 0 5px 0 rgba(0, 0, 0, .3); text-shadow: 0 1px 0 rgba(0, 0, 0, .25); animation: late .5s both; }
.nv.cerrado { opacity: .4; }
@supports not (background: color-mix(in srgb, red 50%, blue)) { .nv.hecho { background: var(--panel2); } }

/* ── El tablero ──────────────────────────────────────────────────────── */
.tb-marco { width: min(100%, calc(100dvh - 300px), 520px); min-width: 264px; margin: 4px auto; }
.tablero { position: relative; width: 100%; aspect-ratio: 1 / 1; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  border-radius: 6px; overflow: hidden; box-shadow: 0 0 0 5px var(--marco), 0 10px 0 5px rgba(0, 0, 0, .3); }
@supports not (aspect-ratio: 1 / 1) { .tablero { height: 0; padding-bottom: 100%; } }
.tb-cas { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(8, 1fr); }
.tb-cas > div { position: relative; }
.tb-cas .cl { background: var(--clara); } .tb-cas .os { background: var(--oscura); }
.cf, .cr { position: absolute; font-size: clamp(8px, 2.2vw, 11px); font-weight: 800; line-height: 1; z-index: 1; pointer-events: none; }
.cf { right: 3px; bottom: 2px; } .cr { left: 3px; top: 3px; }
.cl .cf, .cl .cr { color: var(--oscura); } .os .cf, .os .cr { color: var(--clara); }
.tb-cas > div::before, .tb-cas > div::after { content: ''; position: absolute; pointer-events: none; }
.tb-cas .ult::before { inset: 0; background: rgba(242, 194, 48, .45); }
.tb-cas .sel::before { inset: 0; background: rgba(46, 160, 90, .6); }
.tb-cas .sobre::before { inset: 0; box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .8); }
.tb-cas .dest::after { left: 34%; top: 34%; width: 32%; height: 32%; border-radius: 50%; background: rgba(20, 70, 45, .45); }
.tb-cas .come::after { inset: 3%; border-radius: 50%; box-shadow: inset 0 0 0 calc(var(--anillo, 5px)) rgba(20, 70, 45, .45); }
.tb-cas .jaque::before { inset: 0; background: radial-gradient(circle, rgba(229, 32, 40, 1) 0%, rgba(229, 72, 77, .6) 40%, transparent 72%); }
.tb-cas .pista::before { inset: 0; background: rgba(66, 165, 245, .65); animation: titila .7s infinite alternate; }
.tb-cas .bien::before { inset: 0; background: rgba(34, 180, 106, .7); }
.tb-cas .mal::before { inset: 0; background: rgba(229, 72, 77, .75); }
.tb-cas .sol::before { inset: 0; background: rgba(66, 165, 245, .45); }
.tb-pz { position: absolute; inset: 0; pointer-events: none; }
.tb-pz .pieza { position: absolute; left: 0; top: 0; width: 12.5%; height: 12.5%; display: block; background-size: 100% 100%; transition: transform .24s cubic-bezier(.3, .7, .35, 1), opacity .25s; will-change: transform; }
.tb-pz.quieto .pieza { transition: none; }
.tb-pz .pieza.arrastra { transition: none; z-index: 5; filter: drop-shadow(0 8px 6px rgba(0, 0, 0, .45)); }
.tb-pz .pieza.entra { animation: aparece-p .3s both; }
.tb-pz .pieza.sale { opacity: 0; }
.tablero.bloq { cursor: default; }
.tb-promo { position: absolute; inset: 0; display: none; place-items: center; background: rgba(0, 0, 0, .55); z-index: 10; }
.tb-promo.ver { display: grid; }
.tb-promo-caja { background: var(--papel); color: var(--tinta-papel); border-radius: 16px; padding: 10px 12px; text-align: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.tb-promo-caja p { margin: 0 0 6px; font-size: 15px; font-weight: 800; }
.pieza-btn { width: 58px; height: 58px; border: 0; border-radius: 12px; background: var(--clara); margin: 3px; padding: 0; box-shadow: 0 3px 0 rgba(0, 0, 0, .25); }
.pieza-btn .pieza { width: 50px; height: 50px; }
.tb-promo-no { border: 0; background: none; color: #7a6b5c; font-size: 14px; margin-top: 4px; text-decoration: underline; }

/* ── Un ejercicio ────────────────────────────────────────────────────── */
body[data-vista="ejercicio"] .vista { padding-top: max(10px, env(safe-area-inset-top)); }
.ejercicio { display: flex; flex-direction: column; gap: 10px; }
.ej-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; }
.ej-tit { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.ej-tit small { font-size: 13px; color: var(--g); font-weight: 800; letter-spacing: .02em; }
.es-dia .ej-tit small { color: #f2a830; }
.ej-tit b { font-size: 18px; }
.ej-der .rep { font-weight: 800; color: var(--oro); background: rgba(242, 194, 48, .15); padding: 2px 10px; border-radius: 99px; }
.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; }
.ej-msj { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 8px 12px; border-radius: 14px; background: var(--panel); font-size: 19px; min-height: 48px;
  text-align: center; transition: background .2s; }
.ej-msj.bien { background: rgba(34, 180, 106, .3); } .ej-msj.mal { background: rgba(229, 72, 77, .3); animation: tiembla .35s; } .ej-msj.sol { background: rgba(66, 165, 245, .25); }
.turno { flex: none; width: 22px; height: 22px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 255, 255, .6); }
.turno.w { background: #fffaf0; } .turno.b { background: #1d1a17; }
.ej-acc { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; min-height: 8px; margin-top: 6px; }
.ej-id { text-align: center; font-size: 12px; color: rgba(255, 255, 255, .4); margin: 0; }
.ej-id a { color: inherit; }
.ej-res { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 12px; border-radius: 16px; animation: aparece .3s both; }
.ej-res b { font-size: 22px; } .ej-res span { color: var(--suave); }
.ej-res.bien { background: rgba(34, 180, 106, .2); border: 2px solid rgba(34, 180, 106, .6); }
.ej-res.mal { background: rgba(229, 72, 77, .14); border: 2px solid rgba(229, 72, 77, .45); }
.ej-res .sube { color: #fff; font-size: 18px; animation: late .6s both; }
.dia-fin { text-align: center; background: var(--panel); border-radius: 20px; padding: 14px; }
.dia-fin .grande { font-size: 26px; font-weight: 800; margin: 8px 0 2px; }
.dia-fin.si .grande { color: #9be7bd; } .dia-fin.no .grande { color: #ffb4b6; }
.mini-pos { width: min(220px, 64vw); margin: 4px auto 10px; }
.mini-pos .cf, .mini-pos .cr { display: none; }

/* ── Ranking 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; }
.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 38px; 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(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: 14px; white-space: nowrap; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; } .ac b { font-size: 19px; } .ac small { font-size: 11px; color: var(--suave); }
.gana { color: var(--oro); 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: 10px 12px; }
.podio .casa { font-size: 10px; }
.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 aparece-p { from { opacity: 0; } }
@keyframes late { 0% { transform: scale(.6); opacity: 0; } 50% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }
@keyframes titila { from { opacity: .45; } to { opacity: 1; } }
@keyframes tiembla { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@keyframes pierde { 40% { transform: scale(1.5); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }
@media (min-width: 700px) { .vista { padding-top: 28px; } }
@media (max-width: 360px) { .nv span { font-size: 11px; } .jc-txt b { font-size: 18px; } }
