/* ===========================================================================
   Tokens. Light is the bare :root; dark is redefined twice — once for readers
   whose system is dark and who have made no explicit choice, once for the
   in-page toggle — so an explicit choice wins over the operating system in
   both directions. Every colour on this page comes from these names: nothing
   below relies on a browser default, which is what makes a forced dark mode
   turn text white on a white pill.
   =========================================================================== */
  :root{
    --bg: oklch(96.5% 0.006 250); --surface: oklch(100% 0 0); --surface-alt: oklch(95% 0.008 250);
    --border: oklch(88% 0.012 250); --text: oklch(18% 0.015 255); --text-muted: oklch(46% 0.02 255);
    --text-faint: oklch(50.5% 0.016 255); --accent: oklch(46% 0.16 255); --accent-hover: oklch(40% 0.16 255);
    --accent-soft: oklch(94% 0.03 255); --accent-ink: oklch(44% 0.16 255); --accent-2: #e0a500; --accent-2-soft: #fff1c2;
    --accent-2-ink: #7a5a00;
    --positive: oklch(56% 0.14 148); --positive-soft: oklch(95% 0.03 148); --positive-ink: oklch(47% 0.13 148); --negative: oklch(56% 0.19 25);
    --negative-soft: oklch(95% 0.04 25); --radius: 4px; --shadow: 0 1px 2px oklch(20% 0.02 255 / 0.06);
    --shadow-lg: 0 6px 20px oklch(20% 0.02 255 / 0.16);
    /* elevation is a system, not one value: a hairline for resting cards, a
       soft lift for anything interactive, a deep one for the dark stages */
    --shadow-2: 0 2px 6px oklch(20% 0.02 255/.06), 0 8px 28px oklch(20% 0.02 255/.07);
    --shadow-3: 0 18px 50px oklch(12% 0.02 255/.28);
    --hair: oklch(94% 0.007 255);
    --ink: oklch(16% 0.012 255); --ink-2: oklch(22% 0.014 255); --ink-line: oklch(30% 0.014 255);
    --ink-text-dim: oklch(68% 0.014 255);
    /* a selected pill, an avatar disc and a tooltip: dark plate, light type in
       the light theme, and the other way round in the dark one */
    --on-bg: oklch(16% 0.012 255); --on-fg: #fff;
    --avatar-bg: oklch(16% 0.012 255); --avatar-fg: #fff;
    /* the stage: obsidian in both themes, because it is a material, not a mode */
    --void: oklch(12.5% 0.018 262);
    --display: 'Archivo Narrow', 'Archivo', system-ui, sans-serif;
    --body: 'Archivo', system-ui, sans-serif;
    --mono: 'Archivo Narrow', 'Archivo', system-ui, sans-serif;
    color-scheme: light;
  }
  @media (prefers-color-scheme: dark){
    :root:not([data-theme="light"]){
      --bg: oklch(17% 0.012 255); --surface: oklch(21% 0.012 255); --surface-alt: oklch(25% 0.012 255);
      --border: oklch(32% 0.012 255); --text: oklch(95% 0.006 255); --text-muted: oklch(75% 0.012 255);
      --text-faint: oklch(71% 0.012 255);
      --accent: #4d93ea; --accent-hover: #6ba6ef; --accent-soft: oklch(30% 0.06 255);
    --accent-ink: oklch(82% 0.1 255);
      --accent-ink: oklch(82% 0.1 255);
      --accent-2: #f5bf2a; --accent-2-soft: #3a3214; --accent-2-ink: #ffd56a;
      --positive: oklch(70% 0.15 148); --positive-soft: oklch(30% 0.05 148); --positive-ink: oklch(78% 0.14 148);
      --negative: oklch(68% 0.17 25); --negative-soft: oklch(30% 0.06 25);
      --shadow: 0 1px 2px rgba(0,0,0,.45); --shadow-lg: 0 8px 24px rgba(0,0,0,.55);
    --shadow-2: 0 2px 8px rgba(0,0,0,.5); --shadow-3: 0 18px 50px rgba(0,0,0,.6);
    --hair: oklch(25.5% 0.013 255);
      --shadow-2: 0 2px 8px rgba(0,0,0,.5); --shadow-3: 0 18px 50px rgba(0,0,0,.6);
      --hair: oklch(25.5% 0.013 255);
      --ink: oklch(12% 0.012 255); --ink-2: oklch(17% 0.014 255); --ink-line: oklch(28% 0.014 255);
      --ink-text-dim: oklch(66% 0.014 255);
      --on-bg: oklch(92% 0.008 255); --on-fg: oklch(15% 0.012 255);
      --avatar-bg: oklch(30% 0.012 255); --avatar-fg: oklch(92% 0.008 255);
      color-scheme: dark;
    }
  }
  :root[data-theme="dark"]{
    --bg: oklch(17% 0.012 255); --surface: oklch(21% 0.012 255); --surface-alt: oklch(25% 0.012 255);
    --border: oklch(32% 0.012 255); --text: oklch(95% 0.006 255); --text-muted: oklch(75% 0.012 255);
    --text-faint: oklch(71% 0.012 255);
    --accent: #4d93ea; --accent-hover: #6ba6ef; --accent-soft: oklch(30% 0.06 255);
    --accent-ink: oklch(82% 0.1 255);
    --accent-2: #f5bf2a; --accent-2-soft: #3a3214; --accent-2-ink: #ffd56a;
    --positive: oklch(70% 0.15 148); --positive-soft: oklch(30% 0.05 148); --positive-ink: oklch(78% 0.14 148);
    --negative: oklch(68% 0.17 25); --negative-soft: oklch(30% 0.06 25);
    --shadow: 0 1px 2px rgba(0,0,0,.45); --shadow-lg: 0 8px 24px rgba(0,0,0,.55);
    --shadow-2: 0 2px 8px rgba(0,0,0,.5); --shadow-3: 0 18px 50px rgba(0,0,0,.6);
    --hair: oklch(25.5% 0.013 255);
    --ink: oklch(12% 0.012 255); --ink-2: oklch(17% 0.014 255); --ink-line: oklch(28% 0.014 255);
    --ink-text-dim: oklch(66% 0.014 255);
    --on-bg: oklch(92% 0.008 255); --on-fg: oklch(15% 0.012 255);
    --avatar-bg: oklch(30% 0.012 255); --avatar-fg: oklch(92% 0.008 255);
    color-scheme: dark;
  }
  *{ box-sizing:border-box; }
  html,body{ margin:0; padding:0; }
  body{ background:var(--bg); color:var(--text); font-family:var(--body);
    font-size:14px; line-height:1.5; -webkit-font-smoothing:antialiased;
    font-variant-numeric:tabular-nums; }
  a{ color:var(--accent); text-decoration:none; cursor:pointer; }
  a:hover{ text-decoration:underline; }
  /* every control states its own colour — inheriting the browser's leaves white
     type on a white plate the moment a reader's browser forces dark */
  button, input, select, textarea{ font-family:inherit; font-size:inherit; color:var(--text); }
  button{ background:none; border:none; }
  :focus-visible{ outline:2px solid var(--accent); outline-offset:2px; border-radius:2px; }
  h1,h2,h3{ text-wrap:balance; }
  p{ text-wrap:pretty; }

  /* the one place glass is functionally correct: the page scrolls under it */
  .nav{ height:60px; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:0 28px;
    background:color-mix(in oklab, var(--void) 82%, transparent);
    backdrop-filter:blur(22px) saturate(160%); -webkit-backdrop-filter:blur(22px) saturate(160%);
    border-bottom:1px solid rgba(255,255,255,.09); position:sticky; top:0; z-index:20;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.07); }
  .nav-left{ display:flex; align-items:center; gap:36px; }
  .wordmark{ font-family:var(--display); font-weight:700; font-size:19px; letter-spacing:0; color:#fff; display:flex; align-items:center; gap:9px; text-transform:none; }
  .wordmark .dot{ width:9px; height:9px; border-radius:2px; background:var(--accent-2);
    box-shadow:0 0 14px var(--accent-2); }
  .nav-links{ display:flex; gap:4px; align-items:center; }
  .nav-link{ font-family:var(--display); font-size:12.5px; font-weight:600; letter-spacing:0;
    text-transform:none; color:var(--ink-text-dim); display:flex; align-items:center;
    padding:8px 14px; border-radius:100px; }
  .nav-link.active{ color:#fff; background:rgba(255,255,255,.09);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.16); }
  .nav-link:hover{ color:#fff; text-decoration:none; background:rgba(255,255,255,.06); }
  .nav-right{ display:flex; align-items:center; gap:10px; flex:none; }
  .season-select{ font-size:12.5px; font-weight:600; color:#fff; border:1px solid var(--ink-line); border-radius:100px; padding:6px 12px; background:var(--ink-2); }
  .theme-toggle{ display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px;
    border-radius:100px; border:1px solid var(--ink-line); background:var(--ink-2); color:#fff;
    font-size:14px; line-height:1; cursor:pointer; flex:none; }
  .theme-toggle:hover{ border-color:var(--accent-2); }
  .theme-toggle .moon{ display:none; }
  :root[data-theme="dark"] .theme-toggle .moon{ display:inline; }
  :root[data-theme="dark"] .theme-toggle .sun{ display:none; }
  @media (prefers-color-scheme: dark){
    :root:not([data-theme="light"]) .theme-toggle .moon{ display:inline; }
    :root:not([data-theme="light"]) .theme-toggle .sun{ display:none; }
  }
  .mobile-toggle{ display:none; }
  /* the strip between the glass bar and the stage: it should read as part of
     the page, not as a third band of chrome */
  .subnav{ background:transparent; border-bottom:1px solid var(--hair); padding:0 28px; }
  .subnav-inner{ max-width:1320px; margin:0 auto; padding:14px 4px 0; }
  .subnav-eyebrow{ display:flex; align-items:baseline; gap:10px; }
  .subnav-label{ font-family:var(--display); font-weight:600; font-size:12.5px; letter-spacing:0; color:var(--text); text-transform:none; }
  .subnav-sep{ color:var(--text-faint); }
  .subnav-crumb{ font-size:12px; color:var(--text-faint); }
  .subnav-links{ display:flex; gap:22px; margin-top:10px; overflow-x:auto; }
  .subnav-link{ font-size:13.5px; font-weight:500; color:var(--text-muted); padding-bottom:12px; border-bottom:2px solid transparent; white-space:nowrap; }
  .subnav-link.active{ color:var(--text); font-weight:700; border-bottom-color:var(--accent); }
  .subnav-link:hover{ color:var(--text); text-decoration:none; }

  .page{ padding:24px 28px 64px; max-width:1320px; margin:0 auto; }
  .page-head{ display:flex; align-items:baseline; justify-content:space-between; margin-bottom:20px; gap:16px; flex-wrap:wrap; }
  .page-title{ font-family:var(--display); font-weight:700; font-size:30px; letter-spacing:0.005em; text-transform:none; margin:0; line-height:1.08; }
  .page-sub{ color:var(--text-muted); font-size:13px; margin-top:5px; line-height:1.55; max-width:92ch; }
  .badge{ display:inline-flex; align-items:center; gap:6px; font-size:11.5px; font-weight:700; letter-spacing:0; color:var(--accent-2-ink); background:var(--accent-2-soft); border-radius:100px; padding:4px 10px; white-space:nowrap; text-transform:none; }
  /* ---- glass ------------------------------------------------------------
     One rule decides where glass is allowed: something has to pass behind it.
     The bar the page scrolls under, a panel floating on its own bloom, the
     tab rail. Anything you read a number off stays opaque. */

  /* the specular rim — a 1px gradient border drawn as a masked pseudo-element,
     so the fill underneath is free to stay translucent */
  .rim{ position:relative; }
  .rim::before{ content:""; position:absolute; inset:0; border-radius:inherit; padding:1px; z-index:3;
    background:linear-gradient(150deg, rgba(255,255,255,.30), rgba(255,255,255,.06) 44%,
               rgba(255,255,255,0) 66%, rgba(255,255,255,.11));
    -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite:xor; mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite:exclude; pointer-events:none; }

  /* the bloom a glass panel refracts: a wash in the subject's own team colour,
     plus the portrait where the source has published one */
  .bloom{ position:absolute; inset:-25%; z-index:0; pointer-events:none; }
  .bloom i{ position:absolute; display:block; border-radius:50%; filter:blur(110px); }
  .bloom .b1{ width:44%; height:110%; left:-4%; top:-16%; background:var(--team,var(--accent)); opacity:.20; }
  .bloom .b2{ width:46%; height:120%; right:-8%; top:-22%; background:var(--accent); opacity:.11; }
  .bloom img{ position:absolute; right:2%; top:-6%; height:150%; opacity:.11;
    filter:blur(30px) saturate(125%);
    -webkit-mask-image:linear-gradient(90deg, transparent, #000 45%);
    mask-image:linear-gradient(90deg, transparent, #000 45%); }
  /* grain kills the banding a large blurred gradient always produces */
  .grain{ position:absolute; inset:0; z-index:1; pointer-events:none; opacity:.05; mix-blend-mode:overlay;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E"); }

  /* micro-labels are mono: it separates a label from its number by texture
     rather than by size, and makes each one read as an instrument marking */
  .hero-meta-label, .hero-tile-label,
  .dir-count-label, .acc-stat span, .high-label{
    font-family:var(--mono); font-size:11.5px; font-weight:500; letter-spacing:0;
    text-transform:none; }

  .crumb{ font-size:12px; color:var(--text-faint); margin-bottom:14px; }
  .crumb a{ color:var(--text-muted); }

  .tabbar{ display:flex; gap:2px; border-radius:100px; padding:4px; width:fit-content; margin-bottom:16px;
    flex-wrap:wrap; border:1px solid var(--border); box-shadow:var(--shadow-2);
    background:color-mix(in oklab, var(--surface) 74%, transparent);
    backdrop-filter:blur(16px) saturate(150%); -webkit-backdrop-filter:blur(16px) saturate(150%); }
  .tab{ font-family:var(--display); font-size:12px; font-weight:600; letter-spacing:0;
    text-transform:none; padding:8px 17px; border-radius:100px; color:var(--text-muted);
    cursor:pointer; border:none; background:none; }
  .tab.tab-active{ background:var(--on-bg); color:var(--on-fg); }
  .toolbar{ display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; flex-wrap:wrap; gap:10px; }
  .filters{ display:flex; gap:10px; }
  .filter{ font-size:13px; font-weight:600; color:var(--text); border:1px solid var(--border); border-radius:var(--radius); padding:8px 12px; background:var(--surface-alt); }

  .card{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow); overflow:hidden; margin-bottom:20px; }
  .card tbody td{ border-bottom-color:var(--hair); }
  .card-head{ padding:15px 20px; border-bottom:1px solid var(--border); font-family:var(--display); font-weight:600; font-size:15px; letter-spacing:0; text-transform:none; display:flex; align-items:center; gap:10px; }
  .card-head .sw{ width:22px; height:22px; border-radius:5px; display:inline-flex; }

  table{ width:100%; border-collapse:collapse; }
  .table-scroll{ overflow-x:auto; }
  /* Wide merged traditional+advanced tables: player column stays pinned while the rest scrolls
     horizontally, with a light shadow to signal there's more to the right — same pattern as
     NBA.com/stats' player-stats tables, built here with our own markup/styles. */
  .table-scroll.sticky-first table{ width:max-content; min-width:100%; }
  .table-scroll.sticky-first th:first-child,
  .table-scroll.sticky-first td:first-child{ position:sticky; left:0; z-index:2; background:var(--surface); box-shadow:2px 0 6px oklch(20% 0.02 255 / 0.10); }
  .table-scroll.sticky-first thead th:first-child{ z-index:3; }
  .col-group-row th{ padding-top:8px; padding-bottom:8px; font-size:9.5px; letter-spacing:0.08em; color:var(--text-faint); border-bottom:1px solid var(--border-light,var(--border)); text-align:center; }
  .col-group-start{ border-left:2px solid var(--border); }
  .col-group-end{ border-right:2px solid var(--border); }
  th{ text-align:right; font-size:11.5px; font-weight:600; letter-spacing:0; text-transform:none; color:var(--text-faint); padding:12px 14px; border-bottom:1px solid var(--border); cursor:pointer; user-select:none; white-space:nowrap; }
  th.col-group-label{ background:var(--surface-alt); color:var(--text-muted); }
  th:hover{ color:var(--accent); }
  th.left{ text-align:left; cursor:default; padding-left:20px; }
  th.left:hover{ color:var(--text-faint); }
  th.nosort{ cursor:default; }
  th.nosort:hover{ color:var(--text-faint); }
  td{ text-align:right; font-size:13.5px; padding:11px 14px; border-bottom:1px solid var(--border); font-variant-numeric:tabular-nums; white-space:nowrap; }
  td.left{ text-align:left; padding-left:20px; }
  tr:last-child td{ border-bottom:none; }
  tbody tr:hover td{ background:var(--surface-alt); }
  .totals td{ font-weight:700; border-top:2px solid var(--border); }

  .player-cell{ display:flex; align-items:center; gap:10px; }
  .avatar{ width:28px; height:28px; border-radius:50%; background:var(--accent-soft); color:var(--accent-ink);
    font-weight:700; font-size:11px; display:flex; align-items:center; justify-content:center; flex:none;
    overflow:hidden; }
  .avatar-img{ background:var(--surface-alt); position:relative; }
  /* the portraits are framed head-and-chest; in a 28px disc the head is zoomed */
  /* player cut-outs are 296 x 340 with the head in the top ~55%, centred: show the whole head and a little shoulder */
  .avatar-img img{ position:absolute; width:135%; height:auto; max-width:none; left:50%; top:4%; transform:translateX(-50%); display:block; }
  .p-mark{ width:15px; height:15px; object-fit:contain; flex:none; display:block; }
  .p-mark-flag{ width:16px; height:8px; object-fit:cover; border:1px solid var(--border); border-radius:1px; }
  .p-name{ font-weight:600; font-size:13.5px; }
  .p-team{ font-size:11.5px; color:var(--text-muted); display:flex; align-items:center; gap:5px; }
  .p-sw{ width:11px; height:11px; border-radius:3px; display:inline-block; flex:none; }
  .num-pill{ font-size:10.5px; font-weight:700; color:var(--text-faint); background:var(--surface-alt); border-radius:4px; padding:2px 6px; }
  .lead{ color:var(--accent); font-weight:700; }
  .foot{ display:flex; align-items:center; justify-content:space-between; padding:12px 20px; font-size:12px; color:var(--text-muted); border-top:1px solid var(--border); flex-wrap:wrap; gap:6px; }
  .note{ padding:12px 20px; font-size:11.5px; color:var(--text-faint); border-top:1px solid var(--border);
    line-height:1.65; max-width:100ch; }

  .tiles{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; margin-bottom:22px; }
  .tile{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow); padding:16px 20px; }
  .tile-label{ font-size:11.5px; font-weight:700; letter-spacing:0; text-transform:none; color:var(--text-faint); }
  .tile-value{ font-family:var(--display); font-weight:700; font-size:26px; margin-top:4px; letter-spacing:0.005em; }
  .tile-sub{ font-size:11.5px; color:var(--text-muted); margin-top:2px; }
  .tile-note{ font-size:10.5px; color:var(--accent); font-weight:600; margin-top:3px; }

  .swatch{ width:26px; height:26px; border-radius:6px; display:flex; align-items:center; justify-content:center; font-size:9.5px; font-weight:700; color:#fff; flex:none; }
  .crest{ background-image:
      radial-gradient(circle at 32% 28%, rgba(255,255,255,.4), transparent 42%),
      linear-gradient(rgba(255,255,255,.4) 0 0) 50% 0 / 1.4px 100% no-repeat,
      linear-gradient(rgba(255,255,255,.4) 0 0) 0 50% / 100% 1.4px no-repeat,
      radial-gradient(circle at 50% 50%, transparent 58%, rgba(255,255,255,.28) 59%, rgba(255,255,255,.28) 63%, transparent 64%);
    background-blend-mode:overlay; }
  /* ---------------- Player index: hero, cards ---------------- */
  .dir-hero{ background:var(--void); border-radius:18px; padding:34px 32px 30px; margin-bottom:18px;
    position:relative; overflow:hidden; box-shadow:var(--shadow-3); isolation:isolate; }
  .dir-hero::after{ content:''; position:absolute; left:0; right:0; top:0; height:220px; z-index:1;
    pointer-events:none; background:linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,0)); }
  .dir-hero-in{ position:relative; z-index:2; max-width:760px; }
  .dir-hero-title{ font-family:var(--display); font-weight:700; font-size:clamp(30px,4.4vw,42px); line-height:1.14;
    letter-spacing:-.008em; text-transform:none; margin:0; padding-bottom:2px;
    background:linear-gradient(178deg,#fff 32%,rgba(255,255,255,.74));
    -webkit-background-clip:text; background-clip:text; color:transparent; }

  .dir-bar{ display:flex; align-items:center; justify-content:space-between; gap:12px;
    flex-wrap:wrap; margin-bottom:14px; }
  .dir-count{ font-family:var(--display); font-weight:700; font-size:22px; }
  .dir-count-l{ font-size:11.5px; font-weight:700; letter-spacing:0; text-transform:none;
    color:var(--text-faint); }
  .dir-note{ font-size:12px; color:var(--text-muted); margin:0 2px 14px; line-height:1.6; }
  .dir-note strong{ color:var(--text); }
  .dir-more{ display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap;
    padding:4px 2px 8px; font-size:12px; color:var(--text-faint); }

  .pcard-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(262px,1fr)); gap:14px; margin-bottom:16px; }
  /* who, and nothing else: position at the top, the name over a fade at the bottom, the
     portrait standing on the card's bottom edge. The card is always the dark stage. */
  .pcard{ position:relative; display:block; height:190px; border-radius:14px; overflow:hidden; isolation:isolate; color:#fff;
    background:radial-gradient(140% 120% at 100% 0%, color-mix(in oklab, var(--team, var(--accent)) 34%, var(--void)) 0%, var(--void) 62%);
    box-shadow:var(--shadow-2); transition:transform .16s ease, box-shadow .16s ease; }
  .pcard::before{ content:""; position:absolute; inset:0; border-radius:inherit; border:1px solid rgba(255,255,255,.1); pointer-events:none; z-index:4; }
  .pcard::after{ content:""; position:absolute; left:0; right:0; bottom:0; height:96px; z-index:2; pointer-events:none;
    background:linear-gradient(180deg, transparent, color-mix(in oklab, var(--void) 70%, transparent) 55%, var(--void)); }
  .pcard:hover{ text-decoration:none; transform:translateY(-2px); box-shadow:var(--shadow-3); }
  .pcard-glow{ position:absolute; right:-30px; top:-40px; width:220px; height:220px; border-radius:50%; background:var(--team, var(--accent));
    opacity:.22; filter:blur(50px); z-index:0; pointer-events:none; }
  .pcard-photo{ position:absolute; z-index:1; right:2px; bottom:0; height:178px; width:auto; max-width:62%; object-fit:contain;
    object-position:bottom right; filter:drop-shadow(0 10px 24px rgba(0,0,0,.55)); }
  /* no portrait: an oversized monogram in the same corner, so it reads as a mark, not a gap */
  .pcard-face{ position:absolute; right:14px; top:22px; z-index:1; pointer-events:none; user-select:none;
    font-family:var(--display); font-weight:700; font-size:78px; line-height:.8; letter-spacing:-.03em; color:rgba(255,255,255,.08); }
  .pcard-txt{ position:relative; z-index:3; height:100%; display:flex; flex-direction:column; padding:16px 18px 15px; min-width:0; }
  .pcard-pos{ align-self:flex-start; font-family:var(--display); font-size:12px; font-weight:600; letter-spacing:.07em;
    text-transform:uppercase; color:rgba(255,255,255,.66); }
  .pcard-name{ margin-top:auto; display:flex; flex-direction:column; min-width:0; max-width:100%; text-shadow:0 2px 14px rgba(0,0,0,.6); }
  .pcard-name span{ font-family:var(--display); font-size:17px; font-weight:500; color:rgba(255,255,255,.82); line-height:1.15;
    overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .pcard-name b{ font-family:var(--display); font-size:34px; font-weight:700; line-height:1.04; letter-spacing:-.01em;
    overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .pcard-name b.l1{ font-size:28px; } .pcard-name b.l2{ font-size:23px; } .pcard-name b.l3{ font-size:20px; }
  .pcard-team{ display:flex; align-items:center; gap:7px; margin-top:9px; font-size:12.5px; color:rgba(255,255,255,.76); min-width:0; }
  .pcard-team .p-mark{ width:18px; height:18px; }
  .pcard-team .p-mark-flag{ width:18px; height:auto; }
  .pcard-team > span{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  @media (max-width:560px){
    .dir-hero{ padding:24px 18px 22px; }
    .dir-hero-title{ font-size:28px; }
    .pcard-grid{ grid-template-columns:minmax(0,1fr); }
  }

  /* ---------------- Competition cards ---------------- */
  .cat-head{ display:flex; align-items:center; gap:10px; margin:22px 0 13px; }
  .cat-head h2{ font-family:var(--display); font-weight:600; font-size:14px; letter-spacing:0;
    text-transform:none; color:var(--text); margin:0; }
  .cat-head .cat-dot{ width:8px; height:8px; border-radius:50%; flex:none; box-shadow:0 0 0 3px rgba(51,193,122,.14); }
  .cat-head .cat-count{ font-family:var(--mono); font-size:11px; font-weight:600; color:var(--text-muted);
    background:var(--surface-alt); border-radius:20px; padding:1px 9px; }
  .cat-head .cat-rule{ flex:1; height:1px; background:var(--border); }
  .ccard-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:14px; margin-bottom:4px; }
  .ccard{ position:relative; display:flex; flex-direction:column; background:var(--void);
    border-radius:14px; overflow:hidden; color:#fff; isolation:isolate; transition:transform .16s, box-shadow .16s; }
  .ccard::before{ content:""; position:absolute; inset:0; border-radius:inherit; padding:1px; z-index:3;
    background:linear-gradient(180deg,rgba(255,255,255,.18),rgba(255,255,255,.03));
    -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
    -webkit-mask-composite:xor; mask-composite:exclude; opacity:.7; pointer-events:none; }
  .ccard:hover{ text-decoration:none; transform:translateY(-2px); box-shadow:var(--shadow-3); }
  .ccard:hover::before{ opacity:1; }
  .ccard .bloom{ inset:-40%; } .ccard .bloom i{ filter:blur(58px); }
  .ccard .bloom .b1{ opacity:.18; } .ccard .bloom .b2{ opacity:.09; }
  .ccard-in{ position:relative; z-index:2; display:flex; flex-direction:column; height:100%; }
  .ccard-body{ display:flex; gap:13px; align-items:flex-start; padding:15px 16px 13px; flex:1; }
  .ccard-crest{ flex:none; }
  .ccard-crest .comp-crest{ box-shadow:0 3px 10px rgba(0,0,0,.4); }
  .ccard-crest .comp-crest-dark{ border-color:rgba(255,255,255,.16); }
  .ccard-crest .swatch{ box-shadow:0 3px 10px rgba(0,0,0,.4); }
  /* team cards reuse the competition-card shell; their crest is a club logo or a
     state flag rather than a plate, so give it its own badge treatment */
  .tcard-crest{ width:60px; height:60px; display:flex; align-items:center; justify-content:center;
    flex:none; }
  .tcard-crest .crest-logo{ box-shadow:none; background:transparent; }
  .tcard-crest .crest-flag{ box-shadow:0 2px 8px rgba(0,0,0,.45); border-radius:6px; overflow:hidden; }
  .tcard-crest .swatch{ box-shadow:0 3px 10px rgba(0,0,0,.4); width:60px !important; height:60px !important; }
  .ccard-main{ min-width:0; flex:1; }
  .ccard-eyebrow{ font-family:var(--mono); font-size:11px; font-weight:500; letter-spacing:0;
    text-transform:none; color:rgba(255,255,255,.56); }
  .ccard-name{ font-family:var(--display); font-weight:600; font-size:16px; line-height:1.16;
    letter-spacing:.006em; color:#fff; margin-top:5px; text-wrap:balance; }
  .ccard-series{ font-size:11.5px; color:rgba(255,255,255,.6); margin-top:6px; display:block;
    overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .ccard-chips{ display:flex; flex-wrap:wrap; gap:5px; margin-top:10px; }
  .ccard-chip{ font-family:var(--mono); font-size:11px; font-weight:500; letter-spacing:0;
    text-transform:none; color:rgba(255,255,255,.66); background:rgba(255,255,255,.06);
    border-radius:5px; padding:3px 7px; display:inline-flex; align-items:center; gap:5px; max-width:100%; }
  .ccard-chip .crest-logo, .ccard-chip .crest-flag, .ccard-chip .swatch{ width:13px !important; height:13px !important;
    font-size:6px !important; flex:none; }
  .ccard-chip-win{ color:#ffe08a; background:rgba(255,196,0,.12); }
  .ccard-ev{ position:relative; padding:10px 16px 12px; background:rgba(255,255,255,.028); }
  .ccard-ev::before{ content:""; position:absolute; left:0; right:0; top:0; height:1px; background:rgba(255,255,255,.07); }
  .ccard-foot{ font-family:var(--mono); font-size:11px; font-weight:500; letter-spacing:0;
    text-transform:none; color:rgba(255,255,255,.56); }
  .ccard-stats{ display:flex; align-items:baseline; gap:18px; margin-top:7px; }
  .ccard-stat{ display:flex; align-items:baseline; gap:5px; }
  .ccard-stat b{ font-family:var(--display); font-weight:700; font-size:18px; line-height:1; color:#fff;
    font-variant-numeric:tabular-nums; }
  .ccard-stat span{ font-family:var(--mono); font-size:11px; font-weight:500; letter-spacing:0;
    text-transform:none; color:rgba(255,255,255,.5); }
  @media (max-width:560px){ .ccard-grid{ grid-template-columns:minmax(0,1fr); } }

  /* ---------------- Team pages: divisions & squads ---------------- */
  /* division colours: two hue families, blue/teal for men and boys, rose/violet for
     women and girls; mid-tone so white text holds on them in either theme */
  :root{ --d-men:#3f86e0; --d-women:#dc5d87; --d-boys:#2aa7b8; --d-girls:#a872d8; --gold:#e8b53d; }
  .tc-divs{ display:flex; gap:12px; margin-top:7px; flex-wrap:wrap; }
  .tc-div{ display:flex; align-items:baseline; gap:5px; }
  .tc-div b{ font-family:var(--display); font-weight:700; font-size:17px; line-height:1; color:#fff; font-variant-numeric:tabular-nums; }
  .tc-div span{ font-family:var(--mono); font-size:11px; font-weight:500; letter-spacing:0; text-transform:none;
    color:rgba(255,255,255,.5); display:inline-flex; align-items:center; gap:5px; }
  .tc-div span i{ width:6px; height:6px; border-radius:50%; display:inline-block; }
  .tc-div.zero b{ color:rgba(255,255,255,.28); }
  .ccard-foot b{ color:#fff; font-weight:600; }
  .ccard-chip-sq{ color:rgba(255,255,255,.8); background:rgba(255,255,255,.09); }
  .tm-cats{ display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; }
  .tm-cat{ display:inline-flex; align-items:center; gap:6px; font-family:var(--mono); font-size:11.5px; font-weight:600;
    letter-spacing:0; text-transform:none; color:var(--text-muted); background:var(--surface-alt);
    border:1px solid var(--border); border-radius:100px; padding:3px 9px; }
  .tm-cat i{ width:7px; height:7px; border-radius:50%; display:inline-block; }
  /* a crest drawn in white ink sits on a dark plate so it reads on light rows too */
  .crest-logo.crest-logo-dark{ background:#141a26; border-radius:6px; padding:2px; box-sizing:border-box; }
  /* and one drawn in black or navy ink sits on a white plate so the dark theme keeps it */
  .crest-logo.crest-logo-light, .p-mark.crest-logo-light{ background:#fff; border-radius:6px; padding:2px; box-sizing:border-box; }
  .p-mark.crest-logo-dark{ background:#141a26; border-radius:3px; padding:1px; box-sizing:border-box; }
  .p-mark.crest-logo-light{ border-radius:3px; padding:1px; }
  .tm-alias{ margin-top:6px; font-size:12.5px; color:var(--text-muted); }
  .tm-alias b{ color:var(--text); font-weight:600; }
  .tm-merged{ display:flex; flex-wrap:wrap; gap:5px; margin-top:8px; align-items:center; font-size:11.5px; color:var(--text-faint); }
  .tm-merged code{ font-family:var(--mono); font-size:10.5px; background:var(--surface-alt); border:1px solid var(--border);
    border-radius:5px; padding:1px 6px; color:var(--text-muted); }

  .dv-legend{ display:flex; gap:6px 14px; flex-wrap:wrap; font-size:11.5px; color:var(--text-muted); margin:-6px 0 14px; }
  .dv-legend span{ display:inline-flex; align-items:center; gap:6px; }
  .dv-legend i{ width:14px; height:10px; border-radius:3px; display:inline-block; }
  .dv-legend .lg-on{ background:color-mix(in oklab, var(--text-muted) 55%, transparent); }
  .dv-legend .lg-win{ background:var(--gold); }
  .dv-legend .lg-q{ background:color-mix(in oklab, var(--text-muted) 22%, transparent); }
  .dv-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(340px,1fr)); gap:14px; margin-bottom:18px; }
  .dv{ position:relative; background:var(--void); color:#fff; border-radius:14px; overflow:hidden; isolation:isolate;
    box-shadow:var(--shadow-2); display:flex; flex-direction:column; }
  .dv::before{ content:""; position:absolute; inset:0 0 auto 0; height:3px; background:var(--dc); z-index:3; }
  .dv::after{ content:""; position:absolute; inset:-40% -40% auto auto; width:70%; height:120%; background:var(--dc);
    filter:blur(70px); opacity:.16; z-index:0; pointer-events:none; }
  .dv > *{ position:relative; z-index:1; }
  .dv-head{ padding:16px 18px 10px; display:flex; align-items:flex-start; gap:12px; }
  .dv-tline{ display:flex; gap:10px; align-items:center; }
  .dv-title{ font-family:var(--display); font-weight:700; font-size:26px; line-height:1; letter-spacing:0; text-transform:none; }
  .dv-age{ font-family:var(--mono); font-size:11px; font-weight:600; letter-spacing:.08em; padding:3px 8px; border-radius:6px;
    background:color-mix(in oklab, var(--dc) 30%, transparent); color:#fff; border:1px solid color-mix(in oklab, var(--dc) 60%, transparent); }
  .dv-series{ font-size:11.5px; color:rgba(255,255,255,.58); margin-top:7px; line-height:1.4; }
  .dv-count{ margin-left:auto; text-align:right; flex:none; }
  .dv-count b{ display:block; font-family:var(--display); font-size:30px; font-weight:700; line-height:1; }
  .dv-count span{ font-family:var(--mono); font-size:11px; letter-spacing:0; text-transform:none; color:rgba(255,255,255,.5); }
  .dv-lanes{ padding:4px 18px 14px; display:flex; flex-direction:column; gap:9px; }
  .dv .lane, .dv-years{ display:grid; grid-template-columns:74px 1fr 64px; align-items:center; gap:12px; }
  .dv-years{ padding:0 18px; }
  .dv .sq{ font-family:var(--mono); font-size:11.5px; font-weight:600; letter-spacing:0; text-transform:none;
    padding:4px 0; width:70px; text-align:center; border-radius:5px; white-space:nowrap; }
  .dv .sq-1{ background:#fff; color:#0c1220; }
  .dv .sq-2{ color:#fff; box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.7); }
  .dv .sq-0{ background:rgba(255,255,255,.08); color:rgba(255,255,255,.72); }
  .dv .strip{ display:grid; grid-template-columns:repeat(var(--n),1fr); gap:3px; }
  .dv .strip i{ height:22px; border-radius:4px; background:rgba(255,255,255,.06); display:flex; align-items:center; justify-content:center;
    font-style:normal; font-family:var(--mono); font-size:9px; color:rgba(255,255,255,.35); }
  .dv .strip i.on{ background:var(--dc); color:#fff; }
  .dv .strip i.q{ background:color-mix(in oklab, var(--dc) 32%, transparent); color:rgba(255,255,255,.8); }
  .dv .strip i.win{ background:var(--gold); color:#221600; font-weight:700; }
  .dv-years .strip i{ height:auto; background:none; color:rgba(255,255,255,.4); }
  .dv .lane-rec{ font-family:var(--display); font-size:16px; font-weight:600; font-variant-numeric:tabular-nums; white-space:nowrap; text-align:right; }
  .dv .lane-rec small{ display:block; font-family:var(--mono); font-size:11px; font-weight:500; letter-spacing:0; color:rgba(255,255,255,.45); text-transform:none; }
  .dv-foot{ margin-top:auto; padding:10px 18px 12px; background:rgba(255,255,255,.03); border-top:1px solid rgba(255,255,255,.07);
    font-size:11.5px; color:rgba(255,255,255,.6); display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
  .dv-foot .t{ color:#ffe08a; }

  .tp-apps .ap-filters{ display:flex; gap:10px 18px; flex-wrap:wrap; padding:14px 20px; border-bottom:1px solid var(--border); align-items:center; }
  .tp-apps .lab{ font-family:var(--mono); font-size:11.5px; font-weight:600; letter-spacing:0; text-transform:none; color:var(--text-faint); margin-right:4px; }
  .tp-apps .seg2{ display:inline-flex; gap:4px; flex-wrap:wrap; }
  .tp-apps .seg2 button{ font-family:var(--mono); font-size:11.5px; font-weight:600; letter-spacing:0; text-transform:none;
    padding:6px 11px; border-radius:7px; border:1px solid var(--border); background:var(--surface-alt); color:var(--text-muted); cursor:pointer;
    display:inline-flex; align-items:center; gap:6px; }
  .tp-apps .seg2 button i{ width:7px; height:7px; border-radius:50%; display:inline-block; }
  .tp-apps .seg2 button.on{ background:var(--void); color:#fff; border-color:transparent; }
  .tp-apps .seg2 button:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; }
  .tp-apps tr.yr td{ font-family:var(--display); font-size:15px; font-weight:700; letter-spacing:.04em; background:var(--surface-alt);
    padding-top:8px; padding-bottom:8px; color:var(--text); }
  .tp-apps tr.yr td small{ font-family:var(--mono); font-size:10px; font-weight:500; letter-spacing:.1em; color:var(--text-faint); margin-left:10px; }
  .tp-apps .tp-cn{ white-space:normal; min-width:260px; }
  .tp-apps .dtag{ display:inline-flex; align-items:center; gap:6px; font-size:12px; font-weight:600; color:var(--text); white-space:nowrap; }
  .tp-apps .dtag i{ width:8px; height:8px; border-radius:2px; background:var(--dc); display:inline-block; }
  .tp-apps .dtag em{ font-style:normal; font-family:var(--mono); font-size:10px; color:var(--text-muted); }
  .tp-apps .sqp{ font-family:var(--mono); font-size:11.5px; font-weight:600; letter-spacing:0; text-transform:none; padding:3px 7px; border-radius:5px; white-space:nowrap; }
  .tp-apps .sqp-1{ background:var(--text); color:var(--surface); }
  .tp-apps .sqp-2{ box-shadow:inset 0 0 0 1.5px var(--text-muted); color:var(--text); }
  .tp-apps .sqp-0{ color:var(--text-faint); }
  .tp-apps .fin{ font-family:var(--mono); font-size:11.5px; font-weight:600; letter-spacing:0; text-transform:none; padding:3px 7px; border-radius:5px; white-space:nowrap; }
  .tp-apps .fin-win{ background:color-mix(in oklab, var(--gold) 22%, transparent); color:color-mix(in oklab, var(--gold) 52%, var(--text)); }
  .tp-apps .fin-q{ background:var(--surface-alt); color:var(--text-muted); }
  @media (max-width:560px){
    .dv-grid{ grid-template-columns:minmax(0,1fr); }
    .dv .lane, .dv-years{ grid-template-columns:62px 1fr 58px; gap:8px; }
    .dv .sq{ width:60px; font-size:9px; letter-spacing:.04em; }
    .tp-apps .ap-filters{ padding:12px 14px; }
  }

  /* ---------------- Regular season / playoffs ---------------- */
  .phase-bar{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:12px; }
  .phase-note{ font-size:12px; color:var(--text-muted); }
  .po-tag{ display:inline-block; font-family:var(--mono); font-size:11.5px; font-weight:600; letter-spacing:0;
    text-transform:none; padding:2px 7px; border-radius:5px; white-space:nowrap; vertical-align:middle;
    background:color-mix(in oklab, var(--accent-2) 16%, transparent); color:var(--accent-2-ink); }
  .m-round{ margin-top:6px; text-align:center; }
  .po-line{ margin-bottom:4px; }
  .ff-tag{ background:color-mix(in oklab, var(--text-muted) 16%, transparent); color:var(--text-muted); }
  .phase-tag{ font-family:var(--mono); font-size:11.5px; font-weight:600; letter-spacing:0; text-transform:none;
    padding:2px 7px; border-radius:5px; background:var(--surface-alt); color:var(--text-muted); }
  .phase-tag.phase-po{ background:color-mix(in oklab, var(--accent-2) 16%, transparent); color:var(--accent-2-ink); }
  tr.phase-row td{ font-size:12.5px; }
  /* ---------------- Compare (head-to-head) ---------------- */
  /* ---------------- Compare (head-to-head) ---------------- */
  .cmp-pickrow{ display:grid; grid-template-columns:1fr auto 1fr; gap:14px; align-items:center; margin-bottom:16px; }
  .cmp-pick{ display:flex; align-items:center; gap:10px; background:var(--surface); border:1px solid var(--border);
    border-radius:100px; padding:7px 14px 7px 8px; box-shadow:var(--shadow); min-width:0; }
  .cmp-pick.b{ flex-direction:row-reverse; }
  .cmp-pick-face{ position:relative; width:30px; height:30px; border-radius:50%; overflow:hidden; flex:none; background:var(--avatar-bg);
    display:flex; align-items:center; justify-content:center; color:var(--avatar-fg); font-family:var(--display);
    font-weight:700; font-size:12px; }
  .cmp-pick-face img{ position:absolute; width:135%; height:auto; max-width:none; left:50%; top:4%; transform:translateX(-50%); display:block; }
  .cmp-pick-face img.sq, .cmp-res-face img.sq, .cmp-sugg-face img.sq{ position:static; width:100%; height:100%; left:auto; top:auto; transform:none; object-fit:cover; }
  .cmp-pick-name{ font-weight:700; font-size:13.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .cmp-pick-sub{ font-size:11px; color:var(--text-faint); white-space:nowrap; }
  .cmp-vs{ font-family:var(--display); font-weight:700; font-size:15px; letter-spacing:0.08em; color:var(--text-muted);
    text-align:center; }
  .cmp-swap{ display:block; margin:4px auto 0; font-family:inherit; font-size:11px; font-weight:600;
    color:var(--text-muted); background:var(--surface); border:1px solid var(--border); border-radius:100px;
    padding:3px 11px; cursor:pointer; white-space:nowrap; }
  .cmp-swap:hover{ border-color:var(--accent); color:var(--accent); }

  .cmp-heroes{ display:grid; grid-template-columns:1fr 64px 1fr; gap:0; margin-bottom:20px; align-items:stretch; }
  .cmp-hero{ background:var(--ink); color:#fff; border-radius:var(--radius); padding:20px 22px;
    display:flex; gap:16px; align-items:flex-start; position:relative; overflow:hidden; }
  .cmp-hero::after{ content:''; position:absolute; inset:0; pointer-events:none; }
  .cmp-hero.a::after{ background:linear-gradient(115deg, transparent 55%, oklch(46% 0.16 255 / .5)); }
  .cmp-hero.b::after{ background:linear-gradient(245deg, transparent 55%, oklch(66% 0.135 86 / .45)); }
  .cmp-hero.b{ flex-direction:row-reverse; text-align:right; }
  .cmp-face{ width:76px; height:76px; border-radius:var(--radius); overflow:hidden; flex:none; z-index:1;
    background:var(--ink-2); border:1px solid var(--ink-line); display:flex; align-items:center;
    justify-content:center; font-family:var(--display); font-weight:700; font-size:24px; color:var(--ink-text-dim); }
  .cmp-face img{ width:100%; height:100%; object-fit:cover; }
  .cmp-hero-body{ min-width:0; z-index:1; }
  .cmp-name{ font-family:var(--display); font-weight:700; font-size:24px; letter-spacing:0.01em;
    text-transform:none; line-height:1.1; }
  .cmp-role{ font-size:12px; color:var(--ink-text-dim); margin-top:4px; }
  .cmp-pills{ display:flex; gap:6px; flex-wrap:wrap; margin-top:9px; }
  .cmp-hero.b .cmp-pills{ justify-content:flex-end; }
  .cmp-pill{ font-size:10.5px; font-weight:600; color:#fff; background:rgba(255,255,255,.12);
    border-radius:100px; padding:3px 9px; white-space:nowrap; }
  .cmp-mid{ display:flex; align-items:center; justify-content:center; font-family:var(--display);
    font-weight:700; font-size:17px; letter-spacing:0.06em; color:var(--text-faint); }

  .cmp-scope{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
    box-shadow:var(--shadow); padding:16px 20px; margin-bottom:20px; }
  .cmp-scope-note{ font-size:12.5px; color:var(--text-muted); line-height:1.6; margin-bottom:12px; max-width:88ch; }
  .cmp-scope-note b{ color:var(--text); }
  .cmp-ctl{ display:flex; align-items:center; gap:9px; flex-wrap:wrap; margin-top:10px; }
  .cmp-ctl-label{ font-size:11.5px; font-weight:700; letter-spacing:0; text-transform:none;
    color:var(--text-faint); min-width:78px; }

  .cmp-duel{ display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:16px;
    padding:18px 20px 6px; }
  .cmp-big{ font-family:var(--display); font-weight:700; font-size:40px; line-height:1;
    font-variant-numeric:tabular-nums; }
  .cmp-big.a{ color:var(--accent); }
  .cmp-big.b{ color:var(--accent-2); text-align:right; }
  .cmp-biglabel{ font-size:11.5px; font-weight:700; letter-spacing:0; text-transform:none;
    color:var(--text-faint); margin-bottom:4px; }
  .cmp-bigsub{ font-size:11.5px; color:var(--text-faint); margin-top:5px; font-variant-numeric:tabular-nums; }
  .cmp-bigwrap.b{ text-align:right; }

  .duo{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .duo > div{ padding:6px 10px 14px; min-width:0; }
  .duo > div + div{ border-left:1px solid var(--border); }
  .duo-title{ text-align:center; font-family:var(--display); font-weight:600; font-size:12px;
    letter-spacing:0; text-transform:none; padding-top:8px; }
  .duo-title.a{ color:var(--accent); }
  .duo-title.b{ color:var(--accent-2); }
  .poly-b{ fill:none; stroke:var(--accent-2); stroke-width:2.25; stroke-linejoin:round; }
  .vtx-b{ fill:var(--accent-2); stroke:var(--surface); stroke-width:2; }
  .ax-pct-b{ font-family:var(--mono); font-weight:600; font-size:11px; fill:var(--accent-2); }

  /* mirrored stat rows — the margin is the point, so it gets the middle */
  .sr{ display:grid; grid-template-columns:64px 1fr 92px 1fr 64px; align-items:center; gap:10px;
    padding:9px 20px; border-top:1px solid var(--border); }
  .sr:first-of-type{ border-top:none; }
  .sr-v{ font-family:var(--display); font-weight:700; font-size:17px; font-variant-numeric:tabular-nums; }
  .sr-v.a{ text-align:right; }
  .sr-v.win{ color:var(--accent); }
  .sr-v.b.win{ color:var(--accent-2-ink); }
  .sr-bar{ height:9px; background:var(--surface-alt); border-radius:2px; position:relative; }
  .sr-bar span{ position:absolute; top:0; bottom:0; border-radius:2px; }
  .sr-bar.a span{ right:0; background:var(--accent); }
  .sr-bar.b span{ left:0; background:var(--accent-2); }
  .sr-bar.dim span{ opacity:.35; }
  .sr-mid{ text-align:center; }
  .sr-k{ font-family:var(--display); font-weight:600; font-size:11.5px; letter-spacing:0;
    text-transform:none; color:var(--text-muted); }
  .sr-d{ font-size:10.5px; font-variant-numeric:tabular-nums; color:var(--text-faint); }
  .sr-d.a{ color:var(--accent); } .sr-d.b{ color:var(--accent-2-ink); }

  /* head-to-head margin chart */
  .h2h-top{ display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:16px; padding:18px 20px 10px; }
  .h2h-rec{ font-family:var(--display); font-weight:700; font-size:44px; line-height:1; font-variant-numeric:tabular-nums; }
  .h2h-rec.a{ color:var(--accent); } .h2h-rec.b{ color:var(--accent-2); text-align:right; }
  .h2h-chart{ padding:6px 20px 4px; }
  .h2h-plot{ position:relative; height:170px; display:flex; align-items:stretch; gap:2px; }
  .h2h-zero{ position:absolute; left:0; right:0; height:1px; background:var(--text-faint); z-index:2; }
  .h2h-g{ flex:1 1 0; position:relative; min-width:0; cursor:help; }
  .h2h-g i{ position:absolute; left:12%; right:12%; border-radius:2px; }
  .h2h-g.a i{ background:var(--accent); }
  .h2h-g.b i{ background:var(--accent-2); }
  .h2h-g:hover i{ opacity:.75; }
  .h2h-axis{ display:flex; justify-content:space-between; font-size:10.5px; color:var(--text-faint);
    padding:6px 20px 0; font-variant-numeric:tabular-nums; }
  .h2h-side{ font-size:11px; color:var(--text-faint); padding:0 20px; display:flex;
    justify-content:space-between; gap:10px; flex-wrap:wrap; }
  .h2h-side b{ color:var(--text-muted); }

  .hon{ display:grid; grid-template-columns:1fr 190px 1fr; align-items:center; gap:10px; padding:11px 20px;
    border-top:1px solid var(--border); }
  .hon-v{ font-family:var(--display); font-weight:700; font-size:20px; font-variant-numeric:tabular-nums; }
  .hon-v.a{ text-align:right; } .hon-v.lead{ color:var(--accent); } .hon-v.b.lead{ color:var(--accent-2); }
  .hon-k{ text-align:center; font-size:11.5px; font-weight:700; letter-spacing:0; text-transform:none;
    color:var(--text-faint); }
  .hon-list{ font-size:11.5px; color:var(--text-faint); padding:10px 20px 0; line-height:1.6; }

  @media (max-width:1000px){
    .fp-row{ grid-template-columns:1fr; gap:14px; }
    .fp.b{ text-align:left; }
    .fp.b .chip-row, .fp.b .fp-seg{ justify-content:flex-start; }
    .fp-mid{ text-align:left; order:3; }
  }

  @media (max-width:900px){
    .cmp-heroes{ grid-template-columns:1fr; gap:8px; }
    .cmp-mid{ padding:2px 0; }
    .cmp-hero.b{ flex-direction:row; text-align:left; }
    .cmp-hero.b .cmp-pills{ justify-content:flex-start; }
    .duo{ grid-template-columns:minmax(0,1fr); }
    .duo > div + div{ border-left:none; border-top:1px solid var(--border); }
    .sr{ grid-template-columns:52px 1fr 76px 1fr 52px; gap:7px; padding:9px 14px; }
    .cmp-big{ font-size:30px; }
    .h2h-rec{ font-size:32px; }
  }
  @media (max-width:560px){
    .cmp-pickrow{ grid-template-columns:1fr; }
    .cmp-pick.b{ flex-direction:row; }
    .sr{ grid-template-columns:44px 1fr 66px 1fr 44px; gap:5px; font-size:12px; }
    .sr-v{ font-size:14px; }
    .h2h-plot{ height:130px; }
  }

  .fp-badge{ display:inline-block; font-size:11.5px; font-weight:700; letter-spacing:0;
    text-transform:none; border-radius:100px; padding:4px 12px; }
  .fp-badge.diff{ background:var(--accent-2-soft); color:var(--accent-2-ink); }
  .fp-note{ font-size:12.5px; color:var(--text-muted); line-height:1.6; }
  .fp-note b{ color:var(--text); }
  .sr-sub{ font-family:var(--body); font-weight:500; font-size:10px;
    color:var(--text-faint); letter-spacing:0; margin-top:1px; }
  .cmp-x{ border:none; background:none; color:var(--text-faint); font-size:12px; cursor:pointer;
    padding:2px 4px; line-height:1; flex:none; }
  .cmp-x:hover{ color:var(--accent-2); }
  .cmp-empty{ padding:0; position:relative; overflow:visible; }
  .cmp-input{ font-family:inherit; font-size:13.5px; font-weight:600; color:var(--text); border:none;
    background:none; padding:11px 16px; width:100%; }
  .cmp-input:focus-visible{ outline:2px solid var(--accent); outline-offset:1px; }
  .cmp-results{ display:none; position:absolute; left:0; right:0; top:calc(100% + 6px); z-index:30;
    background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
    box-shadow:var(--shadow-lg); overflow:hidden; }
  .cmp-results.on{ display:block; }
  .cmp-res{ display:flex; align-items:center; gap:10px; width:100%; text-align:left; border:none;
    background:none; font-family:inherit; font-size:13px; padding:8px 12px; cursor:pointer; }
  .cmp-res:hover{ background:var(--surface-alt); }
  .cmp-res em{ margin-left:auto; font-style:normal; font-size:10.5px; color:var(--text-faint); }
  .cmp-res-face{ position:relative; width:24px; height:24px; border-radius:50%; overflow:hidden; flex:none; background:var(--avatar-bg);
    color:var(--avatar-fg); font-family:var(--display); font-weight:700; font-size:10px; display:flex;
    align-items:center; justify-content:center; }
  .cmp-res-face img{ position:absolute; width:135%; height:auto; max-width:none; left:50%; top:4%; transform:translateX(-50%); display:block; }
  .cmp-res-none{ padding:10px 12px; font-size:12px; color:var(--text-faint); }
  /* rivalry cards: the two players face each other across the meeting count,
     standing on a divider like the player cards; the evidence sits below */
  .rcard-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(310px,1fr)); gap:14px; margin-bottom:12px; }
  .rcard{ position:relative; display:flex; flex-direction:column; background:var(--void); color:#fff;
    border-radius:12px; overflow:hidden; box-shadow:var(--shadow-2); isolation:isolate;
    transition:transform .16s ease, box-shadow .16s ease; }
  .rcard::before{ content:""; position:absolute; inset:0; border-radius:inherit; padding:1px; z-index:3;
    background:linear-gradient(150deg, rgba(255,255,255,.26), rgba(255,255,255,.05) 44%, rgba(255,255,255,0) 66%, rgba(255,255,255,.10));
    -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite:xor; mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite:exclude; pointer-events:none; opacity:.85; }
  .rcard:hover{ text-decoration:none; transform:translateY(-2px); box-shadow:var(--shadow-3); }
  .rcard:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; }
  .rcard .bloom{ inset:-40%; } .rcard .bloom i{ filter:blur(58px); }
  .rcard .bloom .b1{ opacity:.16; } .rcard .bloom .b2{ opacity:.09; }
  .rcard-in{ position:relative; z-index:2; display:flex; flex-direction:column; height:100%; }
  .rcard-stage{ display:grid; grid-template-columns:1fr auto 1fr; align-items:end; height:128px;
    padding:12px 16px 0; border-bottom:1px solid rgba(255,255,255,.12); }
  .rcard-fig{ display:flex; align-items:flex-end; height:100%; min-width:0; }
  .rcard-fig.a{ justify-content:flex-start; } .rcard-fig.b{ justify-content:flex-end; }
  .rcard-fig img{ height:112px; width:auto; display:block; margin-bottom:-1px;
    filter:drop-shadow(0 10px 22px rgba(0,0,0,.55)); }
  .rcard-mono{ font-family:var(--display); font-weight:700; font-size:62px; line-height:.8;
    letter-spacing:-.03em; color:rgba(255,255,255,.13); padding-bottom:10px; }
  .rcard-vs{ display:flex; flex-direction:column; align-items:center; align-self:center; padding:0 6px; }
  .rcard-vs b{ font-family:var(--display); font-weight:700; font-size:40px; line-height:1; color:#fff; }
  .rcard-vs span{ font-family:var(--mono); font-size:11px; font-weight:600; letter-spacing:0;
    text-transform:none; color:rgba(255,255,255,.56); margin-top:4px; }
  .rcard-names{ display:grid; grid-template-columns:1fr 1fr; gap:12px; padding:11px 16px 0; }
  .rcard-who{ min-width:0; } .rcard-who.b{ text-align:right; }
  .rcard-name{ font-family:var(--display); font-weight:600; font-size:16px; line-height:1.18;
    overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .rcard-who.a .rcard-name{ color:color-mix(in oklab, var(--accent) 55%, #fff); }
  .rcard-who.b .rcard-name{ color:color-mix(in oklab, var(--accent-2) 55%, #fff); }
  .rcard-team{ display:flex; align-items:center; gap:6px; margin-top:5px; font-size:11.5px;
    color:rgba(255,255,255,.62); min-width:0; }
  .rcard-who.b .rcard-team{ justify-content:flex-end; }
  .rcard-team span{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .rcard-ev{ padding:12px 16px 12px; margin-top:12px; background:rgba(255,255,255,.028);
    border-top:1px solid rgba(255,255,255,.08); }
  .rcard-row{ display:grid; grid-template-columns:auto 1fr auto; align-items:baseline; gap:10px; }
  .rcard-row b{ font-family:var(--display); font-weight:700; font-size:21px; line-height:1; font-variant-numeric:tabular-nums; }
  .rcard-row b.a{ color:color-mix(in oklab, var(--accent) 75%, #fff); } .rcard-row b.b{ color:color-mix(in oklab, var(--accent-2) 80%, #fff); }
  .rcard-row span{ text-align:center; font-family:var(--mono); font-size:11px; font-weight:600;
    letter-spacing:0; text-transform:none; color:rgba(255,255,255,.56); }
  .rcard-row.small{ margin-top:10px; } .rcard-row.small b{ font-size:15px; color:#fff; }
  .rcard-bar{ display:flex; gap:2px; height:6px; margin-top:8px; border-radius:3px; overflow:hidden; }
  .rcard-bar i{ display:block; height:100%; }
  .rcard-bar i.a{ background:var(--accent); } .rcard-bar i.b{ background:var(--accent-2); }
  .rcard-foot{ padding:9px 16px 12px; font-size:11px; color:rgba(255,255,255,.5);
    border-top:1px solid rgba(255,255,255,.06); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .rcard-note{ font-size:12px; color:var(--text-faint); padding:2px 2px 8px; max-width:70ch; }
  @media (max-width:560px){ .rcard-grid{ grid-template-columns:minmax(0,1fr); } }

  .cmp-sugg{ display:grid; grid-template-columns:28px 1fr 110px 1fr 28px; align-items:center; gap:10px;
    padding:11px 20px; border-top:1px solid var(--border); color:inherit; }
  .cmp-sugg:hover{ background:var(--surface-alt); text-decoration:none; }
  .cmp-sugg-face{ position:relative; width:28px; height:28px; border-radius:50%; overflow:hidden; background:var(--avatar-bg);
    color:var(--avatar-fg); font-family:var(--display); font-weight:700; font-size:11px; display:flex;
    align-items:center; justify-content:center; }
  .cmp-sugg-face img{ position:absolute; width:135%; height:auto; max-width:none; left:50%; top:4%; transform:translateX(-50%); display:block; }
  .cmp-sugg-name{ font-weight:600; font-size:13.5px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .cmp-sugg-name.right{ text-align:right; }
  .cmp-sugg-mid{ text-align:center; font-size:11.5px; font-weight:700; letter-spacing:0;
    text-transform:none; color:var(--text-faint); }
  a.cmp-name{ color:#fff; display:block; }
  a.cmp-name:hover{ text-decoration:underline; }
  a.cmp-face:hover{ opacity:.85; }
  @media (max-width:560px){
    .cmp-sugg{ grid-template-columns:24px 1fr 24px; grid-template-areas:"fa na na" "mi mi mi" "fb nb nb"; }
  }

  /* ---------------- Impact radar ---------------- */
  .head-sub{ margin-left:auto; font-family:var(--body); font-weight:400;
    font-size:12px; color:var(--text-faint); text-transform:none; letter-spacing:0; }
  .rd-ctlrow{ display:flex; align-items:center; gap:9px; flex-wrap:wrap; margin:-2px 0 14px; }
  .rd-ctllabel{ font-size:11.5px; font-weight:700; letter-spacing:0; text-transform:none; color:var(--text-faint); }
  .rd-select{ font-family:inherit; font-size:12px; font-weight:600; color:var(--text); background:var(--surface);
    border:1px solid var(--border); border-radius:100px; padding:5px 11px; cursor:pointer; max-width:280px; }
  .rd-select:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; }

  .rd-stage{ display:grid; grid-template-columns:minmax(0,1fr) 312px; align-items:start; max-width:1000px; }
  .rd-plot{ padding:10px 4px 14px 14px; min-width:0; }
  /* capped, so the SVG's type keeps the size it was drawn at instead of scaling
     up with the column on a wide screen */
  .rd-plot svg{ display:block; width:100%; max-width:540px; margin:0 auto; height:auto; overflow:visible; }
  .rd-side{ border-left:1px solid var(--border); padding:18px 22px 16px; }

  .zone{ fill:var(--surface-alt); stroke:none; }
  .ring{ fill:none; stroke:var(--border); stroke-width:1; }
  .ring-med{ fill:none; stroke:var(--text-faint); stroke-width:2; }
  .spoke{ stroke:var(--border); stroke-width:1; }
  .ax-name{ font-family:var(--display); font-weight:600; font-size:12.5px; letter-spacing:0;
    text-transform:none; fill:var(--text); }
  .ax-val{ font-family:var(--mono); font-weight:600; font-size:13px; fill:var(--text-muted); }
  .ax-pct{ font-family:var(--mono); font-weight:600; font-size:11px; fill:var(--accent); }
  .ring-lab{ font-family:var(--mono); font-size:9.5px; fill:var(--text-faint);
    stroke:var(--surface); stroke-width:3.2; paint-order:stroke; }
  .med-lab{ font-family:var(--display); font-weight:600; font-size:11.5px; letter-spacing:0;
    text-transform:none; fill:var(--text-faint); stroke:var(--surface); stroke-width:3.4; paint-order:stroke; }
  .poly{ fill:none; stroke:var(--accent); stroke-width:2.25; stroke-linejoin:round; }
  .ribbon{ fill:var(--accent); opacity:0.17; }
  .vtx{ fill:var(--accent); stroke:var(--surface); stroke-width:2; cursor:help; }
  .poly-cmp{ fill:none; stroke:var(--accent-2); stroke-width:2; stroke-linejoin:round; stroke-dasharray:5 3; }
  .vtx-cmp{ fill:var(--accent-2); stroke:var(--surface); stroke-width:2; }

  .rd-tier{ font-family:var(--display); font-weight:700; font-size:17px; letter-spacing:0.01em;
    text-transform:none; line-height:1.2; }
  .rd-meta{ font-size:11.5px; color:var(--text-faint); margin:3px 0 0; font-variant-numeric:tabular-nums; }
  .rd-rankline{ font-size:12.5px; color:var(--text); margin:6px 0 10px; padding-bottom:10px;
    border-bottom:1px solid var(--border); }
  .rd-rankline b{ font-family:var(--display); font-weight:700; font-size:19px; color:var(--accent); letter-spacing:0.01em; }
  .rd-rankline span{ color:var(--text-faint); }
  .rd-vs{ font-size:11.5px; color:var(--accent-2-ink); font-weight:600; margin-bottom:10px; }
  .rd-row{ display:grid; grid-template-columns:48px 1fr 62px; gap:9px; align-items:center;
    padding:8px 0; border-top:1px solid var(--border); }
  .rd-k{ font-family:var(--display); font-weight:600; font-size:11.5px; letter-spacing:0;
    text-transform:none; color:var(--text-muted); }
  .rd-raw{ font-size:10.5px; color:var(--text-faint); font-variant-numeric:tabular-nums; }
  .rd-track{ position:relative; height:6px; background:var(--surface-alt); border-radius:3px; }
  .rd-fill{ position:absolute; left:0; top:0; bottom:0; background:var(--accent); border-radius:3px; }
  .rd-med{ position:absolute; top:-3px; bottom:-3px; left:50%; width:1px; background:var(--text-faint); }
  .rd-num{ text-align:right; font-family:var(--display); font-weight:700; font-size:17px;
    font-variant-numeric:tabular-nums; line-height:1.1; }
  .rd-of{ font-family:var(--body); font-weight:500; font-size:9.5px;
    color:var(--text-faint); letter-spacing:0; }
  .rd-cmp{ font-family:var(--display); font-size:12px; font-weight:700; color:var(--accent-2);
    font-variant-numeric:tabular-nums; }
  .rd-flag{ margin-top:12px; font-size:11px; line-height:1.55; color:var(--accent-2-ink); }
  .rd-flag.ok{ color:var(--text-faint); }

  .rd-legend{ display:flex; gap:18px; flex-wrap:wrap; align-items:center; font-size:11.5px;
    color:var(--text-muted); padding:0 20px 14px; }
  .rd-legend .key{ display:inline-flex; align-items:center; gap:7px; }
  .rd-legend i{ width:15px; height:11px; border-radius:2px; display:inline-block; flex:none; }
  .k-p{ border:2px solid var(--accent); }
  .k-r{ background:var(--accent); opacity:.3; }
  .k-c{ border:2px dashed var(--accent-2); }
  .k-m{ background:var(--surface-alt); border:2px solid var(--text-faint); }

  .rd-subhead{ display:flex; align-items:baseline; gap:10px; flex-wrap:wrap; padding:13px 20px;
    border-top:1px solid var(--border); background:var(--surface-alt); font-family:var(--display);
    font-weight:600; font-size:13px; letter-spacing:0; text-transform:none; }
  .rd-subhead span{ font-family:var(--body); font-weight:400; font-size:11.5px;
    letter-spacing:0; text-transform:none; color:var(--text-muted); }
  .rd-smalls{ display:grid; grid-template-columns:repeat(auto-fit,minmax(128px,1fr)); }
  .rd-sm{ background:none; border:none; border-right:1px solid var(--border); border-bottom:1px solid var(--border);
    padding:12px 8px 13px; cursor:pointer; font-family:inherit; color:inherit; text-align:center; }
  .rd-sm:hover{ background:var(--surface-alt); }
  .rd-sm[aria-pressed="true"]{ background:var(--accent-soft); }
  .rd-sm:focus-visible{ outline:2px solid var(--accent); outline-offset:-2px; }
  .rd-sm svg{ width:100%; max-width:100px; margin:0 auto; display:block; }
  .rd-sm .poly{ stroke-width:1.7; fill:var(--accent-soft); }
  .rd-sm .ring-med{ stroke-width:1.4; }
  .rd-sm-name{ font-family:var(--display); font-weight:600; font-size:11.5px; letter-spacing:0;
    text-transform:none; line-height:1.25; min-height:2.4em; display:flex; align-items:center;
    justify-content:center; margin-top:6px; }
  .rd-sm-meta{ font-size:10.5px; color:var(--text-muted); font-variant-numeric:tabular-nums; }

  @media (max-width:1000px){
    .rd-stage{ grid-template-columns:minmax(0,1fr); }
    .rd-side{ border-left:none; border-top:1px solid var(--border); }
  }
  @media (max-width:560px){
    .ax-name{ font-size:17px; } .ax-val{ font-size:17px; } .ax-pct{ font-size:14px; }
    .ring-lab{ font-size:13px; } .med-lab{ font-size:14px; }
    .rd-smalls{ grid-template-columns:repeat(2,minmax(0,1fr)); }
    .rd-plot{ padding:8px 4px 12px; }
  }

  /* ---------------- Impact tab: charts drawn with positioned HTML -------- */
  .im-bar-row{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:14px; }
  .im-bar-label{ font-size:11.5px; font-weight:700; letter-spacing:0; text-transform:none; color:var(--text-faint); }
  .im-table-toggle{ margin-left:auto; }
  .im-intro{ font-size:13px; color:var(--text-muted); max-width:78ch; line-height:1.6; margin-bottom:18px; }
  .im-intro b{ color:var(--text); }

  .im-card{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow); margin-bottom:18px; overflow:hidden; }
  .im-head{ padding:16px 20px 0; }
  .im-title{ font-family:var(--display); font-weight:600; font-size:15px; letter-spacing:0; text-transform:none; }
  .im-sub{ font-size:12px; color:var(--text-muted); margin-top:4px; line-height:1.55; max-width:82ch; }
  .im-sub b{ color:var(--text); }
  .im-note{ border-top:1px solid var(--border); padding:10px 20px; font-size:11px; color:var(--text-faint); line-height:1.55; }
  .im-empty{ padding:22px 20px; font-size:13px; color:var(--text-muted); }
  .im-legend{ display:flex; gap:18px; flex-wrap:wrap; padding:12px 20px 0; font-size:11.5px; color:var(--text-muted); }
  .im-legend .key{ display:inline-flex; align-items:center; gap:6px; }
  .im-legend i{ width:14px; height:10px; border-radius:2px; flex:none; display:inline-block; }
  .im-legend .k-bar{ background:var(--accent); }
  .im-legend .k-ci{ background:var(--accent-soft); border:1px solid var(--accent); }
  .im-legend .k-hatch{ background:repeating-linear-gradient(135deg,var(--accent-soft) 0 3px,var(--surface) 3px 6px); border:1px solid var(--accent); }
  .im-legend .k-dot{ width:9px; height:9px; border-radius:50%; background:var(--accent); }
  .im-legend .k-mean{ width:3px; height:13px; border-radius:0; background:var(--accent); }
  .im-legend .k-league{ width:3px; height:13px; border-radius:0; background:var(--accent-2); }

  .im-rows{ padding:12px 20px 16px; }
  .im-axis{ position:relative; height:16px; margin-left:184px; margin-right:136px; font-size:10px; color:var(--text-faint); font-variant-numeric:tabular-nums; }
  .im-axis span{ position:absolute; transform:translateX(-50%); white-space:nowrap; }
  .im-axis span:first-child{ transform:none; }
  .im-axis span:last-child{ transform:translateX(-100%); }
  .im-axis-bottom{ margin-top:6px; }

  .im-row{ border-bottom:1px solid var(--border); }
  .im-row:last-child{ border-bottom:none; }
  .im-row, .im-drow{ display:grid; grid-template-columns:184px 1fr 52px 84px; align-items:center; gap:0; padding:7px 0; }
  .im-drow{ grid-template-columns:184px 1fr; }
  .im-label{ display:flex; align-items:baseline; gap:6px; background:none; border:none; padding:0 10px 0 0; text-align:left; cursor:pointer; font-family:inherit; color:var(--text); min-width:0; }
  .im-label-static{ cursor:default; }
  .im-label-txt{ font-size:12.5px; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .im-label:hover .im-label-txt{ color:var(--accent); }
  .im-n{ font-size:10.5px; color:var(--text-faint); font-variant-numeric:tabular-nums; margin-left:auto; flex:none; }
  .im-caret{ font-size:9px; color:var(--text-faint); transition:transform .12s; flex:none; }
  .im-caret.open{ transform:rotate(90deg); }

  .im-track{ position:relative; height:22px; background:var(--surface-alt); border-radius:2px; }
  .im-track-sm{ height:14px; }
  .im-grid{ position:absolute; top:0; bottom:0; width:1px; background:var(--border); }
  .im-ci{ position:absolute; top:2px; bottom:2px; z-index:2; background:var(--accent-soft); background:color-mix(in oklab, var(--accent) 20%, transparent); border-left:2px solid var(--accent); border-right:2px solid var(--accent); border-radius:1px; }
  .im-bar{ position:absolute; left:0; top:5px; bottom:5px; background:var(--accent); border-radius:0 2px 2px 0; }
  .im-bar-small{ background:repeating-linear-gradient(135deg,var(--accent) 0 3px,transparent 3px 6px); border:1px solid var(--accent); }
  .im-dot{ position:absolute; z-index:3; top:50%; width:9px; height:9px; margin:-4.5px 0 0 -4.5px; border-radius:50%; background:var(--accent); box-shadow:0 0 0 2px var(--surface); }
  .im-dot-sm{ width:7px; height:7px; margin:-3.5px 0 0 -3.5px; }
  .im-dot-open{ background:var(--surface); border:2px solid var(--accent); }
  .im-none{ position:absolute; left:8px; top:3px; font-size:10.5px; color:var(--text-faint); }
  .im-val{ text-align:right; padding-left:10px; font-variant-numeric:tabular-nums; }
  .im-val b{ font-family:var(--display); font-size:17px; font-weight:700; }
  .im-val span{ font-size:9.5px; color:var(--text-faint); }
  .im-val-sm b, .im-val-sm{ font-size:11.5px; color:var(--text-muted); }
  .im-raw{ text-align:right; font-size:12px; font-variant-numeric:tabular-nums; color:var(--text-muted); padding-left:12px; }
  .im-raw em{ font-style:normal; font-size:9.5px; color:var(--text-faint); margin-left:4px; }
  .im-raw-sm{ font-size:11px; }
  .im-flag{ display:block; font-size:11px; font-weight:700; letter-spacing:0; text-transform:none; color:var(--accent-2-ink); margin-top:1px; cursor:help; white-space:nowrap; }
  .im-flag-wide{ color:var(--text-faint); }

  .im-subs{ grid-column:1 / -1; padding:4px 0 8px 22px; border-top:1px dashed var(--border); margin-top:6px; }
  .im-sub-row{ display:grid; grid-template-columns:162px 1fr 52px 84px; align-items:center; gap:0; padding:3px 0; }
  .im-sub-label{ font-size:11px; color:var(--text-muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; padding-right:10px; }

  .im-strip{ position:relative; height:34px; background:var(--surface-alt); border-radius:2px; }
  .im-gdot{ position:absolute; width:8px; height:8px; margin:-4px 0 0 -4px; border-radius:50%; background:var(--accent); opacity:.62; box-shadow:0 0 0 1.5px var(--surface); cursor:help; }
  .im-gdot:hover{ opacity:1; }
  .im-rule{ position:absolute; top:0; bottom:0; width:2px; margin-left:-1px; cursor:help; }
  .im-rule-mean{ background:var(--accent); }
  .im-rule-league{ background:var(--accent-2); }

  .im-plot{ position:relative; padding:16px 20px 8px 78px; }
  .im-plot-area{ position:relative; height:260px; background:var(--surface-alt); border-left:1px solid var(--border); border-bottom:1px solid var(--border); }
  .im-hgrid{ position:absolute; left:0; right:0; height:1px; background:var(--border); }
  .im-plot-y{ position:absolute; left:22px; top:16px; width:50px; height:260px; font-size:10px; color:var(--text-faint); font-variant-numeric:tabular-nums; }
  .im-plot-y span{ position:absolute; right:6px; transform:translateY(-50%); }
  .im-plot-x{ position:relative; height:18px; font-size:10px; color:var(--text-faint); font-variant-numeric:tabular-nums; }
  .im-plot-x span{ position:absolute; transform:translateX(-50%); top:4px; }
  .im-plot-xlab{ text-align:center; font-size:10.5px; color:var(--text-muted); }
  .im-plot-ylab{ position:absolute; left:-26px; top:50%; transform:rotate(-90deg); transform-origin:center; font-size:10.5px; color:var(--text-muted); white-space:nowrap; }
  .im-iqr{ position:absolute; background:var(--accent-2-soft); border:1px solid var(--accent-2); opacity:.65; }
  .im-cross-v{ position:absolute; top:0; bottom:0; width:1px; background:var(--accent-2); }
  .im-cross-h{ position:absolute; left:0; right:0; height:1px; background:var(--accent-2); }
  .im-pt{ position:absolute; width:11px; height:11px; margin:-5.5px 0 0 -5.5px; border-radius:50%; background:var(--surface); border:2px solid var(--accent); cursor:help; }
  .im-pt-on{ background:var(--accent); }
  .im-pt-label{ position:absolute; font-size:9.5px; font-weight:600; color:var(--text-muted); transform:translateY(-50%); white-space:nowrap; pointer-events:none; }
  .im-leader{ position:absolute; width:1px; margin-left:-0.5px; background:var(--border); }
  .im-th-sm{ font-size:9px !important; color:var(--text-faint) !important; }
  .im-td-small{ color:var(--text-faint); }

  .im-tip{ position:fixed; z-index:60; pointer-events:none; background:var(--on-bg); color:var(--on-fg); font-size:11.5px; line-height:1.5; padding:8px 11px; border-radius:4px; max-width:280px; white-space:pre-line; opacity:0; transition:opacity .1s; font-variant-numeric:tabular-nums; box-shadow:0 4px 14px rgba(0,0,0,.28); }
  .im-tip.on{ opacity:1; }

  /* A column header that can explain itself. Sortable headers keep the click
     cursor — the tooltip is a bonus there, not the primary action — while a
     read-only header says "hover me" the only way a cursor can. */
  th[data-imtip]{ cursor: help; }
  th[data-csort][data-imtip], th[data-gsort][data-imtip]{ cursor: pointer; }
  th[data-imtip]:hover{ color: var(--text); text-decoration: underline dotted; text-underline-offset: 3px; }

  @media (max-width:900px){
    .im-row, .im-drow{ grid-template-columns:124px 1fr 44px 72px; }
    .im-drow{ grid-template-columns:124px 1fr; }
    .im-axis{ margin-left:124px; margin-right:116px; }
    .im-sub-row{ grid-template-columns:110px 1fr 44px 72px; }
    .im-plot-area{ height:210px; }
  }
  /* Narrow screens: the track needs the full width to stay readable, so the
     row breaks into two lines rather than squeezing a 0–100 scale into 90px. */
  @media (max-width:700px){
    .im-rows{ padding:12px 14px 16px; }
    .im-row, .im-sub-row{ grid-template-columns:1fr 44px 78px;
      grid-template-areas:"lab val raw" "trk trk trk"; row-gap:5px; padding:9px 0; }
    .im-drow{ grid-template-columns:1fr; grid-template-areas:"lab" "trk"; row-gap:4px; }
    .im-label, .im-sub-label{ grid-area:lab; }
    .im-track, .im-strip{ grid-area:trk; }
    .im-val{ grid-area:val; }
    .im-raw{ grid-area:raw; }
    .im-axis{ margin-left:0; margin-right:0; }
    .im-subs{ padding-left:10px; }
    .im-n{ margin-left:8px; }
    .im-flag{ display:block; margin-left:0; font-size:8.5px; }
    .im-plot{ padding:14px 14px 8px 56px; }
    .im-plot-y{ left:10px; width:42px; }
    .im-plot-ylab{ left:-30px; }
    .im-pt-label{ font-size:9px; }
  }

  .crest-logo{ object-fit:contain; flex:none; display:block; }
  /* a 2:1 flag inside the square every crest occupies, with a hairline so a
     white-banded flag still has an edge on a white card */
  .crest-flag{ flex:none; display:flex; align-items:center; justify-content:center; }
  .crest-flag img{ width:100%; height:auto; display:block; border:1px solid var(--border);
    border-radius:2px; }
  .row{ display:grid; grid-template-columns:90px 1fr 1fr 170px; align-items:center; gap:16px; padding:16px 20px; border-bottom:1px solid var(--border); }
  .row:last-child{ border-bottom:none; }
  .row.clickable{ cursor:pointer; }
  .row.clickable:hover{ background:var(--surface-alt); }
  .r-date{ font-size:12px; color:var(--text-faint); }
  .r-date .d1{ font-weight:600; color:var(--text-muted); }
  .team{ display:flex; align-items:center; gap:10px; font-size:14px; font-weight:600; }
  .score{ margin-left:auto; font-variant-numeric:tabular-nums; font-weight:700; }
  .win .name, .win .score{ color:var(--text); }
  .loss .name, .loss .score{ color:var(--text-faint); font-weight:500; }
  .venue{ text-align:right; font-size:12px; color:var(--text-muted); }
  .venue .box-link{ display:block; font-size:11px; font-weight:600; margin-top:3px; }

  .team-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:16px; }
  .team-card{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow); padding:18px 20px; cursor:pointer; }
  .team-card:hover{ border-color:var(--accent); }
  .team-card-head{ display:flex; align-items:center; gap:12px; margin-bottom:12px; }
  .team-card-sw{ width:44px; height:44px; border-radius:10px; }
  .team-card-name{ font-family:var(--display); font-weight:700; font-size:16px; letter-spacing:0.01em; text-transform:none; color:var(--text); }
  .team-card-rank{ font-size:11.5px; color:var(--text-muted); margin-top:2px; }
  .form-dots{ display:flex; gap:5px; margin-top:10px; }
  .form-dot{ width:9px; height:9px; border-radius:50%; }
  .form-dot.w{ background:var(--positive); }
  .form-dot.l{ background:var(--negative); }
  .team-card-stats{ display:flex; gap:18px; font-size:12px; color:var(--text-muted); margin-top:10px; }
  .team-card-stats b{ color:var(--text); font-family:var(--display); }

  .header{ display:flex; align-items:center; gap:20px; margin-bottom:22px; flex-wrap:wrap; }
  .big-swatch{ width:72px; height:72px; border-radius:14px; background:var(--accent); color:#fff; font-family:var(--display); font-weight:700; font-size:20px; display:flex; align-items:center; justify-content:center; flex:none; }
  .big-avatar{ width:72px; height:72px; border-radius:50%; background:var(--accent-soft); color:var(--accent); font-family:var(--display); font-weight:700; font-size:24px; display:flex; align-items:center; justify-content:center; flex:none; }
  .h-name{ font-family:var(--display); font-weight:700; font-size:30px; letter-spacing:0.005em; text-transform:none; }
  .h-meta{ font-size:13px; color:var(--text-muted); margin-top:4px; display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
  .team-sw{ width:12px; height:12px; border-radius:3px; display:inline-block; }
  .rank-pill{ font-size:11px; font-weight:700; color:var(--accent); background:var(--accent-soft); border-radius:4px; padding:2px 7px; }

  .rank-row{ display:grid; grid-template-columns:1fr 90px 90px; align-items:center; gap:12px; padding:14px 20px; border-bottom:1px solid var(--border); }
  .rank-row:last-child{ border-bottom:none; }
  .rank-label{ font-size:13px; font-weight:600; }
  .rank-badge{ font-family:var(--display); font-weight:700; font-size:13px; color:var(--accent); background:var(--accent-soft); border-radius:100px; padding:5px 12px; text-align:center; }
  .rank-val{ font-family:var(--display); font-weight:700; font-size:15px; text-align:right; font-variant-numeric:tabular-nums; }
  .split-bar{ height:8px; border-radius:100px; background:var(--surface-alt); overflow:hidden; margin-top:6px; }
  .split-fill{ height:100%; border-radius:100px; background:var(--accent); }
  .empty-row{ padding:18px 20px; display:flex; align-items:center; gap:10px; color:var(--text-faint); font-size:12.5px; border-bottom:1px solid var(--border); }
  .empty-row:last-child{ border-bottom:none; }
  .empty-dot{ width:6px; height:6px; border-radius:50%; border:1.5px dashed var(--text-faint); flex:none; }

  .lead-grid{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
  .lead-card{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow); overflow:hidden; }
  .lead-head{ padding:13px 16px; border-bottom:1px solid var(--border); font-family:var(--display); font-weight:700; font-size:14.5px; letter-spacing:0; text-transform:none; display:flex; align-items:center; justify-content:space-between; }
  .lead-head span{ font-size:11.5px; font-weight:600; color:var(--text-faint); text-transform:none; letter-spacing:0; }
  .lead-row{ display:flex; align-items:center; gap:10px; padding:9px 16px; border-bottom:1px solid var(--border); font-size:12.5px; }
  .lead-row:last-child{ border-bottom:none; }
  .lead-rank{ width:14px; color:var(--text-faint); font-weight:700; font-size:11px; }
  .lead-name{ flex:1; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .lead-team{ font-size:10.5px; color:var(--text-faint); }
  .lead-val{ font-weight:700; font-variant-numeric:tabular-nums; color:var(--accent); }

  .formula-grid{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
  .formula-card{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow); padding:16px 18px; }
  .formula-top{ display:flex; align-items:baseline; justify-content:space-between; gap:10px; margin-bottom:6px; }
  .formula-name{ font-family:var(--display); font-weight:700; font-size:14px; }
  .formula-status{ font-size:11.5px; font-weight:700; letter-spacing:0; text-transform:none; border-radius:100px; padding:3px 9px; white-space:nowrap; }
  .fs-live{ color:var(--positive); background:var(--positive-soft); }
  .fs-sourced{ color:var(--accent); background:var(--accent-soft); }
  .fs-pending{ color:var(--text-faint); background:var(--surface-alt); }
  .formula-expr{ font-family:ui-monospace,'SF Mono',Consolas,monospace; font-size:12px; color:var(--accent-2); background:var(--accent-2-soft); border-radius:4px; padding:8px 10px; margin-bottom:8px; overflow-x:auto; white-space:nowrap; }
  .formula-desc{ font-size:12px; color:var(--text-muted); line-height:1.5; }

  .adv-cell{ display:inline-flex; align-items:center; justify-content:center; min-width:44px; padding:3px 8px; border-radius:5px; font-weight:700; font-variant-numeric:tabular-nums; }
  .heat-4{ background:oklch(88% 0.09 148); color:oklch(28% 0.09 148); }
  .heat-3{ background:oklch(94% 0.045 148); color:oklch(34% 0.09 148); }
  .heat-2{ background:oklch(95% 0.03 60); color:var(--text-muted); }
  .heat-1{ background:oklch(93% 0.06 25); color:oklch(42% 0.15 25); }
  .tsa-low{ color:var(--text-faint); font-weight:400; font-size:11.5px; }
  .pm-pos{ color:var(--positive-ink); font-weight:700; }
  .pm-neg{ color:var(--negative); font-weight:700; }
  .win-txt{ color:var(--positive); font-weight:600; }
  .loss-txt{ color:var(--negative); font-weight:600; }

  .matchup-head{ display:flex; align-items:center; padding:24px 28px; gap:28px; flex-wrap:wrap; }
  .mside{ flex:1; display:flex; align-items:center; gap:14px; min-width:180px; }
  .mside.right{ flex-direction:row-reverse; text-align:right; }
  .m-swatch{ width:48px; height:48px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:13px; font-weight:700; color:#fff; flex:none; }
  .m-name{ font-family:var(--display); font-weight:700; font-size:18px; letter-spacing:0.01em; text-transform:none; }
  .m-rec{ font-size:12px; color:var(--text-muted); margin-top:2px; }
  .m-mid{ text-align:center; flex:none; padding:0 20px; }
  .m-score{ font-family:var(--display); font-weight:700; font-size:36px; letter-spacing:-0.01em; }
  .m-status{ font-size:11.5px; font-weight:700; letter-spacing:0; text-transform:none; color:var(--accent); margin-top:2px; }
  .m-meta{ display:flex; gap:16px; padding:0 28px 20px; font-size:12px; color:var(--text-muted); border-top:1px solid var(--border); padding-top:16px; margin:0 28px 20px; flex-wrap:wrap; }
  .team-stat-table td, .team-stat-table th{ text-align:center; }
  .team-stat-table th.left, .team-stat-table td.left{ text-align:left; }

  /* ---------------- Match sub-tabs ---------------- */
  .mmatch{ margin-bottom:14px; }
  .mper{ margin:0; }
  .msub{ display:flex; gap:4px; margin:0 0 16px; flex-wrap:wrap; }
  .msub-t{ font-family:var(--display); font-size:12.5px; font-weight:600; letter-spacing:0;
    text-transform:none; color:var(--text-muted); padding:8px 15px; border-radius:8px;
    background:var(--surface-alt); border:1px solid transparent; }
  .msub-t:hover{ text-decoration:none; color:var(--text); }
  .msub-t.on{ background:var(--void); color:#fff; }
  .msub-t.msub-off{ opacity:.45; }
  .msub-t.msub-off.on{ opacity:1; }

  /* ---------------- Play-by-play (FIBA-style) ---------------- */
  .pbp-card{ padding:0; overflow:hidden; }
  .pbp-tabs{ display:flex; gap:4px; padding:12px 14px; flex-wrap:wrap;
    background:var(--surface); border-bottom:1px solid var(--border); }
  .pbp-tab{ font-family:var(--mono); font-size:11px; font-weight:600; letter-spacing:0.08em;
    color:var(--text-muted); background:var(--surface-alt); border:1px solid var(--border);
    border-radius:7px; padding:6px 14px; cursor:pointer; }
  .pbp-tab:hover{ color:var(--text); }
  .pbp-tab.on{ background:var(--accent); color:#fff; border-color:transparent; }
  .pbp-loading{ display:flex; align-items:center; justify-content:center; gap:10px; padding:48px;
    color:var(--text-muted); font-size:13px; }
  .pbp-spin{ width:16px; height:16px; border-radius:50%; border:2px solid var(--border);
    border-top-color:var(--accent); animation:pbpspin .7s linear infinite; }
  @keyframes pbpspin{ to{ transform:rotate(360deg); } }
  /* the feed: separate event cards floating on the page ground, as FIBA's is */
  .pbpx{ display:flex; flex-direction:column; gap:6px; padding:12px; background:var(--bg); }
  /* period filter: hide rows whose period doesn't match the selected one */
  .pbpx[data-per="1"] .pbprow:not([data-per="1"]),
  .pbpx[data-per="2"] .pbprow:not([data-per="2"]),
  .pbpx[data-per="3"] .pbprow:not([data-per="3"]),
  .pbpx[data-per="4"] .pbprow:not([data-per="4"]),
  .pbpx[data-per="5"] .pbprow:not([data-per="5"]),
  .pbpx[data-per="6"] .pbprow:not([data-per="6"]),
  .pbpx[data-per="7"] .pbprow:not([data-per="7"]),
  .pbpx[data-per="8"] .pbprow:not([data-per="8"]),
  .pbpx[data-per="OT"] .pbprow:not([data-per="OT"]){ display:none; }
  /* an ordinary event: clock · crest · "12 Name action" · score, on its own card
     with the team's colour down the left edge */
  .pbprow{ display:grid; grid-template-columns:48px 20px 1fr auto; align-items:center; gap:10px;
    padding:10px 16px 10px 14px; font-size:13.5px; min-height:44px; background:var(--surface);
    border-radius:6px; border-left:4px solid var(--tc, var(--border));
    box-shadow:0 1px 2px color-mix(in oklab, var(--text) 6%, transparent); }
  .pbp-t{ font-family:var(--mono); font-size:13px; font-weight:500; color:var(--text-muted);
    font-variant-numeric:tabular-nums; letter-spacing:-0.01em; }
  .pbp-crest{ display:inline-flex; align-items:center; justify-content:center; }
  .pbp-crest .crest-logo, .pbp-crest .crest-flag, .pbp-crest .swatch{ width:18px !important; height:18px !important; font-size:7px !important; }
  .pbp-line{ min-width:0; line-height:1.4; color:var(--text); }
  .pbp-no{ color:var(--text-muted); font-variant-numeric:tabular-nums; }
  .pbp-nm{ font-weight:700; }
  .pbp-nm a{ color:inherit; }
  .pbp-ac{ color:var(--text-muted); }
  .pbp-ac.sub-out{ color:var(--text-faint); }
  .pbp-run{ font-family:var(--mono); font-size:13px; font-weight:500; text-align:right; white-space:nowrap;
    color:var(--text-muted); font-variant-numeric:tabular-nums; }
  .pbp-run b{ font-weight:700; color:var(--text); }

  /* a scoring play: the tall card — team panel with the clock, crest and the
     scorer's portrait (or jersey number), then name, points badge and action */
  .pbprow.pbp-big{ grid-template-columns:150px 1fr auto; align-items:stretch; gap:0; padding:0;
    min-height:132px; border-left:0; overflow:hidden; }
  .pbp-side{ position:relative; overflow:hidden; }
  .pbp-side::before{ content:""; position:absolute; inset:0; background:var(--tc);
    clip-path:polygon(0 0, 100% 0, 74% 100%, 0 100%); }
  .pbp-big .pbp-t{ position:absolute; top:12px; left:14px; z-index:2; color:#fff; font-weight:600; }
  .pbp-big .pbp-crest{ position:absolute; left:10px; bottom:10px; z-index:3; background:#fff;
    border-radius:5px; padding:3px; box-shadow:0 1px 3px rgba(0,0,0,.25); }
  .pbp-big .pbp-crest .crest-logo, .pbp-big .pbp-crest .crest-flag, .pbp-big .pbp-crest .swatch{ width:22px !important; height:22px !important; font-size:8px !important; }
  .pbp-face{ position:absolute; right:4px; bottom:0; z-index:1; height:118px; display:block; }
  .pbp-face img{ height:100%; width:auto; display:block; filter:drop-shadow(0 2px 6px rgba(0,0,0,.3)); }
  .pbp-jersey{ position:absolute; left:42px; bottom:4px; z-index:1; font-family:var(--display);
    font-size:64px; font-weight:700; line-height:1; color:#fff; opacity:.9; letter-spacing:-0.02em;
    text-shadow:0 2px 10px rgba(0,0,0,.25); }
  .pbp-jersey.long{ font-size:40px; bottom:10px; }
  .pbp-main{ display:flex; flex-direction:column; justify-content:center; gap:8px; padding:14px 12px 14px 22px; min-width:0; }
  .pbp-who{ font-size:18px; line-height:1.25; color:var(--text); }
  .pbp-what{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
  .pbp-pts{ background:var(--tc); color:#fff; font-family:var(--mono); font-size:12px; font-weight:700;
    border-radius:4px; padding:2px 6px; line-height:1.3; }
  .pbp-big .pbp-run{ align-self:start; padding:14px 16px 0 0; font-size:14px; }

  /* game / period markers */
  .pbp-neutral{ grid-template-columns:48px 1fr auto; border-left-color:transparent; box-shadow:none;
    background:color-mix(in oklab, var(--surface) 60%, transparent); min-height:36px; }
  .pbp-nb{ text-align:center; font-family:var(--mono); font-size:11.5px; font-weight:600;
    letter-spacing:0; text-transform:none; color:var(--text-muted); }
  .pbp-neutral.big{ background:var(--void); }
  .pbp-neutral.big .pbp-nb{ color:#fff; } .pbp-neutral.big .pbp-t, .pbp-neutral.big .pbp-run{ color:rgba(255,255,255,.6); }

  @media (max-width:560px){
    .pbpx{ padding:8px; gap:5px; }
    .pbprow{ grid-template-columns:40px 18px 1fr auto; gap:8px; padding:9px 10px; font-size:13px; }
    .pbprow.pbp-big{ grid-template-columns:104px 1fr auto; min-height:108px; }
    .pbp-face{ height:94px; right:0; }
    .pbp-jersey{ font-size:40px; left:40px; }
    .pbp-jersey.long{ font-size:26px; }
    .pbp-main{ padding:12px 6px 12px 14px; }
    .pbp-who{ font-size:15.5px; }
    .pbp-big .pbp-run{ padding:12px 10px 0 0; font-size:13px; }
  }

  /* ---------------- Team analysis ---------------- */
  .ta-teams{ display:flex; justify-content:space-between; margin-bottom:12px; gap:12px; }
  .ta-team{ font-family:var(--display); font-weight:700; text-transform:none; letter-spacing:0; }
  .ta-team.right{ text-align:right; }
  .ta-card{ padding:16px 18px; margin-bottom:14px; }
  .ta-note{ font-family:var(--sans,inherit); font-size:11px; font-weight:400; color:var(--text-faint);
    text-transform:none; letter-spacing:0; margin-left:8px; }
  .ta-row{ display:grid; grid-template-columns:1fr auto 1fr; align-items:baseline; gap:12px; margin-top:14px; }
  .ta-h{ font-family:var(--display); font-weight:700; font-size:17px; font-variant-numeric:tabular-nums; }
  .ta-a{ font-family:var(--display); font-weight:700; font-size:17px; text-align:right; font-variant-numeric:tabular-nums; }
  .ta-h small, .ta-a small{ font-family:var(--mono); font-size:10px; font-weight:500; color:var(--text-faint); }
  .ta-lab{ font-size:12px; color:var(--text-muted); text-align:center; white-space:nowrap; }
  .ta-bars{ display:flex; gap:3px; margin-top:6px; height:6px; }
  .ta-bar{ height:100%; border-radius:3px; min-width:2px; }
  .ta-bar.h{ background:var(--text-faint); } .ta-bar.a{ background:var(--text-faint); opacity:.5; }
  .ta-bar.h.win{ background:var(--accent); } .ta-bar.a.win{ background:var(--accent-2); opacity:1; }

  .footer-note{ text-align:center; font-size:11.5px; color:var(--text-faint); padding:24px 32px 40px; max-width:1320px; margin:0 auto; line-height:1.6; }
  .sync-pill{ display:inline-flex; align-items:center; gap:6px; font-size:11px; color:var(--text-faint); }
  .sync-dot{ width:6px; height:6px; border-radius:50%; background:var(--positive); }

  @media (max-width: 900px){
    /* the phone used to lose the whole nav; instead the bar
       gives up its fixed height, keeps the wordmark and controls on one line
       and lets the section links wrap to a scrollable second line */
    .nav{ height:auto; flex-wrap:wrap; row-gap:8px; padding:10px 16px; position:static; }
    .nav-left{ flex:1 1 auto; flex-wrap:wrap; gap:10px 12px; min-width:0; max-width:calc(100% - 190px); }
    .wordmark{ font-size:16px; }
    .nav-links{ order:3; flex-basis:100%; gap:4px; height:auto; overflow-x:auto;
      -webkit-overflow-scrolling:touch; padding-bottom:1px; scrollbar-width:none; }
    .nav-links::-webkit-scrollbar{ height:0; }
    .nav-link{ height:auto; font-size:12px; padding:6px 11px; white-space:nowrap; flex:none; }
    .nav-right{ flex:0 0 auto; }
    .tiles{ grid-template-columns:repeat(2,minmax(0,1fr)); }
    .lead-grid{ grid-template-columns:1fr; }
    .formula-grid{ grid-template-columns:1fr; }
    .row{ grid-template-columns:70px 1fr; }
    .venue{ display:none; }
  }
  @media (max-width: 560px){
    .nav-left{ max-width:calc(100% - 46px); }
  }

  /* ---- multi-competition additions ---- */
  select.filter{ appearance:none; -webkit-appearance:none; padding-right:28px; cursor:pointer;
    background-image:linear-gradient(45deg,transparent 50%,var(--text-muted) 50%),linear-gradient(135deg,var(--text-muted) 50%,transparent 50%);
    background-position:calc(100% - 14px) 55%, calc(100% - 9px) 55%; background-size:5px 5px,5px 5px; background-repeat:no-repeat; }
  input.filter{ font-weight:500; }
  input.filter:focus-visible, select.filter:focus-visible{ outline:2px solid var(--accent); outline-offset:1px; border-color:var(--accent); }
  .detail-group{ border-top:1px solid var(--border); }
  .detail-group:first-of-type{ border-top:none; }
  .detail-group-title{ padding:12px 20px 6px; font-size:11.5px; font-weight:700; letter-spacing:0;
    text-transform:none; color:var(--text-faint); }
  .detail-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(168px,1fr));
    border-top:1px solid var(--border); }
  .detail-item{ background:var(--surface); padding:10px 20px;
    border-right:1px solid var(--border); border-bottom:1px solid var(--border); }
  .detail-label{ font-size:11px; color:var(--text-muted); }
  .detail-value{ font-family:var(--display); font-weight:700; font-size:17px; margin-top:2px;
    font-variant-numeric:tabular-nums; }
  .foot .tab{ padding:5px 12px; font-size:11.5px; border:1px solid var(--border); background:var(--surface); margin-left:6px; }
  .foot .tab:hover:not([disabled]){ background:var(--on-bg); color:var(--on-fg); border-color:var(--on-bg); }
  .subnav-crumb-link{ color:var(--text-muted); }
  .lead-grid{ grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); }
  td .team{ font-weight:500; }
  .totals td{ background:var(--surface-alt); }
  @media (max-width: 900px){
    .detail-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
    .header{ gap:14px; }
    .h-name{ font-size:22px; }
  }
  td.comp-cell{ white-space:normal; max-width:430px; }
  td.comp-cell .p-name{ line-height:1.3; }

  /* ---- player profile: dark hero, tier tables, highs ---- */
  /* the hero is a stage, not a coloured rectangle: a bloom underneath, a glass
     plate floating on it, and the type on the plate */
  .hero{ background:var(--void); border-radius:18px; overflow:hidden; margin-bottom:16px;
    position:relative; box-shadow:var(--shadow-3); isolation:isolate; }
  .hero::after{ content:""; position:absolute; left:0; right:0; top:0; height:240px; z-index:1;
    background:linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,0)); pointer-events:none; }
  .hero-plate{ position:relative; z-index:2; margin:20px; border-radius:14px;
    background:linear-gradient(168deg, rgba(255,255,255,.055), rgba(255,255,255,.012) 46%, rgba(0,0,0,.20));
    overflow:hidden; }
  .hero-main{ display:flex; gap:26px; padding:24px 26px 0; align-items:flex-start; position:relative; z-index:1; }
  .hero-photo{ width:120px; height:152px; border-radius:12px; flex:none; overflow:hidden;
    background:rgba(255,255,255,.05); }
  .hero-photo-inner{ width:100%; height:100%; border-radius:inherit; display:flex; align-items:center; justify-content:center;
    background:rgba(255,255,255,.07); color:rgba(255,255,255,.62); font-family:var(--display); font-weight:700; font-size:34px; }
  .hero-photo img{ width:100%; height:100%; object-fit:cover; object-position:top center;
    border-radius:inherit; display:block; }
  .hero-body{ flex:1; min-width:0; }
  /* background-clip:text paints only inside the element's own box, so a
     line-height of 1 leaves descenders unpainted — hence the extra leading */
  .hero-name{ font-family:var(--display); font-weight:700; font-size:clamp(30px,4.4vw,44px); line-height:1.16;
    margin:0 0 12px; padding-bottom:2px; letter-spacing:-.008em;
    background:linear-gradient(178deg,#fff 30%,rgba(255,255,255,.74));
    -webkit-background-clip:text; background-clip:text; color:transparent; }
  .hero-meta{ display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:14px 22px; max-width:760px; }
  .hero-meta-label{ color:rgba(255,255,255,.52); }
  .hero-meta-value{ font-size:14.5px; font-weight:600; color:#fff; margin-top:3px; }
  .hero-state{ display:flex; flex-wrap:wrap; gap:6px 12px; margin-top:4px; }
  .hero-state-one{ display:inline-flex; align-items:center; gap:7px; font-size:14.5px; font-weight:600; color:#fff; }
  .hero-state-one img{ width:24px; height:12px; object-fit:cover; display:block;
    border:1px solid rgba(255,255,255,.35); border-radius:2px; }
  .hero-state-one em{ font-style:normal; font-weight:500; font-size:11.5px; color:rgba(255,255,255,.66); }
  .hero-teams{ margin-top:18px; padding-bottom:4px; }
  .pill-row{ display:flex; flex-wrap:wrap; gap:8px; margin-top:7px; }
  .team-pill{ display:inline-flex; align-items:center; gap:7px; padding:5px 12px 5px 6px; border-radius:100px;
    background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.11); color:#fff; font-size:12.5px; font-weight:600; }
  .team-pill:hover{ background:rgba(255,255,255,.14); text-decoration:none; }
  .team-pill em{ font-style:normal; color:rgba(255,255,255,.66); font-weight:500; font-size:11.5px; }
  .hero-stats{ position:relative; z-index:1; margin:22px 14px 14px; border-radius:11px;
    background:rgba(255,255,255,.035); overflow:hidden; }
  .hero-stats-label{ display:flex; align-items:center; gap:10px; padding:12px 16px 0; flex-wrap:wrap; }
  .hero-tier-name{ font-family:var(--display); font-weight:700; font-size:12.5px; letter-spacing:0;
    text-transform:none; color:var(--accent-2); }
  .hero-tier-sub{ font-size:11.5px; color:rgba(255,255,255,.68); }
  .hero-tier-select{ margin-left:auto; font-size:12px; font-weight:600; color:#fff; background:rgba(255,255,255,.09);
    border:1px solid rgba(255,255,255,.16); border-radius:100px; padding:5px 11px; cursor:pointer; }
  .hero-tier-select option{ color:var(--text); background:var(--surface); }
  .hero-tiles{ display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); }
  .hero-tile{ padding:12px 16px 15px; border-right:1px solid rgba(255,255,255,.08); }
  .hero-tile:last-child{ border-right:none; }
  .hero-tile-value{ font-family:var(--display); font-weight:700; font-size:30px; color:#fff; line-height:1.1; letter-spacing:-.005em; }
  .hero-tile-label{ color:rgba(255,255,255,.56); margin-top:3px; }

  .highs{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin-bottom:18px; }
  .high{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
    box-shadow:var(--shadow); padding:14px 18px; position:relative; }
  .high-label{ font-size:11.5px; font-weight:700; letter-spacing:0; text-transform:none; color:var(--text-faint); }
  .high-value{ font-family:var(--display); font-weight:700; font-size:30px; line-height:1.15; margin-top:2px; }
  .high-sub{ font-size:11.5px; color:var(--text-muted); }
  .tier-badge{ position:absolute; right:14px; top:14px; font-size:11.5px; font-weight:700; letter-spacing:0;
    text-transform:none; color:var(--accent-ink); background:var(--accent-soft); border-radius:100px; padding:3px 9px; }
  .tier-badge:hover{ background:var(--accent); color:#fff; text-decoration:none; }

  .seg{ display:inline-flex; border:1px solid var(--border); border-radius:6px; overflow:hidden; }
  .seg-btn{ font-family:inherit; font-size:11.5px; font-weight:600; letter-spacing:0.02em; padding:5px 12px;
    background:var(--surface); color:var(--text-muted); border:none; border-left:1px solid var(--border);
    cursor:pointer; transition:background-color .15s, color .15s; }
  .seg-btn:first-child{ border-left:none; }
  .seg-btn:hover{ background:var(--surface-alt); color:var(--text); }
  .seg-btn.seg-on{ background:var(--on-bg); color:var(--on-fg); }

  .tier-caret{ display:inline-block; color:var(--text-faint); font-size:11px; transition:transform .15s; flex:none; }
  .tier-caret.open{ transform:rotate(90deg); }
  .tier-row td{ font-weight:500; }
  .sub-row td{ background:var(--surface-alt); font-size:12.5px; color:var(--text-muted); }
  .sub-row td:first-child{ background:var(--surface-alt); }
  .small-n{ font-size:10px; font-weight:600; color:var(--accent-2); background:var(--accent-2-soft);
    border-radius:100px; padding:2px 7px; margin-left:4px; white-space:nowrap; }

  .chip-row{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom:14px; }
  .chip{ font-family:inherit; font-size:12px; font-weight:600; padding:6px 13px; border-radius:100px;
    border:1px solid var(--border); background:var(--surface); color:var(--text-muted); cursor:pointer;
    transition:background-color .15s, color .15s, border-color .15s; }
  .chip:hover{ border-color:var(--accent); color:var(--text); }
  .chip.chip-on{ background:var(--on-bg); border-color:var(--on-bg); color:var(--on-fg); }

  .acc{ margin-bottom:12px; }
  .acc-head{ display:flex; align-items:center; gap:12px; padding:14px 20px; cursor:pointer; }
  .acc-head:hover{ background:var(--surface-alt); }
  .acc-title{ font-family:var(--display); font-weight:600; font-size:15px; letter-spacing:0.01em;
    text-transform:none; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .acc-sub{ font-size:11.5px; color:var(--text-muted); margin-top:2px; }
  .acc-stat{ font-size:11.5px; color:var(--text-muted); text-align:right; flex:none; min-width:64px; }
  .acc-stat b{ display:block; font-family:var(--display); font-size:16px; color:var(--text); }
  .acc-open .acc-head{ border-bottom:1px solid var(--border); }
  /* the collapsed head carries three figures on a wide screen and one on a
     phone, where the tier's name needs the room more than its EFF does */
  @media (max-width:720px){
    .acc-head{ gap:8px; padding:12px 14px; }
    .acc-stat{ min-width:52px; }
    .acc-stat:last-child{ display:none; }
  }
  @media (max-width:520px){
    .acc-stat:nth-last-child(2){ display:none; }
    .acc-sub{ font-size:11px; }
  }
  /* long game-log tables scroll inside their own box with the header pinned */
  .acc .table-scroll{ max-height:560px; overflow-y:auto; }
  .acc .table-scroll thead th{ position:sticky; top:0; z-index:2; background:var(--surface); }

  @media (max-width: 900px){
    .hero-main{ flex-direction:column; align-items:center; text-align:center; padding:22px 18px; gap:16px; }
    .hero-name{ font-size:27px; }
    .hero-meta{ grid-template-columns:repeat(2,minmax(0,1fr)); text-align:left; }
    .pill-row{ justify-content:center; }
    .hero-teams{ text-align:left; }
    .hero-tiles{ grid-template-columns:repeat(3,minmax(0,1fr)); }
    /* five tiles in a three-column grid: the third in each row sits against the
       container edge and does not need its divider */
    .hero-tile:nth-child(3n){ border-right:none; }
    .hero-tile:nth-child(-n+3){ border-bottom:1px solid rgba(255,255,255,.08); }
    .hero-tile{ padding:10px 14px 14px; border-bottom:1px solid rgba(255,255,255,.07); }
    .hero-tile-value{ font-size:24px; }
    .hero-stats-label{ padding:11px 18px 0; }
    .highs{ grid-template-columns:1fr; gap:10px; }
  }

  /* ---- BPM & VORP tab ---------------------------------------------------
     The interval is not a footnote here: it is drawn at the same weight as the
     number, because in a seven-game tournament it is most of the story. */
  .bpm-hero{ display:flex; gap:28px; flex-wrap:wrap; align-items:flex-start; padding:20px; }
  .bpm-hero-main{ flex:1 1 260px; min-width:220px; }
  .bpm-big{ font-family:var(--display); font-size:clamp(42px,7vw,62px); font-weight:700; line-height:.92;
            font-variant-numeric:tabular-nums; }
  .bpm-big.up{ color:var(--accent-ink); } .bpm-big.dn{ color:var(--accent-2-ink); }
  .bpm-lab{ font-size:12.5px; color:var(--text-muted); margin-top:8px; line-height:1.5; }
  .bpm-ci{ margin-top:12px; display:inline-block; font-family:var(--display); font-size:17px; font-weight:600;
           font-variant-numeric:tabular-nums; background:var(--surface-alt); border:1px solid var(--border);
           border-radius:100px; padding:5px 14px; cursor:help; }
  .bpm-ci span{ font-family:var(--body); font-size:11.5px; font-weight:500; letter-spacing:0;
                text-transform:none; color:var(--text-muted); margin-left:7px; }
  .bpm-hero-side{ display:flex; gap:26px; flex-wrap:wrap; align-items:flex-start; padding-top:6px; }
  .bpm-v{ font-family:var(--display); font-size:26px; font-weight:600; font-variant-numeric:tabular-nums; }
  .bpm-v.up{ color:var(--accent-ink); } .bpm-v.dn{ color:var(--accent-2-ink); }
  .bpm-l{ font-family:var(--display); font-size:11.5px; letter-spacing:0; text-transform:none;
          color:var(--text-faint); font-weight:600; cursor:help; }
  /* the season / rank-by switches: a control strip, not a card heading, so it
     sits between the pooled number above and the single-competition field below */
  .bpm-ctl{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; padding:2px 20px 16px; }
  .bpm-ctl-l{ font-family:var(--mono); font-size:11.5px; font-weight:500; letter-spacing:0;
              text-transform:none; color:var(--text-faint); margin-right:2px; }
  .chip-sm{ font-size:11.5px; padding:5px 11px; }
  .chip-sm em{ font-style:normal; font-variant-numeric:tabular-nums; opacity:.72; margin-left:4px; }
  .bpm-rk{ width:46px; text-align:right; font-variant-numeric:tabular-nums; color:var(--text-faint);
           padding-left:20px; }
  tbody tr.bpm-me td{ background:var(--accent-soft); }
  tbody tr.bpm-me:hover td{ background:var(--accent-soft); }
  .bpm-me .bpm-rk{ color:var(--accent-ink); font-weight:700; }
  tr.bpm-gap td{ text-align:center; font-size:11.5px; letter-spacing:0; text-transform:none;
                 color:var(--text-muted); padding:7px 14px; background:var(--surface-alt); }
  .bpm-stand{ padding:0 20px 16px; font-size:13px; color:var(--text-muted); max-width:80ch; }
  .bpm-stand b{ color:var(--text); }
  .bpm-field{ padding:4px 20px 0; }
  .bpm-dots{ position:relative; }
  .bpm-dot{ position:absolute; width:8px; height:8px; border-radius:50%; background:var(--accent);
            opacity:.6; transform:translate(-50%,-50%); }
  .bpm-dot.lo{ background:var(--accent-2); }
  .bpm-dot.me{ background:var(--on-bg); opacity:1; width:12px; height:12px;
               box-shadow:0 0 0 2px var(--surface); z-index:3; }
  .bpm-dot:hover{ opacity:1; z-index:4; }
  .bpm-axis{ position:relative; height:24px; }
  .bpm-ax-g{ position:absolute; top:-6px; width:1px; height:6px; background:var(--border); }
  .bpm-ax-t{ position:absolute; top:4px; font-size:10.5px; color:var(--text-faint);
             transform:translateX(-50%); font-variant-numeric:tabular-nums; }
  .bpm-num{ font-family:var(--display); font-size:17px; font-weight:600; font-variant-numeric:tabular-nums; }
  .bpm-num.up{ color:var(--accent-ink); } .bpm-num.dn{ color:var(--accent-2-ink); }
  .bpm-cell{ text-align:left; width:230px; }
  .bpm-track{ position:relative; height:18px; width:100%; min-width:170px;
              background:linear-gradient(var(--surface-alt),var(--surface-alt)) center/100% 6px no-repeat;
              border-radius:3px; }
  .bpm-zero{ position:absolute; left:50%; top:0; bottom:0; width:1px; background:var(--text-faint); opacity:.5; }
  .bpm-span{ position:absolute; top:6px; height:6px; border-radius:3px; background:var(--accent); opacity:.32; }
  .bpm-pt{ position:absolute; top:1px; width:3px; height:16px; border-radius:2px; background:var(--accent); }
  .bpm-pt.dn{ background:var(--accent-2); }
  .bpm-pt.dn ~ .bpm-span, .bpm-track:has(.bpm-pt.dn) .bpm-span{ background:var(--accent-2); }
  .bpm-range{ font-size:10.5px; color:var(--text-faint); font-variant-numeric:tabular-nums; margin-top:2px; }
  .bpm-flag{ color:var(--accent-2-ink); cursor:help; border-bottom:1px dotted currentColor; }
  /* on/off table: tier label rows, and the interval bar with its range under it */
  tr.oo-tier td{ font-family:var(--mono); font-size:11.5px; font-weight:600; letter-spacing:0;
    text-transform:none; color:var(--text-faint); background:var(--surface-alt); padding-top:7px; padding-bottom:7px; }
  .oo-table td.oo-bar{ min-width:180px; text-align:left; }
  .oo-table td:first-child{ white-space:normal; min-width:150px; max-width:320px; }
  @media (max-width:560px){ .oo-table td:first-child{ max-width:170px; font-size:12.5px; } .oo-table td.oo-bar{ min-width:130px; } }
  .oo-ci{ font-size:10.5px; color:var(--text-faint); font-variant-numeric:tabular-nums; margin-top:2px; }
  /* Standings with several groups: a phase heads each section, groups sit side by side */
  .stand-phase{ display:flex; align-items:baseline; gap:10px; margin:22px 0 12px;
    font-family:var(--display); font-weight:600; font-size:15px; letter-spacing:0;
    text-transform:none; color:var(--text); }
  .stand-phase:first-of-type{ margin-top:4px; }
  .stand-phase span{ font-family:inherit; font-size:11.5px; font-weight:600; letter-spacing:0.04em;
    color:var(--text-faint); text-transform:none; }
  .stand-groups{ display:grid; grid-template-columns:repeat(auto-fit, minmax(min(100%, 540px), 1fr)); gap:0 18px; }
  .stand-card .card-head{ font-size:13.5px; padding:12px 18px; }
  .champ-line{ display:flex; align-items:center; gap:10px; padding:12px 16px; margin-bottom:16px;
    border:1px solid var(--border); border-radius:var(--radius); background:var(--surface);
    font-size:13.5px; color:var(--text-muted); }
  .champ-line b{ color:var(--text); }
  /* dashboard: every first-phase group, top rows only */
  .dash-groups{ display:grid; grid-template-columns:repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
  .dash-group{ padding:12px 18px 14px; border-right:1px solid var(--hair, var(--border));
    border-bottom:1px solid var(--hair, var(--border)); }
  .dash-group-h{ font-size:11.5px; font-weight:700; letter-spacing:0; text-transform:none;
    color:var(--text-faint); margin-bottom:6px; }
  .dash-group-r{ display:grid; grid-template-columns:18px 1fr auto 42px; align-items:center; gap:8px;
    padding:4px 0; font-size:12.5px; font-variant-numeric:tabular-nums; }
  .dgr-pos{ color:var(--text-faint); font-size:11px; }
  .dgr-team{ display:flex; align-items:center; gap:6px; min-width:0; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
  .dgr-team a{ overflow:hidden; text-overflow:ellipsis; }
  .dgr-wl{ color:var(--text-muted); }
  .dgr-gd{ text-align:right; color:var(--text-muted); }
  .np-flag{ color:var(--accent-2-ink) !important; font-weight:600 !important; cursor:help; }

  /* Advanced tab: the rule between the ratings table and the BPM section */
  .adv-divider{ display:flex; align-items:baseline; gap:12px; flex-wrap:wrap; margin:30px 0 16px;
    padding-top:18px; border-top:1px solid var(--border); }
  .adv-divider span{ font-family:var(--display); font-weight:600; font-size:17px; letter-spacing:0;
    text-transform:none; color:var(--text); }
  .adv-divider em{ font-style:normal; font-size:12.5px; color:var(--text-faint); }
  .bpm-p{ margin:0 0 12px; font-size:13px; color:var(--text-muted); max-width:86ch; line-height:1.65; }
  .bpm-p:last-child{ margin-bottom:0; }
  .bpm-p strong{ color:var(--text); }
  .bpm-code{ font-family:var(--mono); font-size:11.5px; background:var(--surface-alt);
             border:1px solid var(--border); border-radius:3px; padding:1px 5px; white-space:nowrap; }
  @media (max-width: 640px){
    .bpm-hero{ gap:18px; padding:16px; }
    .bpm-hero-side{ gap:18px; }
    .bpm-track{ min-width:110px; }
  }

  /* ---- Formulas: the site-level reference --------------------------------
     A reference page is scanned, not read, so the abbreviation is the anchor
     of every row and the formula sits on its own line in mono — a formula set
     in running text is the one thing nobody can check against a table. */
  .fx-hero{ max-width:78ch; margin:4px 0 22px; }
  .fx-title{ font-family:var(--display); font-weight:700; text-transform:none;
             font-size:clamp(26px,4vw,38px); line-height:1.12; letter-spacing:.005em; margin:0 0 10px; }
  .fx-lede{ color:var(--text-muted); font-size:14px; line-height:1.65; margin:0 0 16px; }
  .fx-keys{ display:flex; flex-direction:column; gap:7px; }
  .fx-key{ display:flex; align-items:baseline; gap:10px; font-size:12.5px; color:var(--text-muted);
           line-height:1.55; }
  .fx-key .fx-mark{ flex:none; }
  .fx-mark{ font-family:var(--mono); font-size:11.5px; font-weight:500; letter-spacing:0;
            text-transform:none; border-radius:100px; padding:3px 8px; white-space:nowrap;
            border:1px solid transparent; cursor:help; }
  .fx-src{ color:var(--text-muted); background:var(--surface-alt); border-color:var(--border); }
  .fx-calc{ color:var(--accent-ink); background:var(--accent-soft); }
  .fx-model{ color:var(--accent-2-ink); background:var(--accent-2-soft); }

  .fx-bar{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:14px; }
  .fx-q{ font-family:inherit; font-size:13.5px; color:var(--text); background:var(--surface);
         border:1px solid var(--border); border-radius:100px; padding:9px 16px; width:min(280px,100%); }
  .fx-q:focus-visible{ outline:2px solid var(--accent); outline-offset:1px; border-color:var(--accent); }
  .fx-jumps{ display:flex; gap:6px; flex-wrap:wrap; }
  .fx-empty{ padding:16px 2px 20px; font-size:13px; color:var(--text-muted); }
  .fx-note-tier{ font-size:13px; color:var(--text-muted); line-height:1.7; max-width:88ch;
                 border-left:2px solid var(--accent); padding:2px 0 2px 16px; margin:2px 0 22px; }
  .fx-note-tier b, .fx-note-tier em{ color:var(--text); font-style:normal; }

  .fx-intro{ padding:14px 20px 0; font-size:13px; color:var(--text-muted); line-height:1.65; max-width:92ch; }
  .fx-list{ padding:6px 20px 4px; }
  .fx{ padding:14px 0; border-bottom:1px solid var(--hair); }
  .fx:last-child{ border-bottom:none; }
  .fx-head{ display:flex; align-items:baseline; gap:10px; flex-wrap:wrap; }
  .fx-ab{ font-family:var(--display); font-weight:600; font-size:15px; letter-spacing:0;
          text-transform:none; min-width:104px; }
  .fx-name{ font-size:13.5px; color:var(--text-muted); flex:1; min-width:140px; }
  .fx-f{ font-family:var(--mono); font-size:12px; line-height:1.75; color:var(--text);
         background:var(--surface-alt); border:1px solid var(--border); border-radius:5px;
         padding:8px 12px; margin-top:9px; white-space:pre-wrap; overflow-x:auto; }
  .fx-def{ font-size:13px; color:var(--text); line-height:1.6; margin-top:8px; max-width:92ch;
           border-left:2px solid var(--border); padding-left:12px; }
  .fx-note{ font-size:12.5px; color:var(--text-muted); line-height:1.65; margin-top:8px; max-width:92ch; }
  .fx-note strong{ color:var(--text); }
  @media (max-width:560px){
    .fx-ab{ min-width:0; }
    .fx-list{ padding:6px 16px 4px; }
    .fx-intro{ padding:14px 16px 0; }
  }

  /* the same game as a row of a competition's schedule */
  .row.row-live .venue{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
  .row-clock{ font-family:var(--mono); font-size:12px; font-weight:700; color:var(--text); font-variant-numeric:tabular-nums; }

  /* shared helpers the BPM tab leans on */
  .pad{ padding:18px 20px; }
  .card-head .hint{ font-family:var(--body); font-size:12px; letter-spacing:0; text-transform:none;
                    font-weight:400; color:var(--text-faint); margin-left:auto; text-align:right; }
  @media (max-width: 560px){ .card-head .hint{ display:none; } }
  .bpm-tick{ position:absolute; top:5px; bottom:5px; width:1px; background:var(--border); }
  .bpm-span.dn{ background:var(--accent-2); }

  /* ---- competition marks ------------------------------------------------
     Both governing-body logos sit on the same light plate: one is mostly white
     artwork and the other mostly navy, and a shared plate is the only way they
     read as one set on a light card and on the obsidian stage alike. */
  .comp-crest{ flex:none; display:inline-flex; align-items:center; justify-content:center;
    border-radius:7px; background:#fff; border:1px solid var(--border); padding:3px;
    box-shadow:var(--shadow); overflow:hidden; }
  .comp-crest img{ width:100%; height:100%; object-fit:contain; display:block; }
  /* one mark is drawn almost entirely in white ink; on the white plate it would
     be an empty square, so that one gets its own ground rather than a repaint */
  .comp-crest-dark{ background:#15181d; border-color:#15181d; }
  .comp-head{ display:flex; align-items:center; gap:14px; min-width:0; }
  .comp-head .page-title{ margin:0; }
  /* two of the club marks are supplied as opaque tiles rather than cut-outs;
     a radius makes that read as a deliberate badge instead of a stray square */
  .crest-logo{ border-radius:5px; }

  /* group cards: tighter cells, long team names wrap rather than push the numbers off */
  .stand-card th, .stand-card td{ padding-left:10px; padding-right:10px; }
  .stand-card th.left, .stand-card td.left{ padding-left:18px; }
  .stand-card td.left{ white-space:normal; }
  .stand-card td.left .team{ line-height:1.3; }

/* ===========================================================================
   Type system: Archivo for reading, Archivo Narrow for headings and figures.
   Sentence case throughout — labels are words, not shouted codes — and figures
   in tabular lining numerals so columns line up.
   =========================================================================== */
  body{ font-size:14.5px; font-feature-settings:"tnum" 1, "lnum" 1; }
  h1, h2, h3, .page-title, .card-head, .tile-value, .lead-head{ text-wrap:balance; }
  .page-title{ font-weight:600; font-size:32px; letter-spacing:-0.005em; line-height:1.06; }
  .card-head{ font-size:16.5px; font-weight:600; letter-spacing:0; }
  .card-head .hint{ font-size:12.5px; }
  .tile-value{ font-weight:600; letter-spacing:-0.005em; }
  .tile-label{ font-size:12.5px; font-weight:500; color:var(--text-muted); }
  th{ font-size:12.5px; font-weight:500; color:var(--text-muted); }
  td{ font-size:13.5px; }
  .badge{ font-weight:600; font-size:12px; }
  .seg-btn{ letter-spacing:0; font-size:12.5px; }
  .note{ font-size:12px; line-height:1.55; }

/* ===========================================================================
   Competition pages: one header (mark, name, facts, pills, underline tabs),
   then a two-column overview — tables and results on the left, leaders,
   playoffs and a fact list on the right.
   =========================================================================== */
  .cx-page{ padding-top:18px; }
  .cx-crumb{ font-size:13px; color:var(--text-faint); display:flex; gap:8px; align-items:center; margin-bottom:14px; }
  .cx-crumb a{ color:var(--text-muted); }
  .cx-head{ display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
  .cx-head .comp-crest{ border-radius:10px; padding:6px; }
  .cx-id{ min-width:0; flex:1 1 320px; }
  .cx-sub{ color:var(--text-muted); font-size:13.5px; margin-top:6px; }
  .cx-sub a{ color:var(--text); font-weight:600; }
  .cx-pills{ display:flex; gap:8px; flex-wrap:wrap; margin-left:auto; }
  .cx-pill{ display:inline-flex; align-items:center; gap:7px; font-size:12.5px; font-weight:600; padding:5px 11px;
    border-radius:100px; background:var(--surface-alt); color:var(--text-muted); white-space:nowrap; }
  .cx-pill i{ width:7px; height:7px; border-radius:50%; background:currentColor; }
  .cx-pill.done{ background:var(--positive-soft); color:var(--positive-ink); }
  .cx-pill.live{ background:var(--accent-soft); color:var(--accent-ink); }
  .cx-pill.gold{ background:var(--accent-2-soft); color:var(--accent-2-ink); }
  .cx-tabs{ display:flex; gap:26px; border-bottom:1px solid var(--border); margin:20px 0 22px; overflow-x:auto; scrollbar-width:none; }
  .cx-tab{ font-size:14.5px; font-weight:500; color:var(--text-muted); padding:0 0 12px; border-bottom:2px solid transparent;
    white-space:nowrap; display:inline-flex; gap:7px; align-items:baseline; margin-bottom:-1px; }
  .cx-tab:hover{ color:var(--text); text-decoration:none; }
  .cx-tab.on{ color:var(--text); font-weight:600; border-bottom-color:var(--accent); }
  .cx-tab .n{ font-size:12px; font-weight:500; color:var(--text-faint); }
  .cx-pagesub{ color:var(--text-muted); font-size:13px; margin:-8px 0 16px; }

  .cx-grid{ display:grid; grid-template-columns:minmax(0,1.65fr) minmax(0,1fr); gap:20px; align-items:start; }
  .cx-main, .cx-side{ min-width:0; }
  .cx-right{ margin-left:auto; }
  .cx-more{ font-family:var(--body); font-size:13px; font-weight:500; }
  .cx-card .card-head{ padding:14px 18px; border-bottom-color:var(--hair); }
  .cx-table td.left.cx-rank{ color:var(--text-faint); width:34px; padding-right:0; }
  .cx-table td.left .team{ font-weight:600; }
  .cx-table tbody tr:hover{ background:var(--surface-alt); }
  .cx-table tr.cx-me td{ background:var(--accent-2-soft); }
  .cx-dim{ color:var(--text-faint); }
  .cx-plus{ color:var(--positive-ink); font-weight:600; }
  .cx-minus{ color:var(--negative); font-weight:600; }

  /* a result: date, the two teams stacked (winner in full ink), then tag and link */
  .cx-page .row{ grid-template-columns:64px minmax(0,1fr) auto; grid-template-rows:auto auto; column-gap:16px; row-gap:5px; padding:13px 18px; border-bottom-color:var(--hair); }
  .cx-page .row .r-date{ grid-row:1 / 3; align-self:center; }
  .cx-page .row .team{ grid-column:2; font-size:14px; }
  .cx-page .row .team .score{ font-family:var(--display); font-size:16px; min-width:2.2em; text-align:right; font-variant-numeric:tabular-nums; }
  /* the venue column is the same width on every row, so the score column lines up down the list
     (an auto column took each row's own venue width and moved the scores with it) */
  .cx-page .row{ grid-template-columns:64px minmax(0,1fr) 220px; }
  .cx-page .row .venue{ grid-column:3; grid-row:1 / 3; align-self:center; max-width:220px; }

  .cx-list{ display:flex; flex-direction:column; }
  .cx-li{ display:grid; grid-template-columns:22px minmax(0,1fr) auto; gap:12px; align-items:center; padding:11px 18px; border-bottom:1px solid var(--hair); }
  .cx-li:last-child{ border-bottom:none; }
  .cx-li.cx-series{ grid-template-columns:minmax(0,1fr) auto; }
  .cx-r{ color:var(--text-faint); font-size:13px; font-weight:500; }
  .cx-nm{ font-weight:600; font-size:14px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .cx-nm a{ color:var(--text); }
  .cx-tm{ display:flex; align-items:center; gap:6px; font-size:12.5px; color:var(--text-muted); margin-top:2px; min-width:0; }
  .cx-tm b{ color:var(--text); font-weight:600; }
  .cx-v{ font-family:var(--display); font-weight:600; font-size:21px; white-space:nowrap; }
  .cx-v small{ font-family:var(--body); font-size:11.5px; font-weight:500; color:var(--text-faint); margin-left:4px; }
  .cx-also{ display:grid; grid-template-columns:repeat(auto-fit,minmax(0,1fr)); border-top:1px solid var(--hair); }
  .cx-also-i{ padding:12px 18px; border-right:1px solid var(--hair); min-width:0; }
  .cx-also-i:last-child{ border-right:none; }
  .cx-also-t{ font-size:12px; color:var(--text-faint); }
  .cx-also-n{ font-weight:600; font-size:13px; margin-top:2px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .cx-also-v{ font-family:var(--display); font-weight:600; font-size:17px; }
  .cx-also-v small{ font-family:var(--body); font-size:11px; color:var(--text-faint); font-weight:500; }
  .cx-card .phase-seg .seg-btn{ padding:4px 10px; }
  .cx-facts{ margin:0; }
  .cx-facts > div{ display:flex; justify-content:space-between; gap:14px; padding:10px 18px; border-bottom:1px solid var(--hair); font-size:13.5px; }
  .cx-facts > div:last-child{ border-bottom:none; }
  .cx-facts dt{ color:var(--text-muted); }
  .cx-facts dd{ margin:0; font-weight:600; text-align:right; min-width:0; }
  .cx-facts dd .cx-dim{ font-weight:400; }

  @media (max-width:980px){ .cx-grid{ grid-template-columns:minmax(0,1fr); } }
  @media (max-width:560px){
    .cx-pills{ margin-left:0; }
    .cx-head .comp-crest{ width:44px !important; height:44px !important; }
    .page-title{ font-size:26px; }
    .cx-tabs{ gap:20px; }
    .cx-page .row{ grid-template-columns:52px minmax(0,1fr); }
    .cx-page .row .venue{ display:none; }
  }
  .cx-card .card-head .hint{ margin-left:0; }
  .cx-card .card-head a[style*="margin-left:auto"]{ font-family:var(--body); font-size:13px !important; font-weight:500 !important; }
  .cx-table td{ padding-top:9px; padding-bottom:9px; }
  .cx-table tbody tr:last-child td{ border-bottom:none; }
  .cx-tm-text{ display:block; line-height:1.45; }
  .cx-tm-text img, .cx-tm-text .swatch{ vertical-align:-3px; }
  .cx-page .row .venue{ font-size:11.5px; }
  @media (max-width:560px){ .cx-also-n{ white-space:normal; } .cx-also-i{ padding:10px 12px; } }
  .cx-page .card-head .hint{ margin-left:0; }
  .cx-page .row .team{ max-width:560px; }
  .nav-link{ font-family:var(--body); font-size:13.5px; letter-spacing:0; }

/* ===========================================================================
   Player profile v2 (app4l_profile2.js). A full-width hero in club navy with
   one set of big numbers, then sections set on the page ground rather than
   boxed. Gold marks honours; the hero is a dark material in both themes.
   =========================================================================== */
  :root{ --pv-gold: oklch(47% 0.13 70); --pv-gold-soft: oklch(95% 0.045 85); --pv-bar: oklch(80% 0.02 255);
    --pv-navy: oklch(34% 0.13 262); --pv-navy-deep: oklch(19% 0.06 264); --pv-gold-hi: oklch(84% 0.13 85); }
  @media (prefers-color-scheme: dark){ :root:not([data-theme="light"]){ --pv-gold: oklch(82% 0.12 80); --pv-gold-soft: oklch(32% 0.05 80); --pv-bar: oklch(40% 0.02 255); } }
  :root[data-theme="dark"]{ --pv-gold: oklch(82% 0.12 80); --pv-gold-soft: oklch(32% 0.05 80); --pv-bar: oklch(40% 0.02 255); }

  .pv-hero{ position:relative; overflow:hidden; color:#fff;
    background:radial-gradient(120% 140% at 85% 0%, var(--pv-navy) 0%, var(--pv-navy-deep) 55%, oklch(13% 0.03 264) 100%); }
  .pv-num{ position:absolute; right:clamp(160px, 26vw, 380px); top:-60px; font-family:var(--display); font-weight:700; font-size:420px; line-height:1; color:oklch(100% 0 0 / .05); pointer-events:none; user-select:none; }
  .pv-in{ position:relative; max-width:1320px; margin:0 auto; padding:34px 28px 0; display:grid; grid-template-columns:minmax(0,1fr) 330px; gap:24px; min-height:400px; }
  .pv-id{ align-self:center; padding-bottom:28px; min-width:0; }
  .pv-eyebrow{ display:flex; align-items:center; gap:10px; font-size:14.5px; color:oklch(100% 0 0 / .78); flex-wrap:wrap; }
  .pv-eyebrow .crest-logo, .pv-eyebrow .crest-flag, .pv-eyebrow .swatch{ background:#fff; border-radius:50%; padding:2px; }
  .pv-eyebrow b{ color:#fff; font-weight:600; }
  .pv-hero .pv-name{ font-family:var(--display); font-weight:700; font-size:clamp(48px, 7.2vw, 88px); line-height:.92; letter-spacing:-0.015em; margin:14px 0 18px; color:#fff; }
  .pv-name span{ display:block; }
  .pv-titles{ display:flex; gap:8px; flex-wrap:wrap; }
  .pv-title{ display:inline-flex; align-items:center; gap:7px; border:1px solid oklch(84% 0.13 85 / .45); color:var(--pv-gold-hi); border-radius:100px; padding:5px 12px 5px 10px; font-size:13px; font-weight:600; cursor:default; }
  .pv-title i{ font-style:normal; }
  .pv-title em{ font-style:normal; font-weight:500; opacity:.85; padding-left:8px; margin-left:2px; border-left:1px solid currentColor; }
  .pv-title.mvp{ background:linear-gradient(135deg, oklch(84% 0.13 85), oklch(72% 0.14 70)); color:oklch(22% 0.05 70); border-color:transparent; }
  .pv-title.mvp em{ font-weight:600; opacity:1; }
  /* the details under the name: one row, the figure bold and its unit quiet (update-50) */
  .pv-dets{ display:flex; flex-wrap:wrap; gap:6px 20px; margin-top:20px; font-size:14px; color:oklch(100% 0 0 / .62); }
  .pv-dets span{ display:inline-flex; align-items:baseline; gap:4px; white-space:nowrap; }
  .pv-dets b{ color:#fff; font-weight:600; }
  .pv-dets i{ font-style:normal; color:oklch(100% 0 0 / .55); }
  /* the last MBL team's crest stands behind the portrait, faint, never recoloured */
  .pv-photo img.pv-mbl{ position:absolute; z-index:0; left:50%; top:46%; bottom:auto; width:88%; height:auto; max-height:80%; object-fit:contain;
    transform:translate(-50%,-50%); opacity:.16; border-radius:0; filter:none; box-shadow:none; pointer-events:none; }
  .pv-photo > img:not(.pv-mbl), .pv-photo .pv-initials{ z-index:1; }
  .pv-facts{ display:flex; flex-wrap:wrap; gap:10px 30px; margin:24px 0 0; padding-top:18px; border-top:1px solid oklch(100% 0 0 / .14); max-width:760px; }
  .pv-facts dt{ font-size:12px; color:oklch(100% 0 0 / .6); }
  .pv-facts dd{ margin:2px 0 0; font-weight:600; font-size:14.5px; color:#fff; }
  .pv-facts dd span{ font-weight:400; color:oklch(100% 0 0 / .65); }
  /* the portrait keeps its 400px frame and sits in the middle of the hero: with a long list of
     honours the text column grows past it, and a portrait pinned to the bottom then leaves a
     tall empty band above the head */
  .pv-photo{ position:relative; align-self:center; height:400px; }
  .pv-photo img{ position:absolute; bottom:0; left:0; width:100%; height:100%; object-fit:cover; object-position:top; border-radius:16px 16px 0 0;
    -webkit-mask-image:linear-gradient(to bottom, #000 72%, transparent 100%); mask-image:linear-gradient(to bottom, #000 72%, transparent 100%); }
  .pv-initials{ position:absolute; bottom:40px; left:50%; transform:translateX(-50%); width:200px; height:200px; border-radius:50%; display:grid; place-items:center;
    background:oklch(100% 0 0 / .08); border:1px solid oklch(100% 0 0 / .16); font-family:var(--display); font-weight:600; font-size:72px; color:oklch(100% 0 0 / .7); }
  .pv-bar{ position:relative; background:oklch(10% 0.02 264 / .55); border-top:1px solid oklch(100% 0 0 / .08); }
  .pv-bar-in{ max-width:1320px; margin:0 auto; padding:18px 28px 20px; display:grid; grid-template-columns:minmax(260px,auto) repeat(4, minmax(0,1fr)); gap:28px; align-items:end; }
  .pv-scope label{ display:block; font-size:12.5px; color:oklch(100% 0 0 / .62); margin-bottom:6px; }
  .pv-sel{ display:flex; align-items:center; gap:10px; }
  .pv-clogo{ flex:none; width:44px; height:44px; border-radius:10px; background:#fff; padding:4px; display:grid; place-items:center; }
  .pv-clogo img{ width:100%; height:100%; object-fit:contain; }
  .pv-scope select{ appearance:none; -webkit-appearance:none; font-family:var(--body); font-size:14.5px; font-weight:600; color:#fff; width:100%; cursor:pointer;
    background:oklch(100% 0 0 / .1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23fff' stroke-width='1.6' fill='none'/%3E%3C/svg%3E") no-repeat right 12px center;
    border:1px solid oklch(100% 0 0 / .2); border-radius:9px; padding:9px 36px 9px 12px; }
  .pv-scope select option{ color:#111; background:#fff; }
  .pv-scope .sub{ font-size:12.5px; color:oklch(100% 0 0 / .6); margin-top:6px; }
  .pv-stat .v{ font-family:var(--display); font-weight:600; font-size:52px; line-height:1; letter-spacing:-0.01em; }
  .pv-stat .l{ font-size:13px; color:oklch(100% 0 0 / .75); margin-top:6px; }
  .pv-stat .p{ display:inline-block; font-size:12px; font-weight:600; margin-top:6px; color:oklch(86% 0.13 150); }
  .pv-stat .p.mid{ color:oklch(100% 0 0 / .6); }

  .pv-page{ padding-top:0; }
  .pv-tabs{ position:sticky; top:60px; z-index:10; background:var(--bg); display:flex; gap:26px; border-bottom:1px solid var(--border); margin:0 0 36px; padding-top:16px; overflow-x:auto; scrollbar-width:none; }
  .pv-tabs a{ font-size:15px; font-weight:500; color:var(--text-muted); padding:0 0 12px; border-bottom:2px solid transparent; margin-bottom:-1px; white-space:nowrap; }
  .pv-tabs a:hover{ color:var(--text); text-decoration:none; }
  .pv-tabs a.on{ color:var(--text); font-weight:600; border-bottom-color:var(--accent); }
  .pv-tabs .n{ font-size:12px; color:var(--text-faint); margin-left:5px; font-weight:500; }

  .pv-sec{ margin-bottom:56px; min-width:0; }
  .pv-sec-h{ display:flex; align-items:baseline; gap:12px; margin-bottom:16px; flex-wrap:wrap; }
  .pv-sec-h h2{ font-family:var(--display); font-weight:600; font-size:26px; letter-spacing:-0.005em; margin:0; }
  .pv-sec-h .sub{ color:var(--text-muted); font-size:14px; }
  .pv-sec-h .r{ margin-left:auto; display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
  .pv-note{ font-size:12.5px; color:var(--text-faint); padding:10px 0 0; line-height:1.55; }
  .pv-note.in{ padding:11px 18px; border-top:1px solid var(--hair); }
  .pv-link{ background:none; border:0; color:var(--accent-ink); cursor:pointer; font:inherit; font-size:13.5px; }
  .pv-card{ border-radius:14px; margin-bottom:0; }
  .pv-dim, .pv-hon .dim{ color:var(--text-faint); }
  .pv-tag{ display:inline-block; font-size:11.5px; font-weight:600; border-radius:5px; padding:1px 7px; background:var(--surface-alt); color:var(--text-muted); white-space:nowrap; vertical-align:1px; }
  .pv-tag.gold{ background:var(--pv-gold-soft); color:var(--pv-gold); }
  .pv-tag.mvp{ background:linear-gradient(135deg, oklch(84% 0.13 85), oklch(74% 0.14 70)); color:oklch(24% 0.05 70); }
  .pv-tag.aw{ background:var(--accent-soft); color:var(--accent-ink); }
  .pv-tag.po{ background:var(--accent-2-soft); color:var(--accent-2-ink); }
  .pv-teamc{ display:inline-flex; align-items:center; gap:7px; }

  /* insight cards */
  .pv-ins{ display:grid; grid-template-columns:1.1fr 1.25fr 0.9fr; gap:20px; }
  .pv-ins.n2{ grid-template-columns:repeat(2, minmax(0,1fr)); } .pv-ins.n1{ grid-template-columns:minmax(0,1fr); }
  .pv-ic{ border-radius:14px; padding:24px 26px 22px; background:var(--surface); border:1px solid var(--border); display:flex; flex-direction:column; gap:10px; min-width:0; }
  .pv-ic.lead{ background:linear-gradient(150deg, var(--accent-soft), var(--surface) 70%); border-color:color-mix(in oklch, var(--accent) 30%, var(--border)); }
  .pv-ic .k{ font-size:13px; font-weight:600; color:var(--accent-ink); }
  .pv-ic.gold .k{ color:var(--pv-gold); }
  .pv-ic .big{ font-family:var(--display); font-weight:700; font-size:64px; line-height:.95; letter-spacing:-0.02em; }
  .pv-ic .big .u{ font-family:var(--body); font-size:15px; font-weight:500; color:var(--text-muted); margin-left:8px; letter-spacing:0; }
  .pv-ic.lead .big{ font-size:76px; color:var(--accent-ink); }
  .pv-ic .t{ font-family:var(--display); font-weight:600; font-size:20px; line-height:1.2; }
  .pv-ic .s{ color:var(--text-muted); font-size:14px; line-height:1.5; }
  .pv-hon{ display:flex; flex-direction:column; gap:6px; }
  .pv-hon > div{ display:flex; flex-wrap:wrap; align-items:center; gap:4px 8px; font-size:13.5px; }
  .pv-hon .hn{ flex:1 1 130px; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .pv-hon .ht{ display:flex; gap:4px; flex-wrap:wrap; justify-content:flex-end; margin-left:auto; }

  /* career path: years across */
  .pv-path{ display:grid; grid-template-columns:repeat(var(--n), minmax(0,1fr)); border-top:2px solid var(--text); }
  .pv-path .yr{ padding:14px 12px 4px 14px; border-left:1px solid var(--hair); min-width:0; }
  .pv-path .yr:first-child{ border-left:none; padding-left:0; }
  .pv-path h3{ font-family:var(--display); font-weight:600; font-size:22px; margin:0 0 10px; }
  .pv-path .yr.pre h3{ color:var(--text-muted); }
  .pv-path .pre-l{ font-size:11.5px; color:var(--text-faint); margin:-6px 0 6px; }
  .pv-path .it{ display:flex; align-items:flex-start; gap:7px; font-size:13px; padding:4px 0 2px; line-height:1.3; color:var(--text); }
  .pv-path a.it:hover{ text-decoration:none; color:var(--accent-ink); }
  .pv-path .it.win{ color:var(--pv-gold); font-weight:600; }
  .pv-path .it > :first-child{ flex:none; }
  .pv-path .st{ padding-left:25px; font-size:11.5px; font-weight:600; color:var(--pv-gold); line-height:1.45; }
  .pv-path .aw{ padding-left:25px; font-size:12px; color:var(--accent-ink); }

  /* career highs strip */
  .pv-highs{ display:grid; grid-template-columns:repeat(6, minmax(0,1fr)); }
  .pv-highs .hs{ padding:0 18px; border-left:1px solid var(--hair); min-width:0; color:var(--text); }
  .pv-highs a.hs:hover{ text-decoration:none; } .pv-highs a.hs:hover .l{ color:var(--accent-ink); }
  .pv-highs .hs:first-child{ border-left:none; padding-left:0; }
  .pv-highs .v{ font-family:var(--display); font-weight:600; font-size:38px; line-height:1.05; }
  .pv-highs .l{ font-size:13.5px; font-weight:600; }
  .pv-highs .s{ font-size:12px; color:var(--text-faint); line-height:1.4; }

  /* latest games */
  .pv-games{ display:flex; flex-direction:column; }
  .pv-games .gm{ display:grid; grid-template-columns:34px minmax(0,1fr) auto; gap:14px; align-items:center; padding:12px 0; border-bottom:1px solid var(--hair); color:var(--text); }
  .pv-games .gm:hover{ text-decoration:none; background:var(--surface-alt); }
  .pv-games .gm:last-child{ border-bottom:none; }
  .pv-games .res{ width:30px; height:30px; border-radius:8px; display:grid; place-items:center; font-weight:700; font-size:13px; }
  .pv-games .res.w{ background:var(--positive-soft); color:var(--positive-ink); } .pv-games .res.l{ background:var(--negative-soft); color:var(--negative); }
  .pv-games .o{ font-weight:600; display:flex; align-items:center; gap:8px; min-width:0; }
  .pv-games .o span{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .pv-games .o .sc{ color:var(--text-faint); font-weight:400; flex:none; }
  .pv-games .c{ font-size:12.5px; color:var(--text-faint); margin-top:1px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .pv-games .line{ text-align:right; font-size:13px; color:var(--text-muted); white-space:nowrap; }
  .pv-games .line b{ font-family:var(--display); font-weight:600; font-size:22px; color:var(--text); margin-right:3px; }

  /* tables */
  .pv-table td{ padding-top:10px; padding-bottom:10px; }
  .pv-table tr.pv-tier td{ background:var(--surface-alt); font-weight:600; border-bottom-color:var(--border); cursor:pointer; }
  .pv-table tr.pv-tier.static td{ cursor:default; }
  .pv-table tr.pv-tier .tl{ font-family:var(--display); font-size:15px; }
  .pv-table tr.pv-tier .ts2{ font-weight:400; color:var(--text-faint); margin-left:8px; font-size:12.5px; }
  .pv-table tr.pv-tier .car{ display:inline-block; width:16px; color:var(--text-faint); transition:transform .15s; }
  .pv-table tr.pv-tier.open .car{ transform:rotate(90deg); }
  .pv-table tr.pv-sub td{ color:var(--text-muted); font-size:12.5px; }
  .pv-table tr.pv-tot td{ font-weight:600; }
  .pv-table td.pv-hi{ color:var(--accent-ink); font-weight:700; }
  .pv-table td.pos, .pv-snap .pos{ color:var(--positive-ink); font-weight:600; } .pv-table td.neg, .pv-snap .neg{ color:var(--negative); font-weight:600; }
  .pv-wl{ display:inline-block; width:18px; font-weight:700; } .pv-wl.w{ color:var(--positive-ink); } .pv-wl.l{ color:var(--negative); }

  .pv-two{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:40px; align-items:start; }
  .pv-two.one{ grid-template-columns:minmax(0,1fr); }
  .pv-cmp{ display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); }
  .pv-cmp > div{ padding:8px 18px; border-top:1px solid var(--hair); font-variant-numeric:tabular-nums; }
  .pv-cmp .h{ border-top:none; padding:12px 18px; font-family:var(--display); font-weight:600; font-size:16px; }
  .pv-cmp .r, .pv-cmp .b{ text-align:right; } .pv-cmp .k{ text-align:center; color:var(--text-muted); font-size:12.5px; }
  .pv-cmp b{ font-family:var(--display); font-weight:600; font-size:16px; } .pv-cmp .better{ color:var(--positive-ink); }
  .pv-mix-l{ padding:14px 18px 0; font-size:12.5px; color:var(--text-muted); }
  .pv-mix{ display:flex; height:14px; border-radius:7px; overflow:hidden; margin:6px 18px 6px; gap:2px; }
  .pv-mix span{ display:block; height:100%; }
  .pv-legend{ display:flex; gap:16px; padding:4px 18px 12px; font-size:12.5px; color:var(--text-muted); flex-wrap:wrap; }
  .pv-legend i{ display:inline-block; width:10px; height:10px; border-radius:3px; margin-right:6px; vertical-align:-1px; }

  /* game log */
  .pv-chips{ display:flex; gap:8px; overflow-x:auto; padding:14px 18px; border-bottom:1px solid var(--hair); scrollbar-width:thin; }
  .pv-chip{ flex:none; text-align:left; background:var(--surface); border:1px solid var(--border); border-radius:9px; padding:7px 12px; cursor:pointer; color:var(--text); min-width:132px; font-family:inherit; }
  .pv-chip .t{ font-weight:600; font-size:13px; white-space:nowrap; }
  .pv-chip .s{ font-size:11.5px; color:var(--text-faint); white-space:nowrap; }
  .pv-chip.on{ background:var(--on-bg); color:var(--on-fg); border-color:transparent; }
  .pv-chip.on .s{ color:inherit; opacity:.7; }
  .pv-lgsum{ display:flex; gap:26px; padding:14px 18px 4px; flex-wrap:wrap; align-items:flex-end; }
  .pv-lgsum .k.first{ margin-right:auto; }
  .pv-lgsum .t{ font-family:var(--display); font-weight:600; font-size:20px; }
  .pv-lgsum .t a{ color:var(--text); }
  .pv-lgsum .t small{ font-family:var(--body); font-size:12.5px; font-weight:400; color:var(--text-faint); margin-left:6px; }
  .pv-lgsum .k b{ font-family:var(--display); font-weight:600; font-size:22px; display:block; line-height:1.1; }
  .pv-lgsum .k span{ font-size:12px; color:var(--text-muted); }
  .pv-chart{ padding:10px 14px 0; }
  .pv-chart svg{ display:block; width:100%; height:auto; }
  .pv-ax{ font-family:var(--display); font-size:11px; fill:var(--text-faint); }
  .pv-grid{ stroke:var(--hair); stroke-width:1; }

  /* advanced */
  .pv-snap{ display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:20px; }
  .pv-snap > div{ background:var(--surface); border:1px solid var(--border); border-radius:14px; padding:20px 22px; }
  .pv-snap .l{ font-size:13.5px; font-weight:600; }
  .pv-snap .v{ font-family:var(--display); font-weight:700; font-size:48px; line-height:1.05; margin:4px 0; }
  .pv-snap .s{ font-size:12.5px; color:var(--text-faint); }
  .pv-range{ position:relative; height:14px; min-width:150px; }
  .pv-range .z{ position:absolute; left:50%; top:0; bottom:0; width:1px; background:var(--text-faint); }
  .pv-range .sp{ position:absolute; top:4px; height:6px; border-radius:3px; background:oklch(70% 0.08 255 / .45); }
  .pv-range .sp.dn{ background:oklch(70% 0.1 25 / .4); }
  .pv-range .pt{ position:absolute; top:1px; width:4px; height:12px; border-radius:2px; background:var(--accent); }
  .pv-range .pt.dn{ background:var(--negative); }

  @media (prefers-reduced-motion: reduce){ .pv-table tr.pv-tier .car{ transition:none; } }
  @media (max-width:980px){
    .pv-ins, .pv-ins.n2{ grid-template-columns:minmax(0,1fr); }
    .pv-two{ grid-template-columns:minmax(0,1fr); gap:0; }
    .pv-bar-in{ grid-template-columns:repeat(2, minmax(0,1fr)); }
    .pv-scope{ grid-column:1 / -1; }
    .pv-highs{ grid-template-columns:repeat(3, minmax(0,1fr)); row-gap:22px; }
    .pv-highs .hs:nth-child(4){ border-left:none; padding-left:0; }
    .pv-path{ grid-template-columns:minmax(0,1fr); }
    .pv-path .yr{ border-left:none; padding-left:0; border-bottom:1px solid var(--hair); }
    .pv-snap{ grid-template-columns:repeat(2, minmax(0,1fr)); }
  }
  @media (max-width:640px){
    .pv-in{ grid-template-columns:minmax(0,1fr); min-height:0; padding:24px 16px 0; }
    .pv-photo{ position:absolute; right:14px; top:18px; width:118px; height:150px; }
    .pv-initials{ width:96px; height:96px; font-size:34px; bottom:10px; }
    .pv-eyebrow, .pv-hero .pv-name{ padding-right:124px; }
    .pv-hero .pv-name{ font-size:46px; }
    .pv-num{ font-size:240px; right:40px; top:-20px; }
    .pv-title{ font-size:12px; }
    .pv-facts{ gap:10px 20px; } .pv-facts > div{ min-width:40%; }
    .pv-bar-in{ gap:18px; padding:16px; }
    .pv-stat .v{ font-size:40px; }
    .pv-tabs{ top:0; gap:20px; }
    .pv-sec-h h2{ font-size:22px; }
    .pv-ic .big{ font-size:52px; } .pv-ic.lead .big{ font-size:60px; }
    .pv-highs{ grid-template-columns:repeat(2, minmax(0,1fr)); }
    .pv-highs .hs:nth-child(odd){ border-left:none; padding-left:0; } .pv-highs .hs:nth-child(4){ border-left:1px solid var(--hair); padding-left:18px; }
    .pv-games .line span:nth-child(n+2){ display:none; }
  }
  .pv-table td.left:nth-child(2){ white-space:normal; min-width:200px; max-width:380px; }
  /* hand-kept badges under the name, and titles by competition */
  .pv-badges{ display:flex; gap:10px; flex-wrap:wrap; margin:-4px 0 14px; }
  /* gold, not a chip: a struck-metal plate with a bevel, a sheen and an engraved glyph */
  .pv-badge{ position:relative; overflow:hidden; display:inline-flex; align-items:center; gap:8px; padding:6px 14px 6px 10px; border-radius:7px;
    font-size:12.5px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:oklch(26% 0.06 70);
    background:linear-gradient(135deg, #fbeeb4 0%, #e9c766 22%, #c9982f 48%, #f3d98a 62%, #b98526 100%);
    border:1px solid oklch(88% 0.1 90 / .9);
    box-shadow:inset 0 1px 0 oklch(100% 0 0 / .65), inset 0 -1px 0 oklch(40% 0.08 70 / .45), 0 2px 10px oklch(70% 0.14 80 / .35), 0 0 0 1px oklch(35% 0.07 70 / .5);
    text-shadow:0 1px 0 oklch(96% 0.05 90 / .6); }
  .pv-badge::after{ content:""; position:absolute; top:-40%; left:-60%; width:40%; height:180%; transform:rotate(22deg);
    background:linear-gradient(90deg, transparent, oklch(100% 0 0 / .55), transparent); animation:pvShine 5.5s ease-in-out infinite; }
  @keyframes pvShine{ 0%, 70%{ left:-60%; } 100%{ left:130%; } }
  @media (prefers-reduced-motion: reduce){ .pv-badge::after{ animation:none; display:none; } }
  .pv-bi{ width:15px; height:15px; flex:none; fill:oklch(34% 0.0709 86); filter:drop-shadow(0 1px 0 oklch(96% 0.06 90 / .7)); }
  .pv-bi .in{ fill:#f7e3a0; stroke:#f7e3a0; }
  .pv-tbox{ display:grid; grid-template-columns:repeat(auto-fill, minmax(118px, 1fr)); gap:8px; margin:2px 0 4px; }
  .pv-tbox > div{ border:1px solid color-mix(in oklch, var(--pv-gold) 35%, var(--border)); background:var(--pv-gold-soft); border-radius:10px; padding:9px 12px; display:flex; flex-direction:column; min-width:0; }
  .pv-tbox b{ font-family:var(--display); font-weight:700; font-size:26px; line-height:1; color:var(--pv-gold); }
  .pv-tbox span{ font-size:13px; font-weight:600; margin-top:3px; }
  .pv-tbox em{ font-style:normal; font-size:11.5px; color:var(--text-faint); }
  .pv-path .it.abroad{ font-weight:600; color:var(--accent-ink); }
  .pv-path .aw.lg{ color:var(--text-muted); }
  /* medals: struck metal discs and tags, bronze / silver / gold */
  .pv-medal{ display:inline-block; flex:none; border-radius:50%; box-shadow:inset 0 1px 0 oklch(100% 0 0 / .55), inset 0 -1px 1px oklch(20% 0.04 60 / .45), 0 0 0 1px oklch(30% 0.05 60 / .35); }
  .pv-medal.bronze{ background:radial-gradient(circle at 35% 30%, #f3c79a 0%, #c8844a 38%, #8a5226 78%, #b77443 100%); }
  .pv-medal.silver{ background:radial-gradient(circle at 35% 30%, #ffffff 0%, #d5dae2 38%, #8f99a8 78%, #c4cbd6 100%); }
  .pv-medal.gold{ background:radial-gradient(circle at 35% 30%, #fff1b8 0%, #e6bf52 38%, #a97a1c 78%, #d9ae45 100%); }
  .pv-tag.medal{ color:#fff; text-shadow:0 1px 0 oklch(25% 0.05 60 / .5); }
  .pv-tag.medal.bronze{ background:linear-gradient(135deg, #d9a06c, #a7652f 55%, #c9864f); }
  .pv-tag.medal.silver{ background:linear-gradient(135deg, #e6e9ef, #9aa3b1 55%, #cfd4dc); color:oklch(25% 0.02 255); text-shadow:none; }
  .pv-tag.medal.gold{ background:linear-gradient(135deg, #f7df8e, #c9982f 55%, #efd07a); color:oklch(26% 0.06 70); text-shadow:none; }
  .pv-path .md{ padding-left:25px; font-size:11.5px; font-weight:700; line-height:1.45; }
  .pv-path .md.bronze{ color:#b8723d; } .pv-path .md.silver{ color:#8f99a8; } .pv-path .md.gold{ color:var(--pv-gold); }
  .pv-title.medal.bronze{ background:linear-gradient(135deg, #e0aa78, #a7652f 55%, #cf8f58); color:#fff; border-color:transparent; text-shadow:0 1px 0 oklch(25% 0.05 60 / .45); }
  .pv-title.medal.silver{ background:linear-gradient(135deg, #f1f3f6, #9aa3b1 55%, #d5dae2); color:oklch(22% 0.02 255); border-color:transparent; }
  .pv-title.medal.gold{ background:linear-gradient(135deg, #f7df8e, #c9982f 55%, #efd07a); color:oklch(24% 0.06 70); border-color:transparent; }
  .pv-title.medal em{ border-left-color:currentColor; opacity:.9; }

/* ===========================================================================
   Competition › Players: one column set at a time, in its own scroll box with
   the header and the player column pinned, so the sideways bar is always in view.
   =========================================================================== */
  .cp-card{ overflow:visible; }
  .cp-bar{ display:flex; align-items:center; gap:12px; padding:14px 18px; border-bottom:1px solid var(--hair); flex-wrap:wrap; }
  .cp-views .seg-btn{ padding:6px 14px; font-size:13px; }
  .cp-q{ margin-left:auto; min-width:220px; flex:0 1 300px; }
  .cp-scroll{ max-height:min(70vh, 820px); overflow:auto; overscroll-behavior:contain; }
  .cp-table thead th{ position:sticky; top:0; z-index:3; background:var(--surface); box-shadow:inset 0 -1px 0 var(--border); border-bottom:none; }
  .cp-table th[data-csort]{ cursor:pointer; user-select:none; white-space:nowrap; }
  .cp-table th[data-csort]:hover{ color:var(--text); }
  .cp-table th .cp-ar{ font-style:normal; font-size:9px; margin-left:3px; display:inline-block; width:8px; }
  .cp-table th.cp-on{ color:var(--accent-ink); font-weight:700; }
  .cp-table td.cp-on{ background:color-mix(in oklch, var(--accent-soft) 55%, transparent); font-weight:600; }
  .cp-table tbody tr:hover td{ background:var(--surface-alt); }
  .cp-table tbody tr:hover td.cp-on{ background:var(--accent-soft); }
  /* rank and player both stay pinned while the numbers scroll */
  .cp-table .cp-rk{ width:44px; min-width:44px; max-width:44px; color:var(--text-faint); font-size:12.5px; padding-left:18px; padding-right:4px; }
  .table-scroll.cp-scroll th:nth-child(2), .table-scroll.cp-scroll td:nth-child(2){ position:sticky; left:44px; z-index:2; background:var(--surface); box-shadow:2px 0 6px oklch(20% 0.02 255 / 0.10); }
  .table-scroll.cp-scroll th:first-child, .table-scroll.cp-scroll td:first-child{ box-shadow:none; }
  .table-scroll.cp-scroll thead th:nth-child(-n+2){ z-index:4; }
  .cp-table tbody tr:hover td:nth-child(-n+2){ background:var(--surface-alt); }
  @media (max-width:640px){ .cp-q{ margin-left:0; flex:1 1 100%; min-width:0; } .cp-views{ overflow-x:auto; max-width:100%; } }
  .table-scroll.cp-scroll thead th:first-child, .table-scroll.cp-scroll thead th:nth-child(2){ box-shadow:inset 0 -1px 0 var(--border); }
  .table-scroll.cp-scroll thead th:nth-child(2){ box-shadow:inset 0 -1px 0 var(--border), 2px 0 6px oklch(20% 0.02 255 / 0.10); }
  .cp-table td{ padding-top:8px; padding-bottom:8px; }
  .cp-views .seg-btn{ white-space:nowrap; }
  @media (max-width:640px){
    .cp-table .cp-rk{ display:none; }
    .table-scroll.cp-scroll th:nth-child(2), .table-scroll.cp-scroll td:nth-child(2){ left:0; max-width:148px; min-width:148px; white-space:normal; }
    .cp-table td:nth-child(2) .avatar{ display:none; }
    .cp-table td:nth-child(2) .p-name{ font-size:13px; line-height:1.25; }
    .cp-table td:nth-child(2) .p-team{ font-size:11px; }
    .cp-bar{ padding:12px; }
    .cp-scroll{ max-height:72vh; }
  }
  /* face-centred crops: the image is already square, so it simply fills the disc */
  .avatar-face{ background:var(--surface-alt); }
  .avatar-face img{ width:100%; height:100%; object-fit:cover; display:block; }
  .cp-table .avatar{ width:34px; height:34px; }

/* ===========================================================================
   Competition families (#/competitions, #/cf/<key>): one card per competition,
   and a family page whose centrepiece is the honour roll, one card per division.
   =========================================================================== */
  .ccard-chip-live{ color:#b8f5d2; background:rgba(51,193,122,.14); }
  .ccard-chip-live i{ width:6px; height:6px; border-radius:50%; background:#33c17a; box-shadow:0 0 0 3px rgba(51,193,122,.2); }
  .cf-rolls{ display:grid; grid-template-columns:repeat(auto-fit, minmax(min(100%, 560px), 1fr)); gap:16px; margin-bottom:8px; }
  .cf-roll{ padding:0; overflow:hidden; border-top:3px solid var(--dc); }
  .cf-roll-head{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px 16px; padding:14px 18px 12px; border-bottom:1px solid var(--border); }
  .cf-div{ display:flex; align-items:center; gap:8px; font-family:var(--display); font-size:20px; font-weight:700; }
  .cf-div i{ width:10px; height:10px; border-radius:50%; background:var(--dc); }
  .cf-div em{ font-style:normal; color:var(--text-muted); font-weight:600; }
  .cf-tally{ display:flex; flex-wrap:wrap; gap:6px; }
  .cf-tally span{ display:inline-flex; align-items:center; gap:6px; font-size:12.5px; font-weight:600; padding:3px 9px 3px 5px; border-radius:100px; background:var(--pv-gold-soft); color:var(--pv-gold); }
  .cf-tally b{ font-family:var(--display); font-size:13.5px; }
  .cf-table{ width:100%; }
  .cf-table td{ vertical-align:top; padding-top:11px; padding-bottom:11px; }
  .cf-table th:first-child, .cf-table td:first-child{ padding-left:18px; }
  .cf-table th:last-child, .cf-table td:last-child{ padding-right:18px; }
  .cf-yr{ width:1%; white-space:nowrap; }
  .cf-yr a{ font-family:var(--display); font-weight:700; font-size:17px; color:var(--text); }
  .cf-yr a:hover{ color:var(--accent-ink); }
  .cf-yr small{ display:block; white-space:normal; min-width:150px; max-width:220px; font-size:11.5px; color:var(--text-muted); line-height:1.35; margin-top:2px; }
  .cf-champ{ display:inline-flex; align-items:center; gap:8px; }
  .cf-champ b{ font-weight:600; }
  .cf-who{ line-height:1.3; }
  .cf-who + .cf-who{ margin-top:6px; }
  .cf-who a{ font-weight:600; }
  .cf-who small{ display:flex; align-items:center; gap:5px; font-size:11.5px; color:var(--text-muted); margin-top:2px; }
  .cf-none{ color:var(--text-faint); }
  .cf-live{ display:inline-flex; align-items:center; gap:7px; font-size:12.5px; font-weight:600; color:var(--positive-ink); }
  .cf-live i{ width:7px; height:7px; border-radius:50%; background:var(--positive); }
  .cf-q{ padding:10px 18px 12px; font-size:12.5px; color:var(--text-muted); border-top:1px solid var(--hair); }
  .cf-note{ font-size:12.5px; color:var(--text-muted); max-width:90ch; margin:6px 0 22px; }
  .cf-page .cx-head{ margin-bottom:22px; }
  /* phones: each season becomes a small block — year on the left, champion and awards stacked beside it */
  @media (max-width: 560px){
    .cf-roll-head{ padding:12px 16px 10px; }
    .cf-table thead{ display:none; }
    .cf-table, .cf-table tbody{ display:block; }
    .cf-table tr{ display:grid; grid-template-columns:auto minmax(0, 1fr); column-gap:14px; row-gap:8px; padding:12px 16px; border-bottom:1px solid var(--hair); }
    .cf-table tr:last-child{ border-bottom:0; }
    .cf-table td{ display:block; padding:0 !important; border:0; }
    .cf-table td.cf-yr{ grid-row:1 / span 3; width:auto; }
    .cf-yr small{ min-width:0; max-width:90px; }
    .cf-table td[data-l]::before{ content:attr(data-l); display:block; font-size:11px; font-weight:600; color:var(--text-faint); margin-bottom:1px; }
  }
  .cf-champ{ display:flex; align-items:flex-start; } .cf-champ b{ min-width:0; overflow-wrap:anywhere; line-height:1.3; padding-top:1px; }
  /* a placing that is not a title (runner-up): shown on the career path only */
  .pv-path .pl{ padding-left:25px; font-size:11.5px; font-weight:600; color:var(--text-muted); line-height:1.45; }
  .pv-path .tm{ padding-left:25px; font-size:11.5px; color:var(--text-faint); line-height:1.35; margin-top:-2px; }
  .pv-path div.it a{ color:inherit; }
  .pv-path .it span{ min-width:0; overflow-wrap:anywhere; }
  /* national team caps (FIBA) */
  .pv-capev{ display:inline-flex; align-items:center; gap:8px; }
  .pv-caps td .dim{ color:var(--text-faint); }

  /* ---- Live layer: Home, the live bar, the live game page --------------------
     Red means a game is on (sports convention); green is only the "feed is
     answering" dot; the stage under the live scoreboard is the same --void the
     player hero uses. */
  :root{ --live:oklch(57% 0.21 25); --live-ink:oklch(50% 0.19 25); --live-soft:oklch(95% 0.03 25); --live-line:oklch(85% 0.07 25); }
  @media (prefers-color-scheme: dark){ :root:not([data-theme="light"]){
    --live:oklch(60% 0.2 25); --live-ink:oklch(80% 0.1 25); --live-soft:oklch(24% 0.05 25); --live-line:oklch(36% 0.09 25); } }
  :root[data-theme="dark"]{ --live:oklch(60% 0.2 25); --live-ink:oklch(80% 0.1 25); --live-soft:oklch(24% 0.05 25); --live-line:oklch(36% 0.09 25); }
  @keyframes lvPulse{ 0%,100%{ opacity:1 } 50%{ opacity:.3 } }
  .lv-dot{ display:inline-block; width:7px; height:7px; border-radius:50%; background:#fff; animation:lvPulse 1.4s ease-in-out infinite; flex:none; }
  .lv-dot-idle{ background:var(--text-faint); animation:none; margin-right:8px; }
  .lv-dot-ok{ background:var(--positive); animation:none; margin-right:6px; }
  @media (prefers-reduced-motion: reduce){ .lv-dot{ animation:none; } }
  .lv-tag{ display:inline-flex; align-items:center; gap:6px; padding:3px 8px; border-radius:4px; background:var(--live);
           color:#fff; font:700 11px var(--display); letter-spacing:.12em; white-space:nowrap; }
  .lv-tag-fin{ background:var(--on-bg); color:var(--on-fg); }

  /* the bar under the menu */
  .lvb{ display:flex; align-items:center; gap:14px; padding:9px max(16px, calc((100% - 1240px) / 2)); background:var(--live-soft);
        border-bottom:1px solid var(--live-line); color:var(--text); font-size:13px; text-decoration:none; flex-wrap:wrap; row-gap:6px; }
  .lvb:hover{ text-decoration:none; }
  .lvb-comp, .lvb-ago{ color:var(--text-muted); }
  .lvb-score{ font-weight:700; } .lvb-score b{ font:700 16px var(--display); padding:0 6px; font-variant-numeric:tabular-nums; }
  .lvb-clock{ font:600 13px var(--display); letter-spacing:.06em; color:var(--live-ink); font-variant-numeric:tabular-nums; }
  .lvb-more{ font-size:12px; color:var(--text-muted); }
  .lvb-grow{ flex:1 1 auto; }
  .lvb-go{ font-weight:700; color:var(--live-ink); }
  @media (max-width:700px){ .lvb-comp, .lvb-ago, .lvb-grow{ display:none; } .lvb{ gap:10px; } .lvb-go{ margin-left:auto; } }

  /* Home */
  .lv-page{ display:flex; flex-direction:column; gap:18px; }
  #live-home{ display:flex; flex-direction:column; gap:18px; }
  .lv-head{ display:flex; align-items:baseline; gap:14px; flex-wrap:wrap; margin-top:4px; }
  .lv-h{ font:700 clamp(26px,4vw,34px)/1.1 var(--display); margin:0; text-transform:none; letter-spacing:0; }
  .lv-sub{ font:600 11px var(--display); letter-spacing:.14em; text-transform:uppercase; color:var(--text-faint); }
  .lv-h2{ font:700 20px var(--display); margin:8px 0 0; text-transform:none; letter-spacing:0; }
  .lv-h2 span{ font:500 13px var(--body); color:var(--text-faint); margin-left:6px; }
  .lv-quiet{ padding:16px 18px; font-size:14px; line-height:1.55; color:var(--text-muted); display:block; }
  .lv-quiet b{ color:var(--text); }
  .lv-card{ display:grid; grid-template-columns:minmax(0,1.25fr) minmax(0,1fr); overflow:hidden; border-color:var(--live-line); }
  .lv-card.lv-fin{ border-color:var(--border); }
  .lv-card-main{ padding:22px 24px; display:flex; flex-direction:column; gap:18px;
                 background:radial-gradient(120% 140% at 0% 0%, var(--live-soft) 0%, transparent 70%); }
  .lv-fin .lv-card-main{ background:none; }
  .lv-card-top{ display:flex; align-items:center; gap:10px; font-size:13px; color:var(--text-muted); flex-wrap:wrap; }
  .lv-card-top a{ color:inherit; }
  .lv-teams{ display:flex; flex-direction:column; gap:10px; }
  .lv-team{ display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:12px; color:var(--text-muted); }
  .lv-team.lv-ahead{ color:var(--text); }
  .lv-tname{ font-weight:700; font-size:19px; min-width:0; overflow-wrap:anywhere; }
  .lv-tscore{ font:700 46px/1 var(--display); font-variant-numeric:tabular-nums; }
  .lv-meta{ display:flex; gap:26px; flex-wrap:wrap; }
  .lv-k{ font:600 10px var(--display); letter-spacing:.14em; text-transform:uppercase; color:var(--text-faint); }
  .lv-v{ font:700 24px var(--display); font-variant-numeric:tabular-nums; margin-top:2px; }
  .lv-pens{ font-size:12px; color:var(--text-muted); margin-top:2px; }
  .lv-pen{ color:var(--accent-2-ink); font-weight:600; }
  .lv-q{ border-collapse:collapse; font-size:13px; font-variant-numeric:tabular-nums; }
  .lv-q th{ font:600 11px var(--display); letter-spacing:.08em; color:var(--text-faint); padding:3px 12px; }
  .lv-q td{ padding:3px 12px; text-align:center; } .lv-q td:first-child{ text-align:left; padding-left:0; font-weight:600; }
  .lv-q .lv-qnow{ color:var(--live-ink); } .lv-qt{ font-weight:700; }
  .lv-card-side{ border-left:1px solid var(--hair); display:flex; flex-direction:column; padding:16px 20px; gap:8px; min-width:0; }
  .lv-last{ padding-bottom:12px; border-bottom:1px solid var(--hair); }
  .lv-last p{ margin:6px 0 0; font-size:14px; line-height:1.45; }
  .lv-lead-k{ display:flex; justify-content:space-between; gap:8px; margin-top:4px; }
  .lv-lead-k span:last-child{ text-transform:none; letter-spacing:0; font-family:var(--body); font-weight:400; font-size:11px; }
  .lv-lead{ width:100%; border-collapse:collapse; font-size:14px; font-variant-numeric:tabular-nums; }
  .lv-lead th{ font:600 11px var(--display); letter-spacing:.08em; color:var(--text-faint); text-align:right; padding:6px 0 6px 10px; border-bottom:1px solid var(--hair); }
  .lv-lead td{ padding:8px 0 8px 10px; text-align:right; border-bottom:1px solid var(--hair); }
  .lv-lead td:first-child{ text-align:left; padding-left:0; font-weight:600; }
  .lv-lead tr:last-child td{ border-bottom:0; }
  .lv-code{ color:var(--text-faint); font-weight:500; font-size:12px; }
  .lv-pts{ font-weight:700; }
  .lv-follow{ margin-top:auto; display:block; text-align:center; padding:11px; border-radius:8px; background:var(--on-bg);
              color:var(--on-fg); font-weight:700; font-size:14px; }
  .lv-follow:hover{ text-decoration:none; opacity:.9; }
  @media (max-width:820px){ .lv-card{ grid-template-columns:1fr; } .lv-card-side{ border-left:0; border-top:1px solid var(--hair); }
    .lv-tscore{ font-size:38px; } .lv-card-main{ padding:18px; } }
  .lv-list{ display:flex; flex-direction:column; }
  .lv-row{ display:grid; grid-template-columns:150px minmax(0,1fr) auto; align-items:center; gap:14px; padding:11px 16px;
           border-bottom:1px solid var(--hair); font-size:14px; }
  .lv-row:last-child{ border-bottom:0; }
  .lv-when{ color:var(--text-muted); font-size:12.5px; font-variant-numeric:tabular-nums; }
  .lv-match{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; min-width:0; }
  .lv-match b{ overflow-wrap:anywhere; } .lv-lost{ font-weight:500; color:var(--text-muted); }
  .lv-vs{ color:var(--text-faint); font-size:12px; }
  .lv-res{ font:700 15px var(--display); font-variant-numeric:tabular-nums; padding:0 4px; }
  .lv-comp{ font-size:12.5px; text-align:right; }
  @media (max-width:640px){ .lv-row{ grid-template-columns:1fr; gap:4px; } .lv-comp{ text-align:left; } }
  .lv-notes{ display:grid; grid-template-columns:repeat(auto-fit, minmax(260px, 1fr)); gap:14px; margin-top:4px; }
  .lv-note{ padding:14px 18px; } .lv-note p{ margin:6px 0 0; font-size:13.5px; line-height:1.55; color:var(--text-muted); }
  .lv-note-k{ font:600 11px var(--display); letter-spacing:.14em; text-transform:uppercase; color:var(--text-faint); }

  /* the live game page */
  #live-game{ display:flex; flex-direction:column; gap:18px; }
  .lv-crumb{ font-size:13px; color:var(--text-muted); } .lv-crumb a{ color:inherit; }
  .lv-stage{ border-radius:14px; padding:24px 26px; color:#fff; display:flex; flex-direction:column; gap:18px; box-shadow:var(--shadow-3);
             background:radial-gradient(90% 160% at 50% 0%, oklch(32% 0.1 25 / .55) 0%, var(--void) 60%), var(--void); }
  .lv-stage-top{ display:flex; justify-content:center; align-items:center; gap:10px; font-size:13px; color:rgba(255,255,255,.75); flex-wrap:wrap; }
  .lv-board{ display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:center; gap:24px; }
  .lv-side{ display:flex; align-items:center; gap:14px; min-width:0; } .lv-side-h{ justify-content:flex-end; text-align:right; }
  .lv-bname{ font:700 clamp(17px,2.4vw,28px)/1.15 var(--display); overflow-wrap:anywhere; }
  .lv-bfoul{ font:600 11px var(--display); letter-spacing:.1em; text-transform:uppercase; color:oklch(86% 0.13 86); margin-top:4px; }
  .lv-bmid{ display:flex; flex-direction:column; align-items:center; gap:8px; }
  .lv-bscore{ font:700 clamp(44px,7vw,72px)/1 var(--display); font-variant-numeric:tabular-nums; white-space:nowrap; }
  .lv-bscore span{ color:rgba(255,255,255,.4); padding:0 10px; }
  .lv-bclock{ padding:5px 14px; border-radius:999px; border:1px solid oklch(45% 0.12 25); background:oklch(24% 0.06 25);
              font:700 16px var(--display); letter-spacing:.06em; font-variant-numeric:tabular-nums; white-space:nowrap; }
  .lv-qwrap{ align-self:center; max-width:100%; }
  .lv-q-big th{ color:rgba(255,255,255,.55); } .lv-q-big td{ color:rgba(255,255,255,.9); font-size:14px; }
  @media (max-width:640px){ .lv-board{ grid-template-columns:1fr; gap:12px; } .lv-side, .lv-side-h{ justify-content:center; text-align:center; }
    .lv-side-h{ flex-direction:row-reverse; } .lv-stage{ padding:18px 16px; } }
  .lv-fresh{ display:flex; align-items:center; gap:16px; flex-wrap:wrap; padding:11px 16px; border-radius:10px; background:var(--surface);
             border:1px solid var(--border); font-size:13px; color:var(--text-muted); }
  .lv-fresh b{ color:var(--text); }
  .lv-cols{ display:grid; grid-template-columns:minmax(0,0.9fr) minmax(0,1.1fr); gap:22px; align-items:start; }
  .lv-cols > section{ display:flex; flex-direction:column; gap:10px; min-width:0; }
  @media (max-width:980px){ .lv-cols{ grid-template-columns:1fr; } }
  .lv-plays{ display:flex; flex-direction:column; font-size:13.5px; }
  .lv-pper{ font:700 11px var(--display); letter-spacing:.14em; color:var(--text-faint); padding:8px 14px; background:var(--surface-alt); }
  .lv-play{ display:grid; grid-template-columns:44px 40px minmax(0,1fr) 58px; gap:8px; padding:9px 14px; border-top:1px solid var(--hair); align-items:baseline; }
  .lv-play-a{ color:var(--text-muted); } .lv-play-a b{ color:var(--text); }
  .lv-play-sc{ background:var(--accent-2-soft); }
  .lv-pclock{ color:var(--text-faint); font-variant-numeric:tabular-nums; }
  .lv-pteam{ font-weight:700; font-size:12px; } .lv-ptext{ min-width:0; overflow-wrap:anywhere; }
  .lv-pscore{ text-align:right; font-weight:700; font-variant-numeric:tabular-nums; }
  .lv-box{ overflow:hidden; } .lv-box-h{ display:flex; align-items:center; gap:10px; padding:12px 14px; border-bottom:1px solid var(--border); }
  .lv-box-h span{ margin-left:auto; font:700 20px var(--display); font-variant-numeric:tabular-nums; }
  .lv-boxt{ width:100%; border-collapse:collapse; font-size:13px; font-variant-numeric:tabular-nums; }
  .lv-boxt th{ font:600 11px var(--display); letter-spacing:.06em; color:var(--text-faint); padding:7px 6px; text-align:right; border-bottom:1px solid var(--border); white-space:nowrap; }
  .lv-boxt td{ padding:7px 6px; text-align:right; border-bottom:1px solid var(--hair); white-space:nowrap; }
  .lv-boxt .lv-l{ text-align:left; white-space:normal; min-width:140px; }
  .lv-boxt td:first-child, .lv-boxt th:first-child{ padding-left:14px; color:var(--text-faint); text-align:left; }
  .lv-boxt td:last-child, .lv-boxt th:last-child{ padding-right:14px; }
  .lv-boxt tr.lv-dnp td{ color:var(--text-faint); }
  .lv-court{ color:var(--live); font-size:10px; vertical-align:1px; }
  /* the whole play-by-play (relay v2): its own scroll box, a period filter, a scoring-only switch */
  .lv-plays{ max-height:min(78vh, 980px); overflow-y:auto; overscroll-behavior:contain; }
  .lv-pfilt{ display:flex; flex-wrap:wrap; gap:6px; align-items:center; }
  .lv-chip{ appearance:none; cursor:pointer; border:1px solid var(--border); background:var(--surface); color:var(--text-muted);
            font:600 12.5px var(--body); padding:5px 12px; border-radius:100px; min-height:30px; }
  .lv-chip:hover{ color:var(--text); border-color:var(--text-faint); }
  .lv-chip.on{ background:var(--on-bg); border-color:var(--on-bg); color:var(--on-fg); }
  .lv-pscoring{ display:inline-flex; align-items:center; gap:6px; margin-left:auto; font-size:12.5px; color:var(--text-muted); cursor:pointer; }
  .lv-pnone{ padding:18px 14px; color:var(--text-faint); }
  .lv-boxt tfoot td{ border-bottom:0; }
  .lv-boxt tr.lv-tot td{ font-weight:700; border-top:1px solid var(--border); }
  .lv-boxt tr.lv-pctrow td{ color:var(--text-faint); font-size:12px; padding-top:0; }
  .lv-tst td, .lv-tst th{ text-align:right; } .lv-tst td:nth-child(2), .lv-tst td:nth-child(3){ font-weight:600; }
  /* the site links: tightened so they still fit one line on a laptop; below that the row scrolls */
  .wordmark{ white-space:nowrap; }
  @media (min-width:901px) and (max-width:1400px){
    .nav-left{ gap:18px; min-width:0; flex:1 1 auto; }
    .nav-links{ min-width:0; overflow-x:auto; scrollbar-width:none; }
    .nav-links::-webkit-scrollbar{ height:0; }
    .nav-link{ padding:8px 9px; white-space:nowrap; flex:none; }
  }
  
  @media (min-width:901px) and (max-width:1180px){
    .nav{ padding:0 18px; }
    .nav-left{ gap:12px; }
    .nav-links{ gap:2px; }
    .nav-link{ padding:8px 7px; }
  }
  .lvb-comp{ max-width:280px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  @media (max-width:1180px){ .lvb-ago{ display:none; } .lvb-comp{ max-width:180px; } }
  .lv-lead{ table-layout:fixed; }
  .lv-lead th:not(:first-child), .lv-lead td:not(:first-child){ width:42px; }
  .lv-lead td:first-child{ overflow-wrap:anywhere; }

  /* ---- Home (app4o_home.js) ------------------------------------------------
     The games box on a dark stage, then the doors into the rest of the site. */
  .hm{ max-width:1320px; margin:0 auto; padding:22px 32px 8px; display:flex; flex-direction:column; gap:34px; }
  @media (max-width:700px){ .hm{ padding:14px 16px 4px; gap:26px; } }
  .hm-hero{ position:relative; overflow:hidden; border-radius:20px; background:var(--void); color:#fff; box-shadow:var(--shadow-3); isolation:isolate; }
  .hm-hero-in{ position:relative; z-index:2; display:grid; grid-template-columns:minmax(0,1.5fr) minmax(280px,1fr); gap:40px; padding:48px 52px; align-items:center; }
  @media (max-width:980px){ .hm-hero-in{ grid-template-columns:1fr; padding:32px 26px; gap:28px; } }
  @media (max-width:520px){ .hm-hero-in{ padding:26px 18px; } }
  .hm-eyebrow{ display:flex; align-items:center; gap:9px; font:600 11px var(--display); letter-spacing:.18em; text-transform:uppercase; color:rgba(255,255,255,.66); }
  .hm-eyebrow-dot{ width:8px; height:8px; border-radius:2px; background:var(--accent-2); box-shadow:0 0 12px var(--accent-2); }

  .hm-sec{ display:flex; flex-direction:column; gap:12px; min-width:0; }
  .hm-sec-h{ display:flex; align-items:baseline; justify-content:space-between; gap:12px; }
  .hm-sec-h h2{ margin:0; font:700 26px var(--display); letter-spacing:0; text-transform:none; }
  .hm-sec-h a{ font-size:13.5px; font-weight:600; white-space:nowrap; }

  .hm-explore{ display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:14px; }
  @media (max-width:900px){ .hm-explore{ grid-template-columns:1fr; } }
  @media (max-width:480px){ .hm-explore{ grid-template-columns:1fr; } }
  .hm-door{ position:relative; display:flex; flex-direction:column; gap:6px; padding:18px 20px 40px; color:var(--text); text-decoration:none; transition:transform .18s ease, box-shadow .18s ease; }
  .hm-door:hover{ text-decoration:none; transform:translateY(-3px); box-shadow:var(--shadow-2); }
  .hm-door b{ font:700 19px var(--display); } .hm-door span{ font-size:13px; line-height:1.5; color:var(--text-muted); }
  .hm-door i{ position:absolute; right:18px; bottom:14px; font-style:normal; font-size:18px; color:var(--accent-ink); transition:transform .18s ease; }
  .hm-door:hover i{ transform:translateX(4px); }
  @media (prefers-reduced-motion: reduce){ .hm-door, .hm-door i{ transition:none; } }

  /* ---- Compare, second pass (V113) -------------------------------------------
     A dark stage for the two men and the verdict, then grouped measures instead
     of one long sheet. Blue is always the left player, orange the right. */
  .cmp-page{ display:flex; flex-direction:column; gap:18px; }
  .cmp-page .cmp-pickrow, .cmp-page .cmp-scope, .cmp-page .page-head{ margin-bottom:0; }
  .cmp-card{ border-radius:16px; overflow:hidden; }
  .cmp-start{ border-radius:18px; padding:26px 26px 22px; background:var(--void); color:#fff; box-shadow:var(--shadow-3); position:relative; overflow:hidden;
    background:radial-gradient(60% 140% at 0% 0%, oklch(46% 0.16 255 / .35), transparent 60%), radial-gradient(60% 140% at 100% 0%, oklch(66% 0.135 86 / .3), transparent 60%), var(--void); }
  .cmp-start-k{ font:600 11px var(--display); letter-spacing:.16em; text-transform:uppercase; color:rgba(255,255,255,.62); margin-bottom:12px; }
  .cmp-start-n{ font-size:13px; color:rgba(255,255,255,.6); margin-top:12px; }
  .cmp-start .cmp-vs{ color:#fff; }
  .cmp-start .cmp-pick{ background:rgba(255,255,255,.07); border-color:rgba(255,255,255,.16); border-radius:999px; }
  .cmp-start .cmp-input{ color:#fff; } .cmp-start .cmp-input::placeholder{ color:rgba(255,255,255,.55); }
  .cmp-page .cmp-pick{ border-radius:999px; }

  .vs{ position:relative; overflow:hidden; isolation:isolate; border-radius:20px; background:var(--void); color:#fff; box-shadow:var(--shadow-3); }
  .vs-glow{ position:absolute; inset:0; z-index:0;
    background:radial-gradient(55% 120% at 0% 10%, oklch(52% 0.17 255 / .5), transparent 62%), radial-gradient(55% 120% at 100% 10%, oklch(68% 0.14 86 / .45), transparent 62%); }
  .vs-in{ position:relative; z-index:2; display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:end; gap:18px; padding:30px 34px 0; }
  .vs .cmp-hero{ display:flex; align-items:flex-end; gap:18px; background:none; padding:0; border-radius:0; color:#fff; text-decoration:none; min-width:0; }
  .vs .cmp-hero::after{ display:none; }
  .vs .cmp-hero.b{ flex-direction:row-reverse; text-align:right; }
  .vs-fig{ flex:none; width:150px; height:190px; display:flex; align-items:flex-end; justify-content:center; }
  .vs-fig img{ max-width:100%; max-height:100%; object-fit:contain; object-position:bottom; filter:drop-shadow(0 14px 22px rgba(0,0,0,.5)); }
  .vs-mono{ width:120px; height:120px; margin-bottom:26px; border-radius:50%; display:grid; place-items:center; font:700 40px var(--display);
    background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.18); }
  .vs-who{ display:flex; flex-direction:column; gap:8px; padding-bottom:26px; min-width:0; }
  .vs .cmp-name{ font:700 clamp(22px,3vw,36px)/1.05 var(--display); color:#fff; letter-spacing:0; overflow-wrap:anywhere; }
  .vs .cmp-hero.a .cmp-name{ text-shadow:0 0 28px oklch(60% 0.17 255 / .6); } .vs .cmp-hero.b .cmp-name{ text-shadow:0 0 28px oklch(72% 0.148 86 / .55); }
  .vs-team{ display:flex; align-items:center; gap:7px; font-size:14px; font-weight:600; color:rgba(255,255,255,.85); }
  .vs .cmp-hero.b .vs-team, .vs .cmp-hero.b .vs-chips{ justify-content:flex-end; }
  .vs-chips{ display:flex; flex-wrap:wrap; gap:6px; }
  .vs-chips span{ padding:4px 10px; border-radius:999px; font:600 11.5px var(--body); color:oklch(88% 0.1 85); background:oklch(80% 0.13 85 / .12); border:1px solid oklch(80% 0.13 85 / .3); }
  .vs-mid{ display:flex; flex-direction:column; align-items:center; gap:4px; padding-bottom:22px; text-align:center; }
  .vs-score{ display:flex; align-items:baseline; gap:10px; font:700 clamp(40px,5.4vw,68px)/1 var(--display); font-variant-numeric:tabular-nums; }
  .vs-score .a{ color:oklch(74% 0.14 255); } .vs-score .b{ color:oklch(82% 0.15 86); } .vs-score i{ font-style:normal; color:rgba(255,255,255,.35); font-size:.6em; }
  .vs-vs{ font:700 34px var(--display); letter-spacing:.1em; color:rgba(255,255,255,.7); }
  .vs-cap{ font:600 11px var(--display); letter-spacing:.14em; text-transform:uppercase; color:rgba(255,255,255,.7); }
  .vs-cap2{ font-size:12px; color:rgba(255,255,255,.5); max-width:22ch; }
  .vs .cmp-swap{ margin-top:10px; padding:6px 12px; border-radius:999px; border:1px solid rgba(255,255,255,.25); background:rgba(255,255,255,.06); color:#fff; font:600 12px var(--body); cursor:pointer; }
  .vs .cmp-swap:hover{ border-color:#fff; color:#fff; }
  .vs-tape{ position:relative; z-index:2; display:grid; grid-template-columns:repeat(auto-fit, minmax(150px, 1fr)); gap:1px; background:rgba(255,255,255,.1);
    border-top:1px solid rgba(255,255,255,.1); }
  .vs-row{ display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:8px; padding:11px 14px; background:oklch(14% 0.018 262); font-size:13.5px; font-variant-numeric:tabular-nums; }
  .vs-row span{ color:rgba(255,255,255,.72); font-weight:600; } .vs-row span:last-child{ text-align:right; }
  .vs-row span:first-child.on{ color:oklch(78% 0.13 255); } .vs-row span:last-child.on{ color:oklch(86% 0.14 86); }
  .vs-row em{ font:600 10px var(--display); font-style:normal; letter-spacing:.12em; text-transform:uppercase; color:rgba(255,255,255,.45); text-align:center; }
  @media (max-width:760px){
    .vs-in{ grid-template-columns:1fr 1fr; padding:20px 16px 0; gap:10px; align-items:end; }
    .vs-mid{ grid-column:1 / -1; grid-row:1; padding-bottom:6px; }
    .vs .cmp-hero, .vs .cmp-hero.b{ flex-direction:column; align-items:center; text-align:center; gap:8px; }
    .vs .cmp-hero.b .vs-team, .vs .cmp-hero.b .vs-chips, .vs-team, .vs-chips{ justify-content:center; }
    .vs-fig{ width:110px; height:130px; order:2; } .vs-mono{ width:84px; height:84px; font-size:28px; margin-bottom:14px; } .vs-who{ padding-bottom:6px; }
    .vs-tape{ grid-template-columns:1fr 1fr; }
  }

  .ed-row{ display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:14px; }
  @media (max-width:760px){ .ed-row{ grid-template-columns:1fr; } }
  .ed{ padding:14px 16px; border-radius:16px; background:var(--surface); border:1px solid var(--border); box-shadow:var(--shadow); display:flex; flex-direction:column; gap:10px; }
  .ed.a{ background:linear-gradient(120deg, color-mix(in oklab, var(--accent) 9%, var(--surface)), var(--surface) 60%); }
  .ed.b{ background:linear-gradient(240deg, color-mix(in oklab, var(--accent-2) 11%, var(--surface)), var(--surface) 60%); }
  .ed-k{ font:600 11px var(--display); letter-spacing:.12em; text-transform:uppercase; color:var(--text-muted); }
  .ed-chips{ display:flex; flex-wrap:wrap; gap:7px; }
  .ed-chips span{ padding:6px 12px; border-radius:999px; font-size:13px; font-variant-numeric:tabular-nums; border:1px solid var(--hair); background:var(--surface); }
  .ed.a .ed-chips span{ color:var(--accent-ink); border-color:color-mix(in oklab, var(--accent) 30%, transparent); }
  .ed.b .ed-chips span{ color:var(--accent-2-ink); border-color:color-mix(in oklab, var(--accent-2) 35%, transparent); }
  .ed-chips b{ color:var(--text); margin-right:2px; } .ed-chips .ed-none{ color:var(--text-faint) !important; border-style:dashed !important; }

  .cmp-two{ display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); gap:18px; align-items:start; }
  @media (max-width:980px){ .cmp-two{ grid-template-columns:1fr; } }
  .tp-head{ display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
  .tp{ padding:6px 0 4px; }
  .tp-cols{ display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:0 26px; padding:10px 18px 8px; }
  @media (max-width:980px){ .tp-cols{ grid-template-columns:1fr; padding:6px 0; } }
  .tp-cols > div{ display:flex; flex-direction:column; gap:14px; min-width:0; }
  .tp-g{ border:1px solid var(--hair); border-radius:14px; overflow:hidden; background:var(--surface); }
  .tp-h{ display:grid; grid-template-columns:36px 1fr 36px; align-items:center; padding:9px 14px; background:var(--surface-alt); }
  .tp-h h3{ margin:0; text-align:center; font:700 12px var(--display); letter-spacing:.14em; text-transform:uppercase; color:var(--text-muted); }
  .tp-s{ width:26px; height:26px; border-radius:50%; display:grid; place-items:center; font:700 13px var(--display); color:var(--text-faint); font-variant-numeric:tabular-nums; }
  .tp-s.b{ justify-self:end; }
  .tp-s.a.on{ background:var(--accent); color:#fff; } .tp-s.b.on{ background:var(--accent-2); color:#111; }
  .tp .sr{ grid-template-columns:62px minmax(0,1fr) 96px minmax(0,1fr) 62px; padding:9px 14px; gap:10px; border-top:1px solid var(--hair); transition:background .15s ease; }
  .tp .sr:hover{ background:color-mix(in oklab, var(--surface-alt) 55%, transparent); }
  .tp .sr-v{ font-size:16.5px; color:var(--text-muted); } .tp .sr-v.win{ color:var(--accent-ink); } .tp .sr-v.b.win{ color:var(--accent-2-ink); }
  .tp .sr-bar{ height:8px; border-radius:4px; background:var(--surface-alt); overflow:hidden; }
  .tp .sr-bar span{ border-radius:4px; }
  .tp .sr-bar.a span{ background:linear-gradient(270deg, var(--accent), color-mix(in oklab, var(--accent) 60%, #fff)); }
  .tp .sr-bar.b span{ background:linear-gradient(90deg, var(--accent-2), color-mix(in oklab, var(--accent-2) 60%, #fff)); }
  .tp .sr-bar.dim span{ opacity:.28; }
  .tp .sr-k{ cursor:help; }
  .tp .sr-n .sr-v{ color:var(--text); font-weight:600; } .tp .sr-n .sr-bar span{ background:var(--text-faint); opacity:.45; }
  .tp > .sr, .tp > .sr-hi{ padding-left:20px; padding-right:20px; }
  .sr-hi .sr-v{ line-height:1.15; } .sr-hi .sr-sub{ max-width:120px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .tp .sr-hi{ grid-template-columns:120px minmax(0,1fr) 70px minmax(0,1fr) 120px; }
  .tp .sr-hi .sr-v.a .sr-sub{ margin-left:auto; }
  @media (max-width:560px){ .tp .sr{ grid-template-columns:50px minmax(0,1fr) 78px minmax(0,1fr) 50px; padding:8px 10px; gap:6px; } .tp .sr-v{ font-size:14px; }
    .tp .sr-hi{ grid-template-columns:86px minmax(0,1fr) 54px minmax(0,1fr) 86px; } .sr-hi .sr-sub{ max-width:86px; } .tp > .sr, .tp > .sr-hi{ padding-left:10px; padding-right:10px; } }

  .mt-list{ display:flex; flex-direction:column; gap:8px; padding:12px 18px 6px; }
  .mt-row{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.5fr) minmax(0,1fr); align-items:center; gap:12px; padding:11px 14px; border-radius:12px;
    border:1px solid var(--hair); background:var(--surface); color:var(--text-muted); text-decoration:none; font-size:13px; transition:transform .15s ease, border-color .15s ease; }
  .mt-row:hover{ text-decoration:none; border-color:var(--border); transform:translateY(-1px); }
  .mt-l b{ font:700 17px var(--display); color:var(--text); } .mt-l.b{ text-align:right; }
  .mt-l.a.w b{ color:var(--accent-ink); } .mt-l.b.w b{ color:var(--accent-2-ink); }
  .mt-mid{ display:flex; flex-direction:column; align-items:center; gap:3px; text-align:center; min-width:0; }
  .mt-sc{ font-size:13.5px; } .mt-sc .w{ color:var(--text); font-weight:700; }
  .mt-when{ font-size:11.5px; color:var(--text-faint); }
  @media (max-width:640px){ .mt-row{ grid-template-columns:1fr 1fr; } .mt-mid{ grid-column:1 / -1; grid-row:1; } .mt-list{ padding:10px 10px 4px; } }
  @media (prefers-reduced-motion: reduce){ .tp .sr, .mt-row{ transition:none; } }
  .tp-head .head-sub{ margin-left:10px; }

/* ===========================================================================
   Accounts (V114): sign-in, My page, player claims, the edit page and the
   admin review queue. Everything is prefixed acc- and built from the tokens
   above, so both themes come for free.
   =========================================================================== */
  .acc-tk{ display:inline-flex; align-items:center; justify-content:center; width:1.25em; height:1.25em; border-radius:50%; background:#fff; color:oklch(40% 0.17 255);
    font-style:normal; font-size:.8em; font-weight:800; flex:none; }
  .acc-ver{ display:inline-flex; align-items:center; gap:6px; padding:4px 11px 4px 5px; border-radius:999px; background:oklch(48% 0.17 255); color:#fff;
    font:700 12.5px var(--body); letter-spacing:0; white-space:nowrap; vertical-align:middle; }
  .acc-ver.sm{ font-size:11.5px; padding:3px 9px 3px 4px; }
  .acc-av{ display:inline-flex; align-items:center; justify-content:center; width:30px; height:30px; border-radius:50%; background:oklch(48% 0.17 255); color:#fff;
    font:700 12px var(--body); flex:none; }
  .acc-av.lg{ width:48px; height:48px; font-size:15px; }
  .acc-av.xl{ width:64px; height:64px; font-size:22px; }
  .acc-mono{ font-family:var(--mono); letter-spacing:.1em; }
  .acc-fine{ display:block; font-size:13px; line-height:1.5; color:var(--text-muted); margin:0; }
  .dim{ color:var(--text-muted); }

  /* header */
  .acc-in, .acc-chip{ display:inline-flex; align-items:center; gap:8px; min-height:34px; box-sizing:border-box; border-radius:100px; border:1px solid rgba(255,255,255,.28);
    background:transparent; color:#fff; font:600 13px var(--body); white-space:nowrap; cursor:pointer; text-decoration:none; }
  .acc-in{ padding:0 14px; }
  .acc-chip{ padding:1px 13px 1px 2px; }
  .acc-chip .acc-av{ width:28px; height:28px; font-size:11px; }
  .acc-in:hover, .acc-chip:hover{ border-color:var(--accent-2); color:#fff; text-decoration:none; }
  .acc-chip.on{ background:rgba(255,255,255,.14); }
  .acc-chip.wait{ opacity:.55; cursor:default; }
  
  @media (min-width:901px) and (max-width:1020px){ .acc-chip{ font-size:0; gap:0; padding:1px 2px; } .acc-in{ padding:0 10px; } }
  
  @media (max-width:560px){
    .acc-chip{ font-size:0; gap:0; padding:1px 2px; }
    /* on a phone the controls sit at the top right, so the section links keep the whole second line */
    .nav:has(.acc-in, .acc-chip){ position:relative; }
    .nav:has(.acc-in, .acc-chip) .nav-right{ position:absolute; top:8px; right:16px; }
    .nav:has(.acc-in, .acc-chip) .nav-left{ max-width:100%; }
    .nav:has(.acc-in, .acc-chip) .wordmark{ min-height:34px; }
  }

  /* buttons and small parts */
  .acc-btn{ display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; box-sizing:border-box; padding:0 18px; border-radius:10px;
    border:1px solid transparent; background:var(--accent); color:#fff; font:700 14.5px var(--body); cursor:pointer; text-decoration:none; white-space:nowrap; }
  .acc-btn:hover{ background:var(--accent-hover); color:#fff; text-decoration:none; }
  .acc-btn.big{ min-height:50px; font-size:15.5px; padding:0 24px; }
  .acc-btn.dark{ background:var(--on-bg); color:var(--on-fg); }
  .acc-btn.dark:hover{ opacity:.9; background:var(--on-bg); color:var(--on-fg); }
  .acc-btn.line{ background:var(--surface); color:var(--accent-ink); border-color:var(--accent); }
  .acc-btn.line:hover{ background:var(--accent-soft); color:var(--accent-ink); }
  .acc-btn.line.danger{ color:var(--negative); border-color:var(--border); }
  .acc-btn.ghost{ background:transparent; border-color:rgba(255,255,255,.35); color:#fff; border-radius:999px; }
  .acc-btn.ghost:hover{ background:rgba(255,255,255,.1); }
  .acc-btn.ok{ background:var(--positive-ink); }
  .acc-btn.ok:hover{ background:var(--positive-ink); opacity:.9; }
  .acc-btn.danger:not(.line){ background:var(--negative); }
  .acc-btn[disabled]{ background:var(--surface-alt); color:var(--text-muted); border-color:var(--border); cursor:not-allowed; opacity:1; }
  .acc-link{ background:none; border:0; padding:12px 4px; font:600 13.5px var(--body); color:var(--accent-ink); cursor:pointer; text-decoration:underline; text-underline-offset:3px; }
  .acc-link.danger{ color:var(--negative); }
  .acc-pill{ display:inline-flex; align-self:flex-start; padding:4px 10px; border-radius:999px; font:700 12.5px var(--body); font-style:normal; white-space:nowrap; }
  .acc-pill.sm{ font-size:11.5px; padding:2px 8px; margin-left:6px; }
  .acc-pill.wait{ background:var(--accent-2-soft); color:var(--accent-2-ink); }
  .acc-pill.ok{ background:var(--positive-soft); color:var(--positive-ink); }
  .acc-pill.no{ background:var(--negative-soft); color:var(--negative); }
  .acc-err{ margin:0; padding:10px 14px; border-radius:10px; background:var(--negative-soft); color:var(--negative); font-weight:600; line-height:1.45; }
  .acc-toast{ position:fixed; left:50%; bottom:26px; transform:translate(-50%, 20px); z-index:1200; max-width:min(92vw, 460px); padding:13px 18px; border-radius:12px;
    background:var(--on-bg); color:var(--on-fg); font:600 14px/1.4 var(--body); box-shadow:var(--shadow-3); opacity:0; pointer-events:none; transition:opacity .18s, transform .18s; }
  .acc-toast.on{ opacity:1; transform:translate(-50%, 0); }
  @media (prefers-reduced-motion: reduce){ .acc-toast{ transition:none; } }

  /* form fields */
  .acc-f{ display:flex; flex-direction:column; gap:6px; margin:0; padding:0; border:0; min-width:0; }
  .acc-f > span, .acc-f > legend{ display:flex; justify-content:space-between; align-items:baseline; font-weight:700; font-size:14px; padding:0; }
  .acc-f > span i{ font-style:normal; font-weight:500; font-size:13px; color:var(--text-muted); font-variant-numeric:tabular-nums; }
  .acc-f em{ font-style:normal; font-size:13px; line-height:1.45; color:var(--text-muted); }
  .acc-f em.chg{ color:var(--accent-2-ink); font-weight:600; }
  .acc-f input, .acc-f select, .acc-f textarea, .acc-pre input{ box-sizing:border-box; width:100%; min-height:46px; padding:0 14px; border-radius:10px; border:1px solid var(--border);
    background:var(--surface); color:var(--text); font:500 15px var(--body); }
  .acc-f textarea{ padding:12px 14px; line-height:1.55; resize:vertical; min-height:96px; }
  .acc-f input:focus, .acc-f select:focus, .acc-f textarea:focus, .acc-pre:focus-within{ outline:2px solid var(--accent); outline-offset:1px; border-color:var(--accent); }
  .acc-pre{ display:flex; align-items:stretch; min-height:46px; border-radius:10px; border:1px solid var(--border); overflow:hidden; background:var(--surface); }
  .acc-pre > span{ display:flex; align-items:center; padding:0 12px; background:var(--surface-alt); color:var(--text-muted); border-right:1px solid var(--border); white-space:nowrap; font-size:14px; }
  .acc-pre.end > span{ border-right:0; border-left:1px solid var(--border); }
  .acc-pre input{ border:0; border-radius:0; min-width:0; flex:1; outline:0 !important; }
  .acc-chk{ display:flex; align-items:flex-start; gap:12px; line-height:1.45; min-height:44px; padding-top:10px; box-sizing:border-box; cursor:pointer; }
  .acc-chk input{ width:20px; height:20px; margin:1px 0 0; flex:none; accent-color:var(--accent); }

  /* dialogs */
  html.acc-lock{ overflow:hidden; }
  .acc-ov{ position:fixed; inset:0; z-index:1100; display:flex; align-items:flex-start; justify-content:center; padding:5vh 16px 24px; overflow-y:auto;
    background:oklch(12% 0.03 264 / .72); backdrop-filter:blur(3px); }
  .acc-dlg{ width:100%; max-width:440px; box-sizing:border-box; display:flex; flex-direction:column; gap:18px; padding:30px 30px 24px; border-radius:18px;
    background:var(--surface); color:var(--text); box-shadow:var(--shadow-3); font-size:14.5px; }
  .acc-dlg.wide{ max-width:580px; }
  .acc-dlg h2{ margin:0; font:800 25px/1.12 var(--body); letter-spacing:-.01em; }
  .acc-dlg p{ margin:0; line-height:1.55; color:var(--text-muted); }
  .acc-eyebrow{ font:700 12px var(--body); letter-spacing:.07em; text-transform:uppercase; color:var(--text-muted); margin-bottom:-12px; }
  .acc-box{ display:flex; flex-direction:column; gap:9px; padding:15px 17px; border-radius:12px; background:var(--surface-alt); line-height:1.45; }
  .acc-box span{ display:flex; gap:10px; align-items:flex-start; }
  .acc-box .acc-tk{ background:var(--positive-ink); color:#fff; margin-top:1px; }
  .acc-box.plain{ display:block; color:var(--text); }
  .acc-foot{ display:flex; justify-content:space-between; align-items:center; gap:12px; font-size:13.5px; }
  .acc-acts{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
  .acc-dlg .acc-acts .acc-btn.big{ flex:1; }
  .acc-who{ display:flex; align-items:center; gap:12px; padding:11px 14px; border-radius:12px; border:1px solid var(--border); }
  .acc-who > div{ display:flex; flex-direction:column; gap:2px; flex:1; min-width:0; }
  .acc-who > div span{ font-size:13px; color:var(--text-muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .acc-who .acc-av{ width:40px; height:40px; font-size:14px; }
  .acc-pick{ display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:12px; }
  .acc-pick label{ display:flex; gap:10px; align-items:flex-start; padding:13px 14px; border-radius:12px; border:1px solid var(--border); cursor:pointer; }
  .acc-pick label:has(input:checked){ border-color:var(--accent); box-shadow:inset 0 0 0 1px var(--accent); background:var(--accent-soft); }
  .acc-pick input{ width:18px; height:18px; margin:2px 0 0; flex:none; accent-color:var(--accent); min-height:0; padding:0; }
  .acc-pick span{ display:flex; flex-direction:column; gap:4px; font-size:13px; line-height:1.4; color:var(--text-muted); }
  .acc-pick span b{ font-size:14.5px; color:var(--text); }
  .acc-step{ display:flex; align-items:center; gap:10px; margin:4px 0 -8px; font:700 15px var(--body); }
  .acc-step i{ display:inline-flex; align-items:center; justify-content:center; width:24px; height:24px; border-radius:50%; background:var(--on-bg); color:var(--on-fg); font-style:normal; font-size:13px; }
  .acc-step.done i{ background:var(--positive-ink); color:#fff; }
  .acc-prof{ display:flex; align-items:center; gap:14px; padding:12px 14px; border-radius:12px; background:var(--surface-alt); }
  .acc-prof img, .acc-p-h img, .acc-q-p img, .acc-mine-h img{ width:48px; height:48px; border-radius:50%; object-fit:cover; object-position:top; background:oklch(24% 0.08 262); flex:none; }
  .acc-prof div{ display:flex; flex-direction:column; gap:3px; }
  .acc-prof b{ font-size:16px; } .acc-prof > div span{ font-size:13px; color:var(--text-muted); }
  .acc-ig{ display:flex; flex-direction:column; gap:14px; padding:18px; border-radius:12px; border:1px solid var(--border); background:var(--accent-soft); }
  .acc-ig p{ color:var(--text); }
  .acc-ig .acc-btn{ align-self:flex-start; }
  .acc-code{ display:flex; align-items:center; gap:12px; }
  .acc-code span{ flex:1; padding:11px 16px; border-radius:10px; border:1px dashed var(--accent); background:var(--surface); font:700 24px var(--mono); letter-spacing:.18em; user-select:all; }
  .acc-steps{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; }
  .acc-steps li{ display:grid; grid-template-columns:28px minmax(0,1fr); gap:14px; padding-bottom:16px; position:relative; }
  .acc-steps li:last-child{ padding-bottom:0; }
  .acc-steps li:not(:last-child)::before{ content:''; position:absolute; left:12px; top:26px; bottom:0; width:2px; background:var(--border); }
  .acc-steps li.done:not(:last-child)::before{ background:var(--positive-ink); }
  .acc-steps i{ width:26px; height:26px; box-sizing:border-box; border-radius:50%; border:2px solid var(--border); background:var(--surface); display:flex; align-items:center; justify-content:center;
    font-style:normal; font-size:13px; font-weight:800; color:#fff; position:relative; }
  .acc-steps li.done i{ background:var(--positive-ink); border-color:var(--positive-ink); }
  .acc-steps li.now i{ border:7px solid var(--accent); }
  .acc-steps div{ display:flex; flex-direction:column; gap:2px; }
  .acc-steps span{ color:var(--text-muted); }
  .acc-steps li:not(.done):not(.now) b{ color:var(--text-muted); }

  /* on a player profile */
  .acc-claim-w{ position:absolute; z-index:3; top:24px; right:max(28px, calc((100% - 1320px) / 2 + 28px)); }
  .acc-claim{ display:inline-flex; align-items:center; gap:10px; min-height:44px; box-sizing:border-box; padding:5px 6px 5px 16px; border-radius:999px; border:1px solid rgba(255,255,255,.28);
    background:rgba(255,255,255,.07); color:#fff; font:500 13.5px var(--body); cursor:pointer; text-decoration:none; }
  .acc-claim span{ color:oklch(86% 0.02 255); }
  .acc-claim b{ padding:7px 13px; border-radius:999px; background:#fff; color:oklch(22% 0.06 262); font-weight:700; }
  .acc-claim:hover{ border-color:#fff; text-decoration:none; color:#fff; }
  .pv-eyebrow .acc-ver{ margin-left:4px; }
  .acc-follow{ display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-top:20px; }
  .acc-follow .k{ font-size:12.5px; color:oklch(100% 0 0 / .72); }
  .acc-follow a{ display:inline-flex; align-items:center; gap:8px; min-height:40px; box-sizing:border-box; padding:0 14px; border-radius:999px; border:1px solid rgba(255,255,255,.3);
    background:rgba(255,255,255,.08); color:#fff; font-size:14px; text-decoration:none; }
  .acc-follow a i{ font-style:normal; color:oklch(86% 0.02 255); }
  .acc-follow a:hover{ border-color:#fff; }
  .acc-hero-act{ margin-top:16px; }
  .acc-fav{ display:inline-flex; align-items:center; min-height:40px; box-sizing:border-box; padding:0 15px; border-radius:999px; border:1px solid rgba(255,255,255,.3); background:transparent;
    color:#fff; font:600 13.5px var(--body); cursor:pointer; white-space:nowrap; }
  .acc-fav:hover{ border-color:#fff; }
  .acc-fav.on{ background:rgba(255,255,255,.14); color:oklch(88% 0.13 85); border-color:oklch(84% 0.13 85 / .6); }
  .acc-fav.light{ border-color:var(--border); color:var(--text); background:var(--surface); }
  .acc-fav.light:hover{ border-color:var(--accent); }
  .acc-fav.light.on{ background:var(--accent-2-soft); color:var(--accent-2-ink); border-color:var(--accent-2); }
  .acc-team-act{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; justify-content:flex-end; }
  .vs .acc-cmp{ margin-top:8px; }
  .vs .acc-cmp.on{ color:oklch(88% 0.13 85); border-color:oklch(84% 0.13 85 / .6); }
  .acc-about{ display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:32px; align-items:start; padding:24px 26px; border-radius:14px; border:1px solid var(--border); background:var(--surface); }
  .acc-about p{ margin:0; font-size:17px; line-height:1.6; white-space:pre-line; overflow-wrap:anywhere; }
  .acc-about-by{ display:flex; flex-direction:column; gap:8px; padding-left:26px; border-left:1px solid var(--border); font-size:13.5px; line-height:1.5; color:var(--text-muted); }
  .acc-about-by b{ display:flex; align-items:center; gap:8px; color:var(--text); }
  .acc-about-by .acc-tk{ background:oklch(48% 0.17 255); color:#fff; }
  @media (max-width:900px){
    .acc-claim-w{ position:static; padding:16px 16px 0; }
    .acc-about{ grid-template-columns:minmax(0,1fr); gap:16px; padding:18px; }
    .acc-about-by{ padding-left:0; border-left:0; padding-top:14px; border-top:1px solid var(--border); }
  }

  /* My page, the edit page, the review queue */
  .acc-hero{ background:radial-gradient(120% 240% at 85% 0%, oklch(34% 0.13 262) 0%, oklch(19% 0.06 264) 55%, oklch(13% 0.03 264) 100%); color:#fff; }
  .acc-hero-in{ max-width:1320px; margin:0 auto; padding:24px 28px; display:flex; align-items:center; gap:18px; flex-wrap:wrap; }
  .acc-hero-id{ display:flex; flex-direction:column; gap:6px; flex:1; min-width:200px; color:oklch(86% 0.02 255); }
  .acc-hero .page-title{ margin:0; color:#fff; font:700 32px/1.05 var(--display); display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
  .acc-hero-ph{ width:64px; height:64px; border-radius:50%; object-fit:cover; object-position:top; background:oklch(28% 0.1 262); }
  .acc-page{ padding-top:28px; padding-bottom:40px; }
  .acc-gate{ max-width:560px; margin:40px auto; display:flex; flex-direction:column; gap:16px; align-items:flex-start; padding:32px; border-radius:16px; border:1px solid var(--border); background:var(--surface); }
  .acc-gate .page-title{ margin:0; } .acc-gate p{ margin:0; line-height:1.55; color:var(--text-muted); font-size:15.5px; }
  .acc-cols{ display:grid; grid-template-columns:minmax(0,1fr) 380px; gap:28px; align-items:start; }
  .acc-main{ display:flex; flex-direction:column; gap:28px; min-width:0; }
  .acc-side{ display:flex; flex-direction:column; gap:18px; min-width:0; }
  .acc-card{ display:flex; flex-direction:column; gap:12px; padding:20px 22px; border-radius:14px; border:1px solid var(--border); background:var(--surface); min-width:0; }
  .acc-card h2{ margin:0; font:800 19px/1.2 var(--body); }
  .acc-card p{ margin:0; line-height:1.5; color:var(--text-muted); }
  .acc-cta{ border-color:oklch(75% 0.056 252 / .8); background:linear-gradient(150deg, var(--accent-soft), var(--surface) 70%); }
  .acc-adm{ border-color:var(--accent-2); }
  .acc-sec{ display:flex; flex-direction:column; gap:14px; min-width:0; }
  .acc-sec-h{ display:flex; align-items:baseline; justify-content:space-between; gap:12px; }
  .acc-sec-h h2{ margin:0; font:800 23px/1.15 var(--body); }
  .acc-sec-h a{ font-weight:600; padding:8px 0; }
  .acc-grid{ display:grid; gap:16px; }
  .acc-grid.g3{ grid-template-columns:repeat(3, minmax(0,1fr)); }
  .acc-grid.g2{ grid-template-columns:repeat(2, minmax(0,1fr)); }
  .acc-p-h{ display:flex; align-items:center; gap:12px; min-width:0; }
  .acc-p-h > div{ display:flex; flex-direction:column; gap:2px; flex:1; min-width:0; }
  .acc-p-h a{ font-weight:700; font-size:16px; overflow-wrap:anywhere; }
  .acc-p-h > div span{ font-size:13px; color:var(--text-muted); }
  .acc-x{ width:36px; height:36px; flex:none; border-radius:50%; border:0; background:transparent; color:var(--text-muted); font-size:20px; line-height:1; cursor:pointer; }
  .acc-x:hover{ background:var(--surface-alt); color:var(--negative); }
  .acc-p-g{ display:flex; flex-direction:column; gap:6px; padding-top:12px; border-top:1px solid var(--hair); }
  .acc-p-g .k{ font-size:12.5px; color:var(--text-muted); }
  .acc-p-g a{ font-weight:600; color:var(--text); }
  .acc-page b.w{ color:var(--positive-ink); } .acc-page b.l{ color:var(--negative); }
  .acc-p-s{ display:flex; gap:16px; font-variant-numeric:tabular-nums; }
  .acc-p-s span{ font-size:12px; color:var(--text-muted); }
  .acc-p-s b{ font-size:22px; color:var(--text); margin-right:4px; }
  .acc-t-g{ display:grid; grid-template-columns:44px minmax(0,1fr); gap:8px 12px; margin:0; padding-top:12px; border-top:1px solid var(--hair); line-height:1.4; }
  .acc-t-g dt{ font-size:12.5px; color:var(--text-muted); } .acc-t-g dd{ margin:0; }
  .acc-list{ padding:0; gap:0; }
  .acc-list > div{ display:flex; align-items:center; justify-content:space-between; gap:14px; padding:8px 12px 8px 18px; min-height:44px; }
  .acc-list > div + div{ border-top:1px solid var(--hair); }
  .acc-list a{ display:flex; flex-wrap:wrap; gap:4px 8px; align-items:baseline; color:var(--text); }
  .acc-list a em{ font-style:normal; color:var(--text-muted); }
  .acc-list b.a{ color:var(--accent-ink); } .acc-list b.b{ color:var(--accent-2-ink); }
  .acc-empty{ padding:18px 20px; border-radius:14px; border:1px dashed var(--border); color:var(--text-muted); line-height:1.5; }
  .acc-dl{ display:grid; grid-template-columns:110px minmax(0,1fr); gap:10px 12px; margin:0; line-height:1.45; }
  .acc-dl dt{ font-size:13px; color:var(--text-muted); } .acc-dl dd{ margin:0; overflow-wrap:anywhere; }
  .acc-card .acc-foot{ padding-top:12px; border-top:1px solid var(--hair); }
  .acc-card a.acc-fine{ color:var(--accent-ink); text-decoration:underline; text-underline-offset:3px; }
  .acc-mine-h{ display:flex; align-items:center; gap:14px; }
  .acc-mine-h > div{ display:flex; flex-direction:column; gap:6px; align-items:flex-start; }
  .acc-mine h2{ font-size:22px; }
  .acc-state{ display:flex; flex-direction:column; gap:4px; margin:0; padding:12px 16px; border-radius:12px; line-height:1.5; background:var(--surface-alt); color:var(--text) !important; }
  .acc-state.pending{ background:var(--accent-2-soft); }
  .acc-state.approved{ background:var(--positive-soft); }
  .acc-state.rejected{ background:var(--negative-soft); }
  .acc-edit-h{ display:flex; flex-direction:column; gap:6px; margin-bottom:18px; }
  .acc-edit-h h2{ margin:0; font:800 30px/1.1 var(--body); } .acc-edit-h p{ margin:0; font-size:15.5px; color:var(--text-muted); }
  .acc-page > .acc-state{ margin-bottom:18px; }
  .acc-form{ gap:20px; padding:28px; }
  .acc-form-h{ display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
  .acc-form-h.rule{ padding-top:22px; border-top:1px solid var(--hair); }
  .acc-form-h h3{ margin:0; font:800 20px/1.2 var(--body); }
  .acc-links{ display:grid; grid-template-columns:110px minmax(0,1fr); gap:12px; align-items:center; }
  .acc-links > label{ font-weight:600; }
  .acc-3{ display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:16px; align-items:start; }
  .acc-hons{ display:flex; flex-direction:column; border-radius:12px; border:1px solid var(--border); }
  .acc-hon{ display:grid; grid-template-columns:52px minmax(0,1fr) auto; gap:12px; align-items:center; padding:4px 16px; min-height:44px; }
  .acc-hons .acc-hon + .acc-hon{ border-top:1px solid var(--hair); }
  .acc-hon > b{ font-variant-numeric:tabular-nums; }
  .acc-hon.gone > span > b, .acc-hon.gone > b{ text-decoration:line-through; color:var(--text-muted); }
  .acc-hon.new{ border-radius:12px; border:2px dashed var(--accent-2); background:var(--accent-2-soft); padding:8px 16px; }
  .acc-add{ display:flex; flex-direction:column; gap:12px; padding:18px; border-radius:12px; background:var(--surface-alt); }
  .acc-add .acc-btn{ align-self:flex-start; }
  .acc-add-g{ display:grid; grid-template-columns:90px minmax(0,1.4fr) minmax(0,1fr); gap:12px; }
  .acc-add-g.two{ grid-template-columns:minmax(0,1fr) minmax(0,1.4fr); }
  .acc-add .acc-f > span{ font-size:13px; font-weight:600; }
  .acc-send{ display:flex; align-items:center; gap:14px; flex-wrap:wrap; padding-top:20px; border-top:1px solid var(--hair); }
  .acc-sum{ border-color:var(--accent-2); background:var(--accent-2-soft); }
  .acc-sum ul, .acc-ul{ margin:0; padding:0; list-style:none; display:flex; flex-direction:column; gap:10px; line-height:1.45; }
  .acc-sum li{ display:flex; flex-direction:column; gap:1px; overflow-wrap:anywhere; }
  .acc-sum li span{ color:var(--text); } .acc-sum i{ color:var(--text-muted); }
  .acc-outs{ display:flex; flex-direction:column; align-items:flex-start; padding:0 4px; }
  .acc-adm-h{ display:flex; align-items:flex-end; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-bottom:20px; }
  .acc-adm-h .page-title{ margin:0 0 6px; } .acc-adm-h p{ margin:0; font-size:15.5px; color:var(--text-muted); }
  .acc-tiles{ display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:16px; margin-bottom:22px; }
  .acc-tiles > div{ display:flex; flex-direction:column; gap:6px; padding:18px 20px; border-radius:14px; border:1px solid var(--border); background:var(--surface); }
  .acc-tiles b{ font:800 40px/1 var(--body); font-variant-numeric:tabular-nums; }
  .acc-tiles span{ font-weight:600; color:var(--text-muted); }
  .acc-tiles .hot{ border-color:var(--accent-2); background:var(--accent-2-soft); } .acc-tiles .hot span{ color:var(--accent-2-ink); }
  .acc-tabs{ display:flex; gap:26px; border-bottom:1px solid var(--border); margin-bottom:22px; }
  .acc-tabs button{ background:none; border:0; border-bottom:2px solid transparent; padding:12px 0; font:500 16px var(--body); color:var(--text-muted); cursor:pointer; }
  .acc-tabs button.on{ border-bottom-color:var(--accent); color:var(--text); font-weight:700; }
  .acc-tabs span{ font-size:12.5px; margin-left:5px; }
  .acc-page .acc-sec + .acc-sec{ margin-top:28px; }
  .acc-q{ display:grid; grid-template-columns:280px minmax(0,1fr) auto; gap:24px; align-items:center; padding:20px 22px; border-radius:14px; border:1px solid var(--border); background:var(--surface); }
  .acc-q.ready{ border-color:var(--positive-ink); }
  .acc-q-p{ display:flex; align-items:center; gap:14px; min-width:0; }
  .acc-q-p > div{ display:flex; flex-direction:column; gap:4px; align-items:flex-start; min-width:0; }
  .acc-q-p a{ font-weight:700; font-size:16px; } .acc-q-p > div > span:not(.acc-ver){ font-size:13px; color:var(--text-muted); }
  .acc-q-b{ display:flex; flex-direction:column; gap:8px; line-height:1.5; min-width:0; overflow-wrap:anywhere; }
  .acc-q-a{ display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end; }
  .acc-lines{ display:flex; flex-direction:column; gap:6px; }
  .acc-line{ display:grid; grid-template-columns:22px 110px minmax(0,1fr); gap:10px; align-items:start; padding:9px 12px; border-radius:8px; background:var(--accent-2-soft); cursor:pointer; }
  .acc-line input{ width:18px; height:18px; margin:2px 0 0; accent-color:var(--accent); }
  .acc-line b{ font-size:13px; color:var(--accent-2-ink); padding-top:1px; }
  .acc-line s{ color:var(--text-muted); } .acc-line u{ text-decoration:none; font-weight:600; } .acc-line i{ color:var(--text-muted); }
  .acc-line em{ display:block; font-style:normal; font-size:13px; color:var(--text-muted); margin-top:3px; }
  .acc-note > span{ font-size:13px; font-weight:600; } .acc-note input{ min-height:40px; }
  .acc-doc{ max-width:720px; margin:0 auto; display:flex; flex-direction:column; gap:14px; line-height:1.6; font-size:15.5px; }
  .acc-doc h2{ margin:14px 0 0; font:800 21px/1.2 var(--body); }
  .acc-doc p, .acc-doc ul{ margin:0; } .acc-doc ul{ padding-left:20px; display:flex; flex-direction:column; gap:8px; }
  .acc-doc .lede{ font-size:17px; color:var(--text-muted); }
  @media (max-width:1100px){
    .acc-cols{ grid-template-columns:minmax(0,1fr); }
    .acc-q{ grid-template-columns:minmax(0,1fr); gap:14px; } .acc-q-a{ justify-content:flex-start; }
  }
  @media (max-width:760px){
    .acc-hero-in{ padding:20px 16px; } .acc-hero .page-title{ font-size:26px; }
    .acc-grid.g3, .acc-grid.g2, .acc-3, .acc-tiles, .acc-pick{ grid-template-columns:minmax(0,1fr); }
    .acc-tiles{ grid-template-columns:repeat(2, minmax(0,1fr)); }
    .acc-add-g, .acc-add-g.two{ grid-template-columns:minmax(0,1fr); }
    .acc-links{ grid-template-columns:minmax(0,1fr); gap:6px; } .acc-links > label{ margin-top:8px; }
    .acc-form{ padding:20px 16px; } .acc-dlg{ padding:24px 20px 20px; }
    .acc-hon{ grid-template-columns:44px minmax(0,1fr); } .acc-hon > button{ grid-column:2; justify-self:start; padding:4px 0 10px; }
    .acc-line{ grid-template-columns:22px minmax(0,1fr); } .acc-line b{ grid-column:2; } .acc-line > span{ grid-column:2; }
    .acc-tabs{ gap:18px; overflow-x:auto; }
  }

  /* ============================ Stats: Lineups and Clutch (app4q_stats.js) ============================
     A filter card on a grid and one wide table card, in the site's own tokens. Every class is st-
     and the table rules are scoped to .st-table, so nothing here touches the site's other tables. */
  .nav-link.st-navbtn{ cursor:pointer; line-height:inherit; }
  .nav-link.st-navbtn[aria-expanded="true"]{ color:#fff; background:rgba(255,255,255,.16); }
  .st-caret{ display:inline-block; margin-left:6px; font-size:9px; transform:translateY(-1px); }
  .st-menu{ position:absolute; z-index:30; min-width:230px; background:oklch(19% 0.018 262); border:1px solid var(--ink-line);
    border-radius:10px; box-shadow:0 10px 30px rgba(0,0,0,.5); padding:6px; display:flex; flex-direction:column; gap:2px; }
  .st-menu[hidden]{ display:none; }
  .st-menu a{ display:flex; flex-direction:column; gap:1px; padding:10px 14px; border-radius:7px; color:#fff; font-family:var(--display); font-weight:600; font-size:14px; }
  .st-menu a small{ font-family:var(--body); font-weight:400; font-size:11.5px; color:var(--ink-text-dim); }
  .st-menu a:hover{ background:rgba(255,255,255,.08); text-decoration:none; }
  .st-menu a[aria-current="page"]{ background:rgba(255,255,255,.12); box-shadow:inset 3px 0 0 var(--accent-2); }
  .st-menu-sep{ height:1px; margin:4px 8px; background:rgba(255,255,255,.12); }
  @media (max-width:900px){ .nav{ position:relative; } }

  .st-page{ --st-row-alt: oklch(98% 0.004 250); --st-row-hover: oklch(95.5% 0.012 250); --st-neg: oklch(50% 0.19 25); }
  :root[data-theme="dark"] .st-page{ --st-row-alt: oklch(22.5% 0.012 255); --st-row-hover: oklch(26% 0.016 255); --st-neg: oklch(74% 0.15 25); }
  @media (prefers-color-scheme: dark){
    :root:not([data-theme="light"]) .st-page{ --st-row-alt: oklch(22.5% 0.012 255); --st-row-hover: oklch(26% 0.016 255); --st-neg: oklch(74% 0.15 25); }
  }
  .st-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:16px 28px; flex-wrap:wrap; margin-bottom:16px; }
  .st-lede{ color:var(--text-muted); font-size:13px; margin:6px 0 0; max-width:74ch; }
  .st-who{ display:flex; align-items:center; gap:10px; font-family:var(--display); font-size:14px; font-weight:600; margin-bottom:8px; }
  .st-who button{ padding:0; font:inherit; color:var(--accent-ink); cursor:pointer; text-decoration:underline; text-underline-offset:3px; }
  .st-who button[aria-pressed="true"]{ color:var(--text); text-decoration:none; cursor:default; }
  .st-who span{ color:var(--text-faint); font-weight:400; }
  .st-views{ display:flex; gap:2px; background:var(--surface); border:1px solid var(--border); border-radius:100px; padding:3px; overflow-x:auto; max-width:100%; scrollbar-width:none; }
  .st-views::-webkit-scrollbar{ height:0; }
  .st-view{ font-family:var(--display); font-size:12.5px; font-weight:600; padding:7px 15px; border-radius:100px; color:var(--text-muted); cursor:pointer; white-space:nowrap; }
  .st-view:hover{ color:var(--text); }
  .st-view[aria-pressed="true"]{ background:var(--on-bg); color:var(--on-fg); }

  .st-card{ margin-bottom:18px; overflow:visible; }
  .st-filters{ padding:18px 20px 14px; }
  .st-fgrid{ display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:14px 22px; }
  .st-fgrid.st-three{ grid-template-columns:repeat(3, minmax(0, 1fr)); }
  .st-fgroup{ margin-top:18px; }
  .st-fgroup h2{ font-family:var(--display); font-size:14.5px; font-weight:700; margin:0 0 10px; }
  .st-field{ display:flex; flex-direction:column; gap:6px; min-width:0; }
  .st-field label{ font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--text-faint); }
  .st-page select, .st-page input[type="number"], .st-page input[type="search"]{ font:600 13px var(--body); color:var(--text); border:1px solid var(--border);
    border-radius:var(--radius); padding:9px 12px; background:var(--surface-alt); width:100%; min-width:0; }
  .st-page select:focus-visible, .st-page input:focus-visible{ outline:2px solid var(--accent-2); outline-offset:1px; }
  .st-page select:disabled{ color:var(--text-faint); }
  .st-hint{ font-size:11.5px; color:var(--text-faint); }
  .st-frow{ display:flex; align-items:center; justify-content:space-between; gap:10px 18px; flex-wrap:wrap; margin-top:14px; }
  .st-chips{ display:flex; gap:7px; flex-wrap:wrap; min-width:0; }
  .st-chip{ font-size:12px; color:var(--text-muted); background:var(--surface-alt); border:1px solid var(--border); border-radius:100px; padding:3px 6px 3px 11px; display:inline-flex; align-items:center; gap:6px; }
  .st-chip b{ color:var(--text); font-weight:600; }
  .st-chip.st-fixed{ padding-right:11px; }
  .st-chip button{ color:var(--text-faint); cursor:pointer; font-size:14px; line-height:1; padding:2px 5px; border-radius:100px; }
  .st-chip button:hover{ color:var(--text); background:var(--border); }
  .st-linkbtn{ color:var(--accent-ink); font:600 13px var(--body); cursor:pointer; padding:4px 2px; }
  .st-linkbtn:hover{ text-decoration:underline; }
  .st-adv{ border-top:1px solid var(--hair); margin-top:14px; padding-top:14px; }

  .st-tbar{ display:flex; align-items:center; justify-content:space-between; gap:10px 18px; flex-wrap:wrap; padding:13px 20px; border-bottom:1px solid var(--border); }
  .st-tbar-r{ display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
  .st-pager{ display:flex; align-items:center; gap:8px; font-size:13px; color:var(--text-muted); flex-wrap:wrap; }
  .st-pager b{ color:var(--text); font-variant-numeric:tabular-nums; }
  .st-page .st-pager select{ width:auto; padding:6px 10px; }
  .st-pbtn{ width:32px; height:32px; border:1px solid var(--border); background:var(--surface-alt); color:var(--text); border-radius:var(--radius); cursor:pointer; font-size:15px; line-height:1; }
  .st-pbtn:disabled{ color:var(--text-faint); opacity:.5; cursor:default; }
  .st-cov{ font-size:12px; color:var(--text-faint); }
  .st-scroll{ overflow-x:auto; }
  .st-table{ border-collapse:collapse; width:100%; font-variant-numeric:tabular-nums; }
  .st-table th{ font-size:11px; font-weight:700; letter-spacing:.03em; text-transform:uppercase; color:var(--text-faint); text-align:right; padding:0;
    border-bottom:1px solid var(--border); white-space:nowrap; background:var(--surface); cursor:default; user-select:auto; }
  .st-table th:hover{ color:var(--text-faint); }
  .st-table th button{ all:unset; display:block; width:100%; box-sizing:border-box; padding:11px 9px; cursor:pointer; text-align:right; }
  .st-table th button:hover{ color:var(--text); }
  .st-table th button:focus-visible{ outline:2px solid var(--accent-2); outline-offset:-2px; }
  .st-table th[aria-sort] button{ color:var(--text); }
  .st-table th[aria-sort="descending"] button::after{ content:' ▾'; color:var(--accent-2-ink); }
  .st-table th[aria-sort="ascending"] button::after{ content:' ▴'; color:var(--accent-2-ink); }
  .st-table th.st-left button{ text-align:left; padding-left:20px; }
  .st-table th.st-tmh button{ text-align:left; }
  .st-table td{ font-size:13px; text-align:right; padding:10px 9px; border-bottom:1px solid var(--hair); white-space:nowrap; }
  .st-table td.st-sorted, .st-table th[aria-sort]{ background:color-mix(in oklab, var(--accent-soft) 55%, var(--surface)); }
  .st-table tbody tr:nth-child(even) td{ background:var(--st-row-alt); }
  .st-table tbody tr:nth-child(even) td.st-sorted{ background:color-mix(in oklab, var(--accent-soft) 70%, var(--st-row-alt)); }
  .st-table tbody tr:hover td{ background:var(--st-row-hover); }
  .st-table td.st-lu, .st-table th.st-lu{ position:sticky; left:0; z-index:1; text-align:left; }
  .st-table td.st-lu{ background:var(--surface); white-space:normal; min-width:300px; max-width:360px; padding-left:20px; font-family:var(--display); font-weight:600;
    font-size:12.5px; line-height:1.55; letter-spacing:.01em; text-transform:uppercase; box-shadow:1px 0 0 var(--hair); }
  .st-table tbody tr:nth-child(even) td.st-lu{ background:var(--st-row-alt); }
  .st-table tbody tr:hover td.st-lu{ background:var(--st-row-hover); }
  .st-table td.st-lu a{ color:var(--text); }
  .st-table td.st-lu a:hover{ color:var(--accent-ink); }
  .st-sep{ color:var(--text-faint); padding:0 3px; font-weight:500; }
  .st-table td.st-lu.st-one{ min-width:210px; max-width:260px; text-transform:none; font-size:13.5px; letter-spacing:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .st-rk{ display:inline-block; min-width:26px; color:var(--text-faint); font-weight:500; font-variant-numeric:tabular-nums; }
  .st-table td.st-tm{ text-align:left; }
  .st-code{ font-family:var(--display); font-weight:700; font-size:12.5px; color:var(--accent-ink); }
  .st-pos{ color:var(--positive-ink); font-weight:600; } .st-neg{ color:var(--st-neg); font-weight:600; }
  .st-dash{ color:var(--text-faint); }
  .st-table td.st-empty{ padding:38px 20px; text-align:center; color:var(--text-muted); white-space:normal; font-size:13px; }
  .st-foot{ display:flex; justify-content:space-between; gap:8px 18px; flex-wrap:wrap; padding:12px 20px; font-size:12px; color:var(--text-muted); }

  .st-gloss{ padding:18px 20px; }
  .st-gloss h2{ font-family:var(--display); font-size:16px; font-weight:700; margin:0 0 4px; }
  .st-gloss p{ margin:0 0 12px; color:var(--text-muted); font-size:13px; max-width:86ch; }
  .st-gl{ display:grid; grid-template-columns:repeat(auto-fill, minmax(250px, 1fr)); gap:8px 22px; margin:0; }
  .st-gl div{ font-size:12.5px; color:var(--text-muted); min-width:0; }
  .st-gl dt{ display:inline; font-family:var(--display); font-weight:700; color:var(--text); margin-right:6px; }
  .st-gl dd{ display:inline; margin:0; }
  .st-check{ margin-top:14px; padding-top:14px; border-top:1px solid var(--hair); display:grid; grid-template-columns:repeat(auto-fit, minmax(170px, 1fr)); gap:12px 22px; }
  .st-check div b{ display:block; font-family:var(--display); font-size:22px; font-weight:700; line-height:1.1; }
  .st-check div span{ font-size:12px; color:var(--text-muted); }

  @media (max-width:760px){
    .st-fgrid, .st-fgrid.st-three{ grid-template-columns:minmax(0, 1fr); }
    .st-filters, .st-gloss{ padding-inline:14px; }
    .st-tbar, .st-foot{ padding-inline:14px; }
    .st-table td.st-lu{ min-width:168px; max-width:190px; padding-left:14px; font-size:11.5px; }
    .st-table td.st-lu.st-one{ min-width:150px; max-width:170px; font-size:12.5px; }
    .st-table th.st-left button{ padding-left:14px; }
  }
  @media (prefers-reduced-motion: no-preference){ .st-view, .st-pbtn, .st-table th button{ transition:color .12s, background-color .12s; } }

/* Final standings card (hand-built championships with classification games) */
.final-card{ margin-bottom:16px; }
.final-card tr.cx-me td{ background:var(--accent-2-soft); }
.final-place{ display:inline-flex; align-items:center; justify-content:center; min-width:26px; height:26px; border-radius:13px;
  font-family:var(--display); font-weight:700; font-size:13px; color:var(--text); background:var(--surface-alt); }
.final-place.gold{ background:#E9B949; color:#1D1607; }
.final-place.silver{ background:#C3C8D0; color:#16181C; }
.final-place.bronze{ background:#C98A55; color:#1E1208; }

/* ---------------------------- Watch page (#/watch/<mid>, app4s_watch.js) ----------------------------
   A dark viewing room whatever the site theme: the video top left, the two teams' players under it,
   team statistics and play-by-play down the right. One screen on a laptop; stacked on a phone. */
.m-watch{ display:inline-flex; align-items:center; gap:7px; margin-top:10px; padding:7px 14px; border-radius:999px;
  background:var(--accent-2); color:#fff; font-weight:700; font-size:13px; white-space:nowrap; }
.m-watch:hover{ text-decoration:none; opacity:.9; color:#fff; }
.lv-watch{ margin-top:8px; display:flex; align-items:center; justify-content:center; gap:7px; background:var(--accent-2); color:#fff; }
.lv-watch-top{ margin-top:0; }
.wt{ --wt-panel:#1C1C1E; --wt-panel2:#2C2C2E; --wt-hair:rgba(84,84,88,.65); --wt-text:#F5F5F7; --wt-sub:#A1A1A6;
  --wt-dim:#8E8E93; --wt-faint:#636366; --wt-h:#0A84FF; --wt-a:#FDC10B;
  background:#000; color:var(--wt-text); height:100vh; height:100dvh; min-height:600px; display:flex; flex-direction:column;
  font-family:-apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif; -webkit-font-smoothing:antialiased;
  letter-spacing:-.01em; font-size:14px; }
.wt a{ color:#64D2FF; text-decoration:none; }
.wt a:hover{ color:#A6E6FF; }
.wt-num{ font-variant-numeric:tabular-nums; }
.wt-top{ display:flex; align-items:center; gap:14px; padding:0 14px; height:44px; flex:none; box-sizing:border-box;
  border-bottom:.5px solid var(--wt-hair); background:#161618; min-width:0; }
.wt .wt-brand{ display:flex; align-items:center; gap:8px; color:var(--wt-text); font-family:var(--display); font-weight:800;
  font-size:15px; letter-spacing:.02em; white-space:nowrap; }
.wt-dot{ width:9px; height:9px; border-radius:2px; background:var(--accent-2); box-shadow:0 0 12px var(--accent-2); }
.wt-crumb{ flex:1; min-width:0; font-size:13px; color:var(--wt-sub); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.wt .wt-crumb a{ color:var(--wt-sub); }
.wt .wt-crumb a:hover{ color:var(--wt-text); }
.wt-links{ font-size:13px; white-space:nowrap; }
.wt-tag{ display:inline-flex; align-items:center; gap:6px; padding:4px 11px; border-radius:999px; background:var(--wt-panel2);
  color:#D1D1D6; font-size:12px; font-weight:600; white-space:nowrap; }
.wt-tag-live{ background:rgba(255,69,58,.18); color:#FF6961; }
.wt-tag-d{ width:7px; height:7px; border-radius:50%; background:#FF453A; animation:wt-pulse 1.6s ease-in-out infinite; }
@keyframes wt-pulse{ 50%{ opacity:.35; } }
@media (prefers-reduced-motion:reduce){ .wt-tag-d{ animation:none; } }

.wt-grid{ flex:1; min-height:0; display:grid; gap:6px; padding:6px; box-sizing:border-box;
  grid-template-columns:minmax(0, calc((100dvh - 44px - 12px) * .7 * 16 / 9)) minmax(300px, 1fr);
  grid-template-rows:auto minmax(0, 1fr); }
.wt-video{ grid-column:1; grid-row:1; position:relative; width:100%; aspect-ratio:16 / 9; border-radius:14px; overflow:hidden; background:#0B0B0D; }
.wt-video iframe{ position:absolute; inset:0; width:100%; height:100%; border:0; }
.wt-novid{ position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px;
  padding:24px; text-align:center; color:var(--wt-sub); }
.wt-novid-m{ display:flex; align-items:center; gap:14px; flex-wrap:wrap; justify-content:center; color:var(--wt-text); font-size:20px; font-weight:700; }
.wt-novid-m i{ font-style:normal; color:var(--wt-dim); font-weight:400; font-size:15px; }
.wt-novid p{ margin:0; font-size:14px; max-width:420px; }
.wt-players{ grid-column:1; grid-row:2; display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:6px; min-height:0; }
.wt-side{ grid-column:2; grid-row:1 / 3; display:flex; flex-direction:column; gap:6px; min-height:0; }
.wt-panel{ background:var(--wt-panel); border-radius:14px; display:flex; flex-direction:column; min-height:0; overflow:hidden; }
.wt-team{ flex:2 1 0; }
.wt-plays{ flex:1 1 0; }
.wt-scroll{ overflow-y:auto; min-height:0; flex:1; scrollbar-width:thin; scrollbar-color:#3A3A3C transparent; }
.wt-empty{ padding:14px 16px; color:var(--wt-sub); font-size:13px; display:flex; align-items:center; gap:10px; }
.wt-empty-in{ padding:0; }
.wt-empty-page{ padding:40px 20px; justify-content:center; }
.wt-h2{ margin:0; font-size:12px; font-weight:600; color:var(--wt-sub); text-transform:uppercase; letter-spacing:.05em; font-family:inherit; }

/* faces: a portrait ringed in the team's colour, or initials on its tint */
.wt-face{ width:24px; height:24px; border-radius:50%; flex:none; overflow:hidden; display:inline-flex; align-items:center;
  justify-content:center; font-size:9px; font-weight:700; background:var(--wt-panel2); }
.wt-face img{ width:100%; height:100%; object-fit:cover; object-position:50% 15%; display:block; }
.wt-face-l{ width:28px; height:28px; font-size:10.5px; }
.wt-s1{ box-shadow:0 0 0 1.5px var(--wt-h); }
.wt-s2{ box-shadow:0 0 0 1.5px var(--wt-a); }
.wt-init.wt-s1{ background:rgba(10,132,255,.22); color:#7DB8FF; box-shadow:none; }
.wt-init.wt-s2{ background:rgba(253,193,11,.22); color:#FFC266; box-shadow:none; }
.wt-face-t{ background:transparent; overflow:visible; }

/* Player statistics A / B */
.wt-ph{ display:flex; align-items:center; gap:10px; padding:7px 14px 3px; font-size:15px; min-width:0; }
.wt-ph b{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.wt-ph-score{ margin-left:auto; font-size:20px; font-weight:700; }
.wt-lo{ color:var(--wt-sub); }
.wt-pt{ display:flex; flex-direction:column; min-height:0; flex:1; }
.wt-pr{ display:grid; grid-template-columns:minmax(0, 1fr) repeat(5, 36px); column-gap:4px; align-items:center; padding:0 14px;
  min-height:31px; font-size:13px; border-top:.5px solid var(--wt-hair); }
.wt-pr > span:not(:first-child){ text-align:right; }
.wt-phead{ min-height:24px; font-size:11px; font-weight:600; color:var(--wt-dim); letter-spacing:.03em; border-top:0; }
.wt-who{ display:flex; align-items:center; gap:8px; min-width:0; }
.wt-no{ font-size:12px; color:var(--wt-dim); width:18px; text-align:right; flex:none; }
.wt .wt-nm{ color:var(--wt-text); font-weight:500; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0; }
.wt a.wt-nm:hover{ color:#64D2FF; }
.wt-court{ width:6px; height:6px; border-radius:50%; background:#30D158; flex:none; }
.wt-c{ color:#D1D1D6; }
.wt-c0{ color:var(--wt-faint); }
.wt-cb{ color:var(--wt-text); font-weight:700; }
.wt-dnp{ opacity:.5; }

/* Team statistics */
.wt-team-in{ padding:14px 16px 16px; display:flex; flex-direction:column; gap:14px; }
.wt-sb{ display:grid; grid-template-columns:minmax(0, 1fr) auto minmax(0, 1fr); align-items:center; gap:10px; }
.wt-sb-t{ display:flex; flex-direction:column; align-items:center; gap:6px; font-size:13px; font-weight:600; text-align:center; min-width:0; }
.wt-sb-mid{ display:flex; flex-direction:column; align-items:center; gap:3px; }
.wt-sb-score{ font-size:36px; font-weight:700; letter-spacing:-.03em; line-height:1; white-space:nowrap; }
.wt-sb-vs{ font-size:20px; font-weight:500; color:var(--wt-dim); }
.wt-sb-score i{ font-style:normal; font-weight:400; color:var(--wt-faint); padding:0 6px; }
.wt-sb-st{ font-size:12px; color:var(--wt-sub); text-align:center; }
.wt-sb-st.wt-live{ color:#FF6961; font-weight:600; }
.wt-q{ background:var(--wt-panel2); border-radius:10px; padding:2px 0; }
.wt-qr{ display:grid; grid-template-columns:minmax(0, 1.4fr) repeat(var(--n), minmax(0, 1fr)); align-items:center; padding:0 12px;
  min-height:30px; font-size:13px; border-top:.5px solid var(--wt-hair); }
.wt-qr span{ text-align:center; }
.wt-qr span:first-child{ text-align:left; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.wt-qh{ border-top:0; min-height:26px; font-size:11px; font-weight:600; color:var(--wt-dim); }
.wt-qt{ font-weight:700; }
.wt-key{ display:flex; justify-content:space-between; font-size:12px; color:var(--wt-sub); margin-bottom:-4px; }
.wt-key span{ display:flex; align-items:center; gap:6px; }
.wt-key i{ width:8px; height:8px; border-radius:50%; }
.wt-key i.h, .wt-bar i.h{ background:var(--wt-h); }
.wt-key i.a, .wt-bar i.a{ background:var(--wt-a); }
.wt-sts{ display:flex; flex-direction:column; gap:11px; }
.wt-st-top{ display:flex; justify-content:space-between; align-items:baseline; gap:8px; font-size:14px; font-weight:500; color:var(--wt-sub); }
.wt-st-top .w{ color:var(--wt-text); font-weight:700; }
.wt-st-top .l{ font-size:12px; font-weight:400; text-align:center; }
.wt-bar{ display:flex; gap:4px; height:5px; margin-top:5px; }
.wt-bar > div{ flex:1; display:flex; background:var(--wt-panel2); border-radius:3px; overflow:hidden; }
.wt-bar > div:first-child{ justify-content:flex-end; }
.wt-bar i{ display:block; height:100%; border-radius:3px; }
.wt-bar i.lo{ opacity:.4; }

/* Play-by-play */
.wt-plh{ display:flex; justify-content:space-between; align-items:center; gap:10px; padding:11px 16px 6px; }
.wt-plh span{ font-size:12px; color:var(--wt-dim); }
.wt-pl{ list-style:none; margin:0; padding:0 0 6px; }
.wt-per{ padding:5px 16px; font-size:11px; font-weight:700; letter-spacing:.05em; color:var(--wt-dim); background:#232325;
  border-top:.5px solid var(--wt-hair); }
.wt-play{ display:grid; grid-template-columns:28px minmax(0, 1fr) auto; gap:10px; align-items:center; padding:7px 16px; min-height:44px;
  box-sizing:border-box; border-top:.5px solid var(--wt-hair); }
.wt-play .wt-face{ width:28px; height:28px; font-size:10.5px; }
.wt-pd{ display:flex; flex-direction:column; gap:1px; min-width:0; }
.wt-pw{ font-size:13px; font-weight:500; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.wt-pt2{ font-size:12px; color:var(--wt-sub); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.wt-ps{ display:flex; flex-direction:column; align-items:flex-end; gap:1px; }
.wt-ps b{ font-size:14px; font-weight:500; color:var(--wt-dim); }
.wt-ps small{ font-size:11px; color:var(--wt-dim); white-space:nowrap; }
.wt-sc .wt-pw{ font-weight:650; }
.wt-sc .wt-ps b{ color:var(--wt-text); font-weight:700; }

/* a phone or a narrow window: everything in one column, the page scrolls */
@media (max-width:900px){
  .wt{ height:auto; min-height:100vh; }
  .wt-top{ height:auto; min-height:44px; padding:8px 12px; flex-wrap:wrap; gap:8px 12px; }
  .wt-crumb{ order:3; flex-basis:100%; }
  .wt-links{ margin-left:auto; }
  .wt-grid{ grid-template-columns:minmax(0, 1fr); grid-template-rows:none; }
  .wt-video, .wt-players, .wt-side{ grid-column:1; grid-row:auto; }
  .wt-players{ grid-template-columns:minmax(0, 1fr); }
  .wt-team, .wt-plays{ flex:none; }
  .wt-panel .wt-scroll{ max-height:460px; }
  .wt-team .wt-scroll{ max-height:none; }
}

/* ===========================================================================
   Shot map (profile tab, app4u_shots.js). The court is a dark stage in both
   themes; above/below-average text uses its own red/blue pair.
   =========================================================================== */
  :root{ --sm-up: oklch(52% 0.2 18); --sm-down: oklch(50% 0.15 250); }
  @media (prefers-color-scheme: dark){ :root:not([data-theme="light"]){ --sm-up: oklch(70% 0.17 15); --sm-down: oklch(72% 0.12 245); } }
  :root[data-theme="dark"]{ --sm-up: oklch(70% 0.17 15); --sm-down: oklch(72% 0.12 245); }
  /* two columns: the court on the left stays in view (below the site bar and the profile tabs)
     while the explanation box on the right scrolls; one column on narrow screens */
  .sm{ display:grid; grid-template-columns:minmax(0, 1.12fr) minmax(300px, 1fr); gap:24px; align-items:start; min-width:0; }
  .sm-left{ position:sticky; top:132px; display:flex; flex-direction:column; gap:10px; min-width:0; }
  .sm-explain{ background:var(--surface); border:1px solid var(--border); border-radius:14px; padding:18px; display:flex; flex-direction:column; gap:22px; min-width:0; }
  .sm-zone{ background:var(--surface-alt); border:1px solid var(--border); border-radius:12px; padding:12px 14px; }
  .sm-zone .k{ font-size:12px; color:var(--text-faint); }
  .sm-zone .n{ font-weight:700; font-size:17px; margin:2px 0 8px; }
  .sm-zone .g{ display:grid; grid-template-columns:repeat(3, 1fr); gap:8px; }
  .sm-zone .g small{ display:block; font-size:12px; color:var(--text-faint); }
  .sm-zone .g span{ font-weight:700; font-variant-numeric:tabular-nums; }
  .sm-zone .g em{ display:block; font-style:normal; font-size:12px; color:var(--text-faint); }
  .sm-side{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
  .sm-side > div{ border:1px solid var(--border); border-radius:10px; padding:10px 12px; min-width:0; }
  .sm-side small{ display:block; color:var(--text-faint); font-size:12px; }
  .sm-side b{ font-family:var(--display); font-size:19px; font-variant-numeric:tabular-nums; }
  @media (max-width:900px){ .sm{ grid-template-columns:1fr; } .sm-left{ position:static; } }
  .sm-pick{ display:inline-flex; align-items:center; gap:8px; margin-bottom:12px; font-size:13px; color:var(--text-muted); }
  .sm-pick select{ font:inherit; color:var(--text); background:var(--surface); border:1px solid var(--border); border-radius:8px; padding:6px 8px; max-width:100%; }
  /* what the map covers: career or one season, then optionally one event of it */
  .sm-scope{ display:flex; align-items:center; gap:12px 16px; flex-wrap:wrap; margin-bottom:14px; }
  .sm-scope .sm-pick{ margin:0; }
  .sm-seg{ display:inline-flex; gap:2px; background:var(--surface-alt); border:1px solid var(--border); border-radius:10px; padding:3px; max-width:100%; overflow-x:auto; scrollbar-width:thin; }
  .sm-seg button{ flex:none; }
  .sm-seg button{ all:unset; cursor:pointer; font-size:13px; font-weight:600; color:var(--text-muted); padding:6px 12px; border-radius:7px; display:inline-flex; align-items:baseline; gap:6px; white-space:nowrap; }
  .sm-seg button small{ font-size:11.5px; font-weight:500; color:var(--text-faint); font-variant-numeric:tabular-nums; }
  .sm-seg button[aria-pressed="true"]{ background:var(--surface); color:var(--text); box-shadow:var(--shadow); }
  .sm-seg button:focus-visible, .sm-evrow:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; }
  .sm-evs{ display:flex; flex-direction:column; }
  .sm-evrow{ all:unset; cursor:pointer; display:grid; grid-template-columns:1fr auto; gap:2px 12px; padding:10px 4px; border-bottom:1px solid var(--hair); }
  .sm-evrow:hover{ background:var(--surface-alt); }
  .sm-evrow .nm{ font-weight:600; }
  .sm-evrow .sb{ font-size:12.5px; color:var(--text-faint); font-variant-numeric:tabular-nums; }
  .sm-evrow .pc{ text-align:right; font-weight:700; font-variant-numeric:tabular-nums; }
  .sm-evrow .df{ text-align:right; font-size:12.5px; font-weight:600; font-variant-numeric:tabular-nums; }
  .sm-evrow .bar{ grid-column:1/-1; height:4px; border-radius:2px; background:var(--hair); overflow:hidden; }
  .sm-evrow .bar i{ display:block; height:100%; background:var(--text-faint); border-radius:2px; }
  .sm-views{ display:flex; gap:4px; flex-wrap:wrap; background:var(--surface-alt); border:1px solid var(--border); border-radius:12px; padding:4px; }
  .sm-views button{ all:unset; cursor:pointer; flex:1 1 auto; text-align:center; font-size:13px; font-weight:600; color:var(--text-muted); padding:7px 10px; border-radius:9px; white-space:nowrap; }
  .sm-views button[aria-pressed="true"]{ background:var(--surface); color:var(--text); box-shadow:var(--shadow); }
  .sm-views button:focus-visible, .sm-chips button:focus-visible, .sm-zrow:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; }
  .sm-note{ font-size:13px; color:var(--text-muted); }
  .sm-legend{ display:flex; align-items:center; gap:6px; font-size:12px; color:var(--text-muted); flex-wrap:wrap; }
  .sm-legend i{ width:22px; height:12px; border-radius:3px; display:inline-block; }
  .sm-stage{ position:relative; background:radial-gradient(120% 90% at 50% 0%, oklch(20% 0.025 262), var(--void)); border-radius:14px; overflow:hidden; }
  .sm-stage canvas{ display:block; width:100%; height:auto; touch-action:none; }
  .sm-stage canvas.sm-ov{ position:absolute; left:0; top:0; pointer-events:none; }
  .sm-badge{ position:absolute; left:12px; top:12px; background:rgba(10,15,26,.72); border:1px solid rgba(120,140,180,.25); border-radius:10px; padding:6px 10px; font-size:12px; color:#9aa6bd; pointer-events:none; max-width:60%; }
  .sm-badge b{ display:block; color:#eef2f8; font-family:var(--display); font-size:16px; font-variant-numeric:tabular-nums; }
  .sm-tip{ position:absolute; z-index:3; pointer-events:none; min-width:190px; max-width:240px; background:rgba(9,14,24,.95); border:1px solid rgba(120,140,180,.3); border-radius:10px; padding:9px 11px; color:#eef2f8; font-size:12.5px; line-height:1.35; box-shadow:0 8px 24px rgba(0,0,0,.45); }
  .sm-tip .t1{ font-weight:700; font-size:13.5px; }
  .sm-tip .t0{ color:#9aa6bd; font-size:11.5px; margin-bottom:6px; }
  .sm-tip .sm-tr{ display:flex; justify-content:space-between; gap:12px; margin-top:3px; }
  .sm-tip .sm-tr span:first-child{ color:#9aa6bd; }
  .sm-tip .sm-tr b{ font-variant-numeric:tabular-nums; }
  .sm-tip .pos{ color:#ff6d88; } .sm-tip .neg{ color:#6fb6ff; } .sm-tip .flat{ color:#9aa6bd; }
  .sm-chips{ display:flex; gap:6px; flex-wrap:wrap; padding:10px 12px 12px; border-top:1px solid rgba(120,140,180,.2); background:rgba(6,10,18,.55); }
  .sm-chips button{ all:unset; cursor:pointer; font-size:12px; color:#9aa6bd; border:1px solid rgba(120,140,180,.3); border-radius:999px; padding:4px 10px; }
  .sm-chips button[aria-pressed="true"]{ color:#eef2f8; border-color:#eef2f8; }
  .sm-tiles{ display:grid; grid-template-columns:repeat(3, 1fr); border:1px solid var(--border); border-radius:12px; overflow:hidden; background:var(--surface); }
  .sm-tiles > div{ padding:12px 10px; text-align:center; border-right:1px solid var(--border); min-width:0; }
  .sm-tiles > div:last-child{ border-right:0; }
  .sm-tiles small{ display:block; color:var(--text-faint); font-size:12px; }
  .sm-tiles b{ font-family:var(--display); font-size:26px; font-weight:700; font-variant-numeric:tabular-nums; }
  .sm-up{ color:var(--sm-up); } .sm-down{ color:var(--sm-down); } .sm-even{ color:var(--text-muted); }
  .sm-zones{ display:flex; flex-direction:column; }
  .sm-zones-h{ display:flex; justify-content:space-between; align-items:baseline; gap:8px; flex-wrap:wrap; padding-bottom:6px; border-bottom:1px solid var(--border); }
  .sm-zones-h h3, .sm-notes h3, .sm-notes h2{ margin:0; font-size:16px; }
  .sm-zones-h span{ font-size:12.5px; color:var(--text-faint); }
  .sm-zrow{ display:grid; grid-template-columns:1fr auto; gap:2px 12px; padding:10px 4px; border-bottom:1px solid var(--hair); }
  .sm-zrow:hover, .sm-zrow.on{ background:var(--surface-alt); }
  .sm-zrow .nm{ font-weight:600; }
  .sm-zrow .sb{ font-size:12.5px; color:var(--text-faint); font-variant-numeric:tabular-nums; }
  .sm-zrow .pc{ text-align:right; font-weight:700; font-variant-numeric:tabular-nums; }
  .sm-zrow .df{ text-align:right; font-size:12.5px; font-weight:600; font-variant-numeric:tabular-nums; }
  .sm-zrow .bar{ grid-column:1/-1; height:4px; border-radius:2px; background:var(--hair); overflow:hidden; }
  .sm-zrow .bar i{ display:block; height:100%; background:var(--text-faint); border-radius:2px; }
  .sm-notes{ display:flex; flex-direction:column; gap:10px; }
  .sm-small{ margin:0; font-size:13px; color:var(--text-muted); }
  .sm-n{ border-left:3px solid var(--border); padding:2px 0 2px 12px; }
  .sm-n.u{ border-color:var(--sm-up); } .sm-n.d{ border-color:var(--sm-down); }
  .sm-n h4, .sm-n h3{ margin:0 0 2px; font-size:15px; }
  .sm-n p{ margin:0; color:var(--text-muted); font-size:14px; max-width:68ch; }
  .sm-method summary{ cursor:pointer; font-weight:600; font-size:14px; }
  .sm-method p{ font-size:12.5px; color:var(--text-faint); margin:8px 0 0; }
  @media (max-width:560px){ .sm-tiles b{ font-size:20px; } .sm-badge{ display:none; } .sm-explain{ padding:14px; } .sm-side{ grid-template-columns:1fr; } }
  /* the 3D terrain (app4w_shot3d.js): one WebGL canvas moved into each render, camera buttons over it,
     and the replay bar under the stage */
  .sm-left:has(.sm3-replay){ position:static; }
  .sm-3d{ position:relative; aspect-ratio:16/10.5; min-height:320px; outline:none; color:#eef2f8; }
  .sm-3d:focus-visible{ box-shadow:inset 0 0 0 3px var(--accent); }
  .sm-3d .sm3-cv{ position:absolute; inset:0; width:100%; height:100%; display:block; touch-action:none; cursor:grab; }
  .sm-3d .sm3-cv.grabbing{ cursor:grabbing; }
  .sm-3d-wait{ display:grid; place-items:center; color:#9aa6bd; font-size:13px; }
  .sm3-ctl{ position:absolute; right:12px; top:12px; display:flex; flex-direction:column; gap:6px; align-items:flex-end; z-index:2; }
  .sm3-row{ display:flex; gap:3px; background:rgba(10,15,26,.72); border:1px solid rgba(120,140,180,.25); border-radius:10px; padding:4px; }
  .sm3-row button{ all:unset; cursor:pointer; font-size:12px; font-weight:600; color:#9aa6bd; padding:5px 9px; border-radius:7px; white-space:nowrap; }
  .sm3-row button:hover{ color:#eef2f8; background:rgba(255,255,255,.06); }
  .sm3-row button[aria-pressed="true"]{ color:#eef2f8; background:rgba(255,255,255,.13); }
  .sm3-row button:focus-visible{ outline:2px solid var(--accent); outline-offset:1px; }
  .sm3-h{ display:flex; align-items:center; gap:8px; font-size:12px; color:#9aa6bd; background:rgba(10,15,26,.72); border:1px solid rgba(120,140,180,.25); border-radius:10px; padding:6px 10px; }
  .sm3-h input{ width:92px; accent-color:#ff2e58; }
  .sm3-help{ position:absolute; left:12px; bottom:12px; font-size:12px; color:#9aa6bd; background:rgba(10,15,26,.6); border-radius:8px; padding:5px 9px; pointer-events:none; }
  .sm3-replay{ display:flex; align-items:center; gap:12px 14px; background:var(--surface); border:1px solid var(--border); border-radius:12px; padding:12px 14px; flex-wrap:wrap; }
  .sm3-play{ all:unset; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; gap:8px; background:var(--text); color:var(--surface); font-weight:700; font-size:13.5px; border-radius:999px; padding:9px 16px; min-width:86px; white-space:nowrap; }
  .sm3-play svg{ width:12px; height:12px; fill:currentColor; flex:none; }
  .sm3-play:focus-visible, .sm3-speed button:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; }
  .sm3-mid{ flex:1 1 300px; min-width:0; display:flex; flex-direction:column; gap:5px; }
  .sm3-line{ display:flex; justify-content:space-between; align-items:baseline; gap:4px 12px; flex-wrap:wrap; font-size:12.5px; color:var(--text-muted); }
  .sm3-line b{ color:var(--text); font-weight:600; }
  .sm3-line .num{ font-variant-numeric:tabular-nums; }
  .sm3-mid input[type=range]{ width:100%; margin:2px 0 0; accent-color:var(--text); }
  .sm3-strip{ display:flex; gap:2px; margin:0 8px; height:18px; }
  .sm3-strip span{ min-width:0; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; font-size:10.5px; line-height:18px; padding:0 5px; color:var(--text-muted); background:var(--surface-alt); border-radius:4px; }
  .sm3-strip span.on{ color:var(--text); font-weight:600; box-shadow:inset 0 -2px 0 var(--text); }
  .sm3-last{ display:flex; align-items:center; gap:7px; min-height:19px; font-size:12.5px; color:var(--text-muted); }
  .sm3-last b{ color:var(--text); font-weight:600; }
  .sm3-last i{ width:10px; height:10px; border-radius:50%; flex:none; position:relative; }
  .sm3-last i.m{ background:#ff3d64; }
  .sm3-last i.x::before, .sm3-last i.x::after{ content:""; position:absolute; left:4px; top:-1px; width:2.5px; height:12px; background:#4b86c8; border-radius:1px; transform:rotate(45deg); }
  .sm3-last i.x::after{ transform:rotate(-45deg); }
  .sm3-speed{ display:flex; align-items:center; gap:2px; border:1px solid var(--border); border-radius:10px; padding:3px; }
  .sm3-speed span{ font-size:11.5px; color:var(--text-faint); padding:0 6px 0 4px; }
  .sm3-speed button{ all:unset; cursor:pointer; font-size:12.5px; font-weight:600; color:var(--text-muted); padding:4px 8px; border-radius:7px; font-variant-numeric:tabular-nums; }
  .sm3-speed button[aria-pressed="true"]{ background:var(--text); color:var(--surface); }
  @media (max-width:900px){ .sm-3d{ aspect-ratio:4/3; } }
  .sm-pick{ max-width:100%; min-width:0; }
  .sm-pick select{ min-width:0; flex:1 1 auto; text-overflow:ellipsis; }
  @media (max-width:560px){ .sm-3d{ aspect-ratio:4/5; min-height:380px; } .sm3-help, .sm3-h{ display:none; } .sm3-row button{ padding:5px 7px; } }

/* ===========================================================================
   Report tab (app4v_report.js). Levels are an ordinal violet ramp (youth ->
   development -> senior, with marker shapes as well); ranks use a diverging
   scale around the middle of the field: red near the top, grey the middle,
   blue near the bottom. Both checked with the dataviz validator in each theme.
   =========================================================================== */
  :root{
    --rp-lv-y:#a59cf0; --rp-lv-d:#6a5ae0; --rp-lv-s:#33248f;
    --rp-dv-0:#2a6bc0; --rp-dv-1:#a9c9f2; --rp-dv-2:#efeeeb; --rp-dv-3:#f4b0ad; --rp-dv-4:#d33f3f;
    --rp-dvt-0:#fff; --rp-dvt-1:oklch(22% 0.02 255); --rp-dvt-2:oklch(22% 0.02 255); --rp-dvt-3:oklch(22% 0.02 255); --rp-dvt-4:#fff;
  }
  @media (prefers-color-scheme: dark){ :root:not([data-theme="light"]){
    --rp-lv-y:#5a4fc0; --rp-lv-d:#8f84ec; --rp-lv-s:#cdc7fa;
    --rp-dv-0:#3d82db; --rp-dv-1:#23406a; --rp-dv-2:#383a3f; --rp-dv-3:#6e2b2d; --rp-dv-4:#e05555;
    --rp-dvt-0:#fff; --rp-dvt-1:#e8eef8; --rp-dvt-2:#e8eef8; --rp-dvt-3:#f8e8e8; --rp-dvt-4:#fff;
  } }
  :root[data-theme="dark"]{
    --rp-lv-y:#5a4fc0; --rp-lv-d:#8f84ec; --rp-lv-s:#cdc7fa;
    --rp-dv-0:#3d82db; --rp-dv-1:#23406a; --rp-dv-2:#383a3f; --rp-dv-3:#6e2b2d; --rp-dv-4:#e05555;
    --rp-dvt-0:#fff; --rp-dvt-1:#e8eef8; --rp-dvt-2:#e8eef8; --rp-dvt-3:#f8e8e8; --rp-dvt-4:#fff;
  }
  .rp{ display:flex; flex-direction:column; gap:16px; min-width:0; }
  .rp-card{ background:var(--surface); border:1px solid var(--border); border-radius:12px; padding:20px; min-width:0; }
  .rp-card > h2{ font-family:var(--display); font-size:21px; font-weight:700; margin:0; text-wrap:balance; }
  .rp-card h3{ font-family:var(--display); margin:0; }
  .rp-lede{ color:var(--text-muted); font-size:13.5px; margin:3px 0 14px; max-width:72ch; }
  .rp-eyebrow{ font-size:11.5px; letter-spacing:.08em; text-transform:uppercase; font-weight:700; color:var(--text-faint); }
  .rp-verdict{ display:grid; grid-template-columns:minmax(0, 1.6fr) minmax(250px, 1fr); gap:24px; align-items:start; }
  .rp-verdict h2{ font-family:var(--display); font-size:34px; line-height:1.02; font-weight:700; margin:6px 0 10px; text-wrap:balance; }
  .rp-head{ font-size:16px; line-height:1.55; max-width:62ch; margin:0; }
  .rp-facts{ display:flex; flex-direction:column; border-top:1px solid var(--border); }
  .rp-facts div{ display:flex; justify-content:space-between; gap:12px; padding:8px 0; border-bottom:1px solid var(--hair); font-size:13.5px; }
  .rp-facts small{ color:var(--text-muted); font-size:13px; }
  .rp-facts b{ font-weight:600; text-align:right; }
  .rp-sw{ display:grid; grid-template-columns:1fr 1fr; gap:24px; }
  .rp-sw h3{ font-size:16px; display:flex; align-items:center; gap:8px; margin-bottom:4px; }
  .rp-sw h3 i{ width:10px; height:10px; border-radius:2px; display:inline-block; }
  .rp-item{ display:grid; grid-template-columns:58px 1fr; gap:4px 12px; padding:12px 0; border-top:1px solid var(--hair); }
  .rp-sw h3 + .rp-item{ border-top:0; }
  .rp-pc{ grid-row:span 2; font-family:var(--display); font-weight:700; font-size:20px; line-height:1; text-align:center; border-radius:6px; padding:8px 0 6px; align-self:start; font-variant-numeric:tabular-nums; }
  .rp-pc .rp-hash{ font-size:13px; opacity:.75; margin-right:1px; }
  .rp-pc small{ display:block; font-size:10px; font-weight:700; letter-spacing:.03em; margin-top:3px; opacity:.9; }
  .rp-nm{ font-weight:600; display:flex; gap:8px; align-items:baseline; flex-wrap:wrap; }
  .rp-tag{ font-size:11px; font-weight:600; color:var(--text-muted); border:1px solid var(--border); border-radius:999px; padding:0 7px; white-space:nowrap; }
  .rp-item p{ margin:0; color:var(--text-muted); font-size:13.5px; max-width:60ch; }
  .rp-lvl{ display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1.25fr); gap:24px; align-items:start; }
  .rp-ht{ width:100%; border-collapse:separate; border-spacing:2px; font-size:13px; }
  .rp-ht th{ font-weight:600; color:var(--text-muted); font-size:12px; text-align:center; padding:2px 2px 6px; vertical-align:bottom; }
  .rp-ht th span{ font-weight:500; font-variant-numeric:tabular-nums; }
  .rp-ht th:first-child{ text-align:left; }
  .rp-ht th .rp-key{ display:inline-block; width:9px; height:9px; margin-right:4px; vertical-align:0; }
  .rp-ht td{ text-align:center; font-weight:700; font-family:var(--display); font-size:15px; height:34px; border-radius:4px; font-variant-numeric:tabular-nums; }
  .rp-ht td.na{ color:var(--text-faint); font-weight:500; background:var(--surface-alt); }
  .rp-ht td:first-child{ text-align:left; padding:0; font-family:var(--body); font-size:13.5px; font-weight:500; background:none; }
  .rp-hrow button{ all:unset; cursor:pointer; display:block; width:100%; padding:6px 8px; border-radius:5px; box-sizing:border-box; }
  .rp-hrow button:hover{ background:var(--surface-alt); }
  .rp-hrow.on button{ background:var(--accent-soft); font-weight:600; }
  .rp-scale{ display:flex; align-items:center; gap:6px; font-size:12px; color:var(--text-muted); margin-top:10px; flex-wrap:wrap; }
  .rp-scale i{ display:inline-block; width:26px; height:12px; border-radius:2px; }
  .rp-chips{ display:flex; gap:6px; flex-wrap:wrap; margin:0 0 10px; }
  .rp-chips button{ all:unset; cursor:pointer; font-size:12.5px; font-weight:600; color:var(--text-muted); border:1px solid var(--border); border-radius:999px; padding:4px 10px; }
  .rp-chips button[aria-pressed="true"]{ color:var(--surface); background:var(--text); border-color:var(--text); }
  .rp-chips button:focus-visible, .rp-hrow button:focus-visible, .rp-card summary:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; }
  .rp-legend{ display:flex; gap:14px; flex-wrap:wrap; font-size:12.5px; color:var(--text-muted); margin-bottom:4px; }
  .rp-legend span{ display:inline-flex; align-items:center; gap:6px; }
  .rp-legend .faint{ color:var(--text-faint); }
  .rp-legend b{ color:var(--text); }
  .rp-chart{ position:relative; }
  .rp-chart svg{ display:block; width:100%; height:auto; overflow:visible; }
  .rp-tip{ position:absolute; z-index:4; pointer-events:none; min-width:200px; max-width:250px; background:var(--void); color:#eef2f8; border-radius:8px; padding:9px 11px; font-size:12.5px; line-height:1.4; box-shadow:0 10px 28px rgba(0,0,0,.35); opacity:0; transition:opacity .12s; }
  .rp-tip.on{ opacity:1; }
  .rp-tip .t1{ font-weight:700; font-size:13.5px; }
  .rp-tip .t0{ color:#9aa6bd; font-size:11.5px; margin-bottom:6px; }
  .rp-tip .rw{ display:flex; justify-content:space-between; gap:12px; }
  .rp-tip .rw span{ color:#9aa6bd; }
  .rp-tip .rw b{ font-variant-numeric:tabular-nums; }
  .rp-yoy{ display:flex; flex-direction:column; margin-top:14px; border-top:1px solid var(--border); }
  .rp-yoy h3{ font-size:15px; margin:12px 0 2px; }
  .rp-yrow{ display:grid; grid-template-columns:minmax(0, 300px) 1fr; gap:12px; padding:8px 0; border-bottom:1px solid var(--hair); align-items:center; font-size:13.5px; }
  .rp-yrow small{ display:block; font-size:12px; color:var(--text-faint); }
  .rp-steps{ display:flex; gap:6px; flex-wrap:wrap; align-items:center; color:var(--text-muted); }
  .rp-steps b{ font-family:var(--display); font-size:15px; color:var(--text); font-weight:700; font-variant-numeric:tabular-nums; }
  .rp-arrow{ color:var(--text-faint); }
  .rp-shots{ display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1fr); gap:24px; align-items:start; }
  .rp-stage{ background:radial-gradient(120% 90% at 50% 0%, oklch(20% 0.025 262), var(--void)); border-radius:10px; padding:10px 10px 4px; }
  .rp-stage svg{ display:block; width:100%; height:auto; }
  .rp-zkey{ display:flex; gap:6px; align-items:center; font-size:11.5px; color:#9aa6bd; padding:6px 4px; flex-wrap:wrap; }
  .rp-zkey i{ display:inline-block; width:20px; height:10px; border-radius:2px; }
  .rp-zkey .r{ margin-left:auto; }
  .rp-diet{ width:100%; border-collapse:collapse; font-size:13px; }
  .rp-diet th{ text-align:left; font-weight:600; color:var(--text-muted); font-size:12px; padding:0 6px 6px 0; }
  .rp-diet th span{ font-weight:500; } .rp-diet th em{ font-style:normal; opacity:.7; }
  .rp-diet .r{ text-align:right; }
  .rp-diet td{ padding:7px 6px 7px 0; border-top:1px solid var(--hair); font-variant-numeric:tabular-nums; }
  .rp-mut{ font-size:12px; color:var(--text-muted); }
  .rp-bars{ display:grid; gap:3px; min-width:90px; }
  .rp-bars i{ display:block; height:6px; border-radius:0 3px 3px 0; }
  .rp-bars i.me{ background:var(--text); } .rp-bars i.lg{ background:var(--text-faint); opacity:.55; }
  .rp-bullets{ margin:14px 0 0; padding:0; list-style:none; display:flex; flex-direction:column; gap:8px; }
  .rp-bullets li{ padding-left:14px; position:relative; font-size:13.5px; color:var(--text-muted); max-width:62ch; }
  .rp-bullets li::before{ content:""; position:absolute; left:0; top:.62em; width:6px; height:6px; border-radius:50%; background:var(--text-faint); }
  .rp-bullets b{ color:var(--text); font-weight:600; }
  .rp-notes{ display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:18px 28px; }
  .rp-notes h3{ font-size:15.5px; margin-bottom:3px; }
  .rp-notes p{ margin:0; color:var(--text-muted); font-size:14px; max-width:62ch; }
  .rp-notes p b{ color:var(--text); font-weight:600; }
  .rp-hon{ display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; }
  .rp-hon span{ font-size:12px; border:1px solid var(--border); border-radius:999px; padding:2px 9px; color:var(--text-muted); }
  .rp-card details + details{ margin-top:12px; border-top:1px solid var(--border); padding-top:12px; }
  .rp-card summary{ cursor:pointer; font-weight:600; font-size:14px; }
  .rp-ev{ overflow-x:auto; margin-top:10px; }
  .rp-ev table{ border-collapse:collapse; font-size:12.5px; min-width:820px; width:100%; }
  .rp-ev th{ font-weight:600; color:var(--text-muted); text-align:right; padding:6px 8px; border-bottom:1px solid var(--border); white-space:nowrap; }
  .rp-ev td{ padding:6px 8px; text-align:right; border-bottom:1px solid var(--hair); white-space:nowrap; font-variant-numeric:tabular-nums; }
  .rp-ev th:nth-child(-n+3), .rp-ev td:nth-child(-n+3){ text-align:left; }
  .rp-ev td.dim{ color:var(--text-faint); }
  .rp-method p{ font-size:13px; color:var(--text-muted); margin:8px 0 0; max-width:80ch; }
  @media (max-width:860px){ .rp-verdict, .rp-sw, .rp-lvl, .rp-shots, .rp-notes{ grid-template-columns:1fr; } .rp-verdict h2{ font-size:28px; } }
  .rp-htw{ overflow-x:auto; min-width:0; }
  .rp-lvl > div, .rp-sw > div, .rp-shots > div, .rp-verdict > div, .rp-notes > div{ min-width:0; }   /* grid items may shrink below their content */
  @media (max-width:520px){ .rp-card{ padding:16px; } .rp-yrow{ grid-template-columns:1fr; }
    .rp-ht{ font-size:12px; } .rp-ht th{ font-size:11px; } .rp-ht td{ font-size:13px; height:30px; } .rp-ht td:first-child{ font-size:12.5px; }
    .rp-hrow button{ padding:5px 4px; } .rp-ht th .rp-key{ display:none; } }
  @media (prefers-reduced-motion:reduce){ .rp-tip{ transition:none; } }
  /* development report: his own changes. Better and worse use the site's positive and negative
     inks with an arrow, so the direction never rests on colour alone */
  :root{ --rp-up:var(--positive); --rp-down:var(--negative); }
  .rp-d{ display:inline-block; font-size:11.5px; font-weight:700; margin-left:6px; white-space:nowrap; font-variant-numeric:tabular-nums; }
  .rp-d.up{ color:var(--positive-ink); } .rp-d.down{ color:var(--negative); } .rp-d.flat{ color:var(--text-faint); font-weight:600; }
  .rp-pair{ border-top:1px solid var(--border); padding-top:12px; margin-top:12px; }
  .rp-pair:first-of-type{ border-top:0; padding-top:0; margin-top:0; }
  .rp-pair-h{ display:flex; flex-wrap:wrap; align-items:baseline; gap:6px 8px; margin-bottom:10px; font-size:15px; }
  .rp-pair-h i{ font-style:normal; color:var(--text-faint); }
  .rp-pair-h span{ flex-basis:100%; font-size:12.5px; color:var(--text-faint); }
  .rp-tns{ display:grid; grid-template-columns:repeat(5, minmax(0, 1fr)); gap:8px; }
  .rp-tn{ border:1px solid var(--border); border-radius:10px; padding:9px 10px; min-width:0; }
  .rp-tn small{ display:block; font-size:11.5px; color:var(--text-faint); font-weight:600; }
  .rp-tn .v{ display:block; font-family:var(--display); font-size:15px; color:var(--text-muted); font-variant-numeric:tabular-nums; white-space:nowrap; }
  .rp-tn .v i{ font-style:normal; color:var(--text-faint); margin:0 4px; }
  .rp-tn .v b{ color:var(--text); font-size:19px; }
  .rp-tn .rp-d{ margin-left:0; }
  .rp-pc.up{ background:color-mix(in srgb, var(--positive) 16%, var(--surface)); color:var(--positive-ink); font-size:16px; }
  .rp-pc.down{ background:color-mix(in srgb, var(--negative) 14%, var(--surface)); color:color-mix(in oklab, var(--negative) 78%, var(--text)); font-size:16px; }
  .rp-sub{ display:block; margin-top:4px; font-size:12px; color:var(--text-faint); }
  .rp-trends{ position:relative; display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:14px 18px; margin-top:8px; }
  .rp-trend{ min-width:0; }
  .rp-trend-h{ display:flex; justify-content:space-between; align-items:baseline; gap:8px; font-size:13px; }
  .rp-trend-h span{ color:var(--text-muted); font-variant-numeric:tabular-nums; }
  .rp-trend-h span b{ color:var(--text); }
  .rp-rep{ margin-top:14px; }
  .rp-rep h3{ font-size:15px; margin:0 0 2px; }
  .rp-rep .rp-ev{ margin-top:4px; }
  .rp-rep .rp-ev table{ min-width:760px; }
  .rp-ev .dim, .rp .dim{ color:var(--text-faint); }
  .rp-bests{ display:grid; grid-template-columns:repeat(auto-fill, minmax(170px, 1fr)); gap:8px; }
  .rp-best{ border:1px solid var(--border); border-radius:10px; padding:10px 12px; min-width:0; }
  .rp-best small{ display:block; font-size:11.5px; color:var(--text-faint); font-weight:600; }
  .rp-best b{ display:block; font-family:var(--display); font-size:20px; font-variant-numeric:tabular-nums; }
  .rp-best span{ display:block; font-size:12px; color:var(--text-muted); }
  /* the one note about other players: set apart like a helper's aside */
  .rp-aside{ display:grid; grid-template-columns:28px 1fr; gap:12px; background:var(--surface-alt); border:1px solid var(--border); border-radius:12px; padding:14px 16px; }
  .rp-aside-i{ width:26px; height:26px; border-radius:50%; background:var(--accent-soft); color:var(--accent); font-weight:700; font-family:var(--display); display:grid; place-items:center; font-size:14px; }
  .rp-aside > div{ min-width:0; }
  .rp-aside p{ margin:2px 0 0; color:var(--text-muted); font-size:13.5px; max-width:80ch; }
  .rp-aside p b{ color:var(--text); }
  .rp-aside-more{ margin-top:10px; }
  .rp-aside-more summary{ cursor:pointer; font-weight:600; font-size:13.5px; }
  .rp-aside-more .rp-lvl{ margin-top:8px; }
  @media (max-width:860px){ .rp-tns{ grid-template-columns:repeat(2, minmax(0, 1fr)); } .rp-trends{ grid-template-columns:repeat(2, minmax(0, 1fr)); } }
  @media (max-width:520px){ .rp-trends{ grid-template-columns:1fr; } }

/* ===========================================================================
   Compare page: shot terrain head to head (app4x_cmpshots.js). A dark stage in
   both themes, like the shot map; blue the left player, orange the right.
   =========================================================================== */
  .cs-card{ overflow:hidden; }
  .cs-duel{ --cs-a:#5ea3f5; --cs-b:#eebf50; --cs-ink:#eef2f8; --cs-dim:#9aa6bd; --cs-line:rgba(140,160,200,.22);
    color:var(--cs-ink); margin:4px 12px 0; border-radius:16px; overflow:hidden; isolation:isolate;
    background:radial-gradient(55% 90% at 0% 0%, oklch(52% 0.17 255 / .42), transparent 62%), radial-gradient(55% 90% at 100% 0%, oklch(68% 0.14 86 / .38), transparent 62%), var(--void); }
  .cs-duel .sm-up{ color:#ff8fa3; } .cs-duel .sm-down{ color:#8cc0f5; } .cs-duel .sm-even{ color:var(--cs-dim); }
  .cs-head{ display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); gap:14px; align-items:start; padding:20px 22px 6px; }
  .cs-who{ display:flex; gap:14px; align-items:center; min-width:0; }
  .cs-who.b{ flex-direction:row-reverse; text-align:right; }
  .cs-ph{ width:62px; height:62px; border-radius:14px; overflow:hidden; position:relative; flex:none; background:rgba(255,255,255,.07); border:2px solid var(--cs-a);
    display:grid; place-items:center; font:700 20px var(--display); }
  .cs-who.b .cs-ph{ border-color:var(--cs-b); }
  .cs-ph img{ position:absolute; width:150%; height:auto; max-width:none; left:50%; top:5%; transform:translateX(-50%); }
  .cs-wt{ display:flex; flex-direction:column; min-width:0; }
  .cs-n{ font:700 21px/1.05 var(--display); overflow-wrap:anywhere; }
  .cs-s{ font:600 11px var(--display); letter-spacing:.12em; text-transform:uppercase; color:var(--cs-dim); margin-top:3px; }
  .cs-stats{ display:flex; gap:14px; align-items:flex-end; margin-top:8px; }
  .cs-who.b .cs-stats{ justify-content:flex-end; }
  .cs-lbl{ display:block; font:600 10.5px var(--display); letter-spacing:.14em; color:var(--cs-dim); }
  .cs-big{ display:block; font:700 34px/1 var(--display); font-variant-numeric:tabular-nums; }
  .cs-who.a .cs-big{ color:var(--cs-a); } .cs-who.b .cs-big{ color:var(--cs-b); }
  .cs-mini{ font-size:12px; color:var(--cs-dim); line-height:1.35; }
  .cs-mini b{ color:var(--cs-ink); font-variant-numeric:tabular-nums; }
  .cs-mid{ display:flex; flex-direction:column; align-items:center; gap:8px; }
  .cs-vs{ width:50px; height:50px; border-radius:50%; display:grid; place-items:center; font:700 17px var(--display); letter-spacing:.06em; border:1px solid var(--cs-line); background:rgba(255,255,255,.04); }
  .cs-seg{ display:flex; gap:2px; background:rgba(10,15,26,.6); border:1px solid var(--cs-line); border-radius:10px; padding:3px; }
  .cs-seg button{ all:unset; cursor:pointer; font-size:12.5px; font-weight:600; color:var(--cs-dim); padding:5px 11px; border-radius:7px; white-space:nowrap; }
  .cs-seg button[aria-pressed="true"]{ background:var(--cs-ink); color:#0b111c; }
  .cs-scope{ display:flex; gap:6px; flex-wrap:wrap; justify-content:center; padding:6px 22px 0; }
  .cs-scope button{ all:unset; cursor:pointer; font-size:12px; font-weight:600; color:var(--cs-dim); border:1px solid var(--cs-line); border-radius:999px; padding:4px 11px; white-space:nowrap; }
  .cs-scope button small{ font-weight:500; opacity:.75; margin-left:5px; font-variant-numeric:tabular-nums; }
  .cs-scope button[aria-pressed="true"]{ color:#0b111c; background:var(--cs-ink); border-color:var(--cs-ink); }
  .cs-seg button:focus-visible, .cs-scope button:focus-visible, .cs-views button:focus-visible, .cs-zones button:focus-visible{ outline:2px solid #8fb8ff; outline-offset:2px; }
  .cs-stages{ position:relative; display:grid; grid-template-columns:1fr; gap:12px; padding:10px 14px 0; }
  .cs-stages.dual{ grid-template-columns:1fr 1fr; }
  .cs-stage{ position:relative; border-radius:14px; overflow:hidden; aspect-ratio:16/9.5; min-height:280px; outline:none; background:radial-gradient(120% 90% at 50% 0%, rgba(255,255,255,.05), transparent 70%); }
  .cs-stages.dual .cs-stage{ aspect-ratio:4/3.3; border:1px solid var(--cs-line); }
  .cs-stages.dual .cs-stage.a{ border-color:color-mix(in oklab, var(--cs-a) 45%, transparent); }
  .cs-stages.dual .cs-stage.b{ border-color:color-mix(in oklab, var(--cs-b) 45%, transparent); }
  .cs-stage:focus-visible{ box-shadow:inset 0 0 0 2px #8fb8ff; }
  .cs-wait{ display:grid; place-items:center; color:var(--cs-dim); font-size:13px; padding:20px; text-align:center; }
  .cs-cv{ position:absolute; inset:0; width:100%; height:100%; display:block; touch-action:none; cursor:grab; }
  .cs-cv.grabbing{ cursor:grabbing; }
  .cs-tag{ position:absolute; left:12px; top:10px; z-index:1; font:700 11.5px var(--display); letter-spacing:.14em; text-transform:uppercase; pointer-events:none; }
  .cs-stage.a .cs-tag{ color:var(--cs-a); } .cs-stage.b .cs-tag{ color:var(--cs-b); }
  .cs-tag span{ color:var(--cs-dim); font-weight:600; letter-spacing:.04em; margin-left:8px; }
  .cs-views{ position:absolute; right:24px; top:20px; z-index:2; display:flex; gap:3px; background:rgba(10,15,26,.72); border:1px solid var(--cs-line); border-radius:10px; padding:3px; }
  .cs-views button{ all:unset; cursor:pointer; font-size:11.5px; font-weight:600; color:var(--cs-dim); padding:4px 8px; border-radius:7px; }
  .cs-views button[aria-pressed="true"]{ color:var(--cs-ink); background:rgba(255,255,255,.13); }
  .cs-key{ display:flex; gap:8px 16px; flex-wrap:wrap; align-items:center; justify-content:center; padding:10px 18px 2px; font-size:12px; color:var(--cs-dim); }
  .cs-key > span{ display:inline-flex; align-items:center; gap:6px; }
  .cs-ramp{ display:inline-flex; gap:2px; } .cs-ramp i{ width:14px; height:10px; border-radius:2px; display:inline-block; }
  .cs-read{ display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); gap:16px; align-items:center; margin-top:12px; padding:14px 22px 16px; border-top:1px solid var(--cs-line); background:rgba(6,10,18,.4); }
  .cs-rp .rn{ font:700 11px var(--display); letter-spacing:.14em; text-transform:uppercase; margin-bottom:6px; }
  .cs-rp.a .rn{ color:var(--cs-a); } .cs-rp.b .rn{ color:var(--cs-b); text-align:right; }
  .cs-rp .rg{ display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:6px; }
  .cs-rp .rg small{ display:block; font:600 10px var(--display); letter-spacing:.1em; text-transform:uppercase; color:var(--cs-dim); }
  .cs-rp .rg b{ font:700 15px var(--display); font-variant-numeric:tabular-nums; }
  .cs-rp.b .rg{ text-align:right; }
  .cs-rz{ text-align:center; min-width:150px; }
  .cs-rz .z{ font:700 15px var(--display); letter-spacing:.06em; text-transform:uppercase; }
  .cs-rz .d{ font-size:11.5px; color:var(--cs-dim); }
  .cs-zones{ display:flex; gap:6px; flex-wrap:wrap; justify-content:center; padding:0 18px 16px; background:rgba(6,10,18,.4); }
  .cs-zones button{ all:unset; cursor:pointer; font-size:11.5px; color:var(--cs-dim); border:1px solid var(--cs-line); border-radius:999px; padding:3px 10px; }
  .cs-zones button[aria-pressed="true"]{ color:var(--cs-ink); border-color:var(--cs-ink); }
  .cs-tbl{ overflow-x:auto; margin:12px 12px 0; }
  .cs-table{ border-collapse:collapse; width:100%; min-width:560px; font-size:13px; font-variant-numeric:tabular-nums; }
  .cs-table th, .cs-table td{ padding:8px 12px; text-align:right; border-bottom:1px solid var(--hair); white-space:nowrap; }
  .cs-table th:first-child, .cs-table td:first-child{ text-align:left; }
  .cs-table th{ font:600 11px var(--display); letter-spacing:.08em; text-transform:uppercase; color:var(--text-faint); }
  .cs-table td.ca{ color:var(--accent); font-weight:700; } .cs-table td.cb{ color:var(--accent-2); font-weight:700; }
  @media (max-width:860px){ .cs-stages.dual{ grid-template-columns:1fr; } .cs-head{ grid-template-columns:1fr 1fr; } .cs-mid{ grid-column:1/-1; grid-row:1; flex-direction:row; justify-content:center; } .cs-vs{ display:none; }
    .cs-read{ grid-template-columns:1fr; } .cs-rz{ order:-1; } .cs-rp.b .rn, .cs-rp.b .rg{ text-align:left; } }
  @media (max-width:560px){ .cs-duel{ margin:4px 8px 0; } .cs-head{ padding:14px 12px 4px; gap:10px; } .cs-who, .cs-who.b{ flex-direction:column; } .cs-who.a{ align-items:flex-start; } .cs-who.b{ align-items:flex-end; }
    .cs-n{ font-size:17px; } .cs-big{ font-size:27px; } .cs-stats{ flex-direction:column; align-items:flex-start; gap:4px; } .cs-who.b .cs-stats{ align-items:flex-end; }
    .cs-stages{ padding:8px 8px 0; } .cs-stage{ aspect-ratio:4/4.4; min-height:0; } .cs-stages.dual .cs-stage{ aspect-ratio:4/3.4; }
    .cs-views{ position:static; order:-1; justify-self:center; } .cs-read{ padding:12px; } .cs-rp .rg b{ font-size:12px; white-space:nowrap; } .cs-scope{ padding:6px 10px 0; } }

/* ===========================================================================
   Profile overview, update-50: Honours (a row per honour) and the career path
   (team crests on a line through the levels).
   =========================================================================== */
.pv-honours{ padding:4px 22px; }
.pv-hr{ display:grid; grid-template-columns:150px minmax(0,1fr); gap:18px; align-items:start; padding:15px 0; }
.pv-hr + .pv-hr{ border-top:1px solid var(--hair); }
.pv-hr-h{ display:flex; align-items:baseline; gap:8px; }
.pv-hr-h b{ font-family:var(--display); font-size:30px; line-height:1; font-weight:700; font-variant-numeric:tabular-nums; min-width:22px; }
.pv-hr-h span{ font-size:14px; font-weight:600; color:var(--text-muted); }
.pv-hr.gold .pv-hr-h b{ color:var(--pv-gold); }
.pv-hr ul{ list-style:none; margin:0; padding:3px 0 0; display:flex; flex-wrap:wrap; gap:10px 26px; }
.pv-hr li{ display:flex; align-items:center; gap:8px; font-size:14px; }
.pv-hr li a, .pv-hr li .c{ font-weight:600; color:var(--text); }
.pv-hr li a:hover{ color:var(--accent-ink); text-decoration:none; }
.pv-hr li .y{ font-variant-numeric:tabular-nums; color:var(--text-faint); font-size:13px; }
.pv-hr .pv-bi{ width:18px; height:18px; }
.pv-cpath{ padding:10px 0 6px; }
.pv-cpath-s{ overflow-x:auto; padding:0 12px; }
.pv-cpath svg{ display:block; }
.pv-cpath text{ font-family:var(--body); }
.pv-cpath .ln{ font-size:11px; font-weight:700; letter-spacing:.08em; fill:var(--text-faint); }
.pv-cpath .yr{ font-family:var(--display); font-size:15px; font-weight:700; fill:var(--text); text-anchor:middle; }
.pv-cpath .gap{ font-size:12px; fill:var(--text-faint); text-anchor:middle; }
.pv-cpath .hair{ stroke:var(--hair); }
.pv-cpath .ax{ stroke:var(--border); }
.pv-cpath .grid{ stroke:var(--hair); stroke-dasharray:1 5; stroke-linecap:round; }
.pv-cpath .line{ fill:none; stroke:var(--accent); stroke-width:3; stroke-linecap:round; stroke-linejoin:round; }
.pv-cpath .brk{ fill:none; stroke:var(--surface); stroke-width:3.6; stroke-dasharray:0 7 6 0; }
.pv-cpath .drop{ stroke:var(--text-faint); stroke-dasharray:2 4; }
.pv-cpath .ko{ fill:var(--surface); }
.pv-cpath .fl{ fill:none; stroke:var(--border); }
.pv-cpath .pl-l{ fill:#fff; } .pv-cpath .pl-d{ fill:oklch(22% 0.014 255); }
.pv-cpath .code{ font-size:11px; font-weight:700; fill:#fff; text-anchor:middle; }
.pv-cpath .mk{ cursor:default; }
.pv-cpath a .mk{ cursor:pointer; }
.pv-cpath .mk image{ transition:transform .12s ease; transform-box:fill-box; transform-origin:center; }
.pv-cpath .mk:hover image{ transform:scale(1.14); }
.pv-cpath a:focus-visible .ko{ stroke:var(--accent); stroke-width:2; }
@media (max-width:640px){
  .pv-honours{ padding:2px 16px; }
  .pv-hr{ grid-template-columns:minmax(0,1fr); gap:10px; }
  .pv-dets{ font-size:13px; }
}
@media (prefers-reduced-motion: reduce){ .pv-cpath .mk image{ transition:none; } }

/* ===========================================================================
   Home games box (update-51): Up next (featured game + later fixtures) and
   Results, on the hero's dark stage. Replaces the Games page.
   =========================================================================== */
.hm-hero-in.hmg{ display:block; padding:30px clamp(16px, 2.8vw, 36px) 26px; }
.hmg-head{ display:flex; align-items:center; gap:12px 20px; flex-wrap:wrap; margin-bottom:20px; }
.hmg-tabs{ display:none; margin-left:auto; background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.1); border-radius:100px; padding:3px; }
.hmg-tabs button{ border:0; background:none; border-radius:100px; padding:7px 14px; font:600 13px var(--body); color:rgba(255,255,255,.75); cursor:pointer; }
.hmg-tabs button[aria-pressed="true"]{ background:#fff; color:oklch(16% 0.012 255); }
.hmg-cols{ display:grid; grid-template-columns:minmax(0,1.08fr) minmax(0,1fr); gap:28px; align-items:start; }
.hmg-col-h{ display:flex; align-items:center; gap:10px; margin-bottom:12px; min-height:34px; }
.hmg-col-h h2{ margin:0; font:700 13px var(--body); letter-spacing:.12em; text-transform:uppercase; color:rgba(255,255,255,.78); }
.hmg-col-h > span{ font-size:12px; color:rgba(255,255,255,.4); }
.hmg-sel{ margin-left:auto; max-width:240px; appearance:none; -webkit-appearance:none; color:#fff; cursor:pointer; text-overflow:ellipsis;
  background:rgba(255,255,255,.05) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cpath d='M2.5 4.5L6 8l3.5-3.5' fill='none' stroke='white' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 11px center;
  border:1px solid rgba(255,255,255,.12); border-radius:100px; padding:7px 32px 7px 13px; font:600 12.5px var(--body); }
.hmg-sel option{ color:#111; background:#fff; }
.hmg-tbd{ display:inline-block; flex:none; border-radius:50%; border:1.5px dashed rgba(255,255,255,.35); box-sizing:border-box; }
/* the featured game */
.hmg-feat{ display:block; position:relative; border-radius:18px; color:#fff; text-decoration:none; padding:18px 20px;
  background:linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.03)); border:1px solid rgba(255,255,255,.13); transition:border-color .15s, background .15s; }
a.hmg-feat:hover{ text-decoration:none; border-color:rgba(255,255,255,.26); }
.hmg-feat-on{ border-color:oklch(60% 0.17 25 / .6); background:linear-gradient(160deg, oklch(35% 0.09 25 / .5), rgba(255,255,255,.03)); }
.hmg-feat-k{ display:flex; align-items:center; gap:9px; font-size:12.5px; color:rgba(255,255,255,.55); min-width:0; }
.hmg-feat-k > span{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.hmg-feat-k .crest-logo{ background:#fff; border-radius:6px; padding:2px; box-sizing:border-box; }
.hmg-feat-k em{ margin-left:auto; flex:none; font-style:normal; font-weight:700; font-size:11.5px; letter-spacing:.1em; text-transform:uppercase; color:oklch(84% 0.13 86); }
.hmg-feat-k em.hmg-live{ display:inline-flex; align-items:center; gap:6px; color:var(--live, oklch(68% 0.2 25)); }
.hmg-feat-k em.hmg-live i{ width:8px; height:8px; border-radius:50%; background:currentColor; animation:hmg-pulse 1.6s infinite; }
.hmg-feat-k em.hmg-fin{ color:rgba(255,255,255,.75); }
@keyframes hmg-pulse{ 0%{ box-shadow:0 0 0 0 oklch(68% 0.2 25 / .6); } 100%{ box-shadow:0 0 0 9px oklch(68% 0.2 25 / 0); } }
.hmg-match{ display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:center; gap:12px; margin:20px 0 18px; }
.hmg-side{ display:flex; flex-direction:column; align-items:center; gap:10px; text-align:center; min-width:0; }
.hmg-side b{ font:700 20px/1.15 var(--display); max-width:100%; overflow-wrap:anywhere; }
.hmg-side strong{ font:700 40px/1 var(--display); font-variant-numeric:tabular-nums; color:rgba(255,255,255,.7); }
.hmg-side.w strong, .hmg-feat-on:not(:has(.w)) .hmg-side strong{ color:#fff; }
.hmg-vs{ font:600 15px var(--display); letter-spacing:.1em; color:rgba(255,255,255,.38); }
.hmg-feat-f{ display:flex; align-items:flex-end; gap:12px; flex-wrap:wrap; padding-top:14px; border-top:1px solid rgba(255,255,255,.09); font-size:13.5px; color:rgba(255,255,255,.74); }
.hmg-feat-f small{ display:block; font-size:12.5px; color:rgba(255,255,255,.5); margin-top:2px; }
.hmg-go{ margin-left:auto; font-weight:600; color:oklch(84% 0.13 86); }
.hmg-cd{ margin-left:auto; display:flex; gap:6px; }
.hmg-cd > span{ min-width:46px; text-align:center; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.09); border-radius:10px; padding:6px 6px 5px;
  font-size:10.5px; letter-spacing:.06em; text-transform:uppercase; color:rgba(255,255,255,.5); }
.hmg-cd b{ display:block; font:700 22px/1 var(--display); color:oklch(84% 0.13 86); font-variant-numeric:tabular-nums; }
.hmg-cd .hmg-soon{ display:inline-flex; align-items:center; gap:6px; min-width:0; border:0; background:none; font-weight:700; color:oklch(84% 0.13 86); }
.hmg-cd .hmg-soon i{ width:8px; height:8px; border-radius:50%; background:currentColor; }
/* rows */
.hmg-list{ display:flex; flex-direction:column; margin-top:6px; }
.hmg-day{ font:700 11.5px var(--body); letter-spacing:.1em; text-transform:uppercase; color:rgba(255,255,255,.5); padding:14px 2px 6px; }
.hmg-res .hmg-list > .hmg-day:first-child{ padding-top:2px; }
.hmg-row{ display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:14px; padding:10px 14px; border-radius:12px; color:#fff; text-decoration:none;
  background:rgba(255,255,255,.045); border:1px solid transparent; transition:background .12s, border-color .12s; }
.hmg-row + .hmg-row{ margin-top:6px; }
.hmg-row:hover{ text-decoration:none; background:rgba(255,255,255,.08); border-color:rgba(255,255,255,.09); }
.hmg-tms{ display:flex; flex-direction:column; gap:6px; min-width:0; }
.hmg-tm{ display:grid; grid-template-columns:22px minmax(0,1fr) auto; align-items:center; gap:10px; min-width:0; }
.hmg-tm .nm{ font-size:14px; color:rgba(255,255,255,.72); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.hmg-tm b{ font:700 19px/1 var(--display); color:rgba(255,255,255,.5); font-variant-numeric:tabular-nums; min-width:28px; text-align:right; }
.hmg-tm.w .nm{ color:#fff; font-weight:600; } .hmg-tm.w b{ color:#fff; }
.hmg-tm.tbd .nm{ color:rgba(255,255,255,.38); font-style:italic; }
.hmg-tm .crest-logo, .hmg-tm .crest-flag, .hmg-tm .swatch{ width:22px !important; height:22px !important; }
.hmg-meta{ display:flex; flex-direction:column; align-items:flex-end; gap:5px; text-align:right; border-left:1px solid rgba(255,255,255,.09); padding-left:14px; min-width:76px; }
.hmg-meta b{ display:flex; align-items:center; gap:7px; font-size:13px; font-weight:600; white-space:nowrap; }
.hmg-meta > span{ font-size:11.5px; color:rgba(255,255,255,.5); white-space:nowrap; }
.hmg-meta > span.hmg-box{ color:oklch(84% 0.13 86); font-weight:600; }
.hmg-meta .crest-logo{ background:#fff; border-radius:5px; padding:2px; box-sizing:border-box; }
/* every later fixture, in a scrolling list the height of about four games; the date stays
   pinned while its games scroll under it, and a fade at the foot says there are more */
.hmg-scroll{ margin-top:6px; max-height:356px; overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:rgba(255,255,255,.22) transparent;
  padding-right:6px; border-radius:12px; }
.hmg-scroll::-webkit-scrollbar{ width:6px; } .hmg-scroll::-webkit-scrollbar-thumb{ background:rgba(255,255,255,.22); border-radius:3px; }
.hmg-scroll.more:not(.end){ -webkit-mask-image:linear-gradient(180deg, #000 calc(100% - 40px), transparent); mask-image:linear-gradient(180deg, #000 calc(100% - 40px), transparent); }
.hmg-scroll:focus-visible{ outline:2px solid oklch(84% 0.13 86); outline-offset:2px; }
.hmg-scroll .hmg-list{ margin-top:0; }
/* the results list runs the height of the Up next column beside it */
.hmg-scroll.hmg-rs{ max-height:640px; }
.hmg-res .hmg-scroll .hmg-list > .hmg-day:first-child{ padding-top:2px; }
.hmg-end{ padding:14px 4px 6px; text-align:center; font-size:12px; color:rgba(255,255,255,.4); }
@media (max-width:900px){ .hmg-scroll.hmg-rs{ max-height:560px; } }
.hmg-scroll .hmg-day{ position:sticky; top:0; z-index:1; padding:10px 2px 8px; background:linear-gradient(180deg, color-mix(in oklab, var(--void) 80%, transparent) 65%, transparent); backdrop-filter:blur(4px); -webkit-backdrop-filter:blur(4px); }
.hmg-more{ margin-top:12px; width:100%; border:1px dashed rgba(255,255,255,.18); background:none; border-radius:12px; padding:10px; font:600 13px var(--body); color:rgba(255,255,255,.75); cursor:pointer; }
.hmg-more:hover{ background:rgba(255,255,255,.05); color:#fff; }
.hmg-empty{ padding:26px 16px; text-align:center; color:rgba(255,255,255,.55); font-size:13.5px; background:rgba(255,255,255,.045); border-radius:14px; }
@media (max-width:900px){
  .hmg-tabs{ display:inline-flex; }
  .hmg-cols{ grid-template-columns:minmax(0,1fr); }
  .hmg-cols[data-show="up"] .hmg-res, .hmg-cols[data-show="res"] .hmg-up{ display:none; }
}
@media (max-width:560px){
  .hm-hero-in.hmg{ padding:22px 14px 18px; }
  .hmg-tabs{ margin-left:0; }
  .hmg-side b{ font-size:17px; }
  .hmg-side .crest-logo, .hmg-side .crest-flag, .hmg-side .swatch{ width:50px !important; height:50px !important; }
  .hmg-feat{ padding:16px 14px; }
  .hmg-cd{ margin-left:0; width:100%; }
  .hmg-row{ padding:10px 12px; gap:10px; }
  .hmg-meta{ min-width:64px; padding-left:10px; }
}
@media (prefers-reduced-motion: reduce){ .hmg-feat-k em.hmg-live i{ animation:none; } .hmg-row, .hmg-feat{ transition:none; } }

/* ===========================================================================
   Compare › Lineups (update-53): two teams' lineups in one competition.
   Side A is amber, side B blue, whoever the teams are; every class is cl-…
   =========================================================================== */
.cl-page{ --cla: oklch(70% 0.15 82); --cla-ink: oklch(48% 0.11 75); --cla-soft: oklch(95% 0.05 88);
  --clb: oklch(52% 0.15 258); --clb-ink: oklch(45% 0.15 258); --clb-soft: oklch(94% 0.035 258); }
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]) .cl-page{ --cla: oklch(78% 0.14 85); --cla-ink: oklch(84% 0.12 88); --cla-soft: oklch(32% 0.06 85);
  --clb: oklch(64% 0.14 255); --clb-ink: oklch(78% 0.11 255); --clb-soft: oklch(30% 0.06 258); } }
:root[data-theme="dark"] .cl-page{ --cla: oklch(78% 0.14 85); --cla-ink: oklch(84% 0.12 88); --cla-soft: oklch(32% 0.06 85);
  --clb: oklch(64% 0.14 255); --clb-ink: oklch(78% 0.11 255); --clb-soft: oklch(30% 0.06 258); }
.cl-page .cl-A, .cl-page .cl-faced.cl-A{ --c:var(--cla); --c-ink:var(--cla-ink); --c-soft:var(--cla-soft); }
.cl-page .cl-B, .cl-page .cl-faced.cl-B{ --c:var(--clb); --c-ink:var(--clb-ink); --c-soft:var(--clb-soft); }
.cl-page .pos{ color:var(--positive-ink, oklch(50% 0.14 150)); } .cl-page .neg{ color:var(--negative, oklch(54% 0.18 25)); }
.cl-mode{ display:inline-flex; background:var(--surface-alt); border:1px solid var(--border); border-radius:100px; padding:3px; align-self:center; }
.cl-mode a{ padding:7px 18px; border-radius:100px; font-weight:600; font-size:13.5px; color:var(--text-muted); text-decoration:none; }
.cl-mode a:hover{ color:var(--text); text-decoration:none; }
.cl-mode a[aria-current="page"]{ background:var(--on-bg); color:var(--on-fg); }
.cl-msg{ padding:22px 20px; color:var(--text-muted); font-size:14px; margin-top:14px; }

.cl-bar{ position:sticky; top:68px; z-index:15; display:flex; flex-wrap:wrap; align-items:center; gap:10px 14px; padding:10px 12px; border-radius:14px;
  background:color-mix(in oklab, var(--surface) 90%, transparent); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); border:1px solid var(--border); box-shadow:var(--shadow-2); }
.cl-sel{ display:flex; align-items:center; gap:8px; background:var(--surface-alt); border:1px solid var(--border); border-radius:10px; padding:0 10px 0 12px; min-width:0; max-width:100%; }
.cl-sel > span{ font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--text-faint); white-space:nowrap; }
.cl-sel select{ appearance:none; -webkit-appearance:none; border:0; color:var(--text); background:transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cpath d='M2.5 4.5L6 8l3.5-3.5' fill='none' stroke='%23889' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 0 center;
  padding:9px 20px 9px 0; font:600 14px var(--body); cursor:pointer; min-width:0; max-width:100%; text-overflow:ellipsis; }
.cl-sel select option{ background:var(--surface); color:var(--text); }
.cl-seg{ display:inline-flex; align-items:center; gap:2px; background:var(--surface-alt); border:1px solid var(--border); border-radius:10px; padding:3px; }
.cl-seg > span{ font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--text-faint); padding:0 8px 0 7px; }
.cl-seg button{ border:0; background:none; padding:6px 11px; border-radius:7px; font:600 13px var(--body); color:var(--text-muted); cursor:pointer; white-space:nowrap; }
.cl-seg button[aria-pressed="true"]{ background:var(--surface); color:var(--text); box-shadow:var(--shadow); }
.cl-gap{ flex:1; }

.cl-sb{ margin-top:14px; overflow:hidden; }
.cl-sb-top{ position:relative; display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:center; gap:18px; padding:24px 28px 20px; }
.cl-sb-top::before, .cl-sb-top::after{ content:""; position:absolute; top:0; bottom:0; width:42%; pointer-events:none; opacity:.55; }
.cl-sb-top::before{ left:0; background:linear-gradient(90deg, var(--cla-soft), transparent); }
.cl-sb-top::after{ right:0; background:linear-gradient(270deg, var(--clb-soft), transparent); }
.cl-side{ position:relative; z-index:1; display:flex; align-items:center; gap:16px; min-width:0; }
.cl-side.r{ flex-direction:row-reverse; text-align:right; }
.cl-side > :first-child{ flex:none; }
.cl-side b{ display:block; font-family:var(--display); font-size:28px; line-height:1.04; letter-spacing:-.005em; overflow-wrap:break-word; }
.cl-side span{ font-size:13px; color:var(--text-muted); }
.cl-agg{ position:relative; z-index:1; text-align:center; }
.cl-agg .n{ font-family:var(--display); font-weight:700; font-size:52px; line-height:1; letter-spacing:-.02em; font-variant-numeric:tabular-nums; }
.cl-agg .n i{ font-style:normal; font-weight:400; color:var(--text-faint); margin:0 10px; }
.cl-agg .n .l{ color:var(--text-faint); }
.cl-agg small{ display:block; margin-top:6px; font-size:12px; color:var(--text-faint); }
.cl-swap{ margin-top:8px; border:1px solid var(--border); background:var(--surface); border-radius:100px; padding:3px 12px; font-size:14px; cursor:pointer; color:var(--text-muted); }
.cl-swap:hover{ color:var(--text); border-color:var(--text-faint); }
.cl-gtabs{ display:flex; border-top:1px solid var(--hair); overflow-x:auto; }
.cl-gtab{ flex:1; min-width:150px; border:0; background:none; cursor:pointer; padding:12px 16px 13px; text-align:left; border-right:1px solid var(--hair); position:relative; color:var(--text); }
.cl-gtab:last-child{ border-right:0; }
.cl-gtab .k{ display:block; font-size:12px; color:var(--text-faint); font-weight:600; white-space:nowrap; }
.cl-gtab .v{ display:block; margin-top:2px; font-size:15px; font-weight:700; font-variant-numeric:tabular-nums; }
.cl-gtab:hover, .cl-gtab[aria-pressed="true"]{ background:var(--surface-alt); }
.cl-gtab[aria-pressed="true"]::after{ content:""; position:absolute; left:16px; right:16px; bottom:0; height:3px; border-radius:3px 3px 0 0; background:var(--text); }

.cl-sh{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin:30px 0 12px; }
.cl-sh h2{ font-family:var(--display); font-size:24px; margin:0; letter-spacing:-.005em; text-transform:none; }
.cl-sh .sub{ font-size:13px; color:var(--text-faint); }

.cl-tape{ padding:6px 22px; }
.cl-tr{ display:grid; grid-template-columns:72px minmax(0,1fr) 170px minmax(0,1fr) 72px; align-items:center; gap:12px; padding:11px 0; }
.cl-tr + .cl-tr{ border-top:1px solid var(--hair); }
.cl-tr .va, .cl-tr .vb{ font-family:var(--display); font-size:21px; font-weight:700; font-variant-numeric:tabular-nums; color:var(--text-muted); }
.cl-tr .vb{ text-align:right; }
.cl-tr .va.win{ color:var(--cla-ink); } .cl-tr .vb.win{ color:var(--clb-ink); }
.cl-tr .lb{ text-align:center; font-size:12.5px; font-weight:600; color:var(--text-muted); line-height:1.3; }
.cl-tr .lb small{ display:block; font-weight:500; color:var(--text-faint); font-size:11.5px; }
.cl-tr .ba, .cl-tr .bb{ height:8px; border-radius:4px; background:var(--hair); position:relative; overflow:hidden; }
.cl-tr .ba u, .cl-tr .bb u{ position:absolute; top:0; bottom:0; border-radius:4px; }
.cl-tr .ba u{ right:0; background:var(--cla); } .cl-tr .bb u{ left:0; background:var(--clb); }
.cl-tr u.dim{ opacity:.35; }

.cl-starts{ display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:14px; }
.cl-stc{ padding:16px 18px 14px; border-top:4px solid var(--c); }
.cl-stc-h{ display:flex; align-items:center; gap:9px; font-size:12px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--text-muted); }
.cl-stg{ margin-top:12px; }
.cl-stg + .cl-stg{ border-top:1px dashed var(--hair); padding-top:12px; }
.cl-stg-k{ display:flex; justify-content:space-between; gap:10px; font-size:12px; color:var(--text-faint); margin-bottom:8px; flex-wrap:wrap; }
.cl-stg-k b{ color:var(--text); font-weight:600; }
.cl-people{ display:grid; grid-template-columns:repeat(5, minmax(0,1fr)); gap:8px; }
.cl-pp{ display:flex; flex-direction:column; align-items:center; gap:5px; text-align:center; min-width:0; color:var(--text); text-decoration:none; }
.cl-pp:hover{ text-decoration:none; } .cl-pp:hover b{ color:var(--accent-ink); }
.cl-face{ width:44px; height:44px; border-radius:50%; background:var(--c-soft); color:var(--c-ink); display:grid; place-items:center; overflow:hidden; font-size:12px; font-weight:700; flex:none;
  box-shadow:0 0 0 2px var(--surface), 0 0 0 3px color-mix(in oklab, var(--c) 45%, transparent); }
.cl-face img{ width:100%; height:100%; object-fit:cover; display:block; }
.cl-pp b{ font-size:12.5px; font-weight:600; line-height:1.15; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cl-pp span{ font-size:11px; color:var(--text-faint); }

.cl-tteam{ display:none; margin-left:auto; }
.cl-tables{ display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:14px; align-items:start; }
.cl-lt{ overflow:hidden; }
.cl-lt-h{ display:flex; align-items:center; gap:10px; padding:13px 16px; border-bottom:1px solid var(--hair); background:linear-gradient(90deg, var(--c-soft), transparent 70%); }
.cl-lt-h b{ font-family:var(--display); font-size:19px; }
.cl-lt-h > span:last-child{ margin-left:auto; font-size:12px; color:var(--text-muted); white-space:nowrap; }
.cl-rows-h, .cl-row{ display:grid; grid-template-columns:minmax(0,1fr) 54px 64px 52px 70px; gap:8px; align-items:center; padding:0 14px 0 16px; }
.cl-rows-h{ height:34px; border-bottom:1px solid var(--hair); }
.cl-rows-h button{ border:0; background:none; padding:0; font:700 11px var(--body); letter-spacing:.05em; text-transform:uppercase; color:var(--text-faint); cursor:pointer; text-align:right; }
.cl-rows-h button:first-child{ text-align:left; cursor:default; }
.cl-rows-h button[aria-sort]{ color:var(--text); }
.cl-rows-h button[aria-sort="descending"]::after{ content:" ↓"; } .cl-rows-h button[aria-sort="ascending"]::after{ content:" ↑"; }
.cl-item{ border-bottom:1px solid var(--hair); }
.cl-item:last-of-type{ border-bottom:0; }
.cl-row{ width:100%; border:0; background:none; text-align:left; cursor:pointer; padding-top:10px; padding-bottom:10px; color:var(--text); font:inherit; }
.cl-row:hover{ background:var(--surface-alt); }
.cl-item.open > .cl-row{ background:color-mix(in oklab, var(--c) 10%, var(--surface)); box-shadow:inset 3px 0 0 var(--c); }
.cl-row > span{ text-align:right; font-variant-numeric:tabular-nums; font-size:14px; }
.cl-who{ display:flex; flex-direction:column; gap:5px; min-width:0; text-align:left !important; }
.cl-faces{ display:flex; align-items:center; }
.cl-faces .cl-face{ width:28px; height:28px; font-size:9.5px; margin-left:-6px; box-shadow:0 0 0 2px var(--surface); }
.cl-faces .cl-face:first-child{ margin-left:0; }
.cl-names{ font-size:12px; color:var(--text-muted); line-height:1.35; }
.cl-names b{ color:var(--text); font-weight:600; }
.cl-tag{ font-size:10px; font-weight:700; letter-spacing:.06em; padding:1px 6px; border-radius:4px; margin-left:8px; color:var(--c-ink); background:var(--c-soft); white-space:nowrap; }
.cl-tag.g{ color:var(--text-muted); background:var(--surface-alt); }
.cl-pm{ font-weight:700; }
.cl-sc{ color:var(--text-muted); }
.cl-net{ color:var(--text-muted); font-size:13px !important; white-space:nowrap; }
.cl-chev{ display:inline-block; width:8px; height:8px; border-right:2px solid var(--text-faint); border-bottom:2px solid var(--text-faint); transform:rotate(45deg); margin-left:8px; transition:transform .15s; }
.cl-item.open .cl-chev{ transform:rotate(225deg); }
.cl-more{ display:block; width:100%; border:0; border-top:1px solid var(--hair); background:none; padding:11px; font:600 13px var(--body); color:var(--accent); cursor:pointer; }
.cl-empty{ padding:22px 16px; color:var(--text-faint); font-size:13.5px; text-align:center; }
.cl-det{ padding:6px 16px 16px; background:color-mix(in oklab, var(--c) 5%, var(--surface)); }
.cl-dl{ display:grid; gap:7px; }
.cl-dr{ display:grid; grid-template-columns:62px minmax(0,1fr) 92px minmax(0,1fr) 62px; gap:8px; align-items:center; font-size:12.5px; font-variant-numeric:tabular-nums; }
.cl-dr .o{ font-weight:700; } .cl-dr .x{ text-align:right; color:var(--text-muted); }
.cl-dr .k{ text-align:center; color:var(--text-faint); font-size:11.5px; font-weight:600; }
.cl-dr i{ display:block; height:6px; border-radius:3px; background:var(--hair); position:relative; overflow:hidden; }
.cl-dr i u{ position:absolute; top:0; bottom:0; border-radius:3px; }
.cl-dr i.l u{ right:0; background:var(--c); } .cl-dr i.r u{ left:0; background:var(--text-faint); opacity:.6; }
.cl-dh{ display:flex; justify-content:space-between; gap:10px; font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--text-faint); margin:10px 0 8px; }
.cl-plinks{ display:flex; flex-wrap:wrap; gap:4px 14px; margin-top:12px; font-size:12.5px; }
.cl-plinks a{ font-weight:600; }
.cl-faced{ display:flex; flex-direction:column; gap:6px; }
.cl-fr{ display:grid; grid-template-columns:minmax(0,1fr) 46px 58px; gap:10px; align-items:center; font-size:12.5px; padding:6px 8px; border-radius:9px; background:var(--surface); border:1px solid var(--hair); }
.cl-frw{ display:flex; align-items:center; gap:9px; min-width:0; }
.cl-fr .cl-faces .cl-face{ width:22px; height:22px; font-size:8px; margin-left:-5px; }
.cl-fr .cl-faces .cl-face:first-child{ margin-left:0; }
.cl-fr .nm{ font-size:12px; color:var(--text-muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0; }
.cl-fr .nm b{ color:var(--text); font-weight:600; }
.cl-fr > span{ text-align:right; font-variant-numeric:tabular-nums; }
.cl-glos{ margin-top:28px; font-size:12.5px; color:var(--text-muted); line-height:1.6; }
.cl-glos summary{ cursor:pointer; font-weight:600; color:var(--text); font-size:13px; }
.cl-glos p{ max-width:96ch; margin:8px 0 0; }
@media (max-width:1000px){
  .cl-tables, .cl-starts{ grid-template-columns:minmax(0,1fr); }
  .cl-tteam{ display:inline-flex; max-width:100%; }
  /* two long club names (Johor Southern Tigers · Penang Sunrise Youngsters) share the width */
  .cl-tteam button{ min-width:0; white-space:normal; line-height:1.25; text-align:center; }
  .cl-tables[data-tab="A"] .cl-lt.cl-B, .cl-tables[data-tab="B"] .cl-lt.cl-A{ display:none; }
}
@media (max-width:640px){
  .cl-bar{ position:static; } .cl-sel{ flex:1 1 100%; } .cl-sel select{ flex:1; }
  .cl-sb-top{ padding:18px 14px 16px; gap:10px; }
  .cl-side, .cl-side.r{ flex-direction:column; text-align:center; gap:8px; }
  .cl-side > :first-child{ width:44px !important; height:44px !important; }
  .cl-side b{ font-size:15px; } .cl-agg .n{ font-size:30px; } .cl-agg .n i{ margin:0 3px; }
  .cl-sb-top{ grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); }
  .cl-tape{ padding:4px 14px; }
  .cl-tr{ grid-template-columns:52px minmax(0,1fr) 92px minmax(0,1fr) 52px; gap:8px; }
  .cl-tr .va, .cl-tr .vb{ font-size:17px; } .cl-tr .lb{ font-size:11.5px; } .cl-tr .lb small{ display:none; }
  .cl-face{ width:38px; height:38px; } .cl-pp b{ font-size:11px; }
  .cl-rows-h, .cl-row{ grid-template-columns:minmax(0,1fr) 46px 52px 46px; padding:0 12px; }
  .cl-rows-h .cl-c-net, .cl-row .cl-net{ display:none; }
  .cl-dr{ grid-template-columns:48px minmax(0,1fr) 74px minmax(0,1fr) 48px; }
}
@media (prefers-reduced-motion: reduce){ .cl-chev{ transition:none; } }

  /* the Shot chart tab of a box score page (app4z_gameshots.js): team, shooter and period over the
     profile's Shot map */
  .sg{ display:flex; flex-direction:column; gap:12px; }
  .sg-teams{ display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:8px; }
  .sg-team{ all:unset; cursor:pointer; display:flex; align-items:center; gap:10px; min-width:0; padding:10px 14px; border:1px solid var(--border); border-radius:12px; background:var(--surface); font-weight:700; }
  .sg-team span{ min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .sg-team small{ margin-left:auto; flex:none; font-weight:500; font-size:12.5px; color:var(--text-faint); font-variant-numeric:tabular-nums; }
  .sg-team[aria-pressed="true"]{ border-color:var(--text); box-shadow:inset 0 0 0 1px var(--text); }
  .sg-chips{ display:flex; gap:6px; overflow-x:auto; padding:2px 2px 6px; scrollbar-width:thin; }
  .sg-chip{ all:unset; cursor:pointer; flex:none; display:inline-flex; align-items:center; gap:8px; padding:4px 12px 4px 4px; border:1px solid var(--border); border-radius:999px; background:var(--surface); font-size:13px; font-weight:600; white-space:nowrap; }
  .sg-chip.sg-all{ padding-left:12px; }
  .sg-chip .avatar{ width:26px; height:26px; font-size:10px; }
  .sg-chip small{ font-size:11.5px; font-weight:500; color:var(--text-faint); font-variant-numeric:tabular-nums; }
  .sg-chip[aria-pressed="true"]{ background:var(--void); border-color:var(--text); color:#fff; }
  .sg-chip[aria-pressed="true"] small{ color:rgba(255,255,255,.7); }
  .sg-team:focus-visible, .sg-chip:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; }
  .sg-sel{ display:flex; align-items:center; justify-content:space-between; gap:10px 16px; flex-wrap:wrap; }
  .sg-who{ display:flex; align-items:center; gap:10px; min-width:0; color:var(--text); }
  a.sg-who:hover{ text-decoration:none; }
  a.sg-who:hover b{ text-decoration:underline; }
  .sg-who .avatar{ width:38px; height:38px; }
  .sg-who b{ display:block; font-family:var(--display); font-size:17px; }
  .sg-who small{ display:block; font-size:12.5px; color:var(--text-muted); font-variant-numeric:tabular-nums; }
  @media (max-width:560px){ .sg-team{ padding:8px 10px; gap:8px; font-size:14px; } .sg-team small{ display:none; } .sg-sel .sm-seg{ width:100%; } }

  /* Milestones (#/milestones, app4za_milestones.js): local players in the MBL */
  .ms-page{ display:flex; flex-direction:column; gap:22px; }
  .ms-head{ display:flex; align-items:center; gap:12px 18px; flex-wrap:wrap; }
  .ms-head h1{ margin:0 auto 0 0; font-family:var(--display); font-weight:700; font-size:clamp(30px, 3.4vw, 40px); letter-spacing:-.01em; line-height:1; }
  .ms-seg{ display:inline-flex; gap:2px; background:var(--surface-alt); border:1px solid var(--border); border-radius:100px; padding:3px; }
  .ms-seg button{ border:0; background:none; cursor:pointer; border-radius:100px; padding:7px 14px; font:inherit; font-size:13px; font-weight:600; color:var(--text-muted); white-space:nowrap; transition:background .2s, color .2s; }
  .ms-seg button[aria-pressed="true"]{ background:var(--text); color:var(--bg); }
  .ms-h{ display:flex; align-items:baseline; gap:10px; margin:0 0 14px; }
  .ms-h h2{ margin:0; font-size:12.5px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:var(--text-muted); }
  .ms-h small{ font-size:12.5px; color:var(--text-faint); font-variant-numeric:tabular-nums; }
  .ms-none{ padding:28px 0; text-align:center; color:var(--text-faint); font-size:14px; }
  .ms-who{ display:flex; align-items:center; gap:9px; min-width:0; }
  .ms-who > span{ min-width:0; }
  .ms-who b{ display:block; font-size:14px; font-weight:600; line-height:1.2; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .ms-who small{ display:flex; align-items:center; gap:5px; font-size:12px; color:var(--text-faint); white-space:nowrap; overflow:hidden; }
  .ms-who small > span{ overflow:hidden; text-overflow:ellipsis; }
  .ms-who small .crest-logo, .ms-who small .crest-flag, .ms-who small .swatch{ flex:none; }
  .ms-who .avatar{ width:32px; height:32px; }

  /* next up */
  .ms-next{ position:relative; isolation:isolate; overflow:hidden; border-radius:22px; color:#fff; padding:22px 0;
    background:radial-gradient(60% 120% at 0% 0%, oklch(25% 0.05 86 / .9) 0%, transparent 60%), radial-gradient(70% 120% at 100% 100%, oklch(21% 0.055 262) 0%, transparent 66%), var(--void); }
  .ms-next .ms-h{ padding:0 clamp(16px, 2.4vw, 28px); }
  .ms-next .ms-h h2{ color:oklch(100% 0 0/.74); display:flex; align-items:center; gap:8px; }
  .ms-next .ms-h h2 i{ width:8px; height:8px; border-radius:50%; background:oklch(80% 0.15 86); animation:ms-pulse 2.2s infinite; }
  .ms-next .ms-h small{ color:oklch(100% 0 0/.52); }
  @keyframes ms-pulse{ 0%{ box-shadow:0 0 0 0 oklch(80% 0.15 86/.6); } 70%{ box-shadow:0 0 0 9px oklch(80% 0.15 86/0); } 100%{ box-shadow:0 0 0 0 oklch(80% 0.15 86/0); } }
  .ms-rail{ display:flex; gap:12px; overflow-x:auto; scroll-snap-type:x mandatory; padding:2px clamp(16px, 2.4vw, 28px) 6px; scrollbar-width:thin; scrollbar-color:oklch(100% 0 0/.2) transparent; }
  .ms-next .ms-none{ color:oklch(100% 0 0/.52); padding:6px 0; }
  .ms-nc{ flex:none; width:236px; scroll-snap-align:start; color:#fff; background:oklch(100% 0 0/.05); border:1px solid oklch(100% 0 0/.1); border-radius:16px; padding:14px;
    display:grid; grid-template-columns:1fr auto; gap:12px 10px; align-items:center; transition:transform .25s cubic-bezier(.2,.7,.2,1), background .25s, border-color .25s; }
  .ms-nc:hover{ text-decoration:none; transform:translateY(-3px); background:oklch(100% 0 0/.08); border-color:oklch(100% 0 0/.18); }
  .ms-nc .ms-who{ grid-column:1/-1; }
  .ms-nc .ms-who small{ color:oklch(100% 0 0/.52); }
  .ms-nc .avatar{ width:36px; height:36px; background:oklch(100% 0 0/.12); color:#fff; }
  .ms-goal .t{ font-family:var(--display); font-weight:700; font-size:30px; line-height:1; letter-spacing:-.01em; font-variant-numeric:tabular-nums; }
  .ms-goal .t span{ font-size:14px; color:oklch(80% 0.15 86); margin-left:4px; letter-spacing:.04em; }
  .ms-goal .g{ margin-top:6px; font-size:12.5px; color:oklch(100% 0 0/.74); font-variant-numeric:tabular-nums; }
  .ms-goal .g b{ color:#fff; }
  .ms-ring{ width:62px; height:62px; position:relative; }
  .ms-ring svg{ width:100%; height:100%; transform:rotate(-90deg); }
  .ms-ring circle{ fill:none; stroke-width:6; }
  .ms-ring .bg{ stroke:oklch(100% 0 0/.1); }
  .ms-ring .fg{ stroke:oklch(80% 0.15 86); stroke-linecap:round; transition:stroke-dashoffset 1.1s cubic-bezier(.2,.7,.2,1); }
  .ms-ring em{ position:absolute; inset:0; display:grid; place-items:center; font-style:normal; font-size:12px; font-weight:700; font-variant-numeric:tabular-nums; }
  .ms-scope{ grid-column:1/-1; display:flex; gap:8px; justify-content:space-between; font-size:11.5px; color:oklch(100% 0 0/.52); border-top:1px solid oklch(100% 0 0/.1); padding-top:9px; font-variant-numeric:tabular-nums; }
  .ms-scope span:first-child{ min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .ms-scope span:last-child{ flex:none; }

  /* stat tabs, leaders, reached */
  .ms-stats{ display:flex; gap:6px; overflow-x:auto; scrollbar-width:none; }
  .ms-stats button{ flex:none; font:inherit; color:var(--text); border:1px solid var(--border); background:var(--surface); border-radius:12px; padding:8px 14px; cursor:pointer; text-align:left; transition:border-color .2s, background .2s, color .2s; }
  .ms-stats button b{ display:block; font-family:var(--display); font-size:15px; letter-spacing:.06em; }
  .ms-stats button small{ font-size:11.5px; color:var(--text-faint); font-variant-numeric:tabular-nums; }
  .ms-stats button[aria-pressed="true"]{ background:var(--void); border-color:var(--void); color:#fff; }
  .ms-stats button[aria-pressed="true"] small{ color:oklch(100% 0 0/.52); }
  .ms-board{ display:grid; grid-template-columns:minmax(0, 1.25fr) minmax(0, 1fr); gap:18px; align-items:start; }
  .ms-card{ background:var(--surface); border:1px solid var(--border); border-radius:18px; box-shadow:var(--shadow); padding:18px; min-width:0; }
  .ms-lad{ display:flex; flex-direction:column; gap:4px; }
  .ms-lr{ display:grid; grid-template-columns:22px minmax(0, 190px) minmax(0, 1fr) 64px; align-items:center; gap:10px; padding:7px 4px; border-radius:10px; color:inherit; transition:background .2s; }
  .ms-lr:hover{ background:var(--surface-alt); text-decoration:none; }
  .ms-lr .rk{ font-size:12px; color:var(--text-faint); font-variant-numeric:tabular-nums; text-align:right; }
  .ms-bar{ position:relative; height:12px; border-radius:6px; background:var(--hair); overflow:hidden; }
  .ms-bar .f{ position:absolute; inset:0 auto 0 0; border-radius:6px; background:linear-gradient(90deg, oklch(66% 0.12 255), var(--accent)); transition:width .9s cubic-bezier(.2,.7,.2,1); }
  .ms-bar .g{ position:absolute; top:0; bottom:0; background:repeating-linear-gradient(-45deg, oklch(80% 0.15 86/.38) 0 3px, transparent 3px 6px); opacity:0; transition:opacity .4s .7s; }
  .ms-bar .tk{ position:absolute; top:0; bottom:0; width:2px; margin-left:-1px; background:var(--surface); opacity:.85; }
  .ms-lr .v{ text-align:right; font-variant-numeric:tabular-nums; line-height:1.15; }
  .ms-lr .v b{ font-family:var(--display); font-size:19px; }
  .ms-lr .v small{ display:block; font-size:11px; color:var(--text-faint); }
  .ms-lr.dim .ms-who b{ color:var(--text-muted); }
  .ms-lr.dim .ms-bar .f{ background:oklch(70% 0.02 255); }
  .ms-scale{ display:grid; grid-template-columns:22px minmax(0, 190px) minmax(0, 1fr) 64px; gap:10px; padding:0 4px 4px; }
  .ms-scale div{ grid-column:3; position:relative; height:14px; font-size:10.5px; color:var(--text-faint); font-variant-numeric:tabular-nums; }
  .ms-scale span{ position:absolute; transform:translateX(-50%); }
  .ms-feed{ max-height:560px; overflow-y:auto; margin:0 -6px; padding:0 6px; scrollbar-width:thin; }
  .ms-fy{ position:sticky; top:0; z-index:1; background:var(--surface); padding:8px 0 6px; font-family:var(--display); font-weight:700; font-size:13px; letter-spacing:.1em; color:var(--text-faint); border-bottom:1px solid var(--hair); }
  .ms-fi{ display:grid; grid-template-columns:48px minmax(0, 1fr) auto; gap:10px; align-items:center; padding:10px 2px; border-bottom:1px solid var(--hair); border-radius:8px; color:inherit; transition:background .2s; }
  .ms-fi:hover{ background:var(--surface-alt); text-decoration:none; }
  .ms-fi .d{ font-size:12px; color:var(--text-faint); line-height:1.2; font-variant-numeric:tabular-nums; }
  .ms-fi .d b{ display:block; font-family:var(--display); font-size:18px; color:var(--text); }
  .ms-fi .ms-vs{ flex:none; }
  .ms-chip{ display:inline-flex; align-items:baseline; gap:4px; padding:5px 10px; border-radius:100px; background:var(--accent-2-soft); color:var(--accent-2-ink); font-family:var(--display); font-weight:700; font-size:15px; white-space:nowrap; font-variant-numeric:tabular-nums; }
  .ms-chip small{ font-size:11px; letter-spacing:.06em; }
  .ms-chip.big{ background:oklch(80% 0.13 82/.24); color:oklch(46% 0.1 82); }
  :root[data-theme="dark"] .ms-chip.big{ color:oklch(82% 0.13 82); }
  @media (prefers-color-scheme: dark){ :root:not([data-theme="light"]) .ms-chip.big{ color:oklch(82% 0.13 82); } }

  /* single game */
  .ms-feats{ display:grid; grid-template-columns:repeat(7, minmax(0, 1fr)); gap:10px; }
  .ms-ft{ font:inherit; color:var(--text); text-align:left; cursor:pointer; background:var(--surface); border:1px solid var(--border); border-radius:16px; padding:14px 14px 12px; display:flex; flex-direction:column; gap:6px; min-height:128px;
    transition:transform .25s cubic-bezier(.2,.7,.2,1), border-color .2s, box-shadow .2s; }
  .ms-ft:hover{ transform:translateY(-2px); box-shadow:var(--shadow-2); }
  .ms-ft[aria-pressed="true"]{ border-color:var(--text); box-shadow:inset 0 0 0 1px var(--text); }
  .ms-ft .n{ font-family:var(--display); font-weight:700; font-size:40px; line-height:.95; font-variant-numeric:tabular-nums; }
  .ms-ft .n.zero{ color:var(--text-faint); }
  .ms-ft .nm{ font-size:13px; font-weight:600; line-height:1.25; }
  .ms-ft .lt{ margin-top:auto; font-size:11.5px; color:var(--text-faint); line-height:1.35; display:flex; flex-direction:column; min-width:0; }
  .ms-ft .lt b{ color:var(--text-muted); font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .ms-flist{ display:grid; grid-template-rows:0fr; transition:grid-template-rows .4s cubic-bezier(.2,.7,.2,1); }
  .ms-flist.open{ grid-template-rows:1fr; }
  .ms-flist > div{ min-height:0; overflow:hidden; }
  .ms-fl{ margin-top:12px; max-height:460px; overflow-y:auto; scrollbar-width:thin; }
  .ms-tbl{ width:100%; border-collapse:collapse; font-size:13.5px; }
  .ms-tbl th{ position:sticky; top:0; z-index:1; background:var(--surface); text-align:right; font-size:11px; letter-spacing:.08em; color:var(--text-faint); font-weight:600; padding:0 8px 8px; border-bottom:1px solid var(--border); }
  .ms-tbl th.l, .ms-tbl td.l{ text-align:left; }
  .ms-tbl td{ text-align:right; padding:9px 8px; border-bottom:1px solid var(--hair); font-variant-numeric:tabular-nums; white-space:nowrap; }
  .ms-tbl td a{ color:inherit; }
  .ms-tbl td.hit{ font-weight:800; color:var(--text); }
  .ms-tbl td.mute{ color:var(--text-faint); }
  .ms-tbl tbody tr{ transition:background .2s; }
  .ms-tbl tbody tr:hover{ background:var(--surface-alt); }
  .ms-tbl .res{ font-size:12px; color:var(--text-faint); }
  .ms-tbl .res b{ color:var(--text-muted); font-weight:600; }
  .ms-best{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; padding:14px; border:1px dashed var(--border); border-radius:14px; font-size:14px; color:inherit; }
  .ms-best:hover{ text-decoration:none; background:var(--surface-alt); }
  .ms-best .lbl{ font-size:11px; font-weight:700; letter-spacing:.12em; color:var(--text-faint); text-transform:uppercase; }
  .ms-best .ln{ font-family:var(--display); font-size:22px; font-weight:700; font-variant-numeric:tabular-nums; }
  .ms-best .ln i{ font-style:normal; color:var(--text-faint); font-size:13px; margin:0 6px 0 2px; letter-spacing:.06em; }
  .ms-best .ms-vs{ color:var(--text-faint); font-size:13px; }

  /* motion */
  .ms-in{ animation:ms-rise .55s cubic-bezier(.2,.7,.2,1) both; animation-delay:calc(var(--i, 0) * 45ms); }
  @keyframes ms-rise{ from{ opacity:0; transform:translateY(10px); } to{ opacity:1; transform:none; } }
  @media (prefers-reduced-motion: reduce){ .ms-page *, .ms-page *::before{ animation:none !important; transition:none !important; } }

  @media (max-width:1100px){ .ms-feats{ grid-template-columns:repeat(4, minmax(0, 1fr)); } }
  @media (max-width:900px){ .ms-board{ grid-template-columns:1fr; } .ms-feed{ max-height:440px; } }
  @media (max-width:560px){
    .ms-lr, .ms-scale{ grid-template-columns:minmax(0, 1fr) 58px; gap:4px 10px; }
    .ms-lr .rk{ display:none; }
    .ms-lr .ms-who, .ms-lr .ms-bar, .ms-scale div{ grid-column:1; }
    .ms-lr .v{ grid-column:2; grid-row:1 / span 2; }
    .ms-feats{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
    .ms-ft{ min-height:112px; } .ms-ft .n{ font-size:34px; }
    .ms-ft:last-child:nth-child(odd){ grid-column:span 2; }
    .ms-nc{ width:220px; }
    .ms-card{ padding:14px; }
    .ms-fi .ms-vs, .ms-tbl td.l .ms-who small{ display:none; }
  }

  /* Records & Honours (#/records, app4zb_records.js) */
  .rh-page{ display:flex; flex-direction:column; gap:22px; --rh-gold: oklch(78% 0.13 82); --rh-gold-ink: oklch(48% 0.1 75); --rh-gold-soft: oklch(80% 0.13 82 / .2); --rh-ember: oklch(80% 0.15 86); }
  :root[data-theme="dark"] .rh-page{ --rh-gold-ink: oklch(84% 0.12 82); --rh-gold-soft: oklch(80% 0.13 82 / .09); }
  @media (prefers-color-scheme: dark){ :root:not([data-theme="light"]) .rh-page{ --rh-gold-ink: oklch(84% 0.12 82); --rh-gold-soft: oklch(80% 0.13 82 / .09); } }
  .rh-head{ display:flex; align-items:center; gap:12px 18px; flex-wrap:wrap; }
  .rh-head h1{ margin:0 auto 0 0; font-family:var(--display); font-weight:700; font-size:clamp(30px, 3.4vw, 40px); letter-spacing:-.01em; line-height:1; }
  .rh-seg{ display:inline-flex; gap:2px; background:var(--surface-alt); border:1px solid var(--border); border-radius:100px; padding:3px; }
  .rh-seg button{ border:0; background:none; cursor:pointer; border-radius:100px; padding:7px 14px; font:inherit; font-size:13px; font-weight:600; color:var(--text-muted); white-space:nowrap; transition:background .2s, color .2s; }
  .rh-seg button[aria-pressed="true"]{ background:var(--text); color:var(--bg); }
  .rh-cats{ display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:10px; }
  .rh-cat{ position:relative; overflow:hidden; text-align:left; cursor:pointer; font:inherit; color:var(--text); border:1px solid var(--border); background:var(--surface); border-radius:16px; padding:14px 16px;
    transition:transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s, border-color .25s, background .25s, color .25s; }
  .rh-cat:hover:not(:disabled){ transform:translateY(-2px); box-shadow:var(--shadow-2); }
  .rh-cat:disabled{ cursor:default; opacity:.45; }
  .rh-cat b{ display:block; font-family:var(--display); font-size:22px; letter-spacing:.01em; }
  .rh-cat small{ font-size:12px; color:var(--text-faint); font-variant-numeric:tabular-nums; }
  .rh-cat[aria-pressed="true"]{ background:var(--void); border-color:var(--void); color:#fff; }
  .rh-cat[aria-pressed="true"] small{ color:oklch(100% 0 0/.55); }
  .rh-cat::after{ content:""; position:absolute; left:16px; right:16px; bottom:0; height:3px; border-radius:3px 3px 0 0; background:var(--rh-ember); transform:scaleX(0); transform-origin:left; transition:transform .35s cubic-bezier(.2,.7,.2,1); }
  .rh-cat[aria-pressed="true"]::after{ transform:scaleX(1); }
  .rh-sub{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
  .rh-h{ display:flex; align-items:center; gap:10px; margin:0 0 14px; flex-wrap:wrap; }
  .rh-h h2{ margin:0 auto 0 0; font-size:12.5px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:var(--text-muted); }
  .rh-h small{ font-size:12.5px; color:var(--text-faint); }
  .rh-card{ background:var(--surface); border:1px solid var(--border); border-radius:18px; box-shadow:var(--shadow); padding:18px; min-width:0; }
  .rh-none{ padding:22px 0; text-align:center; color:var(--text-faint); font-size:14px; }
  .rh-qual{ margin-top:10px; font-size:11.5px; color:var(--text-faint); }
  .rh-who{ display:flex; align-items:center; gap:9px; min-width:0; color:inherit; }
  .rh-who:hover{ text-decoration:none; } .rh-who:hover b{ text-decoration:underline; }
  .rh-who > span{ min-width:0; }
  .rh-who b{ display:block; font-size:14px; font-weight:600; line-height:1.2; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .rh-who small{ display:flex; align-items:center; gap:5px; font-size:12px; color:var(--text-faint); white-space:nowrap; overflow:hidden; }
  .rh-who small span{ overflow:hidden; text-overflow:ellipsis; }
  .rh-who small .crest-logo, .rh-who small .crest-flag, .rh-who small .swatch{ flex:none; }
  .rh-who .avatar{ width:32px; height:32px; }
  .rh-who.lg .avatar{ width:44px; height:44px; font-size:13px; }

  /* headline band */
  .rh-hero{ position:relative; isolation:isolate; overflow:hidden; border-radius:22px; color:#fff; padding:24px clamp(16px, 2.4vw, 28px);
    background:radial-gradient(60% 120% at 0% 0%, oklch(26% 0.05 70 / .9) 0%, transparent 60%), radial-gradient(70% 120% at 100% 100%, oklch(21% 0.055 262) 0%, transparent 66%), var(--void); }
  .rh-hero-h{ display:flex; align-items:baseline; gap:12px; margin-bottom:16px; flex-wrap:wrap; }
  .rh-hero-h h2{ margin:0; font-size:12.5px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:oklch(100% 0 0/.74); display:flex; align-items:center; gap:8px; }
  .rh-hero-h h2 i{ width:8px; height:8px; border-radius:2px; background:var(--rh-gold); }
  .rh-hero-h small{ font-size:12.5px; color:oklch(100% 0 0/.5); font-variant-numeric:tabular-nums; }
  .rh-heads{ display:grid; grid-template-columns:repeat(5, minmax(0, 1fr)); gap:12px; }
  .rh-heads.n4{ grid-template-columns:repeat(4, minmax(0, 1fr)); } .rh-heads.n3{ grid-template-columns:repeat(3, minmax(0, 1fr)); }
  .rh-hc{ background:oklch(100% 0 0/.05); border:1px solid oklch(100% 0 0/.1); border-radius:16px; padding:14px; display:flex; flex-direction:column; gap:10px; min-width:0; transition:transform .25s cubic-bezier(.2,.7,.2,1), background .25s; }
  .rh-hc:hover{ transform:translateY(-3px); background:oklch(100% 0 0/.08); }
  .rh-hc .k{ font-size:11px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:oklch(100% 0 0/.55); }
  .rh-hc .v{ font-family:var(--display); font-weight:700; font-size:38px; line-height:.95; font-variant-numeric:tabular-nums; }
  .rh-hc .v span{ font-size:15px; color:var(--rh-ember); margin-left:3px; letter-spacing:.04em; }
  .rh-hc .v em{ font-style:normal; font-size:15px; color:oklch(100% 0 0/.6); margin:0 4px 0 2px; }
  .rh-hc .rh-who{ color:#fff; } .rh-hc .rh-who small{ color:oklch(100% 0 0/.5); }
  .rh-hc .avatar{ background:oklch(100% 0 0/.12); color:#fff; }

  /* roll of honour */
  .rh-honour{ display:grid; grid-template-columns:minmax(0, 1fr) 300px; gap:18px; align-items:start; }
  .rh-roll{ overflow-x:auto; margin:0 -4px; padding:0 4px; scrollbar-width:thin; }
  .rh-roll table{ width:100%; border-collapse:separate; border-spacing:0; font-size:13px; }
  .rh-roll th{ text-align:left; font-size:11px; letter-spacing:.08em; text-transform:uppercase; color:var(--text-faint); font-weight:600; padding:0 10px 10px; border-bottom:1px solid var(--border); white-space:nowrap; background:var(--surface); }
  .rh-roll th.g{ color:var(--rh-gold-ink); }
  .rh-roll td{ padding:10px; border-bottom:1px solid var(--hair); vertical-align:middle; min-width:150px; }
  .rh-roll td.yr{ min-width:0; font-family:var(--display); font-weight:700; font-size:20px; padding-left:4px; position:sticky; left:0; background:var(--surface); z-index:1; }
  .rh-roll td.yr a{ color:inherit; }
  .rh-roll td.g{ background:var(--rh-gold-soft); }
  .rh-roll td .rh-who + .rh-who{ margin-top:6px; }
  .rh-roll tr:last-child td{ border-bottom:0; }
  .rh-roll tbody tr:hover td{ background:var(--surface-alt); }
  .rh-roll .rh-who .avatar{ width:28px; height:28px; font-size:10px; }
  .rh-roll .rh-who b{ font-size:13px; }
  .rh-roll .dash{ color:var(--text-faint); }
  .rh-champ{ display:flex; align-items:center; gap:8px; font-weight:600; font-size:13px; white-space:nowrap; }
  .rh-deco{ display:flex; flex-direction:column; gap:2px; }
  .rh-dr{ display:grid; grid-template-columns:22px minmax(0, 1fr) auto; gap:10px; align-items:center; padding:8px 4px; border-radius:10px; transition:background .2s; }
  .rh-dr:hover{ background:var(--surface-alt); }
  .rh-dr .rk{ font-size:12px; color:var(--text-faint); text-align:right; font-variant-numeric:tabular-nums; }
  .rh-dr .n{ text-align:right; font-family:var(--display); font-weight:700; font-size:20px; font-variant-numeric:tabular-nums; }
  .rh-dr .n small{ display:block; font-family:var(--body); font-weight:500; font-size:11px; color:var(--text-faint); }
  .rh-pips{ display:flex; gap:3px; margin-top:4px; flex-wrap:wrap; }
  .rh-pips i{ height:6px; width:6px; border-radius:2px; background:var(--accent); }
  .rh-pips i.g{ background:var(--rh-gold); }

  /* records */
  .rh-rgrid{ display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:14px; }
  .rh-rc{ display:flex; flex-direction:column; gap:12px; }
  .rh-rc .lb{ display:flex; justify-content:space-between; align-items:baseline; font-size:11px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--text-muted); }
  .rh-rc .lb span{ letter-spacing:.04em; text-transform:none; font-weight:500; color:var(--text-faint); }
  .rh-top1{ display:grid; grid-template-columns:minmax(0, 1fr) auto; gap:4px 12px; align-items:center; padding-bottom:12px; border-bottom:1px solid var(--hair); }
  .rh-top1 .big{ font-family:var(--display); font-weight:700; font-size:44px; line-height:.9; font-variant-numeric:tabular-nums; grid-row:1 / span 2; grid-column:2; text-align:right; }
  .rh-top1 .ctx{ font-size:12px; color:var(--text-faint); grid-column:1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .rh-top1 .ctx a{ color:inherit; } .rh-top1 .ctx b{ color:var(--text-muted); font-weight:600; }
  .rh-rr{ display:grid; grid-template-columns:16px minmax(0, 1fr) 64px 34px; gap:8px; align-items:center; font-size:13px; padding:3px 0; color:inherit; }
  .rh-rr:hover{ text-decoration:none; } .rh-rr:hover .nm{ text-decoration:underline; }
  .rh-rr .rk{ color:var(--text-faint); font-size:11.5px; font-variant-numeric:tabular-nums; }
  .rh-rr .nm{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .rh-rr .nm small{ color:var(--text-faint); margin-left:6px; font-size:11.5px; }
  .rh-rr .bar{ height:6px; border-radius:3px; background:var(--hair); overflow:hidden; }
  .rh-rr .bar i{ display:block; height:100%; border-radius:3px; background:linear-gradient(90deg, oklch(66% 0.12 255), var(--accent)); transition:width .9s cubic-bezier(.2,.7,.2,1); }
  .rh-rr .v{ text-align:right; font-weight:700; font-variant-numeric:tabular-nums; }

  /* ages, team records, 180 Club */
  .rh-lower{ display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:14px; align-items:start; }
  .rh-lower.noold{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
  .rh-c180{ grid-column:1 / -1; }
  .rh-ag{ display:grid; grid-template-columns:minmax(0, 1fr) auto; gap:10px; align-items:center; padding:9px 2px; border-bottom:1px solid var(--hair); }
  .rh-ag:last-child{ border-bottom:0; }
  .rh-ag .age{ text-align:right; font-family:var(--display); font-weight:700; font-size:22px; font-variant-numeric:tabular-nums; line-height:1; color:var(--text); }
  .rh-ag .age:hover{ text-decoration:none; }
  .rh-ag .age i{ font-style:normal; font-size:12px; color:var(--text-faint); margin:0 4px 0 1px; letter-spacing:.04em; }
  .rh-ag .age small{ display:block; font-family:var(--body); font-size:11px; font-weight:500; color:var(--text-faint); margin-top:3px; }
  .rh-ag.first .age{ color:var(--accent); font-size:26px; }
  .rh-tm{ display:flex; flex-direction:column; gap:14px; }
  .rh-tm .rh-h{ margin:0; }
  .rh-tm h3{ margin:0 0 4px; font-size:11px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--text-muted); }
  .rh-tg{ display:grid; grid-template-columns:minmax(0, 1fr) 44px; gap:2px 10px; align-items:center; padding:8px 0; border-bottom:1px solid var(--hair); font-size:13px; color:var(--text); }
  .rh-tg:hover{ text-decoration:none; background:var(--surface-alt); }
  .rh-tm div > .rh-tg:last-child{ border-bottom:0; }
  .rh-tg .ln{ display:flex; align-items:center; gap:7px; min-width:0; }
  .rh-tg .ln > span{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .rh-tg .ln.w{ font-weight:700; }
  .rh-tg .s{ font-family:var(--display); font-weight:700; font-size:17px; text-align:right; font-variant-numeric:tabular-nums; }
  .rh-tg .s.l{ color:var(--text-faint); font-weight:600; }
  .rh-tg .d{ grid-column:1 / -1; font-size:11.5px; color:var(--text-faint); }
  .rh-club{ display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:10px; }
  .rh-cr{ display:grid; grid-template-columns:minmax(0, 1fr) auto; gap:8px 10px; padding:10px; border-radius:12px; border:1px solid var(--hair); }
  .rh-cr.in{ border-color:var(--rh-gold); background:var(--rh-gold-soft); }
  .rh-cr .sum{ font-family:var(--display); font-weight:700; font-size:22px; text-align:right; font-variant-numeric:tabular-nums; line-height:1; }
  .rh-cr .sum small{ display:block; font-family:var(--body); font-size:11px; color:var(--text-faint); font-weight:500; margin-top:3px; }
  .rh-180{ display:inline-flex; align-items:center; padding:2px 7px; border-radius:100px; background:var(--rh-gold); color:oklch(25% 0.05 75); font-family:var(--display); font-weight:700; font-size:11.5px; letter-spacing:.06em; }
  .rh-cr .tri{ grid-column:1 / -1; display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:10px; }
  .rh-cr .tb .t{ display:flex; justify-content:space-between; font-size:11px; color:var(--text-faint); margin-bottom:4px; font-variant-numeric:tabular-nums; }
  .rh-cr .tb .t b{ color:var(--text); font-weight:700; } .rh-cr .tb .t b.ok{ color:var(--rh-gold-ink); }
  .rh-cr .tb .bar{ position:relative; height:6px; border-radius:3px; background:var(--hair); }
  .rh-cr .tb .bar i{ position:absolute; left:0; top:0; bottom:0; border-radius:3px; background:var(--text-faint); transition:width .9s cubic-bezier(.2,.7,.2,1); }
  .rh-cr .tb .bar i.ok{ background:var(--rh-gold); }
  .rh-cr .tb .bar u{ position:absolute; top:-3px; bottom:-3px; width:2px; margin-left:-1px; background:var(--text); opacity:.55; border-radius:1px; }

  /* motion */
  .rh-in{ animation:rh-rise .55s cubic-bezier(.2,.7,.2,1) both; animation-delay:calc(var(--i, 0) * 45ms); }
  @keyframes rh-rise{ from{ opacity:0; transform:translateY(10px); } to{ opacity:1; transform:none; } }
  @media (prefers-reduced-motion: reduce){ .rh-page *, .rh-page *::after{ animation:none !important; transition:none !important; } }

  @media (max-width:1100px){ .rh-heads, .rh-heads.n4{ grid-template-columns:repeat(3, minmax(0, 1fr)); } .rh-honour{ grid-template-columns:1fr; }
    .rh-lower{ grid-template-columns:1fr 1fr; } .rh-lower:not(.noold) .rh-tm{ grid-column:1 / -1; } .rh-club{ grid-template-columns:1fr 1fr; } }
  @media (max-width:900px){ .rh-rgrid{ grid-template-columns:1fr 1fr; } .rh-cats{ grid-template-columns:repeat(2, minmax(0, 1fr)); } }
  @media (max-width:600px){
    .rh-heads, .rh-heads.n4, .rh-heads.n3{ grid-template-columns:1fr 1fr; } .rh-heads:not(.n4) > :first-child{ grid-column:1 / -1; }
    .rh-rgrid, .rh-lower, .rh-lower.noold, .rh-club{ grid-template-columns:1fr; } .rh-lower:not(.noold) .rh-tm{ grid-column:auto; }
    .rh-card{ padding:14px; } .rh-roll td{ min-width:132px; } .rh-cat b{ font-size:19px; }
    .rh-hc .v{ font-size:30px; } .rh-hc .v span, .rh-hc .v em{ font-size:12px; }
  }

  /* the search-and-filter bar (filterPanel, app3_comp.js): Players, Competitions, Teams */
  .fb{ margin:0 0 20px; }
  .fb-bar{ display:flex; gap:8px; align-items:center; background:var(--surface); border:1px solid var(--border); border-radius:18px; padding:6px; box-shadow:var(--shadow-2); }
  .fb-search{ position:relative; flex:1 1 auto; min-width:0; }
  .fb-search svg{ position:absolute; left:16px; top:50%; transform:translateY(-50%); width:17px; height:17px; stroke:var(--text-faint); fill:none; stroke-width:2; pointer-events:none; }
  .fb-search input{ width:100%; border:0; background:none; font:inherit; font-size:15px; color:var(--text); padding:12px 16px 12px 44px; border-radius:13px; }
  .fb-search input:focus{ outline:none; background:var(--surface-alt); }
  .fb-search:focus-within{ outline:2px solid var(--accent); outline-offset:2px; }
  .fb-search input::-webkit-search-cancel-button{ cursor:pointer; }
  .fb-btn{ flex:none; display:inline-flex; align-items:center; gap:8px; border:0; cursor:pointer; background:var(--surface-alt); color:var(--text); border-radius:13px; padding:10px 16px; font:inherit; font-weight:600; font-size:14px; transition:background .2s, color .2s; }
  .fb-btn svg{ width:16px; height:16px; stroke:currentColor; fill:none; stroke-width:2; }
  .fb-btn[aria-expanded="true"], .fb-btn.has{ background:var(--text); color:var(--bg); }
  .fb-btn em{ font-style:normal; min-width:20px; height:20px; border-radius:10px; background:oklch(80% 0.15 86); color:#1c1208; font-size:12px; font-weight:700; display:grid; place-items:center; padding:0 6px; }
  .fb-btn:focus-visible, .fb-chip:focus-visible, .fb-tag:focus-visible, .fb-clear:focus-visible{ outline:2px solid var(--accent-2); outline-offset:2px; }
  .fb-panel{ display:grid; grid-template-rows:0fr; transition:grid-template-rows .35s cubic-bezier(.2,.7,.2,1); }
  .fb-panel.open{ grid-template-rows:1fr; }
  .fb-panel > div{ min-height:0; overflow:hidden; }
  .fb-in{ margin-top:8px; background:var(--surface); border:1px solid var(--border); border-radius:18px; padding:16px; display:grid; gap:14px; }
  .fb-grp > span{ display:block; font-size:11px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--text-faint); margin-bottom:8px; }
  .fb-chips{ display:flex; gap:6px; flex-wrap:wrap; }
  .fb-chip{ border:1px solid var(--border); background:var(--surface); border-radius:100px; padding:6px 13px; font:inherit; font-size:13px; font-weight:600; color:var(--text-muted); cursor:pointer; white-space:nowrap; transition:background .2s, color .2s, border-color .2s; }
  .fb-chip:hover{ border-color:var(--text-muted); color:var(--text); }
  .fb-chip[aria-pressed="true"]{ background:var(--text); border-color:var(--text); color:var(--bg); }
  .fb-clear{ justify-self:start; border:0; background:none; cursor:pointer; font:inherit; font-size:13px; font-weight:600; color:var(--accent); padding:4px 0; }
  .fb-tags{ display:flex; gap:6px; flex-wrap:wrap; margin-top:10px; }
  .fb-tag{ display:inline-flex; align-items:center; gap:6px; border:0; cursor:pointer; border-radius:100px; padding:5px 6px 5px 12px; font:inherit; font-size:12.5px; font-weight:600; background:var(--accent-2-soft); color:var(--accent-2-ink); animation:fb-pop .25s cubic-bezier(.2,.7,.2,1); }
  .fb-tag i{ font-style:normal; width:18px; height:18px; border-radius:50%; display:grid; place-items:center; background:oklch(80% 0.15 86 / .25); font-size:12px; }
  @keyframes fb-pop{ from{ transform:scale(.85); opacity:0; } to{ transform:none; opacity:1; } }
  @media (prefers-reduced-motion: reduce){ .fb-panel, .fb-tag{ transition:none; animation:none; } }
  @media (max-width:560px){ .fb-btn span{ display:none; } .fb-in{ padding:14px; } }

/* ---------- Post Game Report (app4zc_postgame.js): A4 paper, its own light palette in either theme,
   hex colours only (the PDF is drawn by html2canvas, which cannot read oklch) ---------- */
.pgr-bar{ display:flex; align-items:center; justify-content:space-between; gap:12px 18px; flex-wrap:wrap; margin:0 0 14px; padding:14px 18px; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow); }
.pgr-bar > div{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.pgr-bar b{ font-family:var(--display); font-weight:600; font-size:16px; }
.pgr-bar span{ font-size:12.5px; color:var(--text-muted); }
.pgr-dl{ display:inline-flex; align-items:center; gap:8px; padding:9px 16px; border:1px solid var(--on-bg); border-radius:var(--radius); background:var(--on-bg); color:var(--on-fg); font:600 13px/1 var(--body); cursor:pointer; transition:transform .12s, opacity .12s; }
.pgr-dl:hover{ transform:translateY(-1px); }
.pgr-dl:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; }
.pgr-dl[disabled]{ opacity:.7; cursor:progress; transform:none; }
.pgr-dl span{ color:inherit; font-size:13px; }
.pgr-scroll{ container-type:inline-size; padding:18px 0 4px; }
.pgr{ line-height:1.4; --pg-ink:#0b1016; --pg-muted:#4e5661; --pg-faint:#656b74; --pg-line:#d6dbe1; --pg-hair:#e8ebef; --pg-tint:#f4f7fa; --pg-void:#04060d; --pg-ember:#e8b532;
  --pg-good:#1d7d3e; --pg-good-soft:#dcf7e1; --pg-bad:#b03433; --pg-display:var(--display); --pg-body:var(--body);
  color:var(--pg-ink); font-family:var(--pg-body); -webkit-font-smoothing:antialiased; color-scheme:light; text-align:left; }
.pgr *{ box-sizing:border-box; }
.pgr th, .pgr th:hover{ cursor:default; user-select:auto; color:var(--pg-faint); }
.pgr tbody tr:hover td{ background:transparent; }
.pgr tbody tr.pg-tot:hover td{ background:var(--pg-tint); }
.pgr ul, .pgr p, .pgr h2, .pgr h3, .pgr h4{ color:inherit; }
.pgr .pg-crest{ width:58px; height:58px; object-fit:contain; flex:none; }
.pgr .pg-crest-i{ display:grid; place-items:center; border-radius:10px; background:var(--pg-void); color:#fff; font:700 15px/1 var(--pg-display); letter-spacing:.04em; }
.pgr-export{ position:fixed; left:-12000px; top:0; width:210mm; z-index:-1; pointer-events:none; }
.pgr-export .pg-sheet{ margin:0 0 20px; box-shadow:none; }
.pgr .pg-sheet{width:210mm; max-width:100%; min-height:297mm; margin:0 auto 24px; background:#fff; box-shadow:0 10px 40px rgba(10,16,26,.18); display:flex; flex-direction:column; position:relative;}
.pgr .pg-top{background:var(--pg-void); color:#fff; padding:13px 18mm; display:flex; align-items:center; gap:14px;}
.pgr .pg-top b{font-family:var(--pg-display); font-size:15px; letter-spacing:.16em;}
.pgr .pg-top i{width:8px; height:8px; border-radius:2px; background:var(--pg-ember); flex:none;}
.pgr .pg-top span{margin-left:auto; font-size:12px; color:rgba(255,255,255,.75); font-variant-numeric:tabular-nums; white-space:nowrap;}
.pgr .pg-top::after{content:""; position:absolute; left:0; right:0; top:44px; height:3px; background:linear-gradient(90deg, var(--pg-hc), var(--pg-hc) 50%, var(--pg-ac) 50%, var(--pg-ac));}
.pgr .pg-body{flex:1; padding:9mm 18mm 6mm; display:flex; flex-direction:column; gap:6mm;}
.pgr .pg-foot{display:flex; justify-content:space-between; padding:0 18mm 7mm; font-size:9.5px; color:var(--pg-faint); letter-spacing:.02em;}
.pgr h2.pg-sec{margin:0 0 3mm; font-family:var(--pg-display); font-size:19px; letter-spacing:.01em; display:flex; align-items:center; gap:8px;}
.pgr h2.pg-sec::before{content:""; width:4px; height:18px; border-radius:2px; background:var(--pg-ember);}
.pgr h3{margin:0 0 2.5mm; font-size:10.5px; letter-spacing:.14em; text-transform:uppercase; color:var(--pg-muted); font-weight:700;}
.pgr .pg-num{font-variant-numeric:tabular-nums;}
.pgr .pg-hc{color:var(--pg-hcink);}
.pgr .pg-ac{color:var(--pg-acink);}
.pgr .pg-dot{display:inline-block; width:8px; height:8px; border-radius:2px; margin-right:6px; vertical-align:middle;}
.pgr .pg-hero{border:1px solid var(--pg-line); border-radius:14px; padding:6mm 7mm 5mm; background:linear-gradient(115deg, rgba(220,168,28,.13), rgba(255,255,255,0) 38%, rgba(255,255,255,0) 62%, rgba(44,93,189,.11)), #fff;}
.pgr .pg-match{display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:6mm;}
.pgr .pg-tm{display:flex; align-items:center; gap:4mm;}
.pgr .pg-tm.pg-r{justify-content:flex-end; text-align:right;}
.pgr .pg-tm img, .pgr .pg-tm .pg-crest{width:58px; height:58px; object-fit:contain; border-radius:6px;}
.pgr .pg-tm b{display:block; font-family:var(--pg-display); font-size:24px; line-height:1.05;}
.pgr .pg-tm small{font-size:10.5px; letter-spacing:.12em; text-transform:uppercase; color:var(--pg-faint); font-weight:700;}
.pgr .pg-tm small.pg-w{color:var(--pg-good);}
.pgr .pg-sc{font-family:var(--pg-display); font-weight:700; font-size:50px; line-height:1; letter-spacing:-.01em; font-variant-numeric:tabular-nums; white-space:nowrap;}
.pgr .pg-sc em{font-style:normal; color:var(--pg-faint); margin:0 6px; font-weight:500;}
.pgr .pg-sc .pg-l{color:var(--pg-faint);}
.pgr .pg-meta{margin-top:4mm; padding-top:3mm; border-top:1px solid var(--pg-hair); display:flex; justify-content:center; gap:6px 16px; flex-wrap:wrap; font-size:11px; color:var(--pg-muted);}
.pgr .pg-meta b{color:var(--pg-ink);}
.pgr .pg-stage{display:inline-block; padding:2px 8px; border-radius:100px; background:var(--pg-void); color:#fff; font-size:10px; font-weight:700; letter-spacing:.12em; text-transform:uppercase;}
.pgr .pg-headline{font-family:var(--pg-display); font-size:21px; line-height:1.25; margin:0; text-wrap:balance;}
.pgr .pg-headline span{color:var(--pg-muted);}
.pgr table{width:100%; border-collapse:collapse; font-size:11px; line-height:1.3;}
.pgr th{text-align:right; font-size:9.5px; letter-spacing:.08em; text-transform:uppercase; color:var(--pg-faint); font-weight:700; padding:0 6px 5px; border-bottom:1.5px solid var(--pg-ink); white-space:nowrap;}
.pgr td{text-align:right; padding:4.5px 6px; font-size:inherit; line-height:inherit; border-bottom:1px solid var(--pg-hair); font-variant-numeric:tabular-nums; white-space:nowrap;}
.pgr th.pg-l, .pgr td.pg-l{text-align:left;}
.pgr td.pg-b{font-weight:700;}
.pgr tr.pg-tot td{font-weight:700; border-top:1px solid var(--pg-line); border-bottom:0; background:var(--pg-tint);}
.pgr td.pg-win{color:var(--pg-good); font-weight:700;}
.pgr .pg-q td:first-child{font-weight:600;}
.pgr .pg-two{display:grid; grid-template-columns:1fr 1fr; gap:7mm; align-items:start;}
.pgr .pg-two.pg-w3{grid-template-columns:1.15fr 1fr;}
.pgr .pg-mir{display:flex; flex-direction:column; gap:2.4mm;}
.pgr .pg-mr{display:grid; grid-template-columns:44px 1fr 70px 1fr 44px; align-items:center; gap:6px; font-size:11px;}
.pgr .pg-mr .pg-k{text-align:center; font-size:9.5px; font-weight:700; letter-spacing:.06em; color:var(--pg-muted); text-transform:uppercase;}
.pgr .pg-mr .pg-v{font-variant-numeric:tabular-nums; font-weight:600;}
.pgr .pg-mr .pg-v.pg-l{text-align:right;}
.pgr .pg-mr .pg-v.pg-on{font-weight:800; color:var(--pg-ink);}
.pgr .pg-mr .pg-v:not(.pg-on){color:var(--pg-faint);}
.pgr .pg-mr .pg-bar{height:7px; border-radius:4px; background:var(--pg-hair); position:relative; overflow:hidden;}
.pgr .pg-mr .pg-bar i{position:absolute; top:0; bottom:0; border-radius:4px;}
.pgr .pg-mr .pg-bar.pg-l i{right:0; background:var(--pg-hc);}
.pgr .pg-mr .pg-bar.pg-r i{left:0; background:var(--pg-ac);}
.pgr .pg-mr .pg-bar i.pg-off{opacity:.35;}
.pgr .pg-ins{display:grid; grid-template-columns:1.35fr 1fr; gap:5mm;}
.pgr .pg-box{border:1px solid var(--pg-line); border-radius:12px; padding:4.5mm 5mm;}
.pgr .pg-box.pg-dark{background:var(--pg-void); color:#fff; border-color:var(--pg-void);}
.pgr .pg-box.pg-dark h3{color:rgba(255,255,255,.6);}
.pgr .pg-box ul{margin:0; padding:0; list-style:none; display:flex; flex-direction:column; gap:2.6mm;}
.pgr .pg-box li{font-size:11.5px; line-height:1.45; padding-left:13px; position:relative;}
.pgr .pg-box li::before{content:""; position:absolute; left:0; top:6px; width:5px; height:5px; border-radius:1px; background:var(--pg-ember);}
.pgr .pg-box li b{font-weight:700;}
.pgr .pg-sotg{display:flex; flex-direction:column; gap:2mm;}
.pgr .pg-sotg .pg-n{font-family:var(--pg-display); font-weight:700; font-size:44px; line-height:.95; font-variant-numeric:tabular-nums;}
.pgr .pg-sotg .pg-n span{color:rgba(255,255,255,.5); font-size:20px; margin:0 4px;}
.pgr .pg-sotg p{margin:0; font-size:11px; line-height:1.45; color:rgba(255,255,255,.75);}
.pgr .pg-stack{display:flex; flex-direction:column; gap:5mm;}
.pgr .pg-chart{border:1px solid var(--pg-line); border-radius:12px; padding:4mm 4mm 2mm;}
.pgr .pg-chart svg{display:block; width:100%; height:auto;}
.pgr .pg-legend{display:flex; gap:14px; font-size:10px; color:var(--pg-muted); margin:0 0 2mm 2px;}
.pgr .pg-tiles{display:grid; grid-template-columns:repeat(5, minmax(0,1fr)); gap:3mm;}
.pgr .pg-tile{border:1px solid var(--pg-line); border-radius:10px; padding:3mm;}
.pgr .pg-tile small{display:block; font-size:9px; letter-spacing:.1em; text-transform:uppercase; color:var(--pg-faint); font-weight:700;}
.pgr .pg-tile b{display:block; font-family:var(--pg-display); font-size:20px; margin-top:1mm; font-variant-numeric:tabular-nums;}
.pgr .pg-tile > span{font-size:10px; color:var(--pg-muted);}
.pgr .pg-runs td .pg-who{color:var(--pg-muted);}
.pgr .pg-courts{display:grid; grid-template-columns:1fr 1fr; gap:6mm;}
.pgr .pg-court{text-align:center;}
.pgr .pg-court h3{margin:0 0 2mm; font-size:12px; display:flex; align-items:center; justify-content:center; gap:6px; letter-spacing:0; text-transform:none; color:inherit; font-weight:700;}
.pgr .pg-court p{margin:1.5mm 0 0; font-size:10px; color:var(--pg-muted); font-variant-numeric:tabular-nums;}
.pgr .pg-court svg{width:100%; height:auto; display:block; border-radius:8px; background:#fcf6ee;}
.pgr .pg-kp{display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:3mm;}
.pgr .pg-kc{border:1px solid var(--pg-line); border-radius:10px; padding:3mm; display:grid; grid-template-columns:34px 1fr; gap:2px 9px; align-items:center;}
.pgr .pg-kc .pg-av{grid-row:1 / span 3; width:34px; height:34px; border-radius:50%; overflow:hidden; background:var(--pg-hair); display:grid; place-items:center; font-size:11px; font-weight:700; color:var(--pg-muted);}
.pgr .pg-kc .pg-av img{width:100%; height:100%; object-fit:cover;}
.pgr .pg-kc small{font-size:8.5px; letter-spacing:.1em; text-transform:uppercase; color:var(--pg-faint); font-weight:700;}
.pgr .pg-kc b{font-size:11.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.pgr .pg-kc span{font-size:10px; color:var(--pg-muted); font-variant-numeric:tabular-nums;}
.pgr .pg-boxsc td.pg-nm{max-width:46mm; overflow:hidden; text-overflow:ellipsis;}
.pgr .pg-boxsc td.pg-st::after{content:" ●"; font-size:7px; color:var(--pg-ember); vertical-align:2px;}
.pgr .pg-note{font-size:9.5px; color:var(--pg-faint); margin-top:1.5mm;}
.pgr .pg-chip{display:inline-block; min-width:30px; padding:1px 5px; border-radius:4px; font-weight:700;}
.pgr .pg-chip.pg-p{background:var(--pg-good-soft); color:var(--pg-good);}
.pgr .pg-chip.pg-n{background:#ffe5e1; color:var(--pg-bad);}
.pgr .pg-five{white-space:normal; line-height:1.35; font-size:10.5px;}

@container (max-width:780px){
  .pgr .pg-sheet{ width:100%; min-height:0; overflow:hidden; }
  .pgr .pg-body{ padding:6mm 5mm; }
  .pgr .pg-top, .pgr .pg-foot{ padding-left:5mm; padding-right:5mm; }
  .pgr .pg-top span{ display:none; }
  .pgr .pg-two, .pgr .pg-ins, .pgr .pg-courts, .pgr .pg-two.pg-w3{ grid-template-columns:minmax(0,1fr); }
  .pgr .pg-tiles{ grid-template-columns:repeat(2, minmax(0,1fr)); }
  .pgr .pg-kp{ grid-template-columns:repeat(2, minmax(0,1fr)); }
  .pgr .pg-match{ gap:3mm; }
  .pgr .pg-sc{ font-size:34px; }
  .pgr .pg-tm{ flex-direction:column; align-items:flex-start; gap:2mm; }
  .pgr .pg-tm.pg-r{ flex-direction:column-reverse; align-items:flex-end; }
  .pgr .pg-tm b{ font-size:17px; }
  .pgr .pg-tm .pg-crest, .pgr .pg-tm img{ width:40px; height:40px; }
  .pgr .pg-tm .pg-crest-f{ height:auto; }
  .pgr table{ display:block; overflow-x:auto; }
  .pgr .pg-table-x table{ display:table; }
  .pgr .pg-table-x{ overflow-x:auto; }
}
@media (prefers-reduced-motion: reduce){ .pgr-dl{ transition:none; } }
.pgr .pg-tm .pg-crest-f{ border-radius:3px; box-shadow:0 0 0 1px var(--pg-line); height:auto; aspect-ratio:auto; }
.pgr .pg-boxsc td.pg-nm span{ display:inline-block; max-width:44mm; overflow:hidden; text-overflow:ellipsis; vertical-align:bottom; }

/* ---------- Optical alignment: type and marks placed by how they look, not by their boxes ---------- */
/* big titles hang their first letter's side bearing (--oa, measured from the font by oaHang) */
.page-title, .pv-name > span, .dir-hero-title, .pv-stat .v, .rh-hc .v, .m-name{ margin-left:var(--oa, 0); }
/* the match score: the dash on the centre axis whatever the digits (88–78, 118–49, 59–117) and
   lifted from the lower-case middle to the middle of the figures (8% of the size in Archivo) */
.m-score{ display:grid; grid-template-columns:1fr auto 1fr; align-items:baseline; column-gap:.22em; }
.m-score .h{ text-align:right; } .m-score .a{ text-align:left; }
.m-score .d{ font-weight:500; color:var(--text-faint); transform:translateY(-.08em); }
/* a pill that starts with an icon: the triangle's ink sits 3px inside its box, so the left side
   needs that much less padding to look even */
.m-watch{ padding:7px 15px 7px 11px; }
/* list bullets hang in the margin: the text lines up with the heading above it */
.rp-bullets li{ padding-left:0; } .rp-bullets li::before{ left:-14px; }
.pgr .pg-box li{ padding-left:0; } .pgr .pg-box li::before{ left:-11px; }
/* letter-spaced capitals carry the spacing after their last letter too: centred, they sit left of
   centre; right-aligned, they stop short of the numbers under them. Give the spacing back */
.vs-row em{ text-indent:.12em; } .tp-h h3{ text-indent:.14em; }
.pgr th:not(.pg-l){ padding-right:calc(6px - .08em); }
.pgr .pg-stage{ padding-left:8px; padding-right:calc(8px - .12em); }
.pgr .pg-mr .pg-k{ text-indent:.06em; }
/* a square initials badge looks bigger than a crest or a flag in the same box */
.swatch.crest{ transform:scale(.92); }
.crest-flag img{ border-radius:2px; }

/* Taps: no grey flash, no double-tap wait (pinch-zoom still works). */
a, button, summary, [role="button"], label, select{ -webkit-tap-highlight-color:transparent; touch-action:manipulation; }

/* ---- web interface guidelines (update-76) ---- */
.sr-only{ position:absolute !important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); clip-path:inset(50%); white-space:nowrap; border:0; }
/* the first Tab on any page: a link straight past the site bar */
.skip-link{ position:fixed; left:12px; top:-60px; z-index:1000; padding:10px 16px; border-radius:10px; background:var(--accent); color:#fff; font-weight:700; font-size:14px; text-decoration:none; transition:top .15s; }
.skip-link:focus, .skip-link:focus-visible{ top:12px; outline:2px solid #fff; outline-offset:2px; color:#fff; text-decoration:none; }
main:focus{ outline:none; }
/* a row that opens a page carries a real link: it looks like the text it was */
[data-href]{ cursor:pointer; }
a.row-link{ color:inherit; text-decoration:none; }
a.row-link:hover{ text-decoration:none; }
a.row-link:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; border-radius:3px; }
a.box-link.row-link{ color:var(--accent); }
/* links inside running text: more than colour */
.crumb a, .rp-lede a, .page-sub a, .note a, .empty-row a, .pv-note a, .hm-note a{ text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:3px; text-decoration-color:color-mix(in oklab, currentColor 45%, transparent); }
.crumb a:hover, .rp-lede a:hover, .page-sub a:hover, .note a:hover, .empty-row a:hover, .pv-note a:hover, .hm-note a:hover{ text-decoration-color:currentColor; }
/* tables and strips that scroll sideways can be reached and scrolled with the keyboard */
[data-sf]:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; }
/* compare: the card titles are headings now, in the look they had */
.ch-t{ display:inline; font:inherit; color:inherit; letter-spacing:inherit; text-transform:inherit; margin:0; }
/* long pages: blocks below the first screen are laid out when they scroll near */
.ccard-grid{ content-visibility:auto; contain-intrinsic-size:auto 640px; }
.ms-feed > *{ content-visibility:auto; contain-intrinsic-size:auto 72px; }

/* ===========================================================================
   Tools › WOWY (app4zd_wowy.js): every on/off mix of up to five players.
   =========================================================================== */
.wy{ display:flex; flex-direction:column; gap:16px; margin-top:6px; }
.wy-ctl{ display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.wy-seg{ display:inline-flex; padding:3px; border-radius:12px; background:var(--surface); border:1px solid var(--border); position:relative; gap:2px; max-width:100%; overflow-x:auto; scrollbar-width:none; }
.wy-seg button{ all:unset; cursor:pointer; position:relative; z-index:1; padding:7px 12px; border-radius:9px; font-size:13px; font-weight:600; color:var(--text-muted); transition:color .25s ease; white-space:nowrap; }
.wy-seg button[aria-pressed="true"]{ color:var(--on-fg); }
.wy-seg button:focus-visible{ outline:2px solid var(--accent); outline-offset:-2px; }
.wy-ind{ position:absolute; top:3px; bottom:3px; left:0; border-radius:9px; background:var(--on-bg); transition:transform .32s cubic-bezier(.3,.7,.2,1), width .32s cubic-bezier(.3,.7,.2,1); pointer-events:none; }
.wy-pick{ display:inline-flex; align-items:center; gap:8px; height:40px; padding:0 12px; border-radius:12px; background:var(--surface); border:1px solid var(--border); }
.wy-pick label{ font-size:11.5px; font-weight:700; color:var(--text-muted); letter-spacing:.06em; }
.wy-pick select{ border:0; background:var(--surface); color:var(--text); font:600 13.5px var(--body); padding:0; cursor:pointer; max-width:240px; }
.wy-pick select option, .wy-dates input, .wy-dates option{ background-color:var(--surface); color:var(--text); }
.wy-btn{ all:unset; cursor:pointer; display:inline-flex; align-items:center; gap:8px; height:40px; padding:0 14px; border-radius:12px; background:var(--surface); border:1px solid var(--border); font-weight:600; font-size:13.5px; transition:border-color .2s, background .2s, color .2s, transform .15s; }
.wy-btn:hover{ border-color:var(--text-faint); }
.wy-btn:active{ transform:scale(.97); }
.wy-btn[hidden]{ display:none; }
.wy-btn[aria-expanded="true"]{ background:var(--on-bg); color:var(--on-fg); border-color:var(--on-bg); }
.wy-btn:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; }
.wy-btn em{ font-style:normal; font-size:11.5px; font-weight:700; min-width:20px; height:20px; border-radius:10px; display:grid; place-items:center; padding:0 6px; background:var(--accent-2); color:#fff; }
.wy-btn em[hidden]{ display:none; }
.wy-btn svg{ width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:2; }
.wy-lead{ display:inline-flex; gap:14px; align-items:center; flex-wrap:wrap; }
.wy-range{ display:inline-flex; gap:8px; align-items:center; }
.wy-range input{ accent-color:var(--accent); }
.wy-muted{ font-size:12.5px; color:var(--text-muted); margin:0; }

.wy-fold{ display:grid; grid-template-rows:0fr; margin-top:-16px; visibility:hidden; transition:grid-template-rows .38s cubic-bezier(.3,.7,.2,1), margin-top .38s cubic-bezier(.3,.7,.2,1), visibility 0s .38s; }
.wy-fold.open{ grid-template-rows:1fr; margin-top:0; visibility:visible; transition:grid-template-rows .38s cubic-bezier(.3,.7,.2,1), margin-top .38s cubic-bezier(.3,.7,.2,1), visibility 0s; }
.wy-fold > div{ overflow:hidden; min-height:0; }
.wy-panel{ background:var(--surface); border:1px solid var(--border); border-radius:16px; padding:18px; display:grid; gap:18px; }
.wy-panel h2{ margin:0; font:700 15px var(--display); }
.wy-panel p{ font-size:12.5px; color:var(--text-muted); margin:2px 0 0; }
.wy-plist{ display:grid; grid-template-columns:repeat(auto-fill, minmax(300px, 1fr)); gap:6px; }
.wy-pl{ display:grid; grid-template-columns:34px minmax(0,1fr) auto; gap:10px; align-items:center; padding:6px 8px; border-radius:10px; transition:background .2s; }
.wy-pl.wy-pl2{ grid-template-columns:minmax(0,1fr) auto; }
.wy-pl:hover{ background:var(--surface-alt); }
.wy-pl b{ font-weight:600; font-size:13.5px; display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.wy-pl small{ font-size:11.5px; color:var(--text-muted); }
.wy-pl .wy-disc{ width:34px; height:34px; font-size:11px; box-shadow:none; }
.wy-tri{ display:inline-flex; border:1px solid var(--border); border-radius:9px; overflow:hidden; }
.wy-tri button{ all:unset; cursor:pointer; font-size:11.5px; font-weight:700; padding:5px 9px; color:var(--text-muted); transition:background .2s, color .2s; }
.wy-tri button + button{ border-left:1px solid var(--border); }
.wy-tri button[aria-pressed="true"]{ background:var(--on-bg); color:var(--on-fg); }
.wy-tri button.c[aria-pressed="true"]{ background:var(--accent-2-soft); color:var(--accent-2-ink); }
.wy-tri button:disabled{ opacity:.4; cursor:not-allowed; }
.wy-tri button:focus-visible{ outline:2px solid var(--accent); outline-offset:-2px; }
.wy-frow{ display:grid; grid-template-columns:150px minmax(0,1fr); gap:14px; align-items:start; }
.wy-frow > span{ font-size:12.5px; font-weight:700; color:var(--text-muted); padding-top:7px; }
.wy-stack{ display:grid; gap:8px; }
.wy-chips{ display:flex; flex-wrap:wrap; gap:6px; align-items:center; }
.wy-chips.wy-gap{ gap:20px; }
.wy-chip{ all:unset; cursor:pointer; font-size:12.5px; font-weight:600; padding:6px 11px; border-radius:999px; border:1px solid var(--border); background:var(--surface); transition:background .2s, color .2s, border-color .2s; }
.wy-chip[aria-pressed="true"]{ background:var(--on-bg); color:var(--on-fg); border-color:var(--on-bg); }
.wy-chip:focus-visible, .wy-sw:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; }
.wy-sw{ all:unset; cursor:pointer; display:inline-flex; align-items:center; gap:10px; font-size:13px; font-weight:600; }
.wy-sw i{ width:36px; height:20px; border-radius:999px; background:var(--border); position:relative; transition:background .25s; }
.wy-sw i::after{ content:""; position:absolute; top:2px; left:2px; width:16px; height:16px; border-radius:50%; background:#fff; box-shadow:0 1px 2px rgba(0,0,0,.3); transition:transform .25s cubic-bezier(.3,.7,.2,1); }
.wy-sw[aria-pressed="true"] i{ background:var(--accent); }
.wy-sw[aria-pressed="true"] i::after{ transform:translateX(16px); }
.wy-dates{ display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.wy-dates input{ height:34px; border-radius:9px; border:1px solid var(--border); padding:0 8px; font:13px var(--body); }
.wy-dates input[type=search]{ width:220px; }

.wy-bar{ display:flex; align-items:flex-end; border-bottom:1px solid var(--border); }
.wy-tabs{ display:flex; gap:22px; position:relative; overflow-x:auto; scrollbar-width:none; }
.wy-tabs button{ all:unset; cursor:pointer; padding:10px 1px 12px; font-weight:600; font-size:14px; color:var(--text-muted); transition:color .2s; white-space:nowrap; }
.wy-tabs button[aria-selected="true"]{ color:var(--text); }
.wy-tabs button:focus-visible{ outline:2px solid var(--accent); outline-offset:-2px; }
.wy-line{ position:absolute; bottom:0; left:0; height:2px; background:var(--text); border-radius:2px; transition:transform .32s cubic-bezier(.3,.7,.2,1), width .32s cubic-bezier(.3,.7,.2,1); }

.wy-card{ background:var(--surface); border:1px solid var(--border); border-radius:16px; overflow:hidden; box-shadow:var(--shadow-2); }
.wy-card-h{ display:flex; justify-content:space-between; align-items:flex-end; gap:12px; padding:16px 18px; border-bottom:1px solid var(--hair); flex-wrap:wrap; }
.wy-card-h h2{ margin:0; font:700 18px var(--display); }
.wy-card-h span{ font-size:12.5px; color:var(--text-muted); }
.wy-scroll{ overflow-x:auto; }
.wy-tbl{ width:100%; border-collapse:collapse; min-width:640px; }
.wy-tbl th{ font-size:11.5px; font-weight:700; letter-spacing:.06em; color:var(--text-muted); text-align:right; padding:11px 14px; white-space:nowrap; background:var(--surface-alt); }
.wy-tbl th:first-child{ text-align:left; }
.wy-tbl td{ padding:12px 14px; text-align:right; border-top:1px solid var(--hair); vertical-align:middle; font-variant-numeric:tabular-nums; }
.wy-tbl td:first-child{ text-align:left; width:38%; }
.wy-tbl tbody tr[data-wyrow]{ animation:wyRow .45s cubic-bezier(.3,.7,.2,1) both; animation-delay:calc(var(--i,0) * 45ms); cursor:pointer; transition:background .2s; }
.wy-tbl tbody tr[data-wyrow]:hover{ background:var(--surface-alt); }
@keyframes wyRow{ from{ opacity:0; transform:translateY(8px); } to{ opacity:1; transform:none; } }
.wy-lu{ display:flex; gap:4px; align-items:center; }
.wy-lub{ all:unset; cursor:pointer; display:flex; gap:4px; align-items:center; border-radius:10px; }
.wy-lub:focus-visible{ outline:2px solid var(--accent); outline-offset:3px; }
.wy-rk{ width:20px; text-align:right; font-size:12.5px; color:var(--text-muted); margin-right:6px; }
.wy-team{ display:block; margin-top:4px; font-size:12px; color:var(--text-muted); }
.wy-av{ position:relative; width:66px; display:flex; flex-direction:column; align-items:center; gap:4px; }
.wy-disc{ width:40px; height:40px; border-radius:50%; background:var(--avatar-bg); color:var(--avatar-fg); display:grid; place-items:center; font:700 12.5px var(--display); overflow:hidden; flex:none; box-shadow:0 0 0 2px var(--surface), 0 0 0 3.5px var(--wy-ring, transparent); transition:filter .35s ease, opacity .35s ease, box-shadow .35s ease; }
.wy-disc img{ width:100%; height:100%; object-fit:cover; display:block; }
.wy-av small{ font-size:11px; font-weight:600; max-width:64px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; transition:color .3s; }
.wy-av.on .wy-disc{ --wy-ring:var(--accent-2); }
.wy-av.off .wy-disc{ filter:grayscale(1); opacity:.42; }
.wy-av.off small{ color:var(--text-faint); }
.wy-tag{ position:absolute; top:13px; left:50%; transform:translateX(-50%) scale(.6); opacity:0; font:700 9.5px var(--body); letter-spacing:.08em; background:var(--on-bg); color:var(--on-fg); padding:1px 5px; border-radius:5px; transition:transform .3s cubic-bezier(.3,1.4,.4,1), opacity .25s; }
.wy-av.off .wy-tag{ transform:translateX(-50%) scale(1); opacity:1; }
.wy-v{ display:flex; flex-direction:column; align-items:flex-end; gap:1px; }
.wy-v b{ font:700 17px var(--display); }
.wy-d{ font-size:11.5px; font-weight:700; }
.wy-s{ font-size:11px; color:var(--text-faint); }
.wy-att{ color:var(--text-muted); }
.wy-good{ color:var(--positive-ink); }
.wy-bad{ color:var(--negative); }
.wy-net{ display:flex; flex-direction:column; align-items:flex-end; gap:5px; }
.wy-net b{ font:700 19px var(--display); }
.wy-nb{ width:86px; height:5px; border-radius:3px; background:var(--hair); position:relative; }
.wy-nb i{ position:absolute; top:0; height:100%; border-radius:3px; transition:width .6s cubic-bezier(.3,.7,.2,1), left .6s cubic-bezier(.3,.7,.2,1); }
.wy-nb i.pos{ background:var(--positive-ink); }
.wy-nb i.neg{ background:var(--negative); }
.wy-nb::after{ content:""; position:absolute; left:50%; top:-2px; width:1px; height:9px; background:var(--text-faint); }
.wy-min b{ font:700 16px var(--display); }
.wy-min small{ display:block; font-size:11px; color:var(--text-faint); }
.wy-lgrow td{ background:var(--surface-alt); font-size:12.5px; color:var(--text-muted); cursor:default; }
.wy-foot{ display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; padding:12px 18px; font-size:12px; color:var(--text-muted); border-top:1px solid var(--hair); }
.wy-empty{ padding:36px 18px; text-align:center; color:var(--text-muted); }

.wy-dlg{ border:0; padding:0; background:transparent; max-width:min(560px, calc(100vw - 24px)); width:100%; }
.wy-dlg::backdrop{ background:oklch(12% 0.02 255 / .5); backdrop-filter:blur(2px); animation:wyFade .25s; }
.wy-dlg[open] .wy-sheet{ animation:wySheet .34s cubic-bezier(.3,.7,.2,1); }
@keyframes wySheet{ from{ opacity:0; transform:translateY(14px) scale(.98); } to{ opacity:1; transform:none; } }
@keyframes wyFade{ from{ opacity:0; } to{ opacity:1; } }
.wy-sheet{ background:var(--surface); color:var(--text); border-radius:18px; border:1px solid var(--border); box-shadow:var(--shadow-3); overflow:hidden; font-family:var(--body); }
.wy-sh{ background:var(--void); color:#fff; padding:18px 20px; display:grid; gap:14px; }
.wy-shtop{ display:flex; justify-content:space-between; align-items:center; gap:12px; font-size:12px; color:rgba(255,255,255,.72); }
.wy-shtop button{ all:unset; cursor:pointer; flex:none; width:30px; height:30px; border-radius:50%; display:grid; place-items:center; background:rgba(255,255,255,.1); color:#fff; }
.wy-shtop button:focus-visible{ outline:2px solid #fff; outline-offset:2px; }
.wy-sh .wy-av small{ color:#fff; }
.wy-sh .wy-av.off small{ color:rgba(255,255,255,.6); }
.wy-sh .wy-disc{ box-shadow:0 0 0 2px var(--void), 0 0 0 3.5px var(--wy-ring, transparent); }
.wy-kpis{ display:grid; grid-template-columns:repeat(6, minmax(0,1fr)); gap:6px; }
.wy-kpis div{ display:flex; flex-direction:column; gap:2px; }
.wy-kpis span{ font-size:10.5px; font-weight:700; letter-spacing:.08em; color:rgba(255,255,255,.66); }
.wy-kpis b{ font:700 20px var(--display); }
.wy-kpis em{ font-style:normal; font-size:11px; font-weight:700; }
.wy-sh .wy-good{ color:oklch(80% 0.14 148); }
.wy-sh .wy-bad{ color:oklch(74% 0.15 25); }
.wy-shb{ padding:16px 20px 20px; display:grid; gap:14px; }
.wy-ff{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.wy-ff h3, .wy-share h3{ margin:0 0 8px; font:700 11.5px var(--body); letter-spacing:.1em; color:var(--text-muted); }
.wy-g{ display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:6px; }
.wy-g div{ background:var(--surface-alt); border-radius:10px; padding:8px 10px; display:flex; flex-direction:column; gap:1px; }
.wy-g span{ font-size:11px; color:var(--text-muted); font-weight:600; }
.wy-g b{ font:700 17px var(--display); }
.wy-g em{ font-style:normal; font-size:11px; font-weight:700; }
.wy-r{ display:grid; grid-template-columns:150px minmax(0,1fr) 40px; gap:10px; align-items:center; font-size:12.5px; padding:3px 0; }
.wy-r a{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-weight:600; color:var(--text); }
.wy-r i{ display:block; height:8px; border-radius:4px; background:var(--accent); width:0; transition:width .7s cubic-bezier(.3,.7,.2,1); }
.wy-r b{ text-align:right; }

.wy-how{ background:var(--surface); border:1px solid var(--border); border-radius:16px; padding:0 18px; }
.wy-how summary{ cursor:pointer; list-style:none; padding:16px 0; font:700 16px var(--display); display:flex; justify-content:space-between; align-items:center; }
.wy-how summary::-webkit-details-marker{ display:none; }
.wy-how summary::after{ content:""; width:9px; height:9px; border-right:2px solid var(--text-muted); border-bottom:2px solid var(--text-muted); transform:rotate(45deg); transition:transform .3s; }
.wy-how[open] summary::after{ transform:rotate(-135deg); }
.wy-howg{ display:grid; grid-template-columns:repeat(auto-fit, minmax(280px, 1fr)); gap:18px; padding-bottom:18px; font-size:13.5px; }
.wy-howg h3{ margin:0 0 4px; font:700 14px var(--display); }
.wy-howg p{ margin:0; color:var(--text-muted); max-width:62ch; }
.wy-howg code{ font-size:12.5px; background:var(--surface-alt); padding:1px 5px; border-radius:5px; color:var(--text); }

@media (max-width:760px){
  .wy-frow{ grid-template-columns:1fr; gap:6px; }
  .wy-frow > span{ padding-top:0; }
  .wy-kpis{ grid-template-columns:repeat(3, minmax(0,1fr)); row-gap:10px; }
  .wy-ff{ grid-template-columns:1fr; }
  .wy-r{ grid-template-columns:110px minmax(0,1fr) 36px; }
  .wy-pick{ flex:1 1 auto; }
  .wy-plist{ grid-template-columns:1fr; }
}
@media (prefers-reduced-motion:reduce){
  .wy *, .wy-dlg *, .wy-dlg::backdrop{ animation:none !important; transition:none !important; }
}

/* ===========================================================================
   Tools › Stat Line Shift (app4ze_shift.js). Controls reuse the WOWY classes.
   =========================================================================== */
.sl-layout{ display:grid; grid-template-columns:340px minmax(0,1fr); gap:20px; align-items:start; }
.sl-layout.wide{ grid-template-columns:minmax(0,1fr); }
.sl-layout.wide .sl-side{ display:none; }
.sl-side{ background:var(--surface); border:1px solid var(--border); border-radius:16px; padding:16px; display:grid; gap:12px; position:sticky; top:72px; }
.sl-side h2{ margin:0; font:700 16px var(--display); }
.sl-side p{ margin:4px 0 0; font-size:12.5px; color:var(--text-muted); }
.sl-roster{ display:grid; gap:2px; }
.sl-more{ display:none; justify-self:start; }
@media (max-width:900px){ .sl-roster.short .sl-rp:nth-child(n+7){ display:none; } .sl-more:not([hidden]){ display:inline-block; } }
.sl-rp{ display:grid; grid-template-columns:34px minmax(0,1fr) auto; gap:10px; align-items:center; padding:6px; border-radius:10px; transition:background .2s; }
.sl-rp:hover{ background:var(--surface-alt); }
.sl-rp.main{ background:var(--accent-soft); }
.sl-rp.sel{ background:var(--accent-2-soft); }
.sl-rp .wy-disc{ width:34px; height:34px; font-size:11px; box-shadow:none; }
.sl-rp b{ font-weight:600; font-size:13px; display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sl-rp small{ font-size:11.5px; color:var(--text-muted); white-space:nowrap; }
.sl-duo{ display:inline-flex; border:1px solid var(--border); border-radius:9px; overflow:hidden; background:var(--surface); }
.sl-duo button{ all:unset; cursor:pointer; font-size:11.5px; font-weight:700; padding:5px 9px; color:var(--text-muted); transition:background .2s, color .2s; }
.sl-duo button + button{ border-left:1px solid var(--border); }
.sl-duo button[aria-pressed="true"].m{ background:var(--accent-soft); color:var(--accent-ink); }
.sl-duo button[aria-pressed="true"].t{ background:var(--accent-2-soft); color:var(--accent-2-ink); }
.sl-duo button:disabled{ opacity:.4; cursor:not-allowed; }
.sl-duo button:focus-visible{ outline:2px solid var(--accent); outline-offset:-2px; }
.sl-stage{ min-width:0; display:grid; gap:16px; }
.sl-stage.anim > *{ animation:slIn .42s cubic-bezier(.3,.7,.2,1) both; }
@keyframes slIn{ from{ opacity:0; transform:translateY(8px); } to{ opacity:1; transform:none; } }
.sl-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(340px, 1fr)); gap:16px; }
.sl-grid .sl-shift{ animation:slIn .42s cubic-bezier(.3,.7,.2,1) both; animation-delay:calc(var(--i,0) * 70ms); }
.sl-shift{ background:var(--surface); border:1px solid var(--border); border-radius:18px; box-shadow:var(--shadow-2); overflow:hidden; }
.sl-top{ display:grid; justify-items:center; gap:6px; padding:22px 20px 6px; position:relative; }
.sl-top .yr{ position:absolute; right:18px; top:16px; font:700 13px var(--display); color:var(--text-muted); }
.sl-top .lg{ position:absolute; left:18px; top:16px; font:700 12px var(--body); letter-spacing:.06em; color:var(--accent-2-ink); }
.sl-top h2{ margin:6px 0 0; font:700 21px var(--display); text-align:center; }
.sl-top h2 a{ color:var(--text); }
.sl-hero{ position:relative; width:96px; height:96px; }
.sl-hero > .wy-disc{ width:96px; height:96px; font-size:26px; box-shadow:0 0 0 3px var(--surface), 0 0 0 5px var(--accent-2); animation:slHero .45s cubic-bezier(.3,1.3,.4,1); }
@keyframes slHero{ from{ transform:scale(.85); opacity:0; } to{ transform:none; opacity:1; } }
.sl-mates{ position:absolute; right:-30px; bottom:-4px; display:flex; }
.sl-mates button{ all:unset; cursor:pointer; border-radius:50%; transition:transform .2s; }
.sl-mates button + button{ margin-left:-12px; }
.sl-mates button:hover{ transform:translateY(-3px) scale(1.06); }
.sl-mates button:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; }
.sl-mates .wy-disc{ width:38px; height:38px; font-size:11px; box-shadow:0 0 0 2.5px var(--surface); }
.sl-units{ display:flex; gap:4px; font-size:12.5px; flex-wrap:wrap; justify-content:center; }
.sl-units button{ all:unset; cursor:pointer; padding:3px 9px; border-radius:999px; color:var(--text-muted); font-weight:600; transition:background .2s, color .2s; }
.sl-units button[aria-pressed="true"]{ background:var(--surface-alt); color:var(--text); }
.sl-units button:focus-visible{ outline:2px solid var(--accent); }
.sl-tabs{ display:grid; grid-template-columns:repeat(5, minmax(0,1fr)); border-bottom:1px solid var(--hair); position:relative; margin-top:8px; }
.sl-tabs button{ all:unset; cursor:pointer; text-align:center; padding:11px 2px; font-size:13px; font-weight:600; color:var(--text-muted); transition:color .2s; }
.sl-tabs button[aria-selected="true"]{ color:var(--text); }
.sl-tabs button:focus-visible{ outline:2px solid var(--accent); outline-offset:-2px; }
.sl-tabs .line{ position:absolute; bottom:-1px; left:0; height:2px; width:20%; background:var(--accent-2); transition:transform .32s cubic-bezier(.3,.7,.2,1); }
.sl-cols, .sl-row{ display:grid; grid-template-columns:64px minmax(0,1fr) 84px minmax(0,1fr) 64px; }
.sl-cols{ align-items:end; padding:14px 16px 6px; }
.sl-colh{ position:relative; display:grid; justify-items:center; }
.sl-colb{ all:unset; cursor:pointer; display:grid; justify-items:center; gap:5px; padding:6px 8px; border-radius:10px; transition:background .2s; max-width:100%; }
.sl-colb:hover{ background:var(--surface-alt); }
.sl-colb:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; }
.sl-colb .t{ font-size:13px; font-weight:700; display:flex; align-items:center; gap:6px; text-align:center; }
.sl-colb .t i{ width:8px; height:8px; border-radius:2px; flex:none; }
.sl-colb .t::after{ content:""; width:6px; height:6px; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:rotate(45deg) translateY(-2px); flex:none; }
.sl-colh.L .t{ color:var(--accent-2-ink); } .sl-colh.L .t i{ background:var(--accent-2); }
.sl-colh.R .t{ color:var(--accent-ink); } .sl-colh.R .t i{ background:var(--accent); }
.sl-colb small{ font-size:11.5px; color:var(--text-muted); }
.sl-mini{ display:flex; gap:3px; }
.sl-mini .wy-disc{ width:22px; height:22px; font-size:8px; box-shadow:none; }
.sl-mini .off .wy-disc{ filter:grayscale(1); opacity:.4; }
.sl-menu{ position:absolute; top:calc(100% + 4px); z-index:30; width:280px; max-width:80vw; background:var(--surface); border:1px solid var(--border); border-radius:12px; box-shadow:var(--shadow-2); padding:6px; display:grid; gap:2px; animation:slPop .2s cubic-bezier(.3,.7,.2,1); }
.sl-colh.L .sl-menu{ left:0; transform-origin:top left; } .sl-colh.R .sl-menu{ right:0; transform-origin:top right; }
@keyframes slPop{ from{ opacity:0; transform:scale(.96) translateY(-4px); } to{ opacity:1; transform:none; } }
.sl-menu button{ all:unset; cursor:pointer; display:flex; justify-content:space-between; gap:10px; padding:8px 10px; border-radius:8px; font-size:13px; }
.sl-menu button:hover, .sl-menu button:focus-visible{ background:var(--surface-alt); }
.sl-menu button[aria-current="true"]{ font-weight:700; background:var(--surface-alt); }
.sl-menu button span:last-child{ color:var(--text-muted); font-size:12px; white-space:nowrap; }
.sl-rows{ padding:2px 16px 12px; }
.sl-row{ align-items:center; padding:7px 0; border-top:1px solid var(--hair); animation:wyRow .4s cubic-bezier(.3,.7,.2,1) both; animation-delay:calc(var(--i,0) * 35ms); }
.sl-row:first-child{ border-top:0; }
.sl-row .v{ font:700 19px var(--display); text-align:center; font-variant-numeric:tabular-nums; }
.sl-row .k{ font-size:12px; font-weight:700; letter-spacing:.06em; color:var(--text-muted); text-align:center; }
.sl-bd{ justify-self:center; font-size:12px; font-weight:700; padding:3px 8px; border-radius:999px; font-variant-numeric:tabular-nums; animation:slBadge .4s cubic-bezier(.3,1.5,.4,1) both; animation-delay:calc(var(--i,0) * 35ms + 120ms); }
.sl-bd.L{ background:var(--accent-2-soft); color:var(--accent-2-ink); }
.sl-bd.R{ background:var(--accent-soft); color:var(--accent-ink); }
@keyframes slBadge{ from{ transform:scale(.5); opacity:0; } to{ transform:none; opacity:1; } }
.sl-warn{ margin:0 16px 12px; font-size:12px; color:var(--accent-2-ink); background:var(--accent-2-soft); border-radius:8px; padding:7px 10px; }
.sl-foot{ display:flex; justify-content:space-between; gap:10px; padding:10px 16px; border-top:1px solid var(--hair); font-size:11.5px; color:var(--text-muted); }
.sl-tcard{ background:var(--surface); border:1px solid var(--border); border-radius:16px; box-shadow:var(--shadow-2); overflow:hidden; }
.sl-tcard-h{ display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; padding:14px 18px; border-bottom:1px solid var(--hair); }
.sl-who{ display:flex; gap:12px; align-items:center; min-width:0; }
.sl-who h2{ margin:0; font:700 17px var(--display); }
.sl-who span{ font-size:12.5px; color:var(--text-muted); }
.sl-tctl{ display:flex; gap:12px; align-items:center; flex-wrap:wrap; }
.sl-tctl .lab{ font-size:11.5px; font-weight:700; color:var(--text-muted); letter-spacing:.06em; }
.sl-tctl select{ max-width:210px; }
.sl-tbl{ width:100%; border-collapse:collapse; table-layout:fixed; }
.sl-tbl th{ font-size:11.5px; font-weight:700; letter-spacing:.05em; color:var(--text-muted); padding:10px 8px; background:var(--surface-alt); text-align:right; }
.sl-tbl th:first-child{ text-align:left; padding-left:16px; }
.sl-tbl th button{ all:unset; cursor:pointer; padding:2px 4px; border-radius:5px; transition:color .2s, background .2s; }
.sl-tbl th button:hover{ color:var(--text); }
.sl-tbl th button[aria-pressed="true"], .sl-sortrow button[aria-pressed="true"]{ color:var(--accent-2-ink); background:var(--accent-2-soft); }
.sl-tbl th button:focus-visible, .sl-sortrow button:focus-visible, .sl-tp button:focus-visible{ outline:2px solid var(--accent); }
.sl-tbl td{ padding:9px 8px; border-top:1px solid var(--hair); text-align:right; vertical-align:middle; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; transition:background .25s; }
.sl-tbl td:first-child{ text-align:left; padding-left:16px; }
.sl-tbl tbody tr{ animation:wyRow .4s cubic-bezier(.3,.7,.2,1) both; animation-delay:calc(var(--i,0) * 35ms); }
.sl-tbl td.foc{ background:var(--accent-2-soft); }
.sl-tp{ display:flex; gap:10px; align-items:center; min-width:0; }
.sl-tp .wy-disc{ width:32px; height:32px; font-size:10px; box-shadow:none; }
.sl-tp > span{ min-width:0; }
.sl-tp button{ all:unset; cursor:pointer; font-weight:600; font-size:13.5px; border-radius:4px; overflow-wrap:anywhere; }
.sl-tp button:hover{ text-decoration:underline; text-underline-offset:3px; }
.sl-tp small{ display:block; font-size:11.5px; color:var(--text-muted); }
.sl-cell{ display:flex; flex-direction:column; align-items:flex-end; gap:1px; }
.sl-cell .ab{ font-size:11.5px; color:var(--text-muted); text-align:right; }
.sl-cell b{ font:700 15px var(--display); }
.sl .up{ color:var(--accent-2-ink); } .sl .down{ color:var(--accent-ink); }
.sl-sortrow{ display:flex; flex-wrap:wrap; gap:6px; align-items:center; padding:12px 16px 4px; font-size:12px; color:var(--text-muted); }
.sl-sortrow button{ all:unset; cursor:pointer; font-size:12px; font-weight:600; padding:4px 9px; border-radius:999px; border:1px solid var(--border); color:var(--text); }
.sl-tcards{ display:grid; gap:10px; padding:12px 16px; }
.sl-tc{ border:1px solid var(--hair); border-radius:12px; padding:12px; display:grid; gap:10px; animation:wyRow .4s cubic-bezier(.3,.7,.2,1) both; animation-delay:calc(var(--i,0) * 35ms); }
.sl-tcg{ display:grid; grid-template-columns:repeat(auto-fill, minmax(104px, 1fr)); gap:6px; }
.sl-tcg div{ background:var(--surface-alt); border-radius:9px; padding:7px 9px; display:flex; flex-direction:column; gap:1px; transition:background .25s; }
.sl-tcg div.foc{ background:var(--accent-2-soft); }
.sl-tcg span:first-child{ font-size:10.5px; font-weight:700; letter-spacing:.06em; color:var(--text-muted); }
.sl-tcg .ab{ font-size:11.5px; color:var(--text-muted); }
.sl-tcg b{ font:700 15px var(--display); }
.sl-legend{ display:flex; gap:14px; flex-wrap:wrap; justify-content:space-between; font-size:12px; color:var(--text-muted); padding:10px 18px; border-top:1px solid var(--hair); }
.sl-dlg{ border:0; padding:0; background:transparent; max-width:min(620px, calc(100vw - 24px)); width:100%; }
.sl-dlg::backdrop{ background:oklch(12% 0.02 255 / .5); backdrop-filter:blur(2px); }
.sl-dlg[open] .sl-cz{ animation:wySheet .32s cubic-bezier(.3,.7,.2,1); }
.sl-cz{ background:var(--surface); color:var(--text); border:1px solid var(--border); border-radius:18px; box-shadow:var(--shadow-3); padding:20px; display:grid; gap:16px; font-family:var(--body); }
.sl-cz h2{ margin:0; font:700 20px var(--display); }
.sl-cz p{ margin:0; font-size:12.5px; color:var(--text-muted); }
.sl-czg{ display:grid; grid-template-columns:repeat(auto-fit, minmax(120px, 1fr)); gap:14px; }
.sl-czg fieldset{ border:0; margin:0; padding:0; }
.sl-czg legend{ font:700 11.5px var(--body); letter-spacing:.1em; color:var(--text-muted); margin-bottom:6px; }
.sl-czg label{ display:flex; gap:8px; align-items:center; font-size:13px; padding:3px 0; cursor:pointer; }
.sl-czg input{ accent-color:var(--accent-2); width:16px; height:16px; }
.sl-czb{ display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; align-items:center; }
.sl-czb > span{ margin-right:auto; display:flex; gap:8px; }
.sl-primary{ background:var(--on-bg) !important; color:var(--on-fg) !important; border-color:var(--on-bg) !important; }
@media (max-width:900px){ .sl-layout{ grid-template-columns:1fr; } .sl-side{ position:static; } }
@media (max-width:480px){ .sl-cols, .sl-row{ grid-template-columns:48px minmax(0,1fr) 64px minmax(0,1fr) 48px; } .sl-row .v{ font-size:17px; } }
@media (prefers-reduced-motion:reduce){ .sl *, .sl-dlg *{ animation:none !important; transition:none !important; } }

/* =========================================================================
   Companion (app4zf_companion.js): /watch/<mid>/ for MBL men's games from 2025-26,
   whose video is on MBL's own platform. v3: black ground, hairlines instead of
   filled panels, square edges; team colours only as accents; orange for "now",
   gold for a followed player.
   ========================================================================= */
.cn{ --bg:#000; --line:rgba(255,255,255,.08); --line2:rgba(255,255,255,.05); --tx:#F4F5F7; --sub:#C9CDD4; --dim:#8A909C; --faint:#5E636E; --zero:#4A4E57;
  --raise:#0C0D10; --chip:#14161A; --ember:#DEA900; --gold:#F5C451; --up:#5EE6A0; --dn:#FF8F8A;
  --snap:cubic-bezier(.16,1,.3,1);
  background:var(--bg); color:var(--tx); min-height:100vh; min-height:100dvh; display:flex; flex-direction:column;
  font-family:'Archivo', system-ui, sans-serif; font-size:13px; line-height:1.35; -webkit-font-smoothing:antialiased; }
.cn *{ box-sizing:border-box; }
.cn a{ color:var(--sub); text-decoration:none; }
.cn a:hover{ color:#fff; }
.cn button{ font:inherit; color:inherit; }
.cn button:focus-visible, .cn a:focus-visible{ outline:2px solid var(--ember); outline-offset:2px; }
.cn h2{ margin:0; font-size:10.5px; font-weight:700; letter-spacing:.16em; text-transform:uppercase; color:var(--sub); }
.cn h3{ margin:18px 0 8px; font-size:10px; font-weight:700; letter-spacing:.16em; text-transform:uppercase; color:var(--dim); }
.cn-num{ font-variant-numeric:tabular-nums; }
.cn-dim{ color:var(--dim); }
.cn-sub{ color:var(--sub); }
.cn-lab{ font-size:10px; font-weight:600; letter-spacing:.14em; text-transform:uppercase; color:var(--dim); }
.cn-grow{ flex:1; }
.cn-sr{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.cn-scroll{ overflow-y:auto; min-height:0; scrollbar-width:thin; scrollbar-color:#24262C transparent; }
.cn-empty{ color:var(--dim); padding:18px 20px; font-size:12.5px; list-style:none; }
.cn-link{ border:0; background:none; color:var(--sub); cursor:pointer; padding:0; font-size:11.5px; }
.cn-link:hover{ color:#fff; }

/* header */
.cn-top{ display:flex; align-items:center; gap:18px; height:48px; padding:0 20px; flex:none; border-bottom:1px solid var(--line); min-width:0; }
.cn a.cn-brand{ display:flex; align-items:center; gap:8px; color:var(--tx); font-weight:800; font-stretch:78%; letter-spacing:.04em; font-size:14px; white-space:nowrap; }
.cn-rule{ width:1px; height:18px; background:rgba(255,255,255,.12); flex:none; }
.cn-crumb{ display:flex; align-items:center; gap:10px; min-width:0; flex:1; white-space:nowrap; overflow:hidden; }
.cn-crumb a{ color:var(--tx) !important; font-weight:600; }
.cn-crumb > span{ overflow:hidden; text-overflow:ellipsis; color:var(--dim); font-size:12.5px; }
.cn-crumb img{ flex:none; }
.cn-fresh{ display:flex; align-items:center; gap:8px; color:var(--dim); white-space:nowrap; font-size:12px; }
.cn-live{ display:inline-flex; align-items:center; gap:6px; color:var(--ember); font-weight:700; font-size:10.5px; letter-spacing:.12em; }
.cn-live i{ width:6px; height:6px; border-radius:50%; background:var(--ember); animation:cnPulse 1.8s ease-in-out infinite; }
@keyframes cnPulse{ 50%{ opacity:.3; } }
.cn-delay{ display:flex; align-items:center; gap:8px; white-space:nowrap; }
.cn-seg{ display:inline-flex; gap:2px; padding:2px; border:1px solid rgba(255,255,255,.1); border-radius:6px; flex:none; }
.cn-seg button{ display:inline-flex; align-items:center; gap:6px; border:0; background:transparent; color:var(--dim); height:26px; padding:0 11px; border-radius:4px; cursor:pointer; font-size:12px; font-weight:600; white-space:nowrap; }
.cn-seg-s button, .cn-delay .cn-seg button{ padding:0 9px; font-size:11.5px; height:24px; }
.cn-seg button:hover{ color:var(--tx); }
.cn-seg button.on{ background:rgba(255,255,255,.12); color:var(--tx); }
.cn-icon{ width:32px; height:32px; flex:none; display:flex; align-items:center; justify-content:center; border:1px solid rgba(255,255,255,.1); border-radius:6px; background:transparent; color:var(--sub); cursor:pointer; }
.cn-icon:hover{ color:#fff; border-color:rgba(255,255,255,.25); }
.cn a.cn-mbl{ display:inline-flex; align-items:center; gap:8px; height:32px; background:var(--tx); color:#000; border-radius:6px; padding:0 14px; font-weight:700; font-size:12.5px; white-space:nowrap; flex:none; }
.cn a.cn-mbl:hover{ background:#fff; color:#000; }
.cn-mbl[hidden]{ display:none !important; }

/* scoreboard */
.cn-board{ position:relative; flex:none; }
.cn-score{ height:128px; display:grid; grid-template-columns:minmax(0,1fr) 300px minmax(0,1fr); align-items:center; padding:0 28px; border-bottom:1px solid var(--line); }
.cn-side{ display:flex; align-items:center; gap:16px; min-width:0; }
.cn-side-a{ flex-direction:row-reverse; }
.cn-info{ display:flex; align-items:center; gap:16px; min-width:0; }
.cn-side-a .cn-info{ flex-direction:row-reverse; text-align:right; }
.cn-info img{ flex:none; }
.cn-names{ display:flex; flex-direction:column; gap:3px; min-width:0; }
.cn-side-a .cn-names{ align-items:flex-end; }
.cn-code{ font-size:10.5px; font-weight:600; letter-spacing:.16em; color:var(--dim); }
.cn-names > b{ font-size:21px; font-weight:700; font-stretch:82%; line-height:1.05; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%; }
.cn-meta{ display:flex; align-items:center; gap:16px; margin-top:5px; }
.cn-side-a .cn-meta{ flex-direction:row-reverse; }
.cn-ticks{ display:inline-flex; align-items:center; gap:4px; }
.cn-ticks .cn-lab{ margin-right:2px; }
.cn-ticks i{ width:9px; height:3px; background:rgba(255,255,255,.12); }
.cn-ticks i.on{ background:var(--sub); }
.cn-ticks i.b{ background:var(--ember); }
.cn-tos i{ width:14px; }
.cn-tos i.on{ background:var(--tx); }
.cn-bonus{ font-size:9.5px; font-weight:800; letter-spacing:.12em; color:var(--ember); text-transform:uppercase; margin-left:4px; }
.cn-big{ display:flex; font-size:92px; font-weight:600; font-stretch:64%; line-height:1; letter-spacing:-.02em; margin-left:auto; border-bottom:3px solid var(--tc, #fff); padding-bottom:2px; }
.cn-side-a .cn-big{ margin:0 auto 0 0; }
.cn-big.lost{ color:var(--dim); }
.cn-dg{ display:block; height:1em; overflow:hidden; width:.5em; }
.cn-odo{ display:block; transition:transform .7s cubic-bezier(.2,.8,.2,1); }
.cn-odo span{ display:block; height:1em; text-align:center; }
.cn-center{ display:flex; flex-direction:column; align-items:center; gap:3px; }
.cn-per{ font-size:10.5px; font-weight:700; letter-spacing:.16em; text-transform:uppercase; color:var(--dim); }
.cn-clock{ font-size:40px; font-weight:600; font-stretch:70%; line-height:.95; }
.cn-lead{ font-size:12px; font-weight:600; text-align:center; }
.cn-q{ display:grid; grid-template-columns:34px repeat(var(--n), 26px) 30px; margin-top:4px; font-size:11px; text-align:center; color:var(--dim); }
.cn-q .cn-qh{ font-size:10px; }
.cn-q .cn-qh:last-of-type{ color:var(--faint); }
.cn-q .cn-qt{ text-align:left; font-weight:700; }
.cn-q span{ color:#A9AEB8; }
.cn-q .now{ color:var(--tx); box-shadow:inset 0 -2px var(--ember); }
.cn-q b{ color:var(--tx); }

/* game flow */
.cn-flow{ height:74px; padding:8px 28px 6px; display:flex; flex-direction:column; gap:5px; border-bottom:1px solid var(--line); }
.cn-flowh{ display:flex; align-items:center; gap:14px; font-size:11px; color:var(--dim); white-space:nowrap; overflow:hidden; }
.cn-flowh b{ color:var(--tx); font-weight:600; }
.cn-key{ display:inline-flex; align-items:center; gap:5px; }
.cn-key i{ width:8px; height:8px; }
.cn-chart{ position:relative; flex:1; cursor:crosshair; }
.cn-chart svg{ position:absolute; inset:0; width:100%; height:100%; overflow:visible; }
.cn-head{ position:absolute; top:-4px; bottom:-2px; width:1.5px; background:var(--ember); transition:left .9s var(--snap); }
.cn-ftag{ position:absolute; top:-1px; transform:translateX(-50%); font-size:9.5px; font-weight:700; letter-spacing:.04em; background:#000; padding:0 3px; white-space:nowrap; }
.cn-hline{ position:absolute; top:0; bottom:0; width:1px; background:rgba(255,255,255,.6); pointer-events:none; }
.cn-hbox{ position:absolute; top:50%; transform:translateY(-50%); background:var(--raise); border:1px solid rgba(255,255,255,.14); padding:3px 8px; display:flex; gap:8px; align-items:baseline; font-size:11.5px; pointer-events:none; white-space:nowrap; z-index:2; }
.cn-hbox span{ color:var(--dim); }

/* the play card: born at the clock, grows, glides to the acting team's half and parks over its name */
.cn-lt{ position:absolute; left:50%; top:64px; z-index:5; width:430px; max-width:calc(50% - 20px); height:86px; display:flex; align-items:stretch; background:var(--raise);
  border:1px solid rgba(255,255,255,.12); box-shadow:0 22px 50px rgba(0,0,0,.75); overflow:hidden; transform:translate(-50%,-50%);
  animation-duration:3.3s; animation-fill-mode:both; animation-timing-function:linear; }
.cn-ltph{ flex:none; width:86px; display:flex; align-items:center; justify-content:center; overflow:hidden; background:var(--chip); box-shadow:inset 0 -3px var(--tc); }
.cn-ltph > img:not(.crest-logo){ width:86px; height:86px; object-fit:cover; object-position:50% 12%; align-self:flex-end; }
.cn-ltx{ flex:1; min-width:0; display:flex; flex-direction:column; justify-content:center; gap:2px; padding:0 16px; }
.cn-ltk{ font-size:10px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:var(--tc); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cn-ltx b{ font-size:20px; font-weight:700; font-stretch:84%; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cn-ltx > span:last-child{ font-size:12px; color:#A9AEB8; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cn-ltn{ flex:none; display:flex; flex-direction:column; align-items:flex-end; justify-content:center; padding:0 18px; border-left:1px solid var(--line); }
.cn-ltn b{ font-size:38px; font-weight:600; font-stretch:66%; line-height:1; }
.cn-ltn b.warn{ color:var(--dn); }
.cn-ltn span{ font-size:10px; font-weight:700; letter-spacing:.12em; color:var(--dim); text-transform:uppercase; white-space:nowrap; }
.cn-lt > i{ position:absolute; left:0; right:0; bottom:0; height:2px; background:var(--tc); transform-origin:left; }
.cn-popl-0{ animation-name:cnPopL0; } .cn-popl-1{ animation-name:cnPopL1; } .cn-popr-0{ animation-name:cnPopR0; } .cn-popr-1{ animation-name:cnPopR1; }
@keyframes cnPopL0{ 0%{ left:50%; opacity:0; transform:translate(-50%,-50%) scale(.42); animation-timing-function:cubic-bezier(.34,1.4,.64,1); } 11%{ left:50%; opacity:1; transform:translate(-50%,-50%) scale(1); animation-timing-function:cubic-bezier(.65,0,.35,1); } 29%,89%{ left:calc(28px + 215px); opacity:1; transform:translate(-50%,-50%) scale(1); } 89%{ animation-timing-function:cubic-bezier(.7,0,.84,0); } 100%{ left:calc(28px + 215px); opacity:0; transform:translate(-50%,-64%); visibility:hidden; } }
@keyframes cnPopL1{ 0%{ left:50%; opacity:0; transform:translate(-50%,-50%) scale(.42); animation-timing-function:cubic-bezier(.34,1.4,.64,1); } 11%{ left:50%; opacity:1; transform:translate(-50%,-50%) scale(1); animation-timing-function:cubic-bezier(.65,0,.35,1); } 29%,89%{ left:calc(28px + 215px); opacity:1; transform:translate(-50%,-50%) scale(1); } 89%{ animation-timing-function:cubic-bezier(.7,0,.84,0); } 100%{ left:calc(28px + 215px); opacity:0; transform:translate(-50%,-64%); visibility:hidden; } }
@keyframes cnPopR0{ 0%{ left:50%; opacity:0; transform:translate(-50%,-50%) scale(.42); animation-timing-function:cubic-bezier(.34,1.4,.64,1); } 11%{ left:50%; opacity:1; transform:translate(-50%,-50%) scale(1); animation-timing-function:cubic-bezier(.65,0,.35,1); } 29%,89%{ left:calc(100% - 28px - 215px); opacity:1; transform:translate(-50%,-50%) scale(1); } 89%{ animation-timing-function:cubic-bezier(.7,0,.84,0); } 100%{ left:calc(100% - 28px - 215px); opacity:0; transform:translate(-50%,-64%); visibility:hidden; } }
@keyframes cnPopR1{ 0%{ left:50%; opacity:0; transform:translate(-50%,-50%) scale(.42); animation-timing-function:cubic-bezier(.34,1.4,.64,1); } 11%{ left:50%; opacity:1; transform:translate(-50%,-50%) scale(1); animation-timing-function:cubic-bezier(.65,0,.35,1); } 29%,89%{ left:calc(100% - 28px - 215px); opacity:1; transform:translate(-50%,-50%) scale(1); } 89%{ animation-timing-function:cubic-bezier(.7,0,.84,0); } 100%{ left:calc(100% - 28px - 215px); opacity:0; transform:translate(-50%,-64%); visibility:hidden; } }
.cn-hush-0, .cn-hush-1{ animation:cnHush0 3.3s linear both; }
.cn-hush-1{ animation-name:cnHush1; }
@keyframes cnHush0{ 0%,22%{ opacity:1; } 30%,88%{ opacity:.15; } 100%{ opacity:1; } }
@keyframes cnHush1{ 0%,22%{ opacity:1; } 30%,88%{ opacity:.15; } 100%{ opacity:1; } }
.cn-ltb-0, .cn-ltb-1{ animation:cnLtb0 2s .95s linear both; }
.cn-ltb-1{ animation-name:cnLtb1; }
@keyframes cnLtb0{ from{ transform:scaleX(1); } to{ transform:scaleX(0); } }
@keyframes cnLtb1{ from{ transform:scaleX(1); } to{ transform:scaleX(0); } }
.cn-ltp-0, .cn-ltp-1{ animation:cnRise0 .6s .12s var(--snap) both; }
.cn-ltp-1{ animation-name:cnRise1; }
@keyframes cnRise0{ from{ transform:translateY(18px); opacity:0; } to{ transform:none; opacity:1; } }
@keyframes cnRise1{ from{ transform:translateY(18px); opacity:0; } to{ transform:none; opacity:1; } }

/* the milestone hero (6.6 s): a line draws across the scoreboard, opens into a panel, the number rolls to the mark */
.cn-hb{ position:absolute; inset:0; z-index:8; overflow:hidden; pointer-events:none; }
.cn-hbback{ position:absolute; inset:0; background:radial-gradient(60% 140% at 50% 50%, rgba(20,18,12,.95), rgba(0,0,0,.97)); }
.cn-hbline{ position:absolute; left:0; right:0; top:50%; height:1px; background:linear-gradient(90deg, transparent, var(--acc) 20%, var(--acc) 80%, transparent); }
.cn-hbpanel{ position:absolute; left:50%; top:50%; width:min(940px, calc(100% - 40px)); height:172px; transform:translate(-50%,-50%); display:flex; align-items:stretch; overflow:hidden;
  background:#0A0A0B; border:1px solid rgba(255,255,255,.14); box-shadow:0 30px 90px rgba(0,0,0,.85); }
.cn-hb.gold .cn-hbpanel{ border-color:rgba(245,196,81,.45); }
.cn-hbph{ position:relative; flex:none; width:172px; display:flex; align-items:center; justify-content:center; overflow:hidden; background:var(--chip); }
.cn-hbph > img:not(.crest-logo){ width:100%; height:100%; object-fit:cover; object-position:50% 10%; }
.cn-hbph > i{ position:absolute; left:0; right:0; bottom:0; height:4px; background:var(--tc); }
.cn-hbmain{ flex:1; min-width:0; display:flex; flex-direction:column; justify-content:center; gap:4px; padding:0 30px; }
.cn-hbk{ font-size:11px; font-weight:800; letter-spacing:.22em; text-transform:uppercase; color:var(--acc); }
.cn-hbrow{ display:flex; align-items:flex-end; gap:16px; min-width:0; }
.cn-hbnum{ position:relative; display:flex; font-size:108px; font-weight:600; font-stretch:62%; line-height:1; letter-spacing:-.02em; color:var(--tx); }
.cn-hb.gold .cn-hbnum{ color:#FBE3A2; text-shadow:0 0 28px rgba(245,196,81,.25); }
.cn-hbdg{ display:block; height:1em; overflow:hidden; width:.52em; }
.cn-hbd{ display:block; transform:translateY(var(--b)); }
.cn-hbd span{ display:block; height:1em; text-align:center; }
.cn-hbring{ position:absolute; left:50%; top:50%; width:150px; height:150px; border-radius:50%; box-shadow:0 0 0 1.5px var(--acc); opacity:0; }
.cn-hbtx{ display:flex; flex-direction:column; gap:3px; padding-bottom:10px; min-width:0; }
.cn-hbtx > span:first-child{ font-size:12px; font-weight:700; letter-spacing:.16em; text-transform:uppercase; color:var(--sub); }
.cn-hbtx b{ font-size:22px; font-weight:700; font-stretch:84%; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cn-hbtx > span:last-child{ font-size:12px; color:#A9AEB8; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cn-hbfact{ flex:none; width:250px; display:flex; flex-direction:column; justify-content:center; gap:6px; padding:0 28px; border-left:1px solid var(--line); font-size:12.5px; font-weight:600; line-height:1.3; }
.cn-hbfact b{ font-size:44px; font-weight:600; font-stretch:66%; line-height:1; color:var(--acc); }
.cn-hbfact .cn-dim{ font-size:11.5px; font-weight:400; }
.cn-hbshine{ position:absolute; top:0; bottom:0; left:0; width:30%; background:linear-gradient(90deg, transparent, rgba(255,236,190,.09), transparent); transform:translateX(-120%); }
.cn-hb-0 .cn-hbback, .cn-hb-1 .cn-hbback{ animation:cnHbBack 6.6s linear both; }
.cn-hb-0 .cn-hbline, .cn-hb-1 .cn-hbline{ animation:cnHbLine 6.6s linear both; }
.cn-hb-0 .cn-hbpanel, .cn-hb-1 .cn-hbpanel{ animation:cnHbPanel 6.6s linear both; }
.cn-hb-0 .cn-hbph > img, .cn-hb-1 .cn-hbph > img{ animation:cnHbPhoto .8s .55s var(--snap) both; }
.cn-hb-0 .cn-hbup, .cn-hb-1 .cn-hbup{ animation:cnHbUp .6s var(--dl, .6s) var(--snap) both; }
.cn-hb-0 .cn-hbd, .cn-hb-1 .cn-hbd{ animation:cnHbRoll var(--d, 1.2s) .75s cubic-bezier(.2,.8,.2,1) both; }
.cn-hb-0 .cn-hbring, .cn-hb-1 .cn-hbring{ animation:cnHbRing 1.3s 1.85s cubic-bezier(.2,.8,.2,1) both; }
.cn-hb-0 .cn-hbring.two, .cn-hb-1 .cn-hbring.two{ animation-delay:2.05s; box-shadow:0 0 0 1px var(--acc); }
.cn-hb-0 .cn-hbshine, .cn-hb-1 .cn-hbshine{ animation:cnHbShine 1.1s 2.05s cubic-bezier(.4,0,.2,1) both; }
@keyframes cnHbBack{ 0%{ opacity:0; } 5%,92%{ opacity:1; } 100%{ opacity:0; } }
@keyframes cnHbLine{ 0%{ transform:scaleX(0); opacity:1; animation-timing-function:cubic-bezier(.65,0,.35,1); } 8%{ transform:scaleX(1); opacity:1; } 14%{ opacity:0; } 88%{ transform:scaleX(1); opacity:0; } 91%{ opacity:1; animation-timing-function:cubic-bezier(.7,0,.84,0); } 99%{ transform:scaleX(0); opacity:1; } 100%{ opacity:0; } }
@keyframes cnHbPanel{ 0%,6%{ clip-path:inset(50% 0 50% 0); animation-timing-function:cubic-bezier(.16,1,.3,1); } 15%{ clip-path:inset(0 0 0 0); } 89%{ clip-path:inset(0 0 0 0); animation-timing-function:cubic-bezier(.7,0,.84,0); } 96%{ clip-path:inset(50% 0 50% 0); } 100%{ clip-path:inset(50% 0 50% 0); visibility:hidden; } }
@keyframes cnHbPhoto{ from{ transform:translateY(28px) scale(1.06); opacity:0; } to{ transform:none; opacity:1; } }
@keyframes cnHbUp{ from{ transform:translateY(10px); opacity:0; } to{ transform:none; opacity:1; } }
@keyframes cnHbRoll{ from{ transform:translateY(var(--a)); } to{ transform:translateY(var(--b)); } }
@keyframes cnHbRing{ 0%{ transform:translate(-50%,-50%) scale(.5); opacity:0; } 10%{ opacity:.9; } 100%{ transform:translate(-50%,-50%) scale(2.6); opacity:0; } }
@keyframes cnHbShine{ from{ transform:translateX(-120%) skewX(-18deg); } to{ transform:translateX(320%) skewX(-18deg); } }

/* main and rail */
.cn-main{ flex:1; min-height:0; display:flex; }
.cn-body{ flex:1; min-width:0; display:flex; flex-direction:column; border-right:1px solid var(--line); }
.cn-rail{ flex:none; width:468px; display:flex; flex-direction:column; min-height:0; }
.cn-acc{ display:flex; flex-direction:column; min-height:0; border-bottom:1px solid var(--line); }
.cn-acc-ts{ flex:none; }
.cn-acc.cn-plays{ flex:1; border-bottom:0; }
.cn-acc.closed{ flex:none !important; }
.cn-acc.closed > .cn-accb{ display:none; }
.cn-rail.pb-closed .cn-acc-ts:not(.closed){ flex:1; }
.cn-rail.pb-closed .cn-acc.cn-plays{ border-bottom:1px solid var(--line); }
.cn-acch{ flex:none; display:flex; align-items:center; gap:10px; width:100%; height:46px; padding:0 20px; border:0; background:transparent; cursor:pointer; text-align:left; color:var(--sub); }
.cn-acch:hover, .cn-acch-pb > button:hover{ background:rgba(255,255,255,.03); }
.cn-acch-pb{ padding:0 20px 0 0; cursor:default; }
.cn-acch-pb > button{ display:flex; align-items:center; gap:10px; flex:1; min-width:0; height:100%; padding:0 0 0 20px; border:0; background:transparent; cursor:pointer; text-align:left; color:var(--sub); }
.cn-chev{ flex:none; transition:transform .3s var(--snap); }
.cn-acc.closed .cn-chev{ transform:rotate(-90deg); }
.cn-peek{ display:none; flex:1; min-width:0; font-size:11.5px; color:var(--dim); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cn-acc.closed .cn-peek{ display:block; }
.cn-acccrests{ margin-left:auto; display:flex; gap:6px; flex:none; }
.cn-acc.closed .cn-acccrests{ margin-left:0; }
.cn-acc.closed .cn-chips{ display:none; }
.cn-accb{ min-height:0; animation:cnAcc .35s var(--snap); }
@keyframes cnAcc{ from{ opacity:0; transform:translateY(-6px); } to{ opacity:1; transform:none; } }
.cn-pbbody{ flex:1; display:flex; flex-direction:column; }
.cn-feed{ overflow-anchor:auto; }
.cn-tabsrow{ flex:none; height:46px; display:flex; align-items:flex-end; gap:16px; padding:0 20px; border-bottom:1px solid var(--line); }
.cn-tabs{ position:relative; display:flex; gap:8px; height:100%; }
.cn-tabs button{ display:flex; align-items:center; justify-content:center; gap:7px; height:100%; border:0; background:transparent; cursor:pointer; font-size:13px; font-weight:600; color:var(--dim); padding:0; }
.cn-tabs button:hover, .cn-tabs button.on{ color:var(--tx); }
.cn-tabbar{ position:absolute; bottom:-1px; height:2px; background:var(--tx); transition:left .38s var(--snap), width .38s var(--snap); }
.cn-badge{ min-width:16px; height:16px; padding:0 4px; border-radius:8px; background:var(--ember); color:#000; font-size:10px; font-weight:800; display:inline-flex; align-items:center; justify-content:center; }
.cn-tabnote{ align-self:center; margin-left:auto; font-size:11.5px; color:var(--dim); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cn-pane{ flex:1; min-height:0; display:flex; flex-direction:column; }
.cn-pane > *{ flex:1; min-height:0; }
.cn-pane.cn-enter > *{ animation:cnView .4s var(--snap); }
@keyframes cnView{ from{ opacity:0; transform:translateY(6px); } to{ opacity:1; transform:none; } }

/* box score */
.cn-two{ display:grid; grid-template-columns:1fr 1fr; min-height:0; }
.cn-team{ display:flex; flex-direction:column; min-height:0; min-width:0; }
.cn-team-l{ border-right:1px solid var(--line); }
.cn-team > .cn-scroll{ flex:1; display:flex; flex-direction:column; }
.cn-team > .cn-scroll > .cn-brow{ flex:1 0 34px; }
.cn-team > .cn-scroll > .cn-btot{ flex:none; min-height:40px; }
.cn-team .cn-brow .cn-name{ white-space:normal; line-height:1.15; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.cn-teamh{ display:flex; align-items:center; gap:10px; padding:14px 20px 10px; font-size:12px; letter-spacing:.08em; }
.cn-teamh b{ font-weight:700; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cn-teamh > i{ width:16px; height:2px; flex:none; }
.cn-teamh > :last-child{ margin-left:auto; letter-spacing:0; font-size:11.5px; white-space:nowrap; }
.cn-brow{ display:grid; grid-template-columns:24px minmax(0,1fr) repeat(5,28px) 40px 36px 26px; column-gap:4px; align-items:center; padding:0 20px; min-height:28px; border-bottom:1px solid var(--line2); }
.cn-brow:hover{ background:rgba(255,255,255,.035); }
.cn-brow > .cn-num{ text-align:right; font-size:13px; padding:2px 0; color:#E6E8EC; }
.cn-brow > .cn-num.z{ color:var(--zero); }
.cn-brow > .cn-num.b{ font-weight:700; }
.cn-brow > .cn-num.r{ color:var(--dn); }
.cn-browh{ min-height:0; padding-bottom:6px; align-items:end; font-size:10px; font-weight:600; letter-spacing:.1em; text-transform:uppercase; color:var(--dim); border-bottom:1px solid var(--line); }
.cn-browh:hover{ background:none; }
.cn-browh > :nth-child(n+3){ text-align:right; }
.cn-browh button{ border:0; background:transparent; padding:0; cursor:pointer; text-align:right; font-size:10px; font-weight:600; letter-spacing:.1em; color:var(--dim); }
.cn-browh button:hover, .cn-browh button.on{ color:var(--tx); }
.cn-browh button.on{ text-decoration:underline; text-underline-offset:4px; text-decoration-color:var(--ember); }
.cn-brow.dnp{ opacity:.42; }
.cn-brow.fol{ background:rgba(245,196,81,.06); }
.cn-btot{ min-height:32px; border-top:1px solid rgba(255,255,255,.14); border-bottom:0; }
.cn-btot > .cn-num{ font-weight:700; }
.cn-no{ display:flex; align-items:center; gap:6px; color:var(--dim) !important; font-size:11.5px !important; justify-content:flex-start; text-align:left !important; }
.cn-no i{ width:5px; height:5px; border-radius:50%; flex:none; }
.cn-no i.on{ background:var(--tx); }
.cn-who{ display:flex; align-items:center; gap:8px; min-width:0; white-space:nowrap; }
.cn-who a{ color:var(--tx) !important; font-weight:500; overflow:hidden; text-overflow:ellipsis; }
.cn-name{ border:0; background:none; padding:0; cursor:pointer; color:var(--tx); font-weight:500; font-size:13.5px; overflow:hidden; text-overflow:ellipsis; text-align:left; white-space:nowrap; }
.cn-name:hover:not([disabled]){ text-decoration:underline; text-underline-offset:3px; }
.cn-name[disabled]{ cursor:default; }
.cn-star{ fill:var(--gold); flex:none; }
.cn-out{ font-size:9.5px; font-weight:800; color:var(--dn); letter-spacing:.1em; flex:none; }
.cn-face{ display:inline-flex; align-items:center; justify-content:center; border-radius:50%; overflow:hidden; flex:none; background:var(--chip); color:var(--dim); font-weight:700; }
.cn-face img{ width:100%; height:100%; object-fit:cover; object-position:50% 12%; }
.cn-rrow{ display:grid; grid-template-columns:30px minmax(0,1fr) 60px 60px; gap:8px; align-items:center; padding:0 20px; min-height:32px; border-bottom:1px solid var(--line2); }
.cn-fl-0, .cn-fl-1{ animation:cnFl0 1.3s cubic-bezier(.2,.8,.2,1); }
.cn-fl-1{ animation-name:cnFl1; }
@keyframes cnFl0{ 0%{ background:rgba(255,255,255,.16); color:#fff; } 100%{ background:transparent; } }
@keyframes cnFl1{ 0%{ background:rgba(255,255,255,.16); color:#fff; } 100%{ background:transparent; } }

/* advanced */
.cn-adv{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); min-height:0; }
.cn-lineups{ display:flex; flex-direction:column; min-height:0; border-right:1px solid var(--line); }
.cn-lineups > .cn-scroll{ flex:1; }
.cn-sech{ display:flex; align-items:center; gap:12px; padding:14px 20px 12px; font-size:11.5px; }
.cn-now{ display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:12px; padding:6px 20px 16px; border-bottom:1px solid var(--line); }
.cn-now > div{ display:flex; flex-direction:column; gap:6px; font-size:11px; }
.cn-now > div.r{ align-items:flex-end; }
.cn-stack{ display:inline-flex; }
.cn-stack .cn-face{ margin-left:-6px; box-shadow:0 0 0 2px #000; }
.cn-stack .cn-face:first-child{ margin-left:0; }
.cn-lrow{ display:grid; grid-template-columns:minmax(0,1fr) 44px 56px 120px; gap:10px; align-items:center; padding:10px 20px; border-top:1px solid var(--line2); }
.cn-lrow:hover{ background:rgba(255,255,255,.035); }
.cn-lrow > span:not(.cn-lwho){ text-align:right; }
.cn-lrowh{ padding:10px 20px 6px; border-top:0; font-size:10px; font-weight:600; letter-spacing:.1em; text-transform:uppercase; color:var(--dim); }
.cn-lrowh:hover{ background:none; }
.cn-lrowh > span:last-child{ text-align:center !important; }
.cn-lwho{ display:flex; flex-direction:column; gap:5px; min-width:0; }
.cn-lwho .cn-dim{ font-size:11px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cn-pm, .cn-oo{ display:grid; grid-template-columns:1fr 34px 1fr; align-items:center; gap:4px; }
.cn-pm > span, .cn-oo > span.neg, .cn-oo > span.pos{ height:4px; background:rgba(255,255,255,.05); position:relative; }
.cn-pm .neg i, .cn-oo .neg i{ position:absolute; right:0; top:0; bottom:0; background:var(--dn); transition:width .6s var(--snap); }
.cn-pm .pos i, .cn-oo .pos i{ position:absolute; left:0; top:0; bottom:0; background:var(--up); transition:width .6s var(--snap); }
.cn-pm b, .cn-oo b{ text-align:center; font-size:12.5px; }
.cn .up{ color:var(--up); } .cn .dn{ color:var(--dn); }
.cn-oo{ grid-template-columns:72px 1fr 38px 1fr 44px; gap:6px; margin:5px 0; font-size:12px; }
.cn-oo > span:last-child{ text-align:right; }
.cn-player{ display:flex; min-height:0; }
.cn-pick{ flex:none; width:64px; display:flex; flex-direction:column; align-items:center; gap:8px; padding:14px 0; border-right:1px solid var(--line); }
.cn-chip{ flex:none; width:38px; height:38px; border-radius:50%; overflow:hidden; padding:0; border:0; cursor:pointer; background:var(--chip); color:var(--dim); font-size:11px; font-weight:700;
  box-shadow:0 0 0 1.5px var(--tc); opacity:.7; }
.cn-chip:hover{ opacity:1; }
.cn-chip img{ width:100%; height:100%; object-fit:cover; object-position:50% 12%; }
.cn-chip.on{ opacity:1; box-shadow:0 0 0 2px #000, 0 0 0 3.5px var(--tx); }
.cn-card{ flex:1; padding:16px 22px; min-width:0; }
.cn-cardh{ display:flex; align-items:center; gap:14px; }
.cn-cardh > div{ display:flex; flex-direction:column; gap:3px; min-width:0; flex:1; }
.cn-cardh > div b{ font-size:18px; font-weight:700; font-stretch:86%; line-height:1.15; }
.cn-cardh > div .cn-dim{ font-size:12px; }
.cn-follow{ flex:none; display:inline-flex; align-items:center; gap:6px; height:32px; border:1px solid rgba(255,255,255,.16); background:transparent; color:var(--tx); border-radius:6px; padding:0 12px; cursor:pointer; font-size:12px; font-weight:600; }
.cn-follow svg{ fill:none; stroke:currentColor; stroke-width:1.8; }
.cn-follow.on{ color:var(--gold); border-color:rgba(245,196,81,.5); background:rgba(245,196,81,.1); }
.cn-follow.on svg{ fill:var(--gold); }
.cn-tiles{ display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); margin-top:18px; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.cn-tiles div{ display:flex; flex-direction:column; gap:2px; padding:12px 0 10px; }
.cn-tiles b{ font-size:34px; line-height:1; font-weight:600; font-stretch:66%; }
.cn-tiles span{ font-size:10px; font-weight:600; letter-spacing:.14em; color:var(--dim); }
.cn-small{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px 20px; margin-top:12px; font-size:12px; }
.cn-small > span{ display:flex; justify-content:space-between; border-bottom:1px solid var(--line2); padding-bottom:5px; }
.cn-small b{ font-weight:600; }
.cn-vs{ display:grid; grid-template-columns:72px 1fr 72px; gap:10px; align-items:center; margin:7px 0; font-size:12px; }
.cn-vs .bars{ display:flex; flex-direction:column; gap:3px; }
.cn-vs .bars > span{ height:4px; background:rgba(255,255,255,.05); }
.cn-vs .bars i{ display:block; height:100%; background:var(--faint); transition:width .6s var(--snap); }
.cn-vs > span:last-child{ text-align:right; }
.cn-vs b{ font-weight:600; }
.cn-vkey{ display:flex; align-items:center; gap:6px; color:var(--dim); font-size:11px; margin-top:8px; }
.cn-vkey i{ width:10px; height:4px; background:var(--faint); display:inline-block; margin-left:10px; }
.cn-vkey i:first-child{ margin-left:0; }

/* shot chart */
.cn-shots{ display:flex; flex-direction:column; gap:12px; padding:14px 20px 12px; min-height:0; }
.cn-sfilters{ flex:none; display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.cn-who-chip{ display:inline-flex; align-items:center; gap:7px; height:30px; padding:0 10px 0 4px; border-radius:15px; border:1px solid rgba(255,255,255,.18); background:rgba(255,255,255,.04); cursor:pointer; font-size:12px; font-weight:600; }
.cn-sbody{ flex:1; min-height:0; display:flex; gap:24px; }
.cn-courtcol{ flex:1; min-width:0; display:flex; flex-direction:column; gap:8px; }
.cn-courth{ display:flex; align-items:center; justify-content:space-between; gap:12px; font-size:11.5px; color:var(--dim); }
.cn-courth > span{ display:inline-flex; align-items:center; gap:8px; white-space:nowrap; }
.cn-courth b{ color:var(--tx); font-weight:600; }
.cn-court{ position:relative; width:100%; aspect-ratio:28/15; background:#08090B; }
.cn-court > svg{ position:absolute; inset:0; width:100%; height:100%; }
.cn-zf{ transition:fill .5s ease; }
.cn-zl{ position:absolute; transform:translate(-50%,-50%); display:flex; flex-direction:column; align-items:center; line-height:1.1; pointer-events:none; text-shadow:0 1px 2px #000; }
.cn-zl.c{ flex-direction:row; gap:4px; align-items:baseline; }
.cn-zl b{ font-size:12.5px; font-weight:700; }
.cn-zl span{ font-size:10px; color:var(--sub); }
.cn-dot{ position:absolute; width:11px; height:11px; padding:0; border:0; border-radius:50%; cursor:pointer; transform:translate(-50%,-50%); background:transparent; box-shadow:inset 0 0 0 1.8px var(--tc); opacity:.8; transition:opacity .35s ease; }
.cn-dot.m{ background:var(--tc); box-shadow:0 0 0 1.5px #08090B; opacity:1; }
.cn-dot.dim{ opacity:.12; }
.cn-dot.new{ z-index:3; }
.cn-dot.hov{ outline:2px solid var(--tx); outline-offset:2px; z-index:4; }
.cn-shot-0, .cn-shot-1{ animation:cnShot0 .55s cubic-bezier(.34,1.56,.64,1) both; }
.cn-shot-1{ animation-name:cnShot1; }
@keyframes cnShot0{ from{ transform:translate(-50%,-50%) scale(0); } to{ transform:translate(-50%,-50%) scale(1); } }
@keyframes cnShot1{ from{ transform:translate(-50%,-50%) scale(0); } to{ transform:translate(-50%,-50%) scale(1); } }
.cn-rip{ position:absolute; width:14px; height:14px; border-radius:50%; box-shadow:0 0 0 2px var(--ember); pointer-events:none; z-index:2; transform:translate(-50%,-50%); animation:cnRip 1.6s cubic-bezier(.2,.8,.2,1) infinite; }
@keyframes cnRip{ from{ transform:translate(-50%,-50%) scale(.5); opacity:.95; } to{ transform:translate(-50%,-50%) scale(3.4); opacity:0; } }
.cn-stag{ position:absolute; display:flex; align-items:center; gap:8px; height:22px; padding:0 8px; background:var(--raise); border:1px solid rgba(255,255,255,.14); font-size:11.5px; white-space:nowrap; pointer-events:none; z-index:4; transform:translate(var(--tx),0); }
.cn-stag span{ font-size:10px; font-weight:700; letter-spacing:.1em; }
.cn-stag span.miss{ color:var(--dim); }
.cn-tag-0, .cn-tag-1{ animation:cnTag0 .4s .2s var(--snap) both; }
.cn-tag-1{ animation-name:cnTag1; }
@keyframes cnTag0{ from{ opacity:0; transform:translate(var(--tx),4px); } to{ opacity:1; transform:translate(var(--tx),0); } }
@keyframes cnTag1{ from{ opacity:0; transform:translate(var(--tx),4px); } to{ opacity:1; transform:translate(var(--tx),0); } }
.cn-tip{ position:absolute; z-index:6; width:230px; padding:10px 12px; background:var(--raise); border:1px solid rgba(255,255,255,.14); box-shadow:0 14px 30px rgba(0,0,0,.6); pointer-events:none; }
.cn-tiph{ display:flex; align-items:center; gap:10px; }
.cn-tiph > span:last-child{ display:flex; flex-direction:column; gap:1px; font-size:11.5px; color:#A9AEB8; }
.cn-tiph b{ font-size:13px; color:var(--tx); }
.cn-tipf{ display:flex; justify-content:space-between; gap:16px; margin-top:8px; padding-top:7px; border-top:1px solid var(--line); font-size:11.5px; color:var(--dim); }
.cn-legend{ display:flex; align-items:center; gap:18px; font-size:11.5px; color:var(--dim); flex-wrap:wrap; }
.cn-legend > span{ display:inline-flex; align-items:center; gap:6px; }
.cn-legend i{ display:inline-block; width:9px; height:9px; border-radius:50%; }
.cn-lm{ background:var(--sub); }
.cn-lx{ box-shadow:inset 0 0 0 1.5px var(--sub); }
.cn-ll{ box-shadow:0 0 0 2px var(--ember); }
.cn-src{ width:5px !important; height:5px !important; background:var(--ember); animation:cnPulse 1.8s ease-in-out infinite; }
.cn-legend i.cn-grad{ width:120px; height:6px; border-radius:0; margin:0 2px; background:linear-gradient(90deg, rgba(96,130,182,.6), rgba(255,255,255,.06), rgba(242,163,58,.65)); }
.cn-spanel{ flex:none; width:300px; display:flex; flex-direction:column; }
.cn-split{ display:grid; grid-template-columns:1fr 64px 64px; gap:0 8px; align-items:center; padding:8px 0; border-bottom:1px solid var(--line2); font-size:12px; color:#A9AEB8; }
.cn-split > span.cn-num{ display:flex; flex-direction:column; align-items:flex-end; }
.cn-split > span.cn-num b{ font-size:15px; font-weight:600; color:var(--dim); }
.cn-split > span.cn-num.w b{ color:var(--tx); }
.cn-split > span.cn-num span{ font-size:10.5px; color:var(--dim); }
.cn-splith{ align-items:end; padding:0 0 8px; border-bottom:1px solid var(--line); }
.cn-splith > img, .cn-splith > .crest{ justify-self:end; }
.cn-h2gap{ margin:16px 0 4px !important; }
.cn-shooter{ display:flex; align-items:center; gap:10px; width:100%; padding:7px 0; border:0; border-bottom:1px solid var(--line2); background:transparent; cursor:pointer; text-align:left; }
.cn-shooter:hover{ background:rgba(255,255,255,.035); }
.cn-shooter.on{ background:rgba(255,255,255,.07); }
.cn-shooter.fresh{ background:rgba(222,169,0,.08); }
.cn-shooter.dim{ opacity:.45; }
.cn-shooter[disabled]{ cursor:default; }
.cn-shn{ display:flex; flex-direction:column; gap:4px; min-width:0; flex:1; }
.cn-shn b{ font-size:12.5px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cn-seq{ display:flex; gap:3px; flex-wrap:wrap; }
.cn-seq i{ width:7px; height:7px; border-radius:50%; box-shadow:inset 0 0 0 1.4px var(--tc); }
.cn-seq i.m{ background:var(--tc); box-shadow:none; }
.cn-seq i.new{ outline:1.5px solid var(--ember); outline-offset:1.5px; }
.cn-shr{ display:flex; flex-direction:column; align-items:flex-end; flex:none; }
.cn-shr b{ font-size:13px; font-weight:600; }
.cn-shr span{ font-size:10.5px; color:var(--dim); }

/* team stats */
.cn-compare{ padding:0 20px 12px; }
.cn-acc-ts:not(.closed) .cn-acch{ height:40px; }
.cn-cmph{ display:flex; align-items:center; margin-bottom:6px; }
.cn-cmph h2{ flex:1; text-align:center; }
.cn-cmp{ padding:5px 0 4px; }
.cn-cmp > div:first-child{ display:grid; grid-template-columns:110px 1fr 110px; align-items:baseline; font-size:12.5px; }
.cn-cmp .cn-num{ white-space:pre; color:var(--dim); font-weight:500; }
.cn-cmp .cn-num.w{ color:var(--tx); font-weight:700; }
.cn-cmp .cn-num.r{ text-align:right; }
.cn-cmp .cn-dim{ text-align:center; font-size:11px; }
.cn-cbar{ display:flex; gap:2px; height:3px; margin-top:4px; }
.cn-cbar i{ height:100%; transition:width .6s var(--snap); }

/* play-by-play */
.cn-plays{ flex:1; display:flex; flex-direction:column; min-height:0; }
.cn-chips{ margin-left:auto; display:flex; gap:2px; flex:none; }
.cn-chips button{ border:0; cursor:pointer; font-size:11.5px; font-weight:600; padding:0 9px; height:24px; border-radius:4px; background:transparent; color:var(--dim); }
.cn-chips button:hover{ color:var(--tx); }
.cn-chips button.on{ background:rgba(255,255,255,.12); color:var(--tx); }
.cn-run{ flex:none; display:flex; align-items:center; gap:12px; margin:0 20px 8px; padding:8px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); white-space:nowrap; }
.cn-run > b{ flex:none; font-size:28px; font-weight:600; font-stretch:66%; line-height:1; }
.cn-run > span{ display:flex; flex-direction:column; min-width:0; }
.cn-run > span .cn-lab{ color:var(--tx); font-weight:700; }
.cn-run > span > span:last-child{ font-size:12px; color:#A9AEB8; overflow:hidden; text-overflow:ellipsis; }
.cn-feedwrap{ position:relative; flex:1; min-height:0; display:flex; }
.cn-feed{ list-style:none; margin:0; padding:0 0 10px; flex:1; }
.cn-per-row{ position:sticky; top:0; z-index:1; background:#000; color:var(--dim); font-size:10px; font-weight:700; letter-spacing:.16em; text-transform:uppercase; padding:6px 20px; border-bottom:1px solid var(--line); }
.cn-play{ display:grid; grid-template-columns:44px 28px minmax(0,1fr) 56px; gap:10px; align-items:start; padding:9px 20px; border-top:1px solid var(--line2); }
.cn-play.fol{ background:rgba(245,196,81,.05); }
.cn-play.cn-msrow{ background:rgba(245,196,81,.06); box-shadow:inset 2px 0 var(--gold); }
.cn-msrow .cn-ptx > b i{ background:var(--gold) !important; transform:rotate(45deg); }
.cn-pt{ font-size:11px; color:var(--dim); padding-top:2px; }
.cn-ptx{ display:flex; flex-direction:column; gap:1px; min-width:0; }
.cn-ptx > span{ font-size:12px; color:#A9AEB8; }
.cn-ptx .cn-name, .cn-ptx > b{ display:flex; align-items:center; gap:7px; font-size:12.5px; font-weight:600; }
.cn-play.sc .cn-ptx .cn-name, .cn-play.sc .cn-ptx > b{ font-weight:700; }
.cn-ptx i{ width:6px; height:6px; flex:none; }
.cn-ps{ text-align:right; padding-top:1px; font-size:13px; color:#6B707B; }
.cn-play.sc .cn-ps{ color:var(--tx); font-weight:700; }
.cn-pill{ position:absolute; top:8px; left:50%; transform:translateX(-50%); z-index:2; border:0; border-radius:12px; background:var(--tx); color:#000 !important;
  font-weight:700; font-size:11.5px; padding:4px 12px; cursor:pointer; animation:cnPill .35s var(--snap); }
@keyframes cnPill{ from{ opacity:0; transform:translate(-50%,-6px); } to{ opacity:1; transform:translate(-50%,0); } }
.cn-in-0, .cn-in-1{ animation:cnIn0 .45s var(--snap); }
.cn-in-1{ animation-name:cnIn1; }
@keyframes cnIn0{ from{ opacity:0; transform:translateY(-10px); } to{ opacity:1; transform:none; } }
@keyframes cnIn1{ from{ opacity:0; transform:translateY(-10px); } to{ opacity:1; transform:none; } }

@media (prefers-reduced-motion:reduce){
  .cn *{ transition:none !important; }
  .cn-live i, .cn-src, .cn-rip{ animation:none; }
  .cn-popl-0, .cn-popl-1{ animation:cnFade .2s linear both !important; left:calc(28px + 215px); }
  .cn-popr-0, .cn-popr-1{ animation:cnFade .2s linear both !important; left:calc(100% - 28px - 215px); }
  .cn-hush-0, .cn-hush-1, .cn-accb{ animation:none; }
  .cn-hb *{ animation-duration:.01s !important; animation-delay:0s !important; }
  .cn-hb-0 .cn-hbpanel, .cn-hb-1 .cn-hbpanel, .cn-hb-0 .cn-hbback, .cn-hb-1 .cn-hbback{ animation:cnHbBack 6.6s linear both !important; clip-path:none; }
  .cn-hbring, .cn-hbshine, .cn-hbline{ display:none; }
  .cn-shot-0, .cn-shot-1, .cn-in-0, .cn-in-1, .cn-ltp-0, .cn-ltp-1, .cn-tag-0, .cn-tag-1, .cn-pane.cn-enter > *, .cn-pill, .cn-fl-0, .cn-fl-1{ animation:cnFade .2s linear both; }
  .cn-ltb-0, .cn-ltb-1{ animation:none; }
  @keyframes cnFade{ from{ opacity:0; } to{ opacity:1; } }
}

/* a desktop window: the companion is exactly one screen; lists scroll inside it */
@media (min-width:1181px){
  .cn{ height:100vh; height:100dvh; min-height:760px; overflow:hidden; }
  .cn-main{ min-height:0; }
}
/* narrower screens: one column, the page scrolls */
@media (max-width:1180px){
  .cn-main{ flex-direction:column; }
  .cn-body{ border-right:0; }
  .cn-rail{ width:auto; border-top:1px solid var(--line); }
  .cn-plays{ max-height:640px; }
  .cn-pane{ min-height:520px; }
  .cn-crumb > span{ display:none; }
}
@media (max-width:900px){
  .cn-top{ flex-wrap:wrap; height:auto; padding:10px 14px; gap:8px 12px; }
  .cn-rule{ display:none; }
  .cn-crumb{ order:3; flex-basis:100%; }
  .cn-fresh{ margin-left:auto; }
  .cn-delay{ order:4; }
  .cn a.cn-mbl{ order:5; margin-left:auto; }
  .cn-score{ grid-template-columns:1fr auto 1fr; height:auto; padding:12px 14px; gap:8px; }
  .cn-side, .cn-side-a, .cn-info, .cn-side-a .cn-info{ flex-direction:column; align-items:center; text-align:center; gap:6px; }
  .cn-info img.crest-logo, .cn-info .crest{ width:36px !important; height:36px !important; }
  .cn-names, .cn-side-a .cn-names{ align-items:center; }
  .cn-names > b{ display:none; }
  .cn-code{ font-size:13px; font-weight:700; color:var(--tx); letter-spacing:.1em; }
  .cn-side, .cn-info, .cn-names{ min-width:0; max-width:100%; }
  .cn-ticks .cn-lab{ display:none; }
  .cn-ticks i{ width:7px; }
  .cn-tos i{ width:10px; }
  .cn-bonus{ display:none; }
  .cn-lead{ max-width:150px; }
  .cn-atk{ display:none; }
  .cn-score{ grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) !important; }
  .cn-meta, .cn-side-a .cn-meta{ flex-direction:column; gap:4px; }
  .cn-big, .cn-side-a .cn-big{ margin:0; font-size:52px; }
  .cn-clock{ font-size:28px; }
  .cn-q{ grid-template-columns:28px repeat(var(--n), 21px) 24px; font-size:10.5px; }
  .cn-flow{ padding:8px 14px 6px; height:78px; }
  .cn-flowh > span:not(.cn-key):not(.cn-grow){ display:none; }
  .cn-lt{ top:auto; bottom:1px; left:50% !important; width:calc(100% - 24px); max-width:none; transform:translateX(-50%); animation:cnFade .3s linear both !important; height:72px; }
  .cn-ltph{ width:72px; } .cn-ltph > img:not(.crest-logo){ width:72px; height:72px; }
  .cn-hush-0, .cn-hush-1{ animation:none; }
  .cn-hbpanel{ height:auto; min-height:150px; flex-wrap:wrap; }
  .cn-hbph{ width:96px; }
  .cn-hbmain{ padding:12px 16px; }
  .cn-hbnum{ font-size:72px; }
  .cn-hbring{ width:100px; height:100px; }
  .cn-hbtx b{ font-size:16px; white-space:normal; }
  .cn-hbtx > span:last-child{ white-space:normal; }
  .cn-hbfact{ width:100%; border-left:0; border-top:1px solid var(--line); padding:10px 16px; flex-direction:row; align-items:baseline; flex-wrap:wrap; gap:4px 8px; }
  .cn-hbfact b{ font-size:28px; }
  .cn-tabsrow{ padding:0 14px; }
  .cn-tabnote{ display:none; }
  .cn-two, .cn-adv{ grid-template-columns:1fr; }
  .cn-team-l, .cn-lineups{ border-right:0; border-bottom:1px solid var(--line); }
  .cn-brow{ grid-template-columns:22px minmax(0,1fr) repeat(5,26px) 36px 32px 22px; padding:0 14px; column-gap:3px; }
  .cn-teamh{ padding:12px 14px 8px; }
  .cn-player{ flex-direction:column; }
  .cn-pick{ width:auto; flex-direction:row; overflow-x:auto; border-right:0; border-bottom:1px solid var(--line); padding:10px 14px; }
  .cn-small{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .cn-shots{ padding:12px 14px; }
  .cn-sbody{ flex-direction:column; }
  .cn-spanel{ width:auto; }
  .cn-courth{ font-size:10.5px; }
  .cn-dot{ width:8px; height:8px; }
  .cn-tip{ width:200px; }
  .cn-cmp > div:first-child{ grid-template-columns:110px 1fr 110px; }
}

/* ===================== MBL season page (#/mbl, app4zh_mbl.js) ===================== */
.nav-link.nav-mbl{ display:inline-flex; align-items:center; gap:7px; }
.nav-link.nav-mbl i{ width:6px; height:6px; border-radius:50%; background:radial-gradient(circle at 35% 30%,#f1d9a7,#cc9b00); animation:mbPing 2.2s ease-out infinite; }
@keyframes mbPing{ 0%{ box-shadow:0 0 0 0 rgba(232,181,50,.55); } 70%,100%{ box-shadow:0 0 0 7px rgba(232,181,50,0); } }
.mb-page{ --mb-dim:oklch(72% 0.014 255); --mb-on:linear-gradient(180deg,color-mix(in oklch,var(--on-bg) 80%,oklch(55% 0.08 255)),var(--on-bg));
  --mb-on-sh:inset 0 1px 0 rgba(255,255,255,.14),0 1px 3px rgba(0,0,0,.18); --mb-acc:linear-gradient(135deg,#f7cf75,#cc9b00); --mb-num:'Archivo',system-ui,sans-serif; }
.mb-page .mb-crest{ width:22px; height:22px; object-fit:contain; flex:none; vertical-align:middle; }
.mb-page .mb-crest-x{ display:inline-block; border-radius:50%; }
.mb-page .mb-flag{ display:block; border-radius:3px; box-shadow:0 0 0 1px rgba(0,0,0,.08),0 1px 3px rgba(0,0,0,.15); object-fit:cover; }
.mb-page .mb-flag-x{ display:grid; place-items:center; width:26px; height:20px; font-size:9px; font-weight:700; background:var(--surface-alt); color:var(--text-muted); }

/* hero */
.mb-hero{ background:var(--ink); color:#fff; position:relative; overflow:hidden; isolation:isolate; }
.mb-hero::before{ content:""; position:absolute; inset:-40% -10% auto auto; width:70%; aspect-ratio:1; border-radius:50%; background:radial-gradient(closest-side,oklch(61% 0.125 86/.22),transparent 70%); z-index:-1; animation:mbDrift 18s ease-in-out infinite alternate; }
@keyframes mbDrift{ to{ transform:translate(-12%,10%) scale(1.1); } }
.mb-court{ position:absolute; right:-60px; top:-30px; width:640px; height:auto; z-index:-1; opacity:.13; pointer-events:none; }
.mb-court path,.mb-court circle,.mb-court line{ fill:none; stroke:#fff; stroke-width:2; stroke-dasharray:1400; stroke-dashoffset:1400; animation:mbDraw 2.4s .2s cubic-bezier(.3,.6,.2,1) forwards; }
@keyframes mbDraw{ to{ stroke-dashoffset:0; } }
.mb-hero-in{ max-width:1320px; margin:0 auto; padding:34px 28px 22px; display:grid; grid-template-columns:minmax(0,1fr) 400px; gap:34px; align-items:end; }
.mb-brand{ display:flex; align-items:center; gap:14px; }
.mb-brand img{ height:46px; width:auto; display:block; filter:drop-shadow(0 4px 10px rgba(0,0,0,.4)); }
.mb-eye{ font:700 11.5px/1.5 var(--body); letter-spacing:.14em; text-transform:uppercase; color:#efca75; }
.mb-eye em{ font-style:normal; color:var(--mb-dim); letter-spacing:.1em; }
.mb-title{ margin:12px 0 0; font:800 clamp(56px,9vw,112px)/.86 var(--mb-num); font-stretch:62%; letter-spacing:-.01em; display:flex; align-items:baseline; gap:.18em; flex-wrap:wrap; color:#fff; }
.mb-title > span{ display:inline-block; animation:mbRise .7s cubic-bezier(.2,.7,.2,1) both; }
.mb-title > span + span{ animation-delay:.08s; }
.mb-yr{ color:transparent; -webkit-text-stroke:1.5px rgba(255,255,255,.9); }
.mb-yr em{ font-style:normal; background:linear-gradient(170deg,#eccb80,#cc9b00); -webkit-background-clip:text; background-clip:text; color:transparent; -webkit-text-stroke:0; }
@keyframes mbRise{ from{ transform:translateY(24px); opacity:0; } to{ transform:none; opacity:1; } }
.mb-dates{ margin-top:12px; font:600 15px var(--body); color:var(--mb-dim); }
.mb-dates b{ color:#fff; font-weight:600; }
.mb-crests{ display:flex; gap:10px; margin-top:22px; flex-wrap:wrap; }
.mb-crests a{ width:54px; height:54px; border-radius:50%; background:rgba(255,255,255,.94); display:grid; place-items:center; transition:transform .25s cubic-bezier(.3,.7,.2,1),box-shadow .25s; animation:mbPop .5s cubic-bezier(.3,1.4,.4,1) both; }
.mb-crests a:hover,.mb-crests a:focus-visible{ transform:translateY(-4px); box-shadow:0 0 0 3px oklch(70% 0.14 var(--h)); text-decoration:none; }
.mb-crests img{ width:40px; height:40px; object-fit:contain; }
@keyframes mbPop{ from{ transform:scale(.6); opacity:0; } to{ transform:none; opacity:1; } }
.mb-facts{ display:flex; margin-top:26px; border-top:1px solid var(--ink-line); flex-wrap:wrap; }
.mb-facts div{ padding:14px 22px 0 0; margin-right:22px; border-right:1px solid var(--ink-line); }
.mb-facts div:last-child{ border-right:0; }
.mb-facts b{ display:block; font:700 30px/1 var(--mb-num); font-stretch:75%; font-variant-numeric:tabular-nums; }
.mb-facts span{ font-size:11.5px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--mb-dim); }
.mb-next{ background:var(--ink-2); border:1px solid var(--ink-line); border-radius:18px; padding:18px; display:grid; gap:14px; animation:mbRise .6s .15s cubic-bezier(.2,.7,.2,1) both; }
.mb-nt{ display:flex; justify-content:space-between; align-items:center; gap:10px; font-size:11.5px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--mb-dim); }
.mb-nt em{ font-style:normal; color:#efca75; }
.mb-mu{ display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:10px; text-align:center; }
.mb-tm{ display:grid; justify-items:center; gap:8px; font-weight:600; font-size:13.5px; line-height:1.2; }
.mb-tm i{ width:62px; height:62px; border-radius:50%; background:rgba(255,255,255,.94); display:grid; place-items:center; }
.mb-tm img{ width:46px; height:46px; object-fit:contain; }
.mb-vs{ font:700 13px var(--body); color:var(--mb-dim); }
.mb-sc{ font:700 40px/1 var(--mb-num); font-stretch:70%; font-variant-numeric:tabular-nums; display:flex; gap:10px; align-items:center; }
.mb-sc s{ text-decoration:none; color:var(--mb-dim); }
.mb-cd{ display:grid; grid-template-columns:repeat(4,1fr); gap:6px; }
.mb-cd div{ background:linear-gradient(180deg,var(--ink-2),var(--ink)); border:1px solid var(--ink-line); border-radius:12px; padding:10px 0 8px; text-align:center; overflow:hidden; }
.mb-cd b{ display:block; font:700 34px/1 var(--mb-num); font-stretch:70%; font-variant-numeric:tabular-nums; height:34px; overflow:hidden; }
.mb-cd b span{ display:block; }
.mb-cd b span.mb-roll{ animation:mbRoll .45s cubic-bezier(.3,.7,.2,1); }
@keyframes mbRoll{ from{ transform:translateY(-100%); opacity:0; } to{ transform:none; opacity:1; } }
.mb-cd small{ font-size:10.5px; font-weight:700; letter-spacing:.1em; color:var(--mb-dim); }
.mb-where{ font-size:12.5px; color:var(--mb-dim); }
.mb-go{ text-align:center; font-weight:600; font-size:13px; padding:10px; border-radius:10px; background:rgba(255,255,255,.08); color:#fff; transition:background .2s; }
.mb-go:hover{ background:rgba(255,255,255,.14); color:#fff; text-decoration:none; }
.mb-tour{ max-width:1320px; margin:0 auto; padding:6px 28px 26px; }
.mb-tour-sc{ overflow-x:auto; scrollbar-width:thin; padding-bottom:4px; }
.mb-tour-in{ position:relative; min-width:760px; height:84px; }
.mb-rail{ position:absolute; left:0; right:0; top:44px; height:2px; background:var(--ink-line); border-radius:2px; }
.mb-fill{ position:absolute; left:0; top:44px; height:2px; background:linear-gradient(90deg,rgba(232,181,50,0),#e8b532); border-radius:2px; width:0; transition:width 1.4s .3s cubic-bezier(.3,.7,.2,1); }
.mb-lg{ position:absolute; top:0; height:84px; display:flex; flex-direction:column; align-items:flex-start; }
.mb-lg b{ font:700 13px var(--display); letter-spacing:.02em; white-space:nowrap; }
.mb-lg small{ font-size:11px; color:var(--mb-dim); white-space:nowrap; }
.mb-dots{ position:absolute; top:38px; display:flex; gap:3px; }
.mb-dots i{ width:13px; height:13px; border-radius:50%; background:var(--ink); border:2px solid var(--ink-line); }
.mb-dots i.on{ background:radial-gradient(circle at 35% 30%,#f1d9a7,#cc9b00 70%); border-color:#e4b335; }
.mb-dots i.po{ border-radius:3px; }
.mb-now{ position:absolute; top:26px; width:0; transition:left 1.4s .3s cubic-bezier(.3,.7,.2,1); }
.mb-now::before{ content:""; position:absolute; left:-1px; top:4px; width:2px; height:28px; background:#fff; border-radius:2px; }
.mb-now span{ position:absolute; left:0; top:36px; transform:translateX(-50%); font-size:10.5px; font-weight:700; letter-spacing:.08em; color:#fff; white-space:nowrap; }

/* section bar */
.mb-snav{ position:sticky; top:60px; z-index:15; background:color-mix(in oklch,var(--bg) 88%,transparent); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); border-bottom:1px solid var(--border); }
.mb-snav-in{ max-width:1320px; margin:0 auto; padding:8px 28px; display:flex; align-items:center; gap:4px; overflow-x:auto; scrollbar-width:none; position:relative; }
.mb-snav a{ position:relative; z-index:1; color:var(--text-muted); font-weight:600; font-size:13.5px; padding:8px 14px; border-radius:999px; white-space:nowrap; transition:color .25s; }
.mb-snav a:hover{ text-decoration:none; color:var(--text); }
.mb-snav a.on{ color:var(--on-fg); }
.mb-pill{ position:absolute; top:8px; bottom:8px; left:0; width:0; border-radius:999px; background:var(--mb-on); box-shadow:var(--mb-on-sh); transition:transform .35s cubic-bezier(.3,.7,.2,1),width .35s cubic-bezier(.3,.7,.2,1); pointer-events:none; }
.mb-snav-logo{ display:inline-flex; align-items:center; gap:8px; margin-right:10px; padding-right:12px; border-right:1px solid var(--border); flex:none; }
.mb-snav-logo img{ height:22px; width:auto; display:block; }
.mb-snav-logo b{ font:700 13px var(--display); color:var(--text-muted); }

/* sections */
.mb-wrap{ max-width:1320px; margin:0 auto; padding:26px 28px 64px; display:flex; flex-direction:column; gap:40px; }
.mb-sec{ scroll-margin-top:122px; display:grid; gap:14px; }
.mb-sh{ display:flex; align-items:flex-end; gap:12px; flex-wrap:wrap; }
.mb-sh h2{ margin:0; font:700 26px/1 var(--display); letter-spacing:-.01em; }
.mb-sub{ font-size:13px; color:var(--text-muted); }
.mb-tools{ margin-left:auto; display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.mb-card{ background:var(--surface); border:1px solid var(--border); border-radius:16px; }
.mb-empty{ grid-column:1/-1; padding:30px 18px; text-align:center; color:var(--text-muted); background:var(--surface); border:1px solid var(--border); border-radius:16px; }
.mb-seg{ display:inline-flex; padding:3px; border-radius:12px; background:var(--surface); border:1px solid var(--border); position:relative; gap:2px; }
.mb-seg button{ all:unset; cursor:pointer; position:relative; z-index:1; padding:7px 12px; border-radius:9px; font-size:13px; font-weight:600; color:var(--text-muted); transition:color .25s; white-space:nowrap; }
.mb-seg button[aria-pressed="true"]{ color:var(--on-fg); }
.mb-seg button:disabled{ opacity:.45; cursor:not-allowed; }
.mb-seg button:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; }
.mb-ind{ position:absolute; top:3px; bottom:3px; left:0; border-radius:9px; background:var(--mb-on); box-shadow:var(--mb-on-sh); transition:transform .32s cubic-bezier(.3,.7,.2,1),width .32s cubic-bezier(.3,.7,.2,1); pointer-events:none; }
.mb-tf{ display:flex; gap:4px; padding:3px; border-radius:12px; background:var(--surface); border:1px solid var(--border); }
.mb-tf button{ all:unset; cursor:pointer; height:32px; min-width:32px; padding:0 8px; border-radius:9px; display:grid; place-items:center; font-size:12.5px; font-weight:600; color:var(--text-muted); transition:background .2s,color .2s; }
.mb-tf button:hover{ background:var(--surface-alt); }
.mb-tf button:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; }
.mb-tf button[aria-pressed="true"]{ background:var(--mb-on); color:var(--on-fg); box-shadow:var(--mb-on-sh); }
.mb-tf button.t[aria-pressed="true"]{ background:color-mix(in oklch,oklch(60% 0.15 var(--h)) 22%,var(--surface)); box-shadow:inset 0 0 0 2px oklch(58% 0.15 var(--h)); }
.mb-tf img{ width:24px; height:24px; object-fit:contain; }

/* games */
.mb-legs{ display:grid; grid-template-columns:repeat(auto-fill,minmax(340px,1fr)); gap:14px; }
.mb-leg{ background:var(--surface); border:1px solid var(--border); border-radius:16px; padding:16px 16px 10px; display:grid; gap:10px; align-content:start; transition:opacity .3s; }
.mb-leg.dim{ opacity:.4; }
.mb-leg-h{ display:flex; align-items:baseline; justify-content:space-between; gap:10px; }
.mb-leg-h div{ display:grid; gap:2px; }
.mb-leg-h span{ font-size:11.5px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--text-faint); }
.mb-leg-h b{ font:700 20px/1 var(--display); }
.mb-leg-h em{ font-style:normal; font-size:12.5px; color:var(--text-muted); }
.mb-leg-h em i{ font-style:normal; color:var(--accent-2-ink); font-weight:700; }
.mb-day{ font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--text-muted); padding:6px 0 0; border-top:1px solid var(--hair); }
.mb-gm{ display:grid; grid-template-columns:minmax(0,1fr) 78px minmax(0,1fr); align-items:center; gap:8px; padding:7px 8px; margin:0 -8px; border-radius:10px; color:var(--text); transition:background .2s,opacity .3s; }
.mb-gm:hover{ background:var(--surface-alt); text-decoration:none; }
.mb-gm .s{ display:flex; align-items:center; gap:8px; min-width:0; font-size:13.5px; font-weight:500; }
.mb-gm .s:first-child{ justify-content:flex-end; text-align:right; }
.mb-gm .s span{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.mb-gm .s.w{ font-weight:700; }
.mb-gm .m{ text-align:center; font:700 16px var(--mb-num); font-stretch:80%; font-variant-numeric:tabular-nums; white-space:nowrap; }
.mb-gm .m.up{ font:600 12.5px var(--body); color:var(--text-muted); }
.mb-gm .m small{ display:block; font:700 9.5px var(--body); letter-spacing:.08em; color:var(--accent-2-ink); text-transform:uppercase; }
.mb-gm.fade{ opacity:.28; }
.mb-gm.hit{ background:color-mix(in oklch,oklch(60% 0.15 var(--h)) 9%,transparent); }

/* standings */
.mb-stw{ overflow-x:auto; }
.mb-st{ width:100%; border-collapse:collapse; font-size:13.5px; }
.mb-st th{ font-size:11px; font-weight:700; letter-spacing:.07em; text-transform:uppercase; color:var(--text-muted); text-align:right; padding:12px 10px; border-bottom:1px solid var(--border); white-space:nowrap; background:none; }
.mb-st td{ text-align:right; padding:11px 10px; border-bottom:1px solid var(--hair); white-space:nowrap; font-variant-numeric:tabular-nums; }
.mb-st tr:last-child td{ border-bottom:0; }
.mb-st th:nth-child(2),.mb-st td:nth-child(2){ text-align:left; }
.mb-st th:first-child,.mb-st td:first-child{ text-align:center; width:44px; }
.mb-st td.tm{ display:flex; align-items:center; gap:10px; font-weight:600; }
.mb-st td.tm .mb-crest{ width:26px; height:26px; }
.mb-st td.tm a{ color:var(--text); }
.mb-st tbody tr{ animation:mbRowIn .45s cubic-bezier(.2,.7,.2,1) both; }
@keyframes mbRowIn{ from{ opacity:0; transform:translateX(-8px); } to{ opacity:1; transform:none; } }
.mb-st .pos{ font:700 18px var(--mb-num); font-stretch:75%; }
.mb-l5{ display:inline-flex; gap:3px; }
.mb-l5 i{ width:16px; height:16px; border-radius:4px; font:700 9.5px/16px var(--body); text-align:center; font-style:normal; background:var(--surface-alt); color:var(--text-faint); }
.mb-l5 i.w{ background:var(--positive-soft); color:var(--positive-ink); }
.mb-l5 i.l{ background:var(--negative-soft); color:var(--negative); }
.mb-dbar{ display:inline-grid; grid-template-columns:44px 44px; align-items:center; vertical-align:middle; margin-left:8px; }
.mb-dbar i{ height:8px; display:block; }
.mb-dbar i:first-child{ justify-self:end; border-radius:4px 0 0 4px; background:linear-gradient(90deg,var(--negative),color-mix(in oklch,var(--negative) 45%,transparent)); }
.mb-dbar i:last-child{ border-radius:0 4px 4px 0; background:linear-gradient(90deg,color-mix(in oklch,var(--positive) 45%,transparent),var(--positive)); }
.mb-st .prev{ font-size:12px; color:var(--text-muted); }
.mb-st .prev b{ color:var(--text); font-weight:600; }

/* teams */
.mb-tiles{ display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px; }
.mb-tile{ all:unset; cursor:pointer; background:var(--surface); border:1px solid var(--border); border-radius:16px; padding:16px 14px 14px; display:grid; gap:10px; justify-items:start; align-content:start; position:relative; overflow:hidden; transition:border-color .25s,transform .25s cubic-bezier(.3,.7,.2,1),box-shadow .25s; }
.mb-tile::after{ content:""; position:absolute; inset:auto -30% -60% auto; width:120%; aspect-ratio:1; border-radius:50%; background:radial-gradient(closest-side,oklch(65% 0.15 var(--h)/.16),transparent); pointer-events:none; opacity:.6; transition:opacity .3s; }
.mb-tile:hover{ transform:translateY(-3px); box-shadow:var(--shadow-2); }
.mb-tile:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; }
.mb-tile[aria-pressed="true"]{ border-color:oklch(58% 0.15 var(--h)); box-shadow:0 0 0 1px oklch(58% 0.15 var(--h)),var(--shadow-2); }
.mb-tile[aria-pressed="true"]::after{ opacity:1; }
.mb-tile .cr img{ width:52px; height:52px; object-fit:contain; }
.mb-tile > b{ font:700 16px/1.15 var(--display); text-wrap:balance; }
.mb-tile .meta{ display:flex; flex-wrap:wrap; gap:4px 10px; font-size:12px; color:var(--text-muted); }
.mb-tile .meta b{ font:600 12px var(--body); color:var(--text); }
.mb-tile .hist{ display:flex; gap:4px; flex-wrap:wrap; }
.mb-tile .hist i{ font-style:normal; font-size:10.5px; font-weight:700; padding:3px 6px; border-radius:6px; background:var(--surface-alt); color:var(--text-muted); }
.mb-tile .hist i.ch{ background:var(--accent-2-soft); color:var(--accent-2-ink); }
.mb-tile .hist i.na{ opacity:.6; }
.mb-rhead{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:12px; }
.mb-rhead .mb-crest{ width:34px; height:34px; }
.mb-rhead > b{ font:700 20px var(--display); }
/* flip cards */
.mb-ros{ display:grid; grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); gap:12px; }
.mb-pc{ display:block; perspective:1100px; color:var(--text); animation:mbCardIn .45s cubic-bezier(.2,.7,.2,1) both; -webkit-tap-highlight-color:transparent; }
.mb-pc:hover{ text-decoration:none; }
@keyframes mbCardIn{ from{ opacity:0; transform:translateY(10px) scale(.98); } to{ opacity:1; transform:none; } }
.mb-pc .pc-in{ display:grid; transform-style:preserve-3d; transition:transform .75s cubic-bezier(.3,1.25,.45,1) .06s; position:relative; }
.mb-pc:hover .pc-in,.mb-pc:focus-visible .pc-in,.mb-pc.flip .pc-in{ transform:rotateY(180deg); }
.mb-pc:focus-visible{ outline:none; }
.mb-pc:focus-visible .fc{ outline:2px solid var(--accent); outline-offset:2px; }
.mb-pc .fc{ grid-area:1/1; backface-visibility:hidden; -webkit-backface-visibility:hidden; border-radius:16px; position:relative; overflow:hidden; min-height:214px; padding:16px; display:flex; flex-direction:column; transition:box-shadow .5s; }
.mb-pc:hover .fc{ box-shadow:0 18px 40px -12px oklch(30% 0.08 var(--h)/.45); }
.mb-pc .fr{ background:linear-gradient(160deg,color-mix(in oklch,oklch(72% 0.12 var(--h)) 13%,var(--surface)) 0%,var(--surface) 58%); border:1px solid var(--border); align-items:center; text-align:center; gap:10px; }
.mb-pc .fr .no{ position:absolute; left:12px; top:6px; font:800 44px/1 var(--mb-num); font-stretch:62%; background:linear-gradient(180deg,oklch(70% 0.1 var(--h)/.5),oklch(70% 0.1 var(--h)/.05)); -webkit-background-clip:text; background-clip:text; color:transparent; }
.mb-pc .fr .ph{ width:76px; height:76px; border-radius:50%; overflow:hidden; background:linear-gradient(160deg,oklch(38% 0.03 255),oklch(20% 0.015 255)); color:#fff; display:grid; place-items:center; font:700 22px var(--display); box-shadow:0 0 0 3px var(--surface),0 0 0 5px oklch(65% 0.12 var(--h)/.55); margin-top:4px; }
.mb-pc .ph img{ width:100%; height:100%; object-fit:cover; object-position:top; }
.mb-pc .fr .nm{ font-weight:700; font-size:14.5px; line-height:1.2; text-wrap:balance; min-height:2.4em; display:flex; align-items:center; }
.mb-pc .fr .meta{ margin-top:auto; width:100%; display:grid; grid-template-columns:repeat(3,1fr) auto; align-items:center; border-top:1px solid var(--hair); padding-top:10px; }
.mb-pc .fr .meta > span{ display:grid; gap:1px; }
.mb-pc .fr .meta small{ font-size:9.5px; font-weight:700; letter-spacing:.08em; color:var(--text-faint); }
.mb-pc .fr .meta b{ font:700 15px var(--mb-num); font-stretch:85%; color:var(--text); }
.mb-pc .fr .meta b small{ font:600 9.5px var(--body); color:var(--text-muted); letter-spacing:0; margin-left:1px; }
.mb-pc .fr .meta .fl{ padding-left:6px; display:grid; place-items:center; }
.mb-pc .bk{ transform:rotateY(180deg); color:#fff; gap:10px; background:radial-gradient(120% 90% at 100% 0%,oklch(52% 0.13 var(--h)/.55),transparent 60%),linear-gradient(160deg,oklch(27% 0.03 var(--h)),oklch(15% 0.02 255)); border:1px solid oklch(40% 0.05 var(--h)); }
.mb-pc .bk::after{ content:""; position:absolute; inset:0; background:linear-gradient(115deg,transparent 30%,rgba(255,255,255,.16) 48%,transparent 62%); transform:translateX(-120%); pointer-events:none; }
.mb-pc:hover .bk::after,.mb-pc.flip .bk::after{ animation:mbGlare 1s .45s ease-out; }
@keyframes mbGlare{ to{ transform:translateX(120%); } }
.mb-pc .bk .no{ position:absolute; right:12px; top:6px; font:800 44px/1 var(--mb-num); font-stretch:62%; color:rgba(255,255,255,.1); }
.mb-pc .bk-h{ display:grid; gap:2px; }
.mb-pc .bk-h span{ font-size:10.5px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:#efca75; }
.mb-pc .bk-h em{ font-style:normal; font-size:12px; color:rgba(255,255,255,.75); }
.mb-pc .bk-big{ display:flex; align-items:flex-end; gap:8px; }
.mb-pc .bk-big b{ font:800 46px/.9 var(--mb-num); font-stretch:68%; background:linear-gradient(180deg,#fff,#f1daaa); -webkit-background-clip:text; background-clip:text; color:transparent; }
.mb-pc .bk-big small{ font-size:10px; font-weight:700; letter-spacing:.08em; color:rgba(255,255,255,.7); line-height:1.2; padding-bottom:3px; }
.mb-pc .bk-g{ display:grid; grid-template-columns:repeat(5,1fr); gap:4px; margin-top:auto; border-top:1px solid rgba(255,255,255,.14); padding-top:9px; }
.mb-pc .bk-g span{ display:grid; gap:1px; text-align:center; }
.mb-pc .bk-g b{ font:700 15px var(--mb-num); font-stretch:85%; }
.mb-pc .bk-g small{ font-size:9px; font-weight:700; letter-spacing:.06em; color:rgba(255,255,255,.65); }
.mb-pc .bk-f{ font-size:11px; color:rgba(255,255,255,.65); }
.mb-pc .bk-rk{ margin:auto 0; display:grid; justify-items:center; gap:6px; text-align:center; }
.mb-pc .bk-rk b{ font:800 44px/1 var(--mb-num); font-stretch:70%; letter-spacing:.06em; background:linear-gradient(180deg,#f3dfb3,#e4b335); -webkit-background-clip:text; background-clip:text; color:transparent; }
.mb-pc .bk-rk.imp b{ background:linear-gradient(180deg,#fff,#b9c8dc); -webkit-background-clip:text; background-clip:text; }
.mb-pc .bk-rk small{ font-size:11.5px; color:rgba(255,255,255,.75); }
.mb-pc:hover .bk-rk b,.mb-pc.flip .bk-rk b{ animation:mbStamp .55s .35s cubic-bezier(.3,1.5,.5,1) both; }
@keyframes mbStamp{ from{ transform:scale(1.5); opacity:0; letter-spacing:.3em; } to{ transform:none; opacity:1; } }
/* height lineup */
.mb-hlc{ display:grid; grid-template-columns:minmax(0,1fr) 300px; overflow:hidden; }
.mb-hlc .hl-main{ padding:16px 18px 10px; min-width:0; }
.mb-hlc h3{ margin:0 0 6px; font:700 15px var(--display); display:flex; gap:12px; align-items:center; flex-wrap:wrap; }
.mb-hlc .hl-main h3 span{ font:500 12.5px var(--body); color:var(--text-muted); display:inline-flex; gap:6px; align-items:center; }
.mb-hlc .hl-main h3 .lgd{ margin-left:auto; }
.mb-hlc .lgd i{ width:10px; height:10px; border-radius:3px; display:inline-block; background:linear-gradient(oklch(72% 0.13 var(--h)),oklch(48% 0.14 var(--h))); }
.mb-hlc .lgd i.o{ background:linear-gradient(oklch(82% 0.05 var(--h)),oklch(64% 0.07 var(--h))); margin-left:8px; }
.mb-hlc .hl-sc{ overflow-x:auto; }
.mb-hlc .hl{ width:100%; height:auto; display:block; }
.mb-hlc .hl text{ fill:var(--text-faint); font:500 10.5px var(--body); }
.mb-hlc .hl .ax{ stroke:var(--border); stroke-dasharray:2 5; }
.mb-hlc .hl .avg{ stroke:var(--accent-2); stroke-width:1.5; stroke-dasharray:6 4; }
.mb-hlc .hl .avt{ fill:var(--accent-2-ink); font:700 11px var(--body); }
.mb-hlc .hl .jn{ fill:#fff; font:700 11px var(--body); opacity:.92; }
.mb-hlc .hl .cm{ fill:var(--text); font:700 11px var(--mb-num); font-stretch:80%; }
.mb-hlc .hl .imf{ filter:drop-shadow(0 1px 1.5px rgba(0,0,0,.25)); }
.mb-hlc .fig{ animation:mbStand .7s cubic-bezier(.25,.8,.25,1) both; transition:opacity .2s; }
.mb-hlc .hl:hover .fig{ opacity:.45; }
.mb-hlc .hl .fig:hover{ opacity:1; }
@keyframes mbStand{ from{ transform:scaleY(0); } to{ transform:none; } }
.mb-hlc .hl-side{ padding:16px; border-left:1px solid var(--border); background:linear-gradient(180deg,var(--surface-alt),var(--surface)); display:grid; gap:4px; align-content:start; }
.mb-hlc .av{ all:unset; cursor:pointer; display:grid; grid-template-columns:14px 24px minmax(0,1fr) auto; gap:10px; align-items:center; padding:8px; border-radius:12px; transition:background .2s,box-shadow .2s; }
.mb-hlc .av:hover{ background:var(--surface); }
.mb-hlc .av:focus-visible{ outline:2px solid var(--accent); }
.mb-hlc .av[aria-pressed="true"]{ background:var(--surface); box-shadow:inset 0 0 0 1.5px oklch(60% 0.14 var(--h)),var(--shadow-2); }
.mb-hlc .av .r{ font:700 12px var(--body); color:var(--text-faint); }
.mb-hlc .av .mb-crest{ width:24px; height:24px; }
.mb-hlc .av .n{ min-width:0; display:grid; gap:3px; }
.mb-hlc .av .n b{ font-size:13px; font-weight:600; }
.mb-hlc .av .n small{ font-size:11px; color:var(--text-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mb-hlc .av .bar{ height:5px; border-radius:3px; background:var(--hair); overflow:hidden; }
.mb-hlc .av .bar i{ display:block; height:100%; width:var(--w); border-radius:3px; background:linear-gradient(90deg,oklch(78% 0.1 var(--h)),oklch(56% 0.15 var(--h))); transform-origin:left; animation:mbGrow .9s cubic-bezier(.3,.7,.2,1) both; }
.mb-hlc .av .v{ font:700 18px var(--mb-num); font-stretch:80%; text-align:right; }
.mb-hlc .av .v small{ font:600 10px var(--body); color:var(--text-faint); margin-left:2px; }
@keyframes mbGrow{ from{ transform:scaleX(0); } to{ transform:none; } }
.mb-tip{ position:fixed; z-index:60; pointer-events:none; background:var(--on-bg); color:var(--on-fg); font-size:12px; font-weight:600; padding:6px 9px; border-radius:8px; box-shadow:var(--shadow-2); opacity:0; transition:opacity .15s; white-space:nowrap; }
.mb-tip.on{ opacity:1; }

/* stats */
.mb-lead{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.mb-lb{ padding:14px 16px; display:grid; gap:4px; align-content:start; }
.mb-lb h3{ margin:0 0 6px; font:700 15px var(--display); display:flex; justify-content:space-between; align-items:baseline; }
.mb-lb h3 small{ font:600 11px var(--body); color:var(--text-faint); letter-spacing:.06em; }
.mb-lr{ display:grid; grid-template-columns:18px 30px minmax(0,1fr) 46px; gap:10px; align-items:center; padding:5px 0; color:var(--text); }
.mb-lr:hover{ text-decoration:none; }
.mb-lr:hover .n b span{ text-decoration:underline; }
.mb-lr .r{ font:700 13px var(--body); color:var(--text-faint); text-align:center; }
.mb-lr .ph{ width:30px; height:30px; border-radius:50%; overflow:hidden; background:linear-gradient(160deg,oklch(38% 0.03 255),oklch(20% 0.015 255)); color:#fff; display:grid; place-items:center; font:700 11px var(--display); }
.mb-lr .ph img{ width:100%; height:100%; object-fit:cover; object-position:top; }
.mb-lr .n{ min-width:0; display:grid; gap:4px; }
.mb-lr .n b{ font-size:13px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; display:flex; gap:6px; align-items:center; }
.mb-lr .n b img{ width:16px; height:16px; object-fit:contain; }
.mb-lr .bar{ height:4px; border-radius:2px; background:var(--surface-alt); overflow:hidden; }
.mb-lr .bar i{ display:block; height:100%; border-radius:2px; width:var(--w); background:linear-gradient(90deg,oklch(80% 0.09 var(--h)),oklch(56% 0.15 var(--h))); transform-origin:left; animation:mbGrow .9s cubic-bezier(.3,.7,.2,1) both; }
.mb-lr .v{ font:700 18px var(--mb-num); font-stretch:80%; text-align:right; font-variant-numeric:tabular-nums; }

/* milestone watch */
.mb-mchips{ display:flex; gap:6px; flex-wrap:wrap; }
.mb-mchip{ all:unset; cursor:pointer; display:inline-flex; align-items:center; gap:7px; font-size:13px; font-weight:600; padding:7px 12px; border-radius:999px; border:1px solid var(--border); background:var(--surface); transition:background .2s,color .2s,border-color .2s,transform .15s; }
.mb-mchip:hover{ border-color:var(--text-faint); }
.mb-mchip:active{ transform:scale(.96); }
.mb-mchip:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; }
.mb-mchip em{ font-style:normal; font-size:11px; font-weight:700; min-width:18px; height:18px; border-radius:9px; display:grid; place-items:center; padding:0 5px; background:var(--surface-alt); color:var(--text-muted); }
.mb-mchip[aria-pressed="true"]{ background:var(--mb-on); color:var(--on-fg); border-color:transparent; box-shadow:var(--mb-on-sh); }
.mb-mchip[aria-pressed="true"] em{ background:var(--mb-acc); color:#fff; }
.mb-mgrid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(330px,1fr)); gap:12px; }
.mb-mc{ display:grid; grid-template-columns:76px minmax(0,1fr) auto; gap:4px 14px; align-items:center; padding:14px 16px 12px; border-radius:16px; color:var(--text); position:relative; overflow:hidden;
  background:linear-gradient(135deg,color-mix(in oklch,oklch(70% 0.12 var(--h)) 9%,var(--surface)),var(--surface) 55%); border:1px solid var(--border);
  transition:transform .25s cubic-bezier(.3,.7,.2,1),box-shadow .25s,border-color .25s; animation:mbCardIn .45s cubic-bezier(.2,.7,.2,1) both; }
.mb-mc:hover{ transform:translateY(-3px); box-shadow:var(--shadow-2); border-color:oklch(62% 0.13 var(--h)); text-decoration:none; }
.mb-mc .ring{ position:relative; width:76px; height:76px; display:grid; place-items:center; }
.mb-mc .ring svg{ position:absolute; inset:0; transform:rotate(-90deg); transition:transform .6s cubic-bezier(.3,.7,.2,1); }
.mb-mc:hover .ring svg{ transform:rotate(-90deg) scale(1.06); }
.mb-mc .trk{ fill:none; stroke:var(--hair); stroke-width:5; }
.mb-mc .arc{ fill:none; stroke-width:5; stroke-linecap:round; stroke-dasharray:var(--c); stroke-dashoffset:var(--c); animation:mbArc 1.2s .15s cubic-bezier(.3,.7,.2,1) forwards; }
@keyframes mbArc{ to{ stroke-dashoffset:var(--o); } }
.mb-mc .ph{ width:56px; height:56px; border-radius:50%; overflow:hidden; background:linear-gradient(160deg,oklch(36% 0.03 255),oklch(20% 0.015 255)); color:#fff; display:grid; place-items:center; font:700 16px var(--display); }
.mb-mc .ph img{ width:100%; height:100%; object-fit:cover; object-position:top; }
.mb-mc .mi{ min-width:0; display:grid; gap:3px; }
.mb-mc .mi > b{ font-size:14px; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mb-mc .mi > small{ font-size:11.5px; color:var(--text-muted); display:flex; gap:5px; align-items:center; }
.mb-mc .mi .mb-crest{ width:14px; height:14px; }
.mb-mc .mv{ font-size:12.5px; color:var(--text-muted); }
.mb-mc .mv em{ font-style:normal; color:var(--text); font-weight:600; }
.mb-mc .mv strong{ color:var(--accent-2-ink); }
.mb-mc .lad{ display:flex; gap:2px; margin-top:2px; }
.mb-mc .lad i{ flex:1; max-width:14px; height:4px; border-radius:2px; background:linear-gradient(90deg,oklch(74% 0.1 var(--h)),oklch(58% 0.14 var(--h))); }
.mb-mc .lad i.nx{ background:var(--hair); position:relative; overflow:hidden; }
.mb-mc .lad i.nx::after{ content:""; position:absolute; inset:0; background:var(--mb-acc); animation:mbBlink 1.6s ease-in-out infinite; }
@keyframes mbBlink{ 50%{ opacity:.25; } }
.mb-mc .mg{ text-align:center; line-height:1; }
.mb-mc .mg b{ display:block; font:800 34px var(--mb-num); font-stretch:65%; background:var(--mb-acc); -webkit-background-clip:text; background-clip:text; color:transparent; }
.mb-mc .mg small{ font-size:10.5px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--text-faint); }
.mb-mc .eta{ grid-column:1/-1; display:flex; justify-content:space-between; gap:10px; margin-top:8px; padding-top:9px; border-top:1px dashed var(--border); font-size:12px; font-weight:700; }
.mb-mc .eta span{ font-weight:500; color:var(--text-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

@media (max-width:1100px){
  .mb-hero-in{ grid-template-columns:1fr; gap:22px; }
  .mb-tiles{ grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); }
  .mb-lead{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .mb-hlc{ grid-template-columns:1fr; }
  .mb-hlc .hl-side{ border-left:0; border-top:1px solid var(--border); }
}
@media (max-width:760px){
  .mb-snav{ top:0; }
  .mb-sec{ scroll-margin-top:62px; }
  .mb-hero-in{ padding:24px 16px 18px; }
  .mb-tour{ padding:4px 16px 20px; }
  .mb-snav-in{ padding:8px 16px; }
  .mb-wrap{ padding:22px 16px 48px; }
  .mb-facts{ display:grid; grid-template-columns:repeat(5,auto); justify-content:space-between; }
  .mb-facts div{ padding-right:0; margin-right:0; border-right:0; }
  .mb-facts b{ font-size:24px; }
  .mb-facts span{ font-size:10px; letter-spacing:.05em; }
  .mb-legs,.mb-lead,.mb-mgrid{ grid-template-columns:1fr; }
  .mb-tf{ flex-wrap:wrap; }
  .mb-st th:nth-child(n+7):nth-child(-n+9),.mb-st td:nth-child(n+7):nth-child(-n+9),.mb-st th:nth-child(n+11),.mb-st td:nth-child(n+11){ display:none; }
  .mb-st .mb-dbar{ display:none; }
  .mb-st th,.mb-st td{ padding-left:7px; padding-right:7px; }
}
@media (prefers-reduced-motion:reduce){
  .mb-page *,.mb-page *::before,.mb-page *::after,.nav-link.nav-mbl i{ animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; }
  .mb-court path,.mb-court circle,.mb-court line{ stroke-dashoffset:0; }
  .mb-pc .pc-in{ transition:none; }
  .mb-pc:hover .pc-in,.mb-pc:focus-visible .pc-in,.mb-pc.flip .pc-in{ transform:none; }
  .mb-pc .bk{ transform:none; opacity:0; }
  .mb-pc:hover .bk,.mb-pc.flip .bk,.mb-pc:focus-visible .bk{ opacity:1; }
  .mb-pc:hover .fr,.mb-pc.flip .fr,.mb-pc:focus-visible .fr{ opacity:0; }
}

/* ===================== Home: MBL milestone hero (app4zi_mhero.js) ===================== */
/* ================= milestone hero ================= */
.mhx{--mhh:228;position:relative;border-radius:20px;overflow:hidden;color:#fff;isolation:isolate;min-height:400px;
  background:radial-gradient(70% 120% at 18% 100%,oklch(48% 0.16 var(--mhh)/.55),transparent 62%),
             radial-gradient(60% 90% at 100% 0%,oklch(40% 0.1 calc(var(--mhh) + 40)/.35),transparent 60%),
             linear-gradient(160deg,oklch(21% 0.03 var(--mhh)),oklch(13% 0.018 250));
  box-shadow:0 30px 60px -30px oklch(20% 0.08 var(--mhh)/.8),inset 0 1px 0 rgba(255,255,255,.06);
  transition:--mhh .9s, transform .5s cubic-bezier(.2,.7,.2,1);transform-style:preserve-3d;animation:mhxMhIn .9s cubic-bezier(.2,.75,.15,1) both}
@property --mhh{syntax:'<number>';inherits:true;initial-value:228}
@keyframes mhxMhIn{from{clip-path:inset(0 0 100% 0 round 20px);transform:translateY(16px)}to{clip-path:inset(0 0 0 0 round 20px);transform:none}}
.mhx::after{content:"";position:absolute;inset:0;pointer-events:none;z-index:5;border-radius:20px;
  background:linear-gradient(105deg,transparent 35%,rgba(255,255,255,.07) 48%,transparent 60%);transform:translateX(-100%)}
.mhx.sweep::after{animation:mhxSweep 1.3s .35s cubic-bezier(.3,.6,.2,1)}
@keyframes mhxSweep{to{transform:translateX(100%)}}
.mhx .grain{position:absolute;inset:0;z-index:0;opacity:.07;pointer-events:none;background-image:radial-gradient(rgba(255,255,255,.7) 1px,transparent 1px);background-size:3px 3px;mask:linear-gradient(90deg,transparent,#000 40%,#000 70%,transparent)}
.mhx .ghostnum{position:absolute;right:-1%;top:50%;transform:translateY(-52%) translateX(var(--px,0px));z-index:0;font:900 clamp(200px,30vw,420px)/.8 'Archivo',system-ui,sans-serif;font-stretch:62%;
  color:transparent;-webkit-text-stroke:1.5px rgba(255,255,255,.08);letter-spacing:-.02em;pointer-events:none;transition:transform .25s ease-out}
.mhx .crestbg{position:absolute;left:4%;bottom:-12%;width:42%;max-width:520px;z-index:0;opacity:.09;filter:blur(1px) saturate(.8);transform:translateX(var(--pxb,0px));transition:transform .25s ease-out}

/* top bar */
.mhx-top{position:relative;z-index:4;display:flex;align-items:center;gap:14px;padding:18px 22px 0}
.mhx-eye{display:flex;align-items:center;gap:10px;font:700 11px var(--body);letter-spacing:.14em;text-transform:uppercase;color:#efca75;white-space:nowrap}
.mhx-eye img{height:20px;width:auto}
.mhx-eye em{font-style:normal;color:rgba(255,255,255,.55);letter-spacing:.1em}
.mhx .bars{flex:1;display:flex;gap:5px;min-width:60px}
.mhx .bars button{all:unset;cursor:pointer;flex:1;height:4px;border-radius:2px;background:rgba(255,255,255,.18);position:relative;overflow:hidden;padding:6px 0;background-clip:content-box}
.mhx .bars button i{position:absolute;left:0;top:6px;height:4px;width:100%;border-radius:2px;background:linear-gradient(90deg,#f1d9a7,#e4b335);transform-origin:left;transform:scaleX(0)}
.mhx .bars button.done i{transform:none}
.mhx .bars button.cur i{animation:mhxFill var(--dur,7s) linear forwards}
.mhx.paused .bars button.cur i{animation-play-state:paused}
@keyframes mhxFill{to{transform:none}}
.mhx .ctl{display:flex;gap:6px}
.mhx .ctl button{all:unset;cursor:pointer;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.08);color:#fff;transition:background .2s,transform .15s}
.mhx .ctl button:hover{background:rgba(255,255,255,.16)}
.mhx .ctl button:active{transform:scale(.92)}
.mhx .ctl button:focus-visible,.mhx .bars button:focus-visible,.mhx-cta a:focus-visible{outline:2px solid #f1d9a7;outline-offset:2px}
.mhx .ctl svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}

/* body */
.mhx-body{position:relative;z-index:2;display:grid;grid-template-columns:minmax(260px,32%) minmax(0,1fr) 300px;gap:10px 28px;align-items:end;min-height:352px}
.mhx-photo{position:relative;align-self:stretch;display:flex;align-items:flex-end;justify-content:center;transform:translateX(var(--pxp,0px));transition:transform .25s ease-out}
.mhx-photo::before{content:"";position:absolute;left:10%;right:10%;bottom:6%;height:60%;border-radius:50%;background:radial-gradient(closest-side,oklch(65% 0.17 var(--mhh)/.55),transparent);filter:blur(12px);z-index:0}
.mhx-photo img{position:relative;z-index:1;height:340px;width:auto;max-width:100%;object-fit:contain;object-position:bottom;filter:drop-shadow(0 20px 30px rgba(0,0,0,.45));
  mask:linear-gradient(180deg,#000 82%,transparent)}
.mhx-photo .ini{position:relative;z-index:1;width:200px;height:200px;margin-bottom:60px;border-radius:50%;display:grid;place-items:center;font:800 64px var(--display);background:linear-gradient(160deg,oklch(40% 0.05 var(--mhh)),oklch(20% 0.02 255))}
.mhx-main{padding:10px 0 30px;min-width:0}
.mhx-num{display:flex;align-items:flex-end;gap:14px;line-height:.8}
.mhx .odo{display:inline-flex;font:900 clamp(96px,11vw,150px)/.86 'Archivo',system-ui,sans-serif;font-stretch:66%;letter-spacing:-.01em;color:#fff;filter:drop-shadow(0 6px 24px oklch(55% 0.15 var(--mhh)/.45))}
.mhx .odo span{display:inline-block;height:.86em;overflow:hidden;position:relative}
.mhx .odo span b{display:flex;flex-direction:column;font:inherit;transition:transform 1.25s cubic-bezier(.2,.9,.15,1)}
.mhx .odo span b i{font-style:normal;height:.86em;line-height:.86em;display:block;background:linear-gradient(180deg,#fff 35%,#f0d7a0);-webkit-background-clip:text;background-clip:text;color:transparent}
.mhx-num .unit{padding-bottom:12px;display:grid;gap:4px}
.mhx-num .unit b{font:800 22px var(--display);letter-spacing:.06em;text-transform:uppercase}
.mhx-num .unit small{font:600 12px var(--body);color:rgba(255,255,255,.6);letter-spacing:.06em;text-transform:uppercase}
.mhx-name{margin:14px 0 0;font:800 clamp(28px,3.2vw,40px)/1.05 var(--display);letter-spacing:-.01em;text-wrap:balance}
.mhx-name span{display:inline-block}
.mhx-meta{margin-top:12px;display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.mhx .chip{display:inline-flex;align-items:center;gap:8px;padding:6px 11px;border-radius:999px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.08);font-size:12.5px;font-weight:600;color:rgba(255,255,255,.88);backdrop-filter:blur(6px)}
.mhx .chip img{width:18px;height:18px;object-fit:contain}
.mhx .chip b{color:#fff}
.mhx .chip.res b{color:#9fe3b5}
.mhx .chip.res.l b{color:#ffb3a8}
.mhx .chip.rank{background:linear-gradient(110deg,rgba(232,181,50,.25),rgba(232,181,50,.08));border-color:rgba(232,181,50,.35);color:#f2dfb7}
.mhx-cta{margin-top:20px;display:flex;gap:8px;flex-wrap:wrap}
.mhx-cta a{display:inline-flex;align-items:center;gap:8px;padding:10px 16px;border-radius:12px;font-size:13px;font-weight:700;text-decoration:none;color:#fff;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.1);transition:background .2s,transform .15s}
.mhx-cta a:hover{background:rgba(255,255,255,.14)}
.mhx-cta a:active{transform:scale(.97)}
.mhx-cta a.pri{background:linear-gradient(180deg,#f4ca69,#cc9b00);border-color:transparent;box-shadow:0 8px 20px -8px rgba(204,155,0,.7)}
.mhx-cta a.pri:hover{filter:brightness(1.06)}

/* the climb */
.mhx .climb{align-self:stretch;margin:6px 22px 22px 0;padding:16px;border-radius:18px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);display:flex;flex-direction:column;gap:10px;backdrop-filter:blur(8px)}
.mhx .climb h3{margin:0;display:flex;justify-content:space-between;align-items:baseline;font:700 11px var(--body);letter-spacing:.12em;text-transform:uppercase;color:rgba(255,255,255,.6)}
.mhx .climb h3 b{font:800 13px var(--display);color:#fff;letter-spacing:.02em;text-transform:none}
.mhx .steps{flex:1;display:flex;align-items:flex-end;gap:4px;min-height:150px;position:relative;margin-top:16px}
.mhx .steps .st{flex:1;position:relative;border-radius:5px 5px 2px 2px;background:linear-gradient(180deg,oklch(70% 0.12 var(--mhh)/.9),oklch(48% 0.13 var(--mhh)/.65));height:var(--sh);
  transform-origin:bottom;transform:scaleY(0);transition:transform .55s cubic-bezier(.25,.9,.25,1) var(--sd),filter .2s;cursor:default}
.mhx .steps.on .st{transform:none}
.mhx .steps .st:hover{filter:brightness(1.25)}
.mhx .steps .st.new{background:linear-gradient(180deg,#f5e5c1,#e4b335);box-shadow:0 0 0 0 rgba(228,179,53,.6)}
.mhx .steps.on .st.new{animation:mhxRipple 1.6s calc(var(--sd) + .5s) ease-out 2}
@keyframes mhxRipple{0%{box-shadow:0 0 0 0 rgba(228,179,53,.6)}100%{box-shadow:0 0 0 12px rgba(228,179,53,0)}}
.mhx .steps .st.next{background:repeating-linear-gradient(135deg,rgba(255,255,255,.12) 0 4px,transparent 4px 8px);border:1px dashed rgba(255,255,255,.3)}
.mhx .steps .st span{position:absolute;left:50%;bottom:calc(100% + 4px);transform:translateX(-50%);font:700 10px var(--body);color:rgba(255,255,255,.55);white-space:nowrap;opacity:0;transition:opacity .3s var(--sd)}
.mhx .steps.on .st span{opacity:1}
.mhx .steps .st.new span{color:#f1d9a7;font-size:12px}
.mhx .steps .st.hide span{display:none}
.mhx .climb .nxt{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:rgba(255,255,255,.7);border-top:1px solid rgba(255,255,255,.1);padding-top:10px}
.mhx .climb .nxt b{color:#fff;font:800 15px 'Archivo',system-ui,sans-serif;font-stretch:80%}

/* slide transition */
.mhx-body > *{transition:opacity .45s ease,transform .6s cubic-bezier(.2,.8,.2,1),filter .45s}
.mhx.out .mhx-photo{opacity:0;transform:translateY(30px) scale(.97);filter:blur(4px)}
.mhx.out .mhx-main{opacity:0;transform:translateY(12px)}
.mhx.out .climb{opacity:0;transform:translateX(12px)}
.mhx-name span{clip-path:inset(0 0 0 0)}
.mhx.in .mhx-name span{animation:mhxMask .8s .15s cubic-bezier(.2,.8,.2,1) both}
@keyframes mhxMask{from{clip-path:inset(0 100% 0 0);transform:translateY(6px)}to{clip-path:inset(0 0 0 0);transform:none}}
.mhx.in .mhx-meta .chip{animation:mhxChipIn .5s cubic-bezier(.2,.8,.2,1) both}
.mhx.in .mhx-meta .chip:nth-child(2){animation-delay:.08s}.mhx.in .mhx-meta .chip:nth-child(3){animation-delay:.16s}.mhx.in .mhx-meta .chip:nth-child(4){animation-delay:.24s}
@keyframes mhxChipIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.mhx canvas.sparks{position:absolute;inset:0;z-index:3;pointer-events:none}

/* collapsed */
.mhx-mini{display:none;align-items:center;gap:12px;padding:10px 12px 10px 16px;border-radius:16px;background:linear-gradient(110deg,oklch(24% 0.04 var(--mhh,228)),oklch(16% 0.02 250));color:#fff;font-size:13px;font-weight:600}
.mhx-mini.show{display:flex;animation:mhxChipIn .4s both}
.mhx-mini img{height:16px}
.mhx-mini .avs{display:flex}
.mhx-mini .avs img{width:26px;height:26px;border-radius:50%;object-fit:cover;object-position:top;background:#222;box-shadow:0 0 0 2px oklch(20% 0.03 250);height:26px}
.mhx-mini .avs img + img{margin-left:-8px}
.mhx-mini button{all:unset;cursor:pointer;margin-left:auto;padding:7px 12px;border-radius:10px;background:linear-gradient(180deg,#f4ca69,#cc9b00);font-weight:700;font-size:12.5px}
.mhx.gone{display:none}

@media (max-width:1100px){
  .mhx-body{grid-template-columns:minmax(200px,38%) minmax(0,1fr)}
  .mhx .climb{grid-column:1/-1;margin:0 22px 22px;flex-direction:row;align-items:center;gap:16px}
  .mhx .climb .steps{min-height:70px}
  .mhx .climb h3{flex-direction:column;align-items:flex-start;gap:4px;min-width:120px}
  .mhx .climb .nxt{border-top:0;padding-top:0;flex-direction:column;align-items:flex-end;gap:2px}
}
@media (max-width:640px){
  .mhx{min-height:0;border-radius:20px}
  .mhx-top{padding:14px 14px 0;flex-wrap:wrap}
  .mhx-eye{width:100%}
  .mhx-body{grid-template-columns:118px minmax(0,1fr);grid-template-areas:"ph num" "name name" "meta meta" "cta cta" "climb climb";gap:0 12px;min-height:0;align-items:end}
  .mhx-photo{grid-area:ph;margin-top:8px}.mhx-photo img{height:150px}
  .mhx-main{display:contents}
  .mhx-num{grid-area:num;padding:0 14px 14px 0;flex-direction:column;align-items:flex-start;gap:4px}
  .mhx .odo{font-size:76px}
  .mhx-num .unit b{font-size:15px}.mhx-num .unit{padding-bottom:0}
  .mhx-name{grid-area:name;font-size:24px;margin:12px 14px 0}
  .mhx-meta{grid-area:meta;margin:10px 14px 0}
  .mhx-cta{grid-area:cta;margin:14px 14px 0}
  .mhx .climb{grid-area:climb}
  .mhx .proto .pseg{display:none}
  .mhx .climb{margin:6px 14px 14px;flex-direction:column;align-items:stretch}
  .mhx .climb .nxt{flex-direction:row;border-top:1px solid rgba(255,255,255,.1);padding-top:10px}
  .mhx .ghostnum{display:none}
}
@media (prefers-reduced-motion:reduce){
  .mhx,.mhx *,.mhx::after{animation:none!important;transition:none!important}
  .mhx .steps .st{transform:none}.mhx .steps .st span{opacity:1}
}
.mhx-tip{position:fixed;z-index:60;pointer-events:none;background:var(--on-bg);color:var(--on-fg);font-size:12px;font-weight:600;padding:6px 9px;border-radius:8px;box-shadow:var(--shadow-2);opacity:0;transition:opacity .15s;white-space:nowrap}
.mhx-tip.on{opacity:1}

.hm > .mhx-mini:not(.show){ display:none; }
.mhx [hidden]{ display:none !important; }

/* ---- Scout room and Scouting reports (app4zg_scout.js): scout.html in a frame ---- */
.sc-full{ position:fixed; inset:0; z-index:30; background:var(--bg); }
.sc-full .sc-frame{ height:100%; }
.sc-frame{ display:block; width:100%; border:0; background:var(--bg); }
.sc-view{ max-width:1440px; margin:0 auto; }
.sc-view .sc-frame{ min-height:80vh; }

/* ---------------------------- Game pages (app4zj_gamebox.js) ----------------------------
   The live game page's scoreboard, plays and box score, and a finished game's header and box
   score. Home is gold (hue 72) and away blue (255) here, as in the Post Game Report; --th on an
   element carries the side's hue. The box table fits its card (container queries on .gb-tw). */
@property --gbp{ syntax:'<number>'; inherits:false; initial-value:0; }
.gb-page, .lv-page{ --gb-on:linear-gradient(180deg,color-mix(in oklch,var(--on-bg) 80%,oklch(55% 0.08 255)),var(--on-bg)); --gb-on-sh:inset 0 1px 0 rgba(255,255,255,.14),0 1px 3px rgba(0,0,0,.18); }
.gb-page{ display:flex; flex-direction:column; gap:16px; }
.gb-page > .card{ margin:0; }
.gb-card{ background:var(--surface); border:1px solid var(--border); border-radius:16px; }
.gb-card > header{ display:flex; align-items:center; gap:12px; padding:14px 16px; border-bottom:1px solid var(--border); flex-wrap:wrap; }
.gb-card > header h2{ margin:0; font:700 18px var(--display); }
.gb-card > header small{ color:var(--text-muted); font-size:12.5px; }
.gb-note{ margin:0; font-size:12.5px; color:var(--text-muted); line-height:1.5; max-width:80ch; }

/* faces */
.gb-av{ width:28px; height:28px; border-radius:50%; overflow:hidden; flex:none; display:inline-grid; place-items:center;
  background:linear-gradient(160deg,oklch(40% 0.03 255),oklch(22% 0.015 255)); box-shadow:0 0 0 1.5px var(--surface),0 0 0 2.5px var(--border); }
.gb-av img{ width:100%; height:100%; object-fit:cover; }
.gb-av-por img{ object-position:50% 12%; transform:scale(1.5); transform-origin:50% 18%; }
.gb-ini{ background:linear-gradient(160deg,oklch(64% 0.1 var(--th)),oklch(40% 0.09 var(--th))); color:#fff; font:700 10.5px var(--body); letter-spacing:.02em; }
.gb-av.gb-sm{ width:22px; height:22px; font-size:9px; }
.gb-av.gb-lg{ width:52px; height:52px; font-size:16px; box-shadow:0 0 0 2px var(--surface),0 0 0 4px oklch(68% 0.13 var(--th)/.6); }
.gb-av.gb-team{ background:var(--surface-alt); box-shadow:none; }

/* ---------- live scoreboard ---------- */
.gb-sbd{ position:relative; border-radius:20px; overflow:hidden; color:#fff; isolation:isolate;
  background:radial-gradient(60% 140% at 0% 50%,oklch(60% 0.13 72/.32),transparent 60%),radial-gradient(60% 140% at 100% 50%,oklch(55% 0.15 255/.38),transparent 60%),linear-gradient(160deg,oklch(21% 0.02 250),oklch(13% 0.015 250));
  box-shadow:0 24px 50px -28px rgba(0,0,0,.6); }
.gb-sbd-top{ display:flex; align-items:center; gap:10px; padding:14px 22px 0; font-size:12.5px; color:rgba(255,255,255,.7); flex-wrap:wrap; }
.gb-sbd-top > a{ color:inherit; font-weight:600; }
.gb-watch{ margin:0 0 0 auto; }
.gb-sbd .lv-tag:not(.lv-tag-fin){ background:#c42d31; }
.gb-sbd-top .m-watch, .gb-hb .m-watch.gb-pri{ background:linear-gradient(180deg,#ac8200,#775900); color:#fff; opacity:1; box-shadow:0 8px 18px -8px rgba(171,129,0,.7); }
.gb-sbd-in{ display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:center; gap:20px; padding:16px 30px 18px; }
.gb-tm{ display:flex; align-items:center; gap:16px; min-width:0; }
.gb-tm b{ display:block; font:700 20px/1.15 var(--display); }
.gb-tm small{ display:block; margin-top:3px; font-size:12px; color:rgba(255,255,255,.62); }
.gb-tm small em{ font-style:normal; color:#fbd47c; font-weight:700; }
.gb-tm.r{ justify-content:flex-end; text-align:right; }
.gb-tm b.gb-code{ display:none; }
.gb-tm .crest-logo, .gb-tm .swatch, .gb-tm .crest-flag{ background:rgba(255,255,255,.94); border-radius:50%; padding:6px; box-sizing:border-box; flex:none; }
.gb-mid{ display:grid; justify-items:center; gap:12px; }
.gb-score{ display:flex; align-items:center; gap:22px; }
.gb-n{ font:800 64px/1 'Archivo',system-ui,sans-serif; font-stretch:72%; font-variant-numeric:tabular-nums; min-width:2.2ch; text-align:center;
  color:rgba(255,255,255,.6); transition:color .4s; height:64px; overflow:hidden; display:inline-block; }
.gb-n.lead{ color:#fff; }
.gb-roll{ display:flex; flex-direction:column; animation:gbRoll .7s cubic-bezier(.3,.8,.2,1) forwards; }
.gb-roll b{ height:64px; line-height:64px; font:inherit; }
@keyframes gbRoll{ to{ transform:translateY(-64px); } }
.gb-clk{ display:grid; justify-items:center; gap:2px; font:600 13px var(--body); color:rgba(255,255,255,.75); min-width:84px; text-align:center; }
.gb-clk b{ font:800 15px var(--display); color:#fbd47c; letter-spacing:.06em; }
.gb-pulse{ width:8px; height:8px; border-radius:50%; background:#ff5a4f; animation:gbPulse 1.6s infinite; }
@keyframes gbPulse{ 0%{ box-shadow:0 0 0 0 rgba(255,90,79,.6); } 70%{ box-shadow:0 0 0 9px rgba(255,90,79,0); } 100%{ box-shadow:0 0 0 0 rgba(255,90,79,0); } }
.gb-line{ display:grid; gap:2px 6px; font:600 12px var(--body); color:rgba(255,255,255,.6); text-align:center; font-variant-numeric:tabular-nums; }
.gb-line .gb-tc{ text-align:left; font-weight:700; color:rgba(255,255,255,.82); }
.gb-line .gb-now{ color:#fbd47c; }
.gb-cmp{ display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:16px; padding:4px 30px 18px; }
.gb-cm{ display:grid; grid-template-columns:auto 1fr auto; gap:2px 8px; align-items:center; font-size:12px; }
.gb-cm b{ font:700 13px 'Archivo',system-ui,sans-serif; font-stretch:85%; color:rgba(255,255,255,.62); font-variant-numeric:tabular-nums; }
.gb-cm b.win{ color:#fff; }
.gb-cm small{ grid-column:1/-1; text-align:center; font-size:10px; font-weight:700; letter-spacing:.1em; color:rgba(255,255,255,.5); }
.gb-bar{ display:flex; gap:2px; height:5px; }
.gb-bar i{ display:block; height:100%; width:var(--w); border-radius:3px; background:linear-gradient(90deg,oklch(74% 0.13 var(--th)),oklch(60% 0.15 var(--th))); transition:width .8s cubic-bezier(.3,.7,.2,1); }
.gb-upd{ display:flex; align-items:center; gap:10px; padding:11px 30px; border-top:1px solid rgba(255,255,255,.08); font-size:12.5px; color:rgba(255,255,255,.65); background:rgba(0,0,0,.15); }
.gb-upd b{ color:#fff; font-weight:600; }
.gb-sp{ flex:1; }
.gb-ring{ width:14px; height:14px; border-radius:50%; flex:none; background:conic-gradient(#5be38a calc(var(--gbp)*360deg),rgba(255,255,255,.15) 0);
  -webkit-mask:radial-gradient(circle 4px,transparent 98%,#000); mask:radial-gradient(circle 4px,transparent 98%,#000); animation:gbRing 30s linear infinite; }
.gb-ring.done{ animation:none; --gbp:1; }
@keyframes gbRing{ from{ --gbp:0; } to{ --gbp:1; } }

/* ---------- live grid: plays and box score ---------- */
.gb-lgrid{ display:grid; grid-template-columns:minmax(0,5fr) minmax(0,7fr); gap:18px; align-items:start; }
.gb-col{ display:grid; gap:18px; min-width:0; }
.gb-lgrid > *{ min-width:0; }
.gb-chips{ display:flex; gap:4px; margin-left:auto; flex-wrap:wrap; }
.gb-chips button{ all:unset; cursor:pointer; font-size:12px; font-weight:700; padding:5px 10px; border-radius:999px; border:1px solid var(--border); color:var(--text-muted); transition:color .2s,background .2s; }
.gb-chips button:hover{ color:var(--text); }
.gb-chips button[aria-pressed="true"]{ background:var(--gb-on); color:var(--on-fg); border-color:transparent; box-shadow:var(--gb-on-sh); }
.gb-chips button:focus-visible, .gb-seg button:focus-visible, .gb-ftabs a:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; }
.gb-sw{ display:inline-flex; align-items:center; gap:8px; font-size:12.5px; font-weight:600; cursor:pointer; }
.gb-sw input{ position:absolute; opacity:0; width:0; height:0; }
.gb-sw i{ width:32px; height:18px; border-radius:999px; background:var(--border); position:relative; transition:background .25s; flex:none; }
.gb-sw i::after{ content:""; position:absolute; top:2px; left:2px; width:14px; height:14px; border-radius:50%; background:#fff; box-shadow:0 1px 2px rgba(0,0,0,.3); transition:transform .25s cubic-bezier(.3,.7,.2,1); }
.gb-sw input:checked + i{ background:linear-gradient(90deg,#f4ca69,#cc9b00); }
.gb-sw input:checked + i::after{ transform:translateX(14px); }
.gb-sw input:focus-visible + i{ outline:2px solid var(--accent); outline-offset:2px; }
.gb-plays{ list-style:none; margin:0; padding:6px 8px 10px; max-height:760px; overflow:auto; scrollbar-width:thin; }
.gb-plays li{ display:grid; grid-template-columns:40px 18px 22px minmax(0,1fr) auto; gap:9px; align-items:center; padding:8px; border-radius:10px; font-size:13px; transition:background .2s; }
.gb-plays li:hover{ background:var(--surface-alt); }
.gb-plays li.gb-per{ display:block; padding:12px 8px 4px; font:700 11px var(--body); letter-spacing:.12em; color:var(--text-faint); position:sticky; top:-6px; background:var(--surface); z-index:1; }
.gb-plays li.gb-per:hover{ background:var(--surface); }
.gb-ck{ font:600 12px var(--body); color:var(--text-muted); font-variant-numeric:tabular-nums; }
.gb-tx{ min-width:0; color:var(--text-muted); }
.gb-tx > a, .gb-tx > b, .gb-tx > span:first-child{ color:var(--text); font-weight:600; }
.gb-tx a{ text-decoration:none; } .gb-tx a:hover{ text-decoration:underline; }
.gb-plays li.gb-sc{ background:linear-gradient(90deg,oklch(72% 0.13 var(--th)/.17),transparent 70%); }
.gb-plays li.gb-sc .gb-tx span{ color:var(--text); }
.gb-sb{ font:800 14px 'Archivo',system-ui,sans-serif; font-stretch:80%; padding:3px 8px; border-radius:8px; background:var(--surface-alt); font-variant-numeric:tabular-nums; }
.gb-plays li.gb-new{ animation:gbNew 1.6s cubic-bezier(.2,.8,.2,1) both; }
@keyframes gbNew{ 0%{ opacity:0; transform:translateY(-8px); background:oklch(86% 0.12 86/.35); } 30%{ opacity:1; transform:none; } 100%{ background:transparent; } }
.gb-plays li.gb-sc.gb-new{ animation-name:gbNewSc; }
@keyframes gbNewSc{ 0%{ opacity:0; transform:translateY(-8px); } 30%{ opacity:1; transform:none; } }
.gb-plays li.gb-empty{ display:block; padding:30px; text-align:center; color:var(--text-muted); }
.gb-seg{ display:inline-flex; padding:3px; border-radius:12px; background:var(--surface); border:1px solid var(--border); gap:2px; margin-left:auto; }
.gb-seg button{ all:unset; cursor:pointer; display:inline-flex; align-items:center; gap:8px; padding:6px 12px; border-radius:9px; font-size:13px; font-weight:600; color:var(--text-muted); transition:color .25s,background .25s; white-space:nowrap; }
.gb-seg button b{ font:800 15px 'Archivo',system-ui,sans-serif; font-stretch:80%; }
.gb-seg button[aria-pressed="true"]{ background:var(--gb-on); color:var(--on-fg); box-shadow:var(--gb-on-sh); }
.gb-tst table{ width:100%; border-collapse:collapse; font-size:13px; font-variant-numeric:tabular-nums; }
.gb-tst th{ font-size:10.5px; font-weight:700; letter-spacing:.08em; color:var(--text-muted); padding:10px 16px 8px; text-align:right; }
.gb-tst td{ padding:8px 16px; border-top:1px solid var(--hair); text-align:right; color:var(--text-muted); }
.gb-tst td:first-child{ text-align:left; color:var(--text); }
.gb-tst td.win{ color:var(--text); font-weight:700; }

/* ---------- the box table (live and final) ---------- */
.gb-tw{ overflow-x:auto; scrollbar-width:thin; container-type:inline-size; }
table.gb-bs{ width:100%; border-collapse:separate; border-spacing:0; font-size:13px; font-variant-numeric:tabular-nums; }
.gb-bs th{ position:sticky; top:0; background:var(--surface); z-index:1; padding:0; border-bottom:1px solid var(--border); text-align:right; }
.gb-bs th button{ all:unset; cursor:pointer; display:block; width:100%; box-sizing:border-box; padding:10px 8px; font-size:10.5px; font-weight:700; letter-spacing:.08em; color:var(--text-muted); text-align:right; white-space:nowrap; transition:color .2s; }
.gb-bs th button:hover, .gb-bs th button.on{ color:var(--text); }
.gb-bs th button:focus-visible{ outline:2px solid var(--accent); outline-offset:-2px; }
.gb-bs th.gb-pl{ text-align:left; padding:10px 16px; font-size:10.5px; font-weight:700; letter-spacing:.08em; color:var(--text-muted); }
.gb-bs td{ padding:8px; text-align:right; border-bottom:1px solid var(--hair); white-space:nowrap; }
table.gb-bs td.gb-pl, table.gb-bs th.gb-pl{ position:sticky; left:0; background:var(--surface); z-index:2; text-align:left; min-width:220px; }
.gb-bs td.gb-pl{ padding:6px 16px; }
.gb-bs td.gb-pl > a, .gb-bs td.gb-pl > span{ display:flex; align-items:center; gap:10px; text-decoration:none; color:inherit; min-width:188px; }
.gb-nm{ display:grid; line-height:1.2; min-width:0; flex:1 1 auto; }
.gb-nm b{ display:block; font-weight:600; font-size:13px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:300px; }
.gb-nm b.gb-sn{ display:none; }
.gb-nm small{ font-size:11px; color:var(--text-faint); display:flex; align-items:center; gap:4px; min-height:13px; }
.gb-bs td.gb-pl > a:hover b{ text-decoration:underline; }
.gb-bs.gb-anim tbody tr.gb-row{ animation:gbRowIn .4s cubic-bezier(.2,.7,.2,1) both; }
@keyframes gbRowIn{ from{ opacity:0; transform:translateY(4px); } to{ opacity:1; transform:none; } }
.gb-bs tbody tr.gb-row:hover td{ background:var(--surface-alt); }
.gb-bs tr.gb-grp td{ padding:12px 16px 6px; font-size:10.5px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--text-faint); text-align:left; border-bottom:0; background:var(--surface); }
.gb-bs td.gb-pts{ font-weight:800; font-size:14px; }
.gb-bs td.gb-best{ color:var(--accent-ink); font-weight:700; position:relative; }
.gb-bs td.gb-best::after{ content:""; position:absolute; left:30%; right:8px; bottom:4px; height:2px; border-radius:2px; background:linear-gradient(90deg,transparent,var(--accent)); }
.gb-pos{ color:var(--positive-ink); } .gb-neg{ color:var(--negative); }
.gb-bs td.gb-flash{ animation:gbFlash 1.8s ease-out; }
@keyframes gbFlash{ 0%{ background:oklch(85% 0.13 70/.55); } 100%{ background:transparent; } }
.gb-bs tr.gb-on td.gb-pl::before{ content:""; position:absolute; left:0; top:8px; bottom:8px; width:3px; border-radius:0 3px 3px 0; background:linear-gradient(#5be38a,#27a85a); }
.gb-ondot{ width:6px; height:6px; border-radius:50%; background:#2fbf6b; display:inline-block; animation:gbPulse2 2s infinite; }
@keyframes gbPulse2{ 0%{ box-shadow:0 0 0 0 rgba(47,191,107,.5); } 70%{ box-shadow:0 0 0 5px rgba(47,191,107,0); } 100%{ box-shadow:0 0 0 0 rgba(47,191,107,0); } }
.gb-bs tfoot td{ font-weight:700; border-bottom:0; padding-top:10px; background:var(--surface-alt); }
.gb-bs tfoot td.gb-pl{ background:var(--surface-alt); }
.gb-bs tfoot tr.gb-pct td{ font-weight:500; font-size:11.5px; color:var(--text-muted); padding-top:0; }
.gb-bs tfoot tr.gb-pct td.gb-pl{ white-space:normal; font-size:11px; }
.gb-dnp{ margin:0; padding:10px 16px 14px; font-size:12px; color:var(--text-muted); }
.gb-dnp b{ font-size:10.5px; letter-spacing:.1em; text-transform:uppercase; color:var(--text-faint); margin-right:6px; }
/* the strip with the columns that did not fit */
.gb-xb{ all:unset; position:absolute; right:6px; top:50%; width:24px; height:24px; margin-top:-12px; border-radius:50%; cursor:pointer; display:none; place-items:center; color:var(--text-muted); transition:background .2s,color .2s; }
.gb-xb:hover{ background:var(--surface-alt); color:var(--text); }
.gb-xb:focus-visible{ outline:2px solid var(--accent); }
.gb-xb i{ width:7px; height:7px; border-right:1.6px solid currentColor; border-bottom:1.6px solid currentColor; transform:translateY(-2px) rotate(45deg); transition:transform .25s; }
.gb-xb[aria-expanded="true"] i{ transform:translateY(2px) rotate(-135deg); }
.gb-bs tr.gb-xr{ display:none; }
.gb-bs tr.gb-xr td{ padding:0 12px 10px 16px; background:var(--surface-alt); text-align:left; }
.gb-bs tr.gb-xr.on{ display:table-row; }
.gb-bs tr.gb-xr.on .gb-xs{ animation:gbXin .28s cubic-bezier(.2,.7,.2,1) both; }
@keyframes gbXin{ from{ opacity:0; transform:translateY(-4px); } }
.gb-bs tr.gb-row:has(+ tr.gb-xr.on) td{ background:var(--surface-alt); border-bottom-color:transparent; }
.gb-xs{ display:flex; flex-wrap:wrap; gap:6px; padding-top:10px; }
.gb-xs > span{ display:none; align-items:baseline; gap:6px; padding:4px 10px; border-radius:999px; background:var(--surface); border:1px solid var(--border); font-variant-numeric:tabular-nums; }
.gb-xs small{ font-size:10px; font-weight:700; letter-spacing:.08em; color:var(--text-muted); }
.gb-xs b{ font-size:12.5px; }
@container (max-width:1000px){
  .gb-bs .gb-c4{ display:none; } .gb-xs .gb-c4{ display:flex; }
  .gb-bs .gb-xb{ display:grid; }
  .gb-bs td.gb-pl{ padding-right:34px; }
  .gb-bs td{ padding:8px 5px; } .gb-bs th button{ padding:10px 5px; }
  table.gb-bs th.gb-pl, table.gb-bs td.gb-pl{ width:230px; min-width:230px; max-width:230px; box-sizing:border-box; }
  .gb-bs td.gb-pl > a, .gb-bs td.gb-pl > span{ width:180px; min-width:0; }
}
@container (max-width:700px){ .gb-bs .gb-c3{ display:none; } .gb-xs .gb-c3{ display:flex; } }
@container (max-width:520px){
  .gb-bs .gb-c2{ display:none; } .gb-xs .gb-c2{ display:flex; }
  table.gb-bs th.gb-pl, table.gb-bs td.gb-pl{ width:150px; min-width:150px; max-width:150px; }
  .gb-bs .gb-xb{ width:20px; height:20px; margin-top:-10px; }
  .gb-bs th.gb-pl{ padding-left:12px; }
  .gb-bs td.gb-pl{ padding:6px 22px 6px 10px; }
  .gb-bs td.gb-pl > a, .gb-bs td.gb-pl > span{ width:118px; gap:7px; }
  .gb-bs .gb-av{ width:26px; height:26px; }
  .gb-nm b{ font-size:12.5px; }
  .gb-nm b.gb-fn{ display:none; } .gb-nm b.gb-sn{ display:block; }
  .gb-bs .gb-xb{ right:1px; }
  .gb-bs td{ padding:8px 4px; } .gb-bs th button{ padding:10px 4px; }
  .gb-nm small{ font-size:10.5px; }
  .gb-oc{ display:none; }
}
@container (max-width:360px){
  table.gb-bs th.gb-pl, table.gb-bs td.gb-pl{ width:138px; min-width:138px; max-width:138px; }
  .gb-bs td.gb-pl > a, .gb-bs td.gb-pl > span{ width:106px; }
  .gb-bs .gb-av{ width:24px; height:24px; }
}

/* ---------- a finished game: header ---------- */
.gb-hero{ display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:center; gap:24px; padding:30px 34px; border-radius:20px; border:1px solid var(--border);
  background:radial-gradient(50% 140% at 0% 50%,oklch(74% 0.12 72/.16),transparent 60%),radial-gradient(50% 140% at 100% 50%,oklch(62% 0.14 255/.16),transparent 60%),var(--surface);
  animation:gbRise .6s cubic-bezier(.2,.7,.2,1) both; }
@keyframes gbRise{ from{ opacity:0; transform:translateY(10px); } to{ opacity:1; transform:none; } }
.gb-ht{ display:flex; align-items:center; gap:16px; min-width:0; }
.gb-ht.r{ justify-content:flex-end; text-align:right; }
.gb-ht b{ display:block; font:800 22px/1.1 var(--display); }
.gb-ht small{ font-size:12px; color:var(--text-muted); font-weight:600; letter-spacing:.06em; text-transform:uppercase; }
.gb-hs{ display:grid; justify-items:center; gap:8px; text-align:center; }
.gb-fsc{ display:flex; align-items:center; gap:16px; font:800 64px/1 'Archivo',system-ui,sans-serif; font-stretch:72%; font-variant-numeric:tabular-nums; color:var(--text-faint); }
.gb-fsc .w{ color:var(--text); }
.gb-fsc i{ font-style:normal; font-weight:400; color:var(--border); }
.gb-chips2{ display:flex; gap:6px; flex-wrap:wrap; justify-content:center; }
.gb-chip{ font-size:11px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; padding:3px 10px; border-radius:999px; background:var(--accent-soft); color:var(--accent-ink); }
.gb-chip-r{ background:var(--surface-alt); color:var(--text-muted); }
.gb-hs > small{ font-size:12.5px; color:var(--text-muted); }
.gb-hb{ display:flex; gap:8px; flex-wrap:wrap; justify-content:center; }
.gb-hb .m-watch{ margin-top:2px; border-radius:12px; padding:9px 15px; transition:transform .15s; }
.gb-hb .m-watch:active{ transform:scale(.97); }
.gb-hb .m-watch:not(.gb-pri){ background:var(--surface); color:var(--text); border:1px solid var(--border); }
.gb-fline{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.1fr); gap:16px; }
.gb-fline.gb-noflow{ grid-template-columns:minmax(0,1fr); }
.gb-fline > *{ min-width:0; }
.gb-tw2{ overflow-x:auto; }
.gb-ls{ width:100%; border-collapse:collapse; font-size:13.5px; font-variant-numeric:tabular-nums; }
.gb-ls th{ font-size:10.5px; font-weight:700; letter-spacing:.08em; color:var(--text-muted); padding:14px 12px 10px; text-align:center; border-bottom:1px solid var(--border); }
.gb-ls th:first-child, .gb-ls td:first-child{ text-align:left; padding-left:18px; }
.gb-ls td{ padding:12px; text-align:center; border-bottom:1px solid var(--hair); color:var(--text-muted); }
.gb-ls tr:last-child td{ border-bottom:0; }
.gb-ls td:first-child span{ display:flex; align-items:center; gap:10px; color:var(--text); }
.gb-ls td:first-child b{ font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:240px; }
.gb-ls td:first-child em{ display:none; font-style:normal; font-weight:700; }
.gb-ls td.gb-qw{ font-weight:700; color:var(--text); }
.gb-ls td.gb-fin{ font:800 18px 'Archivo',system-ui,sans-serif; font-stretch:80%; color:var(--text); }
.gb-flow{ padding:12px 16px 10px; display:grid; gap:4px; position:relative; }
.gb-flow h2{ margin:0; font:700 12px var(--body); letter-spacing:.08em; text-transform:uppercase; color:var(--text-muted); }
.gb-flow svg{ width:100%; height:110px; display:block; }
.gb-qx{ stroke:var(--hair); } .gb-zx{ stroke:var(--border); }
.gb-ln{ fill:none; stroke:var(--text); stroke-width:1.5; vector-effect:non-scaling-stroke; stroke-dasharray:4000; stroke-dashoffset:4000; animation:gbDraw 1.8s .2s cubic-bezier(.3,.6,.2,1) forwards; }
@keyframes gbDraw{ to{ stroke-dashoffset:0; } }
.gb-ar{ opacity:0; animation:gbFade .8s 1s forwards; }
@keyframes gbFade{ to{ opacity:1; } }
.gb-fq{ position:relative; height:14px; }
.gb-fq span{ position:absolute; transform:translateX(-50%); font:700 10px var(--body); letter-spacing:.08em; color:var(--text-faint); }
.gb-flab{ display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; font-size:12px; color:var(--text-muted); }
.gb-flab b{ color:var(--text); }
.gb-flab i{ display:inline-block; width:8px; height:8px; border-radius:2px; margin:0 5px 0 8px; background:oklch(68% 0.14 var(--th)); }
.gb-flwait{ height:120px; border-radius:10px; background:linear-gradient(90deg,var(--surface-alt),var(--surface),var(--surface-alt)); background-size:200% 100%; animation:gbShim 1.4s linear infinite; }
@keyframes gbShim{ to{ background-position:-200% 0; } }
.gb-ftabs{ display:flex; gap:2px; padding:3px; border-radius:12px; background:var(--surface); border:1px solid var(--border); align-self:flex-start; max-width:100%; overflow-x:auto; scrollbar-width:none; }
.gb-ftabs a{ padding:8px 14px; border-radius:9px; font-size:13px; font-weight:600; color:var(--text-muted); text-decoration:none; white-space:nowrap; transition:color .2s,background .2s; }
.gb-ftabs a:hover{ color:var(--text); text-decoration:none; }
.gb-ftabs a.on{ background:var(--gb-on); color:var(--on-fg); box-shadow:var(--gb-on-sh); }
.gb-ftabs a.off{ opacity:.45; pointer-events:none; }

/* ---------- a finished game: leaders and team tables ---------- */
.gb-leaders{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.gb-ld{ display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:12px; align-items:center; padding:14px; border-radius:16px; border:1px solid var(--border); text-decoration:none; color:inherit;
  background:linear-gradient(135deg,color-mix(in oklch,oklch(72% 0.12 var(--th)) 12%,var(--surface)),var(--surface) 60%); transition:transform .2s,box-shadow .2s; animation:gbRise .5s cubic-bezier(.2,.7,.2,1) both; }
.gb-ld:hover{ transform:translateY(-2px); box-shadow:var(--shadow); text-decoration:none; }
.gb-lt{ display:grid; gap:2px; min-width:0; }
.gb-lt small{ font-size:10.5px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--text-faint); }
.gb-lt b{ font-size:14px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color:var(--text); }
.gb-lt em{ font-style:normal; font-size:11.5px; color:var(--text-muted); display:flex; gap:5px; align-items:center; white-space:nowrap; overflow:hidden; }
.gb-lv{ font:800 34px 'Archivo',system-ui,sans-serif; font-stretch:68%; color:var(--text); }
.gb-tbs{ display:grid; gap:18px; }
.gb-tbs > *{ min-width:0; }
.gb-tb{ overflow:hidden; }
.gb-tb > header{ background:linear-gradient(90deg,oklch(72% 0.12 var(--th)/.13),transparent 50%); }
.gb-tb h3{ margin:0; font:700 18px var(--display); min-width:0; }
.gb-wl{ font-size:11px; font-weight:800; padding:2px 8px; border-radius:6px; }
.gb-wl.w{ background:var(--positive-soft); color:var(--positive-ink); }
.gb-wl.l{ background:var(--negative-soft); color:var(--negative); }
.gb-ts{ margin-left:auto; font:800 26px 'Archivo',system-ui,sans-serif; font-stretch:75%; }

@media (max-width:1100px){
  .gb-lgrid, .gb-fline{ grid-template-columns:minmax(0,1fr); }
  .gb-leaders{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .gb-cmp{ grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:640px){
  .gb-sbd-top{ padding:12px 14px 0; }
  .gb-watch{ margin:0; }
  .gb-sbd-in{ padding:14px 12px 12px; gap:8px; }
  .gb-tm{ flex-direction:column; gap:6px; text-align:center; }
  .gb-tm.r{ flex-direction:column-reverse; text-align:center; }
  .gb-tm b{ display:none; } .gb-tm b.gb-code{ display:block; font-size:16px; letter-spacing:.04em; }
  .gb-wide{ display:none; } .gb-tm small em{ display:block; }
  .gb-tm .crest-logo, .gb-tm .swatch, .gb-tm .crest-flag{ width:44px !important; height:44px !important; }
  .gb-score{ gap:8px; }
  .gb-n{ font-size:44px; height:44px; } .gb-roll b{ height:44px; line-height:44px; }
  .gb-roll{ animation-name:gbRollS; }
  .gb-line{ font-size:11px; }
  .gb-cmp{ padding:4px 14px 14px; gap:10px; }
  .gb-upd{ padding:10px 14px; flex-wrap:wrap; } .gb-sp{ display:none; }
  .gb-chips{ margin-left:0; }
  .gb-hero{ grid-template-columns:1fr 1fr; padding:20px; gap:16px; }
  .gb-hs{ grid-column:1/-1; grid-row:2; }
  .gb-ht, .gb-ht.r{ flex-direction:column; text-align:center; }
  .gb-ht.r{ flex-direction:column-reverse; }
  .gb-ht b{ font-size:16px; }
  .gb-fsc{ font-size:48px; }
  .gb-ls td:first-child b{ display:none; } .gb-ls td:first-child em{ display:inline; }
  .gb-ls th, .gb-ls td{ padding-left:8px; padding-right:8px; }
  .gb-ls th:first-child, .gb-ls td:first-child{ padding-left:14px; }
  .gb-leaders{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .gb-ld{ grid-template-columns:auto minmax(0,1fr); gap:8px 10px; padding:12px; }
  .gb-ld .gb-av.gb-lg{ width:40px; height:40px; }
  .gb-ld .gb-lv{ grid-row:1; grid-column:2; justify-self:end; font-size:30px; }
  .gb-ld .gb-lt{ grid-column:1/-1; }
  .gb-ld .gb-lt b{ font-size:13px; }
  .gb-ld .gb-lt em{ font-size:11px; }
}
@keyframes gbRollS{ to{ transform:translateY(-44px); } }
@media (prefers-reduced-motion:reduce){
  .gb-roll, .gb-plays li.gb-new, .gb-bs tbody tr.gb-row, .gb-bs td.gb-flash, .gb-hero, .gb-ld, .gb-ring, .gb-pulse, .gb-ondot, .gb-flwait, .gb-xs{ animation:none !important; }
  .gb-ln{ animation:none; stroke-dashoffset:0; } .gb-ar{ animation:none; opacity:1; }
}

/* ---------------------------- Live ticker and live cards (update-89) ----------------------------
   The band under the menu (app4n_live.js): every game on now, drifting left to right when there
   are two or more. Home's Up next (app4o_home.js): one red card per live game. */
.tk{ position:relative; display:flex; align-items:center; height:46px; background:var(--live-soft); border-bottom:1px solid var(--live-line); font-size:13px; overflow:hidden; }
.tk-tag{ position:relative; z-index:2; display:flex; align-items:center; gap:8px; height:100%; padding:0 14px 0 max(16px, calc((100% - 1240px) / 2));
  background:var(--live-soft); box-shadow:12px 0 14px -6px var(--live-soft); flex:none; }
.tk-tag .lv-tag{ background:#c42d31; }
.tk-tag b{ font:700 12px var(--display); color:var(--live-ink); letter-spacing:.06em; font-variant-numeric:tabular-nums; }
.tk-vp{ position:relative; flex:1 1 auto; min-width:0; height:100%; overflow:hidden;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 40px,#000 calc(100% - 40px),transparent); mask-image:linear-gradient(90deg,transparent,#000 40px,#000 calc(100% - 40px),transparent); }
.tk.one .tk-vp{ -webkit-mask-image:none; mask-image:none; }
.tk-track{ display:flex; align-items:center; height:100%; width:max-content; }
.tk.go[data-fit] .tk-track{ animation:tkDrift var(--dur,30s) linear infinite; will-change:transform; }
.tk.go:hover .tk-track, .tk.go:focus-within .tk-track{ animation-play-state:paused; }
@keyframes tkDrift{ from{ transform:translateX(calc(var(--w) * -1px)); } to{ transform:translateX(0); } }
.tk-set{ display:flex; align-items:center; height:100%; flex:none; }
.tk-g{ position:relative; display:inline-flex; align-items:center; gap:9px; height:34px; padding:0 14px; margin:0 6px; border-radius:10px; text-decoration:none; color:var(--text); white-space:nowrap; transition:background .2s; }
.tk-g:hover{ background:color-mix(in oklab, var(--live) 12%, transparent); text-decoration:none; }
.tk-g:focus-visible{ outline:2px solid var(--live); outline-offset:-2px; }
.tk-g.on{ background:color-mix(in oklab, var(--live) 16%, transparent); box-shadow:inset 0 0 0 1px color-mix(in oklab, var(--live) 45%, transparent); }
.tk-g .comp-crest{ width:18px !important; height:18px !important; border-radius:5px; padding:2px; box-shadow:none; }
.tk-g .crest-logo, .tk-g .crest-flag, .tk-g .swatch{ width:20px !important; height:20px !important; }
.tk-t{ display:inline-flex; align-items:center; gap:7px; }
.tk-t b{ font-weight:600; color:var(--text-muted); letter-spacing:.02em; }
.tk-t strong{ font:700 16px var(--display); font-variant-numeric:tabular-nums; color:var(--text-muted); min-width:2ch; text-align:center; border-radius:5px; padding:0 2px; transition:color .3s; }
.tk-t.lead b, .tk-t.lead strong{ color:var(--text); }
.tk-t strong.bump{ animation:tkBump 1.6s ease-out; }
@keyframes tkBump{ 0%{ background:oklch(82% 0.14 70/.7); transform:scale(1.18); } 30%{ transform:none; } 100%{ background:transparent; } }
.tk-d{ color:var(--text-faint); }
.tk-clk{ font:600 12.5px var(--display); letter-spacing:.06em; color:var(--live-ink); font-variant-numeric:tabular-nums; }
.tk-sep{ width:4px; height:4px; border-radius:50%; background:var(--live-line); flex:none; }
.tk-end{ position:relative; z-index:2; display:flex; align-items:center; gap:14px; height:100%; padding:0 max(16px, calc((100% - 1240px) / 2)) 0 14px; background:var(--live-soft);
  box-shadow:-12px 0 14px -6px var(--live-soft); flex:none; color:var(--text-muted); font-size:12.5px; }
.tk-end a{ font-weight:700; color:var(--live-ink); text-decoration:none; }
@media (max-width:700px){
  .tk{ height:44px; } .tk-w, .tk-end{ display:none; }
  .tk-tag{ padding:0 8px 0 12px; gap:6px; }
  .tk-tag b{ min-width:18px; height:18px; border-radius:9px; display:grid; place-items:center; background:#c42d31; color:#fff; font-size:11px; }
  .tk-g{ padding:0 10px; gap:7px; margin:0 3px; } .tk-g .comp-crest{ display:none; }
}
@media (prefers-reduced-motion: reduce){
  .tk.go[data-fit] .tk-track{ animation:none; }
  .tk.go .tk-vp{ overflow-x:auto; scrollbar-width:none; -webkit-mask-image:none; mask-image:none; }
  .tk.go .tk-set[aria-hidden="true"]{ display:none; }
}

/* Home: the stack of live games */
.lvs{ display:grid; gap:10px; }
.lvc{ position:relative; display:block; border-radius:16px; color:#fff; text-decoration:none; padding:14px 16px 16px; overflow:hidden; isolation:isolate;
  background:linear-gradient(160deg, oklch(35% 0.09 25 / .55), rgba(255,255,255,.03)); border:1px solid oklch(60% 0.17 25 / .55);
  transition:transform .2s cubic-bezier(.3,.7,.2,1), border-color .2s, box-shadow .2s; }
.lvc.in{ animation:lvcIn .5s cubic-bezier(.2,.7,.2,1) both; }
.lvc:hover{ transform:translateY(-2px); border-color:oklch(68% 0.19 25 / .9); box-shadow:0 14px 30px -18px oklch(55% 0.2 25 / .9); text-decoration:none; color:#fff; }
.lvc:active{ transform:translateY(0) scale(.99); }
.lvc:focus-visible{ outline:2px solid oklch(84% 0.13 86); outline-offset:3px; }
@keyframes lvcIn{ from{ opacity:0; transform:translateY(8px); } to{ opacity:1; transform:none; } }
.lvc::before{ content:""; position:absolute; inset:0; z-index:-1; background:radial-gradient(60% 120% at 50% 0%, oklch(60% 0.2 25 / .22), transparent 70%); opacity:0; transition:opacity .3s; }
.lvc:hover::before{ opacity:1; }
.lvc-k{ display:flex; align-items:center; gap:9px; font-size:12.5px; color:rgba(255,255,255,.6); min-width:0; }
.lvc-k > span{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.lvc-k .comp-crest{ border-radius:6px; padding:2px; box-shadow:none; }
.lvc-k em{ margin-left:auto; flex:none; display:inline-flex; align-items:center; gap:6px; font-style:normal; font-weight:700; font-size:11.5px; letter-spacing:.1em; text-transform:uppercase; color:oklch(70% 0.2 25); }
.lvc-k em i{ width:8px; height:8px; border-radius:50%; background:currentColor; animation:hmg-pulse 1.6s infinite; }
.lvc-m{ display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:center; gap:12px; margin:12px 0 10px; }
.lvc-s{ display:flex; align-items:center; gap:11px; min-width:0; }
.lvc-s.r{ flex-direction:row-reverse; text-align:right; }
.lvc-s b{ font:700 16px/1.15 var(--display); color:rgba(255,255,255,.8); overflow-wrap:anywhere; }
.lvc-s.lead b{ color:#fff; }
.lvc-s .crest-logo, .lvc-s .crest-flag, .lvc-s .swatch{ width:40px !important; height:40px !important; flex:none; }
.lvc-sc{ display:flex; align-items:center; gap:10px; font:700 34px/1 var(--display); font-variant-numeric:tabular-nums; }
.lvc-sc > span{ min-width:2ch; text-align:center; color:rgba(255,255,255,.55); height:34px; overflow:hidden; display:inline-block; transition:color .4s; }
.lvc-sc > span.lead{ color:#fff; }
.lvc-sc i{ font-style:normal; font-weight:400; font-size:20px; color:rgba(255,255,255,.3); }
.lvc-roll{ display:flex; flex-direction:column; animation:lvcRoll .7s cubic-bezier(.3,.8,.2,1) forwards; }
.lvc-roll b{ display:block; height:34px; line-height:34px; font:inherit; }
@keyframes lvcRoll{ to{ transform:translateY(-34px); } }
.lvc-f{ display:flex; align-items:center; gap:12px; font-size:13px; color:rgba(255,255,255,.72); }
.lvc-clk{ font:700 13px var(--display); letter-spacing:.06em; color:#fbd47c; font-variant-numeric:tabular-nums; }
.lvc-tip{ color:rgba(255,255,255,.5); font-size:12.5px; }
.lvc-go{ margin-left:auto; font-weight:600; color:oklch(84% 0.13 86); display:inline-flex; align-items:center; gap:6px; }
.lvc-go::after{ content:"→"; transition:transform .2s; }
.lvc:hover .lvc-go::after{ transform:translateX(3px); }
.lvc-bar{ position:absolute; left:0; right:0; bottom:0; height:3px; background:rgba(255,255,255,.06); }
.lvc-bar i{ display:block; position:relative; height:100%; width:calc(var(--p) * 100%); background:linear-gradient(90deg, oklch(62% 0.2 25 / .5), oklch(70% 0.2 25)); transition:width 1s linear; }
.lvc-bar i::after{ content:""; position:absolute; top:-2px; right:-4px; width:7px; height:7px; border-radius:50%; background:oklch(75% 0.18 25); box-shadow:0 0 10px oklch(70% 0.2 25); }
.lvc.fin{ background:linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.03)); border-color:rgba(255,255,255,.16); }
.lvc.fin .lvc-k em{ color:rgba(255,255,255,.75); }
.lvc.fin .lvc-clk{ color:rgba(255,255,255,.8); }
#lv-hero-side:has(.lvs) + .hmg-scroll{ margin-top:12px; }
.hmg-col-h em.lvn{ font-style:normal; color:oklch(72% 0.17 25); font-weight:700; letter-spacing:.04em; }
@media (max-width:700px){
  .lvc{ padding:12px 12px 14px; }
  .lvc-m{ gap:8px; }
  .lvc-s, .lvc-s.r{ flex-direction:column; text-align:center; gap:6px; }
  .lvc-s b{ font-size:13.5px; }
  .lvc-sc{ font-size:28px; gap:6px; } .lvc-sc > span{ height:28px; } .lvc-roll b{ height:28px; line-height:28px; }
  .lvc-roll{ animation-name:lvcRollS; }
  .lvc-tip{ display:none; }
}
@keyframes lvcRollS{ to{ transform:translateY(-28px); } }
@media (prefers-reduced-motion: reduce){ .lvc.in, .lvc-roll, .lvc-k em i{ animation:none !important; } .lvc{ transition:none; } }

/* ---------- Home: the signing hero (app4zk_sghero.js) ---------- */
.sgx{--sgh:262;position:relative;border-radius:20px;overflow:hidden;color:#fff;isolation:isolate;min-height:390px;
  background:radial-gradient(70% 120% at 16% 100%,oklch(50% 0.17 var(--sgh)/.55),transparent 62%),
             radial-gradient(55% 90% at 100% 0%,oklch(42% 0.12 calc(var(--sgh) - 30)/.35),transparent 60%),
             linear-gradient(160deg,oklch(22% 0.04 var(--sgh)),oklch(13% 0.02 255));
  box-shadow:0 30px 60px -30px oklch(20% 0.09 var(--sgh)/.8),inset 0 1px 0 rgba(255,255,255,.06);
  transition:transform .5s cubic-bezier(.2,.7,.2,1);transform-style:preserve-3d;animation:sgxIn .9s cubic-bezier(.2,.75,.15,1) both}
@keyframes sgxIn{from{clip-path:inset(0 0 100% 0 round 20px);transform:translateY(16px)}to{clip-path:inset(0 0 0 0 round 20px);transform:none}}
.sgx::after{content:"";position:absolute;inset:0;pointer-events:none;z-index:5;border-radius:20px;
  background:linear-gradient(105deg,transparent 35%,rgba(255,255,255,.08) 48%,transparent 60%);transform:translateX(-100%)}
.sgx.in::after{animation:sgxSweep 1.4s 1.5s cubic-bezier(.3,.6,.2,1)}
@keyframes sgxSweep{to{transform:translateX(100%)}}
.sgx .grain{position:absolute;inset:0;z-index:0;opacity:.07;pointer-events:none;background-image:radial-gradient(rgba(255,255,255,.7) 1px,transparent 1px);background-size:3px 3px;mask:linear-gradient(90deg,transparent,#000 40%,#000 70%,transparent)}
.sgx .ghost{position:absolute;right:-1%;top:52%;transform:translateY(-50%) translateX(var(--px,0px));z-index:0;font:900 clamp(150px,19vw,280px)/.8 'Archivo',system-ui,sans-serif;font-stretch:62%;
  text-transform:uppercase;color:transparent;-webkit-text-stroke:1.5px rgba(255,255,255,.07);letter-spacing:-.01em;pointer-events:none;transition:transform .25s ease-out;white-space:nowrap}
.sgx .crestbg{position:absolute;left:2%;bottom:-16%;width:40%;max-width:500px;z-index:0;opacity:.08;filter:blur(1px) saturate(.7)}

.sgx-top{position:relative;z-index:4;display:flex;align-items:center;gap:14px;padding:18px 22px 0}
.sgx-eye{display:flex;align-items:center;gap:10px;font:700 11px var(--body);letter-spacing:.14em;text-transform:uppercase;color:oklch(82% 0.1 var(--sgh))}
.sgx-eye em{font-style:normal;color:rgba(255,255,255,.55);letter-spacing:.1em;margin-left:10px}
.sgx-eye .dot{width:8px;height:8px;border-radius:50%;background:oklch(72% 0.17 var(--sgh));box-shadow:0 0 0 0 oklch(72% 0.17 var(--sgh)/.6);animation:sgxPing 2.2s 1s infinite}
@keyframes sgxPing{0%{box-shadow:0 0 0 0 oklch(72% 0.17 var(--sgh)/.55)}70%{box-shadow:0 0 0 9px oklch(72% 0.17 var(--sgh)/0)}100%{box-shadow:0 0 0 0 oklch(72% 0.17 var(--sgh)/0)}}
.sgx-x{all:unset;cursor:pointer;margin-left:auto;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.08);color:#fff;transition:background .2s,transform .15s}
.sgx-x:hover{background:rgba(255,255,255,.16)}
.sgx-x:active{transform:scale(.92)}
.sgx-x svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
.sgx-x:focus-visible,.sgx-cta a:focus-visible,.sgx-mini button:focus-visible{outline:2px solid oklch(85% 0.09 var(--sgh));outline-offset:2px}

.sgx-body{position:relative;z-index:2;display:grid;grid-template-columns:minmax(240px,30%) minmax(0,1fr) 330px;gap:10px 28px;align-items:end;min-height:342px}
.sgx-photo{position:relative;align-self:stretch;display:flex;align-items:flex-end;justify-content:center;transform:translateX(var(--pxp,0px));transition:transform .25s ease-out}
.sgx-photo::before{content:"";position:absolute;left:8%;right:8%;bottom:6%;height:62%;border-radius:50%;background:radial-gradient(closest-side,oklch(66% 0.18 var(--sgh)/.6),transparent);filter:blur(12px);z-index:0}
.sgx-photo img{position:relative;z-index:1;height:330px;width:auto;max-width:100%;object-fit:contain;object-position:bottom;filter:drop-shadow(0 20px 30px rgba(0,0,0,.45));mask:linear-gradient(180deg,#000 82%,transparent)}
.sgx-photo .ini{position:relative;z-index:1;width:190px;height:190px;margin-bottom:60px;border-radius:50%;display:grid;place-items:center;font:800 60px var(--display);background:linear-gradient(160deg,oklch(40% 0.06 var(--sgh)),oklch(20% 0.02 255))}
.sgx-main{padding:6px 0 30px;min-width:0}
.sgx-kick{display:flex;align-items:center;gap:8px;font:700 12px var(--body);letter-spacing:.1em;text-transform:uppercase;color:rgba(255,255,255,.7)}
.sgx-flag{width:20px;height:15px;border-radius:3px;object-fit:cover;box-shadow:0 0 0 1px rgba(255,255,255,.18);flex:none}
.sgx-name{margin:10px 0 0;font:900 clamp(44px,5.4vw,76px)/.9 'Archivo',system-ui,sans-serif;font-stretch:72%;letter-spacing:-.01em;text-transform:uppercase}
.sgx-name > span{display:block;overflow:hidden;padding-bottom:.04em}
.sgx-name i{display:block;font-style:normal;background:linear-gradient(180deg,#fff 40%,oklch(86% 0.07 var(--sgh)));-webkit-background-clip:text;background-clip:text;color:transparent}
.sgx-sub{margin:12px 0 0;display:flex;align-items:center;gap:9px;font:600 17px var(--body);color:rgba(255,255,255,.75)}
.sgx-sub img{width:30px;height:30px;object-fit:contain}
.sgx-sub b{color:#fff;font-weight:800}
.sgx-note{margin:8px 0 0;font-size:13.5px;color:rgba(255,255,255,.6);max-width:52ch;text-wrap:pretty}
.sgx-meta{margin-top:14px;display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.sgx .chip{display:inline-flex;align-items:center;gap:8px;padding:6px 11px;border-radius:999px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.08);font-size:12.5px;font-weight:600;color:rgba(255,255,255,.88);backdrop-filter:blur(6px)}
.sgx .chip b{color:#fff}
.sgx .chip .sgx-flag{width:16px;height:12px}
.sgx-cta{margin-top:18px;display:flex;gap:8px;flex-wrap:wrap}
.sgx-cta a{display:inline-flex;align-items:center;gap:8px;padding:10px 16px;border-radius:12px;font-size:13px;font-weight:700;text-decoration:none;color:#fff;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.1);transition:background .2s,transform .15s}
.sgx-cta a:hover{background:rgba(255,255,255,.14)}
.sgx-cta a:active{transform:scale(.97)}
.sgx-cta a.pri{background:linear-gradient(180deg,oklch(64% 0.19 var(--sgh)),oklch(50% 0.2 var(--sgh)));border-color:transparent;box-shadow:0 8px 20px -8px oklch(50% 0.2 var(--sgh)/.8)}
.sgx-cta a.pri:hover{filter:brightness(1.08)}

/* the move */
.sgx-move{align-self:stretch;margin:6px 22px 22px 0;padding:16px;border-radius:18px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);display:flex;flex-direction:column;gap:14px;backdrop-filter:blur(8px)}
.sgx-move h3{margin:0;font:700 11px var(--body);letter-spacing:.12em;text-transform:uppercase;color:rgba(255,255,255,.6)}
.sgx-route{flex:1;display:grid;grid-template-columns:minmax(0,auto) minmax(28px,1fr) minmax(0,auto);align-items:center;gap:6px}
.sgx-node{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;min-width:0;max-width:112px}
.sgx-node .disc{width:66px;height:66px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);position:relative}
.sgx-node .disc img{width:46px;height:46px;object-fit:contain}
.sgx-node .disc .sgx-flag{width:34px;height:25px}
.sgx-node .disc .ini{font:800 20px var(--display)}
.sgx-node.to .disc{width:92px;height:92px;background:radial-gradient(closest-side,oklch(55% 0.2 var(--sgh)/.45),rgba(255,255,255,.04));border-color:oklch(70% 0.15 var(--sgh)/.5)}
.sgx-node.to .disc img{width:74px;height:74px;filter:drop-shadow(0 6px 14px rgba(0,0,0,.4))}
.sgx-node.to .disc::after{content:"";position:absolute;inset:-6px;border-radius:50%;border:2px solid oklch(72% 0.17 var(--sgh)/.0)}
.sgx-node b{font-size:12.5px;font-weight:700;line-height:1.2;color:#fff;max-width:13ch;text-wrap:balance}
.sgx-node.to b{font-size:14px}
.sgx-node small{display:inline-flex;align-items:center;gap:5px;font-size:11px;color:rgba(255,255,255,.55)}
.sgx-node small .sgx-flag{width:14px;height:10px;border-radius:2px}
.sgx-route .arc{width:100%;height:42px;overflow:visible;margin-bottom:34px}
.sgx-route .arc path{fill:none;stroke:oklch(78% 0.12 var(--sgh));stroke-width:1.6;stroke-dasharray:.02 .025;vector-effect:non-scaling-stroke;opacity:.8}
.sgx-route .arc circle{fill:#fff;filter:drop-shadow(0 0 4px oklch(75% 0.17 var(--sgh)));opacity:0;transition:opacity .2s}
.sgx.flying .sgx-route .arc circle{opacity:1}
.sgx-league{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:14px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08)}
.sgx-league .plate{flex:none;width:72px;height:56px;border-radius:10px;background:#fff;display:grid;place-items:center;box-shadow:0 6px 16px -8px rgba(0,0,0,.6)}
.sgx-league .plate img{width:62px;height:auto;max-height:48px;object-fit:contain}
.sgx-league small{display:block;font:700 10.5px var(--body);letter-spacing:.12em;text-transform:uppercase;color:rgba(255,255,255,.5)}
.sgx-league b{display:block;font-size:13.5px;line-height:1.25;color:#fff;margin-top:2px;text-wrap:balance}

/* entrance: photo rises, name rises line by line, the move draws, the new crest lands */
.sgx.in .sgx-photo img,.sgx.in .sgx-photo .ini{animation:sgxRise .9s .2s cubic-bezier(.2,.8,.2,1) both}
@keyframes sgxRise{from{opacity:0;transform:translateY(34px) scale(.97);filter:blur(4px) drop-shadow(0 20px 30px rgba(0,0,0,.45))}to{opacity:1;transform:none}}
.sgx.in .sgx-kick{animation:sgxUp .6s .25s cubic-bezier(.2,.8,.2,1) both}
.sgx.in .sgx-name i{animation:sgxLine .8s calc(.32s + var(--i) * .1s) cubic-bezier(.2,.8,.2,1) both}
@keyframes sgxLine{from{transform:translateY(105%)}to{transform:none}}
.sgx.in .sgx-sub{animation:sgxUp .6s .55s cubic-bezier(.2,.8,.2,1) both}
.sgx.in .sgx-note{animation:sgxUp .6s .62s cubic-bezier(.2,.8,.2,1) both}
.sgx.in .sgx-meta .chip{animation:sgxUp .5s .7s cubic-bezier(.2,.8,.2,1) both}
.sgx.in .sgx-meta .chip:nth-child(2){animation-delay:.78s}.sgx.in .sgx-meta .chip:nth-child(3){animation-delay:.86s}
.sgx.in .sgx-cta{animation:sgxUp .6s .9s cubic-bezier(.2,.8,.2,1) both}
@keyframes sgxUp{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.sgx.in .sgx-move{animation:sgxSide .7s .45s cubic-bezier(.2,.8,.2,1) both}
@keyframes sgxSide{from{opacity:0;transform:translateX(14px)}to{opacity:1;transform:none}}
.sgx.in .sgx-node.from{animation:sgxUp .5s .65s both}
.sgx.in .sgx-route .arc path{animation:sgxDraw 1.1s .75s cubic-bezier(.3,0,.2,1) both}
@keyframes sgxDraw{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0 0 0 0)}}
.sgx.in .sgx-node.to .disc{animation:sgxLand .7s 1.65s cubic-bezier(.3,1.5,.5,1) both}
@keyframes sgxLand{from{opacity:0;transform:scale(.6)}to{opacity:1;transform:none}}
.sgx.in .sgx-node.to .disc::after{animation:sgxRing 1.2s 1.95s ease-out}
@keyframes sgxRing{from{border-color:oklch(75% 0.17 var(--sgh)/.7);transform:scale(.9)}to{border-color:oklch(75% 0.17 var(--sgh)/0);transform:scale(1.35)}}
.sgx.in .sgx-node.to b,.sgx.in .sgx-node.to small{animation:sgxUp .5s 1.85s both}
.sgx.in .sgx-league{animation:sgxUp .6s 2s cubic-bezier(.2,.8,.2,1) both}

/* collapsed */
.sgx-mini{display:none;align-items:center;gap:10px;padding:9px 12px 9px 14px;border-radius:16px;background:linear-gradient(110deg,oklch(26% 0.06 var(--sgh,262)),oklch(16% 0.02 255));color:#fff;font-size:13px;font-weight:600}
.sgx-mini.show{display:flex;animation:sgxUp .4s both}
.sgx-mini .cr{width:24px;height:24px;object-fit:contain}
.sgx-mini .av{width:26px;height:26px;border-radius:50%;object-fit:cover;object-position:top;background:#222;box-shadow:0 0 0 2px oklch(20% 0.03 255)}
.sgx-mini span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sgx-mini button{all:unset;cursor:pointer;margin-left:auto;padding:7px 12px;border-radius:10px;background:linear-gradient(180deg,oklch(64% 0.19 var(--sgh,262)),oklch(50% 0.2 var(--sgh,262)));font-weight:700;font-size:12.5px;flex:none}
.sgx.gone{display:none}
.hm > .sgx-mini:not(.show){display:none}

@media (max-width:1100px){
  .sgx-body{grid-template-columns:minmax(200px,36%) minmax(0,1fr)}
  .sgx-move{grid-column:1/-1;margin:0 22px 22px;display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);align-items:center;gap:14px 20px}
  .sgx-move h3{grid-column:1/-1}
  .sgx-route .arc{margin-bottom:30px}
}
@media (max-width:640px){
  .sgx{min-height:0}
  .sgx-top{padding:14px 14px 0}
  .sgx-eye em{display:block;margin:2px 0 0}
  .sgx-body{grid-template-columns:120px minmax(0,1fr);grid-template-areas:"ph kick" "ph name" "sub sub" "note note" "meta meta" "cta cta" "move move";gap:0 12px;min-height:0;align-items:end}
  .sgx-photo{grid-area:ph;margin-top:6px}.sgx-photo img{height:160px}
  .sgx-photo .ini{width:96px;height:96px;font-size:30px;margin-bottom:20px}
  .sgx-main{display:contents}
  .sgx-kick{grid-area:kick;font-size:10.5px;padding-right:14px;align-self:end}
  .sgx-name{grid-area:name;font-size:40px;margin:6px 14px 10px 0}
  .sgx-sub{grid-area:sub;margin:12px 14px 0;font-size:15px}
  .sgx-note{display:none}
  .sgx-meta{grid-area:meta;margin:12px 14px 0}
  .sgx-cta{grid-area:cta;margin:14px 14px 0}
  .sgx-move{grid-area:move;margin:16px 14px 14px;display:flex}
  .sgx-node.to .disc{width:80px;height:80px}.sgx-node.to .disc img{width:64px;height:64px}
  .sgx-move{gap:10px;padding:14px}
  .sgx .ghost,.sgx .crestbg{display:none}
}
@media (prefers-reduced-motion:reduce){
  .sgx,.sgx *,.sgx::after,.sgx *::after{animation:none!important;transition:none!important}
}

/* ===================== MBL page: records (app4zh_mbl.js, mr-*) ===================== */
.mr-body{ display:grid; gap:14px; }
.mr-body.swap > *{ animation:mrFade .38s cubic-bezier(.3,.7,.2,1) both; }
@keyframes mrFade{ from{ opacity:0; transform:translateY(8px); } to{ opacity:1; transform:none; } }
.mr-grid{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; align-items:start; }
.mr-c{ --h:250; position:relative; overflow:hidden; padding:16px 18px 10px; display:grid; align-content:start; animation:mbRise .55s cubic-bezier(.3,.7,.2,1) both; }
.mr-c::before{ content:""; position:absolute; right:-70px; top:-90px; width:240px; height:240px; border-radius:50%; pointer-events:none;
  background:radial-gradient(closest-side,oklch(66% 0.15 var(--h) / .16),transparent); transition:background .5s; }
.mr-c header{ position:relative; display:flex; justify-content:space-between; align-items:baseline; gap:8px; }
.mr-c header b{ font:700 15px var(--display); }
.mr-c header em{ font:600 11px var(--body); font-style:normal; letter-spacing:.06em; color:var(--text-faint); }
.mr-top{ position:relative; display:grid; grid-template-columns:58px minmax(0,1fr) auto; gap:12px; align-items:center; padding:12px 0 13px; border-bottom:1px solid var(--hair); color:var(--text); }
.mr-top:hover{ text-decoration:none; }
.mr-top:hover .who b{ text-decoration:underline; }
.mr-top:focus-visible, .mr-r:focus-visible, .mr-g:focus-visible, .mr-s:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; border-radius:10px; }
.mr-ph{ width:30px; height:30px; flex:none; border-radius:50%; overflow:hidden; display:grid; place-items:center; color:#fff; font:700 11px var(--display);
  background:linear-gradient(160deg,oklch(38% 0.03 255),oklch(20% 0.015 255)); }
.mr-ph img{ width:100%; height:100%; object-fit:cover; object-position:top; }
.mr-top .mr-ph{ width:58px; height:58px; font-size:16px; box-shadow:0 0 0 2px var(--surface),0 0 0 4px oklch(62% 0.14 var(--h) / .75); }
.mr-top .who{ min-width:0; display:grid; gap:3px; }
.mr-top .who b{ font:700 16px/1.15 var(--display); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mr-top .who small{ display:flex; gap:6px; align-items:center; font-size:12px; color:var(--text-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mr-top .who small + small{ white-space:normal; }
.mr-top .who small img{ width:16px; height:16px; object-fit:contain; flex:none; }
.mr-big{ font:800 56px/.84 var(--mb-num); font-stretch:62%; font-variant-numeric:tabular-nums; letter-spacing:-.01em;
  background:linear-gradient(180deg,var(--text) 40%,oklch(58% 0.15 var(--h))); -webkit-background-clip:text; background-clip:text; color:transparent; }
.mr-r{ display:grid; grid-template-columns:18px 30px minmax(0,1fr) auto; gap:10px; align-items:center; padding:6px 0; color:var(--text); }
.mr-r:hover{ text-decoration:none; }
.mr-r:hover .n b{ text-decoration:underline; }
.mr-r .rk{ font:700 13px var(--body); color:var(--text-faint); text-align:center; }
.mr-r .n{ min-width:0; display:grid; gap:1px; }
.mr-r .n b{ font-size:13px; font-weight:600; display:flex; gap:6px; align-items:center; min-width:0; }
.mr-r .n b span{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mr-r .n small{ font-size:11.5px; color:var(--text-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mr-r .v{ font:700 19px var(--mb-num); font-stretch:80%; font-variant-numeric:tabular-nums; }
.mr-fl{ width:16px; height:12px; border-radius:2px; object-fit:cover; flex:none; box-shadow:0 0 0 1px oklch(0% 0 0 / .12); }
.mr-new{ flex:none; font:700 9.5px var(--body); letter-spacing:.06em; padding:2px 5px; border-radius:5px; color:#fff; background:var(--mb-acc); }
.mr-none{ padding:18px 0 12px; font-size:13px; color:var(--text-muted); }
.mr-c:not(.open) .mr-r.x{ display:none; }
.mr-c.open .mr-r.x{ animation:mrFade .35s cubic-bezier(.3,.7,.2,1) both; }
.mr-c .mr-more{ margin:6px 0 6px; }

.mr-low{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.25fr); gap:14px; align-items:start; }
.mr-pane{ padding:16px 18px 14px; display:grid; gap:12px; align-content:start; animation:mbRise .55s cubic-bezier(.3,.7,.2,1) both; }
.mr-ph2{ display:flex; align-items:baseline; gap:10px; flex-wrap:wrap; }
.mr-ph2 h3{ margin:0; font:700 18px var(--display); }
.mr-ph2 span{ font-size:12.5px; color:var(--text-muted); }
.mr-list{ display:grid; }
.mr-g{ --h:250; display:grid; grid-template-columns:46px 34px minmax(0,1fr) auto; gap:10px 12px; align-items:center; padding:10px 0; border-top:1px solid var(--hair); color:var(--text);
  animation:mrFade .4s cubic-bezier(.3,.7,.2,1) both; }
.mr-g:hover{ text-decoration:none; }
.mr-g:hover .nm{ text-decoration:underline; }
.mr-g .mr-ph{ width:34px; height:34px; }
.mr-dt{ display:grid; justify-items:center; line-height:1; padding:6px 0; border-radius:10px; background:var(--surface-alt); }
.mr-dt b{ font:800 19px var(--mb-num); font-stretch:70%; }
.mr-dt small{ white-space:nowrap; font:700 9.5px var(--body); letter-spacing:.06em; color:var(--text-muted); text-transform:uppercase; margin-top:2px; }
.mr-g .who{ min-width:0; display:grid; gap:2px; }
.mr-g .nm{ font-weight:600; font-size:13.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; display:flex; gap:6px; align-items:center; }
.mr-g .nm span{ overflow:hidden; text-overflow:ellipsis; }
.mr-g .sub{ font-size:11.5px; color:var(--text-muted); display:flex; gap:6px; align-items:center; white-space:nowrap; overflow:hidden; }
.mr-g .sub img{ width:14px; height:14px; object-fit:contain; flex:none; }
.mr-g .res{ font-weight:700; }
.mr-g .res.w{ color:var(--positive-ink); }
.mr-g .res.l{ color:var(--negative); }
.mr-pls{ display:flex; gap:4px; }
.mr-pl{ display:grid; justify-items:center; min-width:38px; padding:5px 4px 4px; border-radius:9px; background:var(--surface-alt); line-height:1; }
.mr-pl b{ font:700 17px var(--mb-num); font-stretch:75%; font-variant-numeric:tabular-nums; }
.mr-pl small{ font:700 9px var(--body); letter-spacing:.06em; color:var(--text-faint); margin-top:3px; }
.mr-pl.on{ background:linear-gradient(160deg,oklch(64% 0.15 var(--h)),oklch(50% 0.15 var(--h))); color:#fff; box-shadow:inset 0 1px 0 rgba(255,255,255,.18); }
.mr-pl.on small{ color:rgba(255,255,255,.82); }
.mr-more{ all:unset; cursor:pointer; justify-self:start; margin-top:4px; font-size:13px; font-weight:600; color:var(--accent-ink); }
.mr-more:hover{ text-decoration:underline; }
.mr-more:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; border-radius:4px; }

.mr-s{ --h:250; display:grid; grid-template-columns:18px 34px minmax(0,1fr) auto; gap:4px 12px; align-items:center; padding:10px 0; border-top:1px solid var(--hair); color:var(--text);
  animation:mrFade .4s cubic-bezier(.3,.7,.2,1) both; }
.mr-s:hover{ text-decoration:none; }
.mr-s:hover .nm span{ text-decoration:underline; }
.mr-s .rk{ font:700 13px var(--body); color:var(--text-faint); text-align:center; }
.mr-s .mr-ph{ width:34px; height:34px; }
.mr-s .mid{ min-width:0; display:grid; gap:5px; }
.mr-s .when{ font-size:11.5px; color:var(--text-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mr-s .nm{ font-weight:600; font-size:13.5px; display:flex; gap:6px; align-items:center; min-width:0; white-space:nowrap; }
.mr-s .nm span{ overflow:hidden; text-overflow:ellipsis; }
.mr-s .nm img.cr{ width:15px; height:15px; object-fit:contain; flex:none; }
.mr-s .nm small{ font-weight:500; font-size:11.5px; color:var(--text-muted); overflow:hidden; text-overflow:ellipsis; }
.mr-bd{ display:flex; flex-wrap:wrap; gap:3px; align-items:center; }
.mr-bd i{ width:9px; height:9px; border-radius:3px; background:linear-gradient(160deg,oklch(74% 0.13 var(--h)),oklch(54% 0.15 var(--h)));
  animation:mbPop .35s cubic-bezier(.3,1.4,.4,1) both; }
.mr-bd i.nx{ background:none; box-shadow:inset 0 0 0 1.5px oklch(62% 0.12 var(--h) / .7); animation:mrBreath 1.6s ease-in-out infinite; }
@keyframes mrBreath{ 50%{ opacity:.35; } }
.mr-bd em{ font:700 11px var(--body); font-style:normal; color:var(--text-muted); margin-left:3px; }
.mr-s .len{ display:grid; justify-items:end; line-height:1; gap:3px; }
.mr-s .len b{ font:800 30px var(--mb-num); font-stretch:65%; font-variant-numeric:tabular-nums; }
.mr-s .len small{ font-size:11px; color:var(--text-muted); white-space:nowrap; }
.mr-act{ display:inline-flex; align-items:center; gap:5px; flex:none; font:700 9.5px var(--body); letter-spacing:.07em; color:var(--accent-2-ink); }
.mr-act::before{ content:""; width:7px; height:7px; border-radius:50%; background:#e8b532; animation:mbPing 1.8s infinite; }
.mr-tabs{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.mr-tabs .mb-mchips{ flex:1 1 380px; }

@media (max-width:1060px){
  .mr-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .mr-low{ grid-template-columns:minmax(0,1fr); }
}
@media (max-width:640px){
  .mr-grid{ grid-template-columns:minmax(0,1fr); }
  .mr-big{ font-size:48px; }
  .mr-g{ grid-template-columns:42px 30px minmax(0,1fr); }
  .mr-g .mr-ph{ width:30px; height:30px; }
  .mr-pls{ grid-column:2 / -1; }
  .mr-s{ grid-template-columns:16px 30px minmax(0,1fr) auto; }
  .mr-s .mr-ph{ width:30px; height:30px; }
  .mr-pane, .mr-c{ padding-left:14px; padding-right:14px; }
}
@media (prefers-reduced-motion: reduce){
  .mr-c, .mr-pane, .mr-g, .mr-s, .mr-bd i, .mr-body.swap > *{ animation:none; }
  .mr-bd i.nx, .mr-act::before{ animation:none; }
}
.mhx.ch .mhx-num .unit small{color:#efca75}

/* ===================== MBL page: analysis (app4zh_mbl.js, ma-*) ===================== */
/* chart colours: validated with the dataviz checker (light on #fcfcfb, dark on #1a1a19) */
:root{ --ma-1:#2563c9; --ma-2:#c39400; --ma-3:#1f9e89; --ma-grid:oklch(91% 0.008 255); --ma-ax:oklch(55% 0.015 255); }
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]){ --ma-1:#4f86df; --ma-2:#c79917; --ma-3:#22977f; --ma-grid:oklch(29% 0.012 255); --ma-ax:oklch(62% 0.012 255); } }
:root[data-theme="dark"]{ --ma-1:#4f86df; --ma-2:#c79917; --ma-3:#22977f; --ma-grid:oklch(29% 0.012 255); --ma-ax:oklch(62% 0.012 255); }

.ma-grid{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; align-items:start; }
.ma-grid.three{ grid-template-columns:repeat(3,minmax(0,1fr)); }
.ma-c{ padding:16px 18px 16px; display:grid; gap:12px; align-content:start; min-width:0; animation:mbRise .55s cubic-bezier(.3,.7,.2,1) both; }
.ma-c.wide{ grid-column:1 / -1; }
.ma-h{ display:flex; align-items:baseline; gap:10px; flex-wrap:wrap; }
.ma-h h3{ margin:0; font:700 18px var(--display); }
.ma-h span{ font-size:12.5px; color:var(--text-muted); }
.ma-h .ma-lg{ margin-left:auto; }
.ma-lg{ display:flex; gap:12px; flex-wrap:wrap; font-size:12px; color:var(--text-muted); }
.ma-lg i{ display:inline-block; width:10px; height:10px; border-radius:3px; margin-right:5px; vertical-align:-1px; }
.ma-kick{ font-size:12.5px; color:var(--text-muted); margin:-4px 0 0; }
.ma-kick b{ color:var(--text); font-weight:600; }
.ma-c[data-dim] .ma-t:not(.on), .ma-c[data-dim] .ma-dot:not(.on){ opacity:.28; }
.ma-t, .ma-dot{ transition:opacity .25s; }

/* who scores: donuts */
.ma-donuts{ display:grid; grid-template-columns:1.25fr repeat(5,minmax(0,1fr)); gap:10px; align-items:end; }
.ma-dn{ display:grid; justify-items:center; gap:6px; text-align:center; cursor:default; }
.ma-dn svg{ width:100%; max-width:118px; height:auto; overflow:visible; }
.ma-dn.lg svg{ max-width:150px; }
.ma-dn .seg{ fill:none; stroke-width:15; transition:stroke-width .2s; }
.ma-dn .seg:hover{ stroke-width:18; }
.ma-dn .seg.a{ animation:maArc 1s cubic-bezier(.3,.7,.2,1) both; }
@keyframes maArc{ from{ stroke-dasharray:0 999; } }
.ma-dn .pc{ font:800 22px var(--mb-num); font-stretch:70%; fill:var(--text); }
.ma-dn.lg .pc{ font-size:27px; }
.ma-dn .pl{ font:600 9.5px var(--body); letter-spacing:.06em; fill:var(--text-muted); }
.ma-dn b{ font-size:12.5px; font-weight:600; display:flex; gap:5px; align-items:center; justify-content:center; }
.ma-dn b img{ width:18px; height:18px; object-fit:contain; }
.ma-dn small{ font-size:11px; color:var(--text-muted); }

/* rows of bars: one team per row */
.ma-rows{ display:grid; gap:8px; }
.ma-row{ display:grid; grid-template-columns:22px minmax(86px,118px) minmax(0,1fr) 74px; gap:10px; align-items:center; font-size:13px; }
.ma-row .rk{ font:700 13px var(--body); color:var(--text-faint); text-align:center; }
.ma-row .tm{ display:flex; gap:7px; align-items:center; font-weight:600; white-space:nowrap; overflow:hidden; }
.ma-row .tm img{ width:22px; height:22px; object-fit:contain; flex:none; }
.ma-row .tm span{ overflow:hidden; text-overflow:ellipsis; }
.ma-row .v{ text-align:right; font:700 17px var(--mb-num); font-stretch:78%; font-variant-numeric:tabular-nums; }
.ma-row .v small{ display:block; white-space:nowrap; font:500 10.5px var(--body); color:var(--text-muted); font-stretch:100%; }
.ma-track{ position:relative; height:22px; border-radius:6px; background:var(--surface-alt); display:flex; gap:2px; overflow:hidden; }
.ma-seg{ height:100%; display:flex; align-items:center; justify-content:center; font:700 11px var(--body); color:#fff; white-space:nowrap; overflow:hidden; min-width:0;
  transform-origin:left; animation:maGrow .9s cubic-bezier(.3,.7,.2,1) both; }
.ma-seg:first-child{ border-radius:6px 0 0 6px; } .ma-seg:last-child{ border-radius:0 6px 6px 0; } .ma-seg:only-child{ border-radius:6px; }
@keyframes maGrow{ from{ transform:scaleX(0); } }
.ma-track .avg{ position:absolute; top:-3px; bottom:-3px; width:2px; border-radius:1px; background:var(--text); opacity:.55; }
.ma-best{ font:700 9.5px var(--body); letter-spacing:.06em; padding:2px 6px; border-radius:5px; background:var(--positive-soft, oklch(95% 0.03 148)); color:var(--positive-ink); margin-left:4px; }

/* efficiency scatter */
.ma-sc svg{ width:100%; height:auto; display:block; overflow:visible; }
.ma-sc .gl{ stroke:var(--ma-grid); stroke-width:1; }
.ma-sc .av{ stroke:var(--ma-ax); stroke-width:1; stroke-dasharray:4 4; }
.ma-sc .tx{ font:500 11px var(--body); fill:var(--text-muted); }
.ma-sc .qd{ font:700 10px var(--body); letter-spacing:.08em; fill:var(--text-faint); text-transform:uppercase; }
.ma-sc .nm{ font:600 11.5px var(--body); fill:var(--text); paint-order:stroke; stroke:var(--surface); stroke-width:3px; }
.ma-dot{ animation:mbPop .5s cubic-bezier(.3,1.4,.4,1) both; transform-box:fill-box; transform-origin:center; }
.ma-dot circle.ring{ fill:var(--surface); stroke:var(--border); stroke-width:1.5; }
.ma-dot:hover circle.ring{ stroke:var(--text); }

/* discipline table */
.ma-tbl{ width:100%; border-collapse:collapse; font-size:13px; font-variant-numeric:tabular-nums; }
.ma-tbl th{ text-align:right; font:600 11px var(--body); letter-spacing:.05em; color:var(--text-muted); padding:0 8px 8px; white-space:nowrap; }
.ma-tbl th:first-child{ text-align:left; padding-left:0; }
.ma-tbl td{ padding:8px; border-top:1px solid var(--hair); text-align:right; }
.ma-tbl td:first-child{ text-align:left; padding-left:0; }
.ma-tbl .tm{ display:flex; gap:7px; align-items:center; font-weight:600; white-space:nowrap; }
.ma-tbl .tm img{ width:20px; height:20px; object-fit:contain; }
.ma-pill{ display:inline-grid; place-items:center; min-width:24px; height:22px; padding:0 6px; border-radius:7px; font-weight:700; font-size:12px; background:var(--surface-alt); color:var(--text-muted); }
.ma-pill.hot{ background:var(--accent-2-soft, oklch(95% 0.05 86)); color:var(--accent-2-ink); }
.ma-tw{ overflow-x:auto; }
.ma-who{ display:grid; gap:6px; }
.ma-who h4{ margin:4px 0 2px; font:600 11px var(--body); letter-spacing:.08em; color:var(--text-muted); text-transform:uppercase; }
.ma-pr{ display:grid; grid-template-columns:30px minmax(0,1fr) auto; gap:10px; align-items:center; font-size:13px; }
.ma-pr .n{ min-width:0; display:grid; }
.ma-pr .n b{ font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ma-pr .n small{ font-size:11.5px; color:var(--text-muted); }

/* players */
.ma-ph{ width:30px; height:30px; border-radius:50%; overflow:hidden; display:grid; place-items:center; color:#fff; font:700 11px var(--display); background:linear-gradient(160deg,oklch(38% 0.03 255),oklch(20% 0.015 255)); flex:none; }
.ma-ph img{ width:100%; height:100%; object-fit:cover; object-position:top; }
.ma-prow{ grid-template-columns:22px minmax(120px,170px) minmax(0,1fr) 54px; }
.ma-prow .tm{ font-weight:600; }
.ma-prow .tm .ma-ph{ width:24px; height:24px; font-size:9px; }

.ma-tip{ position:fixed; z-index:60; pointer-events:none; background:var(--on-bg); color:var(--on-fg); font-size:12px; line-height:1.45; padding:8px 11px; border-radius:8px;
  max-width:260px; white-space:pre-line; opacity:0; transform:translateY(4px); transition:opacity .12s, transform .12s; box-shadow:0 6px 18px rgba(0,0,0,.28); font-variant-numeric:tabular-nums; }
.ma-tip.on{ opacity:1; transform:none; }
.ma-tip b{ font-weight:700; }
.ma-note{ font-size:12px; color:var(--text-muted); }

@media (max-width:1060px){ .ma-grid, .ma-grid.three{ grid-template-columns:minmax(0,1fr); } }
@media (max-width:760px){ .ma-donuts{ grid-template-columns:repeat(3,minmax(0,1fr)); } .ma-dn.lg{ grid-column:1 / -1; } }
@media (max-width:640px){
  .ma-row{ grid-template-columns:18px minmax(0,96px) minmax(0,1fr) 52px; gap:8px; }
  .ma-row:not(.ma-prow) .tm span{ display:none; }
  .ma-prow{ grid-template-columns:18px minmax(0,112px) minmax(0,1fr) 46px; }
  .ma-c{ padding-left:14px; padding-right:14px; }
}
@media (prefers-reduced-motion: reduce){ .ma-c, .ma-seg, .ma-dot, .ma-dn .seg.a{ animation:none; } }

/* >>> PHONE LAYER >>> */
/* ===================== Phones (app6_phone.js): the frame, then page by page ===================== */
.ph-bar, .ph-sheet, .ph-veil, .ph-search{ display:none; }
@media (max-width:700px){
  /* header: one row */
  :root .nav{ position:sticky; top:0; z-index:40; height:56px; flex-wrap:nowrap; padding:0 6px 0 14px; padding-top:env(safe-area-inset-top, 0px); height:calc(56px + env(safe-area-inset-top, 0px)); }
  :root .nav-left{ flex:1 1 auto; max-width:none; min-width:0; }
  :root .nav-links{ display:none; }
  :root .wordmark{ font-size:16px; }
  :root .nav-right{ gap:4px; }
  :root .nav .acc-in, :root .nav .acc-chip{ height:36px; padding:0 12px; font-size:13px; }
  :root .theme-toggle{ width:40px; height:40px; }
  .ph-search{ display:grid; place-items:center; width:40px; height:40px; border-radius:12px; color:#fff; }
  .ph-search svg{ width:21px; height:21px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }
  .ph-search:active{ background:rgba(255,255,255,.12); }
  :root .subnav{ padding:0 16px; }
  :root .subnav-inner{ min-height:0; padding:10px 0; }
  :root .subnav-eyebrow{ font-size:12px; flex-wrap:wrap; row-gap:2px; }
  :root .footer-note{ padding:20px 18px 28px; font-size:11px; }

  /* the tab bar */
  body{ padding-bottom:calc(76px + env(safe-area-inset-bottom, 0px)); }
  .ph-bar{ display:grid; grid-template-columns:repeat(5,1fr); position:fixed; left:0; right:0; bottom:0; z-index:60;
    padding:6px max(6px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(6px, env(safe-area-inset-left, 0px));
    background:color-mix(in oklab, var(--surface) 90%, transparent); -webkit-backdrop-filter:blur(16px) saturate(1.4); backdrop-filter:blur(16px) saturate(1.4); border-top:1px solid var(--border); }
  .ph-tab{ all:unset; cursor:pointer; display:grid; justify-items:center; align-content:center; gap:3px; min-height:52px; font:600 10.5px var(--body); color:var(--text-muted); border-radius:14px; -webkit-tap-highlight-color:transparent; }
  .ph-tab .i{ position:relative; width:54px; height:30px; border-radius:15px; display:grid; place-items:center; transition:background .25s, color .25s; }
  .ph-tab svg{ width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }
  .ph-tab[aria-current="page"]{ color:var(--text); }
  .ph-tab[aria-current="page"] .i{ background:var(--on-bg); color:var(--on-fg); }
  .ph-tab.live .i::after{ content:""; position:absolute; top:3px; right:12px; width:7px; height:7px; border-radius:50%; background:#e8b532; box-shadow:0 0 0 2px var(--surface); }
  .ph-tab:focus-visible{ outline:2px solid var(--accent); outline-offset:-2px; }
  .ph-tab:hover{ text-decoration:none; }
  .ph-veil{ display:block; position:fixed; inset:0; z-index:70; background:oklch(10% 0.02 255 / .45); opacity:0; transition:opacity .25s; }
  .ph-veil.on{ opacity:1; }
  .ph-sheet{ display:block; position:fixed; left:0; right:0; bottom:0; z-index:71; max-height:86dvh; overflow-y:auto; overscroll-behavior:contain;
    background:var(--surface); color:var(--text); border-radius:24px 24px 0 0; padding:10px max(16px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
    transform:translateY(105%); transition:transform .32s cubic-bezier(.3,.7,.2,1); box-shadow:0 -12px 40px rgba(0,0,0,.25); }
  .ph-sheet.on{ transform:none; }
  .ph-veil[hidden], .ph-sheet[hidden]{ display:none; }
  .ph-grab{ width:40px; height:5px; border-radius:3px; background:var(--border); margin:0 auto 10px; }
  .ph-sh{ display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; }
  .ph-sh h2{ margin:0; font:700 20px var(--display); }
  .ph-x{ all:unset; cursor:pointer; width:40px; height:40px; border-radius:12px; display:grid; place-items:center; background:var(--surface-alt); }
  .ph-sheet svg{ width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; flex:none; }
  .ph-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:8px; }
  .ph-grid a{ display:flex; align-items:center; gap:10px; min-height:56px; padding:0 14px; border-radius:16px; background:var(--surface-alt); color:var(--text); font-weight:600; font-size:14px; }
  .ph-sheet h3{ margin:18px 0 6px; font:700 11px var(--body); letter-spacing:.1em; text-transform:uppercase; color:var(--text-muted); }
  .ph-list{ display:grid; }
  .ph-list a{ display:flex; align-items:center; gap:12px; min-height:56px; padding:6px 2px; border-top:1px solid var(--hair); color:var(--text); }
  .ph-list a:first-child{ border-top:0; }
  .ph-list b{ display:block; font-weight:600; font-size:14px; }
  .ph-list small{ display:block; font-size:12px; color:var(--text-muted); }
  .ph-sheet a:hover{ text-decoration:none; }
  .ph-row{ margin-top:14px; }
  .ph-row button{ all:unset; cursor:pointer; display:flex; justify-content:center; align-items:center; gap:8px; width:100%; box-sizing:border-box; padding:13px; border-radius:14px; border:1px solid var(--border); font-weight:600; font-size:14px; }
  html.ph-lock, html.ph-lock body{ overflow:hidden; }
  :root .st-menu{ display:none !important; }
}
@media (max-width:700px) and (prefers-reduced-motion: reduce){ .ph-sheet, .ph-veil, .ph-tab .i{ transition:none; } }

/* ---------- MBL page (app4zh_mbl.js): sections become tabs, games one weekend at a time ---------- */
.mb-legchips{ display:none; }
@media (max-width:700px){
  :root .mb-page.ph .mb-wrap > .mb-sec{ display:none; }
  :root .mb-page.ph .mb-wrap > .mb-sec.on{ display:grid; animation:phIn .3s cubic-bezier(.3,.7,.2,1) both; }
  :root .mb-snav{ top:56px; }
  :root .mb-snav a{ padding:9px 13px; }
  :root .mb-wrap{ padding:18px 16px 32px; }
  #mb-gshow{ display:none; }
  .mb-legchips{ display:flex; gap:8px; overflow-x:auto; margin:0 -16px; padding:2px 16px 4px; scroll-snap-type:x proximity; scrollbar-width:none; }
  .mb-legchips::-webkit-scrollbar{ display:none; }
  .mb-legchips button{ all:unset; cursor:pointer; flex:none; scroll-snap-align:start; display:grid; gap:1px; padding:8px 14px; border-radius:14px; border:1px solid var(--border); background:var(--surface); }
  .mb-legchips b{ font-size:13px; font-weight:700; } .mb-legchips small{ font-size:11px; color:var(--text-muted); }
  .mb-legchips button[aria-pressed="true"]{ background:var(--mb-on); color:var(--on-fg); border-color:transparent; box-shadow:var(--mb-on-sh); }
  .mb-legchips button[aria-pressed="true"] small{ color:inherit; opacity:.75; }
  .mb-legchips button:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; }
  :root .mb-legs .mb-leg:not(.cur){ display:none; }
  :root .mb-tools{ margin-left:0; width:100%; }
  :root .mb-tf{ overflow-x:auto; max-width:100%; scrollbar-width:none; }
  /* teams: the tiles swipe, the roster is two cards a row */
  :root .mb-tiles{ display:flex; overflow-x:auto; gap:10px; margin:0 -16px; padding:2px 16px 6px; scroll-snap-type:x mandatory; scrollbar-width:none; }
  :root .mb-tiles > *{ flex:0 0 74%; scroll-snap-align:start; }
  :root .mb-ros{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  /* leaders and records swipe sideways, one category a card */
  :root .mb-lead, :root .mr-grid{ display:flex; overflow-x:auto; gap:10px; margin:0 -16px; padding:2px 16px 8px; scroll-snap-type:x mandatory; scrollbar-width:none; align-items:start; }
  :root .mb-lead > *, :root .mr-grid > *{ flex:0 0 86%; scroll-snap-align:start; }
  .mb-tiles::-webkit-scrollbar, .mb-lead::-webkit-scrollbar, .mr-grid::-webkit-scrollbar{ display:none; }
  /* standings: the columns a phone needs */
  :root .mb-st th:nth-child(3), :root .mb-st td:nth-child(3), :root .mb-st th:nth-child(8), :root .mb-st td:nth-child(8),
  :root .mb-st th:nth-child(9), :root .mb-st td:nth-child(9), :root .mb-st th:nth-child(12), :root .mb-st td:nth-child(12){ display:none; }
  :root .mb-st .mb-dbar{ display:none; }
  :root .mb-st th:nth-child(7), :root .mb-st td:nth-child(7), :root .mb-st th:nth-child(11), :root .mb-st td:nth-child(11){ display:table-cell; }
  :root .mb-st th:nth-child(10), :root .mb-st td:nth-child(10){ display:none; }
  :root .mb-st td.tm a{ display:inline-block; max-width:118px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; vertical-align:middle; }
  :root .mb-l5 i{ width:16px; height:16px; font-size:9px; }
  /* the hero: one screen is too much on a phone */
  :root .mb-hero-in{ padding:18px 16px 14px; gap:14px; }
  :root .mb-brand img{ height:32px; }
  :root .mb-brand .mb-eye{ font-size:10px; }
  :root .mb-title{ font-size:50px; flex-wrap:nowrap; margin-top:8px; }
  :root .mb-dates{ font-size:12.5px; }
  :root .mb-crests{ margin-top:14px; gap:8px; }
  :root .mb-crests a{ width:42px; height:42px; }
  :root .mb-crests img{ width:30px; height:30px; }
  :root .mb-facts{ margin-top:14px; }
  :root .mb-facts div{ padding-top:10px; }
  :root .mb-facts b{ font-size:21px; }
}
@keyframes phIn{ from{ opacity:0; transform:translateY(6px); } }

/* ---------- Home ---------- */
@media (max-width:700px){
  :root .hm-explore{ grid-template-columns:minmax(0,1fr); gap:0; background:var(--surface); border:1px solid var(--border); border-radius:16px; overflow:hidden; }
  :root .hm-door{ display:grid; grid-template-columns:minmax(0,1fr) auto; grid-template-rows:auto auto; gap:2px 12px; align-items:center; min-height:0; padding:14px 16px;
    border:0; border-top:1px solid var(--hair); border-radius:0; box-shadow:none; }
  :root .hm-door:first-child{ border-top:0; }
  :root .hm-door b{ grid-column:1; font-size:15px; } :root .hm-door span{ grid-column:1; font-size:12.5px; }
  :root .hm-door i{ grid-column:2; grid-row:1 / span 2; position:static; }
  /* the signing card: the move fits one row */
  :root .sgx-move{ margin:4px 14px 14px; padding:12px; gap:10px; }
  :root .sgx-route .arc{ height:30px; margin-bottom:24px; }
}

/* ---------- Player index and profile ---------- */
@media (max-width:700px){
  :root .pcard-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  :root .pcard{ height:218px; border-radius:16px; }
  :root .pcard-photo{ right:auto; left:50%; transform:translateX(-50%); height:150px; max-width:100%; bottom:46px; }
  :root .pcard::after{ height:110px; }
  :root .pcard-txt{ padding:11px 12px 11px; }
  :root .pcard-pos{ font-size:10px; }
  :root .pcard-name span{ font-size:13px; }
  :root .pcard-name b{ font-size:22px; }
  :root .pcard-face{ font-size:60px; right:12px; top:28px; }
  /* profile */
  :root .pv-hero .pv-name{ font-size:40px; }
  :root .pv-tabs{ top:56px; z-index:30; gap:4px; margin:0 -16px 22px; padding:8px 12px; border-bottom:1px solid var(--border);
    background:color-mix(in oklab, var(--bg) 92%, transparent); -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px); }
  :root .pv-tabs a{ padding:8px 13px; min-height:40px; box-sizing:border-box; display:inline-flex; align-items:center; border:0; margin:0; border-radius:999px; font-size:14px; }
  :root .pv-tabs a.on{ background:var(--on-bg); color:var(--on-fg); }
  :root .pv-tabs a.on .n{ color:inherit; opacity:.7; }
  :root .pv-table td.left:nth-child(2){ min-width:150px; }
  :root .pv-page table th, :root .pv-page table td{ padding-left:7px; padding-right:7px; }
}

/* ---------- Competitions, teams and their cards ---------- */
@media (max-width:700px){
  :root .ccard-grid{ grid-template-columns:minmax(0,1fr); gap:10px; }
  :root .ccard-body{ padding:12px 14px 10px; gap:11px; }
  :root .ccard-chips{ margin-top:7px; }
  :root .ccard-ev{ padding:8px 14px 10px; }
  :root .ccard-stats{ gap:14px; flex-wrap:wrap; }
  :root .tcard-crest{ width:48px; height:48px; }
  /* leaders: one board a card, swiped sideways */
  :root .lead-grid{ display:flex; overflow-x:auto; gap:10px; margin:0 -16px; padding:2px 16px 10px; scroll-snap-type:x mandatory; scrollbar-width:none; align-items:start; }
  :root .lead-grid::-webkit-scrollbar{ display:none; }
  :root .lead-grid > .lead-card{ flex:0 0 86%; scroll-snap-align:start; }
}

/* ---------- Records & Honours, Milestones ---------- */
@media (max-width:700px){
  :root .rh-rgrid{ display:flex; overflow-x:auto; gap:10px; margin:0 -16px; padding:2px 16px 10px; scroll-snap-type:x mandatory; scrollbar-width:none; align-items:start; }
  :root .rh-rgrid::-webkit-scrollbar{ display:none; }
  :root .rh-rgrid > *{ flex:0 0 86%; scroll-snap-align:start; }
  :root .rh-roll td{ min-width:128px; }
  :root .rh-roll th:first-child, :root .rh-roll td:first-child{ position:sticky; left:0; z-index:1; min-width:0; background:var(--surface); box-shadow:6px 0 8px -6px oklch(20% 0.02 255 / .18); }
}

/* ===================== App mode (html.app, app6_phone.js) =====================
   Opened from the home screen, or framed as an app: the header runs under the
   status bar and the tab bar clears the home indicator. On a phone that is all;
   from 701px (iPad) a dark side rail takes the place of the header links. */
html.app{ --app-st:env(safe-area-inset-top, 0px); --app-sb:env(safe-area-inset-bottom, 0px); -webkit-tap-highlight-color:transparent; }
html.app body{ overscroll-behavior-y:none; }
html.app body::before{ content:""; position:fixed; z-index:200; left:0; right:0; top:0; height:var(--app-st); background:var(--void); pointer-events:none; }
html.app .skip-link:not(:focus){ display:none; }
@media (max-width:700px){
  html.app .nav{ position:sticky; top:0; padding-top:var(--app-st); height:calc(56px + var(--app-st)); }
  html.app body{ padding-bottom:calc(76px + var(--app-sb)); }
  html.app .ph-bar{ padding-bottom:calc(8px + var(--app-sb)); }
  html.app .ph-sheet{ padding-bottom:calc(24px + var(--app-sb)); max-height:calc(100dvh - var(--app-st) - 24px); }
  html.app .ph-tab[data-sub="x2"]{ color:var(--text); }
}
.ph-x2{ display:none; }
@media (min-width:701px){
  html.app body{ padding-left:92px; }
  html.app .nav{ position:sticky; top:0; z-index:40; height:calc(60px + var(--app-st)); padding:var(--app-st) 16px 0 24px; flex-wrap:nowrap; row-gap:0; }
  html.app .nav-left{ flex:1 1 auto; min-width:0; }
  html.app .nav-links{ display:none; }
  html.app .st-menu{ display:none !important; }
  html.app .ph-search{ display:grid; place-items:center; width:40px; height:40px; border-radius:12px; color:#fff; }
  html.app .ph-search svg{ width:21px; height:21px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }
  html.app .ph-search:hover{ background:rgba(255,255,255,.1); }
  /* the rail */
  html.app .ph-bar{ display:flex; flex-direction:column; align-items:stretch; gap:4px; position:fixed; z-index:60; left:0; top:0; bottom:0; width:92px; box-sizing:border-box;
    padding:calc(var(--app-st) + 72px) 8px calc(14px + var(--app-sb)); background:var(--void); border-right:1px solid rgba(255,255,255,.08); overflow-y:auto; scrollbar-width:none; }
  html.app .ph-bar::-webkit-scrollbar{ display:none; }
  html.app .ph-bar::before{ content:""; position:absolute; left:50%; top:calc(var(--app-st) + 21px); width:18px; height:18px; margin-left:-9px; border-radius:4px; background:var(--accent-2); }
  html.app .ph-tab{ all:unset; cursor:pointer; display:grid; justify-items:center; align-content:center; gap:4px; min-height:62px; font:600 11px var(--body); color:rgba(255,255,255,.62); border-radius:14px; text-align:center; }
  html.app .ph-tab .i{ position:relative; width:56px; height:32px; border-radius:16px; display:grid; place-items:center; transition:background .2s, color .2s; }
  html.app .ph-tab svg{ width:23px; height:23px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
  html.app .ph-tab:hover{ color:#fff; text-decoration:none; }
  html.app .ph-tab:hover .i{ background:rgba(255,255,255,.07); }
  html.app .ph-tab[aria-current="page"]{ color:#fff; }
  html.app .ph-tab[aria-current="page"] .i{ background:rgba(255,255,255,.16); }
  html.app .ph-tab.live .i::after{ content:""; position:absolute; top:3px; right:12px; width:7px; height:7px; border-radius:50%; background:#e8b532; box-shadow:0 0 0 2px var(--void); }
  html.app .ph-tab:focus-visible{ outline:2px solid #fff; outline-offset:-2px; }
  html.app .ph-x2{ display:grid; }
  html.app .ph-more{ margin-top:auto; }
  html.app .ph-more[data-sub="x2"]{ color:rgba(255,255,255,.62); }
  html.app .ph-more[data-sub="x2"] .i{ background:none; }
  /* More: a panel beside the rail */
  html.app .ph-veil{ display:block; position:fixed; inset:0; z-index:70; background:oklch(10% 0.02 255 / .3); opacity:0; transition:opacity .2s; }
  html.app .ph-veil.on{ opacity:1; }
  html.app .ph-sheet{ display:block; position:fixed; z-index:71; left:104px; bottom:calc(14px + var(--app-sb)); width:400px; max-width:calc(100vw - 120px); max-height:calc(100dvh - var(--app-st) - 40px); overflow-y:auto; overscroll-behavior:contain;
    box-sizing:border-box; background:var(--surface); color:var(--text); border:1px solid var(--border); border-radius:22px; padding:16px 18px 18px;
    box-shadow:0 24px 60px rgba(0,0,0,.3); opacity:0; transform:translateX(-10px) scale(.98); transform-origin:left bottom; transition:opacity .2s, transform .25s cubic-bezier(.3,.7,.2,1); }
  html.app .ph-sheet.on{ opacity:1; transform:none; }
  html.app .ph-veil[hidden], html.app .ph-sheet[hidden]{ display:none; }
  html.app .ph-grab{ display:none; }
  html.app .ph-sh{ display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; }
  html.app .ph-sh h2{ margin:0; font:700 20px var(--display); }
  html.app .ph-x{ all:unset; cursor:pointer; width:36px; height:36px; border-radius:11px; display:grid; place-items:center; background:var(--surface-alt); }
  html.app .ph-sheet svg{ width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; flex:none; }
  html.app .ph-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:8px; }
  html.app .ph-grid a{ display:flex; align-items:center; gap:10px; min-height:52px; padding:0 14px; border-radius:14px; background:var(--surface-alt); color:var(--text); font-weight:600; font-size:14px; }
  html.app .ph-sheet h3{ margin:16px 0 4px; font:700 11px var(--body); letter-spacing:.1em; text-transform:uppercase; color:var(--text-muted); }
  html.app .ph-list{ display:grid; }
  html.app .ph-list a{ display:flex; align-items:center; gap:12px; min-height:52px; padding:6px 4px; border-top:1px solid var(--hair); color:var(--text); border-radius:8px; }
  html.app .ph-list a:first-child{ border-top:0; }
  html.app .ph-list a:hover, html.app .ph-grid a:hover{ text-decoration:none; background:var(--surface-alt); }
  html.app .ph-list b{ display:block; font-weight:600; font-size:14px; }
  html.app .ph-list small{ display:block; font-size:12px; color:var(--text-muted); }
  html.app .ph-row{ margin-top:12px; }
  html.app .ph-row button{ all:unset; cursor:pointer; display:flex; justify-content:center; align-items:center; gap:8px; width:100%; box-sizing:border-box; padding:12px; border-radius:14px; border:1px solid var(--border); font-weight:600; font-size:14px; }
}
@media (min-width:701px) and (prefers-reduced-motion: reduce){ html.app .ph-sheet, html.app .ph-veil{ transition:none; } }
/* sticky page tabs sit under the sticky header, not behind it */
@media (max-width:700px){
  html.app .mb-snav, html.app .pv-tabs{ top:calc(56px + var(--app-st)); }
}
@media (min-width:701px){
  html.app .mb-snav, html.app .pv-tabs{ top:calc(60px + var(--app-st)); }
  html.app .ph-grid a[href="#/teams"], html.app .ph-grid a[href="#/milestones"], html.app .ph-grid a[href="#/records"]{ display:none; }
  html.app .ph-grid{ grid-template-columns:1fr; }
}
/* in the app the header is solid, so it reads as one piece with the status bar */
html.app .nav{ background:var(--void); -webkit-backdrop-filter:none; backdrop-filter:none; }

/* ---------- Wide tables become cards (app6_phone.js labels the cells) ---------- */
td.ph-br{ display:none; }
@media (max-width:700px){
  :root table.ph-cards{ display:block; width:100%; min-width:0 !important; max-width:100%; border-collapse:separate; }
  :root table.ph-cards > thead{ display:none; }
  :root table.ph-cards > tbody{ display:block; }
  :root table.ph-cards tr{ display:flex; flex-wrap:wrap; align-items:baseline; position:relative; padding:12px 14px 12px; border:0; border-top:1px solid var(--hair); background:none; height:auto; }
  :root table.ph-cards > tbody:first-of-type > tr:first-child{ border-top:0; }
  :root table.ph-cards tr::after{ content:""; order:1; flex:0 0 100%; height:0; }
  :root table.ph-cards td{ display:block; position:static !important; left:auto; box-shadow:none !important; border:0 !important; padding:0; background:none !important; text-align:left; white-space:normal; min-width:0; width:auto; height:auto; max-width:100%; }
  :root table.ph-cards td[data-id]{ order:0; flex:0 1 auto; margin:0 10px 2px 0; font-size:14px; line-height:1.35; overflow-wrap:anywhere; }
  :root table.ph-cards td[data-id]:first-child{ font-weight:600; }
  :root table.ph-cards td[data-l]{ order:2; flex:0 0 20%; padding:8px 6px 0 0; font:600 15px/1.2 var(--body); font-variant-numeric:tabular-nums; color:var(--text); }
  :root table.ph-cards td[data-l]::before{ content:attr(data-l); display:block; margin-bottom:2px; font:600 10px/1.2 var(--body); letter-spacing:.05em; color:var(--text-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  :root table.ph-cards td:empty{ display:none; }
  :root table.ph-cards td.ph-m{ order:4; }
  :root table.ph-cards tr:not(.ph-open) td.ph-m{ display:none; }
  :root table.ph-cards td.ph-br{ display:none; order:3; flex:0 0 100%; height:0; margin-top:10px; border-top:1px dashed var(--border); }
  :root table.ph-cards tr.ph-open td.ph-br{ display:block; }
  :root table.ph-cards tr.ph-xr{ cursor:pointer; padding-right:38px; -webkit-tap-highlight-color:transparent; }
  :root table.ph-cards tr.ph-xr::before{ content:""; position:absolute; right:16px; top:17px; width:7px; height:7px; border-right:2px solid var(--text-muted); border-bottom:2px solid var(--text-muted); transform:rotate(45deg); transition:transform .2s; }
  :root table.ph-cards tr.ph-xr.ph-open::before{ transform:translateY(3px) rotate(-135deg); }
  :root table.ph-cards tr.ph-xr:focus-visible{ outline:2px solid var(--accent); outline-offset:-2px; }
  :root table.ph-cards tr.ph-xr:active{ background:var(--surface-alt); }
  :root table.ph-cards tr.ph-full td{ flex:1 1 100%; }
  /* the profile's competition groups and their regular season / playoff lines */
  :root table.ph-cards tr.pv-tier{ background:var(--surface-alt); cursor:pointer; }
  :root table.ph-cards tr.pv-tier td[data-id]{ display:flex; flex-wrap:wrap; align-items:baseline; gap:2px 8px; }
  :root table.ph-cards tr.pv-tier:not(.open) td.ph-m{ display:none; }
  :root table.ph-cards tr.pv-sub{ padding-left:28px; padding-top:6px; border-top:0; }
  :root table.ph-cards tr.pv-sub td[data-l]{ font-size:14px; padding-top:4px; }
  /* sortable tables: the headers become a row of sort chips */
  :root table.ph-cards.ph-sort > thead{ display:block; border-bottom:1px solid var(--hair); }
  :root table.ph-cards.ph-sort > thead tr{ display:flex; flex-wrap:nowrap; gap:6px; overflow-x:auto; padding:10px 14px; border:0; scrollbar-width:none; background:none; }
  :root table.ph-cards.ph-sort > thead tr::-webkit-scrollbar{ display:none; }
  :root table.ph-cards.ph-sort > thead tr::after{ display:none; }
  :root table.ph-cards.ph-sort > thead tr::before{ content:"Sort"; flex:none; align-self:center; font:600 10px var(--body); letter-spacing:.08em; text-transform:uppercase; color:var(--text-muted); }
  :root table.ph-cards.ph-sort > thead th{ display:block; flex:none; position:static; left:auto; box-shadow:none; padding:0; border:1px solid var(--border); border-radius:999px; background:var(--surface); font-size:12px; white-space:nowrap; }
  :root table.ph-cards.ph-sort > thead th[data-csort]{ padding:6px 11px; cursor:pointer; }
  :root table.ph-cards.ph-sort > thead th button{ padding:6px 11px; }
  :root table.ph-cards.ph-sort > thead th[data-id]{ display:none; }
  :root table.ph-cards.ph-sort > thead th.cp-on, :root table.ph-cards.ph-sort > thead th[aria-sort="descending"], :root table.ph-cards.ph-sort > thead th[aria-sort="ascending"]{ background:var(--on-bg); color:var(--on-fg); border-color:transparent; }
  :root table.ph-cards td.cp-on, :root table.ph-cards td.st-sorted{ color:var(--accent-ink, var(--accent)); }
  :root table.ph-cards.ph-sort > thead th button{ color:inherit; background:none; border:0; font:inherit; }
  :root table.ph-cards.ph-sort > thead th:has(> button.on), :root table.ph-cards.ph-sort > thead th.st-on{ background:var(--on-bg); color:var(--on-fg); border-color:transparent; }
  /* names, not numbers (the roll of honour): two a line, all shown */
  :root table.ph-cards.ph-names td[data-l]{ flex:0 0 50%; font-size:14px; font-weight:600; padding-right:10px; }
  :root table.ph-cards.ph-names td[data-id]:first-child{ font:700 18px var(--display); }
  /* the wrappers no longer need to scroll or pin a first column */
  :root .table-scroll:has(> table.ph-cards), :root .st-scroll:has(> table.ph-cards), :root .rh-roll:has(table.ph-cards){ overflow:visible; max-width:100%; }
  :root .sticky-first table.ph-cards td, :root .sticky-first table.ph-cards th{ position:static; }
  /* standings: keep the table, drop the columns a phone can do without */
  :root table.ph-fit{ min-width:0 !important; width:100%; }
  :root table.ph-fit th, :root table.ph-fit td{ padding-left:6px; padding-right:6px; }
  :root table.ph-fit td[data-l="Team"]{ max-width:176px; }
  :root table.ph-fit [data-l="%Won"], :root table.ph-fit [data-l="Win %"]{ display:none; }
  :root table.ph-fit td[data-l="Team"] .team{ min-width:0; display:flex; align-items:center; gap:8px; }
  :root table.ph-fit td[data-l="Team"] .team a{ min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  :root table.ph-fit td[data-l="Team"] .num-pill{ display:none; }
  :root table.ph-fit [data-l="GP"], :root table.ph-fit [data-l="For"], :root table.ph-fit [data-l="Agst"], :root table.ph-fit [data-l="PF"], :root table.ph-fit [data-l="PA"]{ display:none; }
}
/* phones draw thin scroll bars over the page and hide them; the app never shows desktop bars */
html.app, html.app *{ scrollbar-width:none; }
html.app ::-webkit-scrollbar{ display:none; width:0; height:0; }

/* ---------- Profile overview: career path as a timeline, latest games as cards ---------- */
.pv-cpv{ display:none; }
.pv-games .line i{ font-style:normal; }
@media (max-width:700px){
  :root .pv-cpath{ padding:6px 0; }
  :root .pv-cpath-s{ display:none; }
  :root .pv-cpv{ display:block; list-style:none; margin:0; padding:6px 16px 8px; }
  .pv-cpv li.yr{ display:grid; grid-template-columns:50px minmax(0,1fr); position:relative; }
  .pv-cpv .y{ font:700 17px/1 var(--display); color:var(--text); padding-top:15px; font-variant-numeric:tabular-nums; }
  /* the rail: a line down the left of the teams, a dot at each year */
  .pv-cpv .sts{ position:relative; padding-left:16px; border-left:2px solid color-mix(in oklab, var(--accent) 45%, var(--border)); }
  .pv-cpv .sts::before{ content:""; position:absolute; left:-6px; top:16px; width:10px; height:10px; border-radius:50%; background:var(--accent); box-shadow:0 0 0 3px var(--surface); }
  .pv-cpv li.yr:last-child .sts{ border-left-color:transparent; }
  .pv-cpv li.yr:last-child .sts::after{ content:""; position:absolute; left:-2px; top:0; height:21px; border-left:2px solid color-mix(in oklab, var(--accent) 45%, var(--border)); }
  .pv-cpv .st{ display:grid; grid-template-columns:34px minmax(0,1fr) auto; gap:12px; align-items:start; padding:10px 0; color:var(--text); border-bottom:1px solid var(--hair); }
  .pv-cpv .sts .st:last-child{ border-bottom:0; }
  .pv-cpv li.yr + li .sts, .pv-cpv li.yr + li.yr .sts{ border-top:0; }
  .pv-cpv li.yr:not(:last-child){ border-bottom:1px solid var(--hair); }
  .pv-cpv a.st:hover{ text-decoration:none; }
  .pv-cpv a.st:active{ background:var(--surface-alt); }
  .pv-cpv .st > img, .pv-cpv .st > span{ margin-top:1px; }
  .pv-cpv .t{ min-width:0; display:grid; gap:2px; }
  .pv-cpv .t b{ font-size:14.5px; font-weight:600; line-height:1.3; }
  .pv-cpv .cs{ display:grid; gap:1px; font-size:12.5px; color:var(--text-muted); line-height:1.35; }
  .pv-cpv .cs small{ font-size:inherit; color:var(--text-faint); }
  .pv-cpv .tg{ display:flex; flex-wrap:wrap; gap:4px; margin-top:4px; }
  .pv-cpv .lv{ font:600 10px/1 var(--body); font-style:normal; letter-spacing:.06em; text-transform:uppercase; color:var(--text-muted); padding:5px 7px; border-radius:6px; background:var(--surface-alt); margin-top:2px; white-space:nowrap; }
  .pv-cpv .lv-nat{ color:var(--accent-2-ink, var(--accent-2)); background:var(--accent-2-soft); }
  .pv-cpv li.gap{ display:grid; grid-template-columns:50px minmax(0,1fr); align-items:center; padding:10px 0; font-size:12.5px; color:var(--text-faint); border-bottom:1px solid var(--hair); }
  .pv-cpv li.gap span{ font:600 13px var(--display); }
  .pv-cpv li.gap em{ font-style:normal; padding-left:16px; border-left:2px dashed var(--border); }
  /* latest games: the whole opponent name, the score beside it, the line underneath */
  :root .pv-games .gm{ grid-template-columns:30px minmax(0,1fr); grid-template-areas:"r m" "r l"; gap:8px 12px; align-items:start; padding:14px 2px; }
  :root .pv-games .res{ grid-area:r; }
  :root .pv-games .mid{ grid-area:m; min-width:0; }
  :root .pv-games .o{ align-items:flex-start; }
  :root .pv-games .o > img, :root .pv-games .o > span.crest-flag, :root .pv-games .o > span.swatch{ margin-top:1px; flex:none; }
  :root .pv-games .o span{ white-space:normal; overflow:visible; line-height:1.3; }
  :root .pv-games .o .sc{ margin-left:auto; padding-left:8px; font-weight:600; color:var(--text); font-variant-numeric:tabular-nums; white-space:nowrap; }
  :root .pv-games .c{ white-space:normal; }
  :root .pv-games .line{ grid-area:l; display:flex; gap:18px; text-align:left; color:var(--text-muted); font-size:11px; letter-spacing:.04em; text-transform:uppercase; }
  :root .pv-games .line span:nth-child(n+2){ display:inline; }
  :root .pv-games .line b, :root .pv-games .line i{ font:600 18px var(--display); color:var(--text); margin-right:4px; letter-spacing:0; text-transform:none; }
}

/* ---------- Career path timeline: a long career opens on its last three seasons ---------- */
@media (max-width:700px){
  :root .pv-cpv.cut:not(.open) li.x{ display:none; }
  :root .pv-cpv li.more{ display:block; padding:12px 0 6px; border:0; }
  .pv-cpv-more{ all:unset; box-sizing:border-box; cursor:pointer; display:flex; align-items:center; justify-content:center; gap:8px; width:100%; min-height:44px; padding:0 14px;
    border-radius:12px; border:1px solid var(--border); background:var(--surface); color:var(--text); font:600 14px var(--body); touch-action:manipulation;
    transition:background-color .15s ease, transform .12s ease; }
  .pv-cpv-more small{ font-weight:500; font-size:12.5px; color:var(--text-muted); font-variant-numeric:tabular-nums; }
  .pv-cpv-more:hover{ background:var(--surface-alt); }
  .pv-cpv-more:active{ transform:scale(.98); }
  .pv-cpv-more:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; }
  :root .pv-cpv a.st{ transition:background-color .15s ease; border-radius:10px; }
  :root .pv-cpv a.st:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; }
  :root .pv-games .gm{ transition:background-color .15s ease; touch-action:manipulation; }
  :root .pv-games .gm:active{ background:var(--surface-alt); }
  :root .pv-games .gm:focus-visible{ outline:2px solid var(--accent); outline-offset:-2px; }
}
@media (max-width:360px){
  /* the level tag moves under the team so the name keeps its width */
  :root .pv-cpv .st{ grid-template-columns:34px minmax(0,1fr); }
  :root .pv-cpv .lv{ grid-column:2; justify-self:start; margin-top:2px; }
  :root .pv-cpv li.yr, :root .pv-cpv li.gap{ grid-template-columns:44px minmax(0,1fr); }
}
@media (max-width:700px) and (prefers-reduced-motion: reduce){ .pv-cpv-more, :root .pv-games .gm{ transition:none; } .pv-cpv-more:active{ transform:none; } }

/* ---------- WOWY: combinations as cards, four numbers a line ---------- */
@media (max-width:700px){
  :root table.ph-cards.ph-four td[data-l]{ flex-basis:25%; }
  :root table.ph-cards.ph-four td[data-id]{ flex:1 1 100%; margin-right:0; }
  :root table.ph-cards.ph-four .wy-v{ display:flex; flex-wrap:wrap; align-items:baseline; gap:0 4px; }
  :root table.ph-cards.ph-four .wy-v b, :root table.ph-cards.ph-four .wy-min b{ font-size:16px; }
  :root table.ph-cards.ph-four .wy-d{ font-size:11.5px; }
  :root table.ph-cards.ph-four .wy-s{ flex-basis:100%; font-size:11px; color:var(--text-muted); font-weight:500; }
  :root table.ph-cards.ph-four .wy-min small{ display:block; font-size:11px; color:var(--text-muted); font-weight:500; }
  :root table.ph-cards.ph-four .wy-net{ display:grid; gap:4px; }
  :root table.ph-cards.ph-four tr.wy-lgrow{ background:var(--surface-alt); }
}
@media (max-width:700px){
  :root table.ph-cards td{ box-sizing:border-box; }
  :root table.ph-cards.ph-four .wy-net{ min-width:0; }
  :root table.ph-cards.ph-four .wy-nb{ width:100%; max-width:100%; }
  :root .wy-scroll:has(> table.ph-cards){ overflow:visible; }
  /* WOWY controls: thumb-sized */
  :root .wy-seg button, :root .wy-tabs button, :root .wy-tabs a{ min-height:44px; }
  :root .wy-chip, :root .wy-sw{ min-height:40px; }
  :root .wy-tri button{ min-height:36px; min-width:40px; }
  :root .wy-pick select{ min-height:40px; }
  :root [class^="wy-"] input:not([type=checkbox]):not([type=radio]){ min-height:40px; }
}
@media (max-width:360px){
  :root .pv-cpv .y{ font-size:15px; }
  :root .pv-cpv-more{ flex-wrap:wrap; gap:0 6px; padding:8px 12px; }
}
/* the header at 320-360px: the wordmark gives way before it runs into the buttons */
@media (max-width:700px){
  :root .nav .wordmark{ min-width:0; overflow:hidden; white-space:nowrap; }
  :root .nav-left{ overflow:hidden; }
}
@media (max-width:360px){
  :root .nav .wordmark{ font-size:15px; gap:7px; }
  :root .nav .acc-in, :root .nav .acc-chip{ padding:0 10px; font-size:12.5px; }
  :root .nav-right{ gap:2px; }
  :root .pv-cpv li.yr, :root .pv-cpv li.gap{ grid-template-columns:48px minmax(0,1fr); }
}
/* <<< PHONE LAYER <<< */

/* >>> NEW LOOK >>> */
/* ===========================================================================
   The new look (update-108). A coach's stat sheet under arena light: chalk
   paper, ink type, scoreboard numerals (Big Shoulders Display) over a reading
   face (Instrument Sans), and one yellow highlighter that marks what matters
   now: the page you are on, the live game, the thing to press. The orange dot
   is the HoopStatsMY mark and keeps its exact colour.
   This layer only redefines the tokens every rule above already reads, then
   restyles the frame (header, Tools menu, phone tab bar) and adds Search.
   =========================================================================== */
:root{
  --bg:#f4f5f2; --surface:#ffffff; --surface-alt:#f1f2ee; --border:#dfe2dc; --hair:#eaece7;
  --text:#111316; --text-muted:#585e67; --text-faint:#676d76;
  --accent:#1d4fc4; --accent-hover:#173fa0; --accent-soft:#e9eefb; --accent-ink:#1d4fc4;
  --accent-2:#e0a500; --accent-2-soft:#fff1c2; --accent-2-ink:#7a5a00;
  --positive:#13804f; --positive-soft:#e3f4ea; --positive-ink:#0f6b42; --negative:#c8372e; --negative-soft:#fbe7e5;
  --radius:8px;
  --shadow:0 1px 0 rgba(17,19,22,.03), 0 1px 3px rgba(17,19,22,.06);
  --shadow-lg:0 8px 28px rgba(17,19,22,.14);
  --shadow-2:0 2px 4px rgba(17,19,22,.04), 0 8px 24px rgba(17,19,22,.08);
  --shadow-3:0 14px 48px rgba(17,19,22,.22);
  --ink:#111316; --ink-2:#1c1f23; --ink-line:#2c3036; --ink-text-dim:#a4aab2;
  --on-bg:#111316; --on-fg:#ffffff; --avatar-bg:#111316; --avatar-fg:#ffffff;
  --void:#0d0e10;
  /* new: the highlighter, the mark, live */
  --hl:#ffc629; --hl-soft:#fff3c4; --hl-ink:#111316; --hl-line:#e8ad00;
  --mark:#e0a500; --live:#e5342b;
  --display:'Big Shoulders Display', 'Arial Narrow', 'Roboto Condensed', system-ui, sans-serif;
  --body:'Instrument Sans', -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono:'Instrument Sans', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --ease:cubic-bezier(.2,.7,.2,1); --ease-out:cubic-bezier(.16,1,.3,1);
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --bg:#0d0e10; --surface:#16181b; --surface-alt:#1d2024; --border:#2b2f35; --hair:#212428;
    --text:#f1f2ee; --text-muted:#a7adb5; --text-faint:#969ca4;
    --accent:#7da6ff; --accent-hover:#9bbbff; --accent-soft:#1a2440; --accent-ink:#9bbbff;
    --accent-2:#f5bf2a; --accent-2-soft:#3a3214; --accent-2-ink:#ffd56a;
    --positive:#3fbf7f; --positive-soft:#12291d; --positive-ink:#5fd497; --negative:#ff6b61; --negative-soft:#2e1614;
    --shadow:0 1px 2px rgba(0,0,0,.45); --shadow-lg:0 8px 24px rgba(0,0,0,.55);
    --shadow-2:0 2px 6px rgba(0,0,0,.4), 0 10px 28px rgba(0,0,0,.4); --shadow-3:0 16px 56px rgba(0,0,0,.6);
    --ink:#050607; --ink-2:#121417; --ink-line:#262a2f; --ink-text-dim:#9aa0a8;
    --on-bg:#f1f2ee; --on-fg:#111316; --avatar-bg:#2b2f35; --avatar-fg:#f1f2ee;
    --void:#08090a; --hl-soft:#3a3214; --hl-line:#ffd44f; --mark:#f5bf2a; --live:#ff5148;
  }
}
:root[data-theme="dark"]{
  --bg:#0d0e10; --surface:#16181b; --surface-alt:#1d2024; --border:#2b2f35; --hair:#212428;
  --text:#f1f2ee; --text-muted:#a7adb5; --text-faint:#969ca4;
  --accent:#7da6ff; --accent-hover:#9bbbff; --accent-soft:#1a2440; --accent-ink:#9bbbff;
  --accent-2:#f5bf2a; --accent-2-soft:#3a3214; --accent-2-ink:#ffd56a;
  --positive:#3fbf7f; --positive-soft:#12291d; --positive-ink:#5fd497; --negative:#ff6b61; --negative-soft:#2e1614;
  --shadow:0 1px 2px rgba(0,0,0,.45); --shadow-lg:0 8px 24px rgba(0,0,0,.55);
  --shadow-2:0 2px 6px rgba(0,0,0,.4), 0 10px 28px rgba(0,0,0,.4); --shadow-3:0 16px 56px rgba(0,0,0,.6);
  --ink:#050607; --ink-2:#121417; --ink-line:#262a2f; --ink-text-dim:#9aa0a8;
  --on-bg:#f1f2ee; --on-fg:#111316; --avatar-bg:#2b2f35; --avatar-fg:#f1f2ee;
  --void:#08090a; --hl-soft:#3a3214; --hl-line:#ffd44f; --mark:#f5bf2a; --live:#ff5148;
}
body{ background:var(--bg); font-family:var(--body); }
table, .tnum{ font-variant-numeric:tabular-nums; }
::selection{ background:var(--hl); color:var(--hl-ink); }
:focus-visible{ outline:2px solid var(--text); outline-offset:2px; }

/* scoreboard numerals that named their face directly */
.mhx .ghostnum, .mhx .odo, .mhx .climb .nxt b, .gb-n, .gb-cm b, .gb-sb, .gb-seg button b, .gb-fsc, .gb-ls td.gb-fin, .gb-lv, .gb-ts,
.sgx .ghost, .sgx-name{ font-family:var(--display); font-stretch:normal; }
.mb-page, .mbx{ --mb-num:var(--display); }

/* the scoreboard face is for numbers and headlines; small labels read in the text face */
:root .subnav-label, :root .tab, :root .pcard-pos, :root .cmp-pick-face, :root .duo-title, :root .sr-k, :root .cmp-res-face, :root .cmp-sugg-face, :root .ax-name, :root .med-lab, :root .rd-k, :root .rd-cmp, :root .rd-sm-name, :root .msub-t, :root .hero-tier-name, :root .bpm-l, :root .pv-ax, :root .lv-tag, :root .lv-sub, :root .lv-k, :root .lv-q th, :root .lv-lead th, :root .lv-note-k, :root .lv-bfoul, :root .lv-pper, :root .lv-boxt th, :root .hm-eyebrow, :root .cmp-start-k, :root .vs-cap, :root .vs-row em, :root .ed-k, :root .tp-h h3, :root .st-view, :root .st-table td.st-lu, :root .st-code, :root .cs-s, :root .cs-lbl, :root .cs-tag, :root .cs-rp .rn, :root .cs-rp .rg small, :root .cs-table th, :root .rh-180, :root .wy-disc, :root .mb-lr .ph, :root .tk-tag b, :root .tk-clk, :root .mr-ph, :root .ma-ph{ font-family:var(--body); }

/* headings inside cards: the text face, bold */
:root .card-head, :root .cat-head h2, :root .ccard-name, :root .rcard-name, :root .rd-subhead, :root .im-title, :root .team-card-name, :root .lead-head, :root .formula-name, :root .acc-title, :root .stand-phase, :root .pv-table tr.pv-tier .tl, :root .st-who, :root .st-fgroup h2, :root .st-gloss h2, :root .rp-aside-i, :root .wy-panel h2, :root .wy-how summary, :root .wy-howg h3, :root .sl-side h2, :root .mb-hlc h3, :root .mb-lb h3, :root .ms-chip, :root .final-place{ font-family:var(--body); font-weight:650; letter-spacing:0; }

/* ---------- the header ---------- */
:root .nav{ height:64px; padding:0 max(20px, calc((100vw - 1400px) / 2)); gap:16px;
  background:color-mix(in oklab, var(--bg) 88%, transparent);
  -webkit-backdrop-filter:blur(18px) saturate(150%); backdrop-filter:blur(18px) saturate(150%);
  border-bottom:1px solid var(--border); box-shadow:none; color:var(--text); }
:root .nav-left{ gap:28px; min-width:0; flex:1 1 auto; }
:root .wordmark{ color:var(--text) !important; font:800 23px/1 var(--display); letter-spacing:.02em; gap:9px; flex:none; }
:root .wordmark .dot{ background:var(--mark); box-shadow:0 0 10px color-mix(in oklab, var(--mark) 55%, transparent); }
:root .wordmark:hover{ text-decoration:none; }
.wm-my{ display:inline-block; margin-left:-3px; padding:3px 4px 2px; border-radius:4px; background:var(--hl); color:var(--hl-ink); font-size:.72em; letter-spacing:.04em; line-height:1; transform:translateY(-1px); }
:root .nav-links{ gap:2px; min-width:0; }
:root .nav-link{ font:600 14px/1 var(--body); letter-spacing:0; color:var(--text-muted); padding:10px 14px; border-radius:999px; white-space:nowrap; flex:none;
  transition:background-color .15s, color .15s; }
:root .nav-link:hover{ color:var(--text); background:var(--surface-alt); }
:root .nav-link.active{ color:var(--on-fg); background:var(--on-bg); box-shadow:none; }
:root .nav-link.nav-mbl i{ background:var(--live); box-shadow:0 0 0 0 var(--live); }
:root .nav-link.st-navbtn{ gap:6px; }
:root .nav-link.st-navbtn[aria-expanded="true"]{ color:var(--text); background:var(--surface-alt); }
:root .nav-link.st-navbtn.active[aria-expanded="true"]{ color:var(--on-fg); background:var(--on-bg); }
.st-caret{ font-size:8px; opacity:.7; }
:root .nav-right{ gap:6px; }
.nav-ic, :root .theme-toggle{ display:inline-grid; place-items:center; width:40px; height:40px; border-radius:999px; border:0; background:transparent; color:var(--text); flex:none; cursor:pointer; transition:background-color .15s; }
.nav-ic:hover, :root .theme-toggle:hover{ background:var(--surface-alt); text-decoration:none; }
.nav-ic svg, :root .theme-toggle svg, .hs-sbtn svg{ width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }
:root .theme-toggle .sun, :root .theme-toggle .moon{ display:grid; place-items:center; }
:root .theme-toggle .sun{ display:none; }
:root[data-theme="dark"] .theme-toggle .sun{ display:grid; } :root[data-theme="dark"] .theme-toggle .moon{ display:none; }
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) .theme-toggle .sun{ display:grid; } :root:not([data-theme="light"]) .theme-toggle .moon{ display:none; }
}
.hs-sbtn{ display:inline-flex; align-items:center; gap:10px; height:42px; width:clamp(200px, 19vw, 280px); padding:0 8px 0 14px; border-radius:999px;
  border:1px solid var(--border); background:var(--surface); color:var(--text-muted); font:500 14px var(--body); cursor:pointer; text-align:left;
  transition:border-color .15s, box-shadow .15s; flex:none; }
.hs-sbtn:hover{ border-color:var(--text-faint); box-shadow:var(--shadow); }
.hs-sbtn svg{ color:var(--text); flex:none; }
.hs-sbtn-t{ flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.hs-sbtn kbd, .hsq kbd{ font:600 12px var(--body); min-width:24px; height:24px; padding:0 6px; display:inline-grid; place-items:center; border-radius:6px; border:1px solid var(--border); background:var(--surface-alt); color:var(--text-muted); }
:root .acc-in, :root .acc-chip{ min-height:40px; border:1px solid var(--border); color:var(--text); background:var(--surface); font:600 14px var(--body); }
:root .acc-in:hover, :root .acc-chip:hover{ border-color:var(--text); color:var(--text); }
:root .acc-chip.on{ border-color:var(--text); }
/* narrower laptops: the field becomes a button, the links stay on one line */
@media (min-width:701px) and (max-width:1320px){
  .hs-sbtn{ width:42px; padding:0; justify-content:center; }
  .hs-sbtn-t, .hs-sbtn kbd{ display:none; }
  :root .nav-link{ padding:10px 11px; }
}
@media (min-width:701px) and (max-width:1100px){
  :root .nav{ padding:0 16px; }
  :root .nav-left{ gap:16px; }
  :root .nav-links{ overflow-x:auto; scrollbar-width:none; }
  :root .nav-links::-webkit-scrollbar{ height:0; }
  :root .nav-link{ padding:9px 10px; font-size:13.5px; }
  .nav-help{ display:none; }
}

/* the Tools menu: a light sheet under the header, not a dark plate */
:root .st-menu{ background:var(--surface); border:1px solid var(--border); border-radius:16px; box-shadow:var(--shadow-3); padding:8px; }
:root .st-menu a{ color:var(--text); font:600 14px var(--body); border-radius:10px; }
:root .st-menu a small{ color:var(--text-muted); font-size:12px; }
:root .st-menu a:hover{ background:var(--surface-alt); }
:root .st-menu a[aria-current="page"]{ background:var(--hl-soft); box-shadow:inset 3px 0 0 var(--hl); }
:root .st-menu-sep{ background:var(--border); }

/* ---------- phones: one-row header, tab bar ---------- */
@media (max-width:700px){
  :root .nav{ height:58px; padding:0 8px 0 14px; }
  :root .wordmark{ font-size:21px; }
  .hs-sbtn{ width:auto; height:40px; padding:0 12px; gap:8px; }
  .hs-sbtn-t{ max-width:96px; font-size:13.5px; }
  .hs-sbtn kbd, .nav-help{ display:none; }
  :root .ph-search{ display:none; }
  :root .nav:has(.acc-in, .acc-chip) .nav-right{ position:static; }   /* one row now: the controls sit in it, below any status bar */
  :root .ph-bar{ background:color-mix(in oklab, var(--surface) 92%, transparent); -webkit-backdrop-filter:blur(18px) saturate(150%); backdrop-filter:blur(18px) saturate(150%);
    border-top:1px solid var(--border); box-shadow:0 -6px 24px rgba(17,19,22,.06); }
  :root .ph-tab{ font:600 11px var(--body); color:var(--text-muted); }
  :root .ph-tab[aria-current="page"]{ color:var(--text); }
  :root .ph-tab[aria-current="page"] .i{ background:var(--hl); color:var(--hl-ink); }
  :root .ph-tab.live .i::after{ background:var(--live); }
  :root .ph-sheet h2{ font-family:var(--display); text-transform:uppercase; letter-spacing:.01em; }
}
@media (max-width:480px){ .hs-sbtn-t{ display:none; } .hs-sbtn{ width:40px; padding:0; justify-content:center; border-color:transparent; background:transparent; } }

/* ---------- Search ---------- */
html.hsq-lock{ overflow:hidden; }
#hsq-root{ position:fixed; inset:0; z-index:200; }
.hsq-veil{ position:absolute; inset:0; background:rgba(13,14,16,.5); opacity:0; transition:opacity .18s; }
.hsq{ position:absolute; left:50%; top:9vh; width:min(680px, calc(100vw - 24px)); max-height:78vh; display:flex; flex-direction:column;
  background:var(--surface); color:var(--text); border:1px solid var(--border); border-radius:20px; box-shadow:var(--shadow-3); overflow:hidden;
  transform:translate(-50%, 10px) scale(.985); opacity:0; transition:transform .22s var(--ease-out), opacity .18s; }
#hsq-root.on .hsq-veil{ opacity:1; }
#hsq-root.on .hsq{ transform:translate(-50%, 0); opacity:1; }
.hsq-in{ display:flex; align-items:center; gap:12px; padding:0 14px 0 18px; border-bottom:1px solid var(--border); flex:none; }
.hsq-in > svg{ width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; flex:none; }
.hsq-in input{ flex:1; min-width:0; height:62px; border:0; outline:0; background:transparent; font:500 19px var(--body); color:var(--text); }
.hsq-in input::placeholder{ color:var(--text-faint); }
.hsq-in input::-webkit-search-cancel-button{ -webkit-appearance:none; appearance:none; display:none; }
.hsq-x{ font:600 12px var(--body); color:var(--text-muted); padding:7px 10px; border-radius:8px; background:var(--surface-alt); cursor:pointer; }
.hsq-body{ overflow-y:auto; overscroll-behavior:contain; padding:8px; }
.hsq-g{ padding:4px 0; }
.hsq-gh{ display:flex; justify-content:space-between; align-items:center; padding:10px 10px 6px; font:700 11px var(--body); letter-spacing:.08em; text-transform:uppercase; color:var(--text-muted); }
.hsq-clear, .hsq-all{ font:600 12px var(--body); letter-spacing:0; text-transform:none; color:var(--accent); cursor:pointer; }
.hsq-it{ display:grid; grid-template-columns:40px minmax(0,1fr) auto; align-items:center; gap:12px; padding:8px 10px; border-radius:12px; min-height:56px; cursor:pointer; }
.hsq-it[aria-selected="true"]{ background:var(--surface-alt); }
.hsq-it .avatar{ width:40px; height:40px; }
.hsq-it .t{ font:600 15px var(--body); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.hsq-it .t mark{ background:var(--hl-soft); color:inherit; border-radius:3px; padding:0 1px; }
.hsq-it .s{ font-size:13px; color:var(--text-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.hsq-it .go{ opacity:0; transform:translateX(-4px); transition:opacity .15s, transform .15s; color:var(--text-muted); }
.hsq-it[aria-selected="true"] .go{ opacity:1; transform:none; }
.hsq-pm, .hsq-term, .hsq-cm{ width:40px; height:40px; border-radius:10px; display:grid; place-items:center; background:var(--surface-alt); color:var(--text); }
.hsq-pm svg{ width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }
.hsq-term{ background:var(--hl); color:var(--hl-ink); font:800 14px var(--display); letter-spacing:.02em; }
.hsq-cm{ background:transparent; }
.hsq-start{ display:grid; grid-template-columns:repeat(auto-fill, minmax(150px, 1fr)); gap:8px; padding:4px 4px 8px; }
.hsq-chip{ grid-template-columns:auto 1fr; min-height:48px; gap:10px; padding:10px 12px; border:1px solid var(--border); background:var(--surface-alt); font:600 14px var(--body); color:var(--text); text-align:left; }
.hsq-chip svg{ width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; color:var(--text-muted); }
.hsq-chip[aria-selected="true"]{ border-color:var(--text); background:var(--surface); }
.hsq-empty{ display:grid; gap:6px; padding:30px 16px 34px; text-align:center; color:var(--text-muted); }
.hsq-empty b{ color:var(--text); }
.hsq-foot{ display:flex; gap:16px; padding:10px 16px; border-top:1px solid var(--border); font-size:12px; color:var(--text-muted); flex:none; }
.hsq-foot span{ display:inline-flex; gap:5px; align-items:center; }
.hsq-foot .r{ margin-left:auto; }
@media (max-width:700px){
  .hsq{ top:0; left:0; width:100%; max-height:none; height:100dvh; border-radius:0; border:0; transform:translateY(12px); }
  #hsq-root.on .hsq{ transform:none; }
  .hsq-in input{ height:58px; font-size:17px; }
  .hsq-foot{ display:none; }
}
@media (prefers-reduced-motion: reduce){
  .hsq, .hsq-veil, .hsq-it .go, .nav-link, .hs-sbtn{ transition:none; }
}
.hsq-term.sm{ font-size:11px; line-height:1; text-align:center; padding:0 3px; }

/* ---------- app mode (home-screen / Android app): the same light header; the iPad rail stays dark ---------- */
:root.app .nav{ background:color-mix(in oklab, var(--bg) 92%, transparent); -webkit-backdrop-filter:blur(18px) saturate(150%); backdrop-filter:blur(18px) saturate(150%); }
html.app body::before{ background:var(--bg); }
@media (min-width:701px){
  :root.app .ph-bar::before{ background:var(--mark); }
  :root.app .ph-tab[aria-current="page"] .i{ background:var(--hl); color:var(--hl-ink); }
  :root.app .ph-tab.live .i::after{ background:var(--live); }
  html.app .ph-grid a[href$="/competitions/"], html.app .ph-grid a[href$="/teams/"], html.app .ph-grid a[href$="/milestones/"], html.app .ph-grid a[href$="/records/"]{ display:none; }
}

/* ---------- stat terms explain themselves (update-108) ---------- */
:root th[data-imtip]{ text-decoration:underline dotted color-mix(in oklab, currentColor 55%, transparent); text-decoration-thickness:1px; text-underline-offset:4px; }
:root th[data-imtip]:hover{ text-decoration-color:currentColor; }
.gl{ all:unset; cursor:help; font:700 1em var(--body); text-decoration:underline dotted; text-underline-offset:4px; color:var(--text); border-radius:3px; }
.gl:focus-visible{ outline:2px solid var(--text); outline-offset:2px; }
:root .im-tip{ max-width:300px; padding:10px 13px; border-radius:10px; font:500 13px/1.45 var(--body); box-shadow:var(--shadow-3); z-index:300; }
.ph-row{ display:grid; grid-template-columns:1fr 1fr; gap:8px; }

/* ---------- welcome ---------- */
#hsg-root{ position:fixed; inset:0; z-index:210; }
.hsg-veil{ position:absolute; inset:0; background:rgba(13,14,16,.55); opacity:0; transition:opacity .25s; }
.hsg{ position:absolute; left:50%; top:50%; width:min(760px, calc(100vw - 24px)); max-height:calc(100dvh - 24px); overflow-y:auto; overscroll-behavior:contain;
  background:var(--surface); color:var(--text); border-radius:26px; box-shadow:var(--shadow-3);
  transform:translate(-50%, -47%) scale(.98); opacity:0; transition:transform .38s var(--ease-out), opacity .25s; }
#hsg-root.on .hsg-veil{ opacity:1; }
#hsg-root.on .hsg{ transform:translate(-50%, -50%); opacity:1; }
.hsg-hero{ position:relative; overflow:hidden; background:#111316; color:#f4f5f2; padding:28px 30px 26px; border-radius:26px 26px 0 0; }
.hsg-hero > *{ position:relative; }
.hsg-court{ position:absolute !important; inset:0; width:100%; height:100%; color:rgba(255,255,255,.12); }
.hsg-top{ display:flex; justify-content:space-between; align-items:center; gap:12px; }
.hsg-eye{ font:700 11px var(--body); letter-spacing:.12em; text-transform:uppercase; color:#a4aab2; }
.hsg-x{ all:unset; cursor:pointer; width:40px; height:40px; display:grid; place-items:center; border-radius:999px; color:#f4f5f2; }
.hsg-x:hover{ background:rgba(255,255,255,.1); }
.hsg-x svg, .hsg-in .i svg{ width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }
.hsg-hero h2{ margin:12px 0 0; max-width:14ch; font:800 clamp(36px, 6vw, 54px)/.95 var(--display); text-transform:uppercase; letter-spacing:.01em; }
.hsg-hero h2:focus{ outline:none; }
.hsg-hero h2 em{ display:inline-block; margin-top:.1em; padding:.07em .14em .01em; line-height:.95; font-style:normal; white-space:nowrap; background:var(--hl); color:var(--hl-ink); border-radius:4px; }
.hsg-hero p{ margin:12px 0 0; max-width:52ch; color:#c3c8ce; font-size:15px; line-height:1.5; }
.hsg-facts{ display:flex; flex-wrap:wrap; gap:8px 26px; margin-top:18px; }
.hsg-facts div{ display:grid; }
.hsg-facts b{ font:800 32px/1 var(--display); }
.hsg-facts span{ font-size:12px; color:#a4aab2; }
.hsg-body{ padding:22px 30px 26px; }
.hsg-body h3{ margin:0 0 12px; font:700 16px var(--body); }
.hsg-intents{ display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:10px; }
.hsg-in{ all:unset; box-sizing:border-box; cursor:pointer; display:grid; grid-template-columns:44px minmax(0, 1fr); gap:3px 12px; align-items:center; padding:14px; border-radius:16px;
  border:1.5px solid var(--border); background:var(--surface-alt); transition:border-color .15s, transform .15s var(--ease), box-shadow .2s; }
.hsg-in:hover{ border-color:var(--text); transform:translateY(-2px); box-shadow:var(--shadow-2); }
.hsg-in:focus-visible{ outline:2px solid var(--text); outline-offset:2px; }
.hsg-in .i{ grid-row:span 2; width:44px; height:44px; border-radius:12px; display:grid; place-items:center; background:var(--hl); color:var(--hl-ink); }
.hsg-in b{ font:650 15px var(--body); }
.hsg-in > span:last-child{ font-size:13px; color:var(--text-muted); }
.hsg-foot{ display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:12px; margin-top:18px; }
.hsg-note{ font-size:13px; color:var(--text-muted); }
.hsg-note a{ color:var(--accent); }
.hsg-acts{ display:flex; gap:8px; }
.hsg-btn{ all:unset; box-sizing:border-box; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:0 18px; border-radius:999px; font:650 14px var(--body); transition:background-color .15s, transform .15s; }
.hsg-btn:active{ transform:scale(.98); }
.hsg-btn:focus-visible{ outline:2px solid var(--text); outline-offset:2px; }
.hsg-btn.ghost{ color:var(--text); }
.hsg-btn.ghost:hover{ background:var(--surface-alt); }
.hsg-btn.ink{ background:var(--on-bg); color:var(--on-fg); }
.hsg-btn.hl{ background:var(--hl); color:var(--hl-ink); }
.hsg-btn.sm{ min-height:38px; padding:0 14px; font-size:13px; }
@media (max-width:600px){
  .hsg{ top:auto; bottom:0; left:0; width:100%; max-height:calc(100dvh - 12px); border-radius:26px 26px 0 0; transform:translateY(28px); }
  #hsg-root.on .hsg{ transform:none; }
  .hsg-hero{ padding:22px 20px 20px; } .hsg-hero h2{ font-size:34px; } .hsg-hero p{ font-size:14px; } .hsg-facts b{ font-size:26px; }
  .hsg-body{ padding:18px 20px calc(20px + env(safe-area-inset-bottom, 0px)); }
  .hsg-intents{ gap:8px; }
  .hsg-in{ grid-template-columns:1fr; padding:12px; gap:8px; align-content:start; }
  .hsg-in .i{ grid-row:auto; width:36px; height:36px; border-radius:10px; }
  .hsg-in b{ font-size:14px; line-height:1.25; } .hsg-in > span:last-child{ display:none; }
  .hsg-note{ display:none; } .hsg-acts{ width:100%; } .hsg-acts .hsg-btn{ flex:1; }
}
/* ---------- the tour ---------- */
#hsg-tour{ position:fixed; inset:0; z-index:210; }
.hsg-spot{ position:fixed; border-radius:14px; box-shadow:0 0 0 3px var(--hl), 0 0 0 9999px rgba(13,14,16,.6); transition:all .35s var(--ease-out); pointer-events:auto; }
.hsg-coach{ position:fixed; width:min(340px, calc(100vw - 24px)); padding:18px; border-radius:18px; background:var(--surface); color:var(--text); box-shadow:var(--shadow-3); transition:left .35s var(--ease-out), top .35s var(--ease-out); }
.hsg-coach .st{ font:700 11px var(--body); letter-spacing:.1em; text-transform:uppercase; color:var(--text-muted); }
.hsg-coach h3{ margin:6px 0 6px; font:800 26px/1 var(--display); text-transform:uppercase; }
.hsg-coach p{ margin:0; font-size:14px; line-height:1.5; color:var(--text-muted); }
.hsg-coach .row{ display:flex; justify-content:space-between; align-items:center; gap:10px; margin-top:14px; }
.hsg-coach .dots{ display:flex; gap:5px; }
.hsg-coach .dots i{ width:7px; height:7px; border-radius:50%; background:var(--border); }
.hsg-coach .dots i.on{ width:18px; border-radius:4px; background:var(--text); }
.hsg-coach .acts{ display:flex; gap:6px; }
@media (prefers-reduced-motion: reduce){
  .hsg, .hsg-veil, .hsg-spot, .hsg-coach, .hsg-in{ transition:none; }
}

/* ---------- the game page (update-108): a scoreboard under arena light, then how it was won ---------- */
:root .gb-hero{ position:relative; overflow:hidden; isolation:isolate; padding:34px 40px 30px; border-radius:22px; border:1px solid var(--ink-line); color:#f4f5f2;
  background:radial-gradient(60% 140% at 0% 30%, oklch(70% 0.13 72 / .22), transparent 62%), radial-gradient(60% 140% at 100% 30%, oklch(60% 0.15 255 / .26), transparent 62%), #111316; }
:root .gb-hero::after{ content:""; position:absolute; inset:0; z-index:-1; opacity:.5;
  background:repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 72px); }
:root .gb-ht b{ font:800 clamp(22px, 2.3vw, 32px)/.98 var(--display); text-transform:uppercase; letter-spacing:.01em; color:#f4f5f2; text-wrap:balance; }
:root .gb-ht small{ display:block; margin-top:6px; font:600 12px var(--body); letter-spacing:.08em; color:#a4aab2; }
.gb-rec{ letter-spacing:.02em; text-transform:none; color:#c3c8ce; }
:root .gb-ht:not(.gb-won) .crest-logo, :root .gb-hero.gb-done .gb-ht:not(.gb-won) b{ opacity:.62; }
:root .gb-fsc{ gap:18px; font:800 clamp(64px, 8vw, 112px)/.9 var(--display); letter-spacing:-.01em; color:rgba(244,245,242,.38); }
:root .gb-fsc .w{ color:#f4f5f2; }
:root .gb-fsc i{ color:rgba(244,245,242,.28); font-weight:500; }
:root .gb-hero .gb-chip{ background:var(--hl); color:var(--hl-ink); letter-spacing:.1em; }
:root .gb-hero .gb-chip-r{ background:rgba(255,255,255,.1); color:#f4f5f2; }
:root .gb-hs > small{ color:#c3c8ce; font-size:13px; }
:root .gb-hb .m-watch:not(.gb-pri){ background:rgba(255,255,255,.08); color:#f4f5f2; border-color:rgba(255,255,255,.18); }
:root .gb-hero .gb-ht .swatch{ box-shadow:0 0 0 2px rgba(255,255,255,.12); }

.gb-sum{ display:grid; grid-template-columns:minmax(0, 1.65fr) minmax(0, 1fr); gap:16px; }
.gb-sum.one{ grid-template-columns:minmax(0, 1fr); }
.gb-sum > *{ min-width:0; }
.gb-story{ padding:20px 22px; }
.gb-story h2, .gb-potg-k{ margin:0 0 10px; font:700 11px var(--body); letter-spacing:.12em; text-transform:uppercase; color:var(--text-muted); }
.gb-story-t{ margin:0; font-size:16px; line-height:1.6; color:var(--text); text-wrap:pretty; max-width:64ch; }
.gb-story-t b{ font-weight:700; }
.gb-story-n{ display:grid; grid-template-columns:repeat(auto-fit, minmax(110px, 1fr)); gap:12px; margin-top:16px; padding-top:16px; border-top:1px solid var(--border); }
.gb-story-n div{ display:grid; gap:2px; }
.gb-story-n b{ font:800 34px/1 var(--display); font-variant-numeric:tabular-nums; }
.gb-story-n span{ font-size:12.5px; color:var(--text-muted); }
.gb-story-n span[data-imtip]{ text-decoration:underline dotted; text-underline-offset:3px; cursor:help; justify-self:start; }
.gb-story .gb-flwait{ height:120px; }
a.gb-potg{ display:grid; justify-items:center; align-content:start; gap:6px; padding:20px 18px; text-align:center; color:var(--text); text-decoration:none; position:relative; overflow:hidden;
  background:radial-gradient(90% 70% at 50% 0%, color-mix(in oklab, var(--hl) 22%, transparent), transparent 70%), var(--surface); transition:transform .18s var(--ease), box-shadow .2s; }
a.gb-potg:hover{ transform:translateY(-2px); box-shadow:var(--shadow-2); text-decoration:none; }
.gb-potg-k{ margin:0 0 6px; }
.gb-av.gb-potg-av{ width:92px; height:92px; border-radius:50%; box-shadow:0 0 0 3px var(--hl), 0 0 0 7px color-mix(in oklab, var(--hl) 25%, transparent); font-size:28px; }
.gb-potg-n{ margin-top:8px; font:800 30px/1 var(--display); text-transform:uppercase; letter-spacing:.01em; text-wrap:balance; }
.gb-potg-t{ display:inline-flex; align-items:center; gap:6px; font-size:13px; color:var(--text-muted); }
.gb-potg-s{ display:flex; gap:18px; margin-top:8px; }
.gb-potg-s div{ display:grid; gap:2px; }
.gb-potg-s b{ font:800 30px/1 var(--display); font-variant-numeric:tabular-nums; }
.gb-potg-s span{ font:700 10.5px var(--body); letter-spacing:.1em; color:var(--text-muted); }
.gb-potg-g{ margin-top:8px; padding:4px 10px; border-radius:999px; background:var(--surface-alt); font:700 11.5px var(--body); letter-spacing:.06em; text-transform:uppercase; color:var(--text); cursor:help; }

.gb-tsw{ display:none; }
@media (max-width:700px){
  :root .gb-hero{ padding:22px 16px 20px; border-radius:18px; }
  :root .gb-ht b{ font-size:17px; }
  :root .gb-ht small{ font-size:11px; letter-spacing:.06em; }
  :root .gb-fsc{ font-size:68px; gap:12px; }
  .gb-sum{ grid-template-columns:minmax(0, 1fr); gap:12px; }
  .gb-story{ padding:16px; } .gb-story-t{ font-size:15px; } .gb-story-n b{ font-size:28px; }
  .gb-story-n{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
  .gb-tsw{ display:grid; grid-template-columns:1fr 1fr; gap:4px; padding:4px; border-radius:14px; background:var(--surface-alt); border:1px solid var(--border); }
  .gb-tsw button{ all:unset; box-sizing:border-box; cursor:pointer; display:flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:0 10px; border-radius:10px;
    font:600 13.5px var(--body); color:var(--text-muted); text-align:center; min-width:0; transition:background-color .15s, color .15s; }
  .gb-tsw button span{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0; }
  .gb-tsw button[aria-pressed="true"]{ background:var(--surface); color:var(--text); box-shadow:var(--shadow); }
  .gb-tsw button:focus-visible{ outline:2px solid var(--text); outline-offset:2px; }
  .gb-tbs[data-show="0"] > .gb-tb:nth-child(2), .gb-tbs[data-show="1"] > .gb-tb:nth-child(1){ display:none; }
}
@media (prefers-reduced-motion: reduce){ a.gb-potg, .gb-tsw button{ transition:none; } }

/* ---------- the MBL page is tabs (update-109): Overview first, Players with four views ---------- */
:root .mb-page.tabs .mb-wrap > .mb-sec{ display:none; }
:root .mb-page.tabs .mb-wrap > .mb-sec.on{ display:grid; animation:mboIn .3s var(--ease-out) both; }
@keyframes mboIn{ from{ opacity:0; transform:translateY(6px); } to{ opacity:1; transform:none; } }
:root .mb-page.tabs .mb-sec{ scroll-margin-top:0; }
:root .mb-snav{ top:64px; }
:root .mb-snav a{ display:inline-flex; align-items:center; gap:6px; }
:root .mb-snav a small{ font:600 11px var(--body); color:var(--text-faint); font-variant-numeric:tabular-nums; }
:root .mb-snav a.on small{ color:inherit; opacity:.7; }
.mbo-more{ display:inline-flex; align-items:center; gap:6px; margin-left:auto; font:600 13px var(--body); color:var(--text); }
.mbo-more:hover{ text-decoration:none; color:var(--accent); }
.mbo-tiles{ display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); background:var(--surface); border:1px solid var(--border); border-radius:16px; overflow:hidden; }
.mbo-tile{ display:grid; gap:4px; padding:16px 18px; min-width:0; }
.mbo-tile + .mbo-tile{ border-left:1px solid var(--border); }
.mbo-tile .k{ font:600 12.5px var(--body); color:var(--text-muted); }
.mbo-tile b{ font:800 40px/1 var(--display); font-variant-numeric:tabular-nums; }
.mbo-tile b small{ font-size:.5em; color:var(--text-muted); font-weight:700; margin-left:2px; }
.mbo-tile .s{ font-size:12.5px; color:var(--text-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mbo-grid{ display:grid; grid-template-columns:minmax(0, 1fr) 340px; gap:18px; align-items:start; }
.mbo-main{ display:grid; gap:18px; min-width:0; }
.mbo-card{ min-width:0; overflow:hidden; }
.mbo-card > header{ display:flex; align-items:center; gap:12px; padding:14px 18px; border-bottom:1px solid var(--border); }
.mbo-card > header h2{ margin:0; font:700 16px var(--body); }
.mbo-st{ width:100%; border-collapse:collapse; font-variant-numeric:tabular-nums; }
.mbo-st th{ padding:9px 10px; font:700 11px var(--body); letter-spacing:.08em; text-transform:uppercase; color:var(--text-muted); text-align:right; border-bottom:1px solid var(--border); }
.mbo-st td{ padding:9px 10px; text-align:right; border-bottom:1px solid var(--hair); font-size:14px; }
.mbo-st tr:last-child td{ border-bottom:0; }
.mbo-st th.l, .mbo-st td.l{ text-align:left; }
.mbo-st th:first-child, .mbo-st td:first-child{ padding-left:18px; width:28px; }
.mbo-st th:last-child, .mbo-st td:last-child{ padding-right:18px; }
.mbo-st td.pos{ font:800 18px var(--display); color:var(--text-muted); }
.mbo-st td.tm{ display:flex; align-items:center; gap:10px; font-weight:600; }
.mbo-st td.tm a{ color:var(--text); min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.mbo-st td.pos-d{ color:var(--positive-ink); } .mbo-st td.neg-d{ color:var(--negative); }
.mbo-gms{ display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:4px 28px; padding:4px 18px 12px; }
.mbo-g{ min-width:0; }
.mbo-d{ margin-top:10px; font:700 11px var(--body); letter-spacing:.08em; text-transform:uppercase; color:var(--text-muted); }
.mbo-lead{ display:grid; }
.mbo-lc{ padding:12px 18px 6px; }
.mbo-lc + .mbo-lc{ border-top:1px solid var(--hair); }
.mbo-lc h3{ margin:0 0 6px; font:700 11px var(--body); letter-spacing:.08em; text-transform:uppercase; color:var(--text-muted); }
.mbo-lr{ display:grid; grid-template-columns:36px minmax(0, 1fr) auto; align-items:center; gap:10px; padding:6px 0; color:var(--text); }
.mbo-lr:hover{ text-decoration:none; } .mbo-lr:hover b{ text-decoration:underline; }
.mbo-lr .ph{ width:36px; height:36px; border-radius:50%; overflow:hidden; display:grid; place-items:center; background:var(--surface-alt); font:700 12px var(--body); color:var(--text-muted); }
.mbo-lr .ph img{ width:100%; height:100%; object-fit:cover; object-position:top; }
.mbo-lr .n{ display:grid; min-width:0; }
.mbo-lr .n b{ font:600 14px var(--body); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mbo-lr .n small{ display:flex; align-items:center; gap:5px; font-size:12px; color:var(--text-muted); }
.mbo-lr .v{ font:800 26px/1 var(--display); font-variant-numeric:tabular-nums; }
.mbo-note{ margin:0; padding:10px 18px 14px; font-size:12px; color:var(--text-muted); border-top:1px solid var(--hair); }
.mbo-players .cp-card{ margin:0; }
:root .mb-page.tabs .mb-sec > *, .mbo-players, .mbo-players .cp-card{ min-width:0; max-width:100%; }
:root .mb-page.tabs .mb-sh .mb-sub{ min-width:0; overflow-wrap:anywhere; }
@media (max-width:1000px){
  .mbo-grid{ grid-template-columns:minmax(0, 1fr); }
  .mbo-gms{ grid-template-columns:minmax(0, 1fr); }
  .mbo-tiles{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
  .mbo-tile:nth-child(3){ border-left:0; } .mbo-tile:nth-child(n+3){ border-top:1px solid var(--border); }
}
@media (max-width:700px){
  :root .mb-snav{ top:58px; }
  .mbo-tile{ padding:12px 14px; } .mbo-tile b{ font-size:30px; }
  .mbo-card > header{ padding:12px 14px; }
  .mbo-st th:first-child, .mbo-st td:first-child{ padding-left:12px; } .mbo-st th:last-child, .mbo-st td:last-child{ padding-right:12px; }
  .mbo-st th, .mbo-st td{ padding-left:6px; padding-right:6px; }
  .mbo-st .f{ display:none; }
  .mbo-st td.tm a{ max-width:44vw; }
  .mbo-players .cp-views{ display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); width:100%; }
  .mbo-players .cp-views .seg-btn{ padding-left:4px; padding-right:4px; min-width:0; text-align:center; overflow:hidden; text-overflow:ellipsis; }
  .mbo-gms{ padding:4px 14px 10px; } .mbo-lc{ padding:10px 14px 4px; }
}
@media (prefers-reduced-motion: reduce){ :root .mb-page.tabs .mb-wrap > .mb-sec.on{ animation:none; } }

/* ---------- tightly cropped portraits (update-110): player_extras.json photoFit, marked #pfNN on the address ---------- */
img[src*="#pf"]{ transform-origin:50% 100%; -webkit-mask-image:linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent); mask-image:linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent); }
img[src$="#pf50"]{ scale:0.5; }
img[src$="#pf55"]{ scale:0.55; }
img[src$="#pf60"]{ scale:0.6; }
img[src$="#pf65"]{ scale:0.65; }
img[src$="#pf70"]{ scale:0.7; }
img[src$="#pf75"]{ scale:0.75; }
img[src$="#pf80"]{ scale:0.8; }
img[src$="#pf85"]{ scale:0.85; }
img[src$="#pf90"]{ scale:0.9; }
img[src$="#pf95"]{ scale:0.95; }
:is(.avatar, .pbp-face, .cs-ph, .cmp-res-face, .gb-av, .mb-lr .ph, .mbo-lr .ph, .pg-av, .hsq-it, .acc-av, .mhx-mini .avs, .sgx-mini) img[src*="#pf"]{ scale:none; -webkit-mask-image:none; mask-image:none; }

/* ---------- the players directory (update-110) ---------- */
.pd-page{ display:grid; gap:22px; }
.pd-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:16px; flex-wrap:wrap; padding-top:8px; }
.pd-head h1{ margin:0; font:800 clamp(48px, 7vw, 84px)/.9 var(--display); text-transform:uppercase; letter-spacing:.005em; }
.pd-head p{ margin:10px 0 0; font-size:16px; color:var(--text-muted); max-width:62ch; }
.pd-seg{ display:inline-flex; gap:2px; padding:3px; border-radius:999px; background:var(--surface-alt); border:1px solid var(--border); flex:none; }
.pd-seg button{ all:unset; box-sizing:border-box; cursor:pointer; min-height:38px; padding:0 14px; border-radius:999px; display:inline-flex; align-items:center; font:600 13.5px var(--body); color:var(--text-muted); white-space:nowrap; transition:background-color .15s, color .15s; }
.pd-seg button:hover{ color:var(--text); }
.pd-seg button[aria-pressed="true"]{ background:var(--on-bg); color:var(--on-fg); }
.pd-seg button:focus-visible{ outline:2px solid var(--text); outline-offset:2px; }
.pd-feat{ display:grid; gap:12px; min-width:0; }
.pd-fh{ display:flex; align-items:center; justify-content:space-between; gap:12px; }
.pd-fh h2{ margin:0; font:700 17px var(--body); }
.pd-arrows{ display:flex; gap:6px; }
.pd-arw{ all:unset; cursor:pointer; width:38px; height:38px; display:grid; place-items:center; border-radius:999px; border:1px solid var(--border); background:var(--surface); font:600 20px/1 var(--body); color:var(--text); }
.pd-arw:hover{ border-color:var(--text-faint); }
.pd-arw:focus-visible{ outline:2px solid var(--text); outline-offset:2px; }
.pd-frow{ display:grid; grid-auto-flow:column; grid-auto-columns:176px; gap:12px; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; padding-bottom:4px; }
.pd-frow::-webkit-scrollbar{ display:none; }
.pd-fc{ position:relative; display:grid; grid-template-rows:180px auto; border-radius:16px; overflow:hidden; scroll-snap-align:start; color:var(--text); text-decoration:none;
  background:var(--surface); border:1px solid var(--border); transition:transform .18s var(--ease), box-shadow .2s; }
.pd-fc:hover{ transform:translateY(-3px); box-shadow:var(--shadow-2); text-decoration:none; }
.pd-fpic{ position:relative; overflow:hidden; background:radial-gradient(90% 90% at 50% 100%, color-mix(in oklab, var(--team, #444) 55%, transparent), transparent 75%), #16181b; }
.pd-fpic img{ position:absolute; left:0; right:0; bottom:0; width:100%; height:100%; object-fit:cover; object-position:50% 0; }
.pd-fv{ position:absolute; top:10px; left:10px; padding:4px 8px 3px; border-radius:8px; background:rgba(13,14,16,.78); color:#f4f5f2; font:800 24px/1 var(--display); font-variant-numeric:tabular-nums; }
.pd-fv small{ font:700 10px var(--body); letter-spacing:.06em; margin-left:3px; color:#c3c8ce; }
.pd-ft{ display:grid; gap:3px; padding:10px 12px 12px; min-width:0; }
.pd-ft b{ font:700 14px var(--body); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pd-ft > span{ display:flex; align-items:center; gap:5px; font-size:12px; color:var(--text-muted); min-width:0; }
.pd-ft .t, .pd-n .t{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0; }
.pd-ft .p-mark, .pd-n .p-mark{ width:15px; height:15px; flex:none; }
.pd-tools{ display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.pd-field{ flex:1 1 260px; display:flex; align-items:center; gap:8px; min-height:44px; padding:0 14px; border-radius:999px; border:1px solid var(--border); background:var(--surface); color:var(--text-muted); }
.pd-field:focus-within{ border-color:var(--text); }
.pd-field svg{ width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; flex:none; }
.pd-field input{ all:unset; flex:1; min-width:0; font:500 15px var(--body); color:var(--text); }
.pd-field input::-webkit-search-cancel-button{ display:none; }
.pd-sel{ min-height:44px; padding:0 34px 0 14px; border-radius:999px; border:1px solid var(--border); background-color:var(--surface); color:var(--text); font:600 14px var(--body); max-width:100%; }
.pd-count{ display:flex; align-items:baseline; gap:8px; flex-wrap:wrap; color:var(--text-muted); font-size:14px; }
.pd-count b{ font:800 30px/1 var(--display); color:var(--text); }
.pd-reset{ all:unset; cursor:pointer; color:var(--accent); font-weight:600; }
.pd-gh{ display:flex; align-items:baseline; gap:10px; flex-wrap:wrap; margin:18px 0 8px; font:700 12px var(--body); letter-spacing:.1em; text-transform:uppercase; color:var(--text); }
.pd-gh span{ font-weight:500; letter-spacing:0; text-transform:none; color:var(--text-muted); font-size:13px; }
.pd-list{ list-style:none; margin:0; padding:0; display:grid; gap:6px; }
.pd-row{ display:grid; grid-template-columns:48px minmax(0, 1fr) auto repeat(4, 60px) 16px; gap:14px; align-items:center; padding:10px 16px; border-radius:14px; border:1px solid var(--border); background:var(--surface); color:var(--text); text-decoration:none; transition:border-color .15s, box-shadow .2s; }
.pd-row:hover{ border-color:var(--text-faint); box-shadow:var(--shadow); text-decoration:none; }
.pd-row .avatar{ width:48px; height:48px; font-size:15px; }
.pd-n{ display:grid; gap:2px; min-width:0; }
.pd-n b{ font:700 15px var(--body); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pd-n b mark{ background:var(--hl-soft); color:inherit; border-radius:3px; }
.pd-n > span{ display:flex; align-items:center; gap:5px; font-size:13px; color:var(--text-muted); min-width:0; white-space:nowrap; }
.pd-n .d{ flex:none; }
.pd-tag{ font:700 10.5px var(--body); letter-spacing:.08em; padding:3px 7px; border-radius:6px; background:var(--surface-alt); color:var(--text-muted); }
.pd-tag.mbl{ background:none; padding:0; display:inline-flex; align-items:center; }
.pd-tag.mbl img{ display:block; height:20px; width:auto; }
.pd-s{ display:grid; justify-items:end; gap:2px; }
.pd-s b{ font:800 24px/1 var(--display); font-variant-numeric:tabular-nums; }
.pd-s small{ font:700 10px var(--body); letter-spacing:.08em; color:var(--text-muted); }
.pd-go{ color:var(--text-faint); font-size:20px; }
.pd-more{ display:flex; align-items:center; gap:14px; justify-content:center; margin-top:14px; color:var(--text-muted); font-size:13px; }
.pd-btn{ all:unset; cursor:pointer; min-height:42px; padding:0 18px; border-radius:999px; border:1px solid var(--border); background:var(--surface); font:600 14px var(--body); color:var(--text); display:inline-flex; align-items:center; }
.pd-btn:hover{ border-color:var(--text); }
.pd-btn:focus-visible, .pd-reset:focus-visible{ outline:2px solid var(--text); outline-offset:2px; }
.pd-empty{ display:grid; justify-items:center; gap:6px; padding:36px 16px; border:1px dashed var(--border); border-radius:16px; color:var(--text-muted); text-align:center; }
.pd-empty b{ color:var(--text); }
.pd-tablepage #glob-filters{ margin:0; }
@media (max-width:700px){
  .pd-head h1{ font-size:52px; } .pd-head p{ font-size:14.5px; }
  .pd-view{ width:100%; } .pd-view button{ flex:1; justify-content:center; }
  .pd-arrows{ display:none; }
  .pd-frow{ grid-auto-columns:148px; gap:10px; margin:0 -16px; padding:0 16px 4px; scroll-padding:0 16px; }
  .pd-fc{ grid-template-rows:150px auto; }
  .pd-tools{ display:grid; grid-template-columns:1fr 1fr; }
  .pd-field{ grid-column:1 / -1; }
  .pd-sel{ width:100%; }
  .pd-tools .pd-seg{ grid-column:1 / -1; display:grid; grid-auto-flow:column; grid-auto-columns:1fr; }
  .pd-tools .pd-seg button{ justify-content:center; padding:0 6px; font-size:13px; }
  .pd-row{ grid-template-columns:44px minmax(0, 1fr) repeat(2, 44px); gap:10px; padding:10px 12px; }
  .pd-row .avatar{ width:44px; height:44px; }
  .pd-s.x, .pd-go{ display:none; }
  .pd-row{ grid-template-rows:auto auto; row-gap:4px; }
  .pd-n .d.p{ display:none; }
  .pd-n > span{ overflow:hidden; }
  .pd-row .avatar{ grid-column:1; grid-row:1 / span 2; }
  .pd-row .pd-n{ grid-column:2; grid-row:1 / span 2; }
  .pd-row .pd-s{ grid-row:1; }
  .pd-row .pd-tag{ grid-column:3 / span 2; grid-row:2; justify-self:end; padding:2px 6px; font-size:9.5px; }
  .pd-row .pd-tag.mbl{ padding:0; } .pd-tag.mbl img{ height:15px; }
  .pd-s b{ font-size:21px; }
}
@media (max-width:360px){ .pd-row{ grid-template-columns:40px minmax(0, 1fr) 34px 38px; gap:8px; padding:10px; } .pd-row .avatar{ width:40px; height:40px; } .pd-s b{ font-size:19px; } }
@media (prefers-reduced-motion: reduce){ .pd-fc, .pd-row, .pd-seg button{ transition:none; } }

/* ---------- the footer and the help pages (update-111) ---------- */
.site-foot{ margin-top:56px; background:#0b0c0e; color:#f1f2ee; border-top:1px solid #1f2226; }
.sf-in{ max-width:1320px; margin:0 auto; padding:44px 32px 26px; }
.sf-top{ display:grid; grid-template-columns:minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap:32px; }
.sf-mark{ display:inline-flex; align-items:center; gap:8px; font:800 22px/1 var(--display); letter-spacing:.02em; color:#f1f2ee; }
.sf-mark:hover{ text-decoration:none; }
.sf-mark .dot{ width:10px; height:10px; border-radius:2px; background:var(--mark); flex:none; }
.sf-mark .wm-my{ margin-left:-2px; }
.sf-brand p{ margin:16px 0 0; max-width:38ch; font-size:14px; line-height:1.6; color:#a4aab2; }
.sf-col{ display:grid; align-content:start; gap:12px; }
.sf-col h2{ margin:0 0 4px; font:700 12px var(--body); letter-spacing:.1em; text-transform:uppercase; color:#a4aab2; }
.sf-col a, .sf-col button{ all:unset; cursor:pointer; justify-self:start; font:500 15px var(--body); color:#f1f2ee; }
.sf-col a:hover, .sf-col button:hover{ color:var(--hl); text-decoration:none; }
.sf-col a:focus-visible, .sf-col button:focus-visible, .sf-bot a:focus-visible{ outline:2px solid var(--hl); outline-offset:3px; border-radius:2px; }
.sf-bot{ display:flex; justify-content:space-between; gap:12px 24px; flex-wrap:wrap; margin-top:40px; padding-top:20px; border-top:1px solid #1f2226; font-size:13px; color:#8b9199; }
.sf-bot a{ color:#c3c8ce; }
@media (max-width:900px){ .sf-top{ grid-template-columns:repeat(3, minmax(0, 1fr)); } .sf-brand{ grid-column:1 / -1; } }
@media (max-width:600px){
  .site-foot{ margin-top:40px; }
  .sf-in{ padding:32px 18px 22px; }
  .sf-top{ grid-template-columns:1fr 1fr; gap:28px 18px; }
  .sf-col:last-child{ grid-column:1 / -1; }
  .sf-col a, .sf-col button{ font-size:14.5px; padding:2px 0; }
  .sf-bot{ flex-direction:column; margin-top:28px; }
}
.hp-page{ display:grid; gap:28px; max-width:1100px; }
.hp-head h1{ margin:0; font:800 clamp(40px, 6vw, 72px)/.92 var(--display); text-transform:uppercase; letter-spacing:.005em; text-wrap:balance; }
.hp-head p{ margin:12px 0 0; font-size:16px; color:var(--text-muted); max-width:64ch; }
.hp-nav{ display:flex; flex-wrap:wrap; gap:6px; margin-top:20px; }
.hp-nav a{ padding:9px 15px; border-radius:999px; border:1px solid var(--border); background:var(--surface); font:600 13.5px var(--body); color:var(--text-muted); }
.hp-nav a:hover{ color:var(--text); text-decoration:none; }
.hp-nav a[aria-current="page"]{ background:var(--on-bg); color:var(--on-fg); border-color:transparent; }
.hp-hero{ display:flex; justify-content:space-between; align-items:center; gap:20px; flex-wrap:wrap; padding:24px 26px; border-radius:18px; background:var(--surface); border:1px solid var(--border); }
.hp-hero h2{ margin:6px 0 6px; font:800 30px/1 var(--display); text-transform:uppercase; }
.hp-hero p{ margin:0; color:var(--text-muted); max-width:58ch; line-height:1.55; }
.hp-hero kbd{ font:600 12px var(--body); padding:2px 7px; border-radius:6px; border:1px solid var(--border); background:var(--surface-alt); }
.hp-eye{ font:700 11px var(--body); letter-spacing:.12em; text-transform:uppercase; color:var(--text-muted); }
.hp-acts{ display:flex; gap:8px; flex-wrap:wrap; }
.hp-btn{ all:unset; cursor:pointer; min-height:44px; padding:0 18px; border-radius:999px; display:inline-flex; align-items:center; font:650 14px var(--body); border:1px solid var(--border); background:var(--surface); color:var(--text); }
.hp-btn.hl{ background:var(--hl); color:var(--hl-ink); border-color:transparent; }
.hp-btn:focus-visible{ outline:2px solid var(--text); outline-offset:2px; }
.hp-sec{ display:grid; gap:12px; }
.hp-sec > h2{ margin:0; font:700 20px var(--body); }
.hp-lede{ margin:-6px 0 0; color:var(--text-muted); }
.hp-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(240px, 1fr)); gap:10px; }
.hp-grid.sm{ grid-template-columns:repeat(auto-fill, minmax(210px, 1fr)); }
.hp-card{ display:grid; gap:6px; align-content:start; padding:16px 18px; border-radius:14px; border:1px solid var(--border); background:var(--surface); color:var(--text); transition:border-color .15s, transform .15s var(--ease); }
.hp-card:hover{ border-color:var(--text-faint); transform:translateY(-2px); text-decoration:none; }
.hp-card b{ font:700 16px var(--body); }
.hp-card span{ font-size:13.5px; line-height:1.5; color:var(--text-muted); }
.hp-prose{ max-width:68ch; }
.hp-prose h2{ margin:26px 0 6px; font:700 18px var(--body); }
.hp-prose h2:first-child{ margin-top:0; }
.hp-prose p{ margin:0 0 10px; line-height:1.65; color:var(--text); }
.hp-note{ margin-top:18px !important; font-size:13px; color:var(--text-muted) !important; }
.hp-faq{ display:grid; gap:8px; max-width:820px; }
.hp-faq details{ border:1px solid var(--border); border-radius:14px; background:var(--surface); padding:0 18px; }
.hp-faq summary{ cursor:pointer; padding:15px 0; font:650 15px var(--body); list-style:none; display:flex; justify-content:space-between; gap:12px; }
.hp-faq summary::-webkit-details-marker{ display:none; }
.hp-faq summary::after{ content:"+"; font-weight:500; color:var(--text-muted); }
.hp-faq details[open] summary::after{ content:"–"; }
.hp-faq p{ margin:0 0 16px; line-height:1.6; color:var(--text-muted); }
.hp-gl{ display:grid; grid-template-columns:repeat(auto-fill, minmax(320px, 1fr)); gap:8px; }
.hp-gi{ display:grid; grid-template-columns:76px minmax(0, 1fr); gap:14px; align-items:start; padding:14px 16px; border-radius:14px; border:1px solid var(--border); background:var(--surface); scroll-margin-top:90px; }
.hp-gi.on{ border-color:var(--hl-line); box-shadow:0 0 0 3px var(--hl-soft); }
.hp-gi .k{ display:inline-grid; place-items:center; min-height:34px; padding:0 6px; border-radius:8px; background:var(--hl); color:var(--hl-ink); font:800 15px var(--display); letter-spacing:.02em; text-align:center; }
.hp-gi b{ font:700 14.5px var(--body); }
.hp-gi p{ margin:4px 0 0; font-size:13.5px; line-height:1.55; color:var(--text-muted); }
.hp-tiles{ display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); border:1px solid var(--border); border-radius:16px; background:var(--surface); overflow:hidden; }
.hp-tiles div{ display:grid; gap:4px; padding:16px 18px; }
.hp-tiles div + div{ border-left:1px solid var(--border); }
.hp-tiles b{ font:800 36px/1 var(--display); font-variant-numeric:tabular-nums; }
.hp-tiles span{ font-size:13px; color:var(--text-muted); }
@media (max-width:700px){
  .hp-gl{ grid-template-columns:1fr; }
  .hp-gi{ grid-template-columns:62px minmax(0, 1fr); padding:12px 14px; }
  .hp-tiles{ grid-template-columns:1fr 1fr; }
  .hp-tiles div:nth-child(3){ border-left:0; } .hp-tiles div:nth-child(n+3){ border-top:1px solid var(--border); }
  .hp-tiles b{ font-size:28px; }
  .hp-hero{ padding:18px; } .hp-acts{ width:100%; } .hp-btn{ flex:1; justify-content:center; }
}
@media (prefers-reduced-motion: reduce){ .hp-card{ transition:none; } }

/* ---------- a team's page (update-112) ---------- */
.tg-page{ display:block; }
.tg-head{ position:relative; overflow:hidden; color:#f4f5f2; background:radial-gradient(70% 140% at 0% 0%, color-mix(in oklab, var(--tc) 45%, transparent), transparent 70%), #121417; }
.tg-head-in{ max-width:1320px; margin:0 auto; padding:26px 28px 30px; }
.tg-crumb a{ font:600 13px var(--body); color:#c3c8ce; }
.tg-id{ display:flex; align-items:center; gap:28px; margin-top:14px; }
.tg-crest{ flex:none; width:128px; height:128px; display:grid; place-items:center; }
.tg-crest .crest-logo, .tg-crest img{ width:120px !important; height:120px !important; object-fit:contain; }
.tg-txt{ min-width:0; }
.tg-txt h1{ margin:0; font:800 clamp(40px, 6.4vw, 84px)/.9 var(--display); text-transform:uppercase; letter-spacing:.005em; text-wrap:balance; }
.tg-sub{ display:flex; flex-wrap:wrap; align-items:center; gap:6px 16px; margin:12px 0 0; font-size:15.5px; color:#c3c8ce; }
.tg-titles{ display:inline-flex; align-items:center; gap:6px; padding:3px 10px; border-radius:7px; background:color-mix(in oklab, var(--hl) 22%, transparent); color:var(--hl); font:800 12px var(--body); letter-spacing:.06em; text-transform:uppercase; }
.tg-titles svg, .tg-btn svg, .tg-next svg, .tg-trophy svg{ width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; flex:none; }
.tg-alias{ margin:8px 0 0; font-size:13px; color:#a4aab2; }
.tg-acts{ display:flex; flex-wrap:wrap; gap:8px; margin-top:18px; }
.tg-btn{ all:unset; cursor:pointer; display:inline-flex; align-items:center; gap:8px; min-height:44px; padding:0 18px; border-radius:999px; border:1px solid var(--border); background:var(--surface); color:var(--text); font:650 14px var(--body); }
.tg-btn:hover{ border-color:var(--text-faint); }
.tg-btn:focus-visible, .tg-seg button:focus-visible{ outline:2px solid var(--text); outline-offset:2px; }
.tg-head .tg-btn.ghost{ background:transparent; border-color:transparent; color:#f4f5f2; }
.tg-head .tg-btn.ghost:hover{ background:rgba(255,255,255,.08); }
.tg-head .acc-fav{ min-height:44px; padding:0 18px; border-radius:999px; border:1px solid rgba(255,255,255,.28); background:transparent; color:#f4f5f2; font:650 14px var(--body); cursor:pointer; }
.tg-head .acc-fav.on{ background:var(--hl); color:var(--hl-ink); border-color:transparent; }
.tg-tabs{ position:sticky; top:64px; z-index:14; background:color-mix(in oklab, var(--bg) 92%, transparent); -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px); border-bottom:1px solid var(--border); }
.tg-tabs-in{ max-width:1320px; margin:0 auto; padding:0 28px; display:flex; gap:6px; overflow-x:auto; scrollbar-width:none; }
.tg-tabs a{ position:relative; display:inline-flex; align-items:center; gap:7px; padding:15px 12px; font:600 14.5px var(--body); color:var(--text-muted); white-space:nowrap; }
.tg-tabs a:hover{ color:var(--text); text-decoration:none; }
.tg-tabs a small{ font:600 11.5px var(--body); color:var(--text-faint); }
.tg-tabs a[aria-current="page"]{ color:var(--text); }
.tg-tabs a[aria-current="page"]::after{ content:""; position:absolute; left:8px; right:8px; bottom:-1px; height:3px; border-radius:3px 3px 0 0; background:var(--hl); }
.tg-wrap{ max-width:1320px; margin:0 auto; padding:24px 28px 0; }
.tg-panel{ display:none; }
.tg-panel.on{ display:grid; gap:18px; animation:mboIn .3s var(--ease-out) both; }
.tg-panel > *{ min-width:0; }
.tg-grid{ display:grid; grid-template-columns:minmax(0, 1fr) 400px; gap:22px; align-items:start; }
.tg-main, .tg-side{ display:grid; gap:20px; min-width:0; }
.tg-card{ background:var(--surface); border:1px solid var(--border); border-radius:16px; overflow:hidden; min-width:0; }
.tg-card > header{ display:flex; align-items:center; gap:10px; padding:14px 18px; border-bottom:1px solid var(--border); min-width:0; }
.tg-card > header h2{ margin:0; font:700 16px var(--body); min-width:0; }
.tg-more{ margin-left:auto; display:inline-flex; gap:6px; font:600 13px var(--body); color:var(--text); white-space:nowrap; }
.tg-more:hover{ color:var(--accent); text-decoration:none; }
.tg-div{ display:inline-flex; align-items:center; gap:6px; padding:3px 9px; border-radius:999px; background:var(--surface-alt); font:600 12px var(--body); color:var(--text-muted); white-space:nowrap; }
.tg-div i{ width:7px; height:7px; border-radius:50%; background:var(--dc); }
.tg-nums{ display:flex; flex-wrap:wrap; gap:14px 34px; padding:18px 20px; }
.tg-nums div{ display:grid; gap:4px; }
.tg-nums b{ font:800 40px/1 var(--display); font-variant-numeric:tabular-nums; }
.tg-nums span{ font-size:12.5px; color:var(--text-muted); }
.tg-nums span[data-imtip]{ text-decoration:underline dotted; text-underline-offset:3px; }
.tg-next{ display:flex; align-items:center; gap:10px; padding:13px 20px; background:var(--hl-soft); color:var(--text); font-size:14px; border-top:1px solid var(--border); }
.tg-next:hover{ text-decoration:none; }
.tg-sec{ display:grid; gap:12px; }
.tg-sh{ display:flex; align-items:baseline; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.tg-sh h2{ margin:0; display:flex; align-items:center; gap:10px; flex-wrap:wrap; font:800 24px/1 var(--display); }
.tg-hint{ font-size:13px; color:var(--text-muted); }
.tg-yr{ font:600 14px var(--body); color:var(--text-muted); }
.tg-squad{ display:grid; grid-template-columns:repeat(auto-fill, minmax(168px, 1fr)); gap:10px; }
.tg-pc{ position:relative; display:grid; justify-items:center; gap:4px; padding:16px 10px 14px; text-align:center; border-radius:14px; border:1px solid var(--border); background:var(--surface); color:var(--text); transition:transform .15s var(--ease), border-color .15s; min-width:0; }
.tg-pc:hover{ transform:translateY(-2px); border-color:var(--text-faint); text-decoration:none; }
.tg-pc .no{ position:absolute; top:8px; right:10px; font:700 12px var(--body); color:var(--text-faint); }
.tg-pc .avatar{ width:64px; height:64px; font-size:18px; margin-bottom:6px; }
.tg-pc > b{ font:700 14px var(--body); max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.tg-pc .m{ font-size:12px; color:var(--text-muted); }
.tg-pc .s{ font-size:12px; color:var(--text-muted); margin-top:4px; }
.tg-pc .s b{ font:800 18px/1 var(--display); color:var(--text); }
.tg-pc .na{ font-style:italic; }
.tg-trophy ul{ list-style:none; margin:0; padding:10px 18px 14px; display:grid; gap:2px; }
.tg-trophy li a{ display:flex; align-items:center; gap:8px; padding:5px 0; color:var(--text); font-size:14.5px; }
.tg-trophy li a:hover{ text-decoration:none; color:var(--accent); }
.tg-trophy svg{ color:#d9a82a; }
.tg-empty{ margin:0; padding:16px 18px; color:var(--text-muted); font-size:14px; }
.tg-pad{ padding:12px 18px 2px; }
.tg-top ol, .tg-pl{ list-style:none; margin:0; padding:6px 0 8px; }
.tg-top li a{ display:grid; grid-template-columns:22px 40px minmax(0, 1fr) auto; align-items:center; gap:12px; padding:9px 18px; color:var(--text); }
.tg-top li:first-child a{ background:var(--hl-soft); }
.tg-top li a:hover{ background:var(--surface-alt); text-decoration:none; }
.tg-top .r{ font:800 18px var(--display); color:var(--text-muted); }
.tg-top .avatar, .tg-pl .avatar{ width:40px; height:40px; }
.tg-top .n, .tg-pl .n{ display:grid; min-width:0; }
.tg-top .n b, .tg-pl .n b{ font:650 14.5px var(--body); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.tg-top .n small, .tg-pl .n small{ font-size:12px; color:var(--text-muted); }
.tg-top .v{ display:grid; justify-items:end; }
.tg-top .v b{ font:800 26px/1 var(--display); font-variant-numeric:tabular-nums; }
.tg-top .v small{ font-size:11px; color:var(--text-muted); }
.tg-flt{ display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.tg-seg{ display:inline-flex; flex-wrap:wrap; gap:2px; padding:3px; border-radius:999px; background:var(--surface-alt); border:1px solid var(--border); }
.tg-seg button{ all:unset; box-sizing:border-box; cursor:pointer; display:inline-flex; align-items:center; gap:6px; min-height:34px; padding:0 13px; border-radius:999px; font:600 13px var(--body); color:var(--text-muted); white-space:nowrap; }
.tg-seg button i{ width:7px; height:7px; border-radius:50%; }
.tg-seg button[aria-pressed="true"]{ background:var(--on-bg); color:var(--on-fg); }
.tg-sel{ min-height:40px; padding:0 32px 0 14px; border-radius:999px; border:1px solid var(--border); background-color:var(--surface); color:var(--text); font:600 13.5px var(--body); max-width:100%; }
.tg-games{ display:grid; padding:4px 0; }
.tg-g{ display:grid; grid-template-columns:62px minmax(0, 1fr) auto; align-items:center; gap:12px; padding:9px 18px; color:var(--text); border-top:1px solid var(--hair); }
.tg-g:first-child{ border-top:0; }
.tg-g:hover{ background:var(--surface-alt); text-decoration:none; }
.tg-g .d{ display:grid; font:600 13px var(--body); }
.tg-g .d small{ font-size:11px; color:var(--text-faint); font-weight:500; }
.tg-g .o{ display:flex; align-items:center; gap:8px; min-width:0; }
.tg-g .o small{ width:18px; font-size:11.5px; color:var(--text-muted); }
.tg-g .o b{ font:600 14px var(--body); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.tg-g .sc{ display:inline-flex; align-items:center; gap:8px; font-variant-numeric:tabular-nums; }
.tg-g .sc b{ font:800 20px/1 var(--display); }
.tg-g .sc i{ width:20px; height:20px; display:grid; place-items:center; border-radius:5px; font:800 10.5px var(--body); font-style:normal; }
.tg-g .sc.w i{ background:var(--positive-soft); color:var(--positive-ink); }
.tg-g .sc.l i{ background:var(--negative-soft); color:var(--negative); }
.tg-g .sc.l b{ color:var(--text-muted); }
.tg-g .sc.up, .tg-g .sc.np{ font-size:13px; color:var(--text-muted); }
.tg-comp > header .tt{ display:grid; min-width:0; }
.tg-comp > header .tt span{ font-size:12.5px; color:var(--text-muted); }
.tg-comp > header h2 a{ color:var(--text); }
.tg-comp .rec{ margin-left:auto; display:flex; align-items:center; gap:10px; }
.tg-comp .rec b{ font:800 22px/1 var(--display); }
.tg-champ{ padding:3px 9px; border-radius:999px; background:var(--hl); color:var(--hl-ink); font:800 11px var(--body); letter-spacing:.06em; text-transform:uppercase; }
.tg-moreb{ display:flex; align-items:center; justify-content:center; gap:14px; color:var(--text-muted); font-size:13px; }
.tg-plbar{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px; }
.tg-count{ font-size:14px; color:var(--text-muted); }
.tg-count b{ font:800 26px/1 var(--display); color:var(--text); margin-right:4px; }
.tg-pl{ display:grid; gap:6px; padding:0; }
.tg-pl li a{ display:grid; grid-template-columns:30px 44px minmax(0, 1fr) repeat(5, 58px); align-items:center; gap:12px; padding:10px 16px; border-radius:14px; border:1px solid var(--border); background:var(--surface); color:var(--text); }
.tg-pl li a:hover{ border-color:var(--text-faint); text-decoration:none; }
.tg-pl .avatar{ width:44px; height:44px; }
.tg-pl .r{ font:800 17px var(--display); color:var(--text-muted); text-align:center; }
.tg-pl .s{ display:grid; justify-items:end; }
.tg-pl .s b{ font:800 21px/1 var(--display); font-variant-numeric:tabular-nums; }
.tg-pl .s small{ font:700 10px var(--body); letter-spacing:.08em; color:var(--text-muted); }
@media (max-width:1100px){ .tg-grid{ grid-template-columns:minmax(0, 1fr); } }
@media (max-width:700px){
  .tg-head-in{ padding:18px 16px 22px; }
  .tg-id{ gap:16px; align-items:flex-start; }
  .tg-crest{ width:72px; height:72px; } .tg-crest .crest-logo, .tg-crest img{ width:68px !important; height:68px !important; }
  .tg-txt h1{ font-size:40px; } .tg-sub{ font-size:13.5px; gap:4px 12px; }
  .tg-tabs{ top:58px; } .tg-tabs-in{ padding:0 10px; }
  .tg-wrap{ padding:16px 16px 0; }
  .tg-nums{ gap:12px 22px; padding:14px 16px; } .tg-nums b{ font-size:32px; }
  .tg-card > header{ padding:12px 14px; flex-wrap:wrap; }
  .tg-squad{ grid-template-columns:repeat(2, minmax(0, 1fr)); gap:8px; }
  .tg-pc .avatar{ width:54px; height:54px; }
  .tg-sh h2{ font-size:21px; }
  .tg-g{ grid-template-columns:52px minmax(0, 1fr) auto; gap:8px; padding:9px 14px; }
  .tg-pl li a{ grid-template-columns:24px 40px minmax(0, 1fr) repeat(2, 44px); gap:8px; padding:10px 12px; }
  .tg-pl .s.x, .tg-pl .s.g{ display:none; }
  .tg-pl .avatar{ width:40px; height:40px; }
  .tg-top li a{ padding:9px 14px; } .tg-pad{ padding:10px 14px 2px; }
  .tg-seg{ max-width:100%; }
}
@media (prefers-reduced-motion: reduce){ .tg-panel.on{ animation:none; } .tg-pc{ transition:none; } }
/* ---------- Tools › Lineups (update-113): the prototype's tool-page look ---------- */
:root{ --lx-pos:var(--accent); --lx-neg:var(--accent-2); --lx-mid:#c3c8ce; }
:root[data-theme="dark"]{ --lx-mid:#4a5058; }
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]){ --lx-mid:#4a5058; } }
.page.lx-page{ max-width:none; padding:0 0 64px; }
.lx-in{ max-width:1320px; margin:0 auto; padding:0 28px; }
.lx-head{ position:relative; overflow:hidden; isolation:isolate; color:#f4f5f2; background:#121417; padding:28px 0 32px; }
.lx-head::before{ content:""; position:absolute; inset:0; z-index:-1; background:radial-gradient(60% 140% at 100% 0, color-mix(in oklab, var(--hl) 16%, transparent), transparent 62%), repeating-linear-gradient(90deg, transparent 0 79px, rgba(255,255,255,.035) 79px 80px); }
.lx-crumbs{ display:flex; gap:8px; font:600 13px var(--body); color:#a4aab2; margin-bottom:14px; }
.lx-crumbs i{ font-style:normal; opacity:.6; }
.lx-top{ display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:20px; align-items:center; }
.lx-ic{ width:64px; height:64px; border-radius:18px; display:grid; place-items:center; background:var(--hl); color:var(--hl-ink); box-shadow:inset 0 -3px 0 var(--hl-line); }
.lx-ic svg{ width:30px; height:30px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.lx-tt h1{ font:800 clamp(40px,6vw,72px)/.92 var(--display); text-transform:uppercase; letter-spacing:.005em; margin:0; color:#f4f5f2; }
.lx-tt p{ margin-top:10px; color:#a4aab2; font-size:15px; line-height:1.5; max-width:70ch; }
.lx-comp{ display:grid; gap:10px; min-width:260px; }
.lx-comp label{ display:grid; gap:5px; }
.lx-comp label span, .lx-sels label span{ font:700 11px var(--body); letter-spacing:.09em; text-transform:uppercase; }
.lx-comp label span{ color:#a4aab2; }
.lx-sel{ height:40px; padding:0 34px 0 14px; border-radius:999px; border:1.5px solid var(--border); background:var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23858b93' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 13px center; appearance:none; -webkit-appearance:none; font:600 13px var(--body); color:var(--text); cursor:pointer; max-width:100%; }
.lx-sel:hover{ border-color:var(--text); }
.lx-sel:disabled{ opacity:.5; cursor:default; }
.lx-comp .lx-sel{ background-color:transparent; color:#f4f5f2; border-color:rgba(255,255,255,.16); width:100%; }
.lx-comp .lx-sel:hover{ border-color:#f4f5f2; }
.lx-comp .lx-sel option{ color:#111316; }
.lx-tiles{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1px; margin-top:24px; border-radius:14px; overflow:hidden; background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.1); }
.lx-tile{ background:#1c1f23; padding:16px 18px; display:grid; gap:4px; align-content:start; min-width:0; min-height:96px; }
.lx-tile .k{ font:600 12px var(--body); color:#a4aab2; }
.lx-tile .v{ font:800 44px/.95 var(--display); color:#f4f5f2; font-variant-numeric:tabular-nums; }
.lx-tile .x{ font:500 12px/1.4 var(--body); color:#a4aab2; overflow-wrap:anywhere; }
.lx-tile.hl{ background:var(--hl); }
.lx-tile.hl .k, .lx-tile.hl .x, .lx-tile.hl .v{ color:var(--hl-ink); }
.lx-tile.hl .k, .lx-tile.hl .x{ opacity:.78; }
.lx-sk{ display:block; height:58px; border-radius:8px; background:rgba(255,255,255,.08); }
.lx-strip{ position:sticky; top:64px; z-index:14; background:color-mix(in oklab, var(--bg) 92%, transparent); -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px); border-bottom:1px solid var(--border); }
.lx-strip .lx-in{ display:flex; gap:6px; overflow-x:auto; scrollbar-width:none; }
.lx-strip .lx-in::-webkit-scrollbar{ display:none; }
.lx-strip a{ position:relative; padding:15px 12px; font:600 14.5px var(--body); color:var(--text-muted); white-space:nowrap; }
.lx-strip a:hover{ color:var(--text); text-decoration:none; }
.lx-strip a[aria-current="page"]{ color:var(--text); }
.lx-strip a[aria-current="page"]::after{ content:""; position:absolute; left:8px; right:8px; bottom:-1px; height:3px; border-radius:3px 3px 0 0; background:var(--hl); }
.lx-body{ padding-top:24px; }
.lx-ctl{ display:grid; gap:12px; margin-bottom:24px; }
.lx-row{ display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.lx-sels{ align-items:end; }
.lx-sels label{ display:grid; gap:5px; }
.lx-sels label span{ color:var(--text-muted); }
.lx-sels .lx-sel{ min-width:170px; }
.lx-seg{ display:inline-flex; padding:3px; border-radius:999px; background:var(--surface-alt); border:1px solid var(--border); gap:2px; max-width:100%; overflow-x:auto; scrollbar-width:none; }
.lx-seg::-webkit-scrollbar{ display:none; }
.lx-seg button{ height:34px; padding:0 14px; border-radius:999px; font:600 13px var(--body); color:var(--text-muted); white-space:nowrap; flex:none; background:none; border:0; cursor:pointer; }
.lx-seg button:hover{ color:var(--text); }
.lx-seg button[aria-pressed="true"]{ background:var(--surface); color:var(--text); box-shadow:var(--shadow); }
.lx-chips{ display:flex; gap:8px; flex-wrap:wrap; }
.lx-chip{ display:inline-flex; align-items:center; gap:7px; height:38px; padding:0 14px; border-radius:999px; border:1.5px solid var(--border); background:var(--surface); font:600 13px var(--body); color:var(--text); white-space:nowrap; cursor:pointer; }
.lx-chip:hover{ border-color:var(--text); }
.lx-chip[aria-pressed="true"]{ background:var(--on-bg); color:var(--on-fg); border-color:var(--on-bg); }
.lx-chip img, .lx-chip .swatch, .lx-chip .crest-flag{ flex:none; }
.lx-card{ background:var(--surface); border:1px solid var(--border); border-radius:14px; }
.lx-ch{ display:flex; justify-content:space-between; gap:12px; padding:16px 20px; border-bottom:1px solid var(--hair); }
.lx-ch h2, .lx-th h2{ font:800 28px/1.05 var(--display); text-transform:uppercase; letter-spacing:.01em; margin:0; }
.lx-ch p, .lx-th p{ color:var(--text-muted); font-size:13px; margin-top:4px; line-height:1.5; }
.lx-cb{ display:grid; grid-template-columns:minmax(0,1fr) 300px; }
.lx-plot{ position:relative; min-width:0; padding:12px 8px 8px 12px; }
.lx-plot svg{ display:block; overflow:visible; max-width:100%; height:auto; }
.lx-plot .g{ stroke:var(--hair); stroke-width:1; }
.lx-plot .t{ fill:var(--text-muted); font:500 11px var(--body); font-variant-numeric:tabular-nums; }
.lx-plot .ax{ fill:var(--text-muted); font:600 12px var(--body); }
.lx-plot .qt{ fill:var(--text-faint); font:700 10.5px var(--body); letter-spacing:.09em; text-transform:uppercase; }
.lx-plot .win{ fill:color-mix(in oklab, var(--lx-pos) 5%, transparent); }
.lx-plot .iso{ stroke:var(--text-faint); stroke-width:1; stroke-dasharray:2 4; opacity:.55; }
.lx-plot .iso0{ stroke:var(--text-faint); stroke-width:1.25; }
.lx-plot .isol{ fill:var(--text-faint); font:600 10.5px var(--body); }
.lx-plot .isol.z{ fill:var(--text-muted); font-weight:700; }
.lx-plot .avg{ stroke:var(--text-faint); stroke-width:1; stroke-dasharray:5 4; opacity:.7; }
.lx-dot{ cursor:pointer; outline:none; }
.lx-dot circle:first-child{ stroke:var(--surface); stroke-width:2; transition:opacity .15s, stroke .15s; }
.lx-dot .badge{ fill:var(--text); stroke:var(--surface); stroke-width:2; }
.lx-dot .badge.one{ fill:var(--hl); stroke:var(--text); stroke-width:1.5; }
.lx-dot .bn{ fill:var(--surface); font:800 12px var(--display); pointer-events:none; }
.lx-dot .bn.one{ fill:var(--hl-ink); }
.lx-dot.clip circle:first-child{ stroke-dasharray:3 2; stroke:var(--text-muted); }
.lx-dot:hover circle:first-child, .lx-dot:focus-visible circle:first-child, .lx-dot.hot circle:first-child{ stroke:var(--text); stroke-width:2.5; }
.lx-plot.focus .lx-dot:not(.hot){ opacity:.25; }
@media (prefers-reduced-motion: no-preference){ .lx-dot{ animation:lxIn .45s var(--ease-out) both; } }
@keyframes lxIn{ from{ opacity:0; } }
.lx-wait{ display:grid; place-items:center; min-height:320px; color:var(--text-muted); font-size:14px; text-align:center; padding:20px; }
.lx-key{ border-left:1px solid var(--hair); padding:18px 20px; display:grid; gap:10px; align-content:start; }
.lx-key h3{ font:700 11px var(--body); letter-spacing:.09em; text-transform:uppercase; color:var(--text-muted); margin:6px 0 0; }
.lx-top5{ list-style:none; margin:0; padding:0; display:grid; }
.lx-top5 li{ display:grid; grid-template-columns:24px minmax(0,1fr) auto; gap:10px; align-items:center; padding:8px 6px; border-radius:10px; cursor:default; }
.lx-top5 li.hot{ background:var(--surface-alt); }
.lx-top5 .nm{ display:grid; grid-template-columns:auto minmax(0,1fr); column-gap:6px; align-items:center; min-width:0; }
.lx-top5 .nm b{ font:600 13px var(--body); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.lx-top5 .nm small{ grid-column:1 / -1; font-size:11.5px; color:var(--text-muted); }
.lx-top5 .v{ font:800 22px var(--display); font-variant-numeric:tabular-nums; }
.lx-top5 .v.p, .lx-tip b.p{ color:var(--positive); } .lx-top5 .v.n, .lx-tip b.n{ color:var(--negative); }
.lx-n{ display:inline-grid; place-items:center; width:22px; height:22px; border-radius:50%; background:var(--text); color:var(--surface); font:800 12px/1 var(--display); font-style:normal; flex:none; }
.lx-n.one{ background:var(--hl); color:var(--hl-ink); box-shadow:inset 0 0 0 1.5px var(--text); }
.lx-n.blank{ background:none; }
.lx-ramp span{ display:block; height:10px; border-radius:5px; background:linear-gradient(90deg, var(--lx-neg), var(--lx-mid) 50%, var(--lx-pos)); }
.lx-ramp div{ display:flex; justify-content:space-between; margin-top:4px; }
.lx-ramp small, .lx-sizes{ font-size:11.5px; color:var(--text-muted); font-variant-numeric:tabular-nums; }
.lx-sizes{ display:flex; gap:18px; align-items:center; }
.lx-sizes span{ display:inline-flex; align-items:center; gap:8px; }
.lx-sizes i{ display:inline-block; border-radius:50%; background:var(--lx-mid); }
.lx-note{ font-size:12px; color:var(--text-muted); line-height:1.5; margin-top:6px; }
.lx-tip{ position:fixed; z-index:300; max-width:300px; padding:10px 13px; border-radius:10px; background:#111316; color:#f4f5f2; box-shadow:var(--shadow-3); font:500 12px/1.45 var(--body); display:grid; gap:3px; pointer-events:none; }
.lx-tip[hidden]{ display:none; }
.lx-tip > b{ font-size:13px; }
.lx-tip span{ color:#c3c8ce; }
.lx-tip .g{ display:flex; gap:6px; align-items:baseline; color:#f4f5f2; font-weight:700; font-variant-numeric:tabular-nums; }
.lx-tip .g em{ font-style:normal; font-weight:500; color:#a4aab2; margin-left:4px; }
.lx-tip .g em:first-child{ margin-left:0; }
.lx-tip b.p{ color:#5fd497; } .lx-tip b.n{ color:#ff8a80; }
.lx-th{ display:flex; justify-content:space-between; align-items:flex-end; gap:16px; flex-wrap:wrap; margin:32px 0 14px; }
.lx-th > div{ min-width:0; max-width:100%; }
.lx-row > *{ max-width:100%; }
.lx-scroll{ overflow-x:auto; border-radius:14px 14px 0 0; }
.lx-t{ width:100%; border-collapse:collapse; font-size:13.5px; font-variant-numeric:tabular-nums; }
.lx-t th{ position:sticky; top:0; background:var(--surface-alt); text-align:right; padding:0; white-space:nowrap; border-bottom:1px solid var(--border); }
.lx-t th button{ font:700 11px var(--body); letter-spacing:.06em; text-transform:uppercase; color:var(--text-muted); padding:11px 9px; background:none; border:0; cursor:pointer; width:100%; text-align:inherit; }
.lx-t th button:hover, .lx-t th[aria-sort] button{ color:var(--text); }
.lx-t th[aria-sort]{ box-shadow:inset 0 -3px 0 var(--hl); }
.lx-t td{ padding:9px; text-align:right; border-bottom:1px solid var(--hair); white-space:nowrap; }
.lx-t td.on{ font-weight:700; background:color-mix(in oklab, var(--hl-soft) 55%, transparent); }
.lx-t .lx-lu{ min-width:430px; text-align:left; position:sticky; left:0; z-index:1; background:var(--surface); box-shadow:1px 0 0 var(--hair); }
.lx-t th.lx-lu{ z-index:2; background:var(--surface-alt); }
.lx-t tbody tr:hover td, .lx-t tbody tr.hot td{ background:var(--surface-alt); }
.lx-t tbody tr.hot td.lx-lu{ box-shadow:inset 3px 0 0 var(--hl), 1px 0 0 var(--hair); }
.lx-t tr.care td:not(.lx-lu){ color:var(--text-faint); }
.lx-who{ display:flex; align-items:center; gap:9px; min-width:0; }
.lx-avs{ display:flex; flex:none; }
.lx-avs .avatar{ width:28px; height:28px; font-size:10px; box-shadow:0 0 0 2px var(--surface); }
.lx-avs .avatar + .avatar{ margin-left:-9px; }
.lx-nm{ display:block; white-space:normal; max-width:420px; font:600 13px/1.35 var(--body); }
.lx-nm a{ color:var(--text); } .lx-nm a:hover{ text-decoration:underline; text-underline-offset:3px; }
.lx-nm i{ font-style:normal; color:var(--text-faint); margin:0 3px; }
.lx-nm small{ display:block; font:500 11.5px var(--body); color:var(--text-muted); }
.lx-empty{ text-align:center !important; color:var(--text-muted); padding:32px !important; white-space:normal !important; }
.lx-foot{ display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; padding:12px 16px; font-size:12.5px; color:var(--text-muted); }
.lx-btn{ height:38px; padding:0 18px; border-radius:999px; border:1.5px solid var(--border); background:var(--surface); font:700 13px var(--body); color:var(--text); cursor:pointer; }
.lx-btn:hover{ border-color:var(--text); }
.lx-how{ margin-top:24px; }
.lx-how summary{ padding:16px 20px; font:700 14px var(--body); cursor:pointer; }
.lx-howb{ padding:0 20px 20px; display:grid; gap:16px; }
.lx-howb p{ color:var(--text-muted); font-size:13.5px; line-height:1.55; max-width:90ch; }
.lx-check{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.lx-check div{ display:grid; gap:2px; padding:12px; border-radius:10px; background:var(--surface-alt); }
.lx-check b{ font:800 26px var(--display); }
.lx-check span{ font-size:12px; color:var(--text-muted); line-height:1.4; }
.lx-gl{ display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:8px 20px; margin:0; }
.lx-gl dt{ font:700 12px var(--body); } .lx-gl dd{ margin:0; font-size:12.5px; color:var(--text-muted); }
@media (max-width:1080px){
  .lx-tiles{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .lx-cb{ grid-template-columns:minmax(0,1fr); }
  .lx-key{ border-left:0; border-top:1px solid var(--hair); grid-template-columns:minmax(0,1fr); }
  .lx-check{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:860px){
  .lx-in{ padding:0 16px; }
  .lx-strip{ top:58px; }
  .lx-top{ grid-template-columns:auto minmax(0,1fr); }
  .lx-comp{ grid-column:1 / -1; min-width:0; grid-template-columns:minmax(0,1fr) minmax(0,2fr); }
  .lx-ic{ width:48px; height:48px; border-radius:14px; } .lx-ic svg{ width:24px; height:24px; }
  .lx-tile .v{ font-size:34px; }
  .lx-sels label{ flex:1 1 140px; } .lx-sels .lx-sel{ min-width:0; width:100%; }
  .lx-chips{ flex-wrap:nowrap; overflow-x:auto; scrollbar-width:none; padding-bottom:2px; }
  .lx-chips::-webkit-scrollbar{ display:none; }
  .lx-plot{ padding:8px 4px 4px; }
  .lx-nm{ max-width:220px; }
  .lx-t .lx-lu{ min-width:230px; }
  .lx-avs{ display:none; }
}
@media (max-width:560px){
  .lx-comp{ grid-template-columns:minmax(0,1fr); }
  .lx-tile{ padding:14px; min-height:0; } .lx-tile .v{ font-size:30px; }
  .lx-ch h2, .lx-th h2{ font-size:24px; }
  .lx-check{ grid-template-columns:minmax(0,1fr); }
}
/* ---------- Tools › WOWY (update-114): the tool-page look, the swing board and the pairs ---------- */
.page.wx-page{ max-width:none; padding:0 0 64px; }
.wy.wx{ gap:0; margin-top:0; display:block; }
.wx-body{ display:flex; flex-direction:column; gap:16px; padding-top:24px; }
.wx-comp{ min-width:300px; }
.wx-comp > label{ display:grid; gap:5px; }
.wx-yrs{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.wx-yrs label{ display:grid; gap:5px; }
.lx-head .wy-seg{ background:rgba(255,255,255,.06); border-color:rgba(255,255,255,.16); border-radius:999px; width:max-content; justify-self:start; }
.lx-head .wy-seg button{ color:#c3c8ce; border-radius:999px; padding:8px 16px; }
.lx-head .wy-seg button[aria-pressed="true"]{ color:var(--hl-ink); }
.lx-head .wy-ind{ background:var(--hl); border-radius:999px; }
.wx-teams{ margin-bottom:4px; }
.wx-grid{ display:grid; grid-template-columns:minmax(0,1.45fr) minmax(330px,1fr); gap:16px; align-items:start; }
.wx-th{ margin:20px 0 0; }
/* the swing board */
.wx-sh, .wx-row{ display:grid; grid-template-columns:minmax(0,1fr) 56px 56px minmax(120px,1fr) 58px; gap:12px; align-items:center; padding:10px 20px; }
.wx-sh{ font:700 11px var(--body); letter-spacing:.07em; text-transform:uppercase; color:var(--text-muted); background:var(--surface-alt); border-bottom:1px solid var(--hair); padding-top:9px; padding-bottom:9px; }
.wx-sh span:nth-child(2), .wx-sh span:nth-child(3), .wx-v{ text-align:right; }
.wx-sh .c{ text-align:center; }
.wx-row{ all:unset; box-sizing:border-box; display:grid; grid-template-columns:minmax(0,1fr) 56px 56px minmax(120px,1fr) 58px; gap:12px; align-items:center; padding:9px 20px; width:100%; border-bottom:1px solid var(--hair); cursor:pointer; transition:background-color .15s; }
.wx-row:hover{ background:var(--surface-alt); }
.wx-row:focus-visible{ outline:2px solid var(--text); outline-offset:-2px; }
.wx-row.care{ opacity:.55; }
.wx-who{ display:flex; align-items:center; gap:10px; min-width:0; }
.wx-who .wy-disc{ width:34px; height:34px; font-size:11px; box-shadow:none; }
.wx-who b{ display:block; font:600 14px var(--body); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.wx-who > span{ min-width:0; }
.wx-who small{ display:block; font-size:12px; color:var(--text-muted); }
.wx-v{ font:600 14px var(--body); font-variant-numeric:tabular-nums; }
.wx-v b{ font-weight:700; }
.wx-bar{ position:relative; height:14px; border-radius:999px; background:var(--surface-alt); box-shadow:inset 0 1px 2px rgba(0,0,0,.06); overflow:hidden; }
.wx-bar::before{ content:""; position:absolute; left:50%; top:2px; bottom:2px; width:1.5px; margin-left:-.75px; background:var(--text-faint); opacity:.6; z-index:1; }
.wx-bar i{ position:absolute; top:2px; bottom:2px; }
.wx-bar i.pos{ border-radius:0 999px 999px 0; transform-origin:left center;
  background:linear-gradient(90deg, color-mix(in oklab, var(--accent) 12%, transparent) 0%, color-mix(in oklab, var(--accent) 62%, transparent) 55%, var(--accent) 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.45), 4px 0 10px -3px color-mix(in oklab, var(--accent) 70%, transparent); }
.wx-bar i.neg{ border-radius:999px 0 0 999px; transform-origin:right center;
  background:linear-gradient(270deg, color-mix(in oklab, var(--accent-2) 12%, transparent) 0%, color-mix(in oklab, var(--accent-2) 62%, transparent) 55%, var(--accent-2) 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.45), -4px 0 10px -3px color-mix(in oklab, var(--accent-2) 70%, transparent); }
.wx-bar i::after{ content:""; position:absolute; top:50%; width:4px; height:4px; margin-top:-2px; border-radius:50%; background:#fff; opacity:.9; }
.wx-bar i.pos::after{ right:3px; } .wx-bar i.neg::after{ left:3px; }
@media (prefers-reduced-motion: no-preference){ .wx-bar i{ animation:wxGrow .7s var(--ease-out) both; animation-delay:calc(var(--i, 0) * 25ms); } }
@keyframes wxGrow{ from{ transform:scaleX(0); } }
.wx-sv{ font:800 20px var(--display); text-align:right; font-variant-numeric:tabular-nums; }
.wx-sv.pos{ color:var(--accent-ink); } .wx-sv.neg{ color:var(--accent-2-ink); }
.wx-foot{ padding:12px 20px 16px; margin:0; }
/* the pairs: always fits its box */
.wx-pairs{ container-type:inline-size; }
.wx-hmw{ padding:14px 14px 16px; }
.wx-hm{ display:grid; grid-template-columns:minmax(0,1.55fr) repeat(var(--n), minmax(0,1fr)); gap:3px; }
.wx-ch{ display:grid; justify-items:center; align-content:end; gap:3px; min-width:0; padding-bottom:2px; }
.wx-ch .wy-disc, .wx-rh .wy-disc{ width:min(28px, 6.4cqi); height:min(28px, 6.4cqi); font-size:min(10px, 2.4cqi); box-shadow:none; }
.wx-ch small{ font:600 10px var(--body); color:var(--text-muted); max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.wx-rh{ display:flex; align-items:center; gap:6px; min-width:0; }
.wx-rh b{ font:600 12px var(--body); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0; }
.wx-c{ display:grid; place-items:center; aspect-ratio:1 / .8; min-width:0; border-radius:6px; font:700 clamp(8.5px, 2.7cqi, 12.5px) var(--body); font-variant-numeric:tabular-nums; color:var(--text); cursor:default; outline:none;
  background:linear-gradient(160deg, rgba(255,255,255,.22), rgba(255,255,255,0) 60%), color-mix(in oklab, var(--c) var(--k), var(--surface-alt)); }
.wx-c.dk{ color:#fff; }
:root[data-theme="dark"] .wx-c{ background:linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,0) 60%), color-mix(in oklab, var(--c) var(--k), var(--surface-alt)); }
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]) .wx-c{ background:linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,0) 60%), color-mix(in oklab, var(--c) var(--k), var(--surface-alt)); } }
.wx-c.none{ background:var(--surface-alt) !important; }
.wx-c.self{ box-shadow:inset 0 0 0 1.5px var(--text); }
.wx-c.care{ opacity:.5; }
.wx-c.none{ background:var(--surface-alt); color:var(--text-faint); }
.wx-c:focus-visible{ box-shadow:inset 0 0 0 2px var(--text); }
.wx-key{ display:grid; gap:4px; margin-top:12px; }
.wx-ramp{ height:8px; border-radius:999px; background:linear-gradient(90deg, var(--accent-2), var(--surface-alt) 50%, var(--accent)); }
.wx-key > span:last-child{ display:flex; justify-content:space-between; }
.wx-key small{ font-size:11px; color:var(--text-muted); }
@container (max-width:420px){ .wx-ch small{ display:none; } }
@container (max-width:340px){ .wx-rh b{ display:none; } .wx-hm{ grid-template-columns:auto repeat(var(--n), minmax(0,1fr)); } }
/* the table's net bars, in the same finish */
.wy-nb{ height:7px; border-radius:999px; background:var(--surface-alt); }
.wy-nb i.pos{ border-radius:0 999px 999px 0; background:linear-gradient(90deg, color-mix(in oklab, var(--accent) 15%, transparent), var(--accent)); box-shadow:inset 0 1px 0 rgba(255,255,255,.4); }
.wy-nb i.neg{ border-radius:999px 0 0 999px; background:linear-gradient(270deg, color-mix(in oklab, var(--accent-2) 15%, transparent), var(--accent-2)); box-shadow:inset 0 1px 0 rgba(255,255,255,.4); }
@media (max-width:1080px){ .wx-grid{ grid-template-columns:minmax(0,1fr); } }
@media (max-width:860px){
  .wx-comp{ min-width:0; }
  .wx-sh{ display:none; }
  .wx-row{ grid-template-columns:minmax(0,1fr) 50px 50px 52px; row-gap:8px; padding:12px 16px; }
  .wx-row .wx-bar{ grid-column:1 / -1; grid-row:2; }
  .wx-v::before{ content:attr(data-l); display:block; font:700 10px var(--body); letter-spacing:.06em; text-transform:uppercase; color:var(--text-muted); }
  .wx-hmw{ padding:12px 10px 14px; }
}
/* ---------- Today (update-115): a quiet welcome, the next game, coming up and results ---------- */
.td{ max-width:1180px; margin:0 auto; padding:24px 28px 72px; display:flex; flex-direction:column; gap:22px; }
/* the welcome */
.td-hero{ position:relative; overflow:hidden; isolation:isolate; border-radius:28px; border:1px solid var(--border); background:var(--surface); padding:46px 48px 40px; min-height:300px; display:flex; align-items:center;
  background-image:radial-gradient(90% 120% at 0% 0%, color-mix(in oklab, var(--hl) 22%, transparent), transparent 55%), radial-gradient(60% 90% at 100% 100%, color-mix(in oklab, var(--accent) 9%, transparent), transparent 60%); }
.td-court{ position:absolute; top:0; right:0; bottom:0; left:auto; width:58%; height:100%; z-index:-1; }
@keyframes tdBlink{ 50%{ opacity:.25; } }
.td-court .lines{ fill:none; stroke:color-mix(in oklab, var(--text) 14%, transparent); stroke-width:2; }
.td-court .arc{ fill:none; stroke:color-mix(in oklab, var(--accent-2) 55%, transparent); stroke-width:2; stroke-dasharray:2 9; stroke-linecap:round; opacity:.9; }
.td-court .ball{ fill:var(--accent-2); stroke:color-mix(in oklab, var(--accent-2) 60%, #000); stroke-width:1.5; offset-path:path("M150 250 Q 360 -60 568 142"); offset-distance:100%; offset-rotate:0deg; }
.td-hero-in{ position:relative; display:grid; gap:10px; max-width:640px; }
.td-date{ font:700 12px var(--body); letter-spacing:.12em; text-transform:uppercase; color:var(--text-muted); }
.td-greet{ margin:0; font:800 clamp(52px, 8vw, 104px)/.86 var(--display); text-transform:uppercase; letter-spacing:.005em; color:var(--text); }
.td-sub{ margin:2px 0 0; font:500 clamp(18px, 2vw, 22px)/1.35 var(--body); color:var(--text-muted); max-width:30ch; }
.td-hero .w{ display:inline-block; }
.td-acts{ display:flex; flex-wrap:wrap; gap:10px; margin-top:14px; }
.td-pulse{ display:contents; }
.td-pill, .td-tour{ all:unset; box-sizing:border-box; cursor:pointer; display:inline-flex; align-items:center; gap:9px; height:44px; padding:0 18px; border-radius:999px; font:600 14px var(--body); transition:transform .2s var(--ease), box-shadow .25s, background-color .2s; }
.td-pill{ background:var(--on-bg); color:var(--on-fg); }
.td-pill i{ width:8px; height:8px; border-radius:50%; background:var(--hl); box-shadow:0 0 0 0 var(--hl); animation:tdPulse 2.2s infinite; }
.td-pill.live{ background:var(--live); color:#fff; }
.td-pill.live i{ background:#fff; box-shadow:0 0 0 0 rgba(255,255,255,.7); }
.td-tour{ background:var(--surface); color:var(--text); border:1.5px solid var(--border); }
.td-tour b{ font-weight:700; }
.td-tour-ic{ display:grid; place-items:center; width:24px; height:24px; border-radius:50%; background:var(--hl); color:var(--hl-ink); font:800 14px var(--display); box-shadow:inset 0 -2px 0 var(--hl-line); }
.td-pill:hover, .td-tour:hover{ transform:translateY(-2px); box-shadow:var(--shadow-2); }
.td-pill:active, .td-tour:active{ transform:translateY(0) scale(.98); }
.td-pill:focus-visible, .td-tour:focus-visible{ outline:2px solid var(--text); outline-offset:3px; }
.td-since{ margin-top:10px; font-size:12.5px; color:var(--text-faint); }
@keyframes tdPulse{ 0%{ box-shadow:0 0 0 0 color-mix(in oklab, currentColor 0%, var(--hl)); } 70%{ box-shadow:0 0 0 9px transparent; } 100%{ box-shadow:0 0 0 0 transparent; } }

/* the spotlight */
.td-feat{ position:relative; display:grid; gap:22px; padding:24px 28px 22px; border-radius:24px; border:1px solid var(--border); background:var(--surface); color:var(--text); text-decoration:none; overflow:hidden; isolation:isolate;
  background-image:radial-gradient(55% 120% at 0% 50%, color-mix(in oklab, var(--th, var(--accent)) 16%, transparent), transparent 70%), radial-gradient(55% 120% at 100% 50%, color-mix(in oklab, var(--ta, var(--accent-2)) 16%, transparent), transparent 70%);
  transition:transform .25s var(--ease), box-shadow .3s; }
a.td-feat:hover{ transform:translateY(-3px); box-shadow:var(--shadow-2); text-decoration:none; }
.td-fk{ display:flex; align-items:center; gap:8px; font:600 13px var(--body); color:var(--text-muted); min-width:0; }
.td-fk span{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0; }
.td-fk em{ margin-left:auto; flex:none; font:700 11px var(--body); letter-spacing:.09em; text-transform:uppercase; font-style:normal; padding:5px 10px; border-radius:999px; background:var(--hl); color:var(--hl-ink); }
.td-fk em.on{ background:var(--live); color:#fff; display:inline-flex; align-items:center; gap:6px; }
.td-fk em.on i{ width:6px; height:6px; border-radius:50%; background:#fff; animation:tdBlink 1.2s infinite; }
.td-fk em.fin{ background:var(--surface-alt); color:var(--text-muted); }
.td-match{ display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:center; gap:18px; }
.td-side{ display:grid; justify-items:center; gap:12px; text-align:center; min-width:0; }
.td-side b{ font:800 clamp(22px, 2.6vw, 32px)/1 var(--display); text-transform:uppercase; letter-spacing:.01em; overflow-wrap:anywhere; }
.td-side img, .td-side .crest-flag, .td-side .swatch{ filter:drop-shadow(0 8px 16px rgba(0,0,0,.12)); }
.td-vs span{ display:grid; place-items:center; width:52px; height:52px; border-radius:50%; border:1.5px solid var(--border); background:var(--bg); font:800 18px var(--display); text-transform:uppercase; color:var(--text-muted); }
.td-ff{ display:flex; justify-content:space-between; align-items:flex-end; gap:16px; flex-wrap:wrap; padding-top:18px; border-top:1px solid var(--hair); }
.td-when{ display:grid; gap:3px; }
.td-when b{ font:700 16px var(--body); }
.td-when small{ font-size:13px; color:var(--text-muted); }
.td-cd{ display:flex; gap:8px; }
.td-cu{ display:grid; justify-items:center; min-width:58px; padding:8px 6px 6px; border-radius:14px; background:var(--bg); border:1px solid var(--border); overflow:hidden; }
.td-cu b{ display:block; font:800 32px/1 var(--display); font-variant-numeric:tabular-nums; }
.td-cu small{ font:700 10px var(--body); letter-spacing:.1em; text-transform:uppercase; color:var(--text-muted); margin-top:3px; }
.td-cu[data-u="sec"] b{ color:var(--accent-2-ink); }
.td-cu.tick b{ animation:tdRoll .45s var(--ease-out); }
@keyframes tdRoll{ from{ transform:translateY(-60%); opacity:0; } }
.td-soon{ display:inline-flex; align-items:center; gap:8px; font:700 14px var(--body); color:var(--live); }
.td-soon i{ width:8px; height:8px; border-radius:50%; background:var(--live); animation:tdBlink 1.2s infinite; }
.td-none{ text-align:center; justify-items:center; color:var(--text-muted); }
.td-none b{ color:var(--text); font-size:16px; }
/* games on now */
.td-lives{ display:grid; gap:14px; }
.td-lives.many{ grid-template-columns:repeat(auto-fit, minmax(320px, 1fr)); }
.td-live{ position:relative; display:grid; gap:14px; padding:20px 22px 22px; border-radius:22px; border:1px solid color-mix(in oklab, var(--live) 35%, var(--border)); background:var(--surface); color:var(--text); overflow:hidden; transition:transform .25s var(--ease), box-shadow .3s; }
.td-live:hover{ transform:translateY(-3px); box-shadow:var(--shadow-2); text-decoration:none; }
.td-live.fin{ border-color:var(--border); }
.td-live.in{ animation:tdUp .55s var(--ease-out) both; animation-delay:calc(var(--i, 0) * 80ms); }
.td-lm{ display:grid; gap:8px; }
.td-ls{ display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:12px; color:var(--text-muted); }
.td-ls b{ font:700 18px var(--body); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.td-ls strong{ font:800 40px/1 var(--display); font-variant-numeric:tabular-nums; }
.td-ls.lead{ color:var(--text); }
.td-lf{ display:flex; justify-content:space-between; gap:10px; font:600 13px var(--body); color:var(--text-muted); }
.td-lf .go{ color:var(--text); display:inline-flex; gap:6px; }
.td-lf .go i{ font-style:normal; transition:transform .2s var(--ease); }
.td-live:hover .go i{ transform:translateX(4px); }
.td-lbar{ position:absolute; left:0; right:0; bottom:0; height:4px; background:color-mix(in oklab, var(--live) 15%, transparent); }
.td-lbar i{ display:block; height:100%; width:calc(var(--p) * 100%); background:linear-gradient(90deg, color-mix(in oklab, var(--live) 40%, transparent), var(--live)); border-radius:0 4px 4px 0; transition:width 1s var(--ease); }

/* the two lists */
.td-games{ display:grid; gap:14px; }
.td-switch{ display:none; position:relative; grid-template-columns:1fr 1fr; padding:4px; border-radius:999px; background:var(--surface-alt); border:1px solid var(--border); }
.td-switch button{ all:unset; position:relative; z-index:1; text-align:center; padding:11px 0; font:700 14px var(--body); color:var(--text-muted); cursor:pointer; transition:color .25s; }
.td-switch button[aria-pressed="true"]{ color:var(--text); }
.td-sw-ind{ position:absolute; top:4px; bottom:4px; left:4px; width:calc(50% - 4px); border-radius:999px; background:var(--surface); box-shadow:var(--shadow); transition:transform .35s var(--ease-out); }
.td-switch:has([data-hmshow="res"][aria-pressed="true"]) .td-sw-ind{ transform:translateX(100%); }
.td-cols{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:22px; align-items:start; }
.td-col{ background:var(--surface); border:1px solid var(--border); border-radius:24px; padding:8px 8px 10px; }
.td-ch{ display:flex; justify-content:space-between; align-items:baseline; gap:10px; padding:16px 16px 8px; }
.td-ch h2{ margin:0; font:800 30px/1 var(--display); text-transform:uppercase; letter-spacing:.01em; }
.td-ch span{ font:600 12.5px var(--body); color:var(--text-muted); }
.td-ch .lvn{ font-style:normal; color:var(--live); }
.td-list{ display:grid; }
.td-day{ display:flex; align-items:center; gap:8px; padding:14px 16px 6px; font:700 11.5px var(--body); letter-spacing:.09em; text-transform:uppercase; color:var(--text-muted); }
.td-day span{ letter-spacing:.02em; text-transform:none; font-weight:700; color:var(--hl-ink); background:var(--hl); padding:2px 8px; border-radius:999px; font-size:11px; }
.td-row{ display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:14px; padding:10px 12px; margin:0 4px; border-radius:16px; color:var(--text); text-decoration:none; transition:background-color .2s, transform .2s var(--ease); }
.td-res .td-row{ grid-template-columns:minmax(0,1fr) auto; }
.td-row:hover{ background:var(--surface-alt); text-decoration:none; }
.td-row:focus-visible{ outline:2px solid var(--text); outline-offset:-2px; }
.td-t{ display:grid; justify-items:center; min-width:52px; padding:6px 4px; border-radius:12px; background:var(--bg); border:1px solid var(--hair); }
.td-t b{ font:800 20px/1 var(--display); font-variant-numeric:tabular-nums; }
.td-t small{ font:700 9.5px var(--body); letter-spacing:.1em; color:var(--text-muted); }
.td-tms{ display:grid; gap:6px; min-width:0; }
.td-tm{ display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:10px; color:var(--text-muted); font:500 14.5px var(--body); min-width:0; }
.td-tm .nm{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.td-tm b{ font:800 22px/1 var(--display); font-variant-numeric:tabular-nums; min-width:34px; text-align:right; }
.td-up .td-tm{ color:var(--text); font-weight:600; }
.td-tm.w{ color:var(--text); font-weight:700; }
.td-tm.w b{ position:relative; }
.td-tm.w b::before{ content:""; position:absolute; left:-12px; top:50%; margin-top:-4px; border:4px solid transparent; border-right-color:var(--hl-line); border-left:0; }
.td-tm.tbd{ color:var(--text-faint); font-style:italic; }
.td-tbd{ display:inline-block; border-radius:50%; border:1.5px dashed var(--border); flex:none; }
.td-m{ display:flex; align-items:center; gap:8px; color:var(--text-muted); }
.td-m small{ font:600 11.5px var(--body); }
.td-arr{ font-style:normal; color:var(--text-faint); opacity:0; transform:translateX(-4px); transition:opacity .2s, transform .2s var(--ease); }
.td-row:hover .td-arr{ opacity:1; transform:none; color:var(--text); }
.td-more{ all:unset; box-sizing:border-box; display:flex; justify-content:center; align-items:center; gap:8px; width:calc(100% - 16px); margin:10px 8px 4px; height:44px; border-radius:14px; border:1.5px dashed var(--border); font:700 13.5px var(--body); color:var(--text); cursor:pointer; transition:border-color .2s, background-color .2s; }
.td-more:hover{ border-style:solid; border-color:var(--text); background:var(--surface-alt); }
.td-more i{ font-style:normal; transition:transform .2s var(--ease); }
.td-more:hover i{ transform:translateY(2px); }
.td-empty{ padding:30px 16px 34px; text-align:center; color:var(--text-muted); font-size:14px; }

/* motion: the welcome writes itself, then the game, then the lists */
@media (prefers-reduced-motion: no-preference){
  .td-court .lines path, .td-court .lines circle{ stroke-dasharray:1200; stroke-dashoffset:1200; animation:tdDraw 2.2s var(--ease-out) .1s forwards; }
  .td-court .arc{ stroke-dashoffset:0; animation:tdFade 1s ease 1.1s both; }
  .td-court .ball{ animation:tdShot 1.5s cubic-bezier(.35,.1,.45,1) .9s both; }
  .td-hero .w{ animation:tdWord .7s var(--ease-out) both; animation-delay:var(--d); }
  .td-date, .td-acts, .td-since{ animation:tdUp .7s var(--ease-out) both; }
  .td-date{ animation-delay:0s; } .td-acts{ animation-delay:.55s; } .td-since{ animation-delay:.7s; }
  .td-feat-wrap{ animation:tdUp .8s var(--ease-out) .35s both; }
  .td-games .td-col{ animation:tdUp .8s var(--ease-out) both; }
  .td-games .td-up{ animation-delay:.5s; } .td-games .td-res{ animation-delay:.6s; }
  .td-games .td-row{ animation:tdUp .5s var(--ease-out) both; animation-delay:calc(.6s + var(--i, 0) * 45ms); }
  .td-games.again .td-col, .td-games.again .td-row{ animation-delay:0s; animation-duration:.35s; }
  .td-pill i{ animation:tdPulse 2.2s infinite; }
}
@media (prefers-reduced-motion: reduce){ .td-court .ball{ offset-distance:100%; } .td-pill i, .td-fk em.on i{ animation:none; } }
@supports not (offset-path: path("M0 0")){ .td-court .ball{ display:none; } }
@keyframes tdDraw{ to{ stroke-dashoffset:0; } }
@keyframes tdFade{ from{ opacity:0; } }
@keyframes tdShot{ 0%{ offset-distance:0%; opacity:0; } 8%{ opacity:1; } 100%{ offset-distance:100%; } }
@keyframes tdWord{ from{ opacity:0; transform:translateY(.45em); filter:blur(6px); } }
@keyframes tdUp{ from{ opacity:0; transform:translateY(14px); } }

@media (max-width:860px){
  .td{ padding:14px 14px 56px; gap:16px; }
  .td-hero{ padding:30px 22px 28px; border-radius:22px; min-height:0; }
  .td-court{ opacity:.3; width:100%; }
  .td-feat{ padding:18px 16px; border-radius:20px; gap:18px; }
  .td-side img, .td-side .crest-flag, .td-side .swatch, .td-side .td-tbd{ width:52px !important; height:52px !important; }
  .td-vs span{ width:40px; height:40px; font-size:15px; }
  .td-ff{ flex-direction:column; align-items:stretch; }
  .td-cd{ display:grid; grid-template-columns:repeat(4,1fr); }
  .td-cu{ min-width:0; }
  .td-switch{ display:grid; }
  .td-cols{ grid-template-columns:minmax(0,1fr); }
  .td-cols[data-show="up"] .td-res, .td-cols[data-show="res"] .td-up{ display:none; }
  .td-col{ border-radius:20px; padding:4px 4px 8px; }
  .td-ch{ padding:14px 12px 6px; }
  .td-row{ padding:10px 8px; margin:0 2px; gap:10px; }
  .td-arr{ display:none; }
}
/* the foot of Today: three things worth knowing (update-116) */
.td-help{ position:relative; overflow:hidden; display:grid; gap:22px; padding:28px 28px 26px; border-radius:24px; border:1px solid var(--border); background:var(--surface);
  background-image:radial-gradient(60% 140% at 100% 0%, color-mix(in oklab, var(--hl) 16%, transparent), transparent 60%); }
.td-eyebrow{ font:700 11.5px var(--body); letter-spacing:.12em; text-transform:uppercase; color:var(--text-muted); }
.td-help-h h2{ margin:6px 0 0; font:800 clamp(26px, 3vw, 34px)/1 var(--display); text-transform:uppercase; letter-spacing:.01em; }
.td-tips{ counter-reset:tip; list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:22px; }
.td-tips li{ counter-increment:tip; display:grid; gap:5px; align-content:start; font-size:14px; line-height:1.55; color:var(--text-muted); }
.td-tips li::before{ content:counter(tip); width:28px; height:28px; border-radius:50%; display:grid; place-items:center; background:var(--on-bg); color:var(--on-fg); font:800 15px var(--display); margin-bottom:8px; }
.td-tips b{ color:var(--text); font:700 15px var(--body); }
.td-tips kbd{ font:600 11px/1 var(--body); padding:3px 6px; border-radius:6px; background:var(--surface-alt); border:1px solid var(--border); color:var(--text-muted); }
.td-link{ font-weight:700; color:var(--accent-ink); }
.td-link:hover{ text-decoration:underline; text-underline-offset:3px; }
.td-tourbtn{ all:unset; box-sizing:border-box; cursor:pointer; display:flex; justify-content:center; align-items:center; gap:9px; width:100%; height:48px; border-radius:999px; background:var(--on-bg); color:var(--on-fg); font:700 14.5px var(--body); transition:transform .2s var(--ease), box-shadow .25s; }
.td-tourbtn svg{ width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linejoin:round; transition:transform .4s var(--ease-out); }
.td-tourbtn:hover{ transform:translateY(-2px); box-shadow:var(--shadow-2); }
.td-tourbtn:hover svg{ transform:rotate(18deg) scale(1.12); }
.td-tourbtn:active{ transform:translateY(0) scale(.99); }
.td-tourbtn:focus-visible{ outline:2px solid var(--text); outline-offset:3px; }
@media (prefers-reduced-motion: no-preference){ .td-help{ animation:tdUp .8s var(--ease-out) .7s both; } }
@media (max-width:860px){ .td-help{ padding:22px 18px 20px; border-radius:20px; } .td-tips{ grid-template-columns:minmax(0,1fr); gap:18px; } }
/* ---------- Tools › Clutch (update-117): the tool-page look and the advanced filters ---------- */
.lx-tile .v small{ font:700 18px var(--display); opacity:.55; margin-left:3px; }
.clx-filterbar{ display:flex; flex-wrap:wrap; gap:8px 10px; align-items:center; }
.clx-advbtn{ display:inline-flex; align-items:center; gap:8px; height:38px; padding:0 14px 0 12px; border-radius:999px; border:1.5px solid var(--border); background:var(--surface); font:700 13px var(--body); color:var(--text); cursor:pointer; }
.clx-advbtn:hover{ border-color:var(--text); }
.clx-advbtn[aria-expanded="true"]{ background:var(--on-bg); color:var(--on-fg); border-color:var(--on-bg); }
.clx-advbtn svg{ width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:2.2; stroke-linecap:round; }
.clx-advbtn em{ font-style:normal; min-width:20px; height:20px; padding:0 6px; border-radius:999px; display:inline-grid; place-items:center; background:var(--hl); color:var(--hl-ink); font:800 12px/1 var(--display); }
.clx-advbtn em[hidden]{ display:none; }
.clx-advbtn .chev{ font-style:normal; font-size:11px; transition:transform .2s var(--ease-out); }
.clx-advbtn[aria-expanded="true"] .chev{ transform:rotate(180deg); }
.clx-chips{ display:flex; flex-wrap:wrap; gap:6px; align-items:center; min-width:0; }
.clx-chip{ display:inline-flex; align-items:center; gap:4px; height:32px; padding:0 4px 0 12px; border-radius:999px; background:var(--hl-soft); border:1px solid color-mix(in oklab, var(--hl) 50%, var(--border)); font:500 12.5px var(--body); color:var(--text); white-space:nowrap; animation:clxPop .2s var(--ease-out) both; }
.clx-chip b{ font-weight:700; }
.clx-chip button{ width:24px; height:24px; border-radius:50%; border:0; background:none; color:var(--text-muted); font:700 15px/1 var(--body); cursor:pointer; display:grid; place-items:center; }
.clx-chip button:hover{ background:var(--surface); color:var(--text); }
.clx-clearall{ border:0; background:none; font:600 12.5px var(--body); color:var(--text-muted); text-decoration:underline; text-underline-offset:3px; cursor:pointer; padding:4px 6px; }
.clx-clearall:hover{ color:var(--text); }
@keyframes clxPop{ from{ opacity:0; transform:scale(.92); } }
.clx-fold{ display:grid; grid-template-rows:0fr; transition:grid-template-rows .28s var(--ease-out); }
.clx-fold > div{ overflow:hidden; min-height:0; }
.clx-fold.open{ grid-template-rows:1fr; }
.clx-fold:not(.open) .clx-panel{ visibility:hidden; }
.clx-panel{ margin-top:4px; padding:4px 20px 16px; border-radius:14px; border:1px solid var(--border); background:var(--surface); display:grid; }
.clx-grp{ display:grid; grid-template-columns:150px minmax(0,1fr); gap:10px 20px; align-items:start; min-width:0; padding:14px 0; border-bottom:1px solid var(--hair); }
.clx-grp[hidden]{ display:none; }
.clx-grp h3{ margin:0; padding-top:25px; font:700 11px var(--body); letter-spacing:.09em; text-transform:uppercase; color:var(--text-muted); }
.clx-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,180px),1fr)); gap:10px; }
.clx-grid label{ display:grid; gap:5px; min-width:0; }
.clx-grid label > span{ font:600 12px var(--body); color:var(--text-muted); }
.clx-grid .lx-sel{ width:100%; min-width:0; }
.lx-sel.clx-in{ background-image:none; padding-right:14px; color:var(--text); font:500 13.5px var(--body); }
.clx-pact{ display:flex; gap:14px; align-items:center; flex-wrap:wrap; padding-top:16px; }
.clx-hint{ font-size:12.5px; color:var(--text-muted); }
.clx-top{ display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); gap:16px; }
.clx-top > .lx-wait{ grid-column:1 / -1; min-height:200px; }
.clx-top ol{ list-style:none; margin:0; padding:8px 12px 12px; display:grid; }
.clx-top li{ display:grid; align-items:center; gap:12px; padding:10px 8px; border-radius:10px; }
.clx-top li + li{ border-top:1px solid var(--hair); }
.clx-top li.none{ display:block; color:var(--text-muted); font-size:13.5px; padding:20px 8px; }
.clx-top .who{ display:grid; gap:2px; min-width:0; }
.clx-top .who b{ font:600 14px var(--body); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.clx-top .who b a{ color:var(--text); }
.clx-top .who small{ font-size:12px; color:var(--text-muted); font-variant-numeric:tabular-nums; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.clx-top .v{ font:800 28px/1 var(--display); font-variant-numeric:tabular-nums; text-align:right; }
.clx-top .v small{ display:block; font:600 11px var(--body); color:var(--text-muted); margin-top:3px; }
.clx-closers li{ grid-template-columns:24px 40px minmax(0,1fr) auto; }
.clx-closers .r{ font:800 16px var(--display); color:var(--text-faint); text-align:center; }
.clx-closers li:first-child .r{ display:grid; place-items:center; width:24px; height:24px; border-radius:50%; background:var(--hl); color:var(--hl-ink); box-shadow:inset 0 0 0 1.5px var(--text); font-size:13px; }
.clx-closers .avatar{ width:40px; height:40px; font-size:13px; }
.clx-bar{ display:block; height:6px; border-radius:3px; background:var(--surface-alt); margin-top:5px; overflow:hidden; }
.clx-bar i{ display:block; height:100%; border-radius:3px; background:linear-gradient(90deg, color-mix(in oklab, var(--hl) 55%, var(--surface-alt)), var(--hl)); box-shadow:inset 0 -1px 0 var(--hl-line); transform-origin:left; }
.clx-teams li{ grid-template-columns:26px minmax(0,1fr) minmax(70px,130px) 48px; }
.clx-teams .v{ font-size:22px; }
.clx-teams .v.pos{ color:var(--positive); } .clx-teams .v.neg{ color:var(--negative); }
.clx-dv{ position:relative; height:10px; border-radius:5px; background:var(--surface-alt); }
.clx-dv::after{ content:""; position:absolute; left:50%; top:-3px; bottom:-3px; width:1.5px; margin-left:-.75px; background:var(--text-faint); }
.clx-dv i{ position:absolute; top:0; bottom:0; border-radius:5px; }
.clx-dv i.pos{ background:linear-gradient(90deg, color-mix(in oklab, var(--positive) 35%, var(--surface-alt)), var(--positive)); border-radius:0 5px 5px 0; }
.clx-dv i.neg{ background:linear-gradient(270deg, color-mix(in oklab, var(--negative) 35%, var(--surface-alt)), var(--negative)); border-radius:5px 0 0 5px; }
@media (prefers-reduced-motion: no-preference){
  .clx-top li{ animation:clxRow .4s var(--ease-out) both; animation-delay:calc(var(--i, 0) * 45ms); }
  .clx-bar i, .clx-dv i{ animation:clxGrow .6s var(--ease-out) both; }
}
@keyframes clxRow{ from{ opacity:0; transform:translateY(6px); } }
@keyframes clxGrow{ from{ transform:scaleX(0); } }
.clx-dv i.neg{ transform-origin:right; } .clx-dv i.pos{ transform-origin:left; }
.clx-t .lx-lu{ min-width:280px; }
.clx-t .avatar{ width:30px; height:30px; font-size:10.5px; flex:none; }
.clx-rk{ font-style:normal; width:24px; flex:none; text-align:right; font:700 12px var(--body); color:var(--text-faint); font-variant-numeric:tabular-nums; }
@media (max-width:860px){
  .clx-top{ grid-template-columns:minmax(0,1fr); }
  .clx-panel{ padding:4px 16px 16px; }
  .clx-grp{ grid-template-columns:minmax(0,1fr); }
  .clx-grp h3{ padding-top:0; }
  .clx-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .clx-t .lx-lu{ min-width:200px; }
  .clx-t .avatar{ display:none; }
  .clx-filterbar{ align-items:flex-start; }
}
@media (max-width:560px){
  .clx-teams li{ grid-template-columns:26px minmax(0,1fr) 44px; }
  .clx-dv{ display:none; }
  .clx-closers li{ grid-template-columns:22px 36px minmax(0,1fr) auto; gap:10px; }
  .clx-closers .avatar{ width:36px; height:36px; }
}
@media (prefers-reduced-motion: reduce){ .clx-fold, .clx-advbtn .chev{ transition:none; } .clx-chip{ animation:none; } }
/* the clutch table fits its box: no sideways scrolling (update-118) */
.clx-page .lx-in{ max-width:1440px; }
.clx-t{ font-size:13px; }
.clx-t td{ padding:9px 6px; }
.clx-t th button{ padding:11px 6px; letter-spacing:.03em; font-size:10.5px; }
.clx-t .lx-lu{ min-width:0; width:1%; position:static; box-shadow:none; }
.clx-t .lx-nm{ min-width:150px; max-width:210px; }
.clx-sortm{ display:none; }
@media (max-width:1280px){
  .clx-t{ font-size:12px; }
  .clx-t td{ padding:8px 4px; }
  .clx-t th button{ padding:10px 4px; font-size:10px; letter-spacing:.02em; }
  .clx-t .avatar{ display:none; }
  .clx-t .lx-nm{ min-width:130px; max-width:170px; font-size:12.5px; }
  .clx-t .clx-rk{ width:18px; }
}
@media (max-width:1060px){
  .clx-t .lx-nm small{ display:none; }
  .clx-t{ font-size:11.5px; }
  .clx-t .lx-nm{ min-width:96px; max-width:118px; font-size:12px; }
  .clx-t .clx-rk{ display:none; }
  .clx-t td{ padding:8px 2px; }
  .clx-t th button{ padding:10px 3px; font-size:9.5px; letter-spacing:0; }
}
@media (max-width:960px){
  .clx-sortm{ display:flex; gap:8px; align-items:end; width:100%; }
  .clx-sortm label{ display:grid; gap:5px; flex:1 1 auto; min-width:0; }
  .clx-sortm label span{ font:700 11px var(--body); letter-spacing:.09em; text-transform:uppercase; color:var(--text-muted); }
  .clx-sortm .lx-sel{ width:100%; }
  .clx-sortm .lx-btn{ flex:none; height:40px; padding:0 14px; }
  .lx-scroll:has(.clx-t){ overflow:visible; }
  .clx-t, .clx-t tbody{ display:block; }
  .clx-t thead{ display:none; }
  .clx-t tbody tr{ display:grid; grid-template-columns:repeat(auto-fill,minmax(58px,1fr)); gap:0; padding:12px 14px 10px; border-bottom:1px solid var(--hair); }
  .clx-t tbody td{ display:grid; gap:1px; justify-items:start; padding:5px 4px; border:0; text-align:left; font-size:14px; }
  .clx-t tbody td::before{ content:attr(data-l); font:700 9.5px var(--body); letter-spacing:.06em; text-transform:uppercase; color:var(--text-faint); }
  .clx-t tbody td.on{ border-radius:8px; }
  .clx-t tbody td.on::before{ color:var(--text); }
  .clx-t tbody td.lx-lu{ grid-column:1 / -1; padding:0 0 8px; width:auto; }
  .clx-t tbody td.lx-lu::before, .clx-t tbody td.lx-empty::before{ content:none; }
  .clx-t tbody td.lx-empty{ grid-column:1 / -1; display:block; }
  .clx-t tbody tr:has(.lx-empty){ display:block; }
  .clx-t .lx-nm, .clx-t .lx-nm small{ display:block; min-width:0; max-width:none; }
  .clx-t .avatar{ display:inline-grid; }
  .clx-t .clx-rk{ display:block; width:auto; min-width:16px; }
  .clx-t tbody tr:hover td{ background:none; }
  .clx-t tbody tr:hover td.on{ background:color-mix(in oklab, var(--hl-soft) 55%, transparent); }
}
/* Today: the competition's mark on each game row, big enough to read (update-119) */
.td-m .comp-crest{ border-radius:10px; padding:3px; box-shadow:none; }
@media (max-width:560px){ .td-m .comp-crest{ width:32px !important; height:32px !important; border-radius:8px; } }
/* ---------- Tools › Stat Line Shift (update-120): the tool-page look and the with/without board ---------- */
.page.sx-page{ max-width:none; padding:0 0 64px; }
.wy.sx{ gap:0; margin-top:0; display:block; }
.sx-body{ display:flex; flex-direction:column; gap:16px; padding-top:24px; }
.sx-ch{ flex-wrap:wrap; align-items:flex-end; }
.sx-ch > div:first-child{ flex:1 1 360px; min-width:0; }
.sx-ctl{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; justify-content:flex-end; min-width:0; max-width:100%; }
.sx-ctl .sl-units{ padding:3px; border-radius:999px; background:var(--surface-alt); border:1px solid var(--border); }
.sx-ctl .sl-units button{ padding:6px 12px; }
.sx-ctl .sl-units button[aria-pressed="true"]{ background:var(--surface); box-shadow:var(--shadow); }
.sx-stat button{ height:32px; padding:0 12px; font-size:12.5px; }
.sx-sh, .sx-row{ grid-template-columns:minmax(0,1.2fr) 72px 72px minmax(140px,1.5fr) 72px; }
.sx-row{ cursor:pointer; }
.sx-th{ margin:4px 0 0; }
.sx-board{ margin-top:16px; }
/* the league switch on the dark band: a touch-sized pill, not a tall one (WOWY too) */
:root .lx-head .wy-seg button{ display:inline-flex; align-items:center; padding-block:0; min-height:40px; }
.sx .sl-side{ top:128px; }
.sx .wy-ctl{ margin:0; }
@media (max-width:860px){
  .sx-ctl{ justify-content:flex-start; }
  .sx-row{ grid-template-columns:minmax(0,1fr) 58px 58px 58px; }
  .sx .sl-side{ position:static; }
  .sx-stat{ flex-wrap:wrap; border-radius:18px; overflow:visible; }
}
@media (max-width:560px){
  .sx-row{ grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr); }
  .sx-row .wx-who{ grid-column:1 / -1; }
  .sx-row .wx-bar{ grid-column:1 / -1; grid-row:3; }
  .sx-row .wx-v{ text-align:left; }
}
/* ---------- Tools › Milestones (update-124): MBL local milestones in the tool-page look ---------- */
.page.mx-page{ max-width:none; padding:0 0 64px; display:block; }
.mx-head .ms-next .ms-h{ flex-wrap:wrap; }
.mx-head .ms-next .ms-h h2{ white-space:nowrap; }
.mx-badge img{ border-radius:2px; box-shadow:0 0 0 1px rgba(0,0,0,.2); flex:none; }
.mx-badge{ display:inline-flex; align-items:center; gap:8px; margin-bottom:12px; padding:6px 12px 6px 10px; border-radius:999px; background:var(--hl); color:var(--hl-ink); font:800 12px var(--body); letter-spacing:.08em; text-transform:uppercase; }
.mx-head .lx-tt p b{ color:#f4f5f2; font-weight:600; }
.mx-comp{ min-width:0; }
.mx-comp > label{ display:grid; gap:5px; }
.lx-head .ms-seg{ background:rgba(255,255,255,.06); border-color:rgba(255,255,255,.16); width:max-content; }
.lx-head .ms-seg button{ color:#c3c8ce; padding:9px 16px; }
.lx-head .ms-seg button[aria-pressed="true"]{ background:var(--hl); color:var(--hl-ink); }
.mx-head #ms-next{ margin-top:22px; }
.mx-head .ms-next{ background:rgba(255,255,255,.03); border:1px solid rgba(255,255,255,.1); border-radius:16px; padding:18px 0 14px; }
.mx-body{ display:flex; flex-direction:column; gap:22px; padding-top:24px; }
.mx-local{ margin:0; padding:12px 16px; border-radius:12px; background:var(--hl-soft); border:1px solid color-mix(in oklab, var(--hl) 45%, var(--border)); font-size:13.5px; line-height:1.55; color:var(--text); max-width:100%; }
.mx-local b{ font-weight:700; }
.mx-body .ms-stats{ flex-wrap:wrap; overflow:visible; }
.mx-body .ms-card{ border-radius:14px; box-shadow:none; }
.mx-body .ms-h h2{ font:800 24px/1.05 var(--display); text-transform:uppercase; letter-spacing:.01em; color:var(--text); }
.mx-body .ms-stats button[aria-pressed="true"]{ background:var(--on-bg); border-color:var(--on-bg); color:var(--on-fg); }
.mx-body .ms-ft[aria-pressed="true"]{ border-color:var(--text); box-shadow:inset 0 -3px 0 var(--hl); }
@media (max-width:700px){
  .mx-body .ms-tbl th:nth-child(3), .mx-body .ms-tbl td:nth-child(3){ display:none; }
  .mx-body .ms-tbl th, .mx-body .ms-tbl td{ padding-left:4px; padding-right:4px; }
  .mx-body .ms-tbl .ms-who .avatar{ display:none; }
}
/* ---------- Tools › Formulas (update-124) ---------- */
.page.fxx-page{ max-width:none; padding:0 0 64px; }
.fxx-find{ min-width:280px; }
.fxx-find .lx-sel{ background-image:none; padding-right:14px; width:100%; background-color:rgba(255,255,255,.06); color:#f4f5f2; border-color:rgba(255,255,255,.16); font:500 14px var(--body); }
.fxx-find .lx-sel::placeholder{ color:#8b929a; }
.fxx-find .lx-sel:focus-visible{ outline:2px solid var(--hl); outline-offset:1px; border-color:var(--hl); }
.fxx-t .k .fx-mark{ font-size:11px; }
.fxx-body{ display:grid; grid-template-columns:230px minmax(0,1fr); gap:24px; align-items:start; padding-top:24px; }
.fxx-side{ position:sticky; top:128px; display:grid; gap:10px; }
.fxx-side h2{ margin:0; font:700 11px var(--body); letter-spacing:.09em; text-transform:uppercase; color:var(--text-muted); }
.fxx-jumps{ display:grid; gap:2px; }
.fxx-jumps button{ all:unset; box-sizing:border-box; cursor:pointer; display:flex; justify-content:space-between; align-items:center; gap:10px; padding:8px 10px; border-radius:10px; font:600 13.5px var(--body); color:var(--text-muted); transition:background-color .15s, color .15s; }
.fxx-jumps button:hover{ background:var(--surface-alt); color:var(--text); }
.fxx-jumps button:focus-visible{ outline:2px solid var(--text); }
.fxx-jumps em{ font-style:normal; font:700 12px var(--body); color:var(--text-faint); font-variant-numeric:tabular-nums; }
.fxx-main{ display:flex; flex-direction:column; gap:16px; min-width:0; }
.fxx-tier{ padding:14px 18px; border-radius:14px; background:var(--hl-soft); border:1px solid color-mix(in oklab, var(--hl) 45%, var(--border)); font-size:13.5px; line-height:1.65; color:var(--text-muted); }
.fxx-tier b, .fxx-tier em{ color:var(--text); font-style:normal; }
.fxx-ch{ align-items:flex-start; }
.fxx-ch p{ max-width:92ch; }
.fxx-n{ flex:none; display:inline-grid; place-items:center; min-width:30px; height:26px; padding:0 8px; border-radius:999px; background:var(--surface-alt); font:700 12px var(--body); color:var(--text-muted); }
.fx-sec{ scroll-margin-top:130px; }
.fxx-main .fx-empty{ padding:18px 20px; }
.fxx-srcb{ padding:16px 20px 18px; display:grid; gap:10px; }
.fxx-srcb p{ margin:0; font-size:13.5px; line-height:1.65; color:var(--text-muted); max-width:92ch; }
.fxx-srcb strong{ color:var(--text); }
@media (max-width:960px){
  .fxx-body{ grid-template-columns:minmax(0,1fr); }
  .fxx-side{ position:static; }
  .fxx-jumps{ display:flex; flex-wrap:wrap; gap:6px; }
  .fxx-jumps button{ border:1px solid var(--border); background:var(--surface); border-radius:999px; padding:7px 12px; font-size:12.5px; }
  .fxx-find{ grid-column:1 / -1; min-width:0; }
}
/* ---------- Today: HoopsLife MY, the career simulator box (update-127) ---------- */
@property --hlm-n{ syntax:'<integer>'; inherits:false; initial-value:78; }
.hlm{ position:relative; overflow:hidden; isolation:isolate; display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr); gap:28px; align-items:center; padding:34px 36px; border-radius:28px; background:var(--hl); color:#111316; box-shadow:inset 0 -4px 0 var(--hl-line); }
.hlm-court{ position:absolute; inset:0; z-index:-1; pointer-events:none;
  background:radial-gradient(circle at 100% 50%, transparent 0 150px, rgba(17,19,22,.14) 150px 152px, transparent 152px),
    radial-gradient(circle at 100% 50%, transparent 0 46px, rgba(17,19,22,.14) 46px 48px, transparent 48px),
    linear-gradient(90deg, transparent calc(100% - 1px), rgba(17,19,22,.14) 0) right / 290px 100% no-repeat,
    radial-gradient(120% 90% at 0% 0%, rgba(255,255,255,.35), transparent 55%); }
.hlm-copy{ display:grid; gap:12px; justify-items:start; min-width:0; }
.hlm-eye{ display:inline-flex; align-items:center; gap:8px; padding:6px 12px; border-radius:999px; background:#111316; color:var(--hl); font:800 11.5px var(--body); letter-spacing:.12em; text-transform:uppercase; }
.hlm-eye i{ width:7px; height:7px; border-radius:50%; background:var(--hl); box-shadow:0 0 0 0 rgba(255,198,41,.7); }
.hlm h2{ margin:4px 0 0; font:800 clamp(30px, 3.8vw, 46px)/.98 var(--display); text-transform:uppercase; letter-spacing:.005em; color:#111316; text-wrap:balance; }
.hlm h2 em{ font-style:normal; background:linear-gradient(transparent 62%, rgba(255,255,255,.55) 62% 92%, transparent 92%); }
.hlm p{ margin:0; max-width:52ch; font-size:15px; line-height:1.55; color:rgba(17,19,22,.78); }
.hlm p b{ color:#111316; }
.hlm-go{ margin-top:6px; display:inline-flex; align-items:center; gap:12px; height:54px; padding:0 10px 0 24px; border-radius:999px; background:#111316; color:#f4f5f2; font:800 15px var(--body); text-decoration:none; box-shadow:0 12px 26px -14px rgba(17,19,22,.9); transition:transform .25s var(--ease-out), box-shadow .25s; }
.hlm-go svg{ width:36px; height:36px; padding:9px; box-sizing:border-box; border-radius:50%; background:var(--hl); color:#111316; fill:none; stroke:currentColor; stroke-width:2.6; stroke-linecap:round; stroke-linejoin:round; transition:transform .3s var(--ease-out); }
.hlm-go:hover{ text-decoration:none; transform:translateY(-2px); box-shadow:0 18px 30px -14px rgba(17,19,22,.95); }
.hlm-go:hover svg{ transform:rotate(45deg); }
.hlm-go:active{ transform:translateY(0) scale(.98); }
.hlm-go:focus-visible{ outline:3px solid #111316; outline-offset:3px; }
.hlm-note{ font:600 12px var(--body); color:rgba(17,19,22,.62); }
/* the player card */
.hlm-stage{ position:relative; display:grid; place-items:center; min-width:0; perspective:900px; }
.hlm-card{ width:100%; max-width:380px; display:grid; gap:16px; padding:18px; border-radius:20px; background:#121417; color:#f4f5f2; box-shadow:0 28px 50px -24px rgba(17,19,22,.75), inset 0 1px 0 rgba(255,255,255,.08); transform:rotate(-2.5deg) rotateY(-6deg); transition:transform .5s var(--ease-out); }
.hlm:hover .hlm-card{ transform:rotate(0) rotateY(0) translateY(-4px); }
.hlm-top{ display:grid; grid-template-columns:44px minmax(0,1fr) auto; gap:12px; align-items:center; }
.hlm-av{ width:44px; height:44px; border-radius:50%; display:grid; place-items:center; background:rgba(255,198,41,.14); box-shadow:inset 0 0 0 1.5px rgba(255,198,41,.5); }
.hlm-av svg{ width:24px; height:24px; fill:none; stroke:var(--hl); stroke-width:1.8; stroke-linecap:round; }
.hlm-id{ display:grid; gap:2px; min-width:0; }
.hlm-id b{ font:700 15px var(--body); }
.hlm-id small{ font-size:12px; color:#a4aab2; }
.hlm-ovr{ position:relative; width:58px; height:58px; display:grid; place-items:center; align-content:center; }
.hlm-ovr svg{ position:absolute; inset:0; width:100%; height:100%; transform:rotate(-90deg); }
.hlm-ovr circle{ fill:none; stroke-width:4; }
.hlm-ovr .bg{ stroke:rgba(255,255,255,.1); }
.hlm-ovr .fg{ stroke:var(--hl); stroke-linecap:round; stroke-dasharray:113.1; stroke-dashoffset:24.9; }
.hlm-ovr .n{ font:800 20px/1 var(--display); counter-reset:hlm var(--hlm-n); }
.hlm-ovr .n::after{ content:counter(hlm); }
.hlm-ovr small{ font:700 8.5px var(--body); letter-spacing:.12em; color:#a4aab2; }
.hlm-attrs{ display:grid; gap:9px; }
.hlm-attrs div{ display:grid; grid-template-columns:72px minmax(0,1fr) 26px; gap:10px; align-items:center; font:600 12px var(--body); color:#c3c8ce; }
.hlm-attrs i{ display:block; height:7px; border-radius:999px; background:rgba(255,255,255,.08); overflow:hidden; }
.hlm-attrs i b{ display:block; height:100%; width:var(--v); border-radius:999px; background:linear-gradient(90deg, rgba(255,198,41,.35), var(--hl)); }
.hlm-attrs em{ font:800 14px var(--display); font-style:normal; color:#f4f5f2; text-align:right; }
.hlm-road{ position:relative; display:grid; grid-template-columns:repeat(5, minmax(0,1fr)); padding-top:4px; border-top:1px solid rgba(255,255,255,.08); }
.hlm-line{ position:absolute; left:10%; right:10%; top:14px; height:2px; background:rgba(255,255,255,.12); border-radius:2px; overflow:hidden; }
.hlm-line b{ display:block; height:100%; width:100%; background:var(--hl); transform-origin:left; }
.hlm-stop{ position:relative; display:grid; justify-items:center; gap:7px; padding-top:4px; }
.hlm-stop i{ width:12px; height:12px; border-radius:50%; background:var(--hl); box-shadow:0 0 0 3px #121417, 0 0 0 4px rgba(255,198,41,.5); }
.hlm-stop small{ font:700 10.5px var(--body); color:#c3c8ce; white-space:nowrap; }
.hlm-stop:last-child small{ color:var(--hl); }
.hlm-ball{ position:absolute; right:6%; top:-6px; width:30px; height:30px; border-radius:50%; background:radial-gradient(circle at 35% 30%, #ffe08a, #e0a500 70%); box-shadow:inset 0 0 0 1.5px rgba(17,19,22,.55), 0 8px 14px -6px rgba(17,19,22,.6);
  -webkit-mask:radial-gradient(circle, #000 98%, transparent); }
.hlm-ball::before, .hlm-ball::after{ content:""; position:absolute; inset:0; border-radius:50%; }
.hlm-ball::before{ background:linear-gradient(90deg, transparent calc(50% - .75px), rgba(17,19,22,.6) 0 calc(50% + .75px), transparent 0), linear-gradient(0deg, transparent calc(50% - .75px), rgba(17,19,22,.6) 0 calc(50% + .75px), transparent 0); }
.hlm-ball::after{ box-shadow:inset 7px 0 0 -5.5px rgba(17,19,22,.6), inset -7px 0 0 -5.5px rgba(17,19,22,.6); }
@media (prefers-reduced-motion: no-preference){
  .hlm{ animation:tdUp .8s var(--ease-out) .55s both; }
  .hlm-eye i{ animation:hlmPing 2.2s ease-out infinite; }
  .hlm-ovr .n{ animation:hlmCount 1.6s cubic-bezier(.2,.7,.2,1) 1s both; }
  .hlm-ovr .fg{ animation:hlmRing 1.6s cubic-bezier(.2,.7,.2,1) 1s both; }
  .hlm-attrs i b{ animation:hlmBar 1.1s cubic-bezier(.2,.7,.2,1) both; animation-delay:calc(1.15s + var(--i) * .12s); }
  .hlm-line b{ animation:hlmRoad 7s cubic-bezier(.45,0,.2,1) 1.4s infinite; }
  .hlm-stop i{ animation:hlmStop 7s ease 1.4s infinite; animation-delay:calc(1.4s + var(--i) * .82s); }
  .hlm-ball{ animation:hlmBounce 1.9s cubic-bezier(.45,0,.55,1) 1.2s infinite; }
}
@keyframes hlmPing{ 0%{ box-shadow:0 0 0 0 rgba(255,198,41,.7); } 70%,100%{ box-shadow:0 0 0 8px rgba(255,198,41,0); } }
@keyframes hlmCount{ from{ --hlm-n:40; } }
@keyframes hlmRing{ from{ stroke-dashoffset:113.1; } }
@keyframes hlmBar{ from{ width:0; } }
@keyframes hlmRoad{ 0%{ transform:scaleX(0); } 58%,88%{ transform:scaleX(1); } 100%{ transform:scaleX(1); opacity:0; } }
@keyframes hlmStop{ 0%{ background:#3a3f46; box-shadow:0 0 0 3px #121417, 0 0 0 4px rgba(255,255,255,.15); transform:scale(.85); }
  6%{ background:var(--hl); box-shadow:0 0 0 3px #121417, 0 0 0 7px rgba(255,198,41,.35); transform:scale(1.15); }
  14%,100%{ background:var(--hl); box-shadow:0 0 0 3px #121417, 0 0 0 4px rgba(255,198,41,.5); transform:scale(1); } }
@keyframes hlmBounce{ 0%,100%{ transform:translateY(0); } 50%{ transform:translateY(16px) scaleY(.94); } }
@media (max-width:860px){
  .hlm{ grid-template-columns:minmax(0,1fr); padding:26px 20px 24px; border-radius:22px; gap:24px; }
  .hlm-go{ width:100%; justify-content:space-between; }
  .hlm-card{ transform:none; max-width:none; }
  .hlm-ball{ right:auto; left:-4px; top:-12px; }
  .hlm-court{ background:radial-gradient(circle at 50% 100%, transparent 0 140px, rgba(17,19,22,.12) 140px 142px, transparent 142px), radial-gradient(120% 70% at 0% 0%, rgba(255,255,255,.35), transparent 55%); }
}
@media (max-width:380px){ .hlm-stop small{ font-size:9.5px; } .hlm-attrs div{ grid-template-columns:64px minmax(0,1fr) 24px; } }
/* ---------- footer: the official Instagram (update-128) ---------- */
.sf-ig{ display:inline-flex; align-items:center; gap:12px; margin-top:20px; padding:8px 16px 8px 8px; border-radius:999px; background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.12); color:#f1f2ee; text-decoration:none; transition:background-color .2s, border-color .2s, transform .2s var(--ease-out); }
.sf-ig:hover{ text-decoration:none; background:rgba(255,198,41,.1); border-color:color-mix(in oklab, var(--hl) 60%, transparent); transform:translateY(-2px); }
.sf-ig:focus-visible{ outline:2px solid var(--hl); outline-offset:3px; }
.sf-ig-i{ width:38px; height:38px; border-radius:50%; display:grid; place-items:center; background:var(--hl); color:#111316; flex:none; }
.sf-ig-i svg{ width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:2; }
.sf-ig-i .d{ fill:currentColor; stroke:none; }
.sf-ig-t{ display:grid; gap:1px; line-height:1.2; }
.sf-ig-t b{ font:700 15px var(--body); }
.sf-ig-t small{ font-size:12px; color:#a4aab2; }
.sf-ig-a{ width:16px; height:16px; fill:none; stroke:#a4aab2; stroke-width:2.4; stroke-linecap:round; stroke-linejoin:round; transition:transform .25s var(--ease-out), stroke .2s; }
.sf-ig:hover .sf-ig-a{ transform:translate(2px,-2px); stroke:var(--hl); }
/* <<< NEW LOOK <<< */

/* ---------- update-130: phones and tablets, every page checked ----------
   Above a phone (701px and wider) a table that cannot fit its box gets the
   phone's table cards (app6_phone.js decides and adds tb-cards): eight numbers a line. */
@media (min-width:701px){
  :root table.tb-cards{ display:block; width:100%; min-width:0 !important; max-width:100%; border-collapse:separate; }
  :root table.tb-cards > thead{ display:none; }
  :root table.tb-cards > tbody{ display:block; }
  :root table.tb-cards tr{ display:flex; flex-wrap:wrap; align-items:baseline; position:relative; padding:12px 14px 12px; border:0; border-top:1px solid var(--hair); background:none; height:auto; }
  :root table.tb-cards > tbody:first-of-type > tr:first-child{ border-top:0; }
  :root table.tb-cards tr::after{ content:""; order:1; flex:0 0 100%; height:0; }
  :root table.tb-cards td{ display:block; position:static !important; left:auto; box-shadow:none !important; border:0 !important; padding:0; background:none !important; text-align:left; white-space:normal; min-width:0; width:auto; height:auto; max-width:100%; }
  :root table.tb-cards td[data-id]{ order:0; flex:0 1 auto; margin:0 10px 2px 0; font-size:14px; line-height:1.35; overflow-wrap:anywhere; }
  :root table.tb-cards td[data-id]:first-child{ font-weight:600; }
  :root table.tb-cards td[data-l]{ order:2; flex:0 0 20%; padding:8px 6px 0 0; font:600 15px/1.2 var(--body); font-variant-numeric:tabular-nums; color:var(--text); }
  :root table.tb-cards td[data-l]::before{ content:attr(data-l); display:block; margin-bottom:2px; font:600 10px/1.2 var(--body); letter-spacing:.05em; color:var(--text-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  :root table.tb-cards td:empty{ display:none; }
  :root table.tb-cards td.ph-m{ order:4; }
  :root table.tb-cards tr:not(.ph-open) td.ph-m{ display:none; }
  :root table.tb-cards td.ph-br{ display:none; order:3; flex:0 0 100%; height:0; margin-top:10px; border-top:1px dashed var(--border); }
  :root table.tb-cards tr.ph-open td.ph-br{ display:block; }
  :root table.tb-cards tr.ph-xr{ cursor:pointer; padding-right:38px; -webkit-tap-highlight-color:transparent; }
  :root table.tb-cards tr.ph-xr::before{ content:""; position:absolute; right:16px; top:17px; width:7px; height:7px; border-right:2px solid var(--text-muted); border-bottom:2px solid var(--text-muted); transform:rotate(45deg); transition:transform .2s; }
  :root table.tb-cards tr.ph-xr.ph-open::before{ transform:translateY(3px) rotate(-135deg); }
  :root table.tb-cards tr.ph-xr:focus-visible{ outline:2px solid var(--accent); outline-offset:-2px; }
  :root table.tb-cards tr.ph-xr:active{ background:var(--surface-alt); }
  :root table.tb-cards tr.ph-full td{ flex:1 1 100%; }
  :root table.tb-cards tr.pv-tier{ background:var(--surface-alt); cursor:pointer; }
  :root table.tb-cards tr.pv-tier td[data-id]{ display:flex; flex-wrap:wrap; align-items:baseline; gap:2px 8px; }
  :root table.tb-cards tr.pv-tier:not(.open) td.ph-m{ display:none; }
  :root table.tb-cards tr.pv-sub{ padding-left:28px; padding-top:6px; border-top:0; }
  :root table.tb-cards tr.pv-sub td[data-l]{ font-size:14px; padding-top:4px; }
  :root table.tb-cards.ph-sort > thead{ display:block; border-bottom:1px solid var(--hair); }
  :root table.tb-cards.ph-sort > thead tr{ display:flex; flex-wrap:nowrap; gap:6px; overflow-x:auto; padding:10px 14px; border:0; scrollbar-width:none; background:none; }
  :root table.tb-cards.ph-sort > thead tr::-webkit-scrollbar{ display:none; }
  :root table.tb-cards.ph-sort > thead tr::after{ display:none; }
  :root table.tb-cards.ph-sort > thead tr::before{ content:"Sort"; flex:none; align-self:center; font:600 10px var(--body); letter-spacing:.08em; text-transform:uppercase; color:var(--text-muted); }
  :root table.tb-cards.ph-sort > thead th{ display:block; flex:none; position:static; left:auto; box-shadow:none; padding:0; border:1px solid var(--border); border-radius:999px; background:var(--surface); font-size:12px; white-space:nowrap; }
  :root table.tb-cards.ph-sort > thead th[data-csort]{ padding:6px 11px; cursor:pointer; }
  :root table.tb-cards.ph-sort > thead th button{ padding:6px 11px; }
  :root table.tb-cards.ph-sort > thead th[data-id]{ display:none; }
  :root table.tb-cards.ph-sort > thead th.cp-on, :root table.tb-cards.ph-sort > thead th[aria-sort="descending"], :root table.tb-cards.ph-sort > thead th[aria-sort="ascending"]{ background:var(--on-bg); color:var(--on-fg); border-color:transparent; }
  :root table.tb-cards td.cp-on, :root table.tb-cards td.st-sorted{ color:var(--accent-ink, var(--accent)); }
  :root table.tb-cards.ph-sort > thead th button{ color:inherit; background:none; border:0; font:inherit; }
  :root table.tb-cards.ph-sort > thead th:has(> button.on), :root table.tb-cards.ph-sort > thead th.st-on{ background:var(--on-bg); color:var(--on-fg); border-color:transparent; }
  :root table.tb-cards.ph-names td[data-l]{ flex:0 0 50%; font-size:14px; font-weight:600; padding-right:10px; }
  :root table.tb-cards.ph-names td[data-id]:first-child{ font:700 18px var(--display); }
  :root .table-scroll:has(> table.tb-cards), :root .st-scroll:has(> table.tb-cards), :root .rh-roll:has(table.tb-cards){ overflow:visible; max-width:100%; }
  :root .sticky-first table.tb-cards td, :root .sticky-first table.tb-cards th{ position:static; }
  :root table.tb-cards.ph-four td[data-l]{ flex-basis:25%; }
  :root table.tb-cards.ph-four td[data-id]{ flex:1 1 100%; margin-right:0; }
  :root table.tb-cards.ph-four tr.wy-lgrow{ background:var(--surface-alt); }
  :root table.tb-cards td{ box-sizing:border-box; }
  :root .wy-scroll:has(> table.tb-cards){ overflow:visible; }
  :root table.tb-cards tr{ padding:12px 18px; }
  :root table.tb-cards td[data-l]{ flex:0 0 12.5%; }
  :root table.tb-cards.ph-names td[data-l]{ flex:0 0 25%; }
  :root table.tb-cards.ph-four td[data-l]{ flex-basis:25%; }
  :root table.tb-cards.ph-four td[data-id]{ flex:1 1 100%; margin-right:0; }
  :root table.tb-cards td{ box-sizing:border-box; }
  :root table.tb-cards td.ph-m{ order:4; }
  :root table.tb-cards td[data-id]{ font-size:15px; }
  :root :is(.table-scroll, .st-scroll, .rh-roll, .lx-scroll, .rp-ev, .mb-stw, .ma-tw, .pg-table-x, .wy-scroll, .gb-tw):has(table.tb-cards){ overflow:visible; max-width:100%; }
}
@media (max-width:700px){
  :root :is(.lx-scroll, .rp-ev, .mb-stw, .ma-tw, .pg-table-x, .gb-tw, .rp-htw):has(table.fx-cards){ overflow:visible; max-width:100%; }
  :root .sticky-first table.fx-cards td, :root table.fx-cards th{ position:static; }
}
/* a table a little too wide first gives up padding, then type size */
@media all{
  :root table.fx-t1 th, :root table.fx-t1 td{ padding-left:6px !important; padding-right:6px !important; }
  :root table.fx-t2 th, :root table.fx-t2 td{ padding-left:4px !important; padding-right:4px !important; font-size:12px; }
  :root table.fx-t2 th{ font-size:10.5px; letter-spacing:.02em; }
  :root table:is(.fx-t1, .fx-t2){ min-width:0 !important; }
  :root table.fx-cards{ min-width:0 !important; width:100% !important; }
}
/* tablets in portrait (701-900px): the section links get the whole second row, so
   none of them hides past the edge (the wordmark and the buttons share the first) */
@media (min-width:701px) and (max-width:900px){
  html:not(.app) .nav{ height:auto; flex-wrap:wrap; row-gap:6px; padding:10px 16px 8px; }
  html:not(.app) .nav-left{ display:contents; }
  html:not(.app) .nav .wordmark{ order:1; }
  html:not(.app) .nav-right{ order:2; margin-left:auto; }
  html:not(.app) .nav-links{ order:3; flex:1 1 100%; flex-wrap:wrap; overflow:visible; gap:2px 4px; }
}
/* the tools' control grid: one column that never grows past the page (the Clutch minute row pushed it 36px wide at 360px) */
:root .lx-ctl{ grid-template-columns:minmax(0,1fr); }
@media (max-width:400px){ :root .lx-seg button{ padding:0 11px; } }
/* box score leaders: the stat line wraps instead of being cut */
@media (max-width:700px){ :root .gb-ld .gb-lt em{ white-space:normal; overflow:visible; flex-wrap:wrap; row-gap:0; align-items:center; line-height:1.3; } }
@media (max-width:700px){ :root table.ph-cards td[data-l].ph-w{ flex-basis:40%; } }
@media (min-width:701px){ :root table.tb-cards td[data-l].ph-w{ flex-basis:25%; } }
/* a scroll box with a height cap (the competition player table, 648px) holds cards on a phone or tablet: the cap goes, or the cards spill over the page below */
@media (max-width:700px){ :root :is(.table-scroll, .st-scroll, .rh-roll, .lx-scroll, .rp-ev, .mb-stw, .ma-tw, .pg-table-x, .wy-scroll, .gb-tw, .cp-scroll):has(table.ph-cards){ max-height:none; } }
@media (min-width:701px){ :root :is(.table-scroll, .st-scroll, .rh-roll, .lx-scroll, .rp-ev, .mb-stw, .ma-tw, .pg-table-x, .wy-scroll, .gb-tw, .cp-scroll):has(table.tb-cards){ max-height:none; } }
/* a national team's flag stays inside its crest box (its 120px box pushed the phone's 68px flag over the name) */
.tg-crest > .crest-flag{ width:100% !important; height:100% !important; display:grid; place-items:center; }
/* team results and fixtures on a narrow screen: the date on the left, both teams and the venue stacked to its right
   (the second team used to drop into the 70px date column and break word by word) */
@media (max-width:900px){
  :root .tr-card > .row{ grid-template-columns:70px minmax(0,1fr); row-gap:6px; }
  :root .tr-card > .row > .r-date{ grid-row:1 / span 3; align-self:start; }
  :root .tr-card > .row > .team, :root .tr-card > .row > .venue{ grid-column:2; min-width:0; }
  :root .tr-card > .row > .venue{ display:flex; flex-wrap:wrap; gap:2px 10px; font-size:12px; color:var(--text-faint); }
  :root .tr-card > .row > .venue .box-link{ margin:0; }
}
/* the roll of honour on a phone: a winner's name gets two lines instead of being cut after seven letters */
@media (max-width:700px){
  :root table.ph-cards .rh-who b{ white-space:normal; overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow-wrap:anywhere; }
}
/* game header on a tablet: each team's crest sits above its name, and the date line wraps under the score
   (at 768px the names ran under the score and the date line ran over both names) */
@media (min-width:701px) and (max-width:1000px){
  :root .gb-hero{ grid-template-columns:minmax(0,1fr) minmax(0,auto) minmax(0,1fr); gap:14px; padding:28px 20px 24px; }
  :root .gb-ht, :root .gb-ht.r{ flex-direction:column; justify-content:center; text-align:center; gap:10px; }
  :root .gb-ht.r{ flex-direction:column-reverse; }
  :root .gb-ht b{ font-size:22px; }
  :root .gb-hs > small{ max-width:250px; text-wrap:balance; }
}

/* ---------- National team hero on Today (update-132): the November window's twelve ---------- */
.ntx{ --stage:#0a0e1c; --stage-2:#121a3a; --chalk:#f3f1e8; --chalk-dim:#a7adbd; --stage-line:rgba(255,255,255,.1);
  margin-bottom:18px; font-family:var(--body); line-height:1.5; position:relative; isolation:isolate; overflow:hidden; border-radius:22px; color:var(--chalk);
  background:radial-gradient(120% 90% at 72% 0%, var(--stage-2) 0%, var(--stage) 62%);
  display:grid; grid-template-columns:minmax(300px, 380px) 1fr; grid-template-rows:auto 1fr auto;
  grid-template-areas:"head stage" "body stage" "fix fix"; }
.ntx-bg{ position:absolute; inset:0; z-index:-1; pointer-events:none; }
.ntx-ghost{ position:absolute; right:-1%; top:2%; font:900 clamp(90px, 15vw, 210px)/.8 var(--display); letter-spacing:.01em;
  color:transparent; -webkit-text-stroke:1px rgba(255,199,44,.13); white-space:nowrap; }
.ntx-floor{ position:absolute; left:30%; right:-10%; bottom:52px; height:55%;
  background:radial-gradient(50% 60% at 55% 100%, rgba(255,199,44,.2), transparent 70%); }
.ntx-beam{ position:absolute; top:-20%; left:44%; width:46%; height:120%; transform:skewX(-14deg);
  background:linear-gradient(90deg, transparent, rgba(255,255,255,.045) 45%, rgba(255,255,255,.07) 50%, transparent);
  opacity:.9; }
.ntx-grain{ position:absolute; inset:0; opacity:.22; mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E"); }

.ntx-head, .ntx-body{ position:relative; z-index:3; display:flex; flex-direction:column; gap:16px; min-width:0; }
.ntx-head{ grid-area:head; padding:30px 8px 0 30px; }
.ntx-body{ grid-area:body; padding:18px 8px 20px 30px; justify-content:flex-end; }
.ntx-eye{ margin:0; display:flex; align-items:center; gap:8px; font:600 11.5px/1.3 var(--body); letter-spacing:.1em; text-transform:uppercase; color:var(--chalk-dim); }
.ntx-eye .ntx-dot{ width:7px; height:7px; border-radius:50%; background:var(--hl); box-shadow:0 0 0 0 rgba(255,199,44,.6); animation:ntxPulse 2.2s infinite; flex:none; }
.ntx-title{ margin:0; font:900 clamp(38px, 4.6vw, 58px)/.86 var(--display); text-transform:uppercase; letter-spacing:.005em; text-wrap:balance; }
.ntx-title span{ display:block; overflow:hidden; }
.ntx-title span i{ display:block; font-style:normal; animation:ntxLine .8s cubic-bezier(.2,.8,.2,1) both; }
.ntx-title span:nth-child(2) i{ animation-delay:.12s; color:var(--hl); }

.ntx-card{ position:relative; display:grid; grid-template-columns:auto 1fr; gap:4px 16px; align-items:end; padding-top:16px; border-top:1px solid var(--stage-line); }
.ntx-num{ grid-row:span 2; font:900 92px/1 var(--display); color:var(--hl); letter-spacing:-.01em; overflow:hidden; margin-bottom:-.14em; /* a full-height line box: the roll-in clips to it, so it must hold the whole digit */ min-width:1.15em; text-align:left; }
.ntx-num span{ display:block; }
.ntx-who{ min-width:0; }
.ntx-given{ font:600 13px/1.2 var(--body); color:var(--chalk-dim); letter-spacing:.02em; }
.ntx-fam{ font:800 clamp(34px, 3.4vw, 44px)/.9 var(--display); text-transform:uppercase; letter-spacing:.01em; overflow-wrap:anywhere; }
.ntx-meta{ grid-column:1 / -1; display:flex; flex-wrap:wrap; gap:6px; margin-top:10px; }
.ntx-meta span{ font:600 12.5px/1 var(--body); padding:7px 10px; border-radius:999px; background:rgba(255,255,255,.07); border:1px solid var(--stage-line); white-space:nowrap; }
.ntx-meta .ntx-club{ background:transparent; }
.ntx-note{ grid-column:1 / -1; display:flex; align-items:center; gap:10px; flex-wrap:wrap; font-size:13px; color:var(--chalk-dim); min-height:22px; }
.ntx-note .ntx-tag{ font:700 10.5px/1 var(--body); letter-spacing:.08em; text-transform:uppercase; padding:5px 8px; border-radius:5px; }
.ntx-note .ntx-tag.back{ background:var(--hl); color:var(--hl-ink); }
.ntx-note .ntx-tag.new{ background:transparent; color:var(--chalk); box-shadow:inset 0 0 0 1px rgba(243,241,232,.45); }
.ntx-note b{ color:var(--chalk); font-weight:600; font-variant-numeric:tabular-nums; }
.ntx-card.swap .ntx-num span{ animation:ntxRoll .55s cubic-bezier(.2,.8,.2,1) both; }
.ntx-card.swap .ntx-fam, .ntx-card.swap .ntx-given{ animation:ntxLine .55s cubic-bezier(.2,.8,.2,1) both; }
.ntx-card.swap .ntx-meta, .ntx-card.swap .ntx-note{ animation:ntxFade .6s .08s both; }

.ntx-ctl{ display:flex; align-items:center; gap:8px; }
.ntx-ctl button, .ntx-ctl a{ display:inline-grid; place-items:center; height:38px; min-width:38px; padding:0 12px; border-radius:999px; border:1px solid var(--stage-line);
  background:rgba(255,255,255,.05); color:var(--chalk); font:600 13px var(--body); cursor:pointer; text-decoration:none; transition:background-color .15s, border-color .15s; }
.ntx-ctl button:hover, .ntx-ctl a:hover{ background:rgba(255,255,255,.12); border-color:rgba(255,255,255,.25); }
.ntx-ctl a.ntx-prof{ background:var(--hl); color:var(--hl-ink); border-color:var(--hl); padding:0 16px; }
.ntx-ctl a.ntx-prof:hover{ background:#ffd55c; }
.ntx-ctl svg{ width:16px; height:16px; }
.ntx-prog{ flex:1; height:3px; border-radius:3px; background:rgba(255,255,255,.12); overflow:hidden; min-width:40px; }
.ntx-prog i{ display:block; height:100%; width:100%; background:var(--hl); transform-origin:left; transform:scaleX(0); }
.ntx-count{ white-space:nowrap; font:700 12px/1 var(--body); color:var(--chalk-dim); font-variant-numeric:tabular-nums; letter-spacing:.04em; }

/* the twelve, two rows like a team photo (the front row is inset so the end players' shoulders stay inside the stage) */
.ntx-stage{ grid-area:stage; position:relative; z-index:2; height:clamp(250px, 37vw, 450px); margin-top:14px;
  -webkit-mask-image:linear-gradient(#000 82%, transparent); mask-image:linear-gradient(#000 82%, transparent); }
.ntx-fig{ position:absolute; left:calc(var(--x) * 100%); bottom:var(--b); height:var(--h); padding:0; border:0; background:none; cursor:pointer;
  transform:translateX(-50%); z-index:var(--z); transition:transform .5s cubic-bezier(.2,.8,.2,1); -webkit-tap-highlight-color:transparent; }
.ntx-fig.back{ --h:72%; --b:25%; --z:1; } .ntx-fig.front{ --h:80%; --b:-7%; --z:2; }
.ntx-fig img{ display:block; height:100%; width:auto; max-width:none; filter:brightness(.4) saturate(.4); transition:filter .5s;
  animation:ntxRise .9s cubic-bezier(.2,.8,.2,1) both; animation-delay:var(--d); }
.ntx-fig.on img{ filter:brightness(1.04) saturate(1) drop-shadow(0 0 22px rgba(255,199,44,.32)); }
.ntx-fig.on{ transform:translateX(-50%) translateY(-3%) scale(1.035); }
/* the back row stands behind the front row's heads and the top of the stage, so its tag sits under the chin, pointing up */
.ntx-fig.back .ntx-pin{ top:31%; transform:translate(-50%, -6px); }
.ntx-fig.back.on .ntx-pin{ transform:translate(-50%, 0); }
.ntx-fig.back .ntx-pin::after{ bottom:auto; top:-4px; }
.ntx-fig .ntx-pin{ position:absolute; left:50%; top:-26px; transform:translate(-50%, 6px); opacity:0; transition:opacity .3s, transform .4s;
  font:800 15px/1 var(--display); letter-spacing:.04em; background:var(--hl); color:var(--hl-ink); padding:5px 8px 4px; border-radius:6px; white-space:nowrap; pointer-events:none; }
.ntx-fig .ntx-pin::after{ content:""; position:absolute; left:50%; bottom:-4px; width:8px; height:8px; background:var(--hl); transform:translateX(-50%) rotate(45deg); z-index:-1; }
.ntx-fig.on .ntx-pin{ opacity:1; transform:translate(-50%, 0); }
.ntx-fig:focus-visible{ outline:none; } .ntx-fig:focus-visible img{ filter:brightness(1) drop-shadow(0 0 0 2px var(--hl)); outline:2px solid var(--hl); outline-offset:-2px; }
.ntx-sweep{ position:absolute; inset:0; z-index:4; pointer-events:none; background:linear-gradient(100deg, transparent 35%, rgba(255,255,255,.18) 50%, transparent 65%);
  transform:translateX(-110%); animation:ntxSweep 1.3s 1.05s cubic-bezier(.4,0,.2,1) both; mix-blend-mode:overlay; }

/* the window: three games on the floor */
.ntx-fix{ grid-area:fix; position:relative; z-index:3; display:grid; grid-template-columns:auto repeat(3, minmax(0, 1fr)); gap:0;
  border-top:1px solid var(--stage-line); background:rgba(5,7,14,.55); backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px); }
.ntx-grp{ padding:14px 22px 14px 30px; display:flex; flex-direction:column; justify-content:center; gap:2px; border-right:1px solid var(--stage-line); }
.ntx-grp b{ font:800 20px/1 var(--display); text-transform:uppercase; letter-spacing:.03em; }
.ntx-grp span{ font-size:12px; color:var(--chalk-dim); white-space:nowrap; }
.ntx-gm{ color:var(--chalk); text-decoration:none; transition:background-color .15s; padding:12px 18px; display:grid; grid-template-columns:auto 1fr; gap:2px 12px; align-items:center; border-right:1px solid var(--stage-line); min-width:0;
  animation:ntxFade .6s both; animation-delay:var(--d); }
.ntx-gm:last-child{ border-right:0; }
.ntx-gm:hover{ background:rgba(255,255,255,.05); text-decoration:none; color:var(--chalk); }
.ntx-gm .ntx-day{ grid-row:span 2; display:grid; place-items:center; width:46px; height:46px; border-radius:10px; background:rgba(255,255,255,.06); border:1px solid var(--stage-line); }
.ntx-gm .ntx-day b{ font:800 22px/.9 var(--display); } .ntx-gm .ntx-day small{ font:700 9.5px/1 var(--body); letter-spacing:.08em; text-transform:uppercase; color:var(--chalk-dim); }
.ntx-gm .ntx-vs{ display:flex; align-items:center; gap:7px; font:700 14px/1.2 var(--body); min-width:0; }
.ntx-gm .ntx-vs img{ width:20px; height:14px; border-radius:2px; object-fit:cover; box-shadow:0 0 0 1px rgba(255,255,255,.18); flex:none; }
.ntx-gm .ntx-vs em{ font-style:normal; font-weight:500; color:var(--chalk-dim); }
.ntx-gm .ntx-vs .ntx-t{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ntx-gm .ntx-when{ font-size:12.5px; color:var(--chalk-dim); font-variant-numeric:tabular-nums; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ntx-gm.next .ntx-when b{ color:var(--hl); font-weight:700; }
.ntx-gm.next .ntx-day{ background:var(--hl); border-color:var(--hl); color:var(--hl-ink); } .ntx-gm.next .ntx-day small{ color:var(--hl-ink); }


@keyframes ntxPulse{ 0%{ box-shadow:0 0 0 0 rgba(255,199,44,.55); } 70%{ box-shadow:0 0 0 9px rgba(255,199,44,0); } 100%{ box-shadow:0 0 0 0 rgba(255,199,44,0); } }
@keyframes ntxLine{ from{ transform:translateY(105%); } to{ transform:none; } }
@keyframes ntxRoll{ from{ transform:translateY(80%); opacity:0; } to{ transform:none; opacity:1; } }
@keyframes ntxFade{ from{ opacity:0; transform:translateY(6px); } to{ opacity:1; transform:none; } }
@keyframes ntxRise{ from{ transform:translateY(38%); opacity:0; } 60%{ opacity:1; } to{ transform:none; opacity:1; } }
@keyframes ntxSweep{ to{ transform:translateX(110%); } }

/* narrower desktops and landscape tablets: Group F goes above the three games, so their names have room */
@media (max-width:1100px){
  .ntx-fix{ grid-template-columns:repeat(3, minmax(0, 1fr)); }
  .ntx-grp{ grid-column:1 / -1; flex-direction:row; justify-content:flex-start; align-items:baseline; gap:10px; flex-wrap:wrap; padding:12px 22px 12px 30px; border-right:0; border-bottom:1px solid var(--stage-line); }
  .ntx-grp span{ white-space:normal; }
}
/* tablet: the card and the stage side by side get tight; stack the stage under the copy */
@media (max-width:900px){
  .ntx{ grid-template-columns:1fr; grid-template-rows:auto; grid-template-areas:"head" "stage" "body" "fix"; }
  .ntx-head{ padding:26px 22px 0; }
  .ntx-body{ padding:4px 22px 20px; }
  .ntx-stage{ height:clamp(230px, 52vw, 400px); margin-top:0; }
  .ntx-ghost{ top:auto; bottom:30%; }
  .ntx-floor{ left:0; right:0; }
  .ntx-fix{ grid-template-columns:repeat(3, minmax(0, 1fr)); }
  .ntx-grp{ grid-column:1 / -1; flex-direction:row; justify-content:flex-start; align-items:baseline; gap:10px; flex-wrap:wrap; padding:12px 22px; border-right:0; border-bottom:1px solid var(--stage-line); }
  .ntx-grp span{ white-space:normal; }
}
/* phone: the copy and the card stay compact; games stack */
@media (max-width:560px){
  .ntx{ border-radius:18px; }
  .ntx-head{ padding:22px 18px 0; gap:12px; }
  .ntx-body{ padding:4px 18px 18px; gap:14px; }
  .ntx-title{ font-size:40px; }
  .ntx-num{ font-size:70px; }
  .ntx-fam{ font-size:32px; }
  .ntx-stage{ height:clamp(200px, 62vw, 300px); }
  .ntx-fig .ntx-pin{ font-size:13px; top:-22px; }
  .ntx-fix{ grid-template-columns:1fr; }
  .ntx-gm{ border-right:0; border-bottom:1px solid var(--stage-line); padding:10px 18px; }
  .ntx-gm:last-child{ border-bottom:0; }
  .ntx-grp{ padding:12px 18px; }
}
@media (prefers-reduced-motion: reduce){
  .ntx *, .ntx *::before, .ntx *::after{ animation:none !important; transition:none !important; }
  .ntx-sweep{ display:none; }
}
