/* Concepto: álbum de cromos. El jugador es un cromo que evoluciona cada temporada; amarillo de sobre de cromos, tinta azul marino y césped. */
:root {
  --bg: #e7eeea;
  --paper: #ffffff;
  --paper-2: #f2f6f4;
  --ink: #0f1d2b;
  --muted: #566877;
  --line: #d0dad6;
  --sticker: #ffcc14;
  --sticker-ink: #1a1400;
  --grass: #0b6e4f;
  --stamp: #d1372b;
  --good: #1f8a4c;
  --bad: #c8372d;
  --shadow: 0 1px 0 rgba(15,29,43,.05), 0 14px 30px -18px rgba(15,29,43,.45);
  --f-display: 'Big Shoulders Display', 'Arial Narrow', Impact, sans-serif;
  --f-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0a131b; --paper: #121e29; --paper-2: #182633; --ink: #e8eef2; --muted: #90a2b0; --line: #243443;
  --sticker: #ffd43b; --sticker-ink: #1a1400; --grass: #35b07b; --stamp: #ff5a4c; --good: #4cc27c; --bad: #ff6b5e;
  --shadow: 0 14px 30px -18px rgba(0,0,0,.9); color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #0a131b; --paper: #121e29; --paper-2: #182633; --ink: #e8eef2; --muted: #90a2b0; --line: #243443;
  --sticker: #ffd43b; --sticker-ink: #1a1400; --grass: #35b07b; --stamp: #ff5a4c; --good: #4cc27c; --bad: #ff6b5e;
  --shadow: 0 14px 30px -18px rgba(0,0,0,.9); color-scheme: dark; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img, svg { max-width: 100%; }
body { background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sticker); outline-offset: 2px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
.page { max-width: 560px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: 14px 40px; }
.num { font-variant-numeric: tabular-nums; }

/* Cabecera */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 4px 14px; }
.logo { font-family: var(--f-display); font-weight: 900; font-size: 34px; line-height: .9; letter-spacing: .01em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.logo i { width: 22px; height: 22px; border-radius: 50%; background: var(--sticker); box-shadow: inset 0 0 0 3px var(--ink); display: inline-block; }
.day { text-align: right; font-size: 13px; color: var(--muted); line-height: 1.25; }
.day b { display: block; color: var(--ink); font-family: var(--f-display); font-size: 20px; font-weight: 800; letter-spacing: .02em; }

/* Cromo */
.cromo { position: relative; background: var(--paper); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--line); }
.cromo-band { position: relative; display: grid; grid-template-columns: 116px 1fr; gap: 14px; align-items: end; padding: 16px 84px 0 16px; background: var(--c1); border-bottom: 5px solid var(--c2); min-height: 150px; }
@media (max-width: 400px) { .cromo-band { grid-template-columns: 96px 1fr; padding-right: 16px; } .cromo-band svg { width: 96px; height: 111px; } .cromo-id { padding-top: 56px; } }
.cromo-band svg { display: block; width: 116px; height: 134px; }
.cromo-id { padding-bottom: 14px; color: var(--c2); min-width: 0; }
.cromo-id .pos { display: inline-block; font-family: var(--f-display); font-weight: 800; font-size: 14px; letter-spacing: .08em; padding: 1px 8px; border-radius: 4px; background: var(--c2); color: var(--c1); }
.cromo-id h2 { font-family: var(--f-display); font-weight: 900; font-size: clamp(30px, 8vw, 40px); line-height: .92; text-transform: uppercase; margin-top: 6px; overflow-wrap: anywhere; }
.cromo-id p { margin: 4px 0 0; font-weight: 600; font-size: 14px; opacity: .92; }
.ovr { position: absolute; top: 12px; right: 12px; width: 62px; height: 62px; border-radius: 50%; background: var(--sticker); color: var(--sticker-ink); display: grid; place-items: center; box-shadow: 0 0 0 3px var(--ink), 0 6px 14px -6px rgba(0,0,0,.6); text-align: center; }
.ovr b { font-family: var(--f-display); font-weight: 900; font-size: 30px; line-height: .8; }
.ovr span { font-size: 9.5px; font-weight: 800; letter-spacing: .1em; display: block; margin-top: 2px; }
.ovr.up { animation: bump .7s ease; }
@keyframes bump { 35% { transform: scale(1.18) rotate(-6deg); } }
.cromo-foot { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.cromo-foot div { padding: 9px 6px; text-align: center; min-width: 0; }
.cromo-foot div + div { border-left: 1px solid var(--line); }
.cromo-foot span { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.cromo-foot b { font-family: var(--f-display); font-weight: 800; font-size: 22px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.stamp { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%) rotate(-12deg); font-family: var(--f-display); font-weight: 900; font-size: 46px; letter-spacing: .06em; color: var(--stamp); border: 5px solid var(--stamp); padding: 0 14px; border-radius: 8px; background: color-mix(in srgb, var(--paper) 70%, transparent); pointer-events: none; animation: stamp .5s cubic-bezier(.2,1.6,.4,1); }
@keyframes stamp { from { transform: translate(-50%, -50%) rotate(-12deg) scale(2); opacity: 0; } }

/* Progreso */
.prog { display: flex; align-items: center; gap: 10px; margin: 14px 2px 6px; font-size: 13px; color: var(--muted); font-weight: 600; }
.prog .bar { flex: 1; height: 8px; background: var(--paper-2); border-radius: 4px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.prog .bar i { display: block; height: 100%; background: var(--grass); border-radius: 4px; transition: width .4s ease; }

/* Temporada */
.season { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-top: 12px; }
.kick { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0; }
.season h3 { font-family: var(--f-display); font-weight: 900; font-size: 27px; line-height: 1; text-transform: uppercase; margin: 6px 0 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line); }
.chip.gold { background: var(--sticker); color: var(--sticker-ink); box-shadow: none; }
.chip.bad { color: var(--bad); }
.chip.good { color: var(--good); }
.event-note { margin: 10px 0 0; font-size: 14.5px; color: var(--muted); }

/* Decisiones */
.decide { margin-top: 18px; }
.decide h2 { font-family: var(--f-display); font-weight: 900; font-size: 30px; text-transform: uppercase; line-height: 1; }
.decide > p { margin: 6px 0 12px; color: var(--muted); font-size: 15px; }
.opts { display: grid; gap: 10px; }
.opt { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; text-align: left; background: var(--paper); border: 2px solid var(--ink); border-radius: 12px; padding: 12px 14px; cursor: pointer; box-shadow: 0 4px 0 var(--ink); transition: transform .08s ease, box-shadow .08s ease, background .15s ease; }
.opt:hover { background: var(--paper-2); }
.opt:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.opt b { display: block; font-weight: 800; font-size: 16.5px; line-height: 1.2; }
.opt .od { display: block; font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.opt .go { font-family: var(--f-display); font-weight: 900; font-size: 24px; }
.opt.retire { border-style: dashed; box-shadow: none; }
.tag-lvl { font-weight: 800; }
.tag-lvl.alta { color: var(--good); } .tag-lvl.baja { color: var(--bad); }

/* Escudo */
.crest { --c1: #777; --c2: #fff; width: 34px; height: 38px; flex: none; display: grid; place-items: center; background: var(--c1); color: var(--c2); border: 2.5px solid var(--c2); border-radius: 5px 5px 50% 50% / 5px 5px 40% 40%; font-weight: 800; font-size: 10px; letter-spacing: .02em; box-shadow: 0 0 0 1.5px var(--line); }
.crest.none { background: var(--paper-2); color: var(--muted); border-color: var(--line); font-size: 16px; }

/* Totales */
.totals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.tot { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.tot span { display: block; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.tot b { font-family: var(--f-display); font-weight: 900; font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; }

/* Final */
.score { margin-top: 14px; background: var(--ink); color: var(--bg); border-radius: 14px; padding: 16px; display: grid; gap: 4px; text-align: center; }
.score span { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.score b { font-family: var(--f-display); font-weight: 900; font-size: 64px; line-height: .9; color: var(--sticker); font-variant-numeric: tabular-nums; }
.score em { font-style: normal; font-family: var(--f-display); font-weight: 800; font-size: 24px; text-transform: uppercase; letter-spacing: .03em; }
.shelf { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.timeline { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.timeline li:last-child { border-bottom: 0; }
.timeline small { display: block; color: var(--muted); font-size: 12.5px; }
.timeline .r { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; font-size: 13.5px; }
.actions { display: grid; gap: 10px; margin-top: 16px; }
.btn { display: block; width: 100%; text-align: center; border: 2px solid var(--ink); border-radius: 12px; padding: 13px 16px; font-weight: 800; font-size: 17px; cursor: pointer; background: var(--paper); box-shadow: 0 4px 0 var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn.main { background: var(--sticker); color: var(--sticker-ink); }
.share-box { margin-top: 10px; background: var(--paper-2); border: 1px dashed var(--line); border-radius: 10px; padding: 10px 12px; white-space: pre-wrap; font-size: 14px; user-select: all; }
.toast { min-height: 1.5em; text-align: center; font-weight: 700; color: var(--good); margin: 6px 0 0; }
.next { text-align: center; color: var(--muted); font-size: 14px; margin-top: 10px; }
.next b { color: var(--ink); font-variant-numeric: tabular-nums; }

/* Portada */
.hero { text-align: left; margin: 6px 0 14px; }
.hero h1 { font-family: var(--f-display); font-weight: 900; font-size: clamp(42px, 12vw, 60px); line-height: .88; text-transform: uppercase; }
.hero h1 { line-height: .95; }
.hero h1 mark { display: inline-block; margin-top: 6px; background: var(--sticker); color: var(--sticker-ink); padding: 3px 8px 0; border-radius: 4px; line-height: .92; }
.hero p { margin: 10px 0 0; font-size: 17px; color: var(--muted); }
.streak { display: flex; gap: 8px; margin-top: 12px; }
.streak div { flex: 1; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.streak span { display: block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.streak b { font-family: var(--f-display); font-size: 24px; font-weight: 900; }

/* Contenido */
.content { margin-top: 36px; border-top: 4px solid var(--ink); padding-top: 18px; }
.content h2 { font-family: var(--f-display); font-weight: 900; font-size: 30px; text-transform: uppercase; line-height: 1; margin: 22px 0 8px; }
.content h2:first-child { margin-top: 0; }
.content p, .content li { color: var(--ink); font-size: 15.5px; max-width: 65ch; }
.content ol { padding-left: 20px; display: grid; gap: 4px; }
.content details { border-bottom: 1px solid var(--line); padding: 10px 0; }
.content summary { cursor: pointer; font-weight: 800; }
.content details p { margin: 8px 0 2px; color: var(--muted); }
footer { margin-top: 28px; font-size: 13px; color: var(--muted); text-align: center; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Web: navegación, páginas, anuncios, cookies ---------- */
.top a { color: inherit; text-decoration: none; }
.nav-links { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; margin: 12px 0 0; padding: 0; list-style: none; font-size: 13.5px; }
.nav-links a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.nav-links a:hover { color: var(--ink); }
.btn.small { width: auto; display: inline-block; padding: 8px 14px; font-size: 14.5px; box-shadow: 0 3px 0 var(--ink); }
.btn:focus-visible { outline-offset: 3px; }
.share-img { margin: 4px 0 0; }
.share-img img { width: 100%; border-radius: 12px; box-shadow: var(--shadow); display: block; }
.share-img figcaption { font-size: 13px; color: var(--muted); text-align: center; margin-top: 6px; }
.ad { margin: 22px 0 0; min-height: 100px; display: grid; gap: 4px; }
.ad-label { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-align: center; }
.cookies { position: fixed; z-index: 100; left: 0; right: 0; bottom: 0; background: var(--paper); border-top: 3px solid var(--ink); box-shadow: 0 -10px 30px -12px rgba(0,0,0,.35);
  padding: 14px max(16px, env(safe-area-inset-right, 0px)) calc(14px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.cookies > * { max-width: 560px; margin-left: auto; margin-right: auto; }
.cookies p { margin: 0 auto 10px; font-size: 14.5px; }
.cookies a { color: inherit; }
.cookies-cfg { display: grid; gap: 6px; margin-bottom: 10px; font-size: 14.5px; }
.cookies-cfg input { width: 18px; height: 18px; vertical-align: -3px; margin-right: 6px; accent-color: var(--grass); }
.cookies-btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.legal h1 { font-family: var(--f-display); font-weight: 900; font-size: clamp(38px, 10vw, 52px); line-height: .92; text-transform: uppercase; margin: 6px 0 14px; }
.legal h2 { font-family: var(--f-display); font-weight: 900; font-size: 26px; text-transform: uppercase; margin: 24px 0 6px; }
.legal p, .legal li { font-size: 15.5px; max-width: 65ch; }
.legal table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0; }
.legal th, .legal td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal .wrap-t { overflow-x: auto; }
.legal .back { display: inline-block; margin-top: 22px; font-weight: 800; color: var(--ink); }
.pending { background: var(--sticker); color: var(--sticker-ink); padding: 0 4px; border-radius: 3px; }
.content a, .legal a:not(.btn) { color: var(--ink); text-decoration: underline; text-decoration-color: var(--grass); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.legal .day .btn { color: var(--sticker-ink); text-decoration: none; }

/* Clubes con rayas verticales */
.cromo-band.rayas { background: linear-gradient(90deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.5) 62%, rgba(0,0,0,.6)), repeating-linear-gradient(90deg, var(--c1) 0 22px, var(--c3) 22px 44px); border-bottom-color: #ffffff; }
.cromo-band.rayas .cromo-id { color: #ffffff; text-shadow: 0 2px 8px rgba(0,0,0,.55); }
.cromo-band.rayas .cromo-id .pos { background: #ffffff; color: #111111; text-shadow: none; }
.crest.rayas { background: repeating-linear-gradient(90deg, var(--c1) 0 5px, var(--c3) 5px 10px); color: #ffffff; text-shadow: 0 1px 2px rgba(0,0,0,.9); border-color: var(--c2); }

/* Dinero */
.money { color: var(--ink); font-weight: 800; }
.chip.money { font-variant-numeric: tabular-nums; }
.bank { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.bank > div { background: var(--ink); color: var(--bg); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.bank span { display: block; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; opacity: .75; }
.bank b { font-family: var(--f-display); font-weight: 900; font-size: 26px; line-height: 1.05; color: var(--sticker); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

/* Minijuegos */
.mini { margin-top: 4px; background: var(--paper); border: 2px solid var(--ink); border-radius: 14px; padding: 12px; box-shadow: 0 4px 0 var(--ink); }
.mini-start { display: grid; gap: 10px; justify-items: center; padding: 10px 0; }
.linkbtn { background: none; border: 0; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 14px; }
.mini-cv { display: block; width: 100%; border-radius: 10px; touch-action: manipulation; cursor: pointer; }
.mini-hud { margin: 8px 0 0; text-align: center; font-weight: 700; font-size: 14.5px; color: var(--muted); }
.mini-res { display: grid; gap: 8px; justify-items: center; text-align: center; padding: 8px 0; }
.mini-res b { font-family: var(--f-display); font-weight: 900; font-size: 64px; line-height: .9; color: var(--grass); }
.mini-res small { font-size: 24px; color: var(--muted); }
.mini-res p { margin: 0; font-weight: 600; }
.bar-game { position: relative; height: 56px; border-radius: 28px; background: var(--paper-2); box-shadow: inset 0 0 0 2px var(--line); overflow: hidden; cursor: pointer; touch-action: manipulation; }
.bg-zone { position: absolute; top: 0; bottom: 0; background: var(--good); opacity: .85; }
.bg-needle { position: absolute; top: 6px; bottom: 6px; width: 6px; margin-left: -3px; border-radius: 3px; background: var(--ink); box-shadow: 0 0 0 2px var(--paper); }
.bg-hits { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 8px; min-height: 30px; }
.board-game { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px; border-radius: 10px; background: repeating-linear-gradient(180deg, #2e7a4a 0 14%, #2a7044 14% 28%); }
.bp { aspect-ratio: 1; border-radius: 50%; border: 3px solid rgba(255,255,255,.75); background: rgba(255,255,255,.12); cursor: pointer; transition: background .12s ease, transform .12s ease; touch-action: manipulation; max-width: 100%; }
.bp.on { background: var(--sticker); transform: scale(1.08); }
.bp.ok { background: #ffffff; }
.bp.mal { background: var(--stamp); }
.bp:disabled { cursor: default; }
.board-game { max-width: 340px; margin: 0 auto; }

.rondo { position: relative; width: 100%; max-width: 320px; aspect-ratio: 1; margin: 0 auto; border-radius: 50%; background: radial-gradient(circle, #2e7a4a 0 60%, #2a7044 60%); box-shadow: inset 0 0 0 3px rgba(255,255,255,.5); }
.rp { position: absolute; width: 20%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 3px solid #fff; background: #1f6fb2; cursor: pointer; touch-action: manipulation; transition: background .1s ease, transform .1s ease; }
.rp.on { background: var(--sticker); transform: translate(-50%, -50%) scale(1.12); box-shadow: 0 0 0 6px rgba(255,204,20,.35); }
.rp.ok { background: #4cc27c; }
.rp.mal { background: var(--stamp); }
.rondo-mid { position: absolute; left: 50%; top: 50%; width: 18%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: #c8102e; border: 3px solid #fff; }
.prensa-q { font-family: var(--f-display); font-weight: 900; font-size: 26px; line-height: 1.05; text-transform: uppercase; margin: 6px 0 10px; }
.prensa-t { height: 8px; border-radius: 4px; background: var(--paper-2); overflow: hidden; margin-bottom: 12px; box-shadow: inset 0 0 0 1px var(--line); }
.prensa-t i { display: block; height: 100%; width: 100%; background: var(--stamp); }
.mini .opt { grid-template-columns: 1fr; }

.mini-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
.record { margin: 0; font-family: var(--f-display); font-weight: 900; font-size: 24px; text-transform: uppercase; color: var(--stamp); }

.kick.grupo { margin: 18px 2px 8px; }
.vision { position: relative; width: 100%; max-width: 360px; aspect-ratio: 1; margin: 0 auto; border-radius: 10px; background: repeating-linear-gradient(180deg, #2e7a4a 0 12.5%, #2a7044 12.5% 25%); touch-action: manipulation; }
.vp { position: absolute; width: 15%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 3px solid #fff; background: #ffcc14; cursor: pointer; }
.vd { position: absolute; width: 11%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: #c8102e; border: 2px solid #fff; pointer-events: none; }
.vp.ok { background: #4cc27c; } .vp.mal { background: var(--stamp); } .vp.libre { box-shadow: 0 0 0 6px rgba(76,194,124,.8); }
.pen-wrap { position: relative; }
.pen-cv { touch-action: none; cursor: grab; }
.pen-mute { position: absolute; top: 8px; right: 8px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(0,0,0,.45); color: #fff; font-size: 18px; cursor: pointer; }
.seo-hero { margin-bottom: 10px; }
.seo-hero h1 { font-size: clamp(36px, 10vw, 52px); }
