/* ════════════════════════════════════════════════════════════════════════
   HOME BOARD — the games screen of the redesign (Claude Design "Team
   colors", 19.10.2026). Every size, weight and colour below is the design's
   own value; the tokens come from design_system.css, the club colours from
   js/team_palette.js (written as --team-* custom properties).

   Layout, by container width as in the design:
     ≥1000  two columns, 1.6fr | 1fr: hero + games | my follows + table
     560–999  one column, the side cards two-up under the games
     <560   one column in the design's order: hero, my follows, the controls
            card and the games under it, table, fantasy
   ════════════════════════════════════════════════════════════════════════ */

/* The content column follows the spec: up to 1280 wide with even gutters. */
:root { --app-max-width: 1280px; }

html[data-theme] .main-content {
  padding: 14px clamp(12px, 3vw, 24px) 8px;
}

.home-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.home-col-main,
.home-col-side { display: contents; }
.hb-hero          { order: 1; }
#home-my          { order: 2; }
#date-nav         { order: 3; }
.games-section    { order: 4; }
#home-table       { order: 5; }
#home-leaders     { order: 6; }
.hb-fantasy       { order: 7; }
#home-news        { order: 8; }   /* the news on followed clubs: last, on a phone and in the side column */

@media (min-width: 560px) {
  .home-grid { gap: 16px; }
  .home-col-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
  .home-col-side {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
  }
  .home-col-side > [hidden] { display: none; }
  #home-news { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
  .home-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
  }
  .home-col-side { display: flex; flex-direction: column; align-items: stretch; gap: 16px; min-width: 0; }
}

/* ── Cards ── */
.hb-card {
  min-width: 0;
  background: var(--ds-card);
  padding: 14px 16px 4px;
}
@media (min-width: 560px) { .hb-card { padding: 16px 18px 6px; } }
.hb-card[hidden] { display: none; }
.hb-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 10px;
  padding-bottom: 10px;
}
.hb-card-title {
  margin: 0;
  font: 900 var(--ds-fs-17)/1.2 var(--ds-font);
  color: var(--ds-ink);
}
.hb-card-meta {
  font: 600 var(--ds-fs-13)/1.3 var(--ds-font);
  color: var(--ds-ink2);
}
.hb-empty {
  margin: 0 0 12px;
  padding: 12px 14px;
  background: var(--ds-bg);
  font: 500 var(--ds-fs-14)/1.55 var(--ds-font);
  color: var(--ds-ink2);
  text-wrap: pretty;
}

/* ── The 4px edge beside a followed team's row ── */
.hb-edge,
.gr-edge {
  position: absolute;
  inset-inline-start: 0;
  top: 8px;
  bottom: 8px;
  width: 4px;
  background: var(--hb-edge-l, var(--gr-edge-l, transparent));
  transition: background-color .45s;
}
html[data-theme="dark"] .hb-edge,
html[data-theme="dark"] .gr-edge { background: var(--hb-edge-d, var(--gr-edge-d, transparent)); }

/* ── Hero: the home team's card ── */
.hb-hero {
  /* neutral unless the club has colours (.is-team) */
  --hf: var(--ds-card);
  --hfg: var(--ds-ink);
  --htr: transparent;
  --hrule: var(--ds-line);
  --hring: var(--ds-line);
  --hcrest: var(--ds-line);
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--hf);
  color: var(--hfg);
  box-shadow: inset 0 0 0 1px var(--hring);
  transition: background-color .45s ease, color .45s ease;
  animation: hb-up .35s ease-out both;
}
.hb-hero[hidden] { display: none; }
.hb-hero.is-team {
  --hf: var(--team-field-l);
  --hfg: var(--team-fg-l);
  --htr: var(--team-trim-l);
  --hrule: var(--team-rule-l);
  --hring: var(--team-ring-l);
  --hcrest: var(--team-fg-l);
}
html[data-theme="dark"] .hb-hero.is-team {
  --hf: var(--team-field-d);
  --hfg: var(--team-fg-d);
  --htr: var(--team-trim-d);
  --hrule: var(--team-rule-d);
  --hring: var(--team-ring-d);
  --hcrest: var(--team-fg-d);
}
@keyframes hb-up { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.hb-hero-in {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 16px;
}
.hb-hero-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}
.hb-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 11px;
  border-radius: var(--ds-r-pill);
  border: 1.5px solid currentColor;
  font: 800 var(--ds-fs-13)/1 var(--ds-font);
}
.hb-meta { font: 700 var(--ds-fs-14)/1.3 var(--ds-font); }
.hb-home { margin-inline-start: auto; font: 800 var(--ds-fs-13)/1.2 var(--ds-font); }

.hb-hero-main { display: flex; flex-direction: column; gap: 14px; }
.hb-hero-team { display: flex; align-items: center; gap: 14px; min-width: 0; }
.hb-hero-names { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
/* crest.js sizes the disc inline; the design shrinks it on a phone */
.hb-hero .hb-hero-crest {
  width: 52px !important;
  height: 52px !important;
  box-shadow: 0 0 0 2.5px var(--hcrest) !important;
}
.hb-hero-name {
  margin: 0;
  font: 900 var(--ds-fd-28)/1.1 var(--ds-font);
  letter-spacing: -.02em;
  text-wrap: balance;
  color: inherit;
}
.hb-vs {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 600 var(--ds-fs-15)/1.3 var(--ds-font);
}
.hb-vs .team-crest { box-shadow: 0 0 0 1.5px var(--hcrest) !important; }
.hb-hero-bigbox { display: flex; align-items: baseline; gap: 10px; }
.hb-hero-big {
  font: 800 var(--ds-fd-48)/.9 var(--ds-font-num);
  font-variant-numeric: tabular-nums;
  direction: ltr;
  unicode-bidi: isolate;
}
.hb-hero-under,
.hb-big-lbl { font: 700 var(--ds-fs-14)/1.2 var(--ds-font); }
.hb-hero-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  padding-top: 12px;
  border-top: 1px solid var(--hrule);
  font: 700 var(--ds-fs-14)/1.3 var(--ds-font);
}
.hb-arena {
  font: 700 var(--ds-fs-15)/1.2 var(--ds-font-num);
  letter-spacing: .06em;
}
.hb-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.hb-b1,
.hb-b2 {
  flex: 1 1 auto;
  min-height: var(--ds-h-btn);
  padding: 0 20px;
  border-radius: 0;
  font: 800 var(--ds-fs-14)/1 var(--ds-font);
  cursor: pointer;
  transition: background-color .45s, color .45s, opacity var(--ds-t-ctrl);
}
.hb-b1 { border: 0; background: var(--hfg); color: var(--hf); }
.hb-b2 { border: 1.5px solid var(--hfg); background: transparent; color: var(--hfg); }
.hb-b1:hover { opacity: .88; }
.hb-b2:hover { background: color-mix(in srgb, var(--hfg) 10%, transparent); }
.hb-hero :focus-visible { outline-color: var(--hfg); }
/* The arrow to the reader's next followed club in this league (owner, 13.11): a 44px target in the card's own ink. */
.hb-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  border: 1.5px solid var(--hfg);
  border-radius: var(--ds-r-pill);
  background: transparent;
  color: var(--hfg);
  font: 800 var(--ds-fs-13)/1 var(--ds-font);
  cursor: pointer;
  transition: background-color var(--ds-t-ctrl), color .45s, border-color .45s;
}
.hb-next:hover { background: color-mix(in srgb, var(--hfg) 10%, transparent); }
.hb-next-arrow { font-size: 22px; line-height: 1; margin-top: -2px; }
.hb-next-n { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.hb-hero.is-split .hb-next { border-color: currentColor; color: inherit; }
.hb-hero-trim {
  display: block;
  height: 6px;
  background: var(--htr);
  transition: background-color .45s;
}
.hb-hero:not(.is-team) .hb-hero-trim { height: 0; }

@media (min-width: 560px) {
  .hb-hero-in { gap: 18px; padding: 22px 26px; }
  .hb-hero-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
  }
  .hb-hero .hb-hero-crest { width: 68px !important; height: 68px !important; }
  .hb-hero-name { font-size: var(--ds-fd-32); line-height: 1.05; }
  .hb-hero-bigbox { flex-direction: column; align-items: flex-end; gap: 4px; }
  .hb-hero-big { font-size: var(--ds-fd-64); }
  .hb-hero-facts { padding-top: 14px; }
  .hb-b1, .hb-b2 { flex: none; }
}
@media (min-width: 1000px) {
  .hb-hero-name { font-size: var(--ds-fd-40); }
  .hb-hero-big { font-size: var(--ds-fd-80); }
}

/* ── Hero, split: two followed clubs in one game ── */
.hb-hero.is-split { background: transparent; box-shadow: none; }
.hb-split { display: flex; flex-direction: column; }
.hb-split-sides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hb-split-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  min-height: 150px;
  padding: 18px 12px 22px;
  background: var(--sp-f-l);
  color: var(--sp-fg-l);
  box-shadow: inset 0 -6px 0 var(--sp-tr-l);
  text-align: center;
}
html[data-theme="dark"] .hb-split-side {
  background: var(--sp-f-d);
  color: var(--sp-fg-d);
  box-shadow: inset 0 -6px 0 var(--sp-tr-d);
}
.hb-split-side .hb-split-crest { width: 40px !important; height: 40px !important; box-shadow: 0 0 0 2px currentColor !important; }
.hb-split-name { font: 800 var(--ds-fs-15)/1.25 var(--ds-font); text-wrap: balance; overflow-wrap: anywhere; }
.hb-split-sub { font: 600 var(--ds-fs-13)/1.3 var(--ds-font); }
.hb-split-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 12px;
  background: var(--ds-card);
  color: var(--ds-ink);
  box-shadow: inset 0 0 0 1px var(--ds-line);
}
.hb-split-time {
  font: 800 var(--ds-fs-24)/1 var(--ds-font-num);
  font-variant-numeric: tabular-nums;
  direction: ltr;
  unicode-bidi: isolate;
}
.hb-split-day { font: 700 var(--ds-fs-13)/1 var(--ds-font); color: var(--ds-ink2); }
.hb-split .hb-split-go {
  --hf: var(--ds-card);
  --hfg: var(--ds-ink);
  flex: none;
  margin-inline-start: auto;
}
.hb-visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ── My follows ── */
.hb-my .hb-card-head { padding-bottom: 6px; }
.hb-my-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--ds-line);
  background: transparent;
  color: var(--ds-ink);
  font: inherit;
  text-align: start;
  cursor: pointer;
  transition: background-color var(--ds-t-ctrl) ease;
}
.hb-my-row:hover { background: var(--ds-soft); }
.hb-my-row .hb-edge { position: static; flex: none; align-self: stretch; margin: 10px 0; }
.hb-my-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: 8px 0; }
.hb-my-name { font: 800 var(--ds-fs-15)/1.3 var(--ds-font); color: var(--ds-ink); }
.hb-my-lg { font: 500 var(--ds-fs-13)/1.35 var(--ds-font); color: var(--ds-ink2); }
.hb-showing {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  margin-inline-end: 4px;
  background: var(--ds-ink);
  color: var(--ds-card);
  font: 800 var(--ds-fs-12)/1 var(--ds-font);
}

/* ── Table ── */
.hb-table .hb-card-head { padding-bottom: 8px; }
.hb-tbody { cursor: pointer; }
.hb-tbody:hover .hb-trow { background: transparent; }
.hb-trow {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding-inline-start: 14px;
  border-top: 1px solid var(--ds-line);
}
.hb-tpos {
  width: 22px;
  flex: none;
  font: 700 var(--ds-fs-15)/1 var(--ds-font-num);
  color: var(--ds-ink2);
  text-align: center;
}
.hb-tname {
  flex: 1;
  min-width: 0;
  font: 600 var(--ds-fs-14)/1.3 var(--ds-font);
  color: var(--ds-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hb-trow.is-mine .hb-tname { font-weight: 800; }
.hb-trec {
  flex: none;
  font: 700 var(--ds-fs-15)/1 var(--ds-font-num);
  font-variant-numeric: tabular-nums;
  color: var(--ds-ink);
  direction: ltr;
  unicode-bidi: isolate;
}
.hb-gap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  border-top: 1px solid var(--ds-line);
  font: 700 var(--ds-fs-14)/1 var(--ds-font);
  letter-spacing: .2em;
  color: var(--ds-ink2);
}

/* ── Today's games: one row per game ──
   Head as in the approved prototype: the league, the round beside it, the
   number of games at the far end; then the column labels. */
.games-section .hb-card-head { justify-content: flex-start; }
html[data-theme] .games-section .games-count {
  margin-inline-start: auto;
  padding: 0;
  border-radius: 0;
  background: none;
  letter-spacing: 0;
  font: 600 var(--ds-fs-13)/1.3 var(--ds-font);
  color: var(--ds-ink2);
  white-space: nowrap;
}
.games-count[hidden] { display: none; }
.gr-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px;
  padding: 0 0 8px;
  padding-inline-start: 14px;
  font: 700 var(--ds-fs-12)/1.2 var(--ds-font);
  color: var(--ds-ink2);
}
.gr-cols[hidden] { display: none; }
.gr-cols span:nth-child(2) { text-align: center; }
.gr-cols span:nth-child(3) { text-align: end; }
.games-list { display: flex; flex-direction: column; }
.games-none-mine {
  margin: 0;
  padding: 18px 4px 22px;
  border-top: 1px solid var(--ds-line);
  text-align: center;
  font: 600 var(--ds-fs-14)/1.5 var(--ds-font);
  color: var(--ds-ink2);
}
.game-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 6px 0;
  padding-inline-start: 14px;
  border-top: 1px solid var(--ds-line);
  cursor: pointer;
  transition: background-color var(--ds-t-ctrl) ease;
}
.game-row:hover { background: var(--ds-soft); }
.games-list--flat .game-row { cursor: default; }
.games-list--flat .game-row:hover { background: transparent; }
.gr-side { display: flex; align-items: center; gap: 8px; min-width: 0; }
.gr-away { justify-content: flex-end; }
.gr-name {
  min-width: 0;
  font: 600 var(--ds-fs-14)/1.25 var(--ds-font);
  color: var(--ds-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: break-word;
}
.gr-name.is-mine { font-weight: 800; }
/* The star before a followed club's name (owner, 15.11): the theme's amber, #8F5100 on light and #FBBF24 on dark. */
.gr-star { color: var(--ds-warn); margin-inline-end: 4px; }
/* A phone gives each club about 60px for its name beside the crest, which broke "Charlotte" and
   "Timberwolves" mid-word. Crest above the name gives the name the whole column (owner, 24.10). */
@media (max-width: 400px) {
  .game-row { gap: 6px; padding-inline-start: 8px; }
  .gr-side { flex-direction: column; justify-content: center; gap: 4px; }
  .gr-side .gr-crest { order: -1; }
  .gr-name { font-size: 13px; text-align: center; }
  .gr-score { gap: 4px; font-size: 18px; }
}
.gr-flag { flex: none; width: 22px; height: 22px; display: inline-grid; place-items: center; font-size: 18px; line-height: 1; }
.gr-mid { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.gr-time {
  font: 700 var(--ds-fs-17)/1 var(--ds-font-num);
  font-variant-numeric: tabular-nums;
  color: var(--ds-ink);
  direction: ltr;
  unicode-bidi: isolate;
}
.gr-score {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font: 700 var(--ds-fs-20)/1 var(--ds-font-num);
  font-variant-numeric: tabular-nums;
  color: var(--ds-ink);
}
.gr-score .gr-lose { color: var(--ds-ink2); }
.gr-sep { color: var(--ds-ink2); }
.gr-subs { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.gr-sub { font: 700 var(--ds-fs-12)/1.2 var(--ds-font); color: var(--ds-ink2); white-space: nowrap; }
.gr-note { font: 600 var(--ds-fs-12)/1.2 var(--ds-font); color: var(--ds-ink2); text-align: center; }
.game-card--soon .game-countdown { color: var(--ds-warn); }
.gr-pill { min-height: 20px; padding: 0 8px; white-space: nowrap; }
.gr-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
/* The live insight tag (bubble.js) spans the whole row underneath. */
.game-row .prof-card-bubble { grid-column: 1 / -1; position: static; margin: 2px 0 4px; }

/* Loading: three quiet rows, no shimmer of colour. */
.game-row.skeleton {
  cursor: default;
  background: linear-gradient(90deg, transparent 0%, var(--ds-soft) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
.game-row.skeleton:hover { background-color: transparent; }

/* Empty and error, as plain text inside the card. */
.games-section .no-games,
.games-section .error-msg {
  padding: 18px 4px 22px;
  text-align: center;
  color: var(--ds-ink2);
  border-top: 1px solid var(--ds-line);
}
.games-section .no-games p,
.games-section .error-msg p { margin: 0 0 6px; font: 800 var(--ds-fs-15)/1.4 var(--ds-font); color: var(--ds-ink); }
.games-section .no-games small { font: 500 var(--ds-fs-14)/1.5 var(--ds-font); color: var(--ds-ink2); }
.games-section .error-msg .ui-btn { margin-top: 8px; }

/* ── League leaders (NBA): the standings tab's three headline categories, as
   a side card in the same language as the table above it. No design file
   covers it; the owner kept it on the games screen (17.9). Markup from
   standings.js renderHomeLeaders. ── */
html[data-theme] .hb-leaders { margin: 0; }
html[data-theme] .hb-leaders.hidden { display: none; }
html[data-theme] .hb-leaders .hl-card { padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--ds-ink); font-family: var(--ds-font); }
html[data-theme] .hb-leaders .hl-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding-bottom: 10px; }
html[data-theme] .hb-leaders .hl-title { margin: 0; font: 900 var(--ds-fs-17)/1.2 var(--ds-font); color: var(--ds-ink); }
html[data-theme] .hb-leaders .hl-note { font: 600 var(--ds-fs-13)/1.3 var(--ds-font); color: var(--ds-ink2); }
html[data-theme] .hb-leaders .hl-more {
  margin-inline-start: auto;
  min-height: var(--ds-h-btn);
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: var(--ds-ink);
  font: 800 var(--ds-fs-13)/1 var(--ds-font);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
html[data-theme] .hb-leaders .hl-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--ds-line);
}
html[data-theme] .hb-leaders .hl-col {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "v v" "u u" "c n";
  align-items: center;
  column-gap: 6px;
  row-gap: 2px;
  min-height: 88px;
  padding: 12px 8px 10px;
  border: 0;
  border-inline-start: 1px solid var(--ds-line);
  border-radius: 0;
  background: transparent;
  color: var(--ds-ink);
  font-family: var(--ds-font);
  text-align: start;
  cursor: pointer;
  transition: background-color var(--ds-t-ctrl) ease;
}
html[data-theme] .hb-leaders .hl-col:first-child { border-inline-start: 0; padding-inline-start: 0; }
html[data-theme] .hb-leaders .hl-col:hover { background: var(--ds-soft); }
html[data-theme] .hb-leaders .hl-val {
  grid-area: v;
  font: 800 28px/1 var(--ds-font-num);
  font-variant-numeric: tabular-nums;
  color: var(--ds-ink);
}
html[data-theme] .hb-leaders .hl-unit { grid-area: u; font: 600 var(--ds-fs-12)/1.2 var(--ds-font); color: var(--ds-ink2); }
html[data-theme] .hb-leaders .hl-col .team-crest { grid-area: c; margin-top: 6px; }
html[data-theme] .hb-leaders .hl-name {
  grid-area: n;
  margin-top: 6px;
  font: 700 var(--ds-fs-13)/1.25 var(--ds-font);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
html[data-theme] .hb-leaders .hl-empty {
  margin: 0;
  padding: 12px 0 10px;
  border-top: 1px solid var(--ds-line);
  font: 500 var(--ds-fs-14)/1.55 var(--ds-font);
  color: var(--ds-ink2);
}
html[data-theme] .hb-leaders .hl-more:focus-visible,
html[data-theme] .hb-leaders .hl-col:focus-visible { outline: 2px solid var(--ds-ink); outline-offset: 2px; }

/* ── Fantasy: one quiet card in the side column (approved prototype) ── */
.hb-card.hb-fantasy { padding: 0; }
.hb-fantasy-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 76px;
  margin: 0;
  padding: 14px 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ds-ink);
  font: inherit;
  text-align: start;
  cursor: pointer;
  transition: background-color var(--ds-t-ctrl) ease;
}
@media (min-width: 560px) { .hb-fantasy-btn { padding: 16px 18px; } }
.hb-fantasy-btn:hover { background: var(--ds-soft); }
.hb-fantasy-ico { flex: none; color: var(--ds-ink); }
.hb-fantasy-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hb-fantasy-txt b { font: 900 var(--ds-fs-17)/1.2 var(--ds-font); }
.hb-fantasy-txt span { font: 500 var(--ds-fs-13)/1.4 var(--ds-font); color: var(--ds-ink2); }
.hb-fantasy-go {
  flex: none;
  font: 800 var(--ds-fs-13)/1 var(--ds-font);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .hb-hero { animation: none; }
}

/* East / West switch in the table card's header */
.hb-tabs { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; max-inline-size: 100%; }
.hb-tab { min-height: 44px; padding: 0 12px; border: 1.5px solid var(--ds-line); background: transparent; color: var(--ds-ink2); font: 600 var(--ds-fs-13, 13px) var(--ds-font); cursor: pointer; }
.hb-tab.is-on { background: var(--ds-ink); border-color: var(--ds-ink); color: var(--ds-card); }

/* The kick-off time and its countdown were small on a wide screen (owner, 26.10) */
.gr-sub.game-countdown { font: 700 var(--ds-fs-14) var(--ds-font-num); font-variant-numeric: tabular-nums; }
@media (min-width: 900px) {
  .gr-time { font-size: 26px; }
  .gr-sub.game-countdown { font-size: 16px; }
}

/* A game row in both clubs' colours: each side strongest at its edge, fading to the card under the score
   (Claude Design, team marks §10, "fade from the edge"; the owner's choice, 6.11). Home is on the right in Hebrew. */
.game-row.gr-wash {
  --h-str: var(--h-str-l, var(--ds-card)); --h-soft: var(--h-soft-l, var(--ds-card)); --h-ink: var(--h-ink-l, var(--ds-ink));
  --a-str: var(--a-str-l, var(--ds-card)); --a-soft: var(--a-soft-l, var(--ds-card)); --a-ink: var(--a-ink-l, var(--ds-ink));
  --gr-wash-dir: to left;
  --gr-wash: linear-gradient(var(--gr-wash-dir), var(--h-str) 0, var(--h-soft) 27.5%, var(--ds-card) 50%, var(--a-soft) 72.5%, var(--a-str) 100%);
  background: var(--gr-wash);
}
html[dir="ltr"] .game-row.gr-wash { --gr-wash-dir: to right; }
html[data-theme="dark"] .game-row.gr-wash {
  --h-str: var(--h-str-d, var(--ds-card)); --h-soft: var(--h-soft-d, var(--ds-card)); --h-ink: var(--h-ink-d, var(--ds-ink));
  --a-str: var(--a-str-d, var(--ds-card)); --a-soft: var(--a-soft-d, var(--ds-card)); --a-ink: var(--a-ink-d, var(--ds-ink));
}
.game-row.gr-wash:hover { background: var(--gr-wash); filter: brightness(.97); }
/* The colour reaches the card's edges (owner, 8.11): it stopped at the card's side margin, the away club touched the end
   of the colour and its crest sat half on the bare card. The row takes the card's margin back (16px, 18px from 560px) and
   pads both of its sides alike, so the crests and names sit inside the colour and in line with the column heads. */
.games-section .game-row.gr-wash { margin-inline: -16px; padding-inline: 16px; }
@media (min-width: 560px) { .games-section .game-row.gr-wash { margin-inline: -18px; padding-inline: 18px; } }
@media (max-width: 400px) { .games-section .game-row.gr-wash { padding-inline: 12px; } }
.game-row.gr-wash .gr-home .gr-name { color: var(--h-ink); }
.game-row.gr-wash .gr-away .gr-name { color: var(--a-ink); }
