/* =====================================================================
   v6 · Winpot Design System layer (winpot.mx)
   Loaded after lujo.css + lujo-pages.css. Re-points every token to the official
   system: navy ground, green primary action, red only for brand / live / error,
   Montserrat UI, Jost display, Inter money. Flat fills, 1px borders, 8px radius,
   no grain, no foil, no glow, no elevation on hover.
   ===================================================================== */
/* Jost + Inter load with Montserrat in the single Google Fonts <link> in src/layouts/Base.astro. */
/* TAB-0139 · metric-matched fallbacks. display=swap paints first with a local font, then swaps to the web font; with a
   plain system-ui fallback the width change wrapped the byline dates row and dropped the answer card (CLS 0.28 on a
   pregunta at 606 px). Each face below maps a local Arial (desktop, iOS) or Roboto (Android) weight to the web font's
   advance width (size-adjust, measured on the blog's Spanish copy; Inter on tabular money figures) and its vertical
   metrics (ascent/descent = font metric / size-adjust), so the swap moves nothing. Re-measure if a family or weight changes. */
@font-face { font-family: "Montserrat Arial"; font-weight: 500; src: local("Arial"), local("ArialMT"); size-adjust: 111.67%; ascent-override: 86.68%; descent-override: 22.48%; line-gap-override: 0%; }
@font-face { font-family: "Montserrat Arial"; font-weight: 600; src: local("Arial Bold"), local("Arial-BoldMT"); size-adjust: 106.46%; ascent-override: 90.93%; descent-override: 23.58%; line-gap-override: 0%; }
@font-face { font-family: "Montserrat Arial"; font-weight: 700; src: local("Arial Bold"), local("Arial-BoldMT"); size-adjust: 108.26%; ascent-override: 89.41%; descent-override: 23.18%; line-gap-override: 0%; }
@font-face { font-family: "Montserrat Arial"; font-weight: 800; src: local("Arial Bold"), local("Arial-BoldMT"); size-adjust: 110.23%; ascent-override: 87.82%; descent-override: 22.77%; line-gap-override: 0%; }
@font-face { font-family: "Jost Arial"; font-weight: 700; src: local("Arial Bold"), local("Arial-BoldMT"); size-adjust: 97.70%; ascent-override: 109.52%; descent-override: 38.38%; line-gap-override: 0%; }
@font-face { font-family: "Jost Arial"; font-weight: 800; src: local("Arial Bold"), local("Arial-BoldMT"); size-adjust: 100.34%; ascent-override: 106.64%; descent-override: 37.37%; line-gap-override: 0%; }
@font-face { font-family: "Inter Arial"; font-weight: 500; src: local("Arial"), local("ArialMT"); size-adjust: 114.38%; ascent-override: 84.72%; descent-override: 21.07%; line-gap-override: 0%; }
@font-face { font-family: "Inter Arial"; font-weight: 600; src: local("Arial Bold"), local("Arial-BoldMT"); size-adjust: 114.25%; ascent-override: 84.81%; descent-override: 21.09%; line-gap-override: 0%; }
@font-face { font-family: "Inter Arial"; font-weight: 700; src: local("Arial Bold"), local("Arial-BoldMT"); size-adjust: 114.37%; ascent-override: 84.73%; descent-override: 21.07%; line-gap-override: 0%; }
@font-face { font-family: "Montserrat Roboto"; font-weight: 500; src: local("Roboto Medium"), local("Roboto-Medium"); size-adjust: 113.12%; ascent-override: 85.57%; descent-override: 22.19%; line-gap-override: 0%; }
@font-face { font-family: "Montserrat Roboto"; font-weight: 600; src: local("Roboto Bold"), local("Roboto-Bold"); size-adjust: 112.44%; ascent-override: 86.09%; descent-override: 22.32%; line-gap-override: 0%; }
@font-face { font-family: "Montserrat Roboto"; font-weight: 700; src: local("Roboto Bold"), local("Roboto-Bold"); size-adjust: 114.34%; ascent-override: 84.66%; descent-override: 21.95%; line-gap-override: 0%; }
@font-face { font-family: "Montserrat Roboto"; font-weight: 800; src: local("Roboto Bold"), local("Roboto-Bold"); size-adjust: 116.43%; ascent-override: 83.14%; descent-override: 21.56%; line-gap-override: 0%; }
@font-face { font-family: "Jost Roboto"; font-weight: 700; src: local("Roboto Bold"), local("Roboto-Bold"); size-adjust: 104.53%; ascent-override: 102.36%; descent-override: 35.87%; line-gap-override: 0%; }
@font-face { font-family: "Jost Roboto"; font-weight: 800; src: local("Roboto Bold"), local("Roboto-Bold"); size-adjust: 107.35%; ascent-override: 99.67%; descent-override: 34.93%; line-gap-override: 0%; }
@font-face { font-family: "Inter Roboto"; font-weight: 500; src: local("Roboto Medium"), local("Roboto-Medium"); size-adjust: 114.72%; ascent-override: 84.47%; descent-override: 21.01%; line-gap-override: 0%; }
@font-face { font-family: "Inter Roboto"; font-weight: 600; src: local("Roboto Bold"), local("Roboto-Bold"); size-adjust: 113.22%; ascent-override: 85.59%; descent-override: 21.29%; line-gap-override: 0%; }
@font-face { font-family: "Inter Roboto"; font-weight: 700; src: local("Roboto Bold"), local("Roboto-Bold"); size-adjust: 113.34%; ascent-override: 85.49%; descent-override: 21.26%; line-gap-override: 0%; }

:root {
  --display: "Jost", "Jost Arial", "Jost Roboto", "Montserrat", system-ui, sans-serif;
  --ui: "Montserrat", "Montserrat Arial", "Montserrat Roboto", system-ui, sans-serif;
  --body: "Montserrat", "Montserrat Arial", "Montserrat Roboto", system-ui, sans-serif;
  --money: "Inter", "Inter Arial", "Inter Roboto", system-ui, sans-serif;

  --ground: #111a29; --ground-2: #0e1622;
  --surface-1: #172337; --surface-2: #1c2b43; --surface-3: #223451;
  --line: #202d44; --line-strong: #233450; --highlight: transparent;
  --text: #ffffff; --text-2: #aab3cb; --text-3: #8990a5;

  --green: #87f031; --green-hover: #76d62b; --on-green: #09111d;
  --red: #e73843; --status: #13cf66; --vip: #3861cf;
  /* jackpot total only: the Winpot casino JackpotWidget number (Ben, 2 Dec: "copy jackpot ticker style") */
  --jackpot: #FFD700; --jackpot-glow: 255, 215, 0;
  --jackpot-font: "Teko", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
  --nav-pill: #21264c; --chip-bg: #143264; --chip-text: #ccddfb;

  --brand: var(--red); --brand-hi: var(--red); --brand-deep: var(--red); --on-brand: #ffffff;
  --gold: var(--green); --gold-hi: var(--green); --gold-lo: var(--green-hover); --gold-deep: var(--green-hover);
  --marigold: var(--green); --marigold-deep: var(--green-hover);
  --velvet: var(--surface-2); --velvet-hi: var(--surface-3);
  --focus: var(--green); --live: var(--status);

  /* reading surface stays on-system: dark navy block, not paper */
  --paper: var(--ground-2); --paper-2: var(--surface-1); --paper-text: #ffffff; --paper-text-2: #aab3cb; --paper-muted: #8990a5; --paper-line: #202d44;

  --fs-board: clamp(36px, 4.4vw, 64px);
  --fs-h1: clamp(32px, 4.2vw, 56px);
  --fs-h1-article: clamp(30px, 3.6vw, 48px);
  --fs-h2: clamp(20px, 2vw, 24px);
  --fs-card: clamp(16px, 1.5vw, 20px);
  --fs-body: 16px; --fs-ui: 14px; --fs-meta: 13px; --fs-label: 11px;

  --ease-out: cubic-bezier(.4, 0, .2, 1); --ease-spring: cubic-bezier(.4, 0, .2, 1);
  --t-fast: 120ms; --t-base: 180ms; --t-slow: 300ms; --t-reel: 600ms;
  --radius: 8px; --radius-sm: 4px; --radius-big: 16px; --radius-pill: 999px;
  --max: 1290px;
}

/* ground */
html { color-scheme: dark; }
body { background: linear-gradient(180deg, var(--ground) 0%, var(--ground-2) 100%) fixed, var(--ground); font-weight: 400; line-height: 1.6; }
body::after { display: none; }
.display { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; text-transform: none; text-shadow: none; }
.display.foil, .foil { background: none; -webkit-text-fill-color: currentColor; color: var(--text); animation: none; }
.label { font-family: var(--ui); font-weight: 700; letter-spacing: .08em; color: var(--text-3); }
.gold, .hi, .verified { color: var(--green); }
.num, .balance, .cell__value, .ans__fig, .fomo__tile .v.num, .countdown, .figure__n, .facts td.n, .compare td, .counts b, .counts2 b, .qrow .fig, .join__fact b, .odds__pick b, .ficha__fig b, .ficha__now b, .answer__figure { font-family: var(--money); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

/* header: 72 / 56, navy blur, no hairline glow */
.header { background: rgba(17,26,41,.85); backdrop-filter: blur(50px); -webkit-backdrop-filter: blur(50px); border-bottom: 1px solid var(--line); box-shadow: none; }
.header__row { height: 72px; }
@media (max-width: 480px) { .header__row { height: 56px; } }
.brand__word { font-family: var(--ui); font-weight: 800; color: var(--text); }
.brand__tag { font-family: var(--ui); font-weight: 700; color: var(--red); text-transform: none; letter-spacing: 0; }
.nav a { font-weight: 500; font-size: 16px; color: var(--text); padding: 8px 12px; border-radius: 8px; transition: background var(--t-fast); }
.nav a::after { display: none; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--nav-pill); color: var(--text); }
.balance { font-family: var(--money); font-weight: 700; font-size: 18px; letter-spacing: 0; }
.balance small { color: var(--text-3); }
.avatar { background: var(--vip); color: #fff; border-radius: 50%; font-family: var(--ui); font-weight: 700; font-size: 14px; }
.avatar--rev { color: var(--green); border-color: var(--green); background: transparent; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { background: var(--text); }
.ticker { background: var(--ground-2); border-bottom: 1px solid var(--line); }
.ticker__tag { background: var(--ground-2); border-right: 1px solid var(--line); color: var(--green); font-family: var(--ui); font-size: 11px; letter-spacing: .1em; }
.ticker__item b { color: var(--green); }
.ticker__item i { background: var(--status); box-shadow: none; }
.ticker::after { content: ""; position: absolute; left: 110px; top: 0; bottom: 0; width: 40px; background: linear-gradient(90deg, var(--ground-2), transparent); pointer-events: none; z-index: 1; }
.ticker__item { font-size: 13px; }
.ticker { padding-left: calc(var(--gutter) + 118px); }
.ticker__tag { width: calc(var(--gutter) + 118px); box-sizing: border-box; padding: 0 12px 0 var(--gutter); place-items: center start; white-space: nowrap; z-index: 2; }
.ticker::after { left: calc(var(--gutter) + 118px); width: 64px; }
.ticker::before { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 64px; background: linear-gradient(270deg, var(--ground-2), transparent); pointer-events: none; z-index: 1; }
.ticker__item small { color: var(--text-3); }

/* buttons */
.btn { border-radius: 8px; font-size: 14px; font-weight: 700; letter-spacing: 0; min-height: 44px; padding: 0 20px; box-shadow: none; transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast); }
.btn:hover, .btn:active, .btn--primary:hover, .btn--gold:hover, .askbox__go:hover { transform: none; filter: none; box-shadow: none; }
.btn--primary, .btn--gold, .askbox__go, .btn--paper { background: var(--green); color: var(--on-green); box-shadow: none; }
.btn--primary:hover, .btn--gold:hover, .askbox__go:hover, .btn--paper:hover { background: var(--green-hover); }
.btn--ghost { background: transparent; border: 1px solid var(--green); color: var(--green); }
.btn--ghost:hover { background: rgba(135,240,49,.2); border-color: var(--green); }
.btn--sm { min-height: 32px; padding: 0 14px; font-size: 13px; border-radius: 4px; }
.helpful button { border: 1px solid var(--line-strong); border-radius: 8px; color: var(--text); }
.helpful button:hover { border-color: var(--green); color: var(--green); }

/* board: flat tiles with 1px borders */
.board { background: transparent; padding: 24px 0; }
.board::before { display: none; }
.board__grid, .aside .board__grid, .hgrid, .fomo, .counts2, .ficha__figs, .odds__picks { gap: 12px; background: transparent; border: 0; }
.cell, .hgrid > *, .fomo__tile, .counts2 > div, .ficha__fig, .join__fact, .odds__pick { background: var(--surface-1); border: 1px solid var(--line); border-radius: 8px; }
.cell { padding: 20px 20px 18px; overflow: hidden; display: grid; align-content: start; }
.cell::before { display: none; }
.cell__label { margin-bottom: 14px; }
.cell[data-id="jackpot"] { background: var(--surface-1); }
.cell[data-id="jackpot"] .cell__value { color: var(--green); filter: none; text-shadow: none; font-size: clamp(34px, 3.3vw, 52px); white-space: nowrap; flex-wrap: nowrap; }
@media (min-width: 720px) { .board__grid[data-count="4"] { grid-template-columns: 2fr 1fr 1fr 1fr; } }
@media (min-width: 720px) and (max-width: 1099px) { .board__grid[data-count="4"] { grid-template-columns: 1fr 1fr 1fr; } .board__grid[data-count="4"] .cell[data-id="jackpot"] { grid-column: 1 / -1; } }
@media (max-width: 719px) { .cell[data-id="jackpot"] .cell__value { font-size: clamp(34px, 10vw, 44px); } }
.reel__d { width: .62em; }
.reel__d.reel__s, .reel__s { width: auto; padding: 0 .01em; }
.reel__d > span > i { font-family: var(--money); }
.cell__value { font-size: clamp(30px, 2.6vw, 40px); }
.cell[data-id="jackpot"] .cell__unit { color: var(--text-3); }
.cell__value { font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.cell__unit { font-family: var(--ui); font-weight: 600; }
.cell.is-changed .cell__value { color: var(--green); }
.dot, .cell__stamp .dot, .odds .dot, .tile--next .dot, .ficha__now .dot, .dot--gold { background: var(--status); box-shadow: 0 0 0 0 rgba(19,207,102,.5); animation: pulse-status 2.4s ease-out infinite; }
@keyframes pulse-status { 0% { box-shadow: 0 0 0 0 rgba(19,207,102,.5); } 70% { box-shadow: 0 0 0 8px rgba(19,207,102,0); } 100% { box-shadow: 0 0 0 0 rgba(19,207,102,0); } }
.fomo { margin-top: 12px; }
.fomo__tile { padding: 20px; }
.fomo__tile .k { color: var(--text-3); }
.fomo__tile .v { font-family: var(--display); font-weight: 800; text-transform: none; font-size: clamp(24px, 2.6vw, 36px); }
.fomo__tile .v.num { font-family: var(--money); font-weight: 700; }
.countdown small { color: var(--text-3); }

/* hero / ask */
.ask { min-height: 0; padding: clamp(32px, 6vw, 72px) 0 clamp(24px, 4vw, 48px); }
html[data-frame] .ask { min-height: 0; }
.ask__stage, .ask__beam, .ask__light { display: none; }
/* Home H1 on the DS H1 token, clamp(32px, 4.2vw, 56px) (Ben TAB-0203, designer rev 2 home-row.md §2); still the only H1 and the LCP. */
/* TAB-0216 · measure in em, not ch: ch is the width of "0" in the font in use, and Jost's "0" (0.68 em) is much wider than the
   Arial/Roboto fallback's (0.53 em), so 16ch was 18 % narrower before the swap and the EN H1 wrapped to 3 lines, then 2
   (CLS 0.12-0.17). 10.891em = 16ch in Jost 800, so the final layout is unchanged and the box no longer moves on swap. */
.ask h1 { font-size: calc(var(--fs-h1) * .7); /* Ben 1 Dec: 30% smaller */ font-weight: 800; letter-spacing: -0.025em; line-height: 1.02; max-width: 10.891em; }
.ask__kicker { font-size: 12px; letter-spacing: .1em; }
/* TAB-0218 (design rev 2.2 §A): under 480px the kicker takes the DS label size and balances onto two short lines, so its box
   (11.0k px2) drops under the 32px H1's (scored per .mo-w word) and h1#ask-h1 is the LCP at 360/390, ES and EN. */
@media (max-width: 479.98px) {
  .ask__kicker { font-size: var(--fs-label); letter-spacing: .08em; text-wrap: balance; }
}
.ask__kicker, .hero .kicker, .kicker-cat, .guide__cat, .answer__label, .ans__q, .card__back .label, .aside .tile .label, .aside .panel__head .label, .creds li b, .pull cite, .odds__head .label { color: var(--green); }
.askbox { margin-top: 24px; }
.askbox__field { border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface-1); padding: 6px 6px 6px 16px; align-items: center; gap: 8px; box-shadow: none; }
/* search active state, every page: single #5F90E8 border, no inner ring */
html body .askbox .askbox__field:focus-within, html body .search-form:focus-within, html body .menu-page .search-form:focus-within, html body .header .search-form:focus-within { border-color: #5F90E8 !important; box-shadow: none !important; outline: none !important; }
html body .askbox input:focus, html body .askbox input:focus-visible, html body .search-form input:focus, html body .search-form input:focus-visible { outline: none !important; box-shadow: none !important; border: 0 !important; }
html body .search-form input { caret-color: #5F90E8; }
.askbox__input, .askbox__ghost { font-family: var(--ui); font-size: clamp(16px, 1.4vw, 20px); font-weight: 500; letter-spacing: 0; line-height: 1.3; }
.askbox__input { padding: 10px 0; caret-color: #5F90E8; }
.askbox__ghost { top: 50%; transform: translateY(-50%); left: 16px; }
.askbox__ghost::after { background: var(--green); }
.askbox__go { width: 48px; height: 48px; border-radius: 6px; font-family: var(--ui); font-size: 22px; }
.askbox__field { padding: 6px 6px 6px 18px; min-height: 60px; }
.askchips button, .chip { font-family: var(--ui); font-size: 13px; font-weight: 600; background: var(--chip-bg); color: var(--chip-text); border: 1px solid transparent; border-radius: 999px; padding: 8px 14px; backdrop-filter: none; }
.askchips button:hover, .chip:hover { background: #032cc9; border-color: #0335f3; color: #fff; transform: none; }

/* answer card */
.ans, .ans--v4, .answer, .results .ans { background: var(--surface-1); border: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: 8px; box-shadow: none; animation: none; }
.ans--v4::before, .ans__seal svg { display: none; }
.ans--none { border-color: var(--line); }
.ans__fig { color: var(--green); font-weight: 700; font-size: clamp(40px, 5vw, 72px); letter-spacing: -0.02em; line-height: 1; }
.ans__fig small { font-family: var(--ui); color: var(--text-3); letter-spacing: .06em; }
.ans__a, .answer p { font-family: var(--ui); font-size: clamp(15px, 1.2vw, 18px); }
.ans__more a { text-decoration-color: var(--line-strong); }
.ans__live, .ans__own { border-top-color: var(--line); }
.ans--v4 .btn--ghost { border-color: var(--green); }
.answer { border-left: 1px solid var(--line); }
.answer__figure { color: var(--green); font-weight: 700; }

/* cards (the five intents): flat tiles, no flip theatre */
.cards-section, .felt, .cat-hero.felt, .nf.felt, .ficha.felt { background: transparent; }
.cards-section::before, .felt::before { display: none; }
.deck-hint { color: var(--text-3); }
.card:hover .card__inner, .card.is-flipped .card__inner, .card:focus-within .card__inner { transform: rotateY(180deg); }
.card__face { background: var(--surface-1); color: var(--text); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 4px 14px rgb(0 0 0 / .25), 0 12px 32px -8px rgb(0 0 0 / .45); overflow: hidden; }
.card__face::before, .card__front::before, .card__face::after { display: none !important; }
.card__front { border: 0; padding: 12px; }
.card__front .card__n { font-family: var(--ui); font-weight: 700; color: var(--text-3); }
.card__front .card__mark { background: var(--red); border-radius: 50%; }
.card__art { border: 0; background: var(--surface-2); border-radius: 6px; box-shadow: none; }
.card__art svg { filter: none; }
.card__name { font-family: var(--display); font-weight: 700; text-transform: none; letter-spacing: -0.01em; background: none; -webkit-text-fill-color: currentColor; color: var(--text); }
.card__back { background: var(--surface-2); border: 1px solid var(--line); }
.card__back .label { display: block; color: #ffffff; font-size: calc(var(--fs-label) + 4px); font-weight: 800; line-height: 1.25; letter-spacing: .04em; padding-bottom: 12px; margin-bottom: 8px; border-bottom: 1px solid var(--line-strong); }
.card__back .label + .card__q, .card__back .label ~ .card__q:first-of-type { border-top: 0; }
.card__back .card__q { padding: 8px; margin: 0 -8px; border-radius: 4px; transition: background var(--t-fast); }
.card__back .card__q:hover, .card__back .card__q:focus-visible { color: var(--text); background: #131E30; border-top-color: transparent; }
.card__back .card__q:hover + .card__q { border-top-color: transparent; }
.card__q { border-top-color: var(--line); }
.card__back { overflow: hidden; }
@media (max-width: 899px) {
  .cards { grid-template-columns: repeat(5, 200px); }
  .card__back { padding: 12px 10px 10px; }
  .card__back .label { font-size: var(--fs-label); padding-bottom: 8px; margin-bottom: 4px; }
  .card__back .card__q { font-size: 12.5px; line-height: 1.3; padding: 6px 8px; }
}
.card__q:hover, .rel a:hover, .qrow b:hover { color: var(--green); }
.card__more { color: var(--green); }
.cat-hero .card__inner, .ficha__card .card__inner, .ficha__card:hover .card__inner { transform: none; }
.intent__mini, .menu-page .intent__mini, .guide__thumb { background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; box-shadow: none; }

/* sections, lists, panels */
.section__head { border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.section__head h2, .paper h2, .editorial h2, .odds__event, .cta h3, .report h3, .callout__k, .paper .rule b, .intent b, .week__kind { font-family: var(--ui); font-weight: 700; font-size: 20px; text-transform: uppercase; letter-spacing: 0; }
.section__head a, .toc li::before, .steps li::before, .paper h2 .k, .editorial h2 .k, .paper .sec-h > .k, .editorial .sec-h > .k, .profile a::after, .links a span, .intent::after, .bigq a::after, .faq summary::after, .report a { color: var(--green); }
.guide { border-bottom-color: var(--line); }
.guide__cat, .kicker-cat { color: #ffffff; font-weight: 600; }
.guide:hover { transform: none; }
.guide:hover .guide__title { text-decoration-color: var(--green); }
.tile, .aside .tile, .aside .panel, .panel, .cta, .week__row, .qrow, .menu-page .acct, .odds, .tile--promo { background: var(--surface-1); border: 1px solid var(--line); border-radius: 8px; box-shadow: none; }
.tile--own, .tile--next { border-left: 1px solid var(--line); }
.qrow:hover, .week__row:hover { background: var(--surface-2); }
.week { gap: 8px; background: transparent; }
.bar { background: var(--surface-3); border-radius: 999px; }
.bar > i { background: var(--green); border-radius: 999px; }
.cta { border-color: var(--line); }
.rel a, .links a, .profile a, .toc li, .facts th, .facts td, .creds li, .odds__head, .odds__market, .odds__foot, .byline, .bigq a, .faq details, .steps li, .sources li, .pager a, .intent, .menu-page .intent, .drawer__head, .menu-page .drawer__head { border-color: var(--line); }
.bigq { border-top: 1px solid var(--line); }
.bigq a { font-family: var(--display); font-weight: 700; text-transform: none; font-size: clamp(18px, 1.8vw, 24px); }
.facts td.n.time, .compare td.time { color: var(--green); }
.compare { background: var(--surface-1); border: 1px solid var(--line); border-radius: 8px; box-shadow: none; overflow: hidden; }
.compare th, .compare td { border-bottom-color: var(--line); }
.compare td { font-weight: 700; font-size: 16px; }
.pager { font-family: var(--money); font-size: 16px; }
.pager a { border-radius: 8px; }
.pager a[aria-current] { color: var(--on-green); background: var(--green); border-color: var(--green); }
.qrow .fig, .counts2 b, .join__fact b, .figure__n, .closing .verified b, .odds__pick b, .ficha__fig b { color: var(--green); font-weight: 700; }
.search-form, .menu-page .search-form { border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface-1); }
.search-form button, .menu-page .search-form button { font-family: var(--ui); font-weight: 700; font-size: 14px; color: var(--green); text-transform: none; letter-spacing: 0; }
.photo, .portrait { background: var(--vip); color: #fff; border-radius: 50%; box-shadow: none; font-family: var(--ui); font-weight: 700; font-size: 64px; }
.meter i { background: var(--surface-3); border-radius: 2px; }
.meter i.on { background: var(--green); }
.odds__pick:hover { background: var(--surface-2); }
.odds__pick[data-dir="up"] b::after { color: var(--status); }
.odds__pick[data-dir="down"] b::after { color: var(--red); }
.stickybar { border-color: var(--line); background: var(--surface-1); }

/* reading body: dark navy block (light surfaces live only in cashier modals) */
.paper { background: var(--ground-2); color: var(--text); border-top: 1px solid var(--line); }
.paper p { font-family: var(--ui); font-size: 16px; line-height: 1.65; }
.steps p, .funcs span, .callout p, .faq details p, .sources li span { color: var(--text-2); }
.callout, .sources, .permit, .report, .paper .rule { border: 1px solid var(--line); border-radius: 8px; background: var(--surface-1); box-shadow: none; }
.callout--ojo { border-color: var(--red); box-shadow: none; }
.callout--ojo .callout__k { color: var(--red); }
.related a:hover { transform: none; box-shadow: none; border-color: var(--green); }
.related a { border: 1px solid var(--line); border-radius: 8px; background: var(--surface-1); }
.pull { border-left: 2px solid var(--green); }
.figure, .closing { background: var(--surface-1); border: 1px solid var(--line); border-radius: 8px; }
.funcs { gap: 8px; background: transparent; border: 0; }
.funcs li { background: var(--surface-1); border: 1px solid var(--line); border-radius: 8px; }
.permit b { font-family: var(--money); font-weight: 700; font-size: clamp(20px, 2.4vw, 28px); }
.paper a[style*="--brand"] { color: var(--green); }
.picado { display: none; }

/* join band: flat, no velvet */
.join { background: var(--surface-1); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 48px; }
.join::before { display: none; }
.join h2, .join #join-h { font-size: clamp(28px, 3.6vw, 44px); font-weight: 800; }
.join__fact { backdrop-filter: none; background: var(--ground); }

/* trust + footer */
.age { border-color: var(--text-2); color: var(--text-2); border-radius: 4px; border-width: 1.5px; }
.footer { background: var(--ground-2); border-top-color: var(--line); }
.footer a { color: var(--green); }
.footer .copy { color: var(--text-3); }

/* drawer */
.drawer { background: var(--ground); }
.drawer__links a, .menu-page .drawer__links a { color: var(--text-2); }
.intent b { font-size: 16px; text-transform: none; }


@media (prefers-reduced-motion: reduce) { .dot { animation: none !important; } }
.ill3d { width: 100%; height: 100%; object-fit: contain; display: block; }
.card__art:has(.ill3d), .intent__mini:has(.ill3d), .guide__thumb:has(.ill3d) { background: #0e1622; padding: 0; overflow: hidden; }

/* =====================================================================
   Green = money only. Green stays on: jackpot / amount / odds / payout figures,
   balance, bonus amounts, and money actions (Regístrate, Depositar, Jugar).
   Everything else goes white or the #5F90E8 interaction blue.
   ===================================================================== */
:root { --accent: #5F90E8; --accent-hover: #7ea6ee; --focus: #5F90E8; }
:focus-visible { outline-color: var(--accent); }

/* kickers, labels, eyebrows -> white */
.ask__kicker, .hero .kicker, .kicker-cat, .guide__cat, .answer__label, .ans__q, .aside .tile .label, .aside .panel__head .label, .creds li b, .pull cite, .odds__head .label, .ticker__tag, .gold, .hi, .verified { color: var(--text); }
.ticker__tag { font-weight: 700; }

/* links, arrows, list markers, "ver más" -> blue */
.section__head a, .card__more, .footer a, .ans__more a, .report a, .paper a[style*="--brand"], .search-form button, .menu-page .search-form button { color: var(--accent); }
.toc li::before, .steps li::before, .paper h2 .k, .editorial h2 .k, .paper .sec-h > .k, .editorial .sec-h > .k, .profile a::after, .links a span, .intent::after, .bigq a::after, .faq summary::after { color: var(--text-3); }
.card__q:hover, .rel a:hover, .qrow b:hover, .guide:hover .guide__title { color: var(--text); }
.guide:hover .guide__title { text-decoration-color: var(--accent); }
.related a:hover { border-color: var(--accent); }
.pull { border-left-color: var(--line-strong); }

/* non-money controls -> neutral */
.askbox__go { background: var(--surface-3); color: var(--text); }
.askbox__go:hover { background: #2a3e60; }
.btn--ghost, .ans--v4 .btn--ghost { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn--ghost:hover { background: rgba(255,255,255,.08); border-color: var(--text-2); }
.btn--paper { background: var(--surface-3); color: var(--text); }
.btn--paper:hover { background: #2a3e60; }
.helpful button:hover { border-color: var(--accent); color: var(--text); }
.pager a[aria-current] { background: var(--surface-3); border-color: var(--line-strong); color: var(--text); }
.avatar--rev { color: var(--text); border-color: var(--line-strong); }
.askbox__ghost::after { background: var(--accent); }
.bar > i, .meter i.on { background: var(--accent); }
.facts td.n.time, .compare td.time { color: var(--text); }
.ans__fig small { color: var(--text-3); }

/* money stays green (explicit, so later rules can't strip it) */
.cell[data-id="jackpot"] .cell__value, .cell.is-changed .cell__value, .ans__fig, .answer__figure, .qrow .fig.fig--money, .odds__pick b, .ficha__fig b, .ticker__item b, .balance { color: var(--green); }
/* facts that are times, counts or permits stay white */
.qrow .fig, .counts2 b, .join__fact b, .figure__n, .closing .verified b, .join .label, .join .kicker { color: var(--text); }
.demo-ribbon { background: var(--surface-3); color: var(--text); border: 1px solid var(--line-strong); border-radius: 4px; }
.btn--primary, .btn--gold { background: var(--green); color: var(--on-green); }


/* latest guides: portrait thumb so the square 3D art fills the tile */
.guide:has(.ill3d) { grid-template-columns: 104px minmax(0,1fr); gap: 20px; align-items: center; }
.guide__thumb:has(.ill3d) { aspect-ratio: 1 / 1; width: 104px; padding: 0; border-radius: 8px; border: 1px solid var(--line); box-shadow: none; overflow: hidden; background: #0e1622; display: block; }
.guide__thumb:has(.ill3d) .ill3d { width: 100%; height: 100%; object-fit: contain; object-position: center; }
@media (max-width: 480px) { .guide:has(.ill3d) { grid-template-columns: 80px minmax(0,1fr); gap: 14px; } .guide__thumb:has(.ill3d) { width: 80px; } }

/* text on green is always #09111d, whatever container link rule is in play */
html body a.btn--primary, html body a.btn--gold, html body button.btn--primary, html body button.btn--gold, html body .btn--primary, html body .btn--gold, html body .odds__foot a.btn, html body .footer a.btn--primary, html body .footer a.btn--gold, html body .paper a.btn--primary, html body .paper a.btn--gold, html body .pager a[aria-current].btn--gold { color: #09111d !important; }
html body .btn--primary *, html body .btn--gold * { color: inherit; }

/* odds block · sportsbook event-row style (compact, filled price tiles) */
html body .odds { margin: 24px 0; background: #1c2433; border: 0; border-radius: 12px; box-shadow: none; color: #fff; overflow: hidden; }
html body .odds__head { padding: 14px 16px 10px; border-bottom: 0; gap: 6px 12px; }
html body .odds__head .label { color: var(--text-3); font-size: 11px; letter-spacing: .08em; width: 100%; }
html body .odds__event { flex: 1 1 auto; min-width: 0; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--ui); font-weight: 700; font-size: 18px; text-transform: none; letter-spacing: 0; }
html body .odds__event span { color: var(--text-3) !important; font-weight: 500; }
html body .odds__meta { font-size: 12px; color: var(--text-2); gap: 8px; min-width: 0; max-width: 100%; overflow: hidden; }
/* TAB-0271: the meta text is its own box so it ends in "…" (text-overflow never applies to a flex box's loose text) */
html body .odds__mtext, html body .odds__meta .stale-line { flex: 1 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
html body .odds__meta .dot { display: none; }
html body .odds__live { font-family: var(--money); font-size: 12px; font-weight: 600; color: var(--status); border: 1.5px solid var(--status); border-radius: 4px; padding: 1px 6px; line-height: 1.4; }
html body .odds__market { grid-template-columns: 112px minmax(0,1fr); gap: 8px; padding: 4px 16px; border-bottom: 0; }
html body .odds__market:last-of-type { padding-bottom: 14px; }
html body .odds__mlabel { font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--text-2); }
html body .odds__mlabel small { color: var(--text-3); font-weight: 500; font-size: 11px; }
/* TAB-0271 (live-states §2 "Line always visible"): the market name shrinks (2 lines, or 1 next to a line), the line never does */
html body .odds__mlabel { min-width: 0; display: flex; flex-direction: column; }
html body .odds__mname { min-width: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
html body .odds__mlabel--line .odds__mname { display: block; white-space: nowrap; text-overflow: ellipsis; }
html body .odds__mlabel .odds__mline { display: block; flex: none; white-space: nowrap; font-family: var(--money); font-variant-numeric: tabular-nums; font-size: 12px; font-weight: 600; color: var(--text); }
html body .odds__picks { gap: 8px; background: transparent; border: 0; }
html body .odds__pick { background: #2a3344; border: 0; border-radius: 6px; min-height: 60px; padding: 8px 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; color: #fff; }
html body .odds__pick:hover { background: #343f53; }
html body .odds__pick span { font-size: 12px; font-weight: 500; color: var(--text-2); max-width: 100%; }   /* TAB-0271: a centred flex item may not outgrow the pick, so a long name ends in an ellipsis instead of being cut on both sides */
/* TAB-0271: pick label = name + line; only the name gets the ellipsis ("Club U… -1.5"), the line never shrinks */
html body .odds__pick .odds__pl { display: flex; justify-content: center; gap: 4px; max-width: 100%; min-width: 0; white-space: nowrap; overflow: visible; text-overflow: clip; }
html body .odds__pick .odds__pn { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
html body .odds__pick .odds__pv { flex: none; overflow: visible; text-overflow: clip; font-family: var(--money); font-variant-numeric: tabular-nums; font-size: 12px; font-weight: 600; color: var(--text); }
html body .odds__pick b { font-family: var(--money); font-weight: 600; font-size: 17px; line-height: 1; color: var(--green); letter-spacing: 0; }
html body .odds__pick[data-dir="up"] b::after { color: var(--status); font-size: 8px; margin-left: 4px; }
html body .odds__pick[data-dir="down"] b::after { color: var(--red); font-size: 8px; margin-left: 4px; }
html body .odds__foot { border-top: 1px solid #263044; padding: 4px 16px; font-size: 11.5px; color: var(--text-3); align-items: center; }
html body .odds__foot > span:first-child { padding-block: 6px; }   /* TAB-0271: text still 10 px from the divider; the 44 px CTA keeps the wide foot at 52 */
html body .odds__foot a:not(.btn) { color: var(--text-2); }
html body .odds__foot a.btn.btn--gold, html body .odds__foot .btn { min-height: 44px; display: inline-flex; align-items: center; padding: 0 12px; font-size: 13px; border-radius: 4px; background: #232c3b; color: #fff !important; }
html body .odds__foot .btn:hover { background: #2a3344; }
html body .tile--next .odds__pick b { font-size: 17px; }
@media (max-width: 599px) { html body .odds__market { grid-template-columns: 1fr; gap: 6px; } html body .odds__pick { min-height: 52px; } html body .odds__meta { margin-left: 0; }
  html body .odds__mlabel { flex-direction: row; align-items: baseline; gap: 6px; }
  html body .odds__mname { display: block; white-space: nowrap; text-overflow: ellipsis; } }

/* board figures scale to their own tile so they never clip, wherever the tile sits */
html body .cell { container-type: inline-size; min-width: 0; }
html body .cell .cell__value { font-size: clamp(22px, 9cqi, 44px); white-space: nowrap; }
html body .cell .cell__value .cell__unit { display: inline; }
html body .cell[data-id="jackpot"] .cell__value { font-size: clamp(22px, 9cqi, 52px); }
html body .cell .cell__unit { font-size: 11px; }

/* blocks that used to be inverted paper: text back to white on navy */
html body .closing, html body .figure, html body .figure b, html body .compare { color: var(--text); }
html body .closing .who b { color: var(--text); }
html body .closing .who span, html body .helpful { color: var(--text-2); }
html body .closing .avatar { background: var(--vip); color: #fff; border: 0; }
html body .closing .avatar--rev { background: transparent; color: var(--text); border: 1.5px solid var(--line-strong); }
html body .closing .verified b { color: var(--text); }

html body .who .avatar, html body .closing .who .avatar { color: #fff; }
html body .closing .who + .who .avatar, html body .closing .who .avatar--rev, html body .avatar--rev { background: transparent; color: #fff; border: 1.5px solid var(--line-strong); }

/* non-money stats on ficha stay white; warning label readable */
html body .ficha__fig b.foil:not(.num) { color: var(--text) !important; }
html body .callout--ojo .callout__k { color: #fff; }
html body .callout--ojo { border-color: var(--red); }

/* official wordmark: 105x43 desktop, compact mark on mobile; "El Tablero" sits beside it after a hairline */
html body .brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
html body .brand__logo { display: block; height: 43px; width: auto; }
html body .brand__logo--sm { display: none; }
html body .brand__tag { display: inline-flex; align-items: center; gap: 12px; font-family: var(--ui); font-size: 15px; font-weight: 700; color: #fff; letter-spacing: 0; white-space: nowrap; }
html body .brand__tag::before { content: ""; width: 1px; height: 24px; background: var(--line-strong); }
@media (max-width: 480px) { html body .brand__logo { display: none; } html body .brand__logo--sm { display: block; height: 32px; } html body .brand__tag { font-size: 14px; } }
/* TAB-0218 (design rev 2.2 §B): from 1024 the brand never shrinks (the nowrap tag spilled over the first menu item); the tag is
   hidden 1024-1199 (the wordmark stays) and the nav pills lose their outer gap 1024-1279, so brand, nav and actions never
   overlap and the page never scrolls sideways, signed in or out, ES and EN. Not session-dependent (session is set after paint). */
@media (min-width: 1024px) { html body .header .brand { flex: none; } }
@media (min-width: 1024px) and (max-width: 1199.98px) { html body .header .brand__tag { display: none; } }
@media (min-width: 1024px) and (max-width: 1279.98px) {
  html body .header .nav { gap: 0; margin-left: 0; }
  html body .header .nav a { padding: 8px 10px; }
}

html body .fomo__tile[data-tile="won"] .v, html body .fomo__tile[data-tile="won"] .v * { color: var(--green); }
html body .reel__s, html body .reel__d.reel__s { overflow: visible; }

/* Home article row (TAB-0197, docs/design/home-row.md rev 2, option C figure card). Server-rendered under section.board.
   Phone: rail, card 78 % so the next one peeks; tablet: 44 %; desktop >= 1200: 3 columns. Fixed 44px top row and 72px figure
   slot (figure or fallback art), so every card has the same height and nothing shifts with the content. */
.hrow { padding: 8px 0 clamp(24px, 4vw, 48px); }
.hrow .section__head { margin-bottom: 16px; }
.hrow .section__head h2 { margin: 0; }
.hrow .section__head a { white-space: nowrap; flex: none; }
@media (max-width: 480px) { .hrow .section__head h2 { font-size: 18px; } }
.hrow__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px;
  grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); padding-block: 2px 4px; }
.hrow__list::-webkit-scrollbar { display: none; }
.hrow__list > li { scroll-snap-align: start; display: flex; min-width: 0; }
@media (min-width: 768px) { .hrow__list { grid-auto-columns: 44%; } }
@media (min-width: 1200px) { .hrow__list { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; margin-inline: 0; padding-inline: 0; }
  .hrow__list:has(> li:nth-child(4):last-child), .hrow__list:has(> li:nth-child(8):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* Cover card (TAB-0256 option A, docs/design/home-row-covers-a.html): the cover leads, full bleed at the top; body = category, title, date. */
.hcard { flex: 1; display: flex; flex-direction: column; gap: 0; padding: 0; min-width: 0; overflow: hidden; color: var(--text); text-decoration: none;
  background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--radius); transition: background var(--t-fast), border-color var(--t-fast); }
.hcard:hover { background: var(--surface-2); border-color: var(--line-strong); }
.hcard:hover .hcard__title { text-decoration: underline; text-underline-offset: 3px; }
.hcard:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
/* Fixed 16:9 box: the height is known before the image arrives (aspect-ratio + width/height attributes), so no shift. */
.hcard__cover { display: block; flex: none; aspect-ratio: 16 / 9; background: var(--ground); border-bottom: 1px solid var(--line); overflow: hidden; }
.hcard__cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Fallback F1 (no cover: a pregunta, or a guía whose cover is not drawn yet): the page's own square art centred on navy, same box. */
.hcard__cover--art { display: grid; place-items: center; }
.hcard__cover--art img, .hcard__cover--art svg { width: 36%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; }
.hcard__body { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; }
.hcard__cat { font-family: var(--ui); font-size: var(--fs-label); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.hcard__title { font-family: var(--ui); font-weight: 600; font-size: 16px; line-height: 1.3; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hcard__date { margin-top: auto; padding-top: 6px; font-family: var(--ui); font-size: var(--fs-meta); color: var(--text-3); }
@media (prefers-reduced-motion: reduce) { .hcard { transition: none; } }

/* Big picture cards (TAB-0341, Ben 1 Dec: "no thumbnails, only pictures"; replaces the TAB-0318 square card pictures).
   Every list (home "Todos los artículos", category pages, hubs, author pages, related cards and games, search results,
   "Para ti") uses the home row card (.hcard): 16:9 picture on top, then category, title, date. Markup: PicCard.astro,
   ItemCard.astro, buscar.astro and lujo.js cardPic(). Grid: 1 column on phones, 2 from 600 px, 3 from 1024 px. */
.pgrid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.pgrid > li { display: flex; min-width: 0; }
.pgrid > li[hidden] { display: none; }
@media (min-width: 600px) { .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
/* Inside the 720 px reading column (related cards, game cards) three columns leave ~210 px cards: two at most there. */
.pgrid--read { margin-top: var(--s-6); }
@media (min-width: 1024px) { .pgrid--read { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
.rail.pgrid { grid-auto-flow: row; grid-auto-columns: auto; overflow: visible; scroll-snap-type: none; padding-bottom: 0; }
/* Lift on hover (transform only, no layout change) and a visible focus ring; the title underline comes from .hcard. */
.pcard { transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast) var(--ease-out), box-shadow var(--t-fast); }
.pcard:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .9); }
.pcard:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.pcard:active { transform: translateY(-1px); }
.pcard .hcard__date { color: var(--text-3); }
@media (prefers-reduced-motion: reduce) { .pcard, .pcard:hover, .pcard:active { transition: none; transform: none; } }
/* Picture box: fixed 16:9 (aspect-ratio + img width/height), so nothing shifts while the image loads. */
.pcard__pic { position: relative; display: block; width: 100%; }
.pcard__pic .pcard__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pcard__pic > picture { display: contents; } /* phone source wrapper (TAB-0341): the img keeps its box */
/* Art (a pregunta's 3D image, a game's art, or the category art when a page has no picture): shown whole over a blurred,
   darkened copy of itself that fills the box, so it reads as a picture, not a small square on navy. */
.pcard__pic--art { display: grid; place-items: center; background: var(--ground-2); }
.pcard__pic--art .pcard__glow { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(22px) saturate(1.3) brightness(.55); transform: scale(1.35); }
.pcard__pic--art .pcard__img { position: relative; width: auto; height: 78%; aspect-ratio: 1 / 1; object-fit: contain; }
/* Search result cards (buscar, TAB-0178 server render): picture on top, then figure, question, answer, source, button. */
.results:has(> .ans--pic) { grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 600px) { .results:has(> .ans--pic) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .results:has(> .ans--pic) { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.ans.ans--pic { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); align-content: start; padding-top: 0; overflow: hidden; border-radius: var(--radius); }
.ans--pic > .pcard__pic { margin: 0 calc(-1 * var(--s-5)); width: calc(100% + 2 * var(--s-5)); border-bottom: 1px solid var(--line); }
