/* The new Home at /home (docs/design/home_build_plan_2026-11.md, steps 2 to 4): the accepted design, Blackout colours.
   Dash loads this file on every page, so EVERY rule starts with the Home root .sp-home-hub (tests/test_home_page.py
   checks it) and the font has its own family name; the feed, Explore and the editor never see any of it. */

@font-face {
  font-family: "SP Home Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(fonts/HomeArchivo-wdth-wght-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "SP Home Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(fonts/HomeArchivo-wdth-wght-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Blackout: field = the wall, paper = sheets, k = the black (dark sheets, edges), tape = the one accent */
.sp-home-hub {
  --hh-field: #0B0B0D; --hh-ink: #F4EFE4; --hh-tape: #FF7A1A; --hh-tapeink: #1A0E04; --hh-paper: #18191D;
  --hh-k: #020203; --hh-kink: #F1EEE7; --hh-muted: #A8A69F; --hh-kmuted: #A8A69F; --hh-pi: #F1EEE7;
  --hh-sel: #F4EFE4; --hh-selink: #0B0B0D; --hh-edge: #020203; --hh-rim: rgba(244,239,228,.20);
  --hh-rimk: color-mix(in srgb, #F1EEE7 46%, #020203);
  --hh-mapbg: color-mix(in srgb, #18191D 94%, #fff);
  /* a game won / lost (the mark in the first card's rows): fills under a dark letter, never colour alone */
  --hh-win: #3ECF7A; --hh-loss: #F25555;
  container: sp-home / inline-size;
  min-height: 100vh;
  font-family: "SP Home Archivo", "Arial Narrow", Arial, sans-serif;
  font-size: 13px; line-height: 1.4; font-weight: 500; font-stretch: 100%;
  background: var(--hh-field); color: var(--hh-ink);
  overflow-x: hidden;
}
.sp-home-hub, .sp-home-hub * { box-sizing: border-box; }
.sp-home-hub :where(h2, h3, p) { margin: 0; }
.sp-home-hub :where(a) { color: inherit; text-decoration: none; }
.sp-home-hub :where(button) { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; border-radius: 0; }
.sp-home-hub :focus-visible { outline: 2px solid var(--hh-ink); outline-offset: 2px; }

/* the last game day's finals under the app's header (owner, 2026-11-21, the form "V1c"): small scoreboards, away
   over home, the winner's score on orange. A game is a button: a press narrows the first card to it
   (assets/home_hub.js); the picked one takes the pressed look of the period buttons. The line above them: the day,
   "Tap a game", and on the right when the data were last imported (on a phone too narrow for all three the import
   time drops to a line of its own).
   Below 1000 px (owner, 2026-11-24, variant 1 of https://claude.ai/artifact/QoHT9foZ2Hx2TMAWo59fji): the tiles were
   too small on a phone (a 23 px tap target per team) and three columns of them took four or five rows, about half the
   screen on a full night. They are one row of bigger tiles now, swiped sideways, the third peeking in at the right
   edge; the desktop keeps its row(s) below. A favourite team's games come first (assets/home_favorites.js) and a
   pressed game is scrolled into the row's sight (assets/home_hub.js, revealGame).
   2026-11-28 (owner, variant A of https://claude.ai/artifact/AxiV87HePkMz8H8fKbFMra): the row's tiles a step smaller,
   about halfway back to the old size (logo 30 -> 26 px, score 23 -> 20 px), so nearly three games show at once. */
.sp-home-hub .hh-res { padding: 6px 14px 8px; background: var(--hh-k); color: var(--hh-kink); border-top: 1px solid color-mix(in srgb, var(--hh-kink) 18%, var(--hh-k)); }
.sp-home-hub .hh-res-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; margin-bottom: 3px; font-size: 12px; color: var(--hh-kmuted); white-space: nowrap; }
.sp-home-hub .hh-res-hint::before { content: "·"; margin-right: 6px; }
.sp-home-hub .hh-res-updated { margin-left: auto; }
.sp-home-hub .hh-res-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.sp-home-hub .hh-rc { display: grid; gap: 1px; min-width: 0; padding: 3px 7px; background: var(--hh-paper); color: var(--hh-kink); text-align: left; }
.sp-home-hub .hh-rc-s { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; column-gap: 5px; align-items: center; height: 23px; }
.sp-home-hub .hh-rc .hh-stk { width: 22px; height: 22px; }
.sp-home-hub .hh-rc-ab { font-weight: 700; font-size: 13px; line-height: 1; }
.sp-home-hub .hh-rc-sc { font-stretch: 75%; font-weight: 900; font-size: 17px; line-height: 1; padding: 1px 3px 2px; font-variant-numeric: tabular-nums; }
.sp-home-hub .hh-rc-s.win .hh-rc-sc { background: var(--hh-tape); color: var(--hh-tapeink); }
.sp-home-hub .hh-rc-s.lose { color: var(--hh-kmuted); }
.sp-home-hub .hh-rc-s.lose .hh-rc-sc { font-weight: 600; }
.sp-home-hub .hh-rc.on { background: var(--hh-sel); color: var(--hh-selink); }
.sp-home-hub .hh-rc.on .hh-rc-s.lose { color: color-mix(in srgb, var(--hh-selink) 66%, var(--hh-sel)); }
/* the phone and the tablet: one row swiped sideways. The row bleeds to the screen's edges (the negative margin is the
   block's side padding, 14 px above) and stops each tile at the block's edge again. The thin padding above and below
   keeps a focused tile's outline inside the row (a scrolling box clips both ways). */
@container sp-home (width < 1000px) {
  .sp-home-hub .hh-res-h { margin-bottom: 5px; }
  .sp-home-hub .hh-res-grid {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 124px; gap: 7px;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    scroll-padding-inline: 14px; margin-inline: -14px; padding: 4px 14px; margin-block: -4px; scrollbar-width: none;
  }
  .sp-home-hub .hh-res-grid::-webkit-scrollbar { display: none; }
  .sp-home-hub .hh-rc { gap: 2px; padding: 5px 8px; scroll-snap-align: start; }
  .sp-home-hub .hh-rc-s { grid-template-columns: 26px minmax(0, 1fr) auto; column-gap: 6px; height: 30px; }
  .sp-home-hub .hh-rc .hh-stk { width: 26px; height: 26px; }
  .sp-home-hub .hh-rc-ab { font-size: 15px; }
  .sp-home-hub .hh-rc-sc { font-size: 20px; padding: 2px 4px 3px; }
}

/* the wall: the cards sit in three columns (.hh-col) on the desktop; on the phone the columns dissolve and `order` keeps the reading order */
.sp-home-hub .hh-wall { display: flex; flex-direction: column; gap: 20px; padding: 0 12px 20px; }
.sp-home-hub .hh-col { display: contents; }
.sp-home-hub .hh-lead-block { order: 1; display: flex; flex-direction: column; align-items: flex-start; }
.sp-home-hub .hh-s-notable { order: 3; }
.sp-home-hub .hh-s-streaks { order: 4; }
.sp-home-hub .hh-s-race { order: 5; }
.sp-home-hub .hh-s-pulse { order: 6; }
.sp-home-hub .hh-s-stand { order: 7; }
.sp-home-hub .hh-s-map { order: 8; }
.sp-home-hub .hh-s-cta { order: 9; }

/* the first block: switch, card (its title is the category's name, the date label right under it as a grey line like
   the other cards' .hh-sub lines, owner 2026-11-21, variant 1 of https://claude.ai/artifact/EdqyD5MbzJZagNerg4kVWA) */
.sp-home-hub .hh-tagline { margin: -2px 0 12px; }
/* "Tap a player" after the date label, as "Tap a game" stands in the results block */
.sp-home-hub .hh-hint::before { content: "·"; margin: 0 6px; }
.sp-home-hub .hh-ctl { container: sp-home-ctl / inline-size; align-self: stretch; display: flex; flex-direction: column; gap: 8px; padding-top: 14px; }
.sp-home-hub .hh-scope { display: flex; }
.sp-home-hub .hh-scope button { position: relative; flex: 1 1 auto; text-align: center; height: 34px; padding: 0 4px; background: var(--hh-paper); color: var(--hh-pi); font-stretch: 75%; font-weight: 800; font-size: 15px; border: 2px solid var(--hh-edge); margin-left: -2px; white-space: nowrap; }
.sp-home-hub .hh-scope button:first-child { margin-left: 0; }
.sp-home-hub .hh-scope button.on { background: var(--hh-sel); color: var(--hh-selink); }
/* the period row with "Season avg" / "Season total" (owner, 2026-11-21) needs 327 px at 15 px. The switch can be
   narrower than that both on a phone (296 px on a 320 px one) and in the desktop's column (299 px at 1000 px), so the
   type follows the switch's own width, not the page's: the row needs 309 px at 14 px and 280 px at 13 px */
@container sp-home-ctl (max-width: 345px) {
  .sp-home-hub .hh-periods button { font-size: 14px; }
}
@container sp-home-ctl (max-width: 312px) {
  .sp-home-hub .hh-periods button { font-size: 13px; padding: 0 3px; }
}
.sp-home-hub .hh-scope button::before, .sp-home-hub .hh-stats button::before { content: ""; position: absolute; left: 0; right: 0; top: -6px; bottom: -6px; }
.sp-home-hub .hh-stats { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; padding-top: 2px; }
.sp-home-hub .hh-stats button { position: relative; height: 32px; text-align: center; background: var(--hh-k); color: var(--hh-kink); font-stretch: 75%; font-weight: 800; font-size: 15px; }
.sp-home-hub .hh-stats button.on { background: var(--hh-tape); color: var(--hh-tapeink); box-shadow: inset 0 0 0 2px var(--hh-k); }
/* the first card's title, inside the card (owner, 2026-11-21): 40 px, 1.5 times the other cards' 26 px titles, with
   30 % of that below it. A phone narrower than 390 px scales it down, so "Top performers" never runs past the card. */
.sp-home-hub .hh-sheet .hh-word { font-stretch: 62%; font-weight: 900; font-size: min(40px, 10.3cqi); line-height: .82; text-transform: uppercase; white-space: nowrap; word-spacing: .1em; margin: 0 0 12px; }
/* who on the first line, when under it in orange at 22 px (owner, 2026-11-28, V2 of
   https://claude.ai/artifact/Hety33LNobDQrKmsUh3bzk); "Season average" at 22 px is 148 px, so it fits any phone */
.sp-home-hub .hh-sheet .hh-word .hh-who, .sp-home-hub .hh-sheet .hh-word .hh-when { display: block; }
.sp-home-hub .hh-sheet .hh-word .hh-when { font-size: min(22px, 5.7cqi); color: var(--hh-tape); margin-top: 6px; letter-spacing: .01em; }

/* sheets */
.sp-home-hub .hh-sheet { position: relative; align-self: stretch; min-width: 0; padding: 14px; background: var(--hh-paper); color: var(--hh-pi); box-shadow: inset 0 0 0 2px var(--hh-rim); }
.sp-home-hub .hh-sheet.hh-hs { box-shadow: inset 0 0 0 2px var(--hh-rim), 5px 5px 0 var(--hh-k); }
.sp-home-hub .hh-sheet.hh-dark { background: var(--hh-k); color: var(--hh-kink); box-shadow: inset 0 0 0 2px var(--hh-rimk); }
.sp-home-hub .hh-sheet h2 { font-stretch: 62%; font-weight: 900; font-size: 26px; line-height: 1; margin-bottom: 10px; }
.sp-home-hub .hh-sheet h3 { font-stretch: 62%; font-weight: 900; font-size: 21px; line-height: 1; margin-bottom: 8px; }
.sp-home-hub .hh-sub { color: var(--hh-muted); font-size: 12px; }
.sp-home-hub .hh-dark .hh-sub { color: var(--hh-kmuted); }
.sp-home-hub .hh-sub--head { margin: -4px 0 10px; }
.sp-home-hub .hh-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; height: 36px; padding: 0 18px; background: var(--hh-k); color: var(--hh-kink); font-stretch: 75%; font-weight: 900; font-size: 17px; box-shadow: 4px 4px 0 var(--hh-tape); white-space: nowrap; }
.sp-home-hub .hh-btn::before { content: ""; position: absolute; left: 0; right: 0; top: -4px; bottom: -4px; }

/* stickers: logos and portraits on white circles. A logo fills 88 % of its circle and the circles are larger than
   the canvas's (owner, 2026-11-19: the logos were too small to read): scores 28, standings 30, streaks 36 */
.sp-home-hub .hh-stk { display: grid; place-items: center; flex: none; overflow: hidden; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.5px var(--hh-k); }
.sp-home-hub .hh-stk img { width: 88%; height: 88%; object-fit: contain; }
.sp-home-hub .hh-stk--photo img { width: 100%; height: 100%; object-fit: cover; }
.sp-home-hub .hh-stk--xs { width: 28px; height: 28px; }
.sp-home-hub .hh-stk--st { width: 30px; height: 30px; }
.sp-home-hub .hh-stk--sm { width: 36px; height: 36px; }
.sp-home-hub .hh-stk--lg { width: 44px; height: 44px; box-shadow: 0 0 0 2px var(--hh-k); }

/* the first card: the app's own ranking rows (utils/ranking.py), not wrapped in .cmp-ranking[data-ranking-post] */
.sp-home-hub .hh-sheet--lead { --ranking-avatar-size: 36px; margin-top: 12px; }
.sp-home-hub .hh-leaders .cmp-ranking-table { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; }
.sp-home-hub .hh-leaders .cmp-ranking-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.sp-home-hub .hh-leaders .cmp-ranking-table col:first-child { width: 38px !important; }
.sp-home-hub .hh-leaders .cmp-ranking-table col:last-child { width: 96px !important; }
.sp-home-hub .hh-leaders .cmp-ranking-row > * { padding: 9px 0; border: 0; border-top: 2px solid var(--hh-pi); background: none; border-radius: 0; vertical-align: middle; }
.sp-home-hub .hh-leaders .cmp-ranking-row:first-child > * { border-top: 0; padding-top: 4px; }
.sp-home-hub .hh-leaders .cmp-ranking-row th { text-align: left; font-weight: inherit; }
.sp-home-hub .hh-leaders .cmp-ranking-rank { display: block; width: auto; height: auto; margin: 0; background: none; color: var(--hh-pi); font-family: inherit; font-stretch: 62%; font-weight: 900; font-size: 30px; line-height: 1; text-align: left; border-radius: 0; }
.sp-home-hub .hh-leaders .cmp-ranking-player { grid-template-columns: 36px minmax(0, 1fr); gap: 10px; }
.sp-home-hub .hh-leaders .cmp-ranking-portrait { --ranking-avatar-size: 36px; display: block; width: 36px; min-width: 36px; height: 36px; border-radius: 50%; overflow: hidden; background: #fff; color: var(--hh-k); box-shadow: 0 0 0 1.5px var(--hh-k); }
.sp-home-hub .hh-leaders .cmp-ranking-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sp-home-hub .hh-leaders .cmp-ranking-portrait[data-image-fit="contain"] img { object-fit: contain; padding: 12%; }
.sp-home-hub .hh-leaders .cmp-ranking-name { font-weight: 700; font-size: 14px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-home-hub .hh-leaders .cmp-ranking-meta { display: block; font-size: 12px; line-height: 1.25; color: var(--hh-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* the mark before that line where a row is one game: W on green (the player's team won), L on red (owner, 2026-11-21) */
.sp-home-hub .hh-leaders .cmp-ranking-mark { display: inline-grid; place-items: center; width: 14px; height: 14px; margin-right: 5px; vertical-align: -2px; color: var(--hh-k); font-stretch: 75%; font-weight: 900; font-size: 11px; line-height: 1; }
.sp-home-hub .hh-leaders .cmp-ranking-mark[data-mark="W"] { background: var(--hh-win); }
.sp-home-hub .hh-leaders .cmp-ranking-mark[data-mark="L"] { background: var(--hh-loss); }
/* a phone under 380 px: the line a little narrower, so the mark fits beside a long one ("28 pts, 11 reb, 10 ast") */
@container sp-home (max-width: 379px) {
  .sp-home-hub .hh-leaders .cmp-ranking-meta { font-stretch: 86%; }
  .sp-home-hub .hh-leaders .cmp-ranking-mark { margin-right: 4px; }
}
.sp-home-hub .hh-leaders .cmp-ranking-track { height: 4px; margin-top: 5px; border-radius: 0; background: color-mix(in srgb, var(--hh-pi) 16%, transparent); }
.sp-home-hub .hh-leaders .cmp-ranking-bar { border-radius: 0; background: var(--hh-pi); transition: width .5s cubic-bezier(.2, .8, .2, 1); }
.sp-home-hub .hh-leaders .cmp-ranking-value { font-family: inherit; letter-spacing: 0; color: var(--hh-pi); text-align: right; white-space: nowrap; }
.sp-home-hub .hh-leaders .cmp-ranking-number { display: inline-block; font-stretch: 62%; font-weight: 900; font-size: 28px; line-height: 1; font-variant-numeric: tabular-nums; }
.sp-home-hub .hh-leaders .cmp-ranking-row--leader .cmp-ranking-number { background: var(--hh-tape); color: var(--hh-tapeink); padding: 2px 6px 3px; }
.sp-home-hub .hh-leaders .cmp-ranking-note { display: block; min-height: 17px; font-size: 12px; font-weight: 500; color: var(--hh-muted); }
.sp-home-hub .hh-empty { padding: 18px 0; color: var(--hh-muted); font-size: 14px; }
/* switching (assets/home_hub.js): initials under a missing or broken picture look the same whether Mantine or the
   script wrote them; a hidden table, row part or sentence stays hidden whatever display the shared rows give it */
.sp-home-hub .hh-leaders .cmp-ranking-portrait > span { display: grid; place-items: center; width: 100%; height: 100%; background: none; color: var(--hh-k); font-family: inherit; font-weight: 800; font-size: 13px; line-height: 1; }
.sp-home-hub .hh-leaders [hidden] { display: none; }
@media (prefers-reduced-motion: reduce) {
  .sp-home-hub .hh-leaders .cmp-ranking-bar { transition: none; }
}
.sp-home-hub .hh-lfoot { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-top: 10px; padding-top: 10px; border-top: 2px solid var(--hh-pi); }
/* the first card's longer list and a player's last games (owner, 2026-11-22, form 5 of
   https://claude.ai/artifact/TB5o61woDsc7BYe83aAfKp; assets/home_hub.js builds both). The button under the rows
   (.hh-more, the standings' button) swaps the five rows for narrow rows of up to ten players in the same height:
   --hh-nr is a tenth of the five rows' height, written by the script. A narrow row: rank, picture, name, the
   game's mark, team, number; its bar is its bottom edge. A player (a row of either list) is pressable: under him
   open his last ten games, one slot a game, the value above each bar, the opponent under it, the season average
   as a dashed level (--hh-level, a share of the bars' 32 px). */
.sp-home-hub .hh-leaders [data-key] { cursor: pointer; }
.sp-home-hub .hh-leaders [data-key]:focus-visible { outline-offset: -2px; }
.sp-home-hub .hh-ten { display: grid; align-content: start; }
.sp-home-hub .hh-nr { position: relative; display: grid; grid-template-columns: 24px 24px minmax(0, 1fr) auto; column-gap: 8px; align-items: center; height: var(--hh-nr, 33px); }
.sp-home-hub .hh-nr-rk { font-stretch: 62%; font-weight: 900; font-size: 19px; line-height: 1; }
.sp-home-hub .hh-leaders .hh-nr-face { --ranking-avatar-size: 24px; width: 24px; min-width: 24px; height: 24px; box-shadow: 0 0 0 1px var(--hh-k); }
.sp-home-hub .hh-leaders .hh-nr-face > span { font-size: 10px; }
.sp-home-hub .hh-nr-name { display: flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; }
.sp-home-hub .hh-nr-name b { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 700; font-size: 14px; line-height: 1.2; }
.sp-home-hub .hh-nr-name i { flex: none; font-style: normal; font-stretch: 86%; font-size: 11px; color: var(--hh-muted); }
.sp-home-hub .hh-leaders .hh-nr-name .cmp-ranking-mark { flex: none; margin: 0; }
.sp-home-hub .hh-nr-val { font-stretch: 62%; font-weight: 900; font-size: 21px; line-height: 1; font-variant-numeric: tabular-nums; }
.sp-home-hub .hh-nr--lead .hh-nr-val > span { display: inline-block; padding: 1px 5px 2px; background: var(--hh-tape); color: var(--hh-tapeink); }
.sp-home-hub .hh-nr-bar { position: absolute; left: 32px; right: 0; bottom: 0; height: 2px; background: color-mix(in srgb, var(--hh-pi) 16%, transparent); }
.sp-home-hub .hh-nr-bar > i { display: block; height: 100%; background: var(--hh-pi); }
.sp-home-hub .hh-form { padding: 7px 0 10px 32px; }
.sp-home-hub .hh-form .hh-sub { display: block; }
.sp-home-hub .hh-leaders .hh-form-row > td { padding: 0 0 12px; border: 0; }
.sp-home-hub .hh-bars.hh-form-bars { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; height: 64px; padding: 15px 0 17px; }
.sp-home-hub .hh-form-row .hh-form-bars { margin-left: 38px; }
.sp-home-hub .hh-form-bars .hh-bar > span { z-index: 2; padding: 0 2px; background: var(--hh-paper); font-size: 12px; font-weight: 700; color: var(--hh-muted); }
.sp-home-hub .hh-form-bars .hh-bar--lit > span { font-weight: 900; color: var(--hh-pi); }
.sp-home-hub .hh-form-bars .hh-bar > i { font-stretch: 75%; font-size: 11px; transform: translate(-50%, 3px); }
.sp-home-hub .hh-form-bars .hh-bars-line { bottom: calc(17px + 32px * var(--hh-level, 0)); border-top-style: dashed; }

/* the box score (owner, 2026-11-24): a press on a team of the results block opens the classic box score of that
   game as the first card (owner, same day: first place; pages/home/cards.box_score_card; assets/home_hub.js fills a
   copy of the server's empty card and slides the cards after it to their new places). On the phone it stands right
   under the results block, before the first block; on the desktop it takes two columns of the first row, the first
   block beside it (the two layouts at the end). One team at a time behind two buttons on a phone; from 560 px of the
   card's own width both teams stand side by side, each under its own head, each table as on the phone. Made to be
   read: the names stay in place while the numbers scroll sideways, numbers right-aligned and tabular, more room
   between the groups of columns, points the one bold column, a team's top scorer on orange (orange already means
   "the best" on this page). */
.sp-home-hub .hh-s-box { order: 0; margin-top: 14px; container: sp-home-box / inline-size; }
.sp-home-hub .hh-box-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sp-home-hub .hh-box-top h2 { margin-bottom: 4px; }
/* the cross: two strokes drawn by gradients; its ::before widens the press area as on the other buttons */
.sp-home-hub .hh-box-x { position: relative; flex: none; width: 36px; height: 36px; margin: -4px -4px 0 0; color: var(--hh-pi); box-shadow: inset 0 0 0 2px currentColor; background: linear-gradient(45deg, transparent calc(50% - 1px), currentColor 0 calc(50% + 1px), transparent 0) center / 16px 16px no-repeat, linear-gradient(-45deg, transparent calc(50% - 1px), currentColor 0 calc(50% + 1px), transparent 0) center / 16px 16px no-repeat; }
.sp-home-hub .hh-box-x::before { content: ""; position: absolute; inset: -4px; }
.sp-home-hub .hh-box-tag { margin-bottom: 12px; }
.sp-home-hub .hh-box-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-bottom: 6px; }
.sp-home-hub .hh-box-tab { display: flex; align-items: center; gap: 8px; min-width: 0; height: 44px; padding: 0 8px; background: var(--hh-k); color: var(--hh-kink); text-align: left; }
.sp-home-hub .hh-box-tab.on { background: var(--hh-sel); color: var(--hh-selink); }
.sp-home-hub :is(.hh-box-tab, .hh-box-head) .hh-stk { width: 28px; height: 28px; }
.sp-home-hub .hh-box-nm { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-stretch: 75%; font-weight: 800; font-size: 16px; line-height: 1.1; }
.sp-home-hub .hh-box-ab { display: none; flex: 1 1 auto; font-stretch: 75%; font-weight: 800; font-size: 17px; line-height: 1.1; }
/* a phone: the buttons are too narrow for "Trail Blazers" beside the logo and the score */
@container sp-home-box (width < 440px) {
  .sp-home-hub .hh-box-tab .hh-box-nm { display: none; }
  .sp-home-hub .hh-box-tab .hh-box-ab { display: block; }
}
.sp-home-hub .hh-box-sc { flex: none; padding: 1px 4px 2px; font-stretch: 75%; font-weight: 900; font-size: 19px; line-height: 1; font-variant-numeric: tabular-nums; }
.sp-home-hub .hh-box-sc.win { background: var(--hh-tape); color: var(--hh-tapeink); }
.sp-home-hub .hh-box-head { display: none; }
/* the table */
.sp-home-hub .hh-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sp-home-hub .hh-box-scroll { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
.sp-home-hub .hh-box-table { width: 100%; border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; }
.sp-home-hub .hh-box-table :is(th, td) { height: 31px; padding: 0 0 0 10px; white-space: nowrap; text-align: right; vertical-align: middle; border-top: 1px solid color-mix(in srgb, var(--hh-pi) 20%, transparent); font-stretch: 86%; font-weight: 600; font-size: 14px; line-height: 1; }
.sp-home-hub .hh-box-table thead th { height: 26px; padding-bottom: 6px; vertical-align: bottom; border-top: 0; font-stretch: 100%; font-weight: 700; font-size: 12px; color: var(--hh-muted); }
.sp-home-hub .hh-box-table abbr { text-decoration: none; }
/* a heading sorts by its column (assets/home_hub.js): the sorted one in ink with its arrow above it, over the text's
   aligned edge (in a gap between columns it read as the neighbour's), so the columns never change width */
.sp-home-hub .hh-box-table thead th { height: 34px; }
.sp-home-hub .hh-box-sort { position: relative; margin: 0; padding: 4px 0 0; border: 0; background: none; color: inherit; font: inherit; line-height: 1; text-align: inherit; cursor: pointer; }
.sp-home-hub .hh-box-sort abbr { cursor: inherit; }
.sp-home-hub .hh-box-table thead th[aria-sort] { color: var(--hh-ink); }
.sp-home-hub .hh-box-table thead th[aria-sort] .hh-box-sort::before { content: "▼"; position: absolute; right: 0; bottom: 100%; font-size: 8px; line-height: 1; color: var(--hh-tape); }
.sp-home-hub .hh-box-table thead th[aria-sort="ascending"] .hh-box-sort::before { content: "▲"; }
.sp-home-hub .hh-box-table thead th.hh-box-name[aria-sort] .hh-box-sort::before { right: auto; left: 0; }
.sp-home-hub .hh-box-table .hh-box-g { padding-left: 18px; }
.sp-home-hub .hh-box-table :is(tbody, tfoot) .hh-box-pts { font-weight: 900; font-size: 15px; }
.sp-home-hub .hh-box-hi { display: inline-block; margin: -3px -4px; padding: 3px 4px; background: var(--hh-tape); color: var(--hh-tapeink); }
/* the names: in place while the numbers scroll under them (the card's own background hides what passes under) */
.sp-home-hub .hh-box-table .hh-box-name { position: sticky; left: 0; z-index: 1; padding-left: 0; padding-right: 10px; text-align: left; background: var(--hh-paper); }
.sp-home-hub .hh-box-table tbody .hh-box-name { font-stretch: 100%; font-weight: 700; font-size: 13.5px; }
/* the player: his face (a portrait, or a plain head and shoulders: few players have a portrait) and his short name */
.sp-home-hub .hh-box-who { display: flex; align-items: center; gap: 8px; max-width: 166px; }
.sp-home-hub .hh-box-pl { min-width: 0; overflow: hidden; text-overflow: ellipsis; line-height: 1.2; }
.sp-home-hub .hh-box-face { position: relative; flex: none; width: 24px; height: 24px; overflow: hidden; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px var(--hh-k); }
.sp-home-hub .hh-box-face img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: cover; }
.sp-home-hub .hh-box-face::before { content: ""; position: absolute; inset: 3px 2px -1px; background: #A8A69F; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 21'%3E%3Ccircle cx='10' cy='7' r='5'/%3E%3Cpath d='M0 21c0-5.5 4.5-8.5 10-8.5s10 3 10 8.5z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 21'%3E%3Ccircle cx='10' cy='7' r='5'/%3E%3Cpath d='M0 21c0-5.5 4.5-8.5 10-8.5s10 3 10 8.5z'/%3E%3C/svg%3E") center / contain no-repeat; }
/* a team's totals under a strong line, its shooting under them */
.sp-home-hub .hh-box-table tfoot tr:first-child > * { border-top: 2px solid var(--hh-pi); font-weight: 800; }
.sp-home-hub .hh-box-table tfoot tr + tr > * { height: 22px; border-top: 0; font-stretch: 100%; font-weight: 600; font-size: 12px; color: var(--hh-muted); }
.sp-home-hub .hh-box-foot { margin-top: 10px; }
@container sp-home-box (width < 560px) {
  .sp-home-hub .hh-s-box[data-team="0"] .hh-box-team[data-team="1"],
  .sp-home-hub .hh-s-box[data-team="1"] .hh-box-team[data-team="0"] { display: none; }
}
@container sp-home-box (width >= 560px) {
  .sp-home-hub .hh-box-tabs { display: none; }
  .sp-home-hub .hh-box-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
  .sp-home-hub .hh-box-head { display: flex; align-items: center; gap: 10px; height: 40px; margin-bottom: 4px; }
  .sp-home-hub .hh-box-head .hh-box-nm { flex: none; font-stretch: 62%; font-weight: 900; font-size: 24px; }
}

/* notable lines, streaks */
/* the facts of the last game day: the label, the face and the name on the left, a small drawing on the right,
   the sentence under both */
.sp-home-hub .hh-fact { display: grid; grid-template-columns: minmax(0, 1fr) 112px; gap: 5px 12px; align-items: end; padding: 10px 0 9px; border-top: 2px solid var(--hh-pi); }
.sp-home-hub .hh-fact-who { display: flex; align-items: center; gap: 8px; min-width: 0; margin-top: 6px; }
.sp-home-hub .hh-fact-who b { font-weight: 700; font-size: 15px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-home-hub .hh-fact p { grid-column: 1 / -1; margin: 0; font-size: 13px; line-height: 1.4; }
/* The game a fact happened in: context after the sentence that explains the label (owner, 2026-11-24). */
.sp-home-hub .hh-fact-game { color: var(--hh-muted); }
.sp-home-hub .hh-nl-k { display: inline-block; background: var(--hh-tape); color: var(--hh-tapeink); font-weight: 800; font-size: 12px; padding: 0 7px 1px; box-shadow: inset 0 0 0 1.5px var(--hh-k); }
.sp-home-hub .hh-sk { display: grid; grid-template-columns: 36px minmax(0, 1fr) 44px; gap: 9px; align-items: center; padding: 6px 0; border-top: 2px solid var(--hh-kmuted); }
.sp-home-hub .hh-sk b { font-weight: 700; font-size: 14px; }
.sp-home-hub .hh-sk .hh-sub { display: block; }
.sp-home-hub .hh-sk-badge { display: inline-grid; place-items: center; min-width: 30px; height: 20px; padding: 0 5px; background: var(--hh-tape); color: var(--hh-tapeink); font-stretch: 75%; font-weight: 900; font-size: 13px; }
.sp-home-hub .hh-sk-badge--l { background: none; color: var(--hh-kink); box-shadow: inset 0 0 0 1.5px var(--hh-kink); }
/* streaks: "Teams" / "Players" as the standings' "West" / "East"; a team's last ten games before its words, then
   one sentence; a player on a run with thin bars of his games */
.sp-home-hub .hh-sheet .hh-sk-h { margin: 12px 0 2px; font-stretch: 62%; font-weight: 900; font-size: 19px; line-height: 1; }
.sp-home-hub .hh-sheet .hh-sk-h:first-of-type { margin-top: 0; }
.sp-home-hub .hh-sk .hh-sk-line { display: flex; align-items: center; gap: 8px; margin: 2px 0; }
.sp-home-hub .hh-sk .hh-sk-line .hh-sq { color: var(--hh-kink); }
.sp-home-hub .hh-sk .hh-sk-ctx { color: var(--hh-kink); font-size: 12px; line-height: 1.35; }
.sp-home-hub .hh-pr { display: grid; grid-template-columns: 36px minmax(0, 1fr) 96px; gap: 4px 9px; align-items: center; padding: 7px 0; border-top: 2px solid var(--hh-kmuted); }
.sp-home-hub .hh-pr b { font-weight: 700; font-size: 14px; }
.sp-home-hub .hh-pr .hh-sub { display: block; line-height: 1.3; }
.sp-home-hub .hh-pr .hh-bars { justify-content: flex-end; }
.sp-home-hub .hh-pr .hh-bar { flex: 0 1 8px; }
/* thin bars, oldest first: the ones a sentence speaks of orange, a level line, the newest value above its bar
   (the 14 px of padding are its room) */
.sp-home-hub .hh-bars { position: relative; display: flex; align-items: flex-end; gap: 3px; height: 40px; padding-top: 14px; }
.sp-home-hub .hh-bar { position: relative; flex: 0 1 11px; min-height: 2px; background: color-mix(in srgb, currentColor 28%, transparent); }
.sp-home-hub .hh-bar--lit { background: var(--hh-tape); }
.sp-home-hub .hh-bar > span { position: absolute; left: 50%; bottom: 100%; transform: translate(-50%, -1px); font-stretch: 75%; font-weight: 900; font-size: 13px; line-height: 1; white-space: nowrap; }
.sp-home-hub .hh-bars-line { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid color-mix(in srgb, currentColor 60%, transparent); }
/* a fact's drawing: bars (with names under them: three wide bars and 17 px of room), a team's last ten results
   under its "L8", or the first two rows of a conference */
.sp-home-hub .hh-viz { position: relative; height: 50px; }
.sp-home-hub .hh-viz .hh-bars { position: absolute; inset: 0; height: auto; justify-content: flex-end; }
.sp-home-hub .hh-viz--each { height: 66px; }
.sp-home-hub .hh-viz--each .hh-bars { inset: 0 0 17px; justify-content: space-between; gap: 6px; }
.sp-home-hub .hh-viz--each .hh-bar { flex: 1 1 0; }
.sp-home-hub .hh-bar > i { position: absolute; left: 50%; top: 100%; transform: translate(-50%, 2px); font-style: normal; font-weight: 600; font-size: 12px; line-height: 1.2; color: var(--hh-muted); }
.sp-home-hub .hh-viz .hh-sq { position: absolute; inset: auto 0 0; justify-content: flex-end; }
.sp-home-hub .hh-viz-l { position: absolute; right: 0; bottom: 20px; font-stretch: 75%; font-weight: 900; font-size: 15px; line-height: 1; }
.sp-home-hub .hh-mini { position: absolute; inset: auto 0 0; display: grid; gap: 3px; }
.sp-home-hub .hh-mini > div { display: grid; grid-template-columns: 10px 20px minmax(0, 1fr) auto; gap: 6px; align-items: center; font-weight: 700; font-size: 13px; line-height: 1; font-variant-numeric: tabular-nums; }
.sp-home-hub .hh-mini > div + div { color: var(--hh-muted); }
.sp-home-hub .hh-mini .hh-stk { width: 20px; height: 20px; }
.sp-home-hub .hh-mini-rk { font-stretch: 62%; font-weight: 900; font-size: 17px; }
/* a fact from history: two rows of a name and a number (the one the sentence speaks of, the one it is measured by) */
.sp-home-hub .hh-mini--pair > div { grid-template-columns: minmax(0, 1fr) auto; }
.sp-home-hub .hh-mini--pair > div > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* win / loss squares, oldest first (a win filled, a loss outlined): the standings' "Last 5" */
.sp-home-hub .hh-sq { display: flex; align-items: center; gap: 3px; }
.sp-home-hub .hh-sq > i { width: 8px; height: 14px; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, currentColor 70%, transparent); }
.sp-home-hub .hh-sq > i.hh-sq-w { background: var(--hh-tape); box-shadow: none; }

/* standings: a disclosure button (assets/home_hub.js) opens the rows past the tenth of each conference.
   Each conference is a block (.hh-st-conf) of one pair. In a narrow card the blocks dissolve and the rows stand under
   each other; where the card itself has 700 px of room (two columns of the desktop) West and East stand side by
   side, each as wide as on a phone (owner, 2026-11-22) */
.sp-home-hub .hh-s-stand { container: sp-home-stand / inline-size; }
.sp-home-hub .hh-st-pair, .sp-home-hub .hh-st-conf { display: contents; }
@container sp-home-stand (min-width: 700px) {
  .sp-home-hub .hh-st-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; align-items: start; }
  .sp-home-hub .hh-st-conf { display: block; }
  /* East starts level with West (the gap above it is for the list under West) */
  .sp-home-hub .hh-st-conf .hh-st--gap { margin-top: 0; }
}
.sp-home-hub .hh-st { display: grid; grid-template-columns: 26px 30px minmax(0, 1fr) 52px 46px 44px; gap: 9px; align-items: center; height: 36px; border-top: 1px solid color-mix(in srgb, var(--hh-pi) 35%, transparent); }
.sp-home-hub .hh-st--h { height: 26px; border-top: 0; font-weight: 700; font-size: 12px; color: var(--hh-muted); }
.sp-home-hub .hh-st--gap { margin-top: 12px; }
.sp-home-hub .hh-st--h b { font-stretch: 62%; font-weight: 900; font-size: 19px; line-height: 1; color: var(--hh-pi); }
.sp-home-hub .hh-st .hh-r { text-align: right; }
.sp-home-hub .hh-st .hh-rk { font-stretch: 62%; font-weight: 900; font-size: 21px; line-height: 1; }
.sp-home-hub .hh-st .hh-nm { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-home-hub .hh-st-team { display: flex; align-items: center; min-width: 0; }
.sp-home-hub .hh-st .hh-sq { justify-content: flex-end; color: var(--hh-pi); }
/* a team that moved on the last game day: a triangle (up orange, down grey) and the places */
.sp-home-hub .hh-mv { flex: none; margin-left: 6px; font-weight: 700; font-size: 12px; color: var(--hh-muted); font-variant-numeric: tabular-nums; }
.sp-home-hub .hh-mv::before { content: ""; display: inline-block; margin-right: 3px; border: 4px solid transparent; }
.sp-home-hub .hh-mv--up { color: var(--hh-pi); }
.sp-home-hub .hh-mv--up::before { border-bottom-color: var(--hh-tape); border-top-width: 0; transform: translateY(-1px); }
.sp-home-hub .hh-mv--down::before { border-top-color: var(--hh-muted); border-bottom-width: 0; transform: translateY(1px); }
/* the play-in lines: its name on the left, the places under it on the right */
.sp-home-hub .hh-st-cut { display: flex; justify-content: space-between; height: 20px; padding-top: 2px; border-top: 2px solid var(--hh-pi); font-weight: 700; font-size: 12px; color: var(--hh-muted); }
.sp-home-hub .hh-st .hh-wl { font-weight: 800; font-size: 14px; text-align: right; font-variant-numeric: tabular-nums; }
.sp-home-hub .hh-st .hh-nt { font-size: 13px; text-align: right; color: var(--hh-muted); font-variant-numeric: tabular-nums; }
.sp-home-hub .hh-more { display: block; width: 100%; height: 36px; margin-top: 10px; color: var(--hh-pi); font-weight: 700; font-size: 13px; text-align: center; box-shadow: inset 0 0 0 2px var(--hh-pi); }
.sp-home-hub .hh-more[aria-expanded="true"] .hh-more-off,
.sp-home-hub .hh-more:not([aria-expanded="true"]) .hh-more-on { display: none; }
.sp-home-hub .hh-st-note { margin-top: 8px; }

/* drawn cards (step 4): a box of the drawing's proportions; lines are SVG masks (--hh-mask) coloured by their layer,
   labels, dots, faces and logos are HTML placed in per cent of the box */
.sp-home-hub .hh-note { margin: -4px 0 8px; }
.sp-home-hub .hh-plot { position: relative; }
.sp-home-hub .hh-mask { position: absolute; inset: 0; -webkit-mask: var(--hh-mask) 0 0 / 100% 100% no-repeat; mask: var(--hh-mask) 0 0 / 100% 100% no-repeat; }
.sp-home-hub .hh-ov { position: absolute; inset: 0; pointer-events: none; }
.sp-home-hub .hh-ov > span { position: absolute; white-space: nowrap; }
.sp-home-hub .hh-tk { font-size: 12px; line-height: 1.4; color: var(--hh-muted); font-weight: 600; }
.sp-home-hub .hh-pl { font-weight: 800; font-size: 12px; line-height: 1.4; background: var(--hh-k); color: var(--hh-kink); padding: 0 7px 1px; }
.sp-home-hub .hh-a-end { transform: translate(-100%, -50%); }
.sp-home-hub .hh-a-endx { transform: translate(-100%, 0); }
.sp-home-hub .hh-a-mid { transform: translate(-50%, 0); }
.sp-home-hub .hh-a-c { transform: translate(-50%, -50%); }
.sp-home-hub .hh-a-rot { transform: translate(-50%, -50%) rotate(-90deg); }

/* the race */
.sp-home-hub .hh-race-plot { aspect-ratio: 360 / 240; touch-action: pan-y; }
.sp-home-hub .hh-rgrid, .sp-home-hub .hh-rlines { position: absolute; inset: 0; }
.sp-home-hub .hh-rg { position: absolute; left: 11.11%; right: 5.56%; height: 0; border-top: 1px solid color-mix(in srgb, var(--hh-pi) 16%, transparent); }
.sp-home-hub .hh-rl--quiet { background: var(--hh-pi); opacity: .28; }
.sp-home-hub .hh-rl--lit { background: var(--hh-tape); }
.sp-home-hub .hh-ov > .hh-rdot { width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--hh-pi); opacity: .4; }
.sp-home-hub .hh-ov > .hh-face { display: grid; place-items: center; width: 28px; height: 28px; margin: -14px 0 0 -14px; overflow: hidden; border-radius: 50%; background: #fff; color: var(--hh-k); box-shadow: 0 0 0 1.5px var(--hh-k); }
.sp-home-hub .hh-face img { width: 100%; height: 100%; object-fit: cover; }
.sp-home-hub .hh-face img[data-fit="contain"] { width: 76%; height: 76%; object-fit: contain; }
.sp-home-hub .hh-face-ini { font-size: 10px; font-weight: 800; line-height: 1; }
.sp-home-hub .hh-playrow { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.sp-home-hub .hh-playrow .hh-btn { height: 34px; min-width: 76px; padding: 0 14px; }
.sp-home-hub .hh-pbar { flex: 1; height: 6px; background: color-mix(in srgb, var(--hh-pi) 16%, transparent); }
.sp-home-hub .hh-pbar i { display: block; height: 100%; background: var(--hh-pi); }
.sp-home-hub .hh-ptime { min-width: 46px; font-weight: 700; font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; }
/* The map's Play shows a game number ("Game 9", "Game 82"): room for two digits, so the bar keeps its length. */
.sp-home-hub .hh-s-map .hh-ptime { min-width: 56px; }
.sp-home-hub .hh-race-legend { margin-top: 10px; }
.sp-home-hub .hh-lg { display: grid; grid-template-columns: 18px 10px minmax(0, 1fr) auto 44px; gap: 8px; align-items: center; padding: 6px 0; border-top: 2px solid var(--hh-pi); }
.sp-home-hub .hh-lg .hh-rk { font-stretch: 62%; font-weight: 900; font-size: 21px; line-height: 1; }
.sp-home-hub .hh-lg .hh-sw { display: block; width: 10px; height: 10px; }
.sp-home-hub .hh-lg .hh-sw.on { background: var(--hh-tape); }
.sp-home-hub .hh-lg b { font-weight: 700; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-home-hub .hh-lg .hh-gap { font-size: 12px; color: var(--hh-muted); font-variant-numeric: tabular-nums; }
.sp-home-hub .hh-lg .hh-v { font-stretch: 75%; font-weight: 900; font-size: 19px; line-height: 1; text-align: right; font-variant-numeric: tabular-nums; }

/* the team map; a logo 30 of the box's 360 units (the canvas: 22), the picked one 1.4 times that */
.sp-home-hub .hh-map-plot { aspect-ratio: 360 / 330; touch-action: pan-y; background-color: var(--hh-mapbg); background-image: linear-gradient(color-mix(in srgb, var(--hh-pi) 9%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--hh-pi) 9%, transparent) 1px, transparent 1px); background-size: 22px 22px; }
.sp-home-hub .hh-mg { position: absolute; border: 0 solid color-mix(in srgb, var(--hh-pi) 20%, transparent); }
.sp-home-hub .hh-mg--x { top: 3.03%; bottom: 13.33%; width: 0; border-left-width: 1px; }
.sp-home-hub .hh-mg--y { left: 12.78%; right: 2.78%; height: 0; border-top-width: 1px; }
.sp-home-hub .hh-mg--avg { border-color: var(--hh-pi); }
.sp-home-hub .hh-mg--x.hh-mg--avg { border-left-width: 2px; margin-left: -1px; }
.sp-home-hub .hh-mg--y.hh-mg--avg { border-top-width: 2px; margin-top: -1px; }
.sp-home-hub .hh-mt { position: absolute; display: grid; place-items: center; width: 8.33%; aspect-ratio: 1; overflow: hidden; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.5px var(--hh-k); transform: translate(-50%, -50%); }
.sp-home-hub .hh-mt img { width: 88%; height: 88%; object-fit: contain; }
/* the four corners named above and under the plot; the side padding is the plotting area's, so each name stands over its half */
.sp-home-hub .hh-quad { display: flex; justify-content: space-between; padding: 3px 2.78% 3px 12.78%; font-weight: 700; font-size: 12px; line-height: 1.3; color: var(--hh-muted); }
.sp-home-hub .hh-mt.on { z-index: 1; width: 11.67%; box-shadow: 0 0 0 1.5px var(--hh-k), 0 0 0 3px var(--hh-tape), 0 0 0 5.5px var(--hh-k); }
.sp-home-hub .hh-mi { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 8px; padding-top: 10px; border-top: 2px solid var(--hh-pi); }
.sp-home-hub .hh-mi .hh-n, .sp-home-hub .hh-mi .hh-x { font-stretch: 62%; font-weight: 900; font-size: 24px; line-height: 1; }
.sp-home-hub .hh-mi .hh-k { font-stretch: 100%; font-weight: 500; font-size: 12px; line-height: 1.4; color: var(--hh-muted); }
.sp-home-hub .hh-kv { display: flex; flex: 1; gap: 16px; min-width: 170px; }

/* how the league plays */
.sp-home-hub .hh-s-pulse { padding-bottom: 12px; }
.sp-home-hub .hh-pulse { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sp-home-hub .hh-pt { min-width: 0; padding: 10px 12px 8px; background: var(--hh-k); color: var(--hh-kink); }
.sp-home-hub .hh-pt .hh-v { font-stretch: 62%; font-weight: 900; font-size: 40px; line-height: .95; }
.sp-home-hub .hh-pt .hh-l { margin-top: 3px; font-weight: 700; font-size: 13px; }
.sp-home-hub .hh-pt .hh-d { font-size: 12px; line-height: 1.3; color: var(--hh-kmuted); }
.sp-home-hub .hh-badge { display: inline-block; margin-top: 4px; padding: 0 6px 1px; background: var(--hh-tape); color: var(--hh-tapeink); font-weight: 800; font-size: 12px; }
.sp-home-hub .hh-spark { position: relative; aspect-ratio: 200 / 44; margin-top: 6px; }
.sp-home-hub .hh-sp--old { background: var(--hh-kmuted); }
.sp-home-hub .hh-sp--new { background: var(--hh-kink); }
.sp-home-hub .hh-yr { display: flex; justify-content: space-between; font-size: 12px; color: var(--hh-kmuted); }

/* sign-up sheet */
.sp-home-hub .hh-cta { position: relative; overflow: hidden; padding: 18px 16px; background: var(--hh-tape); color: var(--hh-tapeink); transform: rotate(1deg); box-shadow: 6px 6px 0 var(--hh-k); }
.sp-home-hub .hh-cta::after { content: ""; position: absolute; right: 0; top: 0; width: 46%; height: 100%; background-image: radial-gradient(circle, rgba(0,0,0,.2) 1.2px, transparent 1.8px); background-size: 9px 9px; -webkit-mask-image: linear-gradient(to left, #000, transparent); mask-image: linear-gradient(to left, #000, transparent); pointer-events: none; }
.sp-home-hub .hh-cta > * { position: relative; z-index: 1; }
.sp-home-hub .hh-cta h2 { font-stretch: 62%; font-weight: 900; font-size: 44px; line-height: .9; margin-bottom: 8px; }
.sp-home-hub .hh-cta p { font-weight: 600; font-size: 14px; max-width: 26ch; margin-bottom: 12px; }
.sp-home-hub .hh-reg { display: inline-flex; align-items: center; height: 38px; padding: 0 22px; background: var(--hh-tapeink); color: var(--hh-tape); font-stretch: 75%; font-weight: 900; font-size: 18px; }

/* hidden stays hidden: the server's copies the script replaced, the folded standings, the data stores */
.sp-home-hub [hidden] { display: none; }

/* no snapshot yet */
.sp-home-hub .hh-placeholder { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 32px 16px; }

/* desktop: three columns of the same vertical cards as on the phone. The first block (switch, card)
   is the first column; the other two columns start at the top. */
@container sp-home (min-width: 1000px) {
  /* the finals in one row as wide as the wall below (a second row only on the fullest nights) */
  .sp-home-hub .hh-res { padding: 7px 28px 12px; }
  .sp-home-hub .hh-res-h, .sp-home-hub .hh-res-grid { max-width: 1224px; margin-inline: auto; }
  .sp-home-hub .hh-res-grid { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
  /* three rows in the first column: the box score (when open), the first block, the rest of the column; the other
     two columns span all three, their extra height goes to the last row (1fr), under the first column's cards */
  .sp-home-hub .hh-wall { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto 1fr; gap: 24px; align-items: start; max-width: 1280px; margin: 0 auto; padding: 0 28px 48px; }
  .sp-home-hub .hh-col { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
  .sp-home-hub .hh-lead-block { grid-column: 1; grid-row: 1 / span 2; min-width: 0; }
  /* the columns are the wall's only divs (the first block and the box score are sections) */
  .sp-home-hub .hh-wall > .hh-col:nth-of-type(1) { grid-column: 1; grid-row: 3; }
  .sp-home-hub .hh-wall > .hh-col:nth-of-type(2) { grid-column: 2; grid-row: 1 / span 3; margin-top: 16px; }
  .sp-home-hub .hh-wall > .hh-col:nth-of-type(3) { grid-column: 3; grid-row: 1 / span 3; margin-top: 16px; }
  .sp-home-hub .hh-ctl { padding-top: 16px; }
  /* the box score first, one card as on the phone (one team behind two buttons), the first block under it
     (owner, 2026-11-24: "the same as on the phone, in one panel, in first place") */
  .sp-home-hub .hh-wall > .hh-s-box { grid-column: 1; grid-row: 1; margin-top: 16px; }
  .sp-home-hub .hh-wall > .hh-s-box:not([hidden]) ~ .hh-lead-block { grid-row: 2; }
}

/* a wider desktop: three rows instead of three free columns (owner, 2026-11-22, the layout "V1" of
   https://claude.ai/artifact/LfAZBq3qadr4or7Kc1uqWe with the race one row lower). The columns dissolve as on the
   phone and every card takes a named place:
     the night    first block | Last night in five | Streaks
     the teams    Standings across two columns     | The race
     the season   Team map    | How the league plays | sign-up
   The cards of a row share its height. From 1160 px, where a card across two columns has the 700 px the standings
   need to put West beside East; narrower desktops keep the columns above. */
@container sp-home (min-width: 1160px) {
  .sp-home-hub .hh-wall { grid-template-rows: none; align-items: stretch; }
  .sp-home-hub .hh-col { display: contents; }
  .sp-home-hub .hh-lead-block { grid-row: 1; }
  .sp-home-hub .hh-s-notable { grid-area: 1 / 2; margin-top: 16px; }
  .sp-home-hub .hh-s-streaks { grid-area: 1 / 3; margin-top: 16px; }
  .sp-home-hub .hh-s-stand { grid-area: 2 / 1 / auto / span 2; }
  .sp-home-hub .hh-s-race { grid-area: 2 / 3; }
  .sp-home-hub .hh-s-map { grid-area: 3 / 1; }
  .sp-home-hub .hh-s-pulse { grid-area: 3 / 2; }
  .sp-home-hub .hh-s-cta { grid-area: 3 / 3; align-self: start; }
  /* the box score first, one card as on the phone; every card of the first row one place to the right, Streaks
     beside the standings, the race beside the map and the league, the sign-up under the race:
       box score | first block | Last night in five
       Standings (2)           | Streaks
       Team map | How the league plays | The race
                                       | sign-up */
  .sp-home-hub .hh-wall > .hh-s-box { grid-area: 1 / 1; }
  .sp-home-hub .hh-wall > .hh-s-box:not([hidden]) ~ .hh-lead-block { grid-area: 1 / 2; }
  .sp-home-hub .hh-wall > .hh-s-box:not([hidden]) ~ .hh-col .hh-s-notable { grid-area: 1 / 3; }
  .sp-home-hub .hh-wall > .hh-s-box:not([hidden]) ~ .hh-col .hh-s-streaks { grid-area: 2 / 3; margin-top: 0; }
  .sp-home-hub .hh-wall > .hh-s-box:not([hidden]) ~ .hh-col .hh-s-race { grid-area: 3 / 3; }
  .sp-home-hub .hh-wall > .hh-s-box:not([hidden]) ~ .hh-col .hh-s-cta { grid-area: 4 / 3; }
  /* the first card fills its block, its foot stays at the bottom edge */
  .sp-home-hub .hh-sheet--lead { flex: 1 1 auto; display: flex; flex-direction: column; }
  .sp-home-hub .hh-sheet--lead .hh-lfoot { margin-top: auto; }
  /* the league's tiles share the height the row gives the card: the numbers stay on top, the lines at the bottom */
  .sp-home-hub .hh-s-pulse { display: flex; flex-direction: column; }
  .sp-home-hub .hh-s-pulse .hh-pulse { flex: 1 1 auto; grid-auto-rows: 1fr; }
  .sp-home-hub .hh-pt { display: flex; flex-direction: column; }
  .sp-home-hub .hh-pt .hh-badge { align-self: flex-start; }
  .sp-home-hub .hh-pt .hh-spark { margin-top: auto; }
}
