/* PuckQL "Team Roster" world (2026-12-03, replaces The Rink). Loaded after rink.css on every page, the social card
   renderer and Storybook (html.rink.roster): it swaps the tokens, then restyles what the Rink drew on top.
   Teams are rounded cards; blue carries numbers, links and the primary action; red means live; one ink plate per screen.
   Direction: .impeccable/surfaces/public-index-html.md. */

@font-face { font-family: "Rubik"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url("fonts/rubik-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: "Rubik"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url("fonts/rubik-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; }

/* ---------- tokens ---------- */
.rink.roster {
  color-scheme: light;
  --ice: #F2F6FC; --ice-2: #E6EDF7; --board: #FFFFFF;
  --ink: #0E1B26; --ink-2: #4A5866; --rule: #DCE5F2;
  --blue: #1452B8; --on-blue: #FFFFFF; --red: #D3263A; --crease: #DCE8FA;
  --good: #0F7A57; --good-bg: #E1F4EC;
  --plate: #0E1B26; --on-plate: #FFFFFF; --plate-2: #A8B6C6; --plate-accent: #6F9BF0;
  --logo-puck: var(--ink); --logo-ql: var(--blue);
  --grain: none;
  --display: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
  --text: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-body: 16px; --fs-small: 14px; --fs-tiny: 13px; --fs-lead: 18px;
  --r-card: 28px; --r-tile: 22px; --r-row: 14px; --r-board: 22px;
  /* The Rink's display sizes, brought down to this world's bold-but-readable scale. */
  --fs-hero: clamp(56px, 8vw, 88px); --fs-d1: clamp(40px, 5vw, 60px); --fs-d2: clamp(30px, 3.4vw, 40px); --fs-d3: clamp(22px, 2vw, 26px);
  /* The yellow kickplate under every board is retired: it paints as the board itself. */
  --kick: var(--board);
  /* The painted blue and red lines become hairlines; their colours are set back to rules below where they were decoration. */
  --line-blue: 1px; --line-red: 1px;
  --lift: 0 1px 0 rgba(14, 27, 38, .04), 0 18px 32px -20px rgba(20, 82, 184, .42);
  --rest: 0 1px 0 rgba(14, 27, 38, .04), 0 6px 18px -14px rgba(14, 27, 38, .18);
  --ease: cubic-bezier(.16, 1, .3, 1);   /* exponential ease-out */
  --spring: cubic-bezier(.34, 1.56, .64, 1); /* the card's small bounce */
}
.rink.roster[data-theme="dark"] {
  color-scheme: dark;
  --ice: #0B1622; --ice-2: #1B2B3F; --board: #132233;
  --ink: #EEF2F5; --ink-2: #A8B6C6; --rule: #22364C;
  --blue: #6F9BF0; --on-blue: #0B1622; --red: #F2647A; --crease: #1F3A60;
  --good: #4FD1A0; --good-bg: rgba(79, 209, 160, .13);
  --plate: #1452B8; --on-plate: #FFFFFF; --plate-2: #C9D8F5; --plate-accent: #FFFFFF;
  --lift: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 18px 32px -18px rgba(0, 0, 0, .7);
  --rest: 0 1px 0 rgba(255, 255, 255, .04) inset;
}
@media (prefers-color-scheme: dark) {
  .rink.roster:not([data-theme]) {
    color-scheme: dark;
    --ice: #0B1622; --ice-2: #1B2B3F; --board: #132233;
    --ink: #EEF2F5; --ink-2: #A8B6C6; --rule: #22364C;
    --blue: #6F9BF0; --on-blue: #0B1622; --red: #F2647A; --crease: #1F3A60;
    --good: #4FD1A0; --good-bg: rgba(79, 209, 160, .13);
    --plate: #1452B8; --on-plate: #FFFFFF; --plate-2: #C9D8F5; --plate-accent: #FFFFFF;
    --lift: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 18px 32px -18px rgba(0, 0, 0, .7);
    --rest: 0 1px 0 rgba(255, 255, 255, .04) inset;
  }
}

/* ---------- base ---------- */
html.rink.roster { background: var(--ice); caret-color: var(--blue); }
/* The Rink's painted capitals are retired: this world never transforms case. */
.rink.roster *:not(input) { text-transform: none !important; }
.rink.roster a:hover { text-decoration-color: currentColor; }
.rink.roster ::selection { background: var(--crease); color: var(--ink); }
.rink.roster * { scrollbar-color: var(--rule) transparent; }
.rink.roster .rk-display { font-weight: 700; letter-spacing: -.02em; line-height: 1.05; }
.rink.roster kbd { border-radius: 8px; font-family: var(--text); }

/* buttons, fields, chips: pills; blue is the action, red is only live */
.rink.roster .rk-btn { font-weight: 600; transition: transform 160ms var(--ease), background-color 200ms var(--ease), box-shadow 200ms var(--ease); }
.rink.roster .rk-btn.primary { background: var(--blue); color: var(--on-blue); }
.rink.roster .rk-btn.primary:hover:not(:disabled) { background: color-mix(in oklab, var(--blue), var(--ink) 16%); }
.rink.roster .rk-btn.secondary { background: var(--board); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--rule); }
.rink.roster .rk-btn.secondary:hover:not(:disabled) { box-shadow: inset 0 0 0 1.5px var(--blue); background: var(--board); }
.rink.roster .rk-chip { border: 0; background: var(--crease); color: var(--blue); font-weight: 600; }
.rink.roster button.rk-chip:hover { background: color-mix(in oklab, var(--crease), var(--blue) 14%); }
.rink.roster .rk-input, .rink.roster .rk-select { border: 1.5px solid var(--rule); border-radius: var(--r-row); }
.rink.roster .rk-select { border-radius: 999px; }
.rink.roster .rk-board { background: var(--board); border-radius: var(--r-card); padding: var(--s5); }
.rink.roster .rk-dialog { border-radius: var(--r-card); }
.rink.roster .rk-dialog .head { border-bottom: 1px solid var(--rule); }
.rink.roster .rk-dialog .foot, .rink.roster .auth .body { border-bottom: 0; }
.rink.roster .rk-dialog .foot { background: var(--ice); }
.rink.roster .rk-seg button[aria-selected="true"]::after { background: var(--blue); border-radius: 3px; }
.rink.roster .rk-menu { border: 1px solid var(--rule); border-radius: 18px; }

/* the ask box: one pill */
.rink.roster .rk-ask { border: 1.5px solid var(--rule); border-radius: 26px; background: var(--board); box-shadow: var(--rest);
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease); }
.rink.roster .rk-ask::after { content: none; }
.rink.roster .rk-ask:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px var(--crease); }
.rink.roster .rk-ask.is-dropping, .rink.roster .rk-ask.is-dropping .drop { animation: none; }
.rink.roster .rk-ask .rk-btn.primary { border-radius: 999px; }

/* ---------- shell (signed in) ---------- */
.rink.roster .sidebar { background: var(--board); border-right: 1px solid var(--rule); }
.rink.roster .side-foot { border-bottom: 0; }
.rink.roster .log-title { border-top: 1px solid var(--rule); font: 700 17px/1.2 var(--text); }
.rink.roster .history .item { border-radius: var(--r-row); }
.rink.roster .history .open { border-radius: var(--r-row); }
.rink.roster .history .empty { border: 0; background: var(--ice); border-radius: 18px; }
.rink.roster .history .empty b { font: 700 16px/1.25 var(--text); }
.rink.roster .acct .av { font: 700 16px/1 var(--text); }
.rink.roster .topbar { background: var(--ice); border-bottom: 0; }
.rink.roster .crumb .rk-chip { background: var(--board); color: var(--ink-2); }
.rink.roster .top-link { font-weight: 500; color: var(--ink-2); background: color-mix(in oklab, var(--board), transparent 40%); border-radius: 999px; }
.rink.roster .top-link:hover { background: var(--board); color: var(--ink); }
.rink.roster .top-link .kick { background: var(--blue); }
.rink.roster .ticker { background: var(--ice); border-bottom: 0; }
.rink.roster .tk-g { background: var(--board); border-radius: 16px; margin: 6px 3px; }
.rink.roster .tk-g:hover { background: var(--crease); }
.rink.roster .tk-day:not(:first-child) { border-left: 0; }
.rink.roster .dock { background: linear-gradient(to top, var(--ice) 78%, transparent); }
.rink.roster .dock .rk-ask { padding: 6px 6px 6px var(--s5); align-items: center; }

/* the home view inside the app: no ticker (the hub shows the night), the ask bar moves up under the top bar */
.rink.roster .content:has(.hero) .ticker { display: none; }
.rink.roster .content:has(.hero) .dock { order: -1; position: relative; bottom: auto; padding: var(--s2) var(--s6) 0; background: none; }
.rink.roster .content:has(.hero) .topbar { order: -2; }
.rink.roster .content:has(.hero) .dock form, .rink.roster .content:has(.hero) .dock-meta { max-width: 1200px; }
.rink.roster .content:has(.hero) .dock-meta { margin: var(--s2) auto 0; }
.rink.roster .content:has(.hero) .dock-meta .keys { display: none; }
.rink.roster .content:has(.hero) .log { order: 0; padding: 0 var(--s6) var(--s7); }
.rink.roster .log > .hero { max-width: 1200px; padding: var(--s4) 0 0; gap: var(--s4); }
.rink.roster .team-pick { gap: var(--s2) var(--s3); }
.rink.roster .team-pick label { font: 500 var(--fs-small)/1.2 var(--text); color: var(--ink-2); }
.rink.roster .team-pick .rk-select { min-height: 44px; background-color: var(--board); font-weight: 600; }

/* ---------- landing (signed out) ---------- */
.rink.roster .lp-boards { background: color-mix(in oklab, var(--ice), transparent 8%); border-bottom: 0; backdrop-filter: saturate(1.4) blur(12px); }
.rink.roster .lp-boards nav a { font-weight: 500; color: var(--ink-2); padding: 10px 16px; border-radius: 999px; background: color-mix(in oklab, var(--board), transparent 40%); }
.rink.roster .lp-boards nav a:hover { background: var(--board); color: var(--ink); }
.rink.roster .lp-top .rk-ask { padding: 6px 6px 6px var(--s5); }
.rink.roster .lp-top .rk-ask textarea { font-size: 17px; }
.rink.roster .lp-team { border: 1.5px solid var(--rule); border-radius: 26px; padding: 8px 20px; }
.rink.roster .lp-team label::before { border-radius: 50%; }
.rink.roster .lp-pitch { border-top: 0; margin-top: var(--s8); padding: var(--s6); background: var(--board); border-radius: var(--r-card); }
.rink.roster .lp-pitch h2 { font: 700 28px/1.1 var(--text); letter-spacing: -.02em; }
.rink.roster .lp-pitch h3 { font: 700 17px/1.2 var(--text); }
.rink.roster .lp-foot { background: none; border: 0; }

/* ---------- every other page: games and recaps, standings, playoffs, reading pages, cards, share, admin ---------- */
.rink.roster .legal-bar { background: color-mix(in oklab, var(--ice), transparent 8%); border-bottom: 0; backdrop-filter: saturate(1.4) blur(12px); }
/* page titles: bold Rubik, no red stub, no capitals */
.rink.roster :is(.legal, .po-page, .gr, .gr-day, .cards-page, .share-page) h1 { font: 800 var(--fs-d1)/1.02 var(--display); letter-spacing: -.03em; }
.rink.roster :is(.po-page, .legal, .gr, .gr-day) h1::before { content: none; }
.rink.roster :is(.legal, .po-page, .gr, .gr-day, .cards-page, .share-page) h2 { font: 700 var(--fs-d3)/1.15 var(--display); letter-spacing: -.02em; }
.rink.roster .admin-page h1 { font: 800 clamp(30px, 3.6vw, 40px)/1.05 var(--display); letter-spacing: -.02em; }
.rink.roster .legal .updated { border-bottom: 1px solid var(--rule); }
.rink.roster .legal li::marker { color: var(--blue); }
.rink.roster :is(.legal .tbl, .po-page .method table) { border: 0; border-radius: var(--r-tile); box-shadow: var(--rest); }
.rink.roster :is(.legal .tbl th, .po-page .method th) { border-bottom: 1px solid var(--rule); }
/* tabs: a pill track instead of a red underline */
.rink.roster .rk-seg { gap: 4px; padding: 4px; border: 0; border-radius: 999px; background: var(--ice-2); }
.rink.roster .rk-seg button { min-height: 38px; padding: 0 18px; border-radius: 999px; font: 600 var(--fs-small)/1 var(--text); }
.rink.roster .rk-seg button[aria-selected="true"] { background: var(--board); color: var(--ink); box-shadow: var(--rest); }
.rink.roster .rk-seg button[aria-selected="true"]::after { content: none; }
.rink.roster .auth .head .rk-seg { margin-left: 0; }
/* cards that sat on a kickplate: one even radius */
.rink.roster :is(.rk-attach, .po .champ, .odds-card, .share-page .cta, .cd-board, .gr-sb) { border-radius: var(--r-card); }
.rink.roster :is(.gr-star, .gr-game, .cd-card, .linkbox) { border-radius: var(--r-tile); }
.rink.roster .gr-game:hover { background: var(--crease); }
/* what the kickplate yellow used to mark */
.rink.roster :is(.gr-game .fin.live::before, .hub-live i) { background: var(--red); }
.rink.roster :is(.gr-pro, .admin-page .tag.pro) { background: var(--blue); color: var(--on-blue); }
.rink.roster .admin-page .dot.wait { background: var(--ink-2); }
/* rink lines that were decoration: rules now */
.rink.roster :is(.rk-dialog .head, .odds-card .oc-head, .share-page .top, .admin-page .admin-bar, .admin-page .panel-head) { border-bottom-color: var(--rule); }
.rink.roster .admin-page .table th, .rink.roster .tablewrap thead th { border-bottom-color: var(--rule); }
.rink.roster .tablewrap thead th.sorted .caret { color: var(--blue); }
.rink.roster .tablewrap { border-radius: var(--r-tile); }
.rink.roster :is(.q, .cd-title)::before, .rink.roster .cd-board::before { content: none; }
.rink.roster .rk-blueline, .rink.roster .rk-redline { height: 1px; background: var(--rule); }
.rink.roster :is(.po tr.cut td, .oc-cut) { border-top: 1.5px dashed var(--ink-2); }
.rink.roster .admin-page .nav a[aria-current="page"]::after { content: none; }
.rink.roster .admin-page .nav a[aria-current="page"] { background: var(--board); border-radius: 999px; box-shadow: var(--rest); }
/* the playoffs page's League / East / West tabs: the same pill track as .rk-seg */
.rink.roster .po .tabs { gap: 4px; padding: 4px; border: 0; border-radius: 999px; background: var(--ice-2); }
.rink.roster .po .tabs button { min-height: 38px; padding: 0 18px; border-radius: 999px; font: 600 var(--fs-small)/1 var(--text); letter-spacing: 0; }
.rink.roster .po .tabs button[aria-selected="true"] { background: var(--board); color: var(--ink); box-shadow: var(--rest); }
.rink.roster .po .tabs button[aria-selected="true"]::after { content: none; }
.rink.roster .odds-card .oc-head { font: 700 20px/1.1 var(--text); letter-spacing: -.01em; }
/* big numbers: Rubik 800, tight, never black-weight */
.rink.roster :is(.rk-hero, .po .champ .t, .oc-team .big, .admin-page .stat b, .admin-page .grid b, .admin-page .q-n, .cd-units b, .cd-stats dd,
  .gr-sb-team .nm b, .gr-sb-team .sc, .gr-split-legend b, .gr-star .rk, .gr-star .v, .gr-game .t .sc) { font-weight: 800; letter-spacing: -.03em; line-height: .95; }
.rink.roster .cd-title { font: 800 var(--fs-d1)/1.02 var(--display); letter-spacing: -.03em; }
/* trading-card backs: a blue back with a pale ring, no rink drawing (fixed colours: a physical object in both themes) */
.rink.roster .cd-card { border-color: #DCE5F2; border-radius: 12px; }
.rink.roster .cd-card::after { content: "PuckQL"; font-weight: 700; letter-spacing: 0; }
.rink.roster .cd-card b { border: 0; border-radius: 9px; background: #1452B8; }
.rink.roster .cd-card b::before { border: 3px solid #6F9BF0; background: none; }
.rink.roster .admin-page .nav a { font: 600 var(--fs-small)/1 var(--text); padding: 10px 14px; }

/* ---------- @puckql post cards and brand images (public/social, rendered by social-page.js) ---------- */
/* Shared post styles live in public/social/social.css; only what must beat a card module's own rule is here. */
.rink.roster .br-k::before { height: 8px; border-radius: 999px; background: var(--blue); }
.rink.roster .br-meta span + span::before { color: var(--blue); }
.rink.roster .br-h { font-weight: 800; letter-spacing: -.03em; line-height: 1; }
/* Red stays where it means something in the data (goals, a drop, a side that stole a win); hero numbers are blue. */
.rink.roster :is(.big-number .num, .goal-pace .hero .big, .hot-streak .hs-num .n, .leaderboard .lb-row.lead .val) { color: var(--blue); }
.rink.roster :is(.odds-board .ob-row.cut, .odds-bubble .bb-row.cut) { border-top: 2px dashed var(--ink-2); }
.rink.roster :is(.division-table .dt-cut)::before, .rink.roster :is(.division-table .dt-cut)::after { height: 0; border-top: 2px dashed var(--ink-2); background: none; }

/* ---------- the chat answer: no puck, no faceoff, red only for failures ---------- */
.rink.roster .work .lane::before { top: 5px; height: 4px; border-radius: 999px; background: var(--ice-2); opacity: 1; }
.rink.roster .work .lane .puck { top: 5px; width: 40px; height: 4px; border-radius: 999px; background: var(--blue); }
.rink.roster .faceoff .dots { box-shadow: inset 0 0 0 2px var(--crease); }
.rink.roster .faceoff .dots::after { background: var(--blue); }
.rink.roster .answer h4 { font: 700 var(--fs-d3)/1.15 var(--display); letter-spacing: -.02em; }
.rink.roster .answer ul li::before { width: 7px; height: 7px; top: .66em; background: var(--blue); }
.rink.roster .answer ol li::before { font-weight: 700; }
.rink.roster .answer.streaming > :last-child::after { background: var(--blue); }
.rink.roster .tb::before { border-radius: 50%; }
.rink.roster .notice { border-radius: var(--r-tile); }
.rink.roster .notice.bad { border-width: 1.5px; }

/* ---------- the home hub (public/hub-ui.js) ---------- */
.rink.roster .hub { gap: var(--s7); margin-top: var(--s2); }
.rink.roster #lpHub { margin-top: var(--s6); }
.rink.roster .ad { padding: var(--s4); background: var(--board); border-radius: var(--r-tile); box-shadow: var(--rest); }
.rink.roster .ad-label { font-weight: 500; }
.rink.roster .ad-ph { border-radius: var(--r-row); }
.rink.roster .hub[aria-busy="true"]:empty { min-height: 420px; border-radius: var(--r-card); background: var(--board); opacity: .6; }
.rink.roster .hub .lab { margin: 0 0 var(--s3); font: 500 var(--fs-tiny)/1.3 var(--text); color: var(--ink-2); }
.rink.roster .hub .lab span { margin-left: 6px; opacity: .8; }
.rink.roster .hub-h { margin: 0 0 var(--s4); font: 700 24px/1.15 var(--text); letter-spacing: -.015em; }
.rink.roster .hub-h small { font: 500 var(--fs-small)/1 var(--text); color: var(--ink-2); }
.rink.roster .hub h3 { margin: 0 0 var(--s3); font: 700 17px/1.2 var(--text); }
.rink.roster .hub h3 small { font: 500 var(--fs-tiny)/1 var(--text); }
.rink.roster .hub-q { margin: var(--s3) 0 0; padding: 9px 16px; min-height: 38px; border-radius: 999px; font: 600 var(--fs-small)/1.25 var(--text); text-align: left; white-space: normal;
  transition: background-color 200ms var(--ease), transform 160ms var(--ease); }
.rink.roster .hub-q:active { transform: scale(.97); }
.rink.roster .hub-live { color: var(--red); font-weight: 700; }
.rink.roster .hub-live i { background: var(--red); box-shadow: none; }
.rink.roster .hub-big { font: 800 76px/1 var(--text); letter-spacing: -.04em; color: var(--blue); }
.rink.roster .hub-move { display: inline-block; margin-top: var(--s2) !important; padding: 4px 12px; border-radius: 999px; font: 600 var(--fs-tiny)/1.3 var(--text); }
.rink.roster .hub-move.up { background: var(--good-bg); color: var(--good); }
.rink.roster .hub-move.dn { background: var(--ice-2); color: var(--ink-2); }
.rink.roster .hub .up { color: var(--good); }
.rink.roster .hub-bar { height: 8px; border-radius: 999px; background: var(--ice-2); }
.rink.roster .hub-bar i { border-radius: 999px; }
.rink.roster .hub .hub-stats { margin-top: var(--s2); font-size: var(--fs-small); color: var(--ink-2); }

/* row 1: your team card beside the ink plate */
.rink.roster .hub-top { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: stretch; }
.rink.roster .hub-mine { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr); gap: 28px;
  padding: 26px 28px 28px; background: var(--board); border-radius: var(--r-card); box-shadow: var(--rest); }
.rink.roster .hub-mine::before { content: ""; position: absolute; left: 28px; top: 0; width: 56px; height: 6px; border-radius: 0 0 6px 6px; background: var(--tc); }
.rink.roster .hub-mine .cell { min-width: 0; }
.rink.roster .hub-vs { display: grid; gap: var(--s3); }
.rink.roster .hub-vs .side, .rink.roster .hub-pair .side { display: flex; align-items: center; gap: var(--s3); min-width: 0; }
.rink.roster .hub-vs .rk-team { gap: 14px; font: 700 28px/1.1 var(--text); letter-spacing: -.015em; min-width: 0; }
.rink.roster .hub-vs .rk-team i { font-size: 36px; } /* the logo is 1.6em of this */
.rink.roster .hub-vs .sn { margin-left: auto; font: 800 34px/1 var(--text); color: var(--blue); }
.rink.roster :is(.hub-vs, .hub-pair) .side.l { color: var(--ink-2); }
.rink.roster :is(.hub-vs, .hub-pair) .side.l .sn { color: var(--ink-2); }
.rink.roster .hub-mine .note { margin-top: var(--s4); max-width: 38ch; font: 500 var(--fs-body)/1.45 var(--text); color: var(--ink-2); text-wrap: pretty; }
.rink.roster .hub-curve { display: block; width: 100%; height: 72px; margin-top: var(--s4); overflow: visible; }
.rink.roster .hub-curve .a { fill: color-mix(in oklab, var(--blue), transparent 84%); }
.rink.roster .hub-curve .l { fill: none; stroke: var(--blue); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.rink.roster .hub-mine .hub-quiet { margin-top: var(--s2); font-size: var(--fs-tiny); }
.rink.roster .hub-last { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.rink.roster .hub-zone { padding: 0; min-width: 0; }
.rink.roster .hub-last li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s2); padding: 7px 12px; border-radius: var(--r-row);
  background: var(--ice); font-size: var(--fs-small); }
.rink.roster .hub-last .opp { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--ink-2); }
.rink.roster .hub-last .opp .rk-team { color: var(--ink); font-weight: 600; }
.rink.roster .hub-last b { font-weight: 700; white-space: nowrap; }
.rink.roster .hub-last b.l { color: var(--ink-2); font-weight: 600; }
.rink.roster .hub-plate { display: flex; flex-direction: column; gap: var(--s3); padding: 26px 28px; border-radius: var(--r-card); background: var(--plate); color: var(--on-plate); }
.rink.roster .hub-plate .lab { margin: 0; color: var(--plate-2); }
.rink.roster .hub-plate .lq { margin: 0; font: 600 21px/1.25 var(--text); letter-spacing: -.01em; text-wrap: balance; }
.rink.roster .hub-plate .hub-big { color: var(--plate-accent); font-size: 64px; }
.rink.roster .hub-plate .cap { font-size: var(--fs-small); line-height: 1.45; }
.rink.roster .hub-plate .src { margin-top: auto; color: var(--plate-2); font-size: var(--fs-tiny); }

/* rows: a flowing grid of game cards */
.rink.roster .hub-flow { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.rink.roster .hub-flow > li { display: flex; min-width: 0; }
/* Tonight's slate is one sideways row at every width, never a wall of scores. */
@container hub (min-width: 761px) {
  .rink.roster .z-live .hub-flow { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--s1); margin-inline: calc(-1 * var(--s1)); padding: 6px var(--s1) 12px; scrollbar-width: thin; }
  .rink.roster .z-live .hub-flow > li { flex: 0 0 248px; scroll-snap-align: start; }
}
.rink.roster .hub-card { position: relative; display: flex; flex-direction: column; gap: 10px; width: 100%; margin: 0; padding: 16px 18px 18px; border: 0; border-radius: var(--r-tile);
  background: var(--board); color: var(--ink); box-shadow: var(--rest); font: inherit; text-align: left;
  transition: transform 420ms var(--spring), box-shadow 300ms var(--ease); }
.rink.roster button.hub-card { cursor: pointer; }
/* the signature: a card you can act on picks up with a small bounce */
.rink.roster .hub-card:is(button, :has(.hub-q)):is(:hover, :focus-within) { transform: translateY(-4px); box-shadow: var(--lift); }
@media (prefers-reduced-motion: reduce) { .rink.roster .hub-card:is(:hover, :focus-within), .rink.roster .hub-q:active { transform: none; } }
.rink.roster .hub-card:focus-visible { outline-offset: 3px; border-radius: var(--r-tile); }
.rink.roster .hub-card .st { margin: 0; font: 500 var(--fs-tiny)/1.3 var(--text); color: var(--ink-2); }
.rink.roster .hub-card.live { box-shadow: inset 0 0 0 2px var(--red), var(--rest); }
.rink.roster .hub-card.live:is(:hover, :focus-within) { box-shadow: inset 0 0 0 2px var(--red), var(--lift); }
.rink.roster .hub-pair { display: grid; gap: 6px; }
.rink.roster .hub-pair .rk-team { gap: 10px; font: 600 var(--fs-body)/1.2 var(--text); min-width: 0; }
.rink.roster .hub-pair .rk-team i { font-size: 22px; }
.rink.roster .hub-pair .sn { margin-left: auto; font: 700 20px/1 var(--text); }
.rink.roster .hub-card .note { margin: 0; font-size: var(--fs-small); line-height: 1.4; color: var(--ink-2); text-wrap: pretty; }
.rink.roster .hub-card .note b { color: var(--ink); }
.rink.roster .hub-card .hub-q { margin-top: auto; align-self: flex-start; }
.rink.roster .hub-yours { display: flex; align-items: center; gap: var(--s2); margin: 0 0 var(--s4); padding: 10px 16px; border: 0; border-radius: 999px; background: var(--crease); font-size: var(--fs-small); width: fit-content; }
.rink.roster .hub-yours span:last-child { margin-left: var(--s3); color: var(--ink-2); }
.rink.roster .hub-movers li { grid-template-columns: minmax(0, 1fr) 70px 40px 34px; padding: 6px 0; }
.rink.roster .hub-lines li { border-bottom: 0; padding: 5px 0; }
.rink.roster .hub-sub { margin: var(--s2) 0 2px; font: 500 var(--fs-tiny)/1.2 var(--text); }
.rink.roster .hub-card a { font-size: var(--fs-small); font-weight: 600; }

/* the game sheet: slides over the hub instead of a page load */
.rink.roster .hub-sheet { position: fixed; inset: 0 0 0 auto; width: min(460px, 100vw); height: 100dvh; max-width: none; max-height: none; margin: 0;
  padding: 0; border: 0; border-radius: var(--r-card) 0 0 var(--r-card); background: var(--board); color: var(--ink); box-shadow: -24px 0 60px -30px rgba(8, 18, 30, .5); overflow-y: auto; }
.rink.roster .hub-sheet[open] { animation: roster-sheet-in 460ms var(--ease); }
.rink.roster .hub-sheet::backdrop { background: rgba(8, 18, 30, .42); animation: roster-fade 300ms var(--ease); }
.rink.roster .hub-sheet .in { display: grid; gap: var(--s4); padding: 28px; }
.rink.roster .hub-sheet-x { position: absolute; top: 16px; right: 16px; border-radius: 999px; }
.rink.roster .hub-sheet .head { display: grid; gap: var(--s3); padding-right: 40px; }
.rink.roster .hub-sheet .head .st { margin: 0; font-size: var(--fs-small); color: var(--ink-2); }
.rink.roster .hub-sheet .head .hub-pair { gap: var(--s3); }
.rink.roster .hub-sheet .head .rk-team { font: 700 24px/1.15 var(--text); }
.rink.roster .hub-sheet .head .rk-team i { font-size: 30px; }
.rink.roster .hub-sheet .head .sn { font-size: 32px; color: var(--blue); }
.rink.roster .hub-sheet .head .side.l .sn { color: var(--ink-2); }
.rink.roster .hub-sheet .head .note { margin: 0; color: var(--ink-2); }
.rink.roster .hub-sheet .x { display: grid; gap: var(--s3); }
.rink.roster .hub-sheet .x p { margin: 0; color: var(--ink-2); font-size: var(--fs-small); }
.rink.roster .hub-sheet .qs { display: grid; justify-items: start; }
.rink.roster .hub-sheet .recap { justify-self: start; font-weight: 600; }
.rink.roster .hub-dv { display: flex; gap: 4px; height: 36px; border-radius: 999px; overflow: hidden; font: 600 var(--fs-tiny)/1 var(--text); }
.rink.roster .hub-dv b { display: flex; align-items: center; min-width: max-content; padding: 0 14px; background: var(--ice-2); color: var(--ink); border: 0 !important; }
.rink.roster .hub-dv b:last-child { justify-content: flex-end; }
.rink.roster .x[data-fav="away"] .hub-dv b:first-child, .rink.roster .x[data-fav="home"] .hub-dv b:last-child { background: var(--blue); color: var(--on-blue); }
@keyframes roster-sheet-in { from { transform: translateX(100%); } }
@keyframes roster-fade { from { opacity: 0; } }

@container hub (max-width: 960px) {
  .rink.roster .hub-top { grid-template-columns: minmax(0, 1fr); }
}
@container hub (max-width: 760px) {
  .rink.roster .hub { gap: var(--s6); }
  .rink.roster .hub-mine { grid-template-columns: minmax(0, 1fr); gap: var(--s5); padding: 24px 20px; }
  .rink.roster .hub-mine::before { left: 20px; }
  .rink.roster .hub-vs .rk-team { font-size: 24px; }
  .rink.roster .hub-vs .rk-team i { font-size: 30px; }
  .rink.roster .hub-big { font-size: 64px; }
  .rink.roster .hub-plate { padding: 24px 20px; }
  /* rows scroll sideways on a phone, a card and a peek of the next */
  .rink.roster .hub-flow { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--s4); margin-inline: calc(-1 * var(--s4)); padding: 6px var(--s4) 10px;
    scrollbar-width: none; overscroll-behavior-x: contain; }
  .rink.roster .hub-flow::-webkit-scrollbar { display: none; }
  .rink.roster .hub-flow > li { flex: 0 0 78%; scroll-snap-align: start; }
  /* phone order: your team, live and tonight, then today's answer, last night, around the league */
  .rink.roster .hub-top { display: contents; }
  .rink.roster .hub-mine { order: 0; }
  .rink.roster .z-live { order: 1; }
  .rink.roster .hub-plate { order: 2; }
  .rink.roster .z-night { order: 3; }
  .rink.roster .z-league { order: 4; }
}
@media (max-width: 640px) {
  .rink.roster .hub-sheet { inset: auto 0 0 0; width: 100%; height: auto; max-height: 88dvh; border-radius: var(--r-card) var(--r-card) 0 0; }
  .rink.roster .hub-sheet[open] { animation-name: roster-sheet-up; }
}
@keyframes roster-sheet-up { from { transform: translateY(100%); } }
@container app (max-width: 760px) {
  .rink.roster .content:has(.hero) .dock { padding: var(--s2) var(--s4) 0; }
  .rink.roster .content:has(.hero) .log { padding: 0 var(--s4) var(--s6); }
  .rink.roster .content:has(.hero) .dock-meta { display: none; }
}

/* ---------- admin usability: the nav wraps on phones and counts what is waiting, tables scroll sideways,
   the account sheet's head stays in view, and the social page has jump links ---------- */
.rink.roster .admin-page .nav a { white-space: nowrap; }
.rink.roster .admin-page .nav .count { margin-left: 6px; min-width: 20px; padding: 4px 6px; border-radius: 999px; background: var(--blue); color: var(--on-blue); font: 700 12px/1 var(--text); text-align: center; font-variant-numeric: tabular-nums; }
.rink.roster .admin-page .table { overflow-x: auto; }
.rink.roster .admin-page .panel .panel-head { position: sticky; top: 0; z-index: 1; margin-top: calc(-1 * var(--s6)); padding-top: var(--s6); background: var(--board); }
.rink.roster .admin-page .jumps { position: sticky; top: 0; z-index: 2; display: flex; flex-wrap: wrap; gap: 0 var(--s5); padding: var(--s1) 0; background: var(--ice); border-bottom: 2px solid var(--rule); }
.rink.roster .admin-page .jumps a { padding: 10px 0; font-weight: 700; font-size: var(--fs-tiny); text-decoration: none; }
.rink.roster .admin-page .jumps a:hover { text-decoration: underline; }
.rink.roster .admin-page .jumps ~ :is(h2, .make) { scroll-margin-top: 60px; }
@media (max-width: 720px) {
  .rink.roster .admin-page .nav { flex-wrap: wrap; overflow-x: visible; }
  .rink.roster .admin-page .panel .panel-head { margin-top: calc(-1 * var(--s5)); padding-top: var(--s5); }
  .rink.roster .admin-page .jumps ~ :is(h2, .make) { scroll-margin-top: 100px; }
}
.rink.roster .admin-page h2 + .stats { margin-top: 0; }
