  /* Tokens are defined in assets/tokens.css (--vt-*). These short aliases keep
     the existing rules below working while making the design system authoritative. */
  :root{
    --bg:var(--vt-bg); --panel:var(--vt-panel); --panel2:var(--vt-panel-2); --line:var(--vt-line);
    --text:var(--vt-text); --fg:var(--vt-text); --muted:var(--vt-muted);
    --accent:var(--vt-accent); --accent2:var(--vt-blue);
    --track:var(--vt-track); --shadow:var(--vt-shadow); --hdr:var(--vt-header-h);
  }
  *{box-sizing:border-box}
  body{margin:0;background:var(--vt-backdrop) fixed;
    color:var(--text);font:var(--vt-fs-body)/var(--vt-lh-body) var(--vt-font-ui);
    -webkit-font-smoothing:antialiased}
  /* Saira (display face) — wordmark, headings, big numerals, controls. Body stays
     on the system UI stack for table density. */
  .brand h1,.slatedate .dval,.slatecounts .scv,.scard .v,.statrow .v,
  .pod .ppts,.pod .pname,.gprow .s1,.prow .pj,td.proj,.rank .elo,
  .pchead .n,.ms .val,.qgrid .q .val,.statstrip .stat .v,.biascell .v,
  .gmrow .gv,.gmpp,.tabs button,.statbar button,.authbtn,.densebtn,
  .seg button,.pager button,.cookie .cx,.gtotals,.medal,.chartbox h3{
    font-family:var(--vt-font-display)}
  .wrap{max-width:1140px;margin:0 auto;padding:24px 20px 88px}   /* bottom pad clears the floating tab bar */
  a{color:inherit}
  /* topbar */
  /* full-bleed sticky topbar: the bar spans the whole viewport from the very top;
     its content (.topin) aligns to the app column. --hdr is synced to its real
     height by syncHdr() so sticky table headers offset correctly. */
  .top{position:sticky;top:0;z-index:30;margin:0;
    background:rgba(11,13,18,.82);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
    border-bottom:1px solid var(--line)}
  /* row 1: brand · slate · auth — full-bleed so the logo hugs the left edge and auth the right */
  .topin{max-width:none;margin:0;padding:10px 24px;display:flex;flex-wrap:wrap;gap:12px 20px;
    align-items:center}
  .top .auth{margin-left:auto}
  .brand{display:flex;align-items:center;gap:15px;text-decoration:none;color:inherit}
  .brand .mk{width:52px;height:auto;display:block}
  .brand h1{font-size:18px;margin:0;line-height:1.05;font-weight:800;
    letter-spacing:var(--vt-tracking-wordmark);text-transform:uppercase}
  /* mantra sits beside the wordmark behind a hairline divider, not below it */
  .brand .tag{color:var(--muted);font-size:12.5px;line-height:1.32;
    padding-left:15px;border-left:1px solid var(--line);align-self:stretch;display:flex;
    flex-direction:column;justify-content:center}
  @media(max-width:560px){.brand .tag{display:none}}
  .pick{display:flex;align-items:center;gap:10px;position:relative}
  /* custom slate picker (replaces the native date input) */
  .datebtn{display:flex;align-items:center;gap:10px;background:var(--panel2);border:1px solid var(--line);
    border-radius:12px;padding:7px 14px;cursor:pointer;color:var(--text);line-height:1.25;transition:border-color .15s}
  .datebtn:hover{border-color:var(--accent2)}
  .datebtn .dlab{color:var(--accent);font-size:10.5px;font-weight:700;letter-spacing:.07em;text-transform:uppercase}
  .datebtn .dval{font-size:14px;font-weight:600}
  .datebtn .dchev{color:var(--muted);font-size:11px;transition:transform .18s}
  .datebtn[aria-expanded="true"] .dchev{transform:rotate(180deg)}
  /* opens to the RIGHT of the date button (anchored to the slate, which is position:relative) */
  .datemenu{position:absolute;left:calc(100% + 10px);top:0;z-index:46;width:268px;max-width:74vw;
    display:flex;flex-direction:column;max-height:min(300px,46vh);background:var(--panel);
    border:1px solid var(--line);border-radius:14px;box-shadow:0 18px 50px rgba(0,0,0,.5);overflow:hidden}
  .datemenu[hidden]{display:none}
  /* month-paged header: ‹ Month Year › (replaces the free-text date filter) */
  .datemenu-head{display:flex;align-items:center;gap:8px;padding:9px 10px;border-bottom:1px solid var(--line)}
  .dmonthlab{flex:1;text-align:center;font-size:14px;font-weight:800;color:var(--text);
    font-family:var(--vt-font-display);font-variant-numeric:tabular-nums}
  .dnav{width:30px;height:30px;flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;
    background:var(--panel2);border:1px solid var(--line);border-radius:8px;color:var(--muted);
    font-size:17px;line-height:1;cursor:pointer;transition:.14s}
  .dnav:hover:not(:disabled){color:var(--accent2);border-color:var(--accent2)}
  .dnav:disabled{opacity:.35;cursor:default}
  .datemenu-list{overflow-y:auto;padding:6px}
  .ditem{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px;
    border-radius:9px;cursor:pointer;transition:background .12s}
  .ditem:hover{background:var(--panel2)}
  .ditem.on{background:linear-gradient(90deg,rgba(240,136,62,.16),transparent);box-shadow:inset 2px 0 0 var(--accent)}
  .ditem .dd{font-size:14px;font-weight:700;font-family:var(--vt-font-display);display:flex;align-items:center;gap:7px}
  .ditem.on .dd{color:var(--accent)}
  .ditem .udot{width:6px;height:6px;border-radius:50%;background:var(--accent2);flex:0 0 auto}
  .ditem .dn{font-size:11px;color:var(--muted);background:var(--panel2);border:1px solid var(--line);
    border-radius:20px;padding:2px 9px;white-space:nowrap}
  .ditem.on .dn{color:#cdd3df}
  .dmenu-empty{padding:20px;text-align:center;color:var(--muted);font-size:13px}
  select,input[type=search]{background:var(--panel2);color:var(--text);border:1px solid var(--line);
    border-radius:9px;padding:9px 12px;font-size:14px;outline:none}
  select:focus,input:focus{border-color:var(--accent2)}
  /* slate box now lives IN the topbar (date picker + games/players counts), compact + inline */
  .slate{position:relative;display:flex;align-items:center;gap:14px}
  .slate .slatedate{display:flex;align-items:center;gap:9px;background:var(--panel2);border:1px solid var(--line);
    border-radius:11px;padding:6px 12px;cursor:pointer;color:var(--text);transition:border-color .15s}
  .slate .slatedate:hover{border-color:var(--accent2)}
  /* label height now matches the date, with a discrete vertical separator between them */
  .slate .slatedate .dlab{color:var(--accent);font-size:13px;font-weight:800;letter-spacing:.02em;text-transform:uppercase;
    font-family:var(--vt-font-display);padding-right:9px;border-right:1px solid var(--line)}
  .slate .slatedate .dval{font-size:15px;font-weight:800;letter-spacing:-.01em}
  .slate .slatedate .dchev{color:var(--accent2);font-size:15px;transition:transform .18s;margin-left:1px}
  .slate .slatedate[aria-expanded="true"] .dchev{transform:rotate(180deg)}
  .slate .slatecounts{display:flex;gap:13px}
  .slate .slatecounts .sc{display:flex;align-items:baseline;gap:5px}
  .slate .slatecounts .scv{font-size:15px;font-weight:800;letter-spacing:-.02em}
  .slate .slatecounts .scl{color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.04em}
  @media(max-width:760px){.slate .slatecounts{display:none}}   /* keep just the date picker when tight */
  /* summary cards: a metric per card (Top projections / Highest ceiling / Highest floor /
     Most consistent), each listing the PTS, AST and REB leader — title in a separated header,
     rows = name pill + value with its label; the consistent card also shows a steadiness badge. */
  .summary{display:grid;grid-template-columns:repeat(4,1fr);gap:11px;margin-bottom:20px}
  .scard{display:flex;flex-direction:column;overflow:hidden;
    background:linear-gradient(180deg,var(--panel2),var(--panel));border:1px solid var(--line);
    border-radius:13px;box-shadow:var(--shadow)}
  /* header casts a shadow onto the body, marking the boundary (like the game-window headers) */
  .scard .sk{position:relative;z-index:1;color:var(--muted);font-size:11px;font-weight:800;text-transform:uppercase;
    letter-spacing:.05em;text-align:center;padding:9px 10px;border-bottom:1px solid var(--line);
    box-shadow:0 4px 8px -3px rgba(0,0,0,.55)}
  .scard .sbody{display:flex;flex-direction:column;gap:3px;padding:9px 9px 8px}
  .scard .srow{display:flex;align-items:center;justify-content:space-between;gap:7px;
    border-radius:999px;padding:3px 9px;cursor:pointer;transition:box-shadow .14s}
  /* hover = a PILL-shaped accent ring (the row is fully rounded) */
  .scard .srow:hover{box-shadow:inset 0 0 0 1.5px var(--accent)}
  .scard .snm{flex:0 1 auto;min-width:0;font:800 11px/1.15 var(--vt-font-display);
    padding:3px 9px;border-radius:999px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.4),0 1px 2px rgba(0,0,0,.4)}
  .scard .sv{flex:0 0 auto;display:flex;align-items:baseline;gap:4px;font-variant-numeric:tabular-nums}
  .scard .sv b{font:800 14px/1 var(--vt-font-display);color:var(--accent)}
  .scard .sv .u{font-size:8.5px;color:var(--muted);text-transform:uppercase;letter-spacing:.03em}
  .scard .sv .steady{font-size:9px;font-weight:800;color:#3fb950;margin-left:2px}
  @media(max-width:980px){.summary{grid-template-columns:repeat(2,1fr)}}
  @media(max-width:560px){.summary{grid-template-columns:repeat(2,1fr)}}
  /* leaderboard podium — horizontal cards: big portrait left, info right */
  .podium{display:grid;grid-template-columns:1fr 1fr 1fr;gap:14px;margin-bottom:18px}
  .pod{position:relative;display:flex;align-items:center;gap:13px;overflow:hidden;
    background:linear-gradient(180deg,var(--panel2),var(--panel));border:2px solid var(--line);
    border-radius:14px;padding:13px;cursor:pointer;text-align:left;transition:filter .15s}
  /* hover = a calm brightness lift only — the medal outline (gold/silver/bronze) is preserved,
     never overridden by an accent ring (operator request). No outer glow. */
  .pod:hover{filter:brightness(1.07)}
  .pod .medal{position:absolute;top:8px;left:8px;z-index:2;width:22px;height:22px;border-radius:50%;
    display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:800;
    font-variant-numeric:tabular-nums;background:rgba(13,16,22,.85);border:1px solid var(--line);color:#fff;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.35),0 1px 3px rgba(0,0,0,.5)}
  /* gold / silver / bronze coins — layered metallic gradient + bright top sheen */
  .pod.first .medal{background:linear-gradient(160deg,#FFEFB0 6%,#F2C53A 46%,#B7811A 100%);
    border-color:#C99312;color:#4a3500;box-shadow:inset 0 1px 0 rgba(255,252,235,.85),0 1px 4px rgba(0,0,0,.45)}
  .pod.second .medal{background:linear-gradient(160deg,#FBFCFE 8%,#CBD2DC 48%,#9098A4 100%);
    border-color:#9aa2af;color:#2a2f38;box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 1px 4px rgba(0,0,0,.45)}
  .pod.third .medal{background:linear-gradient(160deg,#F2C49B 8%,#C77F3D 48%,#8A4E1E 100%);
    border-color:#9c5d2a;color:#3a1e00;box-shadow:inset 0 1px 0 rgba(255,232,205,.8),0 1px 4px rgba(0,0,0,.45)}
  .pod .avatar.lg{width:66px;height:88px;font-size:22px;border-radius:11px;margin:0;flex:0 0 auto}
  .pod .pinfo{min-width:0;flex:1}
  .pod .pname{font-weight:700;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .pod .pteam{margin-top:4px;font-size:11px;color:var(--muted);display:flex;align-items:center;gap:6px}
  .pod .ppts{font-size:27px;font-weight:800;color:var(--accent);margin-top:6px;letter-spacing:-.02em;line-height:1}
  .pod .ppts small{font-size:12px;color:var(--muted);font-weight:600}
  .pod .prange{font-size:10.5px;color:var(--muted);margin-top:5px;font-variant-numeric:tabular-nums}
  .pod .pbar{margin-top:9px}
  /* metallic frame: rich border tone + a bright inner top-edge sheen (no outer glow) */
  .pod.first{border-color:#E0A91E;box-shadow:inset 0 1px 0 rgba(255,244,214,.5)}
  .pod.second{border-color:#B4BCC8;box-shadow:inset 0 1px 0 rgba(255,255,255,.55)}
  .pod.third{border-color:#B5732F;box-shadow:inset 0 1px 0 rgba(255,226,196,.45)}
  .pod.first .avatar.lg{width:74px;height:98px}
  .pod.first .ppts{font-size:31px}
  @media(max-width:900px){.podium{grid-template-columns:1fr}}
  /* tabs */
  /* floating section switcher: liquid-glass bar pinned bottom-centre */
  .tabs{position:fixed;left:50%;bottom:20px;transform:translateX(-50%);z-index:45;
    display:flex;gap:6px;padding:6px;border-radius:999px;width:max-content;max-width:calc(100vw - 24px);overflow-x:auto;
    background:rgba(22,26,34,.5);backdrop-filter:blur(18px) saturate(1.5);-webkit-backdrop-filter:blur(18px) saturate(1.5);
    border:1px solid rgba(255,255,255,.14);
    box-shadow:0 12px 36px rgba(0,0,0,.52),inset 0 1px 0 rgba(255,255,255,.22),inset 0 -1px 0 rgba(0,0,0,.34)}
  .tabs::-webkit-scrollbar{display:none}
  .tabs .glider{position:absolute;top:6px;bottom:6px;left:0;width:0;z-index:0;background:var(--accent);
    border-radius:999px;box-shadow:inset 0 1px 0 rgba(255,255,255,.4),0 1px 2px rgba(0,0,0,.4);
    transition:transform var(--vt-dur-slow) var(--vt-ease-slide),width var(--vt-dur-slow) var(--vt-ease-slide)}
  .tabs button{position:relative;z-index:1;background:transparent;border:0;color:var(--muted);font-size:14px;
    font-weight:600;padding:8px 16px;border-radius:999px;cursor:pointer;white-space:nowrap}
  .tabs button.on{color:var(--vt-accent-ink)}
  .statbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:0 0 18px}
  .statbar .lbl{color:var(--muted);font-size:12px;text-transform:uppercase;letter-spacing:.06em;margin-right:2px}
  .statbar .quick{display:flex;gap:6px;flex-wrap:wrap}
  .statbar button{background:var(--panel2);border:1px solid var(--line);color:var(--muted);
    font-size:13px;font-weight:700;padding:7px 15px;border-radius:999px;cursor:pointer;transition:.15s;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.4),0 1px 2px rgba(0,0,0,.4)}
  .statbar button:hover{color:var(--fg)}
  .statbar button.on{background:var(--accent);border-color:var(--accent);color:#1a1208}
  .statbar button:active{transform:var(--vt-press)}
  /* "Other…" stat = a custom dropdown (date/language-picker style); the button shows the
     selected non-quick stat (replacing "Other…"); the menu opens to the RIGHT, overlapping it */
  .statpick{position:relative;display:inline-block}
  .statbtn{display:inline-flex;align-items:center;gap:8px;background:var(--panel2);border:1px solid var(--line);
    color:var(--muted);font-size:13px;font-weight:700;padding:7px 15px;border-radius:999px;cursor:pointer;line-height:1.2;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.4),0 1px 2px rgba(0,0,0,.4);transition:.15s}
  .statbtn:hover{color:var(--text)}
  .statbtn.on{background:var(--accent);border-color:var(--accent);color:#1a1208}
  .statbtn .dchev{font-size:11px;transition:transform .18s}
  .statbtn[aria-expanded="true"] .dchev{transform:rotate(180deg)}
  .statmenu{position:absolute;left:calc(100% + 10px);top:0;z-index:46;width:226px;max-width:74vw;
    max-height:min(360px,60vh);overflow-y:auto;background:var(--panel);border:1px solid var(--line);
    border-radius:14px;box-shadow:0 18px 50px rgba(0,0,0,.5);padding:6px}
  .statmenu[hidden]{display:none}
  .statmenu .sgrp{color:var(--muted);font-size:9.5px;font-weight:800;text-transform:uppercase;letter-spacing:.06em;padding:7px 9px 3px}
  .statmenu .sopt{padding:7px 10px;border-radius:8px;cursor:pointer;font-size:13px;font-weight:600;transition:background .12s}
  .statmenu .sopt:hover{background:var(--panel2)}
  .statmenu .sopt.on{background:linear-gradient(90deg,rgba(240,136,62,.16),transparent);box-shadow:inset 2px 0 0 var(--accent);color:var(--accent)}
  #view-season .controls{margin-top:24px}   /* breathing room under the scatter */
  #view-season .controls{margin-top:24px}   /* breathing room under the scatter */
  /* projections grid: TWO columns of categories; the Scoring group (with shooting) spans both */
  .mstats{display:grid;grid-template-columns:1fr 1fr;gap:10px 12px;align-items:start}
  .msgroup{min-width:0}
  .msgroup.scoring{grid-column:1/-1}
  @media(max-width:520px){.mstats{grid-template-columns:1fr}}
  /* category title = a team-secondary pill (colour set inline, same as the card header) */
  .msglab{display:inline-block;font:800 9.5px/1 var(--vt-font-display);text-transform:uppercase;letter-spacing:.05em;
    padding:4px 11px;border-radius:999px;margin:0 0 7px;box-shadow:inset 0 1px 0 rgba(255,255,255,.4),0 1px 2px rgba(0,0,0,.4)}
  .msrow{display:grid;grid-template-columns:repeat(auto-fit,minmax(62px,1fr));gap:7px}
  .ms{background:var(--panel2);border:1px solid var(--line);border-radius:10px;padding:8px 6px;
    text-align:center;cursor:pointer;transition:.15s}
  .ms:hover{border-color:var(--muted)}
  /* selected stat: solid panel + accent ring (no glow) */
  .ms.on{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}
  .ms .lab{color:var(--muted);font-size:9.5px;text-transform:uppercase;letter-spacing:.03em}
  .ms .val{font-size:18px;font-weight:800;margin-top:1px}
  .ms.on .val{color:var(--accent)}
  .ms .rng{color:var(--muted);font-size:9.5px;margin-top:2px}
  .ms .act{margin-top:4px;padding-top:4px;border-top:1px solid var(--line);font-size:11px;font-weight:700;color:#cdd3df}
  .ms .act .al{color:var(--muted);font-weight:600;font-size:8px;text-transform:uppercase;letter-spacing:.04em;margin-right:4px}
  .act .d.up{color:#3fb950}
  .act .d.dn{color:#f85149}
  .s2.result{margin-top:4px;color:#dfe4ec;font-size:12.5px}
  .s2.result b{color:#fff}
  .controls{display:flex;gap:12px;align-items:center;margin:0 0 14px}
  input[type=search]{flex:1;min-width:200px}
  .count{color:var(--muted);font-size:13px;white-space:nowrap}
  /* avatars + chips */
  /* rounded-rectangle portrait (BR headshot is ~2:3) — shows the whole face,
     unlike the old circular crop that cut off heads / big hair */
  .avatar{position:relative;display:inline-flex;align-items:center;justify-content:center;
    width:34px;height:46px;border-radius:9px;overflow:hidden;flex:0 0 auto;
    font-size:13px;font-weight:700;color:#fff;border:1px solid rgba(255,255,255,.12);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.4),0 1px 2px rgba(0,0,0,.4)}
  .avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center top;background:#222}
  .avatar.lg{width:58px;height:78px;font-size:20px;border-radius:12px}
  .avatar.sm{width:28px;height:38px;font-size:11px;border-radius:7px}
  /* team pill — the signature .gtp style (solid team colour + top inset highlight + drop shadow) */
  .chip{display:inline-block;font:800 11px/1.1 var(--vt-font-display);letter-spacing:.03em;padding:3px 9px;
    border-radius:8px;box-shadow:inset 0 1px 0 rgba(255,255,255,.4),0 1px 2px rgba(0,0,0,.4)}
  /* game cards (auto-fit: several games tile; a single game is capped and LEFT-aligned) */
  .games{display:grid;grid-template-columns:repeat(auto-fit,minmax(460px,1fr));gap:16px}
  .games.single{display:block;max-width:680px}   /* left-aligned (no margin:auto) */
  /* flex column so the coloured player band stretches to fill a taller sibling card
     (fixes the shorter game's colours stopping short in a 2-up row) */
  .game{display:flex;flex-direction:column;background:var(--panel);border:1px solid var(--line);
    border-radius:16px;overflow:hidden;box-shadow:var(--shadow)}
  .game .gbody{position:relative;flex:1;display:flex;flex-direction:column}
  /* split header: each side solid in that team's SECONDARY colour (no fade); a PRIMARY-colour
     team pill on the outer edge, the big team name next to it, a vs badge sitting on the seam */
  /* header sits above the body and casts a shadow onto the colour band, marking the boundary.
     (selectors are un-scoped from .game so the game-totals modal can reuse the exact header.) */
  .ghead{position:relative;z-index:2;display:flex;align-items:stretch;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 5px 11px -3px rgba(0,0,0,.6),0 1px 0 rgba(0,0,0,.5)}
  .ghead .gt{flex:1;min-width:0;display:flex;align-items:center;gap:11px;padding:13px 16px;font-weight:800}
  .ghead .gt:first-child{padding-right:34px}   /* leave room for the centred vs badge */
  .ghead .gt.r{flex-direction:row-reverse;text-align:right;padding-left:34px;padding-right:16px}
  .ghead .gtp{flex:0 0 auto;font:800 12px/1 var(--vt-font-display);letter-spacing:.02em;padding:5px 9px;
    border-radius:8px;box-shadow:inset 0 1px 0 rgba(255,255,255,.4),0 1px 2px rgba(0,0,0,.4)}
  /* denser team name: Saira has no width axis, so compress horizontally (faux-condensed) */
  .ghead .gtn{flex:1 1 auto;min-width:0;font:800 20px/1.25 var(--vt-font-display);letter-spacing:0;
    text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-shadow:0 1px 1px rgba(0,0,0,.22);
    display:block;transform:scaleX(.84);transform-origin:left center}
  .ghead .gt.r .gtn{transform-origin:right center}
  /* the two secondary-colour sides meet at the centre; the vs badge floats on the seam (no grey gap) */
  .ghead .vs{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:2;
    display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:800;color:#fff;
    background:rgba(8,10,14,.82);padding:6px 12px;border-radius:20px;
    box-shadow:0 2px 7px rgba(0,0,0,.45),inset 0 1px 0 rgba(255,255,255,.14)}
  /* plain team-primary colour columns (set inline); flex so they fill the stretched card height,
     with room at top for the floating totals pill (gap to players ≈ gap to the header) */
  .teamcols{display:grid;grid-template-columns:1fr 1fr;flex:1}
  .teamcols .col{padding:46px 8px 9px;min-width:0;display:flex;flex-direction:column;gap:6px}
  .teamcols .col+.col{border-left:1px solid rgba(0,0,0,.25)}
  /* each player row is a protective panel box so it stays readable over the plain colour band */
  .prow{display:flex;align-items:center;gap:9px;padding:7px 9px;border-radius:10px;cursor:pointer;
    background:var(--panel);border:1px solid var(--line);box-shadow:0 1px 3px rgba(0,0,0,.32);
    transition:border-color .14s,box-shadow .14s}
  .prow:hover{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent),0 1px 3px rgba(0,0,0,.32)}
  /* games row as a GRID: [avatar] [name+PTS] [stats]. Grid cells can't overlap, so the PTS — in
     its own min-56px column — always stays fully visible no matter how narrow the card gets. */
  .gprow{display:grid;grid-template-columns:auto minmax(56px,1fr) auto;gap:9px;align-items:center}
  .gprow .gname{min-width:0;overflow:hidden}
  .gprow .gname .n{font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .gprow .gname .s1{font-size:16px;font-weight:800;color:var(--accent);line-height:1.1;margin-top:1px;
    white-space:nowrap;font-variant-numeric:tabular-nums;font-family:var(--vt-font-display)}
  .gprow .gname .s1 b{font-size:9px;font-weight:600;opacity:.6;margin-left:2px;text-transform:uppercase}
  .gprow .gstats{flex:0 0 auto;display:grid;grid-template-columns:auto auto;gap:3px;
    font-family:var(--vt-font-display)}
  /* each minor stat in its own compact "sticker box" */
  .gprow .gstats span{font-variant-numeric:tabular-nums;white-space:nowrap;font-size:11px;font-weight:700;color:#cdd3df;
    background:var(--panel2);border:1px solid var(--line);border-radius:6px;padding:2px 6px;text-align:right}
  .gprow .gstats b{font-weight:600;font-size:.76em;color:var(--muted);margin-left:3px;text-transform:uppercase}
  /* projected-team-totals trigger: a floating pill over the colour band (like the "@" badge),
     flanked by long fading lines that extend OUTSIDE the pill toward the card edges */
  .gtotals{position:absolute;top:9px;left:50%;transform:translateX(-50%);z-index:3;
    display:inline-flex;align-items:center;width:auto;white-space:nowrap;
    background:rgba(8,10,14,.82);border:1px solid rgba(255,255,255,.14);color:#cdd3df;
    border-radius:20px;padding:5px 16px;font-size:11px;font-weight:700;cursor:pointer;
    box-shadow:0 2px 8px rgba(0,0,0,.45),inset 0 1px 0 rgba(255,255,255,.14);
    transition:color .14s,border-color .14s}
  .gtotals:hover{color:#fff;border-color:rgba(255,255,255,.32)}
  .gtotals::before,.gtotals::after{content:"";position:absolute;top:50%;height:1px;width:78px}
  .gtotals::before{right:100%;margin-right:12px;background:linear-gradient(90deg,transparent,rgba(255,255,255,.55))}
  .gtotals::after{left:100%;margin-left:12px;background:linear-gradient(90deg,rgba(255,255,255,.55),transparent)}
  /* game-totals modal — reuses the game-window split header (.ghead). */
  .gmsheet .ghead{border-radius:20px 20px 0 0;overflow:hidden}
  .gmsheet .pbody{border-radius:0 0 20px 20px}
  /* thin bar housing the close button, placed above the coloured split header */
  .gm-closebar{display:flex;justify-content:flex-end;padding:6px 8px 4px;flex-shrink:0}
  .gmsect{display:flex;align-items:center;gap:7px}
  .gmhead{flex:1;display:flex;align-items:center;justify-content:center;gap:16px;font-weight:800}
  .gmteam{display:flex;align-items:center;gap:8px}
  .gmnick{font-size:16px;color:#fff}
  .gmvs{color:#fff;opacity:.85;font-size:12px;font-weight:700}
  .gmlead{background:var(--panel2);border:1px solid var(--line);border-radius:10px;padding:9px 13px;
    font-size:13px;color:#cdd3df;margin:2px 0 14px}
  .gmlead b{color:var(--accent)}
  .gmtotals{display:flex;flex-direction:column;gap:5px;margin-bottom:6px}
  .gmrow{display:grid;grid-template-columns:1fr 86px 1fr;align-items:center;
    padding:8px 12px;background:var(--panel2);border:1px solid var(--line);border-radius:10px}
  .gmrow .gv{font-size:17px;font-weight:800;color:#cdd3df;font-variant-numeric:tabular-nums}
  .gmrow .gv:first-child{text-align:right}.gmrow .gv:last-child{text-align:left}
  .gmrow .gl{color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.04em;text-align:center}
  .gmtops{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:6px}
  .gmp{display:flex;align-items:center;gap:8px;padding:6px;border-radius:9px;cursor:pointer;transition:background .12s}
  .gmp:hover{background:var(--panel2)}
  .gmpn{flex:1;min-width:0;font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .gmpp{font-weight:800;color:var(--accent);font-variant-numeric:tabular-nums}
  @media(max-width:560px){.gmtops{grid-template-columns:1fr}}
  /* leaderboard */
  .card{background:var(--panel);border:1px solid var(--line);border-radius:14px;overflow:clip;box-shadow:var(--shadow)}
  table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}
  th,td{padding:10px 14px;text-align:left}
  thead th{position:sticky;top:var(--hdr);z-index:5;background:var(--panel2);color:var(--muted);font-size:11px;font-weight:700;
    text-transform:uppercase;letter-spacing:.05em;cursor:pointer;user-select:none;white-space:nowrap;
    border-bottom:1px solid var(--line)}
  thead th.num{text-align:right}
  /* Board + Season: INTERNAL vertical scroll (operator: scroll AND pages) — the header sticks to the TOP
     of the scroll box so it sits flush on the table. Team Stats also scrolls (its columns can be wide). */
  #view-board .tscroll,#view-season .tscroll{max-height:min(620px,70vh);overflow:auto}
  #view-board thead th,#view-season thead th{position:sticky;top:0;z-index:5}
  #view-teams .tscroll{max-width:100%;max-height:min(620px,68vh);overflow:auto}
  #view-teams thead th{position:sticky;top:0;z-index:5}
  /* align numeric column headers to their (centred) values */
  #view-season thead th.num,#view-teams thead th.num{text-align:center}
  #view-season td.num{text-align:center}
  /* board + season cards hug their content (no empty space); Team Stats stays full-width and scrolls
     horizontally inside (13 columns are naturally wider than the viewport) */
  #view-board .card.board,#view-season .card{width:max-content;max-width:100%}
  #view-teams .card{max-width:100%}
  td.num{text-align:right;font-size:14px;font-variant-numeric:tabular-nums}
  thead th .ar{opacity:.6;font-size:9px;margin-left:3px}
  tbody tr{cursor:pointer}
  td.match{color:var(--muted);font-size:13px;white-space:nowrap}
  td.proj{text-align:right;font-size:18px;font-weight:800;color:var(--accent);width:62px}
  td.range{width:280px}
  /* ---- Leaderboard + Season Leaders + Team Stats: VIVID full team-colour RECTANGULAR rows that fill the
     whole row width. Colour rides on the CELLS (via --rowc on the <tr>); rows touch (no gaps) and are
     separated by ONE crisp 1px line — no blurred inset shadow, so there are no faint vertical seams
     between columns. The hover (further below) is a PILL around the row content, NOT an outline. ---- */
  #view-board table,#view-season table{width:max-content;border-collapse:separate;border-spacing:0}
  #view-teams table{width:100%;border-collapse:separate;border-spacing:0}   /* fill the body width — no empty gap right of the last column */
  #view-board td,#view-season td,#view-teams td{padding:9px 10px;background:var(--rowc);
    vertical-align:middle;border-bottom:1px solid rgba(0,0,0,.34)}
  #view-board td.who,#view-season td.who{min-width:0;white-space:nowrap}
  #view-board td.range{width:262px}
  /* rank and star are TWO SEPARATE bubbles in the first cell (max-content table → columns already
     hug their content, so NO width:1% trick — it mis-distributes width in a max-content table) */
  .rkcell{white-space:nowrap}
  .pinpill,.rkpill{display:inline-flex;align-items:center;justify-content:center;background:#0e1219;
    border:1px solid rgba(255,255,255,.16);border-radius:999px;box-shadow:inset 0 1px 0 rgba(255,255,255,.07)}
  .pinpill{padding:2px 6px;margin-right:6px}
  .rkpill{padding:3px 10px;min-width:26px}
  .rkpill .rk{font:800 12px/1 var(--vt-font-display);color:#cdd3df;font-variant-numeric:tabular-nums}
  .pinpill .pin{font-size:13px;padding:0;line-height:1}
  /* the rank column header is not a sort control (no pointer) */
  .rkhdr,#teamsTable thead th.rkhdr{cursor:default}
  #view-teams td.rank,#view-teams th.rkhdr{width:46px;min-width:46px;white-space:nowrap;text-align:center}
  /* team name + player name on one baseline */
  #view-board td.who .npill,#view-season td.who .npill,#view-season td.who .teamtag{vertical-align:middle}
  /* player name pill — team SECONDARY (stands out from the vivid primary row) */
  .npill{display:inline-block;max-width:100%;font:800 12px/1.2 var(--vt-font-display);padding:3px 11px;
    border-radius:999px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.4),0 1px 2px rgba(0,0,0,.4)}
  /* solid dark "bubble" — readable on any row colour */
  .tpill{display:inline-flex;align-items:center;justify-content:center;gap:6px;background:#0e1219;
    border:1px solid rgba(255,255,255,.16);border-radius:999px;padding:3px 10px;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.07);white-space:nowrap}
  .teamtag{display:inline-block;padding:3px 9px;font:800 10.5px/1 var(--vt-font-display);letter-spacing:.03em;
    border-radius:999px;box-shadow:inset 0 1px 0 rgba(255,255,255,.4),0 1px 2px rgba(0,0,0,.4)}
  td.match .tpill .vsopp{color:#cdd3df;font-size:12.5px}
  td.proj .tpill{font:800 16px/1 var(--vt-font-display);color:var(--accent);font-variant-numeric:tabular-nums;padding:5px 12px}
  td.range .tpill{display:block;width:100%;padding:8px 12px 6px;border-radius:13px}
  /* team-stats numbers centred in their bubbles; team name column centred too */
  #view-teams td.num{text-align:center}
  #view-teams td.num .tpill{padding:3px 9px;font-variant-numeric:tabular-nums;min-width:48px}
  #view-teams td.tm{text-align:center}
  #view-teams td.tm .npill{vertical-align:middle}
  #view-teams th[data-tk="team"]{text-align:center}
  /* rank bubble matches the other value bubbles' height so the first cell is the full row height */
  #view-teams td.rank .tpill{padding:3px 9px;min-width:30px;font:800 14px/21px var(--vt-font-display)}
  /* range bar: a neutral P10–P90 band with P10/P90 end-caps and a ringed P50 dot */
  .bar{position:relative;height:8px;background:var(--track);border-radius:999px}
  /* translucent team-coloured P10–P90 band (fill+border set inline) */
  .bar .iqr{position:absolute;top:0;bottom:0;border-radius:999px;border:1px solid;box-sizing:border-box;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.4),0 1px 2px rgba(0,0,0,.4)}
  .bar .zero{position:absolute;top:-3px;bottom:-3px;width:1px;background:#6b7280;opacity:.7;z-index:1}
  /* P50 marker = the brand point mark (downward triangle): white fill, team-colour stroke */
  .bar .p50{position:absolute;top:50%;width:12px;height:9px;margin-left:-6px;z-index:2;
    transform:translateY(-50%);overflow:visible;filter:drop-shadow(0 1px 2px rgba(0,0,0,.55))}
  /* P10/P50/P90 values, each positioned UNDER its marker (not fixed) */
  .rlab{position:relative;height:13px;margin-top:7px;font-variant-numeric:tabular-nums}
  .rlab .q{position:absolute;transform:translateX(-50%);font-size:10.5px;color:#aab2c0;white-space:nowrap}
  .rlab .q.mid{color:#fff;font-weight:700}
  /* leaderboard controls: compact toggle, pin-to-compare, pagination */
  .densebtn{background:var(--panel2);border:1px solid var(--line);color:var(--muted);border-radius:9px;
    padding:9px 14px;font-size:13px;font-weight:600;cursor:pointer;white-space:nowrap;transition:.15s}
  .densebtn:hover{color:var(--text);border-color:var(--accent2)}
  .densebtn.on{background:var(--accent);border-color:var(--accent);color:#1a1208}
  th.pincol,td.pincol{width:26px;padding-left:10px;padding-right:0}
  .pin{background:none;border:0;color:#48516a;font-size:15px;cursor:pointer;line-height:1;padding:2px;
    transition:color .12s,transform .1s}
  /* the star highlights only when the STAR itself is hovered — not on row hover */
  .pin.on,.pin:hover{color:var(--accent)}
  .pin:active{transform:scale(.85)}
  tr.pinned{background:linear-gradient(90deg,rgba(240,136,62,.07),transparent)}
  .grouphdr td{background:var(--panel2);color:var(--muted);font-size:10px;font-weight:700;
    text-transform:uppercase;letter-spacing:.06em;padding:6px 14px}
  .grouphdr td .clearpins{float:right;color:var(--accent2);cursor:pointer;text-transform:none;letter-spacing:0;font-size:11px}
  .pager{display:flex;align-items:center;justify-content:center;gap:14px;padding:14px;
    color:var(--muted);font-size:13px;border-top:1px solid var(--line)}
  .pager[hidden]{display:none}
  .pager button{background:var(--panel2);border:1px solid var(--line);color:var(--text);border-radius:9px;
    padding:7px 14px;font-size:13px;font-weight:600;cursor:pointer;transition:.15s}
  .pager button:hover:not(:disabled){border-color:var(--accent2)}
  .pager button:disabled{opacity:.4;cursor:not-allowed}
  /* season-leaders model-bias insight strip */
  .biaswrap{margin:16px 0 2px}
  .biashead{color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.05em;font-weight:700;margin:0 0 9px}
  .biashead b{color:var(--text)}
  .biasrow{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
  .biascell{background:linear-gradient(180deg,var(--panel2),var(--panel));border:1px solid var(--line);
    border-radius:12px;padding:11px 12px;text-align:center}
  .biascell.tot{border-color:var(--accent2)}
  .biascell .l{color:var(--muted);font-size:10.5px;text-transform:uppercase;letter-spacing:.04em}
  .biascell .v{font-size:21px;font-weight:800;margin-top:3px}
  .biascell .r{color:var(--muted);font-size:10px;margin-top:3px}
  .biascap{color:var(--muted);font-size:11.5px;margin:9px 2px 0;line-height:1.5}
  @media(max-width:560px){.biasrow{grid-template-columns:repeat(2,1fr)}}
  /* segmented toggle (e.g. Season Leaders "Compare vs") */
  .seg{display:inline-flex;align-items:center;gap:3px;background:var(--panel2);border:1px solid var(--line);
    border-radius:10px;padding:4px}
  .seg[hidden]{display:none}
  .seg .seglbl{color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.05em;font-weight:700;padding:0 7px}
  .seg button{background:transparent;border:0;color:var(--muted);font-size:12.5px;font-weight:600;
    padding:6px 12px;border-radius:7px;cursor:pointer;transition:background .15s,color .15s}
  .seg button:hover{color:var(--text)}
  .seg button.on{background:var(--accent);color:#1a1208}
  /* compact density mode (season leaders only — the leaderboard is compact by default now) */
  #view-season.compact th[data-sk="vol"],#view-season.compact td.vol,
  #view-season.compact th[data-sk="mae"],#view-season.compact td.maec,
  #view-season.compact th[data-sk="bias"],#view-season.compact td.biasc{display:none}
  #view-season.compact .avatar{width:24px;height:32px;font-size:10px;border-radius:6px}
  #view-season.compact th,#view-season.compact td{padding:6px 12px}
  /* charts */
  .charts{display:grid;grid-template-columns:1fr 1fr;gap:16px}
  .chartbox{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:16px;box-shadow:var(--shadow)}
  .chartbox h3{margin:0 0 12px;font-size:15px}
  .chartbox h3 .infodot{vertical-align:middle;margin-left:5px}
  .chartbox h3 .infodot .tip{font-weight:400;width:280px;text-transform:none;letter-spacing:normal}
  .chartbox p{margin:0 0 12px;color:var(--muted);font-size:12px}
  .chartbox .cwrap{position:relative;height:420px}
  .chartbox.tall .cwrap{height:520px}
  /* power rankings */
  .powerwrap{display:grid;grid-template-columns:minmax(320px,420px) 1fr;gap:16px;height:600px}
  .powerwrap>.card,.powerchart{display:flex;flex-direction:column;min-height:0}
  .ranks{flex:1;overflow-y:auto;min-height:0}
  .powerchart .cwrap{flex:1;height:auto}
  /* real column headers above the ranking values (also the sort controls) */
  .rankhdr{display:grid;grid-template-columns:24px 4px 1fr 50px 52px 56px 60px;align-items:center;gap:10px;
    padding:11px 14px;border-bottom:1px solid var(--line);color:var(--muted);font-size:10.5px;
    font-weight:700;text-transform:uppercase;letter-spacing:.05em}
  .rankhdr .rec,.rankhdr .pct,.rankhdr .elo,.rankhdr .chg{text-align:center}
  .rankhdr .sortable{cursor:pointer;user-select:none;white-space:nowrap;transition:color .15s}
  .rankhdr .sortable:hover{color:var(--text)}
  .rankhdr .sortable.on{color:var(--accent)}
  .rankhdr .ar{font-size:8px;margin-left:3px;opacity:.9}
  .rank{display:grid;grid-template-columns:24px 4px 1fr 50px 52px 56px 60px;align-items:center;gap:10px;
    padding:9px 14px;border-bottom:1px solid var(--line);cursor:pointer}
  .rank:hover{background:var(--panel2)}
  .rank.sel{background:linear-gradient(90deg,var(--panel2),transparent)}
  .rank.sel .rk{color:var(--accent)}
  .rank .rk{color:var(--muted);font-size:13px;font-weight:700;text-align:left;font-variant-numeric:tabular-nums}
  .rank .bar{width:4px;height:26px;border-radius:3px}
  .rank .tm{font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .rank .tm em{color:var(--muted);font-style:normal;font-weight:500;font-size:11px;margin-left:5px}
  .rank .rec{color:var(--muted);font-size:12.5px;font-variant-numeric:tabular-nums;text-align:center}
  .rank .pct{color:var(--muted);font-size:12.5px;font-variant-numeric:tabular-nums;text-align:center}
  .rank .elo{font-size:15px;font-weight:700;text-align:center;font-variant-numeric:tabular-nums}
  .rank .chg{font-size:11.5px;font-weight:600;text-align:center;font-variant-numeric:tabular-nums}
  @media(max-width:840px){.powerwrap{grid-template-columns:1fr;height:auto}
    .ranks{max-height:440px}.powerchart{height:460px}}
  /* team stats */
  #view-teams .chartbox{margin-bottom:16px}
  #teamsTable thead th{cursor:pointer;user-select:none;white-space:nowrap}
  #teamsTable thead th.on{color:var(--accent)}
  #teamsTable tbody tr{cursor:default}
  #teamsTable td.tm{font-weight:600;white-space:nowrap}
  #teamsTable td.tm em{color:var(--muted);font-style:normal;font-weight:500;font-size:11px;margin-left:5px}
  #teamsTable .bar{display:inline-block;width:4px;height:18px;border-radius:3px;margin-right:9px;vertical-align:-4px}
  /* 3-colour heat: neutral (default) · green good · red bad — with the EXTREMES (|z|≥1.1) bold */
  .tg{color:#3fb950}.tg.s{font-weight:800}
  .tb{color:#f85149}.tb.s{font-weight:800}
  @media(max-width:980px){#teamsTable th.opt,#teamsTable td.opt{display:none}
    #teamsTable td.tm em{display:none}}
  /* modal */
  /* card has a FIXED viewport-capped height: header pinned, body scrolls inside it
     (operator: no outer page scroll — keep the card a self-contained panel) */
  .modal{position:fixed;inset:0;background:rgba(4,6,10,.74);backdrop-filter:blur(3px);display:none;
    align-items:center;justify-content:center;z-index:50;padding:16px;overflow:hidden}
  .modal.on{display:flex}
  /* dvh (dynamic viewport height) so the card fits Safari, whose 100vh excludes the URL bar
     and let the card overflow the visible window */
  .sheet{background:var(--panel);border:1px solid var(--line);border-radius:20px;max-width:580px;width:100%;
    max-height:calc(100dvh - 32px);display:flex;flex-direction:column;
    box-shadow:0 24px 60px rgba(0,0,0,.5);overflow:hidden;animation:pop .22s cubic-bezier(.2,.9,.3,1.2)}
  @keyframes pop{from{opacity:0;transform:translateY(12px) scale(.97)}to{opacity:1;transform:none}}
  .pchead{position:relative;flex:0 0 auto;display:flex;align-items:center;gap:16px;padding:20px 22px 18px;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.14)}
  .pchead::after{content:"";position:absolute;inset:0;opacity:.5;z-index:0;
    -webkit-mask:linear-gradient(180deg,#000,transparent);mask:linear-gradient(180deg,#000,transparent)}
  .pchead>*{position:relative;z-index:1}
  .pchead .meta{flex:1;min-width:0}
  .pchead .n{font-size:23px;font-weight:800;letter-spacing:-.02em}
  .pchead .s{color:#dfe4ec;font-size:13px;margin-top:3px;display:flex;align-items:center;gap:7px;flex-wrap:wrap}
  .pchead .s2{color:var(--muted);font-size:12px;margin-top:2px}
  .close{background:rgba(0,0,0,.3);border:1px solid rgba(255,255,255,.16);color:#fff;width:32px;height:32px;
    border-radius:9px;cursor:pointer;font-size:17px;line-height:1;align-self:flex-start}
  .pbody{padding:4px 22px 22px;flex:1 1 auto;min-height:0;overflow-y:auto}
  /* the body now carries the plain team primary colour — keep loose labels legible on it */
  .pbody>.sectlab{color:#fff;opacity:.92;text-shadow:0 1px 2px rgba(0,0,0,.45)}
  /* player-card section header — its own boxed bar (Projections / Season averages) */
  .pbody .psect{display:flex;align-items:center;justify-content:center;font:800 12px/1 var(--vt-font-display);color:#fff;
    text-transform:uppercase;letter-spacing:.06em;margin:0 0 10px;padding:8px 13px;border-radius:9px;
    background:rgba(0,0,0,.34);border:1px solid rgba(255,255,255,.14);box-shadow:inset 0 1px 0 rgba(255,255,255,.08)}
  .pbody .psect.gap{margin-top:16px}   /* clear gap between projections and season averages */
  /* season averages — compact, tabular (deliberately different from the projection boxes) */
  .savg{display:flex;flex-wrap:wrap;gap:6px}
  .savg span{display:inline-flex;align-items:baseline;gap:5px;background:var(--panel2);border:1px solid var(--line);
    border-radius:8px;padding:4px 10px;font:700 13px/1 var(--vt-font-display);font-variant-numeric:tabular-nums}
  .savg span i{font-style:normal;color:var(--muted);font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}
  .savg .vsmeet{border-color:var(--accent2)}
  .savg .vsmeet i{color:var(--accent2)}
  /* self-hosted flag icon for birthplace — team-pill 3D treatment (gloss + drop shadow, no outline);
     country name on hover via title. Wrapped span so the inset gloss paints OVER the image. */
  .flagic{position:relative;display:inline-block;width:22px;height:16px;border-radius:3px;overflow:hidden;
    vertical-align:-3px;box-shadow:0 1px 2px rgba(0,0,0,.45)}
  .flagic img{display:block;width:100%;height:100%;object-fit:cover}
  .flagic::after{content:"";position:absolute;inset:0;border-radius:3px;pointer-events:none;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.6),inset 0 -2px 3px rgba(0,0,0,.28)}
  /* shooting splits — Made / Att / % per shot type, now a 2-col grid (compact, fits the column
     layout). margin-top keeps a clear gap between the scoring/points boxes and the FG boxes. */
  .shoot{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:12px}
  @media(max-width:520px){.shoot{grid-template-columns:1fr}}
  .shrow{display:grid;grid-template-columns:40px 1fr auto;align-items:center;gap:10px;
    background:var(--panel2);border:1px solid var(--line);border-radius:10px;padding:6px 12px}
  .shrow .shtype{font:800 13px/1 var(--vt-font-display);color:#cfd5e0}
  .shrow .shma{display:flex;align-items:center;gap:5px;font-variant-numeric:tabular-nums}
  .shrow .shv{font-size:16px;font-weight:800;cursor:pointer;padding:1px 7px;border-radius:6px;
    border:1px solid transparent;transition:.12s}
  .shrow .shv:hover{border-color:var(--muted)}
  .shrow .shv.on{color:var(--accent);border-color:var(--accent);
    background:linear-gradient(180deg,var(--accent)1f,transparent)}
  .shrow .shma i{color:var(--muted);font-style:normal;font-size:13px}
  .shrow .shma .lbl{color:var(--muted);font-size:9.5px;text-transform:uppercase;letter-spacing:.04em;margin-left:2px}
  .shrow .shpct{font-size:15px;font-weight:800;color:var(--accent2);font-variant-numeric:tabular-nums;
    min-width:52px;text-align:right}
  .shrow .shpct .pc{font-size:10px;color:var(--muted);font-weight:600;margin-left:1px}
  /* actual shooting line on played games (spans the full row width under the projection) */
  .shrow .shact{grid-column:1/-1;border-top:1px solid var(--line);margin-top:5px;padding-top:5px;
    font-size:12px;font-weight:700;color:#cdd3df;font-variant-numeric:tabular-nums}
  .shrow .shact .al{font-size:8px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);font-weight:600;margin-right:6px}
  .shrow .shact i{color:var(--muted);font-style:normal}
  .pbio{display:flex;flex-wrap:wrap;gap:7px;margin:2px 0 16px}
  .pbio .b{background:var(--panel2);border:1px solid var(--line);border-radius:7px;padding:4px 9px;
    font-size:12px;color:#cfd5e0;font-weight:600}
  /* bio chips now live INSIDE the header banner — translucent so they sit on the team gradient */
  .pchead .pbio{margin:8px 0 4px}
  .pchead .pbio .b{background:rgba(0,0,0,.30);border-color:rgba(255,255,255,.18);color:#eef1f6;
    font-size:11.5px;padding:3px 8px}
  /* the matchup ("Tonight · Home vs …") gets its own readable box, not washed-out header text */
  .pchead .pbio .b.match{background:rgba(0,0,0,.5);border-color:rgba(255,255,255,.3);color:#fff;font-weight:700}
  .qgrid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:0 0 14px}
  .qgrid .q{background:var(--panel2);border:1px solid var(--line);border-radius:11px;padding:10px;text-align:center}
  .qgrid .q .lab{color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.05em}
  .qgrid .q .val{font-size:20px;font-weight:800;margin-top:2px}
  .qgrid .q.hi{border-color:var(--accent)}
  .qgrid .q.hi .val{color:var(--accent)}
  .statstrip{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:0 0 16px}
  .statstrip .stat{background:linear-gradient(180deg,var(--panel2),var(--panel));border:1px solid var(--line);
    border-radius:11px;padding:11px 8px;text-align:center}
  .statstrip .stat .v{font-size:19px;font-weight:800}
  .statstrip .stat .l{color:var(--muted);font-size:10px;margin-top:2px;text-transform:uppercase;letter-spacing:.04em}
  .sectlab{font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.06em;font-weight:700;
    margin:14px 0 9px}
  /* last-10 chart sits in a panel box, matching the projection stat boxes */
  .l10box{background:var(--panel2);border:1px solid var(--line);border-radius:11px;padding:11px 13px 12px;margin-top:14px;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.05)}
  .l10box .l10head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:0 0 9px}
  .l10box .l10lab{margin:0}
  /* custom legend pills (the Chart.js legend was hard to read on some team colours) */
  .l10leg{display:flex;gap:6px;flex-wrap:wrap}
  .l10pill{display:inline-flex;align-items:center;gap:6px;background:var(--panel);border:1px solid var(--line);
    border-radius:999px;padding:3px 9px;font-size:10.5px;font-weight:700;color:#cdd3df;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.06)}
  .l10pill .sw{width:13px;height:9px;border-radius:2px;flex:0 0 auto}
  .l10pill .sw.line{height:3px;border-radius:2px}
  .l10pill .sw.dash{height:0;width:14px;border-top:2px dashed #9aa3b2}
  .last10{position:relative;height:200px}
  .nohist{color:var(--muted);font-size:13px;padding:8px 0}
  .cap{color:var(--muted);font-size:11px;margin-top:6px}
  .empty{padding:56px 20px;text-align:center;color:var(--muted)}
  footer{color:var(--muted);font-size:12px;margin-top:26px;line-height:1.7;border-top:1px solid var(--line);padding-top:16px}
  footer code{background:var(--panel2);padding:1px 5px;border-radius:4px}
  .legend{display:inline-flex;align-items:center;gap:6px;margin-right:14px}
  .sw{width:22px;height:6px;border-radius:4px;display:inline-block;
    background:linear-gradient(90deg,#48516580,#8893a6)}
  .tick{display:inline-block;width:12px;height:9px;background:#fff;
    clip-path:polygon(0 0,100% 0,50% 100%);vertical-align:middle}
  .fmeta{margin-top:10px;color:#6b7384;font-size:11px}
  .capleg{display:inline-block;width:2px;height:12px;background:var(--muted);border-radius:1px;vertical-align:middle}
  @media(max-width:840px){.games,.charts{grid-template-columns:1fr}}
  /* phones: stack a game's two teams, and drop the wide range column from the table */
  @media(max-width:560px){
    .wrap{padding:18px 12px 86px}
    .summary{grid-template-columns:1fr}
    .games{grid-template-columns:1fr}
    .teamcols{grid-template-columns:1fr}
    .teamcols .col+.col{border-left:0;border-top:1px solid var(--line)}
    td.range,thead th[data-k="p50"]{display:none}
    td.who{min-width:0}
    td.match .vsopp{display:none}
    #teamsTable th[data-tk="pace"],#teamsTable td.c-pace{display:none}
    th,td{padding:9px 10px}
    .qgrid,.statstrip{grid-template-columns:repeat(2,1fr)}
    /* topbar: less padding, smaller brand */
    .topin{padding:8px 12px;gap:8px 14px}
    .brand .mk{width:38px}
    .brand h1{font-size:14px}
    /* hide date label — redundant next to the date value on small screens */
    .slatedate .dlab{display:none}
    /* shrink Ko-fi button so the top bar stays single-line */
    .kofi-btn{width:28px;height:28px}
    .kofi-btn svg{width:14px;height:14px}
    /* dropdowns: open below instead of to the right */
    .datemenu,.statmenu{left:0;right:auto;top:calc(100% + 8px);max-width:calc(100vw - 24px)}
    /* stat bar: horizontal scroll so pills never wrap onto two lines */
    .statbar{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;padding-bottom:2px}
    .statbar::-webkit-scrollbar{height:0}
    /* player card modal: tighter header on small screens */
    .pchead{padding:14px 16px 12px;gap:11px}
    .pchead .n{font-size:19px}
    /* hide full username and chevron in topbar — show avatar initial only */
    .username{display:none}
    #authGuest .dchev{display:none}
    /* bottom tab bar: wider side padding so first/last tab feel inset */
    .tabs{padding:5px 10px}
    .tabs button{padding:7px 13px;font-size:13px}
    /* summary: keep 2-col grid on phones */
    .summary{grid-template-columns:repeat(2,1fr)}
  }
  /* auth entry (topbar) */
  .auth{display:flex;align-items:center;gap:8px}
  /* language selector — custom dropdown (date-picker style): flag + code trigger, a 4×2 grid below */
  .langpick{position:relative}
  .langbtn{display:flex;align-items:center;gap:8px;background:var(--panel2);border:1px solid var(--line);
    border-radius:11px;padding:6px 11px;cursor:pointer;color:var(--text);transition:border-color .15s}
  .langbtn:hover{border-color:var(--accent2)}
  /* flag carries the team-pill 3D treatment (inset top sheen + drop shadow), no outline */
  .langbtn .langflag{width:22px;height:16px;border-radius:3px;object-fit:cover;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.55),0 1px 2px rgba(0,0,0,.45)}
  .langbtn .langcode{font:800 13px/1 var(--vt-font-display);letter-spacing:.02em}
  .langbtn .dchev{color:var(--accent2);font-size:14px;transition:transform .18s;margin-left:-1px}
  .langbtn[aria-expanded="true"] .dchev{transform:rotate(180deg)}
  .langmenu{position:absolute;right:0;top:calc(100% + 8px);z-index:46;
    display:grid;grid-template-columns:repeat(4,1fr);gap:5px;padding:8px;
    background:var(--panel);border:1px solid var(--line);border-radius:13px;box-shadow:0 18px 50px rgba(0,0,0,.5)}
  .langmenu[hidden]{display:none}
  .langopt{display:flex;flex-direction:column;align-items:center;gap:5px;padding:7px 9px;border-radius:9px;
    cursor:pointer;transition:background .12s;min-width:54px}
  .langopt:hover{background:var(--panel2)}
  .langopt.on{background:linear-gradient(180deg,rgba(240,136,62,.18),transparent);box-shadow:inset 0 0 0 1px var(--accent)}
  .langopt img{width:27px;height:20px;border-radius:3px;object-fit:cover;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.55),0 1px 2px rgba(0,0,0,.45)}
  .langopt .lc{font:800 10px/1 var(--vt-font-display);color:var(--muted);letter-spacing:.04em}
  .langopt.on .lc{color:var(--accent)}
  @media(max-width:560px){.langpick{display:none}}
  /* auth buttons use the .gtp pill recipe (top inset highlight + drop shadow) */
  .authbtn{display:inline-flex;align-items:center;gap:6px;text-decoration:none;border-radius:999px;
    padding:8px 16px;font-size:13px;font-weight:700;cursor:pointer;transition:.15s;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.4),0 1px 2px rgba(0,0,0,.4)}
  .authbtn.ghost{background:var(--panel2);color:var(--muted);border:1px solid var(--line)}
  .authbtn.ghost:hover{color:var(--text);border-color:var(--accent2)}
  .authbtn.solid{background:var(--accent);color:#1a1208;border:1px solid var(--accent)}
  .authbtn.solid:hover{filter:brightness(1.06)}
  .authbtn:active{transform:var(--vt-press)}
  /* selected/accent controls (Compact, P50/Projection segment, stat select, .cx) share the .gtp pill look */
  .densebtn.on,#statSel.on,.seg button.on,.cookie .cx,.cx{
    box-shadow:inset 0 1px 0 rgba(255,255,255,.4),0 1px 2px rgba(0,0,0,.4)}
  /* prediction disclaimer (legal — Q-001 two-tier: Tier-1 floor always visible,
     Tier-2 expansion collapsible after a one-time "I understand") */
  .disclaimer{background:transparent;border:1px solid var(--line);border-left:3px solid var(--accent);
    border-radius:10px;padding:7px 12px;margin:0 0 18px;color:var(--muted);font-size:12px;line-height:1.4}
  .disclaimer .dfloor{display:flex;align-items:center;gap:8px}
  .disclaimer .ic{flex:0 0 auto;width:16px;height:16px;border-radius:50%;border:1px solid var(--accent);
    color:var(--accent);display:inline-flex;align-items:center;justify-content:center;
    font:italic 700 10px/1 Georgia,serif}
  .disclaimer b{color:var(--text)}
  .disclaimer a{color:var(--accent2);text-decoration:none;white-space:nowrap}
  .disclaimer a:hover{text-decoration:underline}
  .disclaimer .dmore{display:flex;align-items:center;gap:14px;flex-wrap:wrap;
    margin-top:8px;padding-top:8px;border-top:1px solid var(--line)}
  .disclaimer .dmore.hide{display:none}
  .disclaimer .dmore p{margin:0;flex:1;min-width:240px}
  .disclaimer .dmore .cx{flex:0 0 auto;background:var(--accent);color:#1a1208;border:0;border-radius:9px;
    padding:7px 14px;font-size:12px;font-weight:700;cursor:pointer}
  .disclaimer .dmore .cx:hover{filter:brightness(1.06)}
  .disclaimer .dmore .cx:active{transform:var(--vt-press)}
  /* reusable (i) info popover — replaces always-on explanatory micro-copy. Pure CSS
     (hover + focus-within), keyboard-reachable, no third-party scripts. */
  .infodot{position:relative;display:inline-flex;flex:0 0 auto}
  .infodot>.i{width:18px;height:18px;border-radius:50%;border:1px solid var(--line);background:var(--panel2);
    color:var(--muted);font:italic 700 10px/1 Georgia,serif;display:inline-flex;align-items:center;
    justify-content:center;cursor:help;padding:0;transition:.15s}
  .infodot>.i:hover,.infodot>.i:focus-visible{color:var(--accent2);border-color:var(--accent2);outline:none}
  .infodot .tip{position:absolute;left:0;top:calc(100% + 7px);z-index:30;width:240px;
    background:var(--panel2);border:1px solid var(--line);border-radius:9px;padding:8px 11px;
    font:400 11.5px/1.45 var(--vt-font-ui);color:#cdd3df;box-shadow:0 10px 28px rgba(0,0,0,.5);
    opacity:0;visibility:hidden;transform:translateY(-3px);transition:.14s;pointer-events:none}
  .infodot .tip b{color:var(--text)}
  .infodot:hover .tip,.infodot:focus-within .tip{opacity:1;visibility:visible;transform:none}
  @media(max-width:560px){.infodot .tip{left:auto;right:0}}
  /* the search-box info tip sits near the right edge — open it inward so it never overflows the page */
  .controls .infodot .tip{left:auto;right:0}
  /* footer legal nav */
  .flinks{display:flex;flex-wrap:wrap;gap:6px 18px;margin:0 0 12px}
  .flinks a{color:var(--accent2);text-decoration:none;font-size:12px;font-weight:600}
  .flinks a:hover{text-decoration:underline}
  /* cookie notice banner (informational, one-time) */
  .cookie{position:fixed;left:50%;transform:translateX(-50%);bottom:90px;z-index:60;width:min(640px,calc(100% - 28px));
    display:none;align-items:center;gap:14px;background:var(--panel2);border:1px solid var(--line);
    border-radius:14px;padding:13px 16px;box-shadow:0 14px 44px rgba(0,0,0,.5);font-size:12.5px;color:var(--muted)}
  .cookie.on{display:flex;animation:cookieIn .3s ease}
  @keyframes cookieIn{from{opacity:0;transform:translate(-50%,12px)}to{opacity:1;transform:translate(-50%,0)}}
  .cookie b{color:var(--text)}
  .cookie a{color:var(--accent2);text-decoration:none}
  .cookie a:hover{text-decoration:underline}
  .cookie .cx{flex:0 0 auto;background:var(--accent);color:#1a1208;border:1px solid transparent;border-radius:9px;
    padding:8px 14px;font-size:12.5px;font-weight:700;cursor:pointer}
  .cookie .cx:hover{filter:brightness(1.06)}
  .cookie .cxrej{background:transparent;color:var(--muted);border-color:var(--line)}
  .cookie .cxrej:hover{color:var(--text);filter:none}
  @media(max-width:560px){.cookie{flex-direction:column;align-items:stretch;text-align:center}}
  /* ---------- motion & polish ---------- */
  /* interaction = calm HIGHLIGHT, no movement (no translate/scale on hover) */
  .scard[data-code]{cursor:pointer;
    transition:border-color .16s ease,box-shadow .16s ease,background-color .16s ease}
  .scard[data-code]:hover{
    border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}
  tbody tr,.rank{transition:background-color .14s ease,box-shadow .14s ease}
  /* row hover = the row BACKGROUND lights up: a translucent white wash layered over the team colour
     (behind the content). No outline, no pill. */
  #view-board tbody td,#view-season tbody td,#view-teams tbody td{transition:background-color .14s ease}
  #view-board tbody tr:hover>td,#view-season tbody tr:hover>td,#view-teams tbody tr:hover>td{
    background-image:linear-gradient(rgba(255,255,255,.15),rgba(255,255,255,.15))}
  .rank:hover{box-shadow:inset 2px 0 0 var(--accent)}
  .tabs button{transition:background .2s ease,color .2s ease}
  .statbar button,#statSel{transition:background .18s,border-color .18s,color .18s}
  .authbtn,.histbtn,.cx,.cookie .cx{transition:background .15s,border-color .15s,color .15s,filter .15s}
  @media (prefers-reduced-motion: no-preference){
    /* per-tab directional slide (direction set by switchTab via --sx) */
    @keyframes tabSlide{from{opacity:0;transform:translateX(var(--sx,24px))}to{opacity:1;transform:none}}
    /* one-time boot reveal of the page shell (body.boot removed by JS after it plays) */
    body.boot .top{animation:boot .5s ease both}
    body.boot .summary{animation:boot .5s ease .1s both}
    body.boot .disclaimer{animation:boot .5s ease .15s both}
    body.boot .statbar{animation:boot .5s ease .2s both}
    body.boot #view-games{animation:boot .55s ease .26s both}
    @keyframes boot{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
    /* modal backdrop fade (the sheet keeps its own pop animation) */
    .modal.on{animation:backdropIn .2s ease}
    @keyframes backdropIn{from{opacity:0}to{opacity:1}}
    /* slate picker dropdown */
    .datemenu:not([hidden]){animation:menuIn .16s ease}
    @keyframes menuIn{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
    /* summary cards re-pop when the slate/stat changes (renderSummary replaces them) */
    .summary .scard{animation:cardPop .3s ease both}
    .summary .scard:nth-child(2){animation-delay:.04s}
    .summary .scard:nth-child(3){animation-delay:.08s}
    @keyframes cardPop{from{opacity:0;transform:translateY(7px) scale(.985)}to{opacity:1;transform:none}}
  }
  /* ---- logged-in user menu ---- */
  #authGuest,#authUser{display:flex;align-items:center;gap:8px}
  #authGuest[hidden],#authUser[hidden]{display:none}
  #authUser{position:relative}
  .userbtn{display:flex;align-items:center;gap:8px;background:var(--panel2);border:1px solid var(--line);
    border-radius:999px;padding:5px 10px 5px 5px;cursor:pointer;color:var(--text);text-decoration:none;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.4),0 1px 2px rgba(0,0,0,.4);transition:border-color .15s}
  .userbtn:hover{border-color:var(--accent2)}
  .userbtn .dchev{color:var(--accent2);font-size:14px;transition:transform .18s}
  .userbtn[aria-expanded="true"] .dchev{transform:rotate(180deg)}
  .userinit{width:26px;height:26px;border-radius:50%;background:var(--accent);color:#1a1208;
    display:flex;align-items:center;justify-content:center;
    font:800 12px/1 var(--vt-font-display);flex:0 0 auto}
  .guestinit{background:var(--panel2);color:var(--muted);border:1px solid var(--line)}
  .username{font:700 13px/1 var(--vt-font-display);max-width:120px;
    overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .userdrop{position:absolute;right:0;top:calc(100% + 8px);z-index:46;min-width:156px;
    background:var(--panel);border:1px solid var(--line);border-radius:12px;
    box-shadow:0 14px 40px rgba(0,0,0,.5);padding:4px}
  .userdrop[hidden]{display:none}
  .uditem{display:block;width:100%;text-align:left;padding:8px 13px;border-radius:8px;
    font-size:13px;font-weight:600;color:var(--text);text-decoration:none;
    background:none;border:0;cursor:pointer;transition:background .12s;font-family:inherit}
  .uditem:hover{background:var(--panel2)}
  .udout{color:#f85149}

/* ---- Ko-fi header button ---- */
.kofi-btn{display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;
  background:var(--panel2);border:1px solid var(--line);color:var(--accent);flex-shrink:0;cursor:pointer;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04),0 1px 2px rgba(0,0,0,.4);
  transition:border-color .15s,box-shadow .15s,color .15s}
.kofi-btn:hover{border-color:var(--accent);box-shadow:inset 0 1px 0 rgba(255,255,255,.04),0 1px 2px rgba(0,0,0,.4),0 0 12px rgba(240,136,62,.28)}
/* ---- Ko-fi support drawer ---- */
.kofi-drawer-wrap{position:fixed;inset:0;z-index:150;display:flex;align-items:flex-end;justify-content:center;pointer-events:none}
.kofi-drawer-wrap.on{pointer-events:auto}
.kofi-overlay{position:absolute;inset:0;background:rgba(4,6,10,.72);opacity:0;transition:opacity .25s}
.kofi-drawer-wrap.on .kofi-overlay{opacity:1}
.kofi-drawer{position:relative;width:min(500px,100%);background:var(--vt-panel);border-radius:20px 20px 0 0;
  box-shadow:0 -12px 40px rgba(0,0,0,.55);transform:translateY(100%);
  transition:transform .3s cubic-bezier(.22,.75,.25,1);max-height:90dvh;display:flex;flex-direction:column}
.kofi-drawer-wrap.on .kofi-drawer{transform:none}
.kofi-dhead{display:flex;align-items:center;justify-content:space-between;padding:14px 16px 10px;flex-shrink:0;
  border-bottom:1px solid var(--vt-line)}
.kofi-dhead span{font:700 14px/1 var(--vt-font-display);color:var(--vt-text)}
.kofi-dclose{width:30px;height:30px;border-radius:8px;background:var(--vt-panel-2);border:1px solid var(--vt-line);
  color:var(--vt-muted);cursor:pointer;font-size:17px;line-height:1;display:flex;align-items:center;justify-content:center;
  transition:color .12s,border-color .12s}
.kofi-dclose:hover{color:var(--vt-text);border-color:var(--vt-muted)}
.kofi-drawer iframe{flex:1;border:0;min-height:520px}
