/* =====================================================================
   El Tablero · Winpot blog front end
   Design: kinetic with precision. Depth from light, not borders.
   Every colour, size and motion value is a token so the CTO can retune
   without hunting through rules. Reduced motion disables every animation.
   ===================================================================== */

:root {
  /* ground and surfaces (ink) */
  --ground: #0B0B0C;
  --surface-1: #141415;
  --surface-2: #1C1C1E;
  --surface-3: #262123;
  --line: rgba(244, 239, 230, .08);
  --line-strong: rgba(244, 239, 230, .16);
  --highlight: rgba(244, 239, 230, .06);   /* top-edge light on raised surfaces */

  /* text on ink */
  --text: #F6F6F7;
  --text-2: #B9B0A6;
  --text-3: #7F766F;

  /* brand */
  --brand: #F5333F;
  --brand-deep: #B8202B;
  --marigold: #F5333F;
  --marigold-deep: #B8202B;
  --on-brand: #FFFFFF;

  /* paper (reading surface) */
  --paper: #F6F6F7;
  --paper-2: #EBEBED;
  --paper-text: #0B0B0C;
  --paper-text-2: #4A4340;
  --paper-muted: #6B625C;
  --paper-line: rgba(14, 12, 13, .12);

  /* state */
  --focus: #F5333F;
  --live: #F5333F;

  /* type */
  --display: "Big Shoulders Display", "Barlow Condensed", Impact, sans-serif;
  --ui: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --body: "Source Sans 3", "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;

  /* fluid scale */
  --fs-board: clamp(42px, 5.6vw, 80px);
  --fs-h1: clamp(36px, 5.4vw, 76px);
  --fs-h1-article: clamp(34px, 4.6vw, 64px);
  --fs-h2: clamp(24px, 2.6vw, 34px);
  --fs-card: clamp(18px, 1.8vw, 26px);
  --fs-body: clamp(17px, 1.15vw, 19px);
  --fs-ui: 14px;
  --fs-meta: 12.5px;
  --fs-label: 11px;

  /* spacing (base 4) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px;
  --s-6: 24px; --s-8: 32px; --s-10: 40px; --s-12: 48px; --s-16: 64px; --s-20: 80px;

  /* layout */
  --max: 1280px;
  --measure: 720px;
  --gutter: clamp(16px, 3vw, 40px);

  /* motion */
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.4, .64, 1);
  --t-fast: 160ms;
  --t-base: 280ms;
  --t-slow: 560ms;
  --t-reel: 900ms;

  --radius: 0px;       /* hard corners everywhere, by design */
  --radius-pill: 999px;
}

/* --------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* type utilities */
.display { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: -.005em; line-height: .95; text-wrap: balance; }
.label { font-family: var(--ui); font-size: var(--fs-label); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.meta { font-family: var(--ui); font-size: var(--fs-meta); font-weight: 500; color: var(--text-2); }
.num { font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------- header */
.header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--ground) 82%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header__row { display: flex; align-items: center; gap: var(--s-6); height: 64px; }
.brand { display: flex; align-items: baseline; gap: var(--s-2); text-decoration: none; white-space: nowrap; }
.brand__word { font-family: var(--ui); font-weight: 800; font-size: 18px; letter-spacing: .02em; }
.brand__tag { font-family: var(--display); font-weight: 800; font-size: 18px; letter-spacing: .02em; color: var(--brand); text-transform: uppercase; }
@media (max-width: 599px) { .header .btn--ghost.only-closed { display: none; } .brand__tag { display: none; } }
[data-desktop-search] { display: none !important; }
@media (min-width: 1180px) { [data-desktop-search] { display: flex !important; width: 240px; border-width: 1px; border-color: var(--line-strong); } [data-desktop-search] input { padding: 8px 12px; font-size: 14px; } [data-desktop-search] button { font-size: 13px; padding: 0 12px; } }
.nav { display: none; gap: var(--s-6); margin-left: var(--s-4); }
.nav a { font-family: var(--ui); font-size: var(--fs-ui); font-weight: 600; color: var(--text-2); text-decoration: none; padding: 6px 0; position: relative; white-space: nowrap; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--brand); transition: right var(--t-base) var(--ease-out); }
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }
.nav a[aria-current="page"] { color: var(--text); }
.header__actions { margin-left: auto; display: flex; align-items: center; gap: var(--s-3); }
.menu-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 22px; height: 2px; background: var(--text); position: relative; content: ""; }
.menu-btn span::before { position: absolute; top: -7px; }
.menu-btn span::after { position: absolute; top: 7px; }
@media (min-width: 1024px) { .nav { display: flex; } .menu-btn { display: none; } }

/* session-aware header bits */
[data-session="open"] .only-closed { display: none !important; }
[data-session="closed"] .only-open { display: none !important; }
.balance { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: .01em; }
.balance small { font-family: var(--ui); font-size: 11px; font-weight: 600; color: var(--text-3); margin-left: 4px; }
.avatar { width: 36px; height: 36px; display: grid; place-items: center; background: var(--marigold); color: var(--ground); font-family: var(--display); font-weight: 900; font-size: 18px; }

/* ------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 44px; padding: 0 var(--s-5);
  font-family: var(--ui); font-weight: 700; font-size: 13.5px; letter-spacing: .01em;
  text-decoration: none; white-space: nowrap;
  transition: transform var(--t-fast) var(--ease-out), box-shadow var(--t-base) var(--ease-out), background var(--t-fast);
}
.btn--primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 8px 24px -12px rgba(245, 51, 63, .7); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -12px rgba(245, 51, 63, .85); }
.btn--primary:active { transform: translateY(0); }
.btn--ghost { border: 1px solid var(--line-strong); color: var(--text); background: var(--surface-1); }
.btn--ghost:hover { border-color: var(--text-2); }
.btn--sm { min-height: 36px; padding: 0 var(--s-4); font-size: 12.5px; }
.btn--paper { background: var(--paper-text); color: var(--paper); }

/* ------------------------------------------------------------- board */
.board { position: relative; isolation: isolate; padding: var(--s-8) 0 var(--s-6); overflow: hidden; }
.board::before {                 /* slow marigold breath behind the numbers */
  content: ""; position: absolute; inset: -40% -10% auto; height: 140%;
  background: radial-gradient(60% 55% at 22% 40%, rgba(245,51,63, .16), transparent 70%),
              radial-gradient(40% 50% at 78% 30%, rgba(245, 51, 63, .10), transparent 70%);
  z-index: -1; animation: breathe 9s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes breathe { from { transform: translate3d(-2%, 0, 0) scale(1); opacity: .85; } to { transform: translate3d(2%, 1%, 0) scale(1.06); opacity: 1; } }
.board__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.board__grid[data-count="3"] > :last-child { grid-column: 1 / -1; }
.board__grid[data-count="1"] { grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .board__grid { grid-template-columns: repeat(var(--n, 4), 1fr); }
  .board__grid[data-count="3"] > :last-child { grid-column: auto; }
}
.cell {
  position: relative; background: var(--ground); padding: var(--s-6) var(--s-5) var(--s-5);
  min-width: 0;
  transition: background var(--t-base);
}
.cell::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, var(--highlight), transparent); }
.cell__label { margin-bottom: var(--s-3); }
.cell__value { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .18em; row-gap: 2px; font-family: var(--display); font-weight: 800; font-size: var(--fs-board); line-height: .9; letter-spacing: -.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.cell__unit { font-size: .34em; font-weight: 700; color: var(--text-3); letter-spacing: .02em; }
.cell.is-changed .cell__value { color: var(--marigold); transition: color 1.2s var(--ease-out); }
.cell__stamp { display: flex; align-items: center; gap: var(--s-2); margin-top: var(--s-3); }
/* Reserved board (a feed is expected, TAB-0101): placeholder tiles hold the final size until lujo.js swaps in the cells. */
.cell--ph > * { visibility: hidden; }
.board[data-reserve] .fomo__tile .v { min-block-size: 1lh; }
/* Stale state (TAB-0208): after a reserved board painted, a failed or stale feed keeps every box (no shift) and shows one quiet
   line instead of figures: each tile keeps its label and the line takes the figure's place. The line is absolutely placed
   so it never adds height, and wraps inside its box (fit.js sees no overflow). */
.stale-line { font-family: var(--ui); font-size: var(--fs-meta); font-weight: 500; line-height: 1.35; letter-spacing: 0; text-transform: none; font-variant-numeric: normal; white-space: normal; color: var(--text-3); }
/* Same height in every state: a placeholder, a stale and a filled tile share their markup and data-id, and the stamp takes a
   fixed number of lines for its tile's width (one, two on a narrow tile), whatever text it holds, so a late or returning
   feed changes no tile's height (TAB-0208). */
.board[data-reserve] .cell__stamp .meta { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden; min-block-size: 1lh; }
@container (max-width: 179px) { .board[data-reserve] .cell__stamp .meta { -webkit-line-clamp: 2; min-block-size: 2lh; } }
.cell--stale .cell__label { visibility: visible; }
.cell--stale .cell__stamp { position: relative; }
.cell--stale .cell__stamp .stale-line { position: absolute; inset: auto 0 0; visibility: visible; }
.fomo__tile.is-stale > * { visibility: hidden; }
.fomo__tile.is-stale:not([data-tile="promo"]) > .k { visibility: visible; }
.fomo__tile.is-stale .v { position: relative; }
html body .fomo__tile.is-stale .v .stale-line { position: absolute; inset: 50% 0 auto; transform: translateY(-50%); visibility: visible; color: var(--text-3); }
/* Live states (TAB-0027, docs/design/live-states.md). Every state keeps the filled box; lujo.js removes the figures from the DOM. */
/* §1 ticker stale / empty / failed: the bar keeps its reserved height; one quiet line, nothing scrolls. */
.ticker.is-stale .ticker__track { animation: none; transform: none; width: auto; align-items: center; padding-inline: var(--s-4); }
.ticker.is-stale .ticker__track::before { content: none; }
.ticker.is-stale .stale-line { white-space: nowrap; }
.ticker.is-stale .ticker__pause { display: none; }
/* §2 stale odds = the frozen failed shell: placeholder rows, no price, no line, no link; live badge and CTA hidden. */
.odds--ph .odds__pick, .odds--ph .odds__pick:hover { background: var(--surface-2); cursor: default; }
.odds--ph .odds__pick > * { min-block-size: 1lh; visibility: hidden; }   /* empty boxes keep the filled pick height */
.odds--ph .odds__mlabel .mo-skel { display: inline-block; height: .9em; width: 8ch; vertical-align: middle; background: var(--surface-2); border-radius: 4px; }
.odds.is-stale { display: flex; flex-direction: column; }   /* lujo.js keeps the filled height; spare space sits above the foot */
.odds.is-stale .odds__foot { margin-top: auto; }
.odds.is-stale .odds__pick { pointer-events: none; }
.odds.is-stale .odds__pick b::after { content: none; }
.odds.is-stale .odds__live { display: none; }
.odds.is-stale .odds__foot .btn { visibility: hidden; }
.odds.is-stale .mo-skel, .odds.is-failed .mo-skel { animation: none; }
/* §2 odds slot (TAB-0268): the server renders the loading shell (OddsSlot.astro) when a matches feed is expected; the slot
   holds the margins and the filled card's height, so loading, filled, closed, stale and failed never move the page.
   The height follows the slot's own width (container query): the head and the foot wrap in a narrow column (the main
   column next to the aside at 1024 is ~535 px), so each band reserves the largest filled card measured in it (ES and EN, long-names fixture) + 8 px headroom (TAB-0271). */
.odds-slot[data-odds] { margin-block: 24px; container-type: inline-size; }
html body .odds-slot[data-odds] > .odds { margin: 0; display: flex; flex-direction: column; min-height: 512px; }   /* < 600 viewport: 3 stacked markets (fixture 488.5, DEMO 503.5 + 8) */
@container (max-width: 339px) { html body .odds-slot[data-odds] > .odds { min-height: 536px; } }   /* 320 phones: fixture 527.7 + 8 */
@media (min-width: 600px) {                                                                  /* label column + picks */
  html body .odds-slot[data-odds] > .odds { min-height: 370px; }                             /* box >= 560 px: fixture 361.2 + 8 (head wraps) */
  @container (max-width: 559px) { html body .odds-slot[data-odds] > .odds { min-height: 408px; } }   /* 1024 column (535 px): ES fixture and DEMO 399.6 + 8 (TAB-0271: the 44 px CTA wraps under the note) */
}
.odds-slot[data-odds] .odds__foot { margin-top: auto; }                                     /* spare height sits above the foot */
.odds-slot[data-odds] .odds__meta { min-width: 0; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }   /* head never adds a line */
.odds--ph .odds__event .mo-skel, .odds--ph .odds__meta .mo-skel { display: inline-block; height: .9em; width: 14ch; vertical-align: middle; background: var(--surface-2); border-radius: 4px; }
.odds--ph .odds__meta .mo-skel { width: 22ch; }
/* closed market: one centred message where the rows were */
.odds__closed { flex: 1; display: grid; place-content: center; gap: 4px; text-align: center; padding: var(--s-5); }
.odds__closed b { font-family: var(--ui); font-weight: 700; font-size: var(--fs-body, 16px); color: var(--text); }
.odds__closed span { font-family: var(--ui); font-size: var(--fs-meta); color: var(--text-3); }
/* §3b "jugando ahora": the line keeps its box while loading (hidden) and when stale (stale line only). */
.ficha__now--live { min-height: 32px; }
.ficha__now--live:has([data-live="playingNow"]:empty):not(.is-stale) { visibility: hidden; }
@media (max-width: 599px) { .ficha__now--live { flex-basis: 100%; } }
.ficha__now.is-stale > :not(.stale-line) { display: none; }
.ficha__cta { min-height: 44px; }
/* §3c promo over: the emptied countdown and the CTAs keep their place, the ended line sits where the countdown was. */
.tile--promo.is-over .countdown { position: relative; visibility: hidden; }
[data-countdown] b:empty::before { content: "\200b"; position: static; clip-path: none; transform: none; animation: none; }   /* an empty box keeps its line (no digit): before the first paint (§0, no "--", TAB-0268) and once the promo is over */
.tile--promo.is-over .countdown .stale-line { position: absolute; inset: 50% auto auto 0; transform: translateY(-50%); white-space: nowrap; visibility: visible; }
.tile--promo.is-over .btn { visibility: hidden; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgba(245, 51, 63, .6); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(245, 51, 63, .55); } 70% { box-shadow: 0 0 0 9px rgba(245, 51, 63, 0); } 100% { box-shadow: 0 0 0 0 rgba(245, 51, 63, 0); } }

/* reels: each digit is a strip of 0-9 translated to the target */
.reel { display: inline-flex; overflow: hidden; height: 1em; line-height: 1; vertical-align: bottom; }
.reel__d { position: relative; width: .56em; height: 1em; overflow: hidden; }
.reel__d > span { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; will-change: transform; transition: transform var(--t-reel) var(--ease-spring); }
.reel__d > span > i { display: block; height: 1em; font-style: normal; text-align: center; }
.reel__s { width: auto; padding: 0 .02em; }

/* demo ribbon (config.DEMO) */
.demo-ribbon { position: fixed; right: 12px; bottom: 12px; z-index: 60; background: var(--marigold); color: var(--ground); font-family: var(--ui); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 8px 12px; box-shadow: 0 8px 24px -8px rgba(0,0,0,.6); display: flex; gap: 10px; align-items: center; }
.demo-ribbon button { text-decoration: underline; font-weight: 700; }

/* ------------------------------------------------------------- hero */
.hero { padding: var(--s-12) 0 var(--s-8); }
@media (min-width: 900px) { .hero { padding: var(--s-16) 0 var(--s-12); } .hero__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--s-12); align-items: end; } }
.hero h1 { font-size: var(--fs-h1); }
.hero__lead { font-family: var(--ui); font-size: clamp(16px, 1.3vw, 19px); line-height: 1.55; color: var(--text-2); max-width: 44ch; margin-top: var(--s-5); }
.hero .kicker { color: var(--marigold); margin-bottom: var(--s-4); display: block; }

/* ------------------------------------------------------------- papel picado */
.picado { position: relative; height: 26px; background: var(--ground); }
.picado > i { position: absolute; inset: 0; background: var(--surface-1);
  -webkit-mask: radial-gradient(circle at 8px 0, transparent 5px, #000 5.5px) 0 0 / 16px 100%, linear-gradient(#000, #000) 0 8px / 100% 100% no-repeat;
  mask: radial-gradient(circle at 8px 0, transparent 5px, #000 5.5px) 0 0 / 16px 100%, linear-gradient(#000, #000) 0 8px / 100% 100% no-repeat;
  -webkit-mask-composite: source-over; mask-composite: add; }
.picado > i + i { opacity: .55; transform: translateY(6px); }
.picado--paper > i { background: var(--paper); }

/* ------------------------------------------------------------- cards */
.cards-section { background: var(--surface-1); padding: var(--s-8) 0 var(--s-10); }
.cards { display: grid; grid-template-columns: repeat(5, minmax(150px, 1fr)); gap: var(--s-5); overflow-x: auto; padding-bottom: var(--s-2); scroll-snap-type: x mandatory; scrollbar-width: none; }
.cards::-webkit-scrollbar { display: none; }
@media (max-width: 899px) { .cards { grid-template-columns: repeat(5, 152px); } }
.card { perspective: 1200px; scroll-snap-align: start; }
.card__inner {
  position: relative; aspect-ratio: 5 / 7; transform-style: preserve-3d;
  transition: transform var(--t-slow) var(--ease-spring), filter var(--t-base);
  will-change: transform;
}
.card:hover .card__inner, .card.is-flipped .card__inner, .card:focus-within .card__inner { transform: translateY(-8px) rotateY(180deg); }
.card__face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: var(--paper); color: var(--paper-text);
  display: flex; flex-direction: column;
  box-shadow: 0 30px 50px -30px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255,255,255,.7);
}
.card__face::before {            /* foil edge */
  content: ""; position: absolute; inset: 0; padding: 3px; pointer-events: none;
  background: conic-gradient(from var(--foil, 0deg), #0B0B0C 0 20%, var(--marigold) 32%, #FFF1C9 38%, var(--marigold) 44%, #0B0B0C 60%, #0B0B0C);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity var(--t-base);
}
.card:hover .card__face::before, .card.is-flipped .card__face::before, .card:focus-within .card__face::before { opacity: 1; animation: foil 2.2s linear infinite; }
@keyframes foil { to { --foil: 360deg; } }
@property --foil { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.card__front { padding: 10px 10px 12px; }
.card__front .card__n { font-family: var(--display); font-weight: 900; font-size: 15px; }
.card__front .card__mark { position: absolute; top: 10px; right: 10px; width: 10px; height: 10px; background: var(--brand); }
.card__art { flex: 1; min-height: 0; margin: 8px 0; border: 2px solid var(--paper-text); display: grid; place-items: center; padding: 10%; background: linear-gradient(180deg, #FBF8F1, var(--paper)); }
.card__art svg { width: 100%; height: 100%; filter: drop-shadow(0 6px 10px rgba(27, 23, 24, .18)); }
.card__name { font-family: var(--display); font-weight: 900; font-size: var(--fs-card); text-transform: uppercase; text-align: center; letter-spacing: .01em; }
.card__back { transform: rotateY(180deg); background: var(--ground); color: var(--text); padding: 14px 12px 12px; border: 3px solid var(--paper); }
.card__back .label { color: var(--marigold); margin-bottom: 8px; }
.card__q { display: block; font-family: var(--ui); font-size: 13px; font-weight: 600; line-height: 1.35; padding: 8px 0; border-top: 1px solid var(--line-strong); color: var(--text); text-decoration: none; }
.card__q:hover { color: var(--marigold); }
.card__more { margin-top: auto; font-family: var(--ui); font-size: 12px; font-weight: 700; color: var(--brand); text-decoration: none; }
.card__sub { margin-top: var(--s-3); font-family: var(--ui); font-size: 13px; color: var(--text-2); line-height: 1.35; }

/* ------------------------------------------------------------- trust */
.trust { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; padding: var(--s-5) 0; font-family: var(--ui); font-size: 13px; color: var(--text-2); }
.trust b { color: var(--text); font-weight: 600; }
.trust a { color: var(--text); }
.age { display: inline-grid; place-items: center; width: 30px; height: 30px; border: 2px solid var(--brand); color: var(--brand); font-family: var(--ui); font-weight: 800; font-size: 11px; }

/* ------------------------------------------------------------- guide list */
.section { padding: var(--s-10) 0; }
/* A section that is also the .wrap (home Para ti / Esta semana) keeps the wrap's side gutter (TAB-0341). */
.section.wrap { padding-left: var(--gutter); padding-right: var(--gutter); }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-4); padding-bottom: var(--s-3); border-bottom: 2px solid var(--text); margin-bottom: var(--s-2); }
.section__head h2 { font-size: var(--fs-h2); }
.section__head a { font-family: var(--ui); font-size: 13px; font-weight: 700; color: var(--brand); text-decoration: none; }
.guides { display: grid; grid-template-columns: 1fr; }
@media (min-width: 900px) { .guides { grid-template-columns: 1fr 1fr; column-gap: var(--s-12); } }
.guide { display: grid; grid-template-columns: 96px 1fr; gap: var(--s-4); padding: var(--s-5) 0; border-bottom: 1px solid var(--line); align-items: center; text-decoration: none; color: inherit;
  transition: transform var(--t-fast) var(--ease-out); }
.guide:hover { transform: translateX(4px); }
.guide__thumb { aspect-ratio: 4 / 3; background: var(--paper); display: grid; place-items: center; padding: 10px; box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 10px 20px -14px rgba(0,0,0,.8); }
.guide__thumb svg { width: 100%; height: 100%; }
.guide__cat { display: block; font-family: var(--ui); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--marigold); }
.guide__title { display: block; font-family: var(--ui); font-weight: 600; font-size: 16.5px; line-height: 1.3; color: var(--text); margin-top: 4px; }
.guide:hover .guide__title { text-decoration: underline; text-decoration-color: var(--brand); text-underline-offset: 3px; }
.guide__meta { display: block; margin-top: 6px; }

/* ------------------------------------------------------------- personal (session open) */
.personal { padding: var(--s-6) 0 0; }
.tile { position: relative; background: var(--surface-2); padding: var(--s-5); box-shadow: inset 0 1px 0 var(--highlight); }
.tile--own { border-left: 3px solid var(--marigold); }
.bar { height: 6px; background: var(--surface-3); margin-top: var(--s-3); overflow: hidden; }
.bar > i { display: block; height: 100%; width: var(--w, 0%); background: var(--brand); transition: width var(--t-slow) var(--ease-out); }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: var(--s-4); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--s-2); scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.week { display: grid; gap: 1px; background: var(--line); }
.week__row { display: grid; grid-template-columns: 84px 1fr auto; gap: var(--s-4); align-items: center; background: var(--surface-2); padding: var(--s-4) var(--s-5); text-decoration: none; color: inherit; }
.week__row:hover { background: var(--surface-3); }
.week__kind { font-family: var(--display); font-weight: 800; font-size: 14px; letter-spacing: .06em; color: var(--brand); text-transform: uppercase; }
.week__title { font-family: var(--ui); font-weight: 600; font-size: 15px; }
.week__when { color: var(--text-3); font-size: 13px; font-family: var(--ui); }

/* ------------------------------------------------------------- article top */
.article-top { padding: var(--s-8) 0 var(--s-6); }
.crumbs { display: flex; flex-wrap: wrap; gap: var(--s-2); font-family: var(--ui); font-size: 13px; color: var(--text-3); margin-bottom: var(--s-5); }
.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs li + li::before { content: "›"; margin-right: var(--s-2); color: var(--text-3); }
.article-top h1 { font-size: var(--fs-h1-article); max-width: 18ch; }
@media (min-width: 1024px) { .article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: var(--s-12); align-items: start; } .aside { position: sticky; top: 80px; } }
.answer { position: relative; margin-top: var(--s-6); padding: var(--s-5) var(--s-5) var(--s-5) var(--s-6); background: var(--surface-1); border-left: 3px solid var(--brand); box-shadow: inset 0 1px 0 var(--highlight), 0 30px 60px -40px rgba(0,0,0,.9); }
.answer__label { color: var(--brand); }
.answer__figure { position: absolute; top: var(--s-4); right: var(--s-5); font-family: var(--display); font-weight: 800; font-size: clamp(24px, 3vw, 40px); color: var(--marigold); line-height: 1; }
.answer p { font-size: clamp(17px, 1.3vw, 20px); line-height: 1.5; margin-top: var(--s-3); max-width: 62ch; padding-right: 96px; }
.byline { display: grid; grid-template-columns: 44px 1fr; gap: var(--s-3); align-items: center; padding: var(--s-5) 0; border-bottom: 1px solid var(--line); margin-top: var(--s-5); }
.byline__name { font-family: var(--ui); font-weight: 700; font-size: 15px; }
.byline__name a { text-decoration: none; }
.byline__role, .byline__rev { font-family: var(--ui); font-size: 13px; color: var(--text-2); }
.dates { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); font-family: var(--ui); font-size: 13px; color: var(--text-2); }
.dates b { color: var(--text); font-weight: 600; }
.panel { background: var(--surface-1); box-shadow: inset 0 1px 0 var(--highlight); }
.panel__head { padding: var(--s-4) var(--s-5) var(--s-3); border-bottom: 1px solid var(--line); }
.facts { width: 100%; border-collapse: collapse; }
.facts th, .facts td { text-align: left; padding: var(--s-3) var(--s-5); border-bottom: 1px solid var(--line); font-family: var(--ui); font-size: 13.5px; }
.facts th { color: var(--text-3); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
.facts td:first-child { font-weight: 600; color: var(--text); }
.facts td.n { font-family: var(--display); font-weight: 800; font-size: 20px; color: var(--text); font-variant-numeric: tabular-nums; }
.facts td.n.time { color: var(--marigold); }
.toc { padding: var(--s-4) var(--s-5); }
.toc ol { counter-reset: t; }
.toc li { counter-increment: t; display: grid; grid-template-columns: 28px 1fr; gap: var(--s-3); padding: var(--s-2) 0; border-top: 1px solid var(--line); font-family: var(--ui); font-size: 14px; }
.toc li::before { content: counter(t, decimal-leading-zero); font-family: var(--display); font-weight: 800; color: var(--brand); }
.toc a { text-decoration: none; color: var(--text-2); }
.toc a:hover { color: var(--text); }
.cta { padding: var(--s-5); border: 1px solid var(--brand); display: grid; gap: var(--s-3); }
.cta h3 { font-family: var(--display); font-size: 22px; text-transform: uppercase; }
.cta p { font-family: var(--ui); font-size: 14px; color: var(--text-2); }

/* ------------------------------------------------------------- paper body */
.paper { background: var(--paper); color: var(--paper-text); padding: var(--s-10) 0 var(--s-16); }
.paper .wrap--read { max-width: var(--measure); }
.paper h2 { font-family: var(--display); font-size: var(--fs-h2); text-transform: uppercase; margin: var(--s-10) 0 var(--s-4); display: flex; gap: var(--s-3); align-items: baseline; }
.paper h2 .k { color: var(--brand); font-size: .8em; }
/* Section number outside the heading (TAB-0281): the same row, gap and margins as the old "01" inside the h2 */
.paper .sec-h, .editorial .sec-h { display: flex; gap: var(--s-3); align-items: baseline; margin: var(--s-10) 0 var(--s-4); }
.editorial .sec-h { margin: var(--s-8) 0 var(--s-3); }
.paper .sec-h > h2, .editorial .sec-h > h2 { margin: 0; }
.paper .sec-h > .k, .editorial .sec-h > .k { flex: none; color: var(--brand); font-family: var(--ui); font-weight: 700; font-size: 16px; text-transform: uppercase; line-height: 1.2; }
.paper p { margin-bottom: var(--s-4); font-size: var(--fs-body); line-height: 1.65; }
.paper strong { font-weight: 700; }
.steps { counter-reset: s; margin: var(--s-6) 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 48px 1fr; gap: var(--s-4); padding: var(--s-4) 0; border-top: 1px solid var(--paper-line); }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--display); font-weight: 800; font-size: 28px; color: var(--brand); line-height: 1; }
.steps b { display: block; font-family: var(--ui); font-weight: 700; font-size: 16px; margin-bottom: 2px; }
.steps p { margin: 0; color: var(--paper-text-2); font-size: 16px; }
.callouts { display: grid; gap: var(--s-4); margin: var(--s-6) 0; }
@media (min-width: 700px) { .callouts { grid-template-columns: 1fr 1fr; } }
.callout { padding: var(--s-4) var(--s-5); border: 2px solid var(--paper-text); box-shadow: 4px 4px 0 var(--paper-text); }
.callout--ojo { border-color: var(--brand); box-shadow: 4px 4px 0 var(--brand); }
.callout__k { font-family: var(--display); font-weight: 900; font-size: 18px; text-transform: uppercase; margin-bottom: 4px; }
.callout--ojo .callout__k { color: var(--brand); }
.callout p { margin: 0; font-size: 15.5px; }
.pull { margin: var(--s-6) 0; padding-left: var(--s-5); border-left: 4px solid var(--brand); font-style: italic; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.45; }
.pull cite { display: block; font-style: normal; font-family: var(--ui); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); margin-top: var(--s-2); }
.figure { margin: var(--s-6) 0; background: var(--paper-text); color: var(--paper); padding: var(--s-5); display: grid; grid-template-columns: auto 1fr; gap: var(--s-5); align-items: center; }
.figure__n { font-family: var(--display); font-weight: 800; font-size: clamp(44px, 6vw, 72px); color: var(--marigold); line-height: 1; }
.figure__n small { font-size: .35em; color: var(--text-2); }
.figure p { margin: 0; font-family: var(--ui); font-size: 14px; color: var(--text-2); }
.figure b { color: var(--paper); display: block; font-size: 15px; }
/* TAB-0095: fit.js keeps the number on one line; the unit may wrap, the text column never collapses, and phones stack the block */
.figure > * { min-width: 0; }
.figure__n small { white-space: normal; }
@media (max-width: 479px) { .figure { grid-template-columns: minmax(0, 1fr); gap: var(--s-3); } }
.compare { width: 100%; border-collapse: collapse; margin: var(--s-6) 0; background: var(--paper-text); color: var(--paper); font-family: var(--ui); font-size: 14px; }
.compare th, .compare td { padding: var(--s-3) var(--s-4); border-bottom: 1px solid rgba(244,239,230,.12); text-align: right; }
.compare th:first-child, .compare td:first-child { text-align: left; color: var(--text-2); font-weight: 500; }
.compare thead th { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.compare td { font-family: var(--display); font-weight: 800; font-size: 18px; }
.compare td.time { color: var(--marigold); }
.compare tfoot td { font-family: var(--ui); font-size: 12px; font-weight: 500; color: var(--text-3); text-align: left; }
.faq { margin: var(--s-6) 0; }
.faq details { border-top: 1px solid var(--paper-line); }
.faq summary { cursor: pointer; padding: var(--s-4) 0; font-family: var(--ui); font-weight: 700; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: var(--s-4); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); font-size: 22px; color: var(--brand); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: var(--s-4); color: var(--paper-text-2); }
.sources { margin: var(--s-8) 0; border: 2px solid var(--paper-text); padding: var(--s-5); }
.sources h3 { font-family: var(--ui); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--paper-muted); margin-bottom: var(--s-3); }
.sources li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: var(--s-2) 0; border-top: 1px solid var(--paper-line); font-size: 15px; }
.sources li b { display: block; font-family: var(--ui); font-weight: 700; font-size: 15px; }
.sources li span { display: block; margin-top: 2px; color: var(--paper-muted); font-size: 13.5px; }
.sources li em { font-style: normal; font-family: var(--ui); font-size: 12.5px; color: var(--paper-muted); }
.closing { margin: var(--s-8) 0 0; background: var(--paper-text); color: var(--paper); padding: var(--s-5); display: grid; gap: var(--s-4); }
@media (min-width: 700px) { .closing { grid-template-columns: 1fr 1fr auto; align-items: center; } }
.closing .who { display: flex; gap: var(--s-3); align-items: center; font-family: var(--ui); font-size: 14px; }
.closing .who b { display: block; font-weight: 700; }
.closing .who span { color: var(--text-2); font-size: 13px; }
.closing .verified { font-family: var(--ui); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.closing .verified b { display: block; font-family: var(--display); font-size: 26px; color: var(--marigold); letter-spacing: 0; text-transform: none; }
.helpful { display: flex; gap: var(--s-2); align-items: center; font-family: var(--ui); font-size: 13px; }
.helpful button { min-width: 44px; min-height: 36px; border: 1px solid rgba(244,239,230,.3); padding: 0 12px; font-weight: 700; }
.helpful button:hover { border-color: var(--marigold); color: var(--marigold); }
.related { display: grid; gap: var(--s-4); margin-top: var(--s-6); }
@media (min-width: 700px) { .related { grid-template-columns: repeat(3, 1fr); } }
.related a { display: grid; gap: var(--s-2); text-decoration: none; color: inherit; border: 2px solid var(--paper-text); padding: var(--s-3); transition: transform var(--t-fast) var(--ease-out), box-shadow var(--t-fast); }
.related a:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--paper-text); }
.related svg { width: 100%; aspect-ratio: 4/3; height: auto; }
.related b { font-family: var(--ui); font-weight: 700; font-size: 14.5px; line-height: 1.3; }
.related span { font-family: var(--ui); font-size: 12px; color: var(--paper-muted); }

/* ------------------------------------------------------------- category / author / search / 404 / editorial */
.cat-hero { display: grid; gap: var(--s-8); padding: var(--s-8) 0; }
@media (min-width: 900px) { .cat-hero { grid-template-columns: 300px 1fr; align-items: start; } }
.cat-hero .card { max-width: 300px; }
.cat-hero .card:hover .card__inner { transform: none; }
.cat-hero h1 { font-size: var(--fs-h1-article); }
.cat-hero .lead { font-family: var(--ui); color: var(--text-2); font-size: 17px; margin-top: var(--s-4); max-width: 52ch; }
.bigq { margin-top: var(--s-6); border-top: 2px solid var(--text); }
.bigq a { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); padding: var(--s-4) 0; border-bottom: 1px solid var(--line); font-family: var(--display); font-weight: 800; font-size: clamp(20px, 2.2vw, 30px); text-transform: uppercase; text-decoration: none; color: var(--text); }
.bigq a::after { content: "→"; color: var(--brand); transition: transform var(--t-fast) var(--ease-out); }
.bigq a:hover::after { transform: translateX(6px); }
.author-hero { display: grid; gap: var(--s-6); padding: var(--s-8) 0; }
@media (min-width: 900px) { .author-hero { grid-template-columns: 240px 1fr 300px; align-items: start; } }
.portrait { aspect-ratio: 1; background: var(--marigold); display: grid; place-items: center; font-family: var(--display); font-weight: 900; font-size: 96px; color: var(--ground); }
.author-hero h1 { font-size: var(--fs-h1-article); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-4); }
.chip { font-family: var(--ui); font-size: 12.5px; font-weight: 600; padding: 6px 10px; border: 1px solid var(--line-strong); }
.profile { padding: var(--s-5); }
.profile a { display: flex; justify-content: space-between; padding: var(--s-3) 0; border-top: 1px solid var(--line); text-decoration: none; font-family: var(--ui); font-size: 14px; font-weight: 600; }
.profile a::after { content: "↗"; color: var(--brand); }
.counts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.counts b { display: block; font-family: var(--display); font-weight: 800; font-size: 40px; line-height: 1; }
.counts span { font-family: var(--ui); font-size: 12.5px; color: var(--text-2); }
.search-form { display: flex; gap: 0; border: 2px solid var(--text); background: var(--surface-1); }
.search-form input { flex: 1; min-width: 0; background: none; border: 0; color: var(--text); font-family: var(--ui); font-size: 16px; padding: 12px 14px; }
.search-form input::placeholder { color: var(--text-3); }
.search-form button { padding: 0 16px; font-family: var(--display); font-weight: 800; font-size: 16px; color: var(--brand); text-transform: uppercase; letter-spacing: .04em; }
.search-form--big { max-width: 640px; }
.empty { padding: var(--s-10) 0; }
.editorial h2 { font-family: var(--display); text-transform: uppercase; font-size: var(--fs-h2); margin: var(--s-8) 0 var(--s-3); display: flex; gap: var(--s-3); }
.editorial h2 .k { color: var(--brand); }
.permit { border: 2px solid var(--paper-text); padding: var(--s-5); margin-top: var(--s-8); }
.permit b { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(26px, 3vw, 40px); }
.report { border: 2px solid var(--brand); padding: var(--s-4) var(--s-5); margin-top: var(--s-6); }
.report h3 { font-family: var(--display); text-transform: uppercase; font-size: 20px; margin-bottom: var(--s-2); }
.report a { color: var(--brand); font-weight: 700; }

/* ------------------------------------------------------------- drawer menu */
.drawer { position: fixed; inset: 0; z-index: 50; background: var(--ground); transform: translateX(100%); transition: transform var(--t-base) var(--ease-out); overflow: auto; }
.drawer[aria-hidden="false"] { transform: none; }
/* closed: hidden after the slide-out so its links never take focus (lujo.js also sets inert) */
.drawer[aria-hidden="true"] { visibility: hidden; transition: transform var(--t-base) var(--ease-out), visibility 0s linear var(--t-base); }
.drawer__head { display: flex; align-items: center; height: 64px; padding: 0 var(--gutter); border-bottom: 1px solid var(--line); }
.drawer__close { margin-left: auto; width: 44px; height: 44px; font-size: 26px; }
.drawer__body { padding: var(--s-5) var(--gutter) var(--s-10); display: grid; gap: var(--s-5); }
.intent { display: grid; grid-template-columns: 56px 1fr auto; gap: var(--s-4); align-items: center; padding: var(--s-4) 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.intent__mini { aspect-ratio: 5/7; background: var(--paper); padding: 6px; display: grid; place-items: center; }
.intent__mini svg { width: 100%; height: 100%; }
.intent b { font-family: var(--display); font-size: 22px; text-transform: uppercase; display: block; }
.intent span { font-family: var(--ui); font-size: 13px; color: var(--text-2); }
.intent::after { content: "›"; color: var(--brand); font-size: 26px; }
.drawer__actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.drawer__links { display: flex; gap: var(--s-5); font-family: var(--ui); font-size: 14px; }
.drawer__links a { color: var(--text-2); }

/* ------------------------------------------------------------- footer */
.footer { border-top: 1px solid var(--line); padding: var(--s-8) 0 var(--s-10); font-family: var(--ui); font-size: 13px; color: var(--text-2); line-height: 1.6; }
.footer__row { display: grid; grid-template-columns: 30px 1fr; gap: var(--s-4); align-items: start; }
.footer a { color: var(--text); }
.footer .copy { margin-top: var(--s-4); color: var(--text-3); }

/* ============================================================= ASK (home opener) */
.ask { position: relative; isolation: isolate; overflow: hidden; padding: clamp(40px, 9vw, 120px) 0 clamp(32px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 900px) { .ask { min-height: 72vh; } }
.ask__wrap { width: 100%; min-width: 0; }
.ask__light {                        /* pointer-following light; static centre on touch devices and reduced motion */
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38% 40% at var(--mx, 30%) var(--my, 35%), rgba(245,51,63, .22), transparent 70%),
    radial-gradient(30% 30% at calc(var(--mx, 30%) + 30%) calc(var(--my, 35%) + 20%), rgba(245, 51, 63, .12), transparent 70%);
  transition: background-position .3s var(--ease-out);
}
.ask__light::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, var(--ground)); }
.ask__wrap { position: relative; }
.ask__kicker { color: var(--marigold); display: block; margin-bottom: var(--s-4); }
.ask h1 { font-size: var(--fs-h1); max-width: 14ch; } /* smaller home H1 (TAB-0197); winpot-ds.css sets the final size */
.askbox { margin-top: clamp(24px, 4vw, 48px); max-width: 980px; }
.askbox__field { position: relative; display: flex; align-items: flex-end; gap: var(--s-4); border-bottom: 3px solid var(--text); padding-bottom: 10px; transition: border-color var(--t-base); }
.askbox__field:focus-within { border-color: var(--marigold); }
.askbox__input, .askbox__ghost { font-size: clamp(26px, 4.2vw, 60px); line-height: 1.1; letter-spacing: -.01em; text-transform: none; }
.askbox__input { flex: 1; min-width: 0; background: none; border: 0; color: var(--text); padding: 6px 0 0; caret-color: var(--marigold); outline: none; }
.askbox__input::-webkit-search-cancel-button { display: none; }
.askbox__ghost { position: absolute; left: 0; top: 6px; color: var(--text-3); pointer-events: none; white-space: nowrap; overflow: hidden; max-width: calc(100% - 80px); }
.askbox__ghost::after { content: ""; display: inline-block; width: .06em; height: .9em; margin-left: .06em; background: var(--marigold); vertical-align: -0.08em; animation: caret 1s steps(2) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.askbox.has-text .askbox__ghost { display: none; }
.askbox__ghost.is-done::after { animation: none; display: none; }   /* typewriter finished its one cycle: no blinking caret */
.askbox__go { width: 56px; height: 56px; flex: none; display: grid; place-items: center; background: var(--brand); color: #fff; font-family: var(--display); font-size: 30px; font-weight: 800; box-shadow: 0 12px 30px -12px rgba(245, 51, 63, .8); transition: transform var(--t-fast) var(--ease-out); }
.askbox__go:hover { transform: translateX(3px); }
.askbox .meta { margin-top: var(--s-3); }
.askchips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-3); }
.askchips button { font-family: var(--ui); font-size: 13px; font-weight: 600; color: var(--text-2); padding: 9px 14px; border: 1px solid var(--line-strong); background: color-mix(in srgb, var(--surface-1) 70%, transparent); transition: border-color var(--t-fast), color var(--t-fast), transform var(--t-fast); }
.askchips button:hover { border-color: var(--marigold); color: var(--text); transform: translateY(-1px); }

/* instant answer */
.answer-slot { margin-top: var(--s-6); max-width: 980px; }
.ans { display: grid; grid-template-columns: 1fr; gap: var(--s-4); background: var(--surface-1); box-shadow: inset 0 1px 0 var(--highlight), 0 40px 80px -50px rgba(0,0,0,.9); padding: var(--s-5); border-left: 3px solid var(--marigold); animation: rise var(--t-slow) var(--ease-out) both; }
@media (min-width: 760px) { .ans { grid-template-columns: auto 1fr; gap: var(--s-8); align-items: start; } }
@media (min-width: 760px) { .ans.ans--nofig { grid-template-columns: 1fr; } }   /* no answer.fig: the short answer alone (TAB-0281) */
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.ans__fig { font-family: var(--display); font-weight: 800; font-size: clamp(56px, 8vw, 110px); line-height: .9; color: var(--marigold); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ans__fig small { display: block; font-size: .22em; color: var(--text-3); letter-spacing: .06em; text-transform: uppercase; margin-top: 8px; }
.ans__q { font-family: var(--ui); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.ans__a { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.5; margin-top: var(--s-2); max-width: 60ch; }
.ans__src { margin-top: var(--s-4); display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); font-family: var(--ui); font-size: 12.5px; color: var(--text-2); }
.ans__src b { color: var(--text); font-weight: 600; }
.ans__acts { margin-top: var(--s-4); display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.ans__more { font-family: var(--ui); font-size: 13px; color: var(--text-2); }
.ans__more a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; margin-right: var(--s-3); }
.ans--none { border-left-color: var(--text-3); }

/* ============================================================= DECK (fanned cards) */
@media (min-width: 900px) {
  .deck { display: block; position: relative; height: 420px; overflow: visible; }
  .deck .card { position: absolute; left: 50%; bottom: 0; width: 200px; margin-left: -100px;
    transform: translateX(var(--x, 0)) translateY(var(--y, 0)) rotate(var(--r, 0deg));
    transform-origin: 50% 120%;
    transition: transform var(--t-slow) var(--ease-spring);
    z-index: var(--z, 1); }
  .deck .card:nth-child(1) { --x: -300px; --y: 40px; --r: -12deg; --z: 1; }
  .deck .card:nth-child(2) { --x: -150px; --y: 12px; --r: -6deg;  --z: 2; }
  .deck .card:nth-child(3) { --x: 0px;    --y: 0px;  --r: 0deg;   --z: 3; }
  .deck .card:nth-child(4) { --x: 150px;  --y: 12px; --r: 6deg;   --z: 2; }
  .deck .card:nth-child(5) { --x: 300px;  --y: 40px; --r: 12deg;  --z: 1; }
  .deck.is-spread .card:nth-child(1) { --x: -460px; --y: 0; --r: -4deg; }
  .deck.is-spread .card:nth-child(2) { --x: -230px; --y: 0; --r: -2deg; }
  .deck.is-spread .card:nth-child(4) { --x: 230px;  --y: 0; --r: 2deg; }
  .deck.is-spread .card:nth-child(5) { --x: 460px;  --y: 0; --r: 4deg; }
  .deck .card:hover, .deck .card:focus-within, .deck .card.is-flipped { --z: 10; }
  .deck .card__sub { position: absolute; left: 0; right: 0; top: 100%; text-align: center; opacity: 0; transition: opacity var(--t-base); }
  .deck.is-spread .card__sub { opacity: 1; }
  .cards-section { padding-bottom: var(--s-16); }
  .deck-hint { text-align: center; margin-bottom: var(--s-6); }
}
@media (max-width: 899px) { .deck-hint { display: none; } }

/* ============================================================= LUJO (graphic layer)
   Lacquer black, crimson velvet, gold foil. Grain over everything. Light does the work. */
:root {
  --ground: #0B0B0C; --surface-1: #141415; --surface-2: #1C1C1E; --surface-3: #262628;
  --gold: #F5333F; --gold-hi: #FF6B74; --gold-lo: #B8202B; --gold-deep: #7A1119;
  --velvet: #7A0E1E; --velvet-hi: #B3132B;
  --marigold: var(--gold);
}
body { background: radial-gradient(120% 80% at 50% -10%, #1D1113 0%, var(--ground) 55%) fixed, var(--ground); }
/* film grain */
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 70; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.foil { background: linear-gradient(100deg, var(--gold-lo) 0%, var(--gold) 28%, var(--gold-hi) 46%, var(--gold) 58%, var(--gold-lo) 82%, var(--gold-hi) 100%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: foilsweep 6s var(--ease-out) infinite; }
@keyframes foilsweep { 0% { background-position: 0% 0; } 50% { background-position: 100% 0; } 100% { background-position: 0% 0; } }
.display { text-shadow: 0 1px 0 rgba(255,255,255,.04); }

/* header as lacquer with a gold hairline */
.header { background: color-mix(in srgb, #0B0B0C 88%, transparent); border-bottom: 1px solid rgba(245,51,63,.28); box-shadow: 0 1px 0 rgba(255,255,255,.03), 0 20px 40px -30px rgba(0,0,0,.9); }
.brand__tag { color: var(--gold); }
.btn--primary { background: linear-gradient(180deg, #FF4652, var(--brand) 55%, #C21C28); box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 14px 30px -12px rgba(245,51,63,.85); }
.btn--gold { background: linear-gradient(180deg, var(--gold-hi), var(--gold) 45%, var(--gold-lo)); color: #FFFFFF; font-weight: 800; box-shadow: 0 0 0 1px rgba(255,255,255,.18) inset, 0 16px 34px -14px rgba(245,51,63,.9); }
.btn--gold:hover { transform: translateY(-1px); filter: brightness(1.05); }

/* winners ticker */
.ticker { position: relative; overflow: hidden; background: linear-gradient(90deg, #0F0F10, #1A1A1C 50%, #0F0F10); border-bottom: 1px solid rgba(245,51,63,.18); font-family: var(--ui); font-size: 12.5px; color: var(--text-2); }
.ticker__track { display: flex; gap: var(--s-8); width: max-content; padding: 9px 0; animation: ticker 48s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }
.ticker__item { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.ticker__item b { color: var(--gold); font-weight: 700; }
.ticker__item i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); font-style: normal; }
.ticker__tag { position: absolute; left: 0; top: 0; bottom: 0; display: grid; place-items: center; padding: 0 12px; background: var(--ground); border-right: 1px solid rgba(245,51,63,.3); font-family: var(--display); font-weight: 800; letter-spacing: .08em; color: var(--gold); font-size: 13px; z-index: 1; }
.ticker { padding-left: 110px; }
.foil { text-shadow: none; }
.cell[data-id="jackpot"] .cell__value { font-size: clamp(38px, 4.4vw, 66px); }
.cell[data-id="jackpot"] .reel__d > span { transition-duration: 420ms; }
.ticker__item small { color: var(--text-3); }
@media (prefers-reduced-motion: reduce) { .ticker__track, .ask__beam, .foil, .card__face::after { animation: none !important; transition: none !important; } }

/* hero backdrop */
.ask { min-height: 78vh; }
.ask__stage { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.ask__stage canvas { width: 100%; height: 100%; display: block; }
.ask__beam { position: absolute; inset: -20% -10%; z-index: -1; pointer-events: none; opacity: .55;
  background: conic-gradient(from 200deg at 70% 10%, transparent 0 40%, rgba(245,51,63,.10) 44%, rgba(255,107,116,.16) 47%, rgba(245,51,63,.08) 50%, transparent 55% 100%);
  animation: beam 14s ease-in-out infinite alternate; }
@keyframes beam { to { transform: rotate(-14deg) scale(1.05); } }
.ask__light { z-index: -1; }
.ask h1 { font-weight: 900; }
.askbox__field { border-bottom-color: rgba(245,51,63,.6); }
.askbox__field:focus-within { border-bottom-color: var(--gold-hi); box-shadow: 0 24px 40px -30px rgba(245,51,63,.6); }
.askbox__go { background: linear-gradient(180deg, var(--gold-hi), var(--gold) 45%, var(--gold-lo)); color: #FFFFFF; box-shadow: 0 16px 34px -14px rgba(245,51,63,.9); }
.askchips button { background: rgba(20,16,17,.7); border-color: rgba(245,51,63,.22); backdrop-filter: blur(8px); }
.ans { border-left-color: var(--gold); background: linear-gradient(180deg, #171112, #0F0C0C); box-shadow: 0 0 0 1px rgba(245,51,63,.14), 0 50px 90px -50px rgba(0,0,0,1); }

/* board: jackpot dominant, gold light */
.board { padding: 0; background: linear-gradient(180deg, #0B0B0C, #0B0B0C); }
.board::before { display: none; }
.board__grid { border-color: rgba(245,51,63,.18); background: rgba(245,51,63,.12); }
.cell { background: linear-gradient(180deg, #131112, #0B0B0C); padding: var(--s-8) var(--s-6) var(--s-6); }
.cell::before { background: linear-gradient(90deg, transparent, rgba(245,51,63,.5), transparent); }
.cell[data-id="jackpot"] .cell__value { color: var(--gold-hi); text-shadow: none; filter: drop-shadow(0 0 14px rgba(245,51,63,.45)) drop-shadow(0 0 40px rgba(245,51,63,.2)); }
.cell[data-id="jackpot"] .cell__unit { color: var(--gold); }
.cell[data-id="jackpot"] { background: radial-gradient(80% 90% at 30% 20%, rgba(245,51,63,.10), transparent 60%), linear-gradient(180deg, #141011, #0B0B0C); }
@media (min-width: 720px) { .board__grid[data-count="4"] { grid-template-columns: 1.5fr 1fr 1fr 1fr; } .board__grid[data-count="4"] .cell[data-id="jackpot"] { order: -1; } }
.cell__stamp .dot { background: var(--gold); box-shadow: 0 0 0 0 rgba(245,51,63,.6); animation-name: pulsegold; }
@keyframes pulsegold { 0% { box-shadow: 0 0 0 0 rgba(245,51,63,.55); } 70% { box-shadow: 0 0 0 9px rgba(245,51,63,0); } 100% { box-shadow: 0 0 0 0 rgba(245,51,63,0); } }
.cell.is-changed .cell__value { color: #fff; }

/* fomo strip: countdown */
.fomo { display: grid; gap: 1px; background: rgba(245,51,63,.16); border: 1px solid rgba(245,51,63,.16); margin-top: 1px; }
@media (min-width: 900px) { .fomo { grid-template-columns: 1.2fr 1fr 1fr; } }
@media (min-width: 900px) { .fomo--no-promo { grid-template-columns: 1fr 1fr; } }   /* no live promo (TAB-0225): no empty third column */
.promo__terms { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
/* promo band (TAB-0225 B): one wide offer tile on game pages and category lists. Server HTML only, never added after paint. */
.promo-band { display: grid; gap: var(--s-3) var(--s-6); align-items: center; margin-top: var(--s-8); padding: var(--s-5) var(--s-6); border: 1px solid rgba(245,51,63,.16); background: linear-gradient(180deg, #141415, #0B0B0C); }
.promo-band .label { color: var(--gold); }
.promo-band .countdown { font-size: 34px; margin-top: 6px; }
.promo-band .countdown small { font-size: 12px; color: var(--text-3); margin: 0 6px 0 2px; }
.promo-band__copy { margin: 0; color: var(--text-2); }
.promo-band__copy strong { color: var(--text); }
.promo-band__act { display: grid; justify-items: start; }
.promo-band__act .rg-line { margin-top: 10px; }
@media (min-width: 480px) { .promo-band { padding-right: calc(var(--s-6) + 96px); } }   /* room for the 80px gift art (banners.css, top right) */
@media (min-width: 900px) { .promo-band { grid-template-columns: auto minmax(0, 1fr); } .promo-band__act { grid-column: 2; } }
.fomo__tile { background: linear-gradient(180deg, #141415, #0B0B0C); padding: var(--s-5) var(--s-6); display: grid; gap: 6px; align-content: start; }
.fomo__tile .k { color: var(--gold); }
.fomo__tile .v { font-family: var(--display); font-weight: 900; font-size: clamp(30px, 3.4vw, 46px); line-height: 1; text-transform: uppercase; }
.fomo__tile .v.num { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.fomo__tile p { font-family: var(--ui); font-size: 13px; color: var(--text-2); }
.fomo__tile .btn { justify-self: start; margin-top: 6px; }
.countdown { display: inline-flex; gap: .25em; align-items: baseline; }
.countdown b { display: inline-block; min-width: 1.35em; text-align: center; }
.countdown small { font-family: var(--ui); font-size: 11px; font-weight: 600; letter-spacing: .1em; color: var(--text-3); }

/* deck on felt under a spotlight */
.cards-section { position: relative; isolation: isolate; overflow-x: clip; background: radial-gradient(70% 60% at 50% 30%, #2A0D10 0%, #140A0B 45%, var(--ground) 100%); }
.cards-section::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(40% 50% at 50% 0%, rgba(245,51,63,.16), transparent 70%); }
.deck-hint { color: var(--gold); }
.card__face { overflow: hidden; background: linear-gradient(160deg, #FFFFFF 0%, #F2F2F4 60%, #DEDEE1 100%); box-shadow: 0 40px 60px -30px rgba(0,0,0,.95), 0 0 0 1px rgba(0,0,0,.35), inset 0 1px 0 #fff; }
.card__face::after {                   /* lacquer shine sweep */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.55) 45%, rgba(255,255,255,.1) 52%, transparent 60%);
  transform: translateX(-120%); transition: transform .9s var(--ease-out); }
.card:hover .card__face::after, .card:focus-within .card__face::after { transform: translateX(120%); }
.card__front { border: 6px solid transparent; background-clip: padding-box; }
.card__front::before { opacity: 1 !important; animation: none !important; padding: 6px;
  background: linear-gradient(135deg, var(--gold-lo), var(--gold-hi) 30%, var(--gold) 50%, var(--gold-deep) 75%, var(--gold-hi)); }
.card:hover .card__front::before, .card:focus-within .card__front::before { animation: foil 2.2s linear infinite !important; }
.card__art { border-color: #0B0B0C; background: radial-gradient(70% 70% at 50% 35%, #FFFFFF, #F1F1F3 70%, #E3E3E6); box-shadow: inset 0 2px 0 rgba(255,255,255,.9), inset 0 -3px 0 rgba(0,0,0,.08); }
.card__art svg { filter: drop-shadow(0 8px 10px rgba(27,23,24,.28)) drop-shadow(0 1px 0 rgba(255,255,255,.8)); }
.card__name { background: linear-gradient(180deg, #2A2022, #0F0C0D); -webkit-background-clip: text; background-clip: text; color: transparent; }
.card__back { background: linear-gradient(180deg, #181214, #0B0B0C); border-color: var(--gold); }
.card__back .label { color: var(--gold); }

/* guides: gold-framed thumbs */
.guide__thumb { background: linear-gradient(160deg, #FFFFFF, #E3E3E6); box-shadow: 0 0 0 1px rgba(245,51,63,.35), 0 14px 28px -16px rgba(0,0,0,.9); }
.guide__cat { color: var(--gold); }
.section__head { border-bottom-color: rgba(245,51,63,.5); }
.section__head a { color: var(--gold); }

/* join band */
.join { position: relative; overflow: hidden; margin: var(--s-16) 0 0; padding: clamp(40px, 6vw, 80px) 0; background: linear-gradient(180deg, #140909, #2B0D11 50%, #140909); border-top: 1px solid rgba(245,51,63,.25); border-bottom: 1px solid rgba(245,51,63,.25); }
.join::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 70% at 20% 50%, rgba(245,51,63,.16), transparent 70%), radial-gradient(40% 60% at 85% 40%, rgba(245,51,63,.16), transparent 70%); pointer-events: none; }
.join__grid { position: relative; display: grid; gap: var(--s-8); align-items: center; }
@media (min-width: 900px) { .join__grid { grid-template-columns: 1.3fr 1fr; } }
.join h2, .join #join-h { font-size: clamp(34px, 4.6vw, 64px); font-weight: 900; }
.join #join-h { display: block; margin: 0; }   /* the slogan is a span, not a heading (TAB-0285); same box as the old h2 */
.join p { font-family: var(--ui); color: var(--text-2); font-size: 16px; max-width: 46ch; margin-top: var(--s-4); }
.join__facts { display: grid; gap: var(--s-3); }
.join__fact { display: grid; grid-template-columns: auto 1fr; gap: var(--s-4); align-items: center; padding: var(--s-4) var(--s-5); background: rgba(11,10,11,.55); border: 1px solid rgba(245,51,63,.2); backdrop-filter: blur(6px); }
.join__fact b { font-family: var(--display); font-weight: 900; font-size: 30px; color: var(--gold-hi); line-height: 1; }
.join__fact span { font-family: var(--ui); font-size: 13.5px; color: var(--text-2); }
.join__cta { display: flex; flex-wrap: wrap; gap: 10px; max-width: none; margin-top: var(--s-6); }
@media (max-width: 719px) { .board__grid[data-count="4"] .cell[data-id="jackpot"], .board__grid[data-count="3"] .cell[data-id="jackpot"] { grid-column: 1 / -1; order: -1; } .cell[data-id="jackpot"] .cell__value { font-size: clamp(40px, 11vw, 56px); } }

/* ============================================================= PAGES (templates beyond home) */
/* ===== Lujo · reglas compartidas por las plantillas (categoría, autor, buscar, 404, editorial, menú, guía) ===== */
.only-out{display:none}[data-session="closed"] .only-out{display:revert}
.hgrid{display:grid;gap:1px;background:rgba(245,51,63,.16);border:1px solid rgba(245,51,63,.16)}
.hgrid>*{background:linear-gradient(180deg,#141415,#0B0B0C);min-width:0}
.felt{position:relative;isolation:isolate;background:radial-gradient(70% 60% at 50% 30%,#2A0D10 0%,#140A0B 45%,var(--ground) 100%)}
.felt::before{content:"";position:absolute;inset:0;z-index:-1;background:radial-gradient(40% 50% at 50% 0%,rgba(245,51,63,.16),transparent 70%)}
.gold{color:var(--gold)}.hi{color:var(--gold-hi)}
.verified{color:var(--gold);font-weight:700}
/* frames del canvas: el viewport de un iframe es toda la página, así que vh no sirve; se fija a la altura del viewport de referencia (900 × 78 %) */
html[data-frame] .ask{min-height:702px}
html[data-frame] .demo-ribbon,html[data-frame] [data-demo]{display:none}
html[data-frame]:not(.menu-frame) .drawer[aria-hidden="true"]{display:none}
/* guía */
.kicker-cat{color:var(--gold);display:block;margin-bottom:var(--s-3)}
.byline__rev .verified::before{content:"✓ ";}
.aside{display:grid;gap:var(--s-5)}
.aside .board__grid{grid-template-columns:1fr 1fr;border:1px solid rgba(245,51,63,.16);background:rgba(245,51,63,.16)}
.aside .cell{padding:var(--s-5) var(--s-4)}
.aside .cell__value{font-size:clamp(28px,2.4vw,40px)}
.aside .cell[data-id="jackpot"] .cell__value{font-size:clamp(26px,2.2vw,36px)}
.aside .tile{padding:var(--s-5);border:1px solid rgba(245,51,63,.16);background:linear-gradient(180deg,#141415,#0B0B0C)}
.aside .tile .label{color:var(--gold)}
.aside .countdown small{font-size:12px;color:var(--text-3);margin:0 6px 0 2px}
.aside .panel{border:1px solid rgba(245,51,63,.16)}
.aside .panel__head .label{color:var(--gold)}
.rel{display:grid}
.rel a{display:grid;grid-template-columns:1fr auto;gap:var(--s-3);padding:var(--s-3) var(--s-5);border-top:1px solid rgba(245,51,63,.12);font-family:var(--ui);font-size:14px;font-weight:600;text-decoration:none;color:var(--text)}
.rel a small{font-weight:500;color:var(--text-3);font-size:12px}
.rel a:hover{color:var(--gold)}
.article-top .ans{margin-top:var(--s-6)}
.compare th,.compare td{border-bottom-color:rgba(245,51,63,.2)}
.compare{box-shadow:0 0 0 1px rgba(245,51,63,.25)}
.paper .facts-title{font-family:var(--ui);font-size:11px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--paper-muted);margin-top:var(--s-8)}
/* categoría */
.cat-hero.felt,.nf.felt{display:block;padding:clamp(40px,6vw,80px) 0}
.cat-hero__grid{display:grid;gap:var(--s-8);align-items:center}
@media(min-width:900px){.cat-hero .cat-hero__grid{display:grid;grid-template-columns:220px 1fr;width:100%}.cat-hero__grid>div{min-width:0}}
.cat-hero .card{max-width:220px;pointer-events:none}
.cat-hero h1{font-size:clamp(36px,5.4vw,76px);font-weight:900;max-width:14ch;line-height:.95}
.cat-hero p{font-family:var(--ui);color:var(--text-2);font-size:clamp(15px,1.2vw,17px);max-width:52ch;margin-top:var(--s-4)}
.qrow{display:grid;grid-template-columns:1fr;gap:var(--s-3);padding:var(--s-5) var(--s-6);text-decoration:none;color:inherit;transition:background var(--t-fast)}
@media(min-width:720px){.qrow{grid-template-columns:1fr 200px;align-items:center;gap:var(--s-6)}}
.qrow:hover{background:linear-gradient(180deg,#1A1416,#110D0E)}
.qrow b{display:block;font-family:var(--ui);font-weight:700;font-size:17px;line-height:1.3}
.qrow b:hover{color:var(--gold-hi)}
.qrow p{font-family:var(--ui);font-size:14px;color:var(--text-2);margin-top:4px;line-height:1.45}
.qrow .meta{margin-top:6px;color:var(--text-3)}
.qrow .fig{font-family:var(--display);font-weight:900;font-size:clamp(28px,3vw,44px);line-height:1;color:var(--gold-hi);font-variant-numeric:tabular-nums}
.qrow .fig small{display:block;font-family:var(--ui);font-size:11px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--text-3);margin-top:4px}
@media(min-width:720px){.qrow .fig{text-align:right}}
.pager{display:flex;gap:var(--s-2);margin-top:var(--s-6);font-family:var(--display);font-weight:800;font-size:22px}
.pager a{min-width:44px;height:44px;display:grid;place-items:center;padding:0 10px;border:1px solid rgba(245,51,63,.22);color:var(--text-2);text-decoration:none}
.pager a[aria-current]{color:var(--gold-hi);border-color:var(--gold)}
/* autor */
.author-hero{display:grid;gap:var(--s-8);padding:var(--s-10) 0 var(--s-8)}
.author-hero>div:first-child{max-width:220px}
@media(min-width:900px){.author-hero>div:first-child{max-width:none}}
@media(min-width:900px){.author-hero{grid-template-columns:260px 1fr 300px;align-items:start}}
.photo{aspect-ratio:1;background:linear-gradient(160deg,#FFFFFF,#DEDEE1);box-shadow:0 0 0 1px rgba(245,51,63,.5),0 0 0 7px var(--ground),0 0 0 8px rgba(245,51,63,.25),0 40px 70px -30px #000;display:grid;place-items:center;font-family:var(--display);font-weight:900;font-size:96px;color:#0B0B0C}
.author-hero h1{font-size:clamp(36px,5.4vw,76px);line-height:.95}
.author-hero .role{font-family:var(--ui);font-size:16px;color:var(--text-2);margin-top:var(--s-3)}
.author-hero .bio{font-size:var(--fs-body);line-height:1.55;max-width:46ch;margin-top:var(--s-5)}
.creds{margin-top:var(--s-5)}
.creds li{display:grid;grid-template-columns:130px 1fr;gap:var(--s-4);padding:var(--s-3) 0;border-top:1px solid rgba(245,51,63,.18);font-family:var(--ui);font-size:14px}
.creds li b{color:var(--gold);font-weight:700;font-size:11px;letter-spacing:.12em;text-transform:uppercase;padding-top:3px}
.links{display:grid}
.links a{display:flex;justify-content:space-between;padding:var(--s-3) var(--s-5);font-family:var(--ui);font-size:14px;font-weight:600;text-decoration:none;color:var(--text);border-top:1px solid rgba(245,51,63,.12)}
.links a span{color:var(--gold)}
.counts2{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:rgba(245,51,63,.16);border:1px solid rgba(245,51,63,.16)}
.counts2>div{padding:var(--s-4) var(--s-5);background:linear-gradient(180deg,#141415,#0B0B0C)}
.counts2 b{display:block;font-family:var(--display);font-weight:900;font-size:40px;line-height:1;color:var(--gold-hi)}
.counts2 span{font-family:var(--ui);font-size:12px;color:var(--text-2)}
/* buscar */
.results{display:grid;gap:var(--s-5);margin-top:var(--s-6)}
.results .ans{animation:none}
.ask--search{min-height:0;padding-bottom:var(--s-8)}
.ask--search h1{font-size:clamp(34px,5vw,72px);font-weight:900}
.ask--search .askbox{margin-top:var(--s-6)}
.ask__count{font-family:var(--ui);font-size:14px;color:var(--text-2);margin-top:var(--s-4)}
.ask__count b{color:var(--gold)}
/* 404 */
.nf{padding:clamp(40px,7vw,96px) 0 var(--s-10)}
.nf h1{font-size:clamp(36px,5.8vw,84px);font-weight:900;max-width:14ch}
.nf .askbox{margin-top:var(--s-8);max-width:820px}
.nf{padding-bottom:var(--s-10)}
/* menú como página */
.menu-page .drawer{position:relative;inset:auto;transform:none;min-height:100vh;z-index:auto}
.menu-page .drawer__head{border-bottom-color:rgba(245,51,63,.28)}
.menu-page .intent{border-bottom-color:rgba(245,51,63,.14)}
.menu-page .intent__mini{background:linear-gradient(160deg,#FFFFFF,#DEDEE1);box-shadow:0 0 0 1px rgba(245,51,63,.5)}
.menu-page .search-form{border-color:rgba(245,51,63,.5)}
.menu-page .search-form button{color:var(--gold)}
.menu-page .drawer__body{max-width:640px;margin:0 auto;width:100%}
.menu-page .drawer__links a{color:var(--text)}
.menu-page .acct{display:grid;grid-template-columns:1fr auto auto;gap:var(--s-3);align-items:center;padding:var(--s-4) var(--s-5);background:linear-gradient(180deg,#141415,#0B0B0C);border:1px solid rgba(245,51,63,.16)}
/* editorial */
.editorial-top{padding:var(--s-10) var(--gutter) var(--s-8)}
.editorial-top h1{font-size:clamp(34px,4.6vw,64px)}
.editorial-top .meta{margin-top:var(--s-4)}
.paper .rule{border:2px solid var(--paper-text);padding:var(--s-5);margin:var(--s-8) 0 0}
.paper .rule b{font-family:var(--display);font-size:24px;text-transform:uppercase;display:block}
.paper .rule p{margin:var(--s-2) 0 0;font-size:15.5px}
/* tu bono activo (guía con sesión) */
.tile--own .display{font-size:26px;margin-top:8px}

/* header con sesión a 390: cabe en 358 px sin scroll horizontal */
@media (max-width:599px){
  .header__row{gap:10px}
  .balance{font-size:17px}
  .balance small{display:none}
  [data-session="open"] .header .btn--sm{padding:0 10px;min-height:36px;font-size:12px}
  .avatar{width:34px;height:34px;font-size:16px}
}
@media (max-width:419px){ .header__actions{gap:8px} }

/* sección 8 · legibilidad a 390 y oro solo en dinero, CTA, kickers y hairlines */
@media (max-width:599px){ .ticker__item small{font-size:12px} }
.creds a{color:var(--text)!important;text-decoration:underline;text-decoration-color:var(--gold)}
.menu-page .search-form button{color:var(--text)}
.paper a[style*="--brand"]{color:var(--paper-text)}
/* compare table: scrolls inside its own box on narrow screens instead of widening the page */
.compare-wrap { overflow-x: auto; margin: var(--s-6) 0; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.compare-wrap .compare { margin: 0; }
/* lujo.js sets data-scroll when the table is wider than its box: fade the cut edge and show the hint */
.compare-wrap[data-scroll="more"] { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); }
.compare-wrap:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.compare-hint { display: none; margin: var(--s-6) 0 calc(-1 * var(--s-4)); font-family: var(--ui); font-size: 12px; font-weight: 600; color: var(--text-3); text-align: right; }
.compare-hint:has(+ .compare-wrap[data-scroll]) { display: block; }
@media (max-width: 599px) { .compare th, .compare td { padding: var(--s-2) var(--s-3); font-size: 13px; } .compare td { font-size: 16px; } }
.steps li > b, .steps li > p { grid-column: 2; }
.steps li::before { grid-row: 1 / span 2; }
.paper + .join { margin-top: 0; }

/* Dark only. */
html { color-scheme: dark; }

/* In-page anchors land below the sticky header (72px desktop, 56px phone; see winpot-ds.css .header__row) */
html { scroll-padding-top: 88px; }
@media (max-width: 480px) { html { scroll-padding-top: 72px; } }

/* list component and plain lists in classic bodies: the reset at the top removes markers, the reading column needs them */
.paper ul:not([class]), .paper ol:not([class]) { margin: 0 0 var(--s-4); padding-left: 20px; display: grid; gap: 8px; }
.paper ul:not([class]) { list-style: disc; }
.paper ol:not([class]) { list-style: decimal; }
.paper ul:not([class]) > li::marker, .paper ol:not([class]) > li::marker { color: var(--text-3); }
.paper :is(ul, ol):not([class]) > li { font-size: var(--fs-body); line-height: 1.65; }

/* ============================================================= MOMIOS (odds tied to the Winpot sportsbook feed)
   One market card per event. Each price links straight into the bet slip with the feed's eventId
   and oddId. Never rendered when the market is closed or the guide is flagged betting_ui=false.
   data-nosnippet keeps prices out of search snippets; they change too fast to be quoted. */
.odds { border: 1px solid rgba(245,51,63,.22); background: linear-gradient(180deg, #141415, #0B0B0C); color: #ffffff; margin: var(--s-6) 0; }
.odds__head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4); padding: var(--s-3) var(--s-5); border-bottom: 1px solid rgba(245,51,63,.16); }
.odds__head .label { color: #F5333F; }
.odds__event { font-family: var(--display); font-weight: 800; font-size: 20px; text-transform: uppercase; letter-spacing: .01em; }
.odds__meta { margin-left: auto; font-family: var(--ui); font-size: 12px; color: #aab3cb; display: flex; gap: var(--s-3); align-items: center; }
.odds__meta .dot { width: 6px; height: 6px; }
.odds__market { display: grid; grid-template-columns: 120px 1fr; gap: var(--s-3); align-items: center; padding: var(--s-3) var(--s-5); border-bottom: 1px solid rgba(245,51,63,.10); }
.odds__market:last-of-type { border-bottom: 0; }
.odds__mlabel { font-family: var(--ui); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #8990a5; }
.odds__mlabel small { display: block; color: #aab3cb; letter-spacing: 0; text-transform: none; font-weight: 600; }
.odds__picks { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: 1px; background: rgba(245,51,63,.16); border: 1px solid rgba(245,51,63,.16); }
.odds__pick { display: grid; gap: 2px; padding: 10px 12px; background: #131112; text-decoration: none; color: #ffffff; transition: background var(--t-fast); position: relative; }
.odds__pick:hover { background: #1F1714; }
.odds__pick span { font-family: var(--ui); font-size: 12px; font-weight: 600; color: #aab3cb; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.odds__pick b { font-family: var(--display); font-weight: 900; font-size: 26px; line-height: 1; color: #FF6B74; font-variant-numeric: tabular-nums; }
.odds__pick[data-dir="up"] b::after, .odds__pick[data-dir="down"] b::after { content: "▲"; font-size: 10px; margin-left: 5px; vertical-align: middle; color: #F5333F; }
.odds__pick[data-dir="down"] b::after { content: "▼"; color: #F5333F; }
.odds__foot { padding: var(--s-3) var(--s-5); font-family: var(--ui); font-size: 11.5px; color: #8990a5; border-top: 1px solid rgba(245,51,63,.16); display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); align-items: center; }
.odds__foot a { color: #aab3cb; }
.odds__foot .btn { margin-left: auto; }
@media (max-width: 599px) { .odds__market { grid-template-columns: 1fr; gap: 6px; } .odds__pick b { font-size: 22px; } }
/* next-bet tile (logged in) */
.tile--next { border-left-color: #F5333F; }
.tile--next .odds__picks { margin-top: 10px; }
.tile--next .odds__pick { padding: 8px 10px; }
.tile--next .odds__pick b { font-size: 22px; }
.tile--next .next__guide { display: block; margin-top: 12px; font-family: var(--ui); font-size: 13px; font-weight: 600; color: var(--text); text-decoration: underline; text-decoration-color: rgba(245,51,63,.5); text-underline-offset: 3px; }
.odds .btn--gold { color: #FFFFFF; }
.odds .dot, .tile--next .dot { background: #F5333F; box-shadow: 0 0 0 0 rgba(245,51,63,.6); animation-name: pulsegold; }
.tile--next .odds__pick span { white-space: normal; font-size: 11.5px; line-height: 1.2; }

/* ============================================================= FICHA DE JUEGO (game sheet) */
.ficha.felt { display: block; padding: var(--s-6) 0 clamp(40px, 6vw, 72px); }
.ficha .crumbs { margin-bottom: var(--s-6); }
.ficha__grid { display: grid; gap: var(--s-8); align-items: start; }
@media (min-width: 900px) { .ficha__grid { grid-template-columns: 320px minmax(0, 1fr); gap: var(--s-12); } }
.ficha__card .card { max-width: 320px; margin: 0 auto; }
.ficha__card .card__inner { transform: rotate(-4deg); transition: transform var(--t-slow) var(--ease-spring); }
.ficha__card:hover .card__inner { transform: rotate(0deg) translateY(-6px); }
.ficha__card .card__name { font-size: 22px; }
.ficha__artnote { margin-top: var(--s-4); text-align: center; color: var(--text-3); }
.ficha__main h1 { font-size: clamp(40px, 6vw, 88px); font-weight: 900; margin-top: var(--s-3); }
.ficha__figs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(245,51,63,.16); border: 1px solid rgba(245,51,63,.16); margin-top: var(--s-6); }
.ficha__fig { background: linear-gradient(180deg, #141415, #0B0B0C); padding: var(--s-4) var(--s-5); display: grid; gap: 4px; align-content: start; color: #ffffff; }
.ficha__fig .label { color: #8990a5; }
.ficha__fig b { font-family: var(--display); font-weight: 900; font-size: clamp(30px, 3.6vw, 52px); line-height: 1; }
.ficha__fig small { font-family: var(--ui); font-size: 11px; color: #aab3cb; }
.meter { display: inline-flex; gap: 3px; margin-top: 6px; }
.meter i { width: 18px; height: 8px; background: #2A2224; }
.meter i.on { background: linear-gradient(180deg, #FF6B74, #B8202B); }
.ficha__answer { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.5; max-width: 60ch; margin-top: var(--s-5); }
.ficha__cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); margin-top: var(--s-5); }
.ficha__now { display: inline-flex; align-items: center; gap: 8px; font-family: var(--ui); font-size: 13px; color: var(--text-2); }
.ficha__now b { font-family: var(--display); font-size: 20px; color: var(--text); font-variant-numeric: tabular-nums; }
.ficha__now .dot { background: #F5333F; animation-name: pulsegold; }
.ficha__own { margin-top: var(--s-3); }
.ficha__own b { color: var(--gold-hi); }
.funcs { display: grid; gap: 1px; margin: var(--s-4) 0 var(--s-6); background: var(--paper-line); border: 1px solid var(--paper-line); }
@media (min-width: 700px) { .funcs { grid-template-columns: 1fr 1fr; } }
.funcs li { background: var(--paper); padding: var(--s-3) var(--s-4); display: grid; gap: 2px; }
.funcs b { font-family: var(--ui); font-weight: 700; font-size: 15px; }
.funcs span { font-size: 15px; color: var(--paper-text-2); }
@media (max-width: 599px) { .ficha__figs { grid-template-columns: 1fr; } .ficha__fig { grid-template-columns: 1fr; } }


/* ============================================================= v5 · Winpot palette + Artemis display
   Gold dropped. Winpot red carries money, CTAs, kickers and hairlines; greys carry everything else.
   Artemis: drop the font files in lujo/fonts/ (Artemis-Black.woff2, Artemis-Bold.woff2) — the
   @font-face below picks them up; until then the stack falls to Big Shoulders. */
:root {
  --display: "Artemis", "Big Shoulders Display", "Barlow Condensed", Impact, sans-serif;
  /* Winpot */
  --brand: #F5333F; --brand-hi: #FF6B74; --brand-deep: #B8202B;
  --ground: #0B0B0C; --surface-1: #141415; --surface-2: #1C1C1E; --surface-3: #262628;
  --text: #FFFFFF; --text-2: #B8B8BC; --text-3: #7C7C82;
  --line: rgba(255,255,255,.08); --line-strong: rgba(255,255,255,.18);
  /* gold roles re-pointed */
  --gold: var(--brand); --gold-hi: var(--brand-hi); --gold-lo: var(--brand-deep); --gold-deep: #7A1119;
  --marigold: var(--brand); --focus: #FFFFFF; --live: var(--brand);
  --velvet: #5A0B14; --velvet-hi: var(--brand-deep);
  /* paper → white/grey */
  --paper: #F6F6F7; --paper-2: #EBEBED; --paper-text: #0B0B0C; --paper-text-2: #3C3C40; --paper-muted: #6E6E74; --paper-line: rgba(11,11,12,.12);
}
/* gold literals → red */
.ticker__tag { border-right-color: rgba(245,51,63,.35); }
.askbox__field { border-bottom-color: rgba(245,51,63,.6); } .askbox__field:focus-within { box-shadow: 0 24px 40px -30px rgba(245,51,63,.6); }
.askbox__go, .btn--gold { background: linear-gradient(180deg, #FF4652, var(--brand) 55%, #C21C28); color: #FFFFFF; box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 14px 30px -12px rgba(245,51,63,.85); }
.askchips button { border-color: rgba(245,51,63,.25); }
.ans { box-shadow: 0 0 0 1px rgba(245,51,63,.18), 0 50px 90px -50px rgba(0,0,0,1); background: linear-gradient(180deg, #171112, #0F0C0C); }
.ans--v4 { background: linear-gradient(180deg, #171112 0%, #0E0B0B 100%); } .ans--v4::before { background: radial-gradient(60% 40% at 0% 0%, rgba(245,51,63,.12), transparent 70%); }
.ans__live, .ans__own { border-top-color: rgba(245,51,63,.25); } .ans--v4 .btn--ghost { border-color: rgba(255,255,255,.25); } .ans--v4 .btn--ghost.is-copied { border-color: var(--text); color: var(--text); }
.ans__seal svg { background: radial-gradient(circle, #0B0B0C 0 46%, transparent 47%); }
.stickybar { border-top-color: rgba(245,51,63,.55); border-bottom-color: rgba(245,51,63,.55); }
.dot--gold { background: var(--brand); } @keyframes pulse-gold { 0% { box-shadow: 0 0 0 0 rgba(245,51,63,.55); } 70% { box-shadow: 0 0 0 9px rgba(245,51,63,0); } 100% { box-shadow: 0 0 0 0 rgba(245,51,63,0); } }
.aside .tile { border-color: rgba(245,51,63,.18); background: linear-gradient(180deg, #151112, #0E0B0B); }
.card__front::before { background: linear-gradient(135deg, var(--brand-deep), #FFFFFF 30%, var(--brand) 50%, var(--brand-deep) 75%, #FFFFFF); }
.card__art { background: radial-gradient(70% 70% at 50% 35%, #FFFFFF, #F1F1F3 70%, #E3E3E6); border-color: #0B0B0C; }
.avatar--rev { color: var(--brand); border-color: var(--brand); } .closing .avatar { background: var(--brand); color: #FFFFFF; }
.calc__f input, .calc__f select { background: #FFFFFF; } .ask--paper .askchips button { background: #FFFFFF; }
.btn--gold, .askbox__go { color: #FFFFFF; }
.foil { background: linear-gradient(100deg, var(--brand-deep) 0%, var(--brand) 28%, var(--brand-hi) 46%, var(--brand) 58%, var(--brand-deep) 82%, var(--brand-hi) 100%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }

/* the sources box is a styled list: no markers or indent from the plain-list rule above */
.paper .sources ul, .sources ul { list-style: none; padding-left: 0; margin: 0; display: block; }
.paper .sources ul > li { font-size: 15px; line-height: 1.5; }



/* ---------------------------------------------------------------- Match previews (TAB-0396; design TAB-0394 pending)
   Design-system tokens only. Dark. Tables reuse .compare; the odds slot keeps its own reserved height (OddsSlot, no CLS). */
.match-head { margin-top: var(--s-5); background: var(--surface-1); border: 1px solid var(--line-strong); border-top: 3px solid var(--green); padding: var(--s-4) var(--s-5); }
.match-head__top { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-3); align-items: center; }
.match-head__round { font-family: var(--ui); font-size: 13px; font-weight: 600; color: var(--text-2); }
.match-head__teams { display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--s-3); align-items: center; margin: var(--s-4) 0; font-family: var(--display); font-weight: 800; font-size: clamp(20px, 5vw, 30px); text-transform: uppercase; line-height: 1.1; }
.match-head__team { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.match-head__team--away { text-align: right; align-items: flex-end; }
.match-head__team small { font-family: var(--ui); font-size: 11px; font-weight: 600; letter-spacing: .1em; color: var(--text-3); }
.match-head__vs { font-family: var(--ui); font-size: 14px; font-weight: 700; color: var(--text-3); text-transform: lowercase; }
.match-head__score { font-size: 1.2em; color: var(--green); white-space: nowrap; }
.match-head__score i { font-style: normal; color: var(--text-3); margin: 0 4px; }
.match-head__facts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3) var(--s-4); border-top: 1px solid var(--line); padding-top: var(--s-4); }
.match-head__facts dt { font-family: var(--ui); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.match-head__facts dd { margin: 2px 0 0; font-family: var(--ui); font-size: 15px; font-weight: 700; color: var(--text); display: flex; flex-direction: column; }
.match-head__facts dd .num { font-family: var(--display); font-size: 22px; }
.match-head__facts dd small { font-size: 12.5px; font-weight: 500; color: var(--text-2); }
.match-head__wide { grid-column: 1 / -1; }
.match-head__wide dd { font-weight: 500; font-size: 14px; line-height: 1.5; }
.match-state { font-family: var(--ui); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border: 1px solid var(--line-strong); color: var(--text-2); }
.match-state--live { color: var(--on-green); background: var(--status); border-color: var(--status); }
.match-state--postponed { color: var(--text-2); border: 1px dashed var(--line-strong); }   /* red = brand/live/error only (TAB-0426) */
/* design D5: "Por confirmar" is not an error (dashed, muted); "Finalizado"/"Final" is neutral (status green = live only) */
.match-state--played { color: var(--text-3); border: 1px dashed var(--line-strong); }
.match-state--finished { color: var(--text-2); border-color: var(--line-strong); }
.match-src { font-family: var(--ui); font-size: 12px !important; line-height: 1.5 !important; color: var(--text-3); margin: var(--s-2) 0 0 !important; }
.match-head .match-src { margin-top: var(--s-3) !important; }
.match-src a, .match-news small a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.match-block { margin: var(--s-6) 0; }
.match-block .compare { margin: var(--s-3) 0 0; }
.match-table td { font-family: var(--ui); font-size: 14px; font-weight: 600; }
.match-table td.num, .match-table td .num { font-family: var(--display); font-weight: 800; font-size: 16px; white-space: nowrap; }
.match-table th:last-child, .match-table td:last-child { text-align: right; }
.match-res { display: inline-grid; place-items: center; width: 24px; height: 24px; font-family: var(--ui); font-size: 12px; font-weight: 800; border: 1px solid var(--line-strong); color: var(--text-2); }
.match-res--G { background: var(--green); border-color: var(--green); color: var(--on-green); }
.match-res--P { border-color: var(--red); color: var(--text); }
.match-pos { color: var(--paper-text-2); letter-spacing: .06em; }
.match-note { font-size: 14px !important; color: var(--paper-text-2); margin: var(--s-2) 0 0 !important; }
.match-news { display: grid; gap: var(--s-5); margin-top: var(--s-3); }
@media (min-width: 760px) { .match-news { grid-template-columns: 1fr 1fr; } }
.match-news h3 { font-family: var(--display); font-size: 18px; text-transform: uppercase; margin: 0 0 var(--s-2); }
.match-news ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.match-news li { border-left: 2px solid var(--line-strong); padding-left: var(--s-3); }
.match-news li p { margin: var(--s-1) 0 !important; font-size: 15px !important; }
.match-news small { font-family: var(--ui); font-size: 12px; color: var(--text-3); }
.match-tag { font-family: var(--ui); font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--on-green); background: var(--green); padding: 2px 6px; }
.match-tag--off { color: var(--text-2); background: transparent; border: 1px solid var(--line-strong); }
.match-markets { list-style: none; margin: var(--s-3) 0 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.match-markets li { background: var(--paper); padding: var(--s-3) var(--s-4); display: grid; gap: 2px; font-family: var(--ui); font-size: 14px; }
.match-markets b { font-size: 15px; }
.match-markets span { color: var(--paper-text-2); }
.match-markets a { color: var(--green); font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.match-fav { margin: var(--s-4) 0 0 !important; padding: var(--s-3) var(--s-4); border-left: 3px solid var(--green); background: var(--surface-1); font-family: var(--ui); font-size: 14px !important; }
.match-fav span { display: block; color: var(--text-3); font-size: 12.5px; }
.match-result__score { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: baseline; font-family: var(--display); font-weight: 800; font-size: clamp(22px, 5vw, 32px); text-transform: uppercase; margin: var(--s-3) 0 0 !important; }
.match-result__score b { color: var(--green); }
.match-scorers { font-family: var(--ui); font-size: 14px !important; }
.match-links .match-next { padding: var(--s-3) var(--s-5); margin: 0; font-family: var(--ui); font-size: 14px; font-weight: 600; display: grid; gap: 2px; }
.match-links .match-next small { color: var(--text-3); font-weight: 500; }
.match-links .panel__head + .rel a:first-child { border-top: 0; }
.match-hub__h { font-family: var(--display); font-size: var(--fs-h2); text-transform: uppercase; margin: var(--s-8) 0 var(--s-3); }
.match-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.match-card { display: grid; grid-template-columns: 96px 1fr auto; gap: var(--s-4); align-items: center; padding: var(--s-4); min-height: 44px; background: var(--surface-1); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.match-card:hover { border-color: var(--green); }
.match-card__when { font-family: var(--ui); font-size: 13px; font-weight: 700; display: flex; flex-direction: column; }
.match-card__when .num { font-family: var(--display); font-size: 22px; }
.match-card__when small, .match-card__teams small { font-family: var(--ui); font-weight: 500; color: var(--text-3); font-size: 12px; text-transform: none; letter-spacing: 0; }
.match-card__teams { font-family: var(--display); font-weight: 800; font-size: 18px; text-transform: uppercase; display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.match-card__teams i { font-style: normal; font-family: var(--ui); font-size: 12px; color: var(--text-3); text-transform: lowercase; }
.match-card__teams b { color: var(--green); }
@media (max-width: 520px) { .match-card { grid-template-columns: 72px 1fr; } .match-card .match-state { grid-column: 2; justify-self: start; } }

/* ---------------------------------------------------------------- League calendar (TAB-0405; spec §4, design TAB-0403)
   /blog/calendario/: Deportes tab row, day strip, match rows with team chips (code + club colour edge, no crests), odds
   column only with fresh feed prices. Mobile first: one column, actions as 44 px buttons under the teams; desktop: grid row. */
.sport-tabs { display: flex; gap: var(--s-2); margin: var(--s-4) 0 0; overflow-x: auto; scrollbar-width: none; }
.sport-tabs__tab { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 var(--s-4); border: 1px solid var(--line-strong); border-radius: var(--radius-pill); font-family: var(--ui); font-size: 14px; font-weight: 600; color: var(--text-2); text-decoration: none; white-space: nowrap; }
.sport-tabs__tab:hover { color: var(--text); border-color: var(--text-3); }
.sport-tabs__tab[aria-current="page"] { color: var(--text); background: var(--surface-2); border-color: var(--green); }
.sport-tabs__tab.is-off { color: var(--text-3); border-style: dashed; cursor: default; }
.sport-tabs__tab small { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
/* narrow phones (QA M4): all three tabs fit the row, "Calendario pronto" included; wrap as a last resort, never clipped */
@media (max-width: 430px) {
  .sport-tabs { flex-wrap: wrap; gap: 6px; }
  .sport-tabs__tab { padding: 0 10px; font-size: 13px; gap: 4px; }
  .sport-tabs__tab small { font-size: 10px; letter-spacing: .04em; }
}
.cal-grid { margin-top: var(--s-5); padding-bottom: var(--s-10, 48px); }
.cal-main h1 { font-size: var(--fs-h1-article); margin: 0; }
.cal-sub { margin: var(--s-2) 0 0; }
.cal-demo { margin: var(--s-4) 0 0; padding: var(--s-2) var(--s-3); border: 1px dashed var(--red); border-radius: var(--radius-sm); font-family: var(--ui); font-size: 13px; font-weight: 600; color: var(--text); }
.cal-empty { margin-top: var(--s-6); padding: var(--s-6) var(--s-5); background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--radius); }
.cal-empty h2 { font-size: var(--fs-h2); text-transform: uppercase; margin: 0 0 var(--s-2); }
.cal-empty p { margin: var(--s-2) 0 0; color: var(--text-2); font-family: var(--ui); font-size: 15px; }
.cal-empty a { color: var(--green); font-weight: 600; display: inline-flex; min-height: 44px; align-items: center; }
/* answer card on the .ans family (design D4): a time is not money, so the figure is --text; stacked under 600 px */
.cal-ans { margin-top: var(--s-5); grid-template-columns: minmax(0, 1fr); gap: var(--s-3); }
.cal-ans .ans__fig { color: var(--text); }
.cal-ans .ans__fig small { text-transform: none; }   /* "h CDMX" as in the rows (spec §3.5), not "H CDMX" */
.cal-ans .ans__q { color: var(--green); }
.cal-ans .ans__a { margin-top: var(--s-2); }
.cal-ans .ans__acts .btn { min-height: 44px; gap: 6px; }
@media (min-width: 600px) { .cal-ans { grid-template-columns: auto minmax(0, 1fr); gap: var(--s-5); align-items: start; } }
/* D2: the header row is 57 px only up to 480 px (winpot-ds.css .header__row), 73 px above (TAB-0419 design review) */
.cal-main { --header-h: 73px; }
@media (max-width: 480px) { .cal-main { --header-h: 57px; } }
.cal-days { position: sticky; top: var(--header-h); z-index: 5; display: flex; gap: var(--s-2); overflow-x: auto; scrollbar-width: none; margin: var(--s-5) calc(-1 * var(--gutter, 16px)) 0; padding: var(--s-2) var(--gutter, 16px); background: var(--ground); border-bottom: 1px solid var(--line); }
.cal-days a { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-4); border: 1px solid var(--line); border-radius: var(--radius-sm); font-family: var(--ui); font-size: 14px; font-weight: 600; color: var(--text-2); text-decoration: none; text-transform: capitalize; }
.cal-days a:hover { color: var(--text); background: var(--surface-1); }
.cal-days a[aria-current] { color: var(--text); background: var(--surface-2); border-color: var(--green); }
.cal-day, .cal-played { scroll-margin-top: calc(var(--header-h) + 64px); }
.cal-day__h { font-family: var(--display); font-size: 18px; text-transform: uppercase; margin: var(--s-6) 0 var(--s-3); }
.cal-day__h::first-letter { text-transform: uppercase; }
.cal-none { font-family: var(--ui); font-size: 15px; color: var(--text-2); margin: 0; }
.cal-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.cal-row { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: var(--s-3) var(--s-4); padding: var(--s-4); background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--radius); scroll-margin-top: calc(var(--header-h) + 64px); }
.cal-row:target { border-color: var(--green); }
.cal-row__when { display: flex; flex-direction: column; gap: 4px; font-family: var(--ui); }
.cal-row__when time { display: flex; flex-direction: column; }
.cal-row__when .num { font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1.1; }
.cal-row__when small { font-size: 11px; font-weight: 600; color: var(--text-3); }
.cal-row__when .match-state { align-self: flex-start; font-size: 10px; padding: 2px 6px; white-space: nowrap; }
/* TAB-0444 (design §3.2): 6 px pulsing dot inside the live badge. The badge is --status filled, so the dot takes the badge
   text colour (--on-green); the pulse is a transform/opacity ring on ::after (no layout shift), static under reduced motion. */
.cal-row__when .match-state--live { display: inline-flex; align-items: center; gap: 4px; }
.cal-live-dot { position: relative; flex: none; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.cal-live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: currentColor; opacity: .5; animation: cal-live-pulse 2.4s ease-out infinite; }
@keyframes cal-live-pulse { 0% { transform: scale(1); opacity: .5; } 70% { transform: scale(2.6); opacity: 0; } 100% { transform: scale(2.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cal-live-dot::after { animation: none; opacity: 0; } }
.cal-row__comp { display: inline-flex; align-items: center; min-height: 24px; font-size: 11px; letter-spacing: .08em; color: var(--text-3); text-decoration: none; }
.cal-row__comp:hover { color: var(--text); }
.cal-row__teams { display: grid; gap: var(--s-2); min-width: 0; }
.cal-team { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s-3); align-items: center; }
.cal-chip { display: inline-grid; place-items: center; min-width: 48px; height: 28px; padding: 0 6px 0 9px; background: var(--surface-2); border-left: 4px solid var(--club, var(--line-strong)); border-radius: var(--radius-sm); font-family: var(--ui); font-size: 12px; font-weight: 800; letter-spacing: .06em; color: var(--text); }
/* fallback chip (no mapped code): first 3 letters of the name, neutral edge, slightly dimmer text */
.cal-chip--auto { color: var(--text-2); }
.cal-team__name { font-family: var(--ui); font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
.cal-team__score { font-family: var(--display); font-weight: 800; font-size: 20px; }
.cal-row__meta { margin: 0; font-family: var(--ui); font-size: 12.5px; color: var(--text-3); }
.cal-row__act { grid-column: 1 / -1; display: grid; gap: var(--s-3); }
.cal-row__btns { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.cal-row__btns .btn { min-height: 44px; flex: 1 1 140px; justify-content: center; }
.cal-odds { display: grid; gap: 4px; }
.cal-odds__picks { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: var(--s-2); }
.cal-odds__pick { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: var(--s-2); align-items: center; min-height: 44px; padding: 4px var(--s-3); background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); color: var(--text); text-decoration: none; font-family: var(--ui); }
.cal-odds__pick:hover { border-color: var(--green); }
.cal-odds__pick span { grid-row: 1 / 3; font-size: 12px; font-weight: 700; color: var(--text-3); }
.cal-odds__pick b { font-family: var(--money); font-size: 16px; font-weight: 700; justify-self: end; }
.cal-odds__pick small { font-size: 11px; color: var(--text-3); justify-self: end; }
.cal-odds__at { font-family: var(--ui); font-size: 11.5px; color: var(--text-3); }
.cal-odds--closed { margin: 0; font-family: var(--ui); font-size: 13px; font-weight: 600; color: var(--text-2); padding: var(--s-2) var(--s-3); border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); }
@media (min-width: 600px) {
  .cal-row { grid-template-columns: 84px minmax(0, 1fr) minmax(220px, 300px); align-items: center; }
  .cal-row__act { grid-column: auto; }
  .cal-row__btns .btn { flex: 1 1 0; min-height: 40px; }
}
@media (min-width: 600px) and (max-width: 1023px) { .cal-row__btns .btn { min-height: 44px; } }   /* touch-size tablets (TAB-0417 m1) */
/* 1024-1279 px: the aside takes 380 px and the main column is too narrow for a third column (the team names collapsed to
   one letter per line, TAB-0410 check): actions go under the teams, as on mobile. */
@media (min-width: 1024px) and (max-width: 1279px) {
  .cal-row { grid-template-columns: 84px minmax(0, 1fr); }
  .cal-row__act { grid-column: 1 / -1; }
}
@media (min-width: 1024px) { .cal-days { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; } }
.cal-main .match-src { margin-top: var(--s-5) !important; }
.cal-main .match-src a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
/* League calendar, design review 2 Dec (docs/design/2026-12-02-calendar-design.md D1-D16) */
.cal-by { margin: var(--s-2) 0 0; }
/* D9: one borderless line under the first bet button */
.cal-rg { display: flex; align-items: center; gap: var(--s-2); min-height: 44px; margin: var(--s-3) 0 0; font-family: var(--ui); font-size: 13px; line-height: 1.5; color: var(--text-2); }
.cal-rg .age { flex: none; }
.cal-rg > span:last-child { flex: 1 1 auto; min-width: 0; }
.cal-rg a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; padding: 12px 0; }
.cal-rg a:hover { color: var(--text); }
/* D1: the row bet is an outline action; the only solid green button is the answer card's */
.cal-row__btns .cal-bet { background: transparent; border: 1px solid var(--green); color: var(--green); gap: 6px; }
.cal-row__btns .cal-bet:hover { background: rgba(135,240,49,.12); }
.cal-row__btns .btn--ghost { gap: 6px; }
.cal-bet__short { display: none; }
/* D3: played rows step back */
.cal-row--past .cal-team__name { color: var(--text-2); }
.cal-played__h { margin-top: var(--s-8, 40px); }
.cal-played .cal-day__h { font-size: 15px; color: var(--text-2); margin-top: var(--s-5); }
.cal-none a { color: var(--green); font-weight: 600; }
/* D7: static body of the competition */
.cal-body { max-width: var(--measure, 68ch); margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid var(--line); font-family: var(--ui); font-size: 15px; line-height: 1.6; color: var(--text-2); }
.cal-body p { margin: 0 0 var(--s-3); }
.cal-body__links { list-style: none; margin: var(--s-3) 0 0; padding: 0; display: grid; gap: 0; }
.cal-body__links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--green); font-weight: 600; }
@media (prefers-reduced-motion: no-preference) { html:has(.cal-days) { scroll-behavior: smooth; } }
/* D14: phones, three columns (time · teams · actions stacked on the right, "Apostar"); odds take their own line */
@media (max-width: 599px) {
  /* TAB-0426: no hyphenation of team names ("San Fran-cisco"): a 48 px time column and 14 px names leave the longest single
     word (Commanders, 99 px) its own line; played rows put the state badge on its own line above the teams */
  .cal-row { grid-template-columns: 48px minmax(0, 1fr) auto; padding: var(--s-3); column-gap: 8px; row-gap: var(--s-3); align-items: center; }
  .cal-row__when .match-state { font-size: 9.5px; letter-spacing: .02em; padding: 2px 4px; }
  .cal-team { gap: var(--s-2); }
  .cal-team:not(:has(.cal-team__score)) { grid-template-columns: auto minmax(0, 1fr); }   /* no empty score column eating a gap */
  .cal-chip { min-width: 40px; padding: 0 4px 0 6px; }
  .cal-team__name { font-size: 14px; overflow-wrap: break-word; hyphens: manual; }
  /* TAB-0444: the live badge (dot + "En juego", ~73 px) is wider than the 48 px time column, so live rows take the same
     badge-above-teams layout; odds, when the feed sends them, drop to the third line */
  .cal-row--past .cal-row__when, .cal-row--live .cal-row__when { grid-column: 1 / 3; grid-row: 1; flex-direction: row; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
  .cal-row--past .cal-row__teams, .cal-row--live .cal-row__teams { grid-column: 1 / 3; grid-row: 2; }
  .cal-row--past .cal-row__btns, .cal-row--live .cal-row__btns { grid-row: 1 / 3; }
  .cal-row--live .cal-odds { grid-row: 3; }
  .cal-row__btns .btn--ghost { white-space: normal; text-align: center; line-height: 1.2; padding: 4px 6px; }
  .cal-row__act { grid-column: auto; display: contents; }
  /* TAB-0453: design §3.3 action column, 104 px (96 px below 380 px) */
  .cal-row__btns { flex-direction: column; flex-wrap: nowrap; width: 104px; grid-column: 3; grid-row: 1; }
  .cal-row__btns .btn { flex: none; width: 100%; padding: 0 8px; }
  .cal-bet__long { display: none; }
  .cal-bet__short { display: inline; }
  .cal-odds { grid-column: 1 / -1; grid-row: 2; }
  .cal-row__when .num { font-size: 18px; }
}
/* TAB-0453: the 96 px action column takes 10 px from the names; tighter gaps give them back (Commanders, 92 px at 13 px) */
@media (max-width: 379px) { .cal-row__btns { width: 96px; } .cal-row { column-gap: 6px; } .cal-team { gap: 6px; } .cal-team__name { font-size: 13px; } }
@media (pointer: coarse) { .cal-row__btns .btn { min-height: 44px; } }
/* /blog/pronosticos/ and the previa: list-page grid with the default aside (TAB-0394 review) */
.pv-grid { margin-top: var(--s-5); padding-bottom: var(--s-10, 48px); }
.pv-grid .match-hub__h:first-of-type { margin-top: var(--s-6); }
@media (min-width: 1024px) { .pv-grid .match-list { grid-template-columns: 1fr; } }
/* Previa on phones (TAB-0394 review): the match analysis comes first; links and promo follow the body. */
.aside--late { margin: var(--s-6) auto 0; padding-bottom: var(--s-6); }
@media (max-width: 1023px) { .article-grid > .aside--early { display: none; } }
@media (min-width: 1024px) { .aside--late { display: none; } }
