/* =====================================================================================
   Pick & Toe · COURTSIDE CLUB — capa visual
   Se carga la última. No cambia la estructura (style.css, minis.css, draft.css siguen
   colocando cada cosa); aquí vive la identidad: superficies, tipografía, tablero, marcador.
   Principios:
   1. El naranja es el balón: solo para lo que se pulsa para jugar y lo que está "en juego".
   2. Planos y líneas antes que tarjetas: hairlines, reglas editoriales, bloques de color sólidos.
   3. Titulares estrechos en caja alta (dorsal); números en tabular; etiquetas en mono de marcador.
   4. El tablero es el acta del anotador: papel hueso, rejilla fina, marcas hechas a mano.
   ===================================================================================== */

/* ============================================================ BASE */
body { background: var(--c-bg); color: var(--c-text); font-family: var(--f-ui); font-size: var(--t-md); line-height: 1.5; font-stretch: 100%; }
::selection { background: var(--c-action); color: var(--c-on-action); }
:focus-visible { outline: 2px solid var(--c-text); outline-offset: 3px; }
a { text-underline-offset: .18em; text-decoration-thickness: 1px; }
h1, h2, h3 { text-wrap: balance; }
main { max-width: 1200px; padding: 0 clamp(16px, 4vw, 40px) 32px; }

/* fondo: media cancha vista desde arriba, a 1 px; nada de focos ni perspectiva */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--c-bg); }
.court-lines { position: absolute; left: 50%; top: 0; width: max(1200px, 100vw); height: auto; transform: translateX(-50%); }
.court-lines path, .court-lines circle { fill: none; stroke: rgb(241 235 221 / .055); stroke-width: 2; vector-effect: non-scaling-stroke; }
.bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 0, transparent 55%, var(--c-bg) 88%); }
body[data-screen="game"] .court-lines, body[data-screen="mini"] .court-lines, body[data-screen="draft"] .court-lines { opacity: .55; }

/* etiqueta de marcador: el tipo de letra mono hace de "rótulo" en todo el sistema */
.tag, .kicker, .m-tag, .th-tag, .de-new, .pool-info, .sheet-kicker, .stat small, .chip-league, .gc-state, .pturn {
  font-family: var(--f-mono); font-weight: 600; letter-spacing: var(--track-mono); text-transform: uppercase; }

/* ============================================================ CABECERA */
.top { max-width: 1200px; padding: 14px clamp(16px, 4vw, 40px); border-bottom: 1px solid var(--c-line); }
.brand { gap: 10px; color: var(--c-text); }
.brand-mascot { width: 40px; height: 40px; margin: -4px 0; filter: none; }
.brand-text { gap: .18em; font-family: var(--f-display); font-size: clamp(24px, 4.6vw, 30px); font-weight: 900; font-stretch: var(--w-cond); letter-spacing: .01em; text-transform: uppercase; line-height: 1; }
.brand-text i { color: var(--c-action); font-stretch: var(--w-cond); font-size: 1em; transform: none; }
.top-actions { gap: 4px; }
.iconbtn { width: 40px; height: 40px; border-radius: var(--r-2); background: transparent; border: 1px solid transparent; color: var(--c-text); transition: background var(--d-1), border-color var(--d-1); }
.iconbtn:hover { background: var(--c-surface-2); border-color: var(--c-line-2); }
.iconbtn:active { transform: scale(.95); }
.iconbtn .ico { width: 20px; height: 20px; }
.lang-sw { border-color: var(--c-line-2); font: 600 12px/1 var(--f-mono); letter-spacing: var(--track-mono); }

/* ============================================================ BOTONES */
.btn { gap: 8px; padding: 11px 18px; border: 1px solid transparent; border-radius: var(--r-2); font-weight: 750; letter-spacing: .005em; transition: background var(--d-1), border-color var(--d-1), color var(--d-1), transform var(--d-1), box-shadow var(--d-1); }
.btn.primary { background: var(--c-action); color: var(--c-on-action); box-shadow: 0 3px 0 var(--c-action-ink); }
.btn.primary:hover { background: var(--c-action-hi); }
.btn.primary:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--c-action-ink); }
.btn.ghost { background: transparent; color: var(--c-text); border-color: var(--c-line-2); box-shadow: none; }
.btn.ghost:hover { background: var(--c-surface-2); border-color: var(--c-line-3); }
.btn.ghost:active { transform: translateY(1px); }
.btn.quiet { background: transparent; border-color: transparent; color: var(--c-text-2); text-decoration: underline; text-underline-offset: .2em; box-shadow: none; }
.btn.quiet:hover { color: var(--c-text); }
.btn.small { padding: 8px 13px; font-size: 14.5px; }
.btn.wide { width: 100%; }
.btn[disabled], .btn:disabled { opacity: .45; cursor: not-allowed; transform: none !important; box-shadow: none; }
.btn .ico { width: 18px; height: 18px; }

/* ============================================================ PORTADA */
#home { display: flex; flex-direction: column; }
/* orden de lectura: jugar > tres en raya > juegos de hoy > tu temporada (el DOM no se toca) */
#home > .hero { order: 0; }
#home > .league-head { order: 10; } #home > .leagues { order: 11; }
#home > .modes-head { order: 12; } #home > .modes { order: 13; }
#home > .hub-head { order: 20; } #home > .hub-lede { order: 21; } #home > .hub { order: 22; } #home > .hub-dots { order: 23; } #home > .hub-share { order: 24; } #home > .draft-entry { order: 25; }
#home > .season-head { order: 30; } #home > .career-bar { order: 31; } #home > .missions { order: 32; }

/* --- hero --- */
.hero { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(24px, 5vw, 72px); align-items: end; padding: clamp(20px, 5vw, 56px) 0 clamp(8px, 2vw, 16px); }
.hero > * { min-width: 0; }
.kicker { gap: 10px; margin: 0 0 18px; padding: 0; background: none; border-radius: 0; font-size: 11.5px; color: var(--c-text-2); }
.kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-action); box-shadow: none; animation: live 2.4s ease-in-out infinite; }
@keyframes live { 50% { opacity: .35; } }
/* la antigua cinta LED pasa a ser una línea de marcador fija */
.ribbon { display: block; overflow: hidden; margin: -8px 0 20px; padding: 7px 0; border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); white-space: nowrap; text-overflow: ellipsis; font: 600 11.5px/1.4 var(--f-mono); letter-spacing: var(--track-mono); text-transform: uppercase; color: var(--c-text-2); }
.ribbon-track { display: block; overflow: hidden; text-overflow: ellipsis; animation: none !important; transform: none !important; }
.ribbon-track > span:nth-child(n+2) { display: none; }
.ribbon-track b, .ribbon-track em { color: var(--c-text); font-style: normal; font-weight: 600; }
.ribbon-src { display: none; }

.hero h1 { margin: 0 0 18px; font-family: var(--f-display); font-size: var(--t-h1); font-weight: 900; font-stretch: var(--w-cond); line-height: .9; letter-spacing: -.005em; text-transform: uppercase; }
.hero h1 em { font-family: var(--f-display); font-weight: 900; font-stretch: var(--w-cond); color: var(--c-action); }
.hero h1 em::after { display: none; }
.lede { max-width: 44ch; margin: 0 0 26px; font-size: clamp(16.5px, 1.6vw, 19px); line-height: 1.5; color: var(--c-text-2); }
.lede b { color: var(--c-text); font-weight: 700; }

/* reto diario: la entrada del día. Bloque naranja sólido, número de partido grande */
.ticket { position: relative; max-width: 540px; }
.ticket::before, .ticket::after { display: none; }
.daily { width: 100%; gap: 16px; padding: 14px 14px 14px 18px; border-radius: var(--r-2); background: var(--c-action); color: var(--c-on-action); box-shadow: 0 4px 0 var(--c-action-ink); transition: transform var(--d-1), box-shadow var(--d-1), background var(--d-1); }
.daily:hover { background: var(--c-action-hi); transform: translateY(-1px); box-shadow: 0 5px 0 var(--c-action-ink); }
.daily:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--c-action-ink); }
.daily-ico { width: 46px; height: 46px; border-radius: var(--r-1); background: rgb(26 13 5 / .12); }
.daily-ico .ico { width: 24px; height: 24px; }
.daily-text b { font-family: var(--f-display); font-size: clamp(24px, 3vw, 30px); font-weight: 900; font-stretch: var(--w-cond); line-height: 1; letter-spacing: .005em; text-transform: uppercase; }
.daily-text small { margin-top: 5px; font-size: 13.5px; font-weight: 600; opacity: .82; }
.daily-go { width: 48px; height: 48px; border-radius: var(--r-2); background: var(--c-on-action); color: var(--c-action); }
.streakline { margin: 14px 0 0; font-size: 14px; font-weight: 600; color: var(--c-text-2); }
.streakline .ico { color: var(--c-action); fill: rgb(232 117 54 / .3); }

/* entradas secundarias del hero: filas planas con regla, no tarjetas */
.theme-entry { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; align-items: center; column-gap: 14px; width: 100%; max-width: 540px; margin: 14px 0 0; padding: 12px 14px; border: 1px solid var(--c-line-2); border-radius: var(--r-2); background: transparent; color: var(--c-text); text-align: left; cursor: pointer; transition: border-color var(--d-1), background var(--d-1); }
.theme-entry::after { content: "→"; grid-column: 3; grid-row: 1 / 3; color: var(--c-text-2); font-size: 18px; transition: transform var(--d-2) var(--ease-out); }
.theme-entry:hover { border-color: var(--c-line-3); background: var(--c-surface); transform: none; }
.theme-entry:hover::after { transform: translateX(3px); color: var(--c-text); }
.theme-entry .th-tag { grid-row: 1 / 3; padding: 5px 7px; border-radius: var(--r-1); background: var(--c-court); color: var(--c-on-court); font-size: 10.5px; line-height: 1.2; }
.theme-entry b { font-size: 16px; font-weight: 750; }
.theme-entry small { font-size: 13px; color: var(--c-text-2); }
.theme-entry[data-done="1"] { border-color: rgb(181 198 109 / .45); background: var(--c-court-soft); }
.side-entries { grid-template-columns: 1fr 1fr; gap: 0; max-width: 540px; margin-top: 10px; border: 1px solid var(--c-line-2); border-radius: var(--r-2); overflow: hidden; }
.side-entries .league-entry { margin: 0; padding: 11px 14px; border: 0; border-radius: 0; background: transparent; color: var(--c-text); }
.side-entries .league-entry + .league-entry { border-left: 1px solid var(--c-line-2); }
.league-entry { gap: 10px; text-align: left; cursor: pointer; transition: background var(--d-1); }
.league-entry:hover { background: var(--c-surface); transform: none; }
.league-entry > span:first-child { font-size: 20px; filter: saturate(.7); }
.league-entry b { font-size: 15px; font-weight: 750; }
.league-entry small { font-size: 12.5px; color: var(--c-text-2); line-height: 1.3; }

/* demo del hero: el mismo tablero-acta que en la partida */
.hero-demo { width: min(100%, 420px); transform: none; justify-self: end; }
.demo-frame { padding: 0; border-radius: var(--r-3); background: var(--c-paper); box-shadow: 0 0 0 1px rgb(0 0 0 / .2), var(--sh-pop); overflow: hidden; }
.demo-frame::before { content: "Acta · Reto del día"; display: block; padding: 9px 14px; border-bottom: 1px solid rgb(23 25 22 / .18); font: 600 10.5px/1.2 var(--f-mono); letter-spacing: var(--track-mono); text-transform: uppercase; color: var(--c-ink-2); background: var(--c-paper-2); }
html[lang="en"] .demo-frame::before { content: "Scoresheet · Daily grid"; }
.demo-board { border-radius: 0; background: var(--c-paper); }
.demo-board .dname { font: 700 13px var(--f-ui); fill: var(--c-ink); }
.demo-cap { margin: 14px 0 0; font: 600 11.5px/1.4 var(--f-mono); letter-spacing: var(--track-mono); text-transform: uppercase; color: var(--c-text-2); transform: none; text-align: left; }

/* --- cabeceras de sección: número editorial + regla --- */
.section-head { gap: 14px; align-items: baseline; margin: clamp(36px, 6vw, 64px) 0 18px; padding-top: 14px; border-top: 1px solid var(--c-line-2); }
.section-head h2, .section-head h3 { font-family: var(--f-display); font-size: var(--t-h2); font-weight: 900; font-stretch: var(--w-cond); line-height: .95; letter-spacing: .005em; text-transform: uppercase; }
.step { display: inline; width: auto; height: auto; border-radius: 0; background: none; color: var(--c-action); font: 600 13px/1 var(--f-mono); letter-spacing: var(--track-mono); transform: translateY(-.35em); }
.hub-head .step { font-size: 13px; }
#home > .modes-head { margin-top: 28px; }
.pool-info { font-size: 11px; color: var(--c-text-3); }
.hub-lede { margin: -6px 0 18px; font-size: 15px; color: var(--c-text-2); }
.hub-lede b { color: var(--c-text); }

/* --- ligas: control segmentado de marcador --- */
.leagues { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--c-line-2); border-radius: var(--r-2); overflow: hidden; }
.league { gap: 4px; padding: 14px 16px; border: 0; border-radius: 0; background: transparent; box-shadow: none; transition: background var(--d-1); }
.league + .league { border-left: 1px solid var(--c-line-2); }
.league:hover { background: var(--c-surface); transform: none; }
.league .lg-ico { width: auto; height: auto; padding: 3px 6px; border-radius: var(--r-1); background: transparent; box-shadow: inset 0 0 0 1px var(--lc); color: var(--lc) !important; font: 600 11px/1.2 var(--f-mono); letter-spacing: var(--track-mono); }
.league b { font-size: 17px; font-weight: 750; font-stretch: 100%; }
.league small { font-size: 12px; color: var(--c-text-3); }
.league[aria-checked="true"] { background: var(--c-surface-2); box-shadow: inset 0 -3px 0 var(--lc); border-color: transparent; }
.league[aria-checked="true"] .lg-ico { background: var(--lc); color: var(--c-bg) !important; }
.league[aria-checked="true"]::after { top: 14px; right: 14px; width: 8px; height: 8px; background: var(--lc); border-radius: 50%; }
.league[data-l="all"] { --lc: var(--c-all); }
.league[data-l="nba"] { --lc: var(--c-nba); }
.league[data-l="acb"] { --lc: var(--c-acb); }
.league[data-l="euroleague"] { --lc: var(--c-el); }

/* --- modos del tres en raya: cuatro columnas de programa --- */
.modes { grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--c-line-2); border-bottom: 1px solid var(--c-line-2); }
.mode { gap: 10px; padding: 18px 18px 20px; border: 0; border-radius: 0; background: transparent; box-shadow: none; overflow: visible; }
.mode + .mode { border-left: 1px solid var(--c-line); }
.mode::before { content: ""; position: absolute; left: 18px; right: 18px; top: -1px; width: auto; height: 2px; border-radius: 0; background: var(--c-action); opacity: 0; transform: scaleX(.2); transform-origin: left; transition: opacity var(--d-2), transform var(--d-3) var(--ease-out); }
.mode:hover { background: var(--c-surface); transform: none; box-shadow: none; }
.mode:hover::before { opacity: 1; transform: none; }
.mode .m-ico { width: 34px; height: 34px; border-radius: var(--r-1); background: transparent; box-shadow: inset 0 0 0 1px var(--c-line-2); color: var(--c-text); }
.mode .m-ico .ico { width: 20px; height: 20px; stroke-width: 1.8; }
.mode b { font-family: var(--f-display); font-size: 26px; font-weight: 850; font-stretch: var(--w-semi); line-height: 1; text-transform: uppercase; letter-spacing: .005em; }
.mode p { font-size: 14px; line-height: 1.45; color: var(--c-text-2); }
.mode .m-tag { top: 18px; right: 18px; padding: 0; background: none; border-radius: 0; font-size: 10.5px; color: var(--c-text-3); }

/* --- juegos de hoy: la jornada. Filas numeradas, no cromos --- */
.hub { counter-reset: jornada; display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(20px, 3vw, 40px); perspective: none; }
.gcard { counter-increment: jornada; display: grid; grid-template-columns: 52px minmax(0, 1fr); grid-template-areas: "num body"; align-items: start; gap: 0; padding: 18px 0; border: 0; border-top: 1px solid var(--c-line-2); border-radius: 0; background: transparent; box-shadow: none; overflow: visible; transform: none !important; animation: none; }
.gcard::before { content: counter(jornada, decimal-leading-zero); grid-area: num; position: static; width: auto; height: auto; border-radius: 0; background: none; opacity: 1; font-family: var(--f-display); font-size: 34px; font-weight: 900; font-stretch: var(--w-cond); line-height: .9; color: var(--mc); transform: none !important; }
.gcard:hover { transform: none; border-color: var(--c-line-2); box-shadow: none; }
.gc-art { display: none; }
.gcard .m-ico { display: none; }
.gcard .m-tag { position: absolute; top: 20px; right: 0; padding: 2px 6px; border-radius: var(--r-1); background: transparent; box-shadow: inset 0 0 0 1px var(--c-line-2); color: var(--c-text-2); font-size: 10px; }
.gcard[data-done="1"] .m-tag { background: var(--c-court); box-shadow: none; color: var(--c-on-court); }
.gc-body { grid-area: body; display: flex; flex-direction: column; gap: 6px; padding: 0; background: none; }
.gc-body::before { display: none; }
.gcard b { padding-right: 70px; font-family: var(--f-display); font-size: 26px; font-weight: 850; font-stretch: var(--w-semi); line-height: 1; letter-spacing: .005em; text-transform: uppercase; }
.gcard p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--c-text-2); -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.gc-state { font-size: 10.5px; color: var(--c-text-3); }
.gcard[data-done="1"] .gc-state { color: var(--c-court); }
.gc-acts { gap: 6px; margin-top: 6px; }
.gc-acts .btn.primary { flex: 0 0 auto; background: var(--c-action); color: var(--c-on-action); box-shadow: 0 3px 0 var(--c-action-ink); }
.gc-acts .btn.primary:active { box-shadow: 0 1px 0 var(--c-action-ink); }
.gcard[data-done="1"] .gc-acts .btn.primary { background: transparent; color: var(--c-text); box-shadow: inset 0 0 0 1px var(--c-line-2); }
.gc-acts .icon-only { padding: 8px 10px; }
.gcard[data-g="bingo"] { --mc: var(--c-warn) !important; }
.gcard[data-g="guess"] { --mc: var(--c-red) !important; }
.gcard[data-g="conn"] { --mc: var(--c-court) !important; }
.gcard[data-g="list"] { --mc: var(--c-action) !important; }
.gcard[data-g="traj"] { --mc: var(--c-epic) !important; }
.gcard[data-g="levels"] { --mc: var(--c-blue) !important; }
.gcard.skel { height: 118px; }
.gcard.skel::before { content: ""; }
.gcard.skel .gc-body i { display: block; height: 12px; width: 60%; margin-bottom: 10px; border-radius: var(--r-1); background: var(--c-surface-2); }
.gcard.skel .gc-body i:first-child { height: 22px; width: 45%; }
.hub-dots { display: none !important; }
.hub-share { margin: 18px 0 0; }

/* draft a ciegas: banda horizontal con su propio color (verde cancha) */
.draft-entry { margin-top: 26px; grid-template-columns: auto 1fr auto; gap: 18px; padding: 18px 20px; border: 0; border-radius: var(--r-2); background: var(--c-surface); box-shadow: inset 4px 0 0 var(--c-court); color: var(--c-text); transition: background var(--d-1); }
.draft-entry:hover { background: var(--c-surface-2); transform: none; box-shadow: inset 4px 0 0 var(--c-court); }
.de-new { top: 14px; right: 18px; padding: 2px 6px; border-radius: var(--r-1); background: var(--c-court); color: var(--c-on-court); font-size: 10px; }
.de-cards i { border: 1px solid var(--c-bg); border-radius: var(--r-1); background: var(--c-paper) !important; color: var(--c-ink); font-family: var(--f-display); font-weight: 900; font-stretch: var(--w-cond); box-shadow: none; }
.de-cards i:nth-child(3) { background: var(--c-court) !important; color: var(--c-on-court); }
.de-tx b { font-family: var(--f-display); font-size: 26px; font-weight: 850; font-stretch: var(--w-semi); text-transform: uppercase; line-height: 1; }
.de-tx small { margin-top: 6px; font-size: 13.5px; }
.de-go { border-radius: var(--r-2); background: var(--c-court); color: var(--c-on-court); }

/* --- tu temporada: dorsal + misiones, un mismo bloque --- */
.career-bar { margin: 0; padding: 16px 18px; border: 1px solid var(--c-line-2); border-bottom: 0; border-radius: var(--r-2) var(--r-2) 0 0; background: var(--c-surface); box-shadow: none; color: var(--c-text); }
.career-bar:hover { border-color: var(--c-line-3); background: var(--c-surface-2); }
.cb-lv { display: grid; place-items: center; width: 46px; height: 46px; border-radius: var(--r-1); background: var(--c-paper); color: var(--c-ink); font-family: var(--f-display); font-size: 30px; font-weight: 900; font-stretch: var(--w-cond); box-shadow: none; }
.cb-tx b { font-family: var(--f-display); font-size: 22px; font-weight: 850; font-stretch: var(--w-semi); text-transform: uppercase; letter-spacing: .01em; }
.cb-tx small { font-family: var(--f-mono); font-size: 11px; letter-spacing: var(--track-mono); text-transform: uppercase; color: var(--c-text-2); }
.cb-bar { height: 4px; border-radius: 0; background: var(--c-surface-3); }
.cb-bar i { border-radius: 0; background: var(--c-action); }
.cb-badges { font-family: var(--f-mono); font-size: 12px; color: var(--c-text-2); }
.missions { margin: 0; padding: 14px 18px 16px; border: 1px solid var(--c-line-2); border-radius: 0 0 var(--r-2) var(--r-2); background: var(--c-bg); }
.ms-head { font-family: var(--f-mono); font-size: 11px; letter-spacing: var(--track-mono); text-transform: uppercase; color: var(--c-text-2); }
.ms-head b { color: var(--c-text); font-weight: 600; }
.missions li { padding: 8px 0; border-top: 1px solid var(--c-line); font-size: 14.5px; }
.ms-ck { border-radius: var(--r-1); border: 1px solid var(--c-line-3); background: transparent; }
.missions li.ok .ms-ck { background: var(--c-court); border-color: var(--c-court); color: var(--c-on-court); }
.missions li.ok .ms-t { color: var(--c-text-2); text-decoration: line-through; text-decoration-color: var(--c-text-3); }
.ms-p { font-family: var(--f-mono); font-size: 12px; color: var(--c-text-2); }

/* ============================================================ PARTIDA */
.gamebar { margin: 4px 0 12px; padding-bottom: 12px; border-bottom: 1px solid var(--c-line); }
.gametitle b { font-family: var(--f-display); font-size: 24px; font-weight: 900; font-stretch: var(--w-cond); text-transform: uppercase; letter-spacing: .01em; line-height: 1; }
.chip-league { margin-top: 5px; padding: 2px 6px; border-radius: var(--r-1); background: transparent; box-shadow: inset 0 0 0 1px var(--liga); color: var(--liga); font-size: 10px; }

/* marcador: dos bloques enfrentados con la franja de su color arriba */
.hud { gap: 0; margin: 4px 0 14px; border: 1px solid var(--c-line-2); border-radius: var(--r-2); overflow: hidden; }
.pcard { gap: 12px; padding: 12px 14px; border: 0; border-radius: 0; background: var(--c-surface); box-shadow: inset 0 3px 0 transparent; transition: background var(--d-2), box-shadow var(--d-2); transform: none !important; }
.pcard + .pcard { border-left: 1px solid var(--c-line-2); }
.pmark { width: 38px; height: 38px; border-radius: var(--r-1); background: var(--c-paper); box-shadow: none; }
.pname { font-family: var(--f-display); font-size: 21px; font-weight: 850; font-stretch: var(--w-semi); text-transform: uppercase; letter-spacing: .01em; }
.psub { font-family: var(--f-mono); font-size: 11px; letter-spacing: .04em; }
.pip { width: 10px; height: 4px; border-radius: 0; border: 0; }
.pturn { top: 8px; padding: 2px 5px; border-radius: var(--r-1); background: var(--pc); color: var(--c-bg); font-size: 9.5px; letter-spacing: .1em; }
.pcard[data-seat="0"] .pturn { left: auto; right: 12px; } .pcard[data-seat="1"] .pturn { right: auto; left: 12px; }
.pcard[data-active="1"] { background: var(--c-surface-2); box-shadow: inset 0 3px 0 var(--pc); border-color: transparent; }
.pcard[data-off="1"] { opacity: .5; }
.clock { padding: 10px 14px; background: var(--c-bg); border-top: 1px solid var(--c-line-2); }
.clock .bar { height: 4px; border-radius: 0; background: var(--c-surface-3); }
.clock .bar span { border-radius: 0; background: var(--c-action); }
.clock.low .bar span { background: var(--c-red); }
.clock .secs { font-family: var(--f-display); font-size: 22px; font-weight: 850; font-stretch: var(--w-semi); }
.clock.low .secs { color: var(--c-red); }

/* modos de un jugador: tres casillas de marcador */
.solohud { gap: 0; border: 1px solid var(--c-line-2); border-radius: var(--r-2); overflow: hidden; }
.stat { padding: 10px 14px; border: 0; border-radius: 0; background: var(--c-surface); }
.stat + .stat { border-left: 1px solid var(--c-line-2); }
.stat small { font-size: 10px; color: var(--c-text-2); }
.stat b { margin-top: 4px; font-family: var(--f-display); font-size: var(--t-num); font-weight: 900; font-stretch: var(--w-cond); line-height: .9; font-variant-numeric: tabular-nums; }
@keyframes bump { 40% { transform: translateY(-2px); color: var(--c-action); } }
.pips { gap: 3px; margin-top: 10px; }
.pips i { max-width: 26px; height: 6px; border-radius: 0; background: var(--c-surface-3); }
.pips i.hit { background: var(--c-court); }
.pips i.miss { background: var(--c-red); }
.pips.endless::after { font: 600 11px var(--f-mono); letter-spacing: var(--track-mono); text-transform: uppercase; color: var(--c-text-2); }

/* EL TABLERO: el acta del anotador */
.stage { position: relative; }
.frame { padding: 0; border-radius: var(--r-3); background: var(--c-paper); box-shadow: 0 0 0 1px rgb(0 0 0 / .25), var(--sh-pop); overflow: hidden; }
.frame::before, .frame::after { display: none; }
.board { border-radius: 0; background: var(--c-paper); color: var(--c-ink);
  background-image: linear-gradient(rgb(23 25 22 / .045) 1px, transparent 1px), linear-gradient(90deg, rgb(23 25 22 / .045) 1px, transparent 1px);
  background-size: calc(100% / 16) calc(100% / 16); }
.lines path { stroke: var(--c-ink); stroke-width: 1.5; opacity: 1; stroke-linecap: butt; }
.lines path.strong { stroke-width: 2.5; }
.ledge { display: none; }
.corner { position: relative; }
.turn-name { font-family: var(--f-display); font-size: clamp(11px, 2.6vw, 15px); font-weight: 850; font-stretch: var(--w-semi); text-transform: uppercase; color: var(--c-ink); }
/* cabeceras: los equipos son parches cuadrados con su color; los países, círculos. La forma ya dice qué es */
.disc { width: clamp(36px, 9.6vw, 58px); transform: none !important; font-family: var(--f-display); font-weight: 900; font-stretch: var(--w-cond); font-size: clamp(12px, 3.1vw, 19px); letter-spacing: .02em; }
.disc.team { border-radius: var(--r-1); background: var(--c); color: var(--on); box-shadow: inset 0 -3px 0 rgb(0 0 0 / .2); }
.disc.country { border-radius: 50%; background: var(--c-paper-hi); color: var(--c-ink); box-shadow: inset 0 0 0 2px var(--c-ink); font-family: var(--f-mono); font-weight: 600; font-stretch: 100%; font-size: clamp(9px, 2.3vw, 13px); }
.head .name { font-size: clamp(9.5px, 2.4vw, 12.5px); font-weight: 650; color: var(--c-ink-2); letter-spacing: .005em; }
/* casillas */
.cell { border-radius: 0; transition: background var(--d-1); }
.cell:focus-visible { outline: 2px solid var(--c-ink); outline-offset: -6px; }
@media (hover: hover) {
  .board:not([data-lock="1"]) .cell[data-state="empty"]:hover { background: rgb(232 117 54 / .1); }
}
.cell[data-aim="1"] { background: rgb(232 117 54 / .16); box-shadow: inset 0 0 0 2px var(--c-action); }
.cell[data-steal="1"]::after { inset: 8px; border: 1.5px dashed currentColor; border-radius: var(--r-1); }
.cell .who { left: 5%; right: 5%; bottom: 6%; padding: 3px 4px; border-radius: var(--r-1); background: var(--c-ink); color: var(--c-paper); font-size: clamp(8.5px, 2.2vw, 12px); font-weight: 700; letter-spacing: .005em; }
.cell.miss { background: var(--c-red-soft); }
.cell .oops { font-family: var(--f-display); font-weight: 900; font-stretch: var(--w-cond); text-transform: uppercase; color: var(--c-red-ink); }
.cell.fresh::after { border-width: 2px; border-radius: var(--r-1); }
.cell.solo-filled { background: rgb(181 198 109 / .22); }
.cell.solo-filled .check { color: var(--c-court-ink); }
.board.over .cell:not(.win) { opacity: .45; }

/* lectura de la jugada */
.readout { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--c-line); }
.readout-masc { filter: none; }
.status { font-size: 18px; font-weight: 750; letter-spacing: .002em; }
.status[data-kind="bad"] { color: var(--c-red); }
.status[data-kind="good"] { color: var(--c-court); }
.substatus { font-size: 14.5px; color: var(--c-text-2); }
.gametools { gap: 8px; margin-top: 10px; }
.emotes button { width: 44px; height: 44px; border-radius: var(--r-2); background: var(--c-surface); border: 1px solid var(--c-line); }
.emotes button:hover { background: var(--c-surface-2); transform: none; }

/* números del marcador también en portátiles (style.css los compacta con #game) */
#game .stat b { font-size: clamp(28px, 4vw, 44px); margin-top: 4px; }
#game .stat { padding: 9px 14px; }
#game .pcard { border-radius: 0; padding: 12px 14px; }
#game .pmark { border-radius: var(--r-1); }
#game .pturn { top: 8px; font-size: 9.5px; padding: 2px 5px; }
.pick-cond .disc { --rot: 0deg; }

/* escritorio: el tablero manda a la izquierda; marcador, jugada y acciones en una columna a su derecha */
@media (min-width: 1100px) {
  #game { display: grid; grid-template-columns: var(--colw) minmax(300px, 360px); column-gap: clamp(28px, 3vw, 48px); justify-content: center; align-content: start; grid-auto-rows: min-content; }
  #game > .gamebar { grid-column: 1 / -1; width: 100%; }
  #game > .stage { grid-column: 1; grid-row: 2 / span 8; align-self: start; }
  #game > .hud, #game > .solohud, #game > .readout, #game > .gametools, #game > .emotes, #game > .ad { grid-column: 2; width: 100%; }
  #game > .hud { grid-template-columns: 1fr; margin-top: 0; }
  #game > .hud .pcard + .pcard { border-left: 0; border-top: 1px solid var(--c-line-2); }
  #game > .hud .pcard[data-seat="1"] { flex-direction: row; text-align: left; }
  #game > .hud .pcard[data-seat="1"] .psub { justify-content: flex-start; }
  #game > .hud .pcard[data-seat="1"] .pturn { left: auto; right: 12px; }
  #game > .solohud { grid-template-columns: 1fr 1fr; margin-top: 0; }
  #game > .solohud .stat:first-child { grid-column: 1 / -1; border-bottom: 1px solid var(--c-line-2); }
  #game > .solohud .stat:nth-child(2) { border-left: 0; }
  #game > .readout { margin-top: 4px; }
  #game > .gametools { justify-content: flex-start; }
  #game > .emotes { justify-content: flex-start; }
}

/* ============================================================ VENTANAS (papel) */
dialog::backdrop { background: rgb(16 17 15 / .82); backdrop-filter: blur(2px); }
dialog[open] { animation: dlg var(--d-2) var(--ease-out); }
@keyframes dlg { from { opacity: 0; transform: translateY(10px); } }
.sheet { padding: 26px 24px 24px; border-radius: var(--r-3); background: var(--c-paper); color: var(--c-ink); box-shadow: var(--sh-pop); }
.sheet::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--c-action); border-radius: var(--r-3) var(--r-3) 0 0; }
.sheet h2 { font-family: var(--f-display); font-size: 30px; font-weight: 900; font-stretch: var(--w-cond); text-transform: uppercase; line-height: .95; letter-spacing: .005em; }
.sheet h2.big { font-size: clamp(40px, 9vw, 56px); font-stretch: var(--w-cond); }
.sheet p { color: var(--c-ink-2); }
.sheet-kicker { font-size: 11px; color: var(--c-action-ink); transform: none !important; }
.closex { top: 14px; right: 14px; width: 36px; height: 36px; border-radius: var(--r-2); background: transparent; box-shadow: inset 0 0 0 1px rgb(23 25 22 / .2); color: var(--c-ink); }
.closex:hover { background: var(--c-paper-2); }
.intro { color: var(--c-ink-2); }
.sheet .btn.ghost { color: var(--c-ink); border-color: rgb(23 25 22 / .3); background: transparent; }
.sheet .btn.ghost:hover { border-color: var(--c-ink); background: var(--c-paper-2); }
.sheet .btn.quiet { color: var(--c-ink-2); }
.sheet .btn.quiet:hover { color: var(--c-ink); }
.sheet :focus-visible { outline-color: var(--c-ink); }
.field legend { font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: var(--track-mono); text-transform: uppercase; color: var(--c-ink-2); }
.field .opt-hint { font-size: 13.5px; color: var(--c-ink-3); }
.seg span { padding: 10px; border: 1px solid rgb(23 25 22 / .3); border-radius: var(--r-2); background: var(--c-paper-hi); font-weight: 700; font-size: 15px; transition: background var(--d-1), color var(--d-1), border-color var(--d-1); }
.seg input:hover + span { border-color: var(--c-ink); }
.seg input:checked + span { background: var(--c-ink); color: var(--c-paper); border-color: var(--c-ink); }
.seg input:focus-visible + span { outline: 2px solid var(--c-action); outline-offset: 2px; }
.txt, .search { border: 1px solid rgb(23 25 22 / .35); border-radius: var(--r-2); background: var(--c-paper-hi); color: var(--c-ink); }
.txt:focus-visible, .search:focus-visible { outline: 2px solid var(--c-action); outline-offset: 1px; border-color: var(--c-ink); }
.search { font-size: 19px; font-weight: 600; }
.field label.lab { font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: var(--track-mono); text-transform: uppercase; color: var(--c-ink-2); }
.field-sep { border-top: 1px solid rgb(23 25 22 / .15); }
details.more summary { font-weight: 750; }
/* buscador de jugador */
.pick-cond { gap: 10px; padding: 12px; border-radius: var(--r-2); background: var(--c-paper-2); box-shadow: none; }
.pick-cond .times { font-family: var(--f-display); font-weight: 900; font-size: 26px; color: var(--c-action-ink); }
.note { border-left: 3px solid var(--c-action); border-radius: 0; background: var(--c-paper-2); }
.hint.pop { border-radius: var(--r-2); background: var(--c-paper-2); color: var(--c-ink); }
.opt { border-radius: var(--r-2); }
.opt:hover, .opt[aria-selected="true"] { background: var(--c-paper-2); box-shadow: inset 3px 0 0 var(--c-action); }
.opt .av { border-radius: var(--r-1); font-family: var(--f-display); font-weight: 900; font-stretch: var(--w-semi); }
.opt .n { font-weight: 750; }
.opt .m { font-size: 13px; color: var(--c-ink-3); }
/* resultado */
.big-score { font-family: var(--f-display); font-weight: 900; font-stretch: var(--w-cond); }
.big-score b { font-size: clamp(96px, 26vw, 140px); letter-spacing: -.01em; line-height: .82; }
.big-score span { font-size: 44px; color: var(--c-ink-3); }
.emogrid { grid-template-columns: repeat(3, 30px); gap: 3px; }
.emogrid i { height: 30px; border-radius: var(--r-1); background: var(--c-paper-3); }
.emogrid i.on { background: var(--c-court); box-shadow: none; }
.end-meta span { padding: 4px 9px; border-radius: var(--r-1); background: var(--c-paper-2); font-family: var(--f-mono); font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.perk { font-family: var(--f-mono); font-size: 12px; letter-spacing: var(--track-mono); text-transform: uppercase; color: var(--c-action-ink); }
/* respuestas y estadísticas */
.ans { border-radius: var(--r-2); box-shadow: inset 0 0 0 1px rgb(23 25 22 / .15); }
.ans[data-o="0"] { box-shadow: inset 0 3px 0 var(--c-red-ink), inset 0 0 0 1px rgb(23 25 22 / .15); }
.ans[data-o="1"] { box-shadow: inset 0 3px 0 var(--c-blue-ink), inset 0 0 0 1px rgb(23 25 22 / .15); }
.ans[data-o="s"] { box-shadow: inset 0 3px 0 var(--c-court-ink), inset 0 0 0 1px rgb(23 25 22 / .15); }
.ans h4 { font-family: var(--f-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .06em; }
.tiles { gap: 0; border: 1px solid rgb(23 25 22 / .18); border-radius: var(--r-2); overflow: hidden; }
.tile { border-radius: 0; background: var(--c-paper-hi); box-shadow: inset -1px -1px 0 rgb(23 25 22 / .12); }
.tile b { font-family: var(--f-display); font-size: 40px; font-weight: 900; font-stretch: var(--w-cond); }
.tile small { font-family: var(--f-mono); font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--c-ink-3); }
.stats-h { font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: var(--track-mono); text-transform: uppercase; color: var(--c-ink-2); }
.table th { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--c-ink-3); }


/* estadísticas: la semana es un marcador en tinta sobre el papel */
.week-sum { gap: 0; padding: 0; border-radius: var(--r-2); background: var(--c-ink); color: var(--c-paper); overflow: hidden; }
.week-sum p { padding: 10px 14px 0; font: 600 10.5px/1.2 var(--f-mono); letter-spacing: var(--track-mono); text-transform: uppercase; color: var(--c-text-2); }
.week-sum div { padding: 10px 6px 12px; }
.week-sum b { font-family: var(--f-display); font-size: 30px; font-weight: 900; font-stretch: var(--w-cond); line-height: 1; color: var(--c-paper); }
.week-sum small { font-family: var(--f-mono); font-size: 9.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--c-text-2); }
.heat i, .heat-legend i { border-radius: 2px; background: var(--c-paper-3); }
.heat i.today { box-shadow: inset 0 0 0 2px var(--c-action); }
.heat-legend { font-family: var(--f-mono); font-size: 10.5px; }
/* ligas de amigos */
.lg-form { border-radius: var(--r-2); background: var(--c-paper-2); }
.lg-form h3 { font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: var(--track-mono); text-transform: uppercase; color: var(--c-ink-2); }
.lg-form input { border: 1px solid rgb(23 25 22 / .35); border-radius: var(--r-2); background: var(--c-paper-hi); color: var(--c-ink); }
.lg-form input::placeholder { color: var(--c-ink-3); }
.lg-form input:focus-visible { outline: 2px solid var(--c-action); outline-offset: 1px; }
.lg-table th { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; }
/* carrera y logros */
.cr-badge { border-radius: var(--r-2); box-shadow: inset 0 0 0 1px rgb(23 25 22 / .14); }
.cr-badge.on { box-shadow: inset 0 0 0 2px var(--c-action); }
.cb-lv.big { border-radius: var(--r-1); background: var(--c-ink); color: var(--c-paper); }
.cr-ladder li { border-radius: var(--r-1); }

/* ============================================================ MINIJUEGOS (estructura en minis.css) */
.mini-body .paper, .paper { border-radius: var(--r-2); box-shadow: 0 0 0 1px rgb(0 0 0 / .2); }
.bg-card, .gs-table, .cn-grid { border-radius: var(--r-2); }
.bg-pname { font-family: var(--f-display); font-weight: 900; font-stretch: var(--w-cond); text-transform: uppercase; }
.cn-tile { border-radius: var(--r-1) !important; font-weight: 750; }
.mini-body h2, .gs-mystery b, .tj-head b, .mini-done h2 { font-family: var(--f-display); font-weight: 900; font-stretch: var(--w-cond); text-transform: uppercase; letter-spacing: .005em; line-height: 1; }
.mini-body h2 { font-size: clamp(26px, 6vw, 34px); }
.gs-mystery b, .tj-head b { font-size: 24px; }
.av.big.q { border-radius: var(--r-1); background: var(--c-ink); color: var(--c-action); }
.lv { border-radius: var(--r-2); box-shadow: 0 0 0 1px rgb(0 0 0 / .2); }
.lv-n { font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: var(--track-mono); text-transform: uppercase; }
.lv-now { box-shadow: 0 0 0 2px var(--c-action); }
.mini-lede { color: var(--c-text-2); }
.mini-tip { color: var(--c-text-2); }
/* draft */
.dr-h { font-family: var(--f-display); font-size: clamp(34px, 8vw, 52px); font-weight: 900; font-stretch: var(--w-cond); text-transform: uppercase; line-height: .92; letter-spacing: .005em; }
.dr-kick { font-family: var(--f-mono); font-size: 11px; letter-spacing: var(--track-mono); text-transform: uppercase; }
.dr-mode { border-radius: var(--r-2) !important; }
.dr-mode b { font-family: var(--f-display); font-size: 21px; font-weight: 850; font-stretch: var(--w-semi); text-transform: uppercase; }

/* ============================================================ CONTENIDO Y PIE */
.content { padding: clamp(40px, 6vw, 72px) clamp(16px, 4vw, 40px) 24px; border-top: 1px solid var(--c-line); }
.content-in { max-width: 1120px; padding: 0; border: 0; border-radius: 0; background: none; display: grid; grid-template-columns: minmax(0, 1fr); }
.content h2 { margin: 1.8em 0 .5em; padding-top: 14px; border-top: 1px solid var(--c-line-2); font-family: var(--f-display); font-size: var(--t-h2); font-weight: 900; font-stretch: var(--w-cond); text-transform: uppercase; line-height: .95; }
.content h2:first-child { margin-top: 0; }
.content p, .content li { color: var(--c-text-2); max-width: 70ch; }
.rules { counter-reset: r; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0 28px; }
.rules li { counter-increment: r; padding: 12px 0 0; margin: 0 0 14px; border-top: 1px solid var(--c-line); }
.rules li::before { content: counter(r, decimal-leading-zero); display: block; margin-bottom: 6px; font: 600 11px/1 var(--f-mono); letter-spacing: var(--track-mono); color: var(--c-action); }
.rules b { color: var(--c-text); }
.cards { gap: 0 28px; }
.cards article { padding: 12px 0 16px; border-radius: 0; background: none; border-top: 1px solid var(--c-line); }
.cards h3 { font-family: var(--f-display); font-size: 22px; font-weight: 850; font-stretch: var(--w-semi); text-transform: uppercase; }
.cards p { font-size: 14.5px; }
.content details { border-bottom: 1px solid var(--c-line); }
.content summary { font-weight: 700; color: var(--c-text); }
.content summary::after { color: var(--c-action); font-weight: 400; }
.content a { color: var(--c-text); text-decoration-color: var(--c-action); }
.content a:hover { color: var(--c-action); }
.foot { padding: 28px clamp(16px, 4vw, 40px) 48px; border-top: 1px solid var(--c-line); }
.foot-in { max-width: 1120px; font-size: 13px; color: var(--c-text-3); }
.foot-links { gap: 6px 20px; font-weight: 600; }
.foot-links a, .foot-links .linkbtn { color: var(--c-text-2); text-decoration: none; }
.foot-links a:hover, .foot-links .linkbtn:hover { color: var(--c-text); text-decoration: underline; }
.ad .ad-tag { font-family: var(--f-mono); color: var(--c-text-3); }
html.ads-demo .ad .ad-box { border: 1px dashed var(--c-line-2); border-radius: var(--r-2); }

/* ============================================================ RESPONSIVE */
@media (max-width: 880px) {
  .hero { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .hero-demo { display: none; }
  .modes { grid-template-columns: 1fr 1fr; }
  .mode:nth-child(3) { border-left: 0; }
  .mode:nth-child(n+3) { border-top: 1px solid var(--c-line); }
  .hub { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  main { padding: 0 16px 24px; }
  .top { padding: 10px 16px; }
  .brand-mascot { width: 34px; height: 34px; }
  .iconbtn { width: 38px; height: 38px; }
  .hero { padding-top: 18px; padding-bottom: 24px; }
  .hero h1 { font-size: clamp(54px, 16.5vw, 76px); margin-bottom: 14px; }
  .lede { font-size: 16px; margin-bottom: 20px; }
  .daily { padding: 12px 12px 12px 14px; gap: 12px; }
  .daily-ico { display: none; }
  .side-entries { grid-template-columns: 1fr 1fr; }
  .side-entries .league-entry small { display: none; }
  .leagues { grid-template-columns: 1fr 1fr; }
  .league:nth-child(3) { border-left: 0; }
  .league:nth-child(n+3) { border-top: 1px solid var(--c-line-2); }
  .modes { grid-template-columns: 1fr; }
  .mode, .mode + .mode { border-left: 0; }
  .mode + .mode { border-top: 1px solid var(--c-line); }
  .mode { display: grid; grid-template-columns: 34px 1fr; column-gap: 14px; align-items: center; padding: 14px 0; }
  .mode .m-ico { grid-row: 1 / 3; }
  .mode b { font-size: 22px; }
  .mode p { grid-column: 2; font-size: 13.5px; }
  .mode .m-tag { top: 16px; right: 0; }
  .gcard b { font-size: 23px; }
  .gcard { grid-template-columns: 44px minmax(0, 1fr); }
  .gcard::before { font-size: 28px; }
  .section-head { margin-top: 40px; }
  .section-head .pool-info { display: none; }
  .hud .pcard { padding: 10px; gap: 8px; }
  .pname { font-size: 18px; }
  .pmark { width: 32px; height: 32px; }
  .sheet { padding: 22px 18px 18px; }
}

/* ============================================================ MOVIMIENTO REDUCIDO */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .kicker .dot { animation: none; }
}
