/* 8brCam brand v2 proposal (Oct 29, 2026), Sunday Showdown public pages. Loaded last, after each page's own stylesheet.
   Source: design/brand-v2/source/BRAND-SYSTEM.md. Asset choice (wordmark 01 / Lead 8, Showdown B / Gold Aperture) lives in
   design/brand-v2/brand-choice.json and is copied to /brand/ by scripts/brand-assets.mjs, so the pages never name an option.

   What changes here and why:
   - Deep navy surfaces, silver type, gold as the Showdown accent (links, focus, selected state, the main call to action, the
     live state). The electric blue is gone: the page stylesheets read it from tokens, re-pointed below.
   - Space Grotesk for headings, Inter for everything else (self-hosted, Latin subset, font-display: swap).
   - No photograph behind the identity on an event's own pages: the arena hero art and the champion felt are switched off.
     (Nov 10: between events, on desktop, the gold-lit aperture art sits at the right of the hero; see the end of this file.)
   - One film perforation, at the header edge. Other perforations and bevels are removed.
   - Gold alone never means a winner: every champion label carries the crown icon (brand-icons.js) and the word itself.
   Remove this file and its <link> to get the previous look back. Behaviour and markup structure are unchanged. */

@font-face { font-family: "Space Grotesk"; src: url("/fonts/SpaceGrotesk.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/Inter.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

body.live {
  /* palette (BRAND-SYSTEM.md "Exact palette") */
  --bg: #090f19; --card: #162230; --raise: #1c2a3a;
  --ink: #e4e8ed; --ink-2: #c8d0da; --muted: #a9b4c2; --dim: #98a4b4;
  --line: #22303f; --line-2: #2f4054; --sep: rgba(169,180,194,.14); --sep-2: rgba(169,180,194,.26);
  --silver-hi: #e4e8ed; --silver: #a9b4c2; --silver-lo: #66788f;   /* 3.2:1 or more on every surface: field edges stay visible */
  --gold: #cfae6b; --gold-dim: #8f7746; --gold-glow: rgba(var(--acc-rgb), .16);
  /* the old blue tokens now carry the Showdown accent */
  --cyan: var(--gold); --cyan-dim: var(--gold-dim); --link: var(--ink);
  --acc-rgb: 207,174,107; --acc-hi: #e3c98f; --acc-link: #e0c486; --acc-press: #b9975a; --acc-line: #6f6040; --on-acc: #090f19;
  /* flat lettering: no chrome or gold gradients in live text */
  --chrome: linear-gradient(#e4e8ed, #e4e8ed); --gold-chrome: linear-gradient(#cfae6b, #cfae6b);
  --display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r: 4px; --rc: 8px;
  background: var(--bg);
  font-family: var(--ui);
  font-feature-settings: "cv11";           /* Inter's single-storey a reads closer to Space Grotesk */
}
body.live :focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---- header: emblem + wordmark lockup (48px emblem, 12px gap, 24px wordmark), raised navy, gold for the current page ---- */
body.live .top { background: var(--card); border-bottom: 0; }
body.live .topin { min-height: 72px; }
body.live .brand { gap: 12px; }
.brand img.em { width: 48px; height: 48px; }
.brand img.wm { width: auto; height: 24px; }
.top .textlink { font: 500 15px/1 var(--ui); letter-spacing: 0; text-transform: none; color: var(--ink-2); border-bottom: 2px solid transparent; }
.top .textlink[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold); }
.top .textlink:hover { color: var(--ink); text-decoration: none; border-bottom-color: var(--silver-lo); }
.top .textlink[aria-current="page"]:hover { color: var(--gold); border-bottom-color: var(--gold); }
/* the one film motif: a 1px rule with 5x3 rounded perforations every 15px, 8px tall (BRAND-SYSTEM.md "Film motif") */
.filmstrip { --film: var(--gold); height: 8px; background: var(--bg); border: 0; border-top: 1px solid color-mix(in srgb, var(--film) 70%, transparent); }
.filmstrip::before { top: 3px; height: 3px; opacity: .7; background: var(--film);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='3'%3E%3Crect width='5' height='3' rx='1'/%3E%3C/svg%3E") left top / 15px 3px repeat-x;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='3'%3E%3Crect width='5' height='3' rx='1'/%3E%3C/svg%3E") left top / 15px 3px repeat-x; }
.filmstrip::after { content: none; }
.stick, .practice { background: var(--bg); }
.jump { border-top-color: var(--line); }
.jump a { font: 600 15px/1 var(--ui); letter-spacing: 0; text-transform: none; }
.jump a:hover, .jump a:focus-visible { color: var(--ink); border-bottom-color: var(--gold); }
.practice b { border-radius: var(--r); font-family: var(--ui); font-weight: 600; letter-spacing: .06em; }
@media (max-width: 960px) {
  html.js body.live .menu { background: var(--card); }
  .top .toplinks .textlink { font-size: 16px; border-bottom: 1px solid var(--line); }
  .top .toplinks .textlink[aria-current="page"] { border-bottom-color: var(--gold); }
  .top.open .menubtn { border-color: var(--gold-dim); background: var(--raise); }
}
@media (max-width: 640px) {
  body.live .topin { min-height: 64px; }
  body.live { --hdr: 64px; }
  body.liveview #pairings, body.liveview #standings { scroll-margin-top: calc(var(--pinh, 110px) + 13px); }
}

/* ---- controls: flat raised navy, one border; the main action is gold with navy text ---- */
.navlink, body.live button { font: 600 15px/1 var(--ui); background: var(--raise); border: 1px solid var(--line-2); border-radius: var(--r); color: var(--ink); }
.navlink, body.live button, .top .textlink, .jump a { transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease; }
@media (hover: hover) and (pointer: fine) {
  .navlink:hover, body.live button:hover:not(:disabled) { background: #22334a; border-color: var(--gold-dim); color: var(--ink); }
}
/* pressed: a colour change only, no movement (owner, Oct 25) */
.navlink:active, body.live button:active:not(:disabled) { background: #263a52; }
.navlink.primary { background: var(--gold); border-color: var(--gold); color: var(--on-acc); }
@media (hover: hover) and (pointer: fine) { .navlink.primary:hover { background: var(--acc-hi); border-color: var(--acc-hi); color: var(--on-acc); filter: none; } }
body.live button.ghost, body.live button.rowbtn, body.live button.linkbtn, body.live .chip { background: none; border-color: transparent; }
body.live button.rowbtn { border-radius: 0; }
body.live button.linkbtn { color: var(--acc-link); }
@media (hover: hover) and (pointer: fine) { body.live button.linkbtn:hover:not(:disabled) { color: var(--acc-hi); } }
.findme select { font-family: var(--ui); background: var(--bg); border-color: var(--silver-lo); border-radius: var(--r); }
.hlink { color: var(--acc-link); }

/* ---- panels: flat raised navy, one hairline, 8px corners; no glows ---- */
body.live .card, .livehero, body.liveview .card:not(.po-won) { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--rc); box-shadow: none; }
body.liveview .latest:not(.flash), .latest { background: var(--card); border-color: var(--line-2); border-radius: var(--r); }
body.liveround .card.pairings { border-color: var(--line-2); box-shadow: none; }
body.liveround .card.pairings::before { left: 18px; right: 18px; height: 2px; background: var(--gold); opacity: .8; }
body.live .po { border-color: var(--line-2); box-shadow: none; }
.po::before { background: var(--gold); opacity: .8; height: 2px; }
.po-m { background: var(--bg); border-radius: var(--r); }
.po-m.live { background: rgba(var(--acc-rgb), .07); box-shadow: none; }
#player .playerbox.pcard { box-shadow: none; }
.es-flag.live i { box-shadow: none; }

/* ---- type: Space Grotesk headings in sentence case (the text's own case); small labels in Inter caps, modest tracking ---- */
#live h1, .eh h2, #live h2, .rulespage h1, .rulespage h2, .cname, .lhead, .es-head, .estatus.pre .es-title, .evname, .nextstep h2,
.eh-empty .nhead, .nextstep .nhead, #live .po-hero h2, #player .playerbox h2, #live .rhd h2 {
  font-family: var(--display); font-weight: 700; letter-spacing: -.01em; text-transform: none; }
#live h2 { font-size: 24px; line-height: 1.15; }
#live .rhd h2 { font-size: clamp(26px, 2.5vw, 32px); }
body.liveround #live #standings h2 { font-size: 22px; letter-spacing: -.01em; color: var(--ink); }
.evname { font-weight: 600; color: var(--ink-2); }
.small-note, .kk, .latest .kick, .findme .fl, .facts dt, .po-k, .po-stage h3, .po-fmt, .po-meta, .po-path > summary, body.live .badge,
.estatus.pre .es-kick, .won-rl, .stand th, .games-head, .top .lbl, .rhead, .rhd-k, .pair .tbl, .pair .vs, .pair .tno, .pstate.me,
#player .pm-vs, #player .pcard .phelp h3, #player .pm-head h2, #player .playerbox > h2, #player .preportd[open] > summary.preportbtn,
.rlbl, .mkpop b, dialog.pdialog h2, .po .tag, .eh-won .tag, .es-flag {
  font-family: var(--ui); font-weight: 600; letter-spacing: .06em; }
.pair .vs, #player .pm-vs { text-transform: lowercase; letter-spacing: 0; font-weight: 500; }
/* the status line keeps its own open layout (no plate): headline, figures, next step */
.es-head { font-size: clamp(21px, 2.1vw, 26px); }
/* the round header: one gold line on top, navy under it (no tinted wash) */
.rhd { background: var(--card); border-bottom-color: var(--line-2); }
.rhd::before { height: 2px; background: var(--gold); }
.latest { background: var(--card); }

/* ---- the event hero: no photograph. The name, the emblem and the state on deep navy. ---- */
.artbg { display: none !important; }
.herowrap { min-height: 0; }
.eh .hero-text, .eh .won-rec, .eh .won-rec * { text-shadow: none; }
.eh .in { padding: 36px var(--gutter) 28px; }
body.liveround .eh .in { padding: 24px var(--gutter) 18px; }
.eh-won .in { padding-top: 32px; padding-bottom: 32px; }
.lockup { margin: 0 0 4px; }
.lk-name { margin: 0; padding: 0; border: 0; filter: none; font-family: var(--display); font-weight: 700; letter-spacing: -.01em; line-height: 1; }
.lk-s, .won-id .lk-s { color: var(--ink); }
.lk-g, .won-id .lk-g { color: var(--gold); }
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .lk-s, .lk-g, .cname, .livehero h1, .chrome-text, .won-name, .po-cn { background: none; -webkit-background-clip: border-box; background-clip: border-box; }
  .lk-s, .cname, .livehero h1, .chrome-text { color: var(--ink); }
  .lk-g { color: var(--gold); }
}
.lk-tag { font: 500 14px/1.3 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.estatus { border-top-color: var(--sep-2); }
.roundup { font-family: var(--ui); letter-spacing: .04em; background: var(--card); border: 1px solid var(--gold-dim); border-radius: var(--r); }
@media (max-width: 640px) {
  .eh .in { padding: 22px var(--gutter) 16px; }
  body.liveround .eh .in { padding: 16px var(--gutter) 10px; }
  .eh-won .in { padding-top: 22px; padding-bottom: 18px; }
  .lk-name { font-size: clamp(30px, 10.4vw, 44px); white-space: normal; }
  body.liveround .lk-name { font-size: 26px; }
  .lk-tag { font-size: 12px; letter-spacing: .06em; }
}

/* ---- winner state: gold + crown + the word (BRAND-SYSTEM.md "Winner state") ---- */
.crown { display: inline-block; flex: none; width: 1.1em; height: 1.1em; margin-right: .35em; vertical-align: -.16em; color: var(--gold); }
.won-k, .po-ck, .es-k { display: inline-flex; align-items: center; }
.won-k { font: 600 15px/1.2 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.won-k .crown { width: 20px; height: 20px; }
.won-name { font-family: var(--display); font-weight: 700; letter-spacing: -.01em; text-transform: none; color: var(--ink); }
.won-id { font: 600 14px/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; }
.won-pid { font: 500 19px/1.3 var(--ui); letter-spacing: 0; color: var(--ink-2); }   /* a Playing ID reads as an ID, not a second headline */
@media (max-width: 640px) { .won-pid { font-size: 16px; } }
/* stress test (Oct 29), narrowest phones: Inter sets a little wider than the old system font */
@media (max-width: 360px) {
  .findme .fl { flex-basis: 100%; }                          /* Find me above its list, so "Choose your name…" isn't clipped */
  body.live .pctl .views .chip { padding: 0 9px; font-size: 13px; line-height: 1.2; }   /* both filter labels fit; never clipped */
  .pssortrow { flex-wrap: wrap; }                            /* Sort by list full width, the order button under it */
  .pssortrow select { flex-basis: 100%; }
}
.stand .sub-note.champ { display: inline-flex; align-items: center; color: var(--gold); font-weight: 600; }
.stand tr.first td { background: rgba(var(--acc-rgb), .06); }
.stand tr.me td { background: rgba(var(--acc-rgb), .1); }
.pair.me { background: rgba(var(--acc-rgb), .08); }
.pill.champ { display: inline-flex; align-items: center; color: var(--gold); border-color: var(--gold-dim); }
.po .tag.gold, .eh-won .tag.gold { display: inline-flex; align-items: center; }
/* the champion card: navy with a gold top line; the felt photograph is off */
body.live .po-won { background: var(--card); border-color: var(--line-2); box-shadow: none; }
.po-won::before { background: var(--gold); opacity: 1; }
.po-won::after { content: none; }
.po-champ { padding: 28px 28px 16px; }
@media (max-width: 760px) { .po-champ { padding: 22px 18px 12px; } }
#live .po-ck { font: 600 14px/1.2 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.po-cn { font-family: var(--display); letter-spacing: -.01em; text-transform: none; color: var(--ink); }
.po-pid { font-family: var(--ui); font-weight: 500; letter-spacing: 0; }

/* ---- reading pages (Past Showdowns, Player Records, Rules, sign-up): the same hero, flat ---- */
.idhero { background: var(--card); }
.idhero::before { background: var(--gold); opacity: .8; }
.idhero .kk { font: 600 13px/1.2 var(--ui); letter-spacing: .08em; text-shadow: none; }
.idhero h1, .livehero h1 { font-family: var(--display); letter-spacing: -.01em; text-transform: none; }
.pshero::after { content: none; }            /* the second perforation (Records / Past Showdowns hero) */
.pstand main h2, .rulespage h1, .rulespage h2, .signuppage .done h2, .signuppage .sustate h2 {
  font-family: var(--display); font-weight: 700; letter-spacing: -.01em; text-transform: none; color: var(--ink); }
.psfind label, .pssort label, .career, .fin, .ptable td.num::before, .ptable .hbtn, .rulespage h3, .rtag, .set, .rtable thead th,
.rtable.compare td::before, .rjump-h, .signuppage .field label, .signuppage .playerlink h3, .signuppage .nexthead {
  font-family: var(--ui); font-weight: 600; letter-spacing: .06em; }
.rjump a, .rback a { font: 600 15px/1.15 var(--ui); letter-spacing: 0; text-transform: none; }
.rulespage .rplayoff { border-color: var(--gold-dim); box-shadow: none; }
.ct.title .crown, .fin.title .crown { margin-right: 6px; }


/* ======================================================================================================================
   SECOND PASS (Oct 29): composition. Three kinds of surface, used on purpose:
   1. Featured: a full-width tonal band (the event result, the event in progress, the page heading). No box around it.
   2. Data: one flat panel per data set (pairings, standings, the records table, the event rows). Nothing nested inside.
   3. Supporting: explanations sit on the page itself, smaller and quieter, under one hairline. No panel.
   ====================================================================================================================== */
body.live { --band: linear-gradient(180deg, #101b29 0%, #0c1520 58%, var(--bg) 100%); --plate: linear-gradient(180deg, #1c2b3d 0%, #152231 100%); --rc: 10px; }

/* ---- 1. featured band ---- */
.herowrap { background: var(--band); border-bottom: 1px solid var(--line); }
.herowrap:has(.eh-won) { background: radial-gradient(640px 320px at 18% 38%, rgba(var(--acc-rgb), .09), rgba(var(--acc-rgb), 0) 70%), var(--band); }

/* ---- the result feature (a finished event with one champion) ---- */
.eh-won .in { padding-top: 40px; padding-bottom: 36px; }
.eh-won .hero-text.rf { max-width: none; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, .9fr); grid-template-areas: "main plate" "road plate"; gap: 0 56px; align-items: start; }
.eh-won .rf.rf-shared { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "road"; }
.rf-main { grid-area: main; min-width: 0; }
.rf-road { grid-area: road; min-width: 0; }
.rf-plate { grid-area: plate; }
.rf-main .won-id { font: 600 13px/1.2 var(--ui); letter-spacing: .1em; }
.rf-main .evname { margin: 6px 0 0; font: 500 16px/1.3 var(--ui); letter-spacing: 0; color: var(--muted); }
.rf-main .evname .evdate { color: var(--muted); }
.rf-main .won-h { margin: 30px 0 0; }
.won-k { gap: 0; padding-bottom: 10px; font-size: 14px; letter-spacing: .12em; }
.won-name { margin-top: 0; font: 700 clamp(46px, 5.4vw, 76px)/1 var(--display); letter-spacing: -.02em; color: var(--ink); text-wrap: balance; }
.won-name.long { font-size: clamp(34px, 3.9vw, 54px); line-height: 1.04; }
.won-names.shared .won-name { font-size: clamp(32px, 3.4vw, 46px); }
.won-pid { margin-top: 10px; }
.rf-road { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--sep); }
.rf-road .won-how { margin: 0; max-width: 58ch; color: var(--ink-2); }
.rf-road .won-rec { margin-top: 14px; }
.rf-road .po-path { margin: 14px 0 0; border-top: 0; }
.rf-road .evnext { margin-top: 6px; }
/* the plate: how the title was decided, on a raised surface with the one gold edge */
.rf-plate { position: relative; margin-top: 6px; padding: 18px 20px 16px; border: 1px solid #2f4258; border-radius: var(--rc); background: var(--plate);
  box-shadow: 0 1px 0 rgba(228,232,237,.06) inset, 0 22px 44px rgba(0,0,0,.34); }
.rf-plate::before { content: ""; position: absolute; left: 20px; right: 20px; top: -1px; height: 2px; background: var(--gold); border-radius: 2px; }
.rf-k { margin: 0 0 6px; font: 600 12px/1.2 var(--ui); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.rf-final { list-style: none; margin: 0; padding: 0; }
.rf-final li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--sep); }
.rf-who { display: flex; flex-direction: column; min-width: 0; }
.rf-nm { font: 600 18px/1.25 var(--ui); color: var(--ink); overflow-wrap: anywhere; }
.rf-pid { font-size: 13px; color: var(--muted); overflow-wrap: break-word; }
.rf-res { flex: none; padding: 3px 9px; border: 1px solid var(--line-2); border-radius: 999px; font: 600 12px/1.3 var(--ui); letter-spacing: .04em; color: var(--ink-2); }
.rf-w .rf-res { border-color: var(--gold-dim); color: var(--gold); }
.rf-l .rf-nm { color: var(--ink-2); font-weight: 500; }
.rf-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 14px 0 0; }
.rf-facts div { min-width: 0; }
.rf-facts dt { font: 600 11px/1.2 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.rf-facts dd { margin: 4px 0 0; font: 700 24px/1 var(--ui); font-variant-numeric: tabular-nums; color: var(--ink); }
@media (max-width: 860px) {
  .eh-won .hero-text.rf { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "plate" "road"; }
  .rf-plate { margin-top: 24px; }
}
@media (max-width: 640px) {
  .eh-won .in { padding-top: 24px; padding-bottom: 22px; }
  .rf-main .won-h { margin-top: 20px; }
  .won-name { font-size: clamp(36px, 10.5vw, 46px); }
  .won-name.long { font-size: clamp(28px, 8vw, 34px); }
  .rf-plate { padding: 16px 16px 14px; }
  .rf-plate::before { left: 16px; right: 16px; }
  .rf-facts dd { font-size: 21px; }
}

/* ---- the event in progress: the identity on the left, the state as a plate on the right ---- */
@media (min-width: 901px) {
  body.liveround .eh .hero-text { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 420px); column-gap: 48px; align-items: center; }
  body.liveround .eh .hero-text > * { grid-column: 1; }
  body.liveround .eh .hero-text > .estatus { grid-column: 2; grid-row: 1 / span 4; margin: 0; padding: 18px 20px; border: 1px solid #2f4258; border-radius: var(--rc); background: var(--plate); box-shadow: 0 18px 40px rgba(0,0,0,.3); }
  body.liveround .eh .hero-text > .estatus::before { left: 20px; right: auto; top: -1px; width: 96px; }
  body.liveround .lk-name { font-size: clamp(48px, 4.6vw, 68px); }
}
body.liveround .eh .in { padding-top: 30px; padding-bottom: 26px; }
/* the latest result: a line, not a box */
.latest, body.liveview .latest:not(.flash) { margin: 0 0 18px; padding: 2px 0 2px 14px; background: none; border: 0; border-left: 2px solid var(--gold); border-radius: 0; }
/* Find me: a labelled control in the panel's toolbar, not a box inside the box */
.findme { margin: 12px 0 4px; padding: 0; border: 0; background: none; }

/* ---- 2. data surfaces ---- */
body.live .card, body.liveview .card:not(.po-won) { border-radius: var(--rc); border-color: #26374b; }
.cols { gap: 24px; }
.secthead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin: 0 0 14px; }
.secthead h2 { margin: 0; font: 700 24px/1.15 var(--display); letter-spacing: -.01em; color: var(--ink); }

/* ---- 3. supporting explanations: on the page, quieter, under one hairline ---- */
body.live .card.howto { margin-top: 44px; padding: 22px 0 0; background: none; border: 0; border-top: 1px solid var(--line-2); border-radius: 0; box-shadow: none; }
body.live .howto h2 { font-size: 18px; color: var(--ink-2); }
body.live .howto .rlist { columns: 2 340px; column-gap: 40px; font-size: 15px; color: var(--muted); }
body.live .howto .rlist li { break-inside: avoid; }
body.live .howto .rlist b { color: var(--ink-2); }

/* ---- page heading on the reading pages: the featured band, no panel ---- */
body.pstand main { padding-top: 0; }
body.pstand .pshero, body.pstand .pshero.idhero { margin: 0 calc(50% - 50vw) 28px; padding: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: var(--band); box-shadow: none; overflow: visible; }
body.pstand .pshero { display: block; }
body.pstand .pshero::before { content: none; }
body.pstand .pshero .hero-text { width: 100%; max-width: var(--max); margin: 0 auto; padding: 30px var(--gutter) 26px; box-sizing: border-box; }   /* lines up with main */
body.pstand.showdowns .pshero .hero-text { max-width: 1100px; }
body.pstand .pshero h1 { font-size: clamp(36px, 4.6vw, 52px); }
body.pstand .pshero .kk { color: var(--gold); }

/* ---- Past Showdowns: the event summary ---- */
body.pstand.showdowns main { max-width: 1100px; }
.sdlist { display: grid; gap: 10px; margin: 0; }
.sd, .sd:first-child { padding: 0; border: 0; }
.sx { display: grid; grid-template-columns: 76px minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr) 176px; grid-template-areas: "when ev win res act"; gap: 0 24px; align-items: center;
  padding: 18px 20px; background: var(--card); border: 1px solid #26374b; border-radius: var(--rc); }
.sd.is-latest .sx { position: relative; padding-top: 22px; padding-bottom: 22px; background: var(--plate); border-color: #2f4258; box-shadow: 0 18px 40px rgba(0,0,0,.28); }
.sd.is-latest .sx::before { content: ""; position: absolute; left: 20px; width: 64px; top: -1px; height: 2px; background: var(--gold); border-radius: 2px; }
.sx-when { grid-area: when; margin: 0; font: inherit; }
.sx-when > span[aria-hidden] { display: flex; flex-direction: column; align-items: flex-start; }
.sx-dow, .sx-mon { font: 600 12px/1.2 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sx-day { margin: 2px 0 3px; font: 700 40px/1 var(--display); letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.sx-when.nodate { font: 600 14px/1.3 var(--ui); color: var(--muted); }
.sx-ev { grid-area: ev; min-width: 0; }
.sx-tag { margin: 0 0 4px; font: 600 11px/1.2 var(--ui); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.sx-title { margin: 0; font: 700 19px/1.2 var(--display); color: var(--ink); overflow-wrap: anywhere; }
.sx .smeta { margin: 4px 0 0; font-size: 14px; }
.sx-win { grid-area: win; min-width: 0; }
.sx-win .champs { margin: 0; gap: 10px; }
.sx-win .champs li { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.sx-k { display: inline-flex; align-items: center; margin-bottom: 4px; font: 600 12px/1.2 var(--ui); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.sx-nm { font: 700 22px/1.15 var(--display); letter-spacing: -.01em; color: var(--ink); overflow-wrap: anywhere; }
a.sx-link { text-decoration: none; }   /* a champion's or runner-up's name opens their Player Records (Nov 11) */
a.sx-link:hover, a.sx-link:focus-visible { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--silver-lo); }
.sx-pid { font-size: 14px; color: var(--muted); overflow-wrap: break-word; }
.sx-win.none .nochamp { margin: 0; }
.sx-res { grid-area: res; min-width: 0; }
.sx-rec { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 6px; margin: 0; }
.sx-rec .crec { font: 700 22px/1 var(--ui); font-variant-numeric: tabular-nums; color: var(--ink); }
.sx-rec small { flex-basis: 100%; margin-top: 4px; font-size: 13px; color: var(--muted); }
.sx-sep { color: var(--muted); }
.sx-ru { display: flex; flex-direction: column; margin: 12px 0 0; }
.sx-rk { font: 600 11px/1.2 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sx-ru-nm { margin-top: 2px; font-size: 15px; color: var(--ink-2); overflow-wrap: break-word; }
.sx-ru .sx-pid { font-size: 13px; }
.sx-act { grid-area: act; }
.sx-act .sdlink { width: 100%; white-space: nowrap; }
@media (max-width: 980px) {
  .sx { grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "when ev ev" "when win res" "when act act"; gap: 14px 20px; align-items: start; }
  .sx-act { justify-self: start; }
  .sx-act .sdlink { width: auto; }
}
@media (max-width: 560px) {
  .sx { grid-template-columns: 64px minmax(0, 1fr); grid-template-areas: "when ev" "win win" "res res" "act act"; gap: 14px; padding: 16px; }
  .sx-mon { white-space: nowrap; font-size: 11px; }
  .sd.is-latest .sx { padding-top: 18px; padding-bottom: 18px; }
  .sd.is-latest .sx::before { left: 16px; }
  .sx-day { font-size: 32px; }
  .sx-win { padding-top: 14px; border-top: 1px solid var(--sep); }
  .sx-nm { font-size: 21px; }
  .sx-act .sdlink { width: 100%; }
}

/* ---- Player Records: the table stays first; a toolbar, quieter figures, one emphasised column, a clear open row ---- */
.pcard { padding: 22px 22px 14px; }
@media (min-width: 761px) {
  .pcard .pshead { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .pcard .psfind { display: grid; grid-template-columns: auto minmax(0, 420px) minmax(0, 1fr); align-items: center; gap: 0 14px; margin: 18px 0 6px; padding: 12px 0; border-top: 1px solid var(--sep); border-bottom: 1px solid var(--sep); }
  .pcard .psfind label { margin: 0; }
  .pcard .psmatch { margin: 0; }
}
.psqrow input { background: var(--bg); border-color: var(--silver-lo); border-radius: var(--r); }
.ptable th { padding-top: 12px; padding-bottom: 10px; color: var(--muted); }
.ptable th .sorth.on { color: var(--gold); }
.ptable th .arr { border-top-color: var(--gold); }
.ptable td { padding-top: 12px; padding-bottom: 12px; }
.ptable td.num { font-weight: 500; color: var(--ink-2); }
.ptable td.ev, .ptable td.ch { font-weight: 700; color: var(--ink); }
.ptable td.ch.title { color: var(--gold); }
.ptable td.num.zero { color: var(--dim); font-weight: 500; }
.ptable .pname .nm { font: 600 17px/1.25 var(--ui); letter-spacing: 0; }
@media (min-width: 761px) { .ptable td.pl .pid { margin-top: 2px; font-size: 13px; } }   /* the name is one link block now (Nov 13); phones keep records.css's own card spacing */
.ptable tr.psrow:hover td { background: rgba(228,232,237,.025); }
.ptable tr.psrow.isopen td { background: rgba(var(--acc-rgb), .06); border-bottom-color: transparent; }
.ptable tr.psrow.isopen td:first-child { box-shadow: inset 3px 0 0 var(--gold); }
.ptable tr.hist td { padding: 0 0 18px; background: rgba(var(--acc-rgb), .06); }
.hframe { margin: 0 12px 0 14px; padding: 14px 18px 6px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg); box-shadow: none; }
body.live.pstand:not(.showdowns) main, body.pstand:not(.showdowns) .pshero .hero-text { max-width: 1040px; }   /* Records: seven columns read as rows, not a spread */
@media (max-width: 760px) {   /* phones: the row is a card, so the open state tints the card, not each cell */
  .ptable tr.psrow.isopen { padding-left: 12px; background: rgba(var(--acc-rgb), .06); box-shadow: inset 3px 0 0 var(--gold); }
  .ptable tr.psrow.isopen td, .ptable tr.psrow:hover td, .ptable tr.hist td { background: none; }
  .ptable tr.psrow.isopen td:first-child { box-shadow: none; }
  .hframe { margin: 0; }
}

/* ======================================================================================================================
   LIVE VIEW TITLE (owner, Oct 29): SUNDAY SHOWDOWN at the top of /live, in the condensed face, with the tagline.
   Gold rule (owner, Oct 29): gold is Sunday Showdown's accent for active and in-progress states (links, tabs, filters,
   progress, the latest result, card edges). A winner is gold PLUS a label or icon (crown, Champion, Won, Winner), never
   colour alone. (A short-lived "gold for winners only" variant was reverted the same day.)
   ====================================================================================================================== */
/* ---- the title: SUNDAY in silver, SHOWDOWN in gold, condensed capitals, then the tagline ---- */
body.liveview .lk-name { margin: 0; padding: 0; border: 0; filter: none; font: 700 clamp(48px, 6.2vw, 88px)/.9 var(--display-cn, "Heros Cn", "Arial Narrow", sans-serif);
  letter-spacing: .01em; text-transform: uppercase; white-space: nowrap; }
body.liveview .lk-s { color: #e4e8ed; }
body.liveview .lk-g { color: var(--gold); }
body.liveview .lk-tag { margin: 12px 0 0; font: 500 13px/1.3 var(--ui); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
body.liveround .lk-name { font-size: clamp(40px, 5.6vw, 80px); }
@media (min-width: 901px) { body.liveround .lk-name { font-size: min(72px, calc((100vw - 560px) / 9.2)); } }   /* shares its row with the round plate */
/* a finished event: the title is its own row above the champion and the Championship final */
body.liveview .eh-won .hero-text.rf { grid-template-areas: "title title" "main plate" "road plate"; }
body.liveview .eh-won .rf.rf-shared { grid-template-areas: "title" "main" "road"; }
body.liveview .rf-title { grid-area: title; margin: 0 0 22px; }
body.liveview .rf-main .evname { margin-top: 0; }
body.liveview .rf-main .won-h { margin-top: 22px; }
body.liveview .rf-plate { margin-top: 0; }
@media (max-width: 860px) {
  body.liveview .eh-won .hero-text.rf { grid-template-areas: "title" "main" "plate" "road"; }
  body.liveview .rf-plate { margin-top: 24px; }
}
@media (max-width: 640px) {
  body.liveview .lk-name, body.liveround .lk-name { font-size: min(44px, calc((100vw - 32px) / 9.2)); }   /* the title is 8.9em wide: fits the column from 320px up */
  body.liveview .lk-tag { margin-top: 8px; font-size: 11px; letter-spacing: .16em; }
  body.liveview .rf-title { margin-bottom: 16px; }
  body.liveview .rf-main .won-h { margin-top: 16px; }
  body.liveround .lk-tag { display: none; }                 /* a live round on a phone: the matches stay high */
}

/* ---- the header's account (owner, Nov 1; account.js): "Sign in with Discord", or the player's name opening a small panel.
   On phones the same items are plain rows in the Menu (no second dropdown). ---- */
.top .acct { position: relative; display: flex; align-items: center; margin-left: 4px; }
.top .acct[hidden] { display: none; }
.top .acct-in { min-height: 44px; padding: 10px 16px; white-space: nowrap; }
body.live .top .acct-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; max-width: 16em; padding: 0 14px; font: 600 15px/1 var(--ui); }
.top .acct-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top .acct-chev { flex: none; width: 7px; height: 7px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: translateY(-2px) rotate(45deg); transition: transform .15s ease; }
.top .acct.open .acct-chev { transform: translateY(2px) rotate(-135deg); }
body.live .top .acct.open .acct-btn { border-color: var(--gold-dim); }
.top .acct-panel { display: none; position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; min-width: 15rem; max-width: min(22rem, calc(100vw - 32px)); padding: 6px; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: 0 14px 28px rgba(0, 0, 0, .45); }
.top .acct.open .acct-panel { display: block; }
.top .acct-who { margin: 0; padding: 10px 12px 8px; font: 400 14px/1.4 var(--ui); color: var(--muted); overflow-wrap: break-word; }
.top .acct-who b { color: var(--ink); font-weight: 600; }
.top .acct-note { margin: 0; padding: 4px 12px 8px; font: 400 14px/1.4 var(--ui); color: var(--ink-2); }
body.live .top .acct-item { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 0 12px; border: 0; border-radius: var(--r); background: none; font: 500 15px/1.2 var(--ui); color: var(--ink); text-align: left; text-decoration: none; justify-content: flex-start; }
body.live .top .acct-item:active { background: var(--raise); }
.top .acct-out { border-top: 1px solid var(--line) !important; border-radius: 0 0 var(--r) var(--r) !important; margin-top: 4px; }
@media (hover: hover) and (pointer: fine) { body.live .top .acct-item:hover { background: var(--raise); color: var(--ink); } }
@media (prefers-reduced-motion: reduce) { .top .acct-chev { transition: none; } }
@media (max-width: 960px) {
  /* phones and tablets: no dropdown; the account rows follow the page links inside the Menu */
  .top .acct { display: block; margin: 8px 0 0; padding-top: 8px; border-top: 1px solid var(--line-2); }
  body.live .top .acct-btn { display: none; }
  .top .acct-panel { display: block; position: static; min-width: 0; max-width: none; padding: 0; background: none; border: 0; box-shadow: none; }
  .top .acct-who { padding: 6px 2px; }
  .top .acct-note { padding: 0 2px 8px; }
  body.live .top .acct-item { min-height: 48px; padding: 0 2px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 16px; }
  .top .acct-out { border-top: 0 !important; margin-top: 0; }
  .top .acct-in { display: flex; justify-content: center; width: 100%; margin-top: 4px; }
}
#player { scroll-margin-top: calc(var(--pinh, 120px) + 8px); } /* "My Showdown" lands the card below the pinned bars */

/* ---- The Showdown format on the homepage (Nov 10; Tanmay: bring the format out). Between events the line under the name
   says what the Showdown is (an event's own hero keeps the tagline there instead: one line, never both), and the three steps
   and the last result follow the next event and its sign-up. ---- */
/* nothing announced: the name and the format lead; the status is said quietly, in sentence case */

/* The tournament at a glance (owner and Tanmay, Nov 12; public/briefing.js): one sequence of four steps, start to finish.
   Each step: its drawing, its name, what it is, then what you do as short lines. One line for the whole event closes it.
   The same rules draw it on the page and in the live event's dialog (body.live, not #live). */
.fmt { margin: 22px 0 44px; }
.fmt-top { display: block; }   /* the heading, then its one line underneath (owner, Nov 11) */
body.live .fmt h2 { margin: 0; font: 700 clamp(24px, 2.4vw, 30px)/1.1 var(--display); letter-spacing: -.01em; text-transform: none; color: var(--ink); }
.fmt-lede { margin: 8px 0 0; max-width: 62ch; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
/* four steps in reading order: one row on wide screens, two by two in between, one column on phones */
.fmt-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 36px; margin: 24px 0 0; padding: 0; list-style: none; }
.fmt-step { position: relative; }
.fmt-ic { display: block; height: 40px; color: var(--silver-hi); }
.fmt-ic svg { display: block; width: 40px; height: 40px; overflow: visible; }   /* desktop: the pictures carry the section (Nov 10) */
.fmt-step.title .fmt-ic { color: var(--gold); }
/* the parts the one-time icon motion moves (public/format-motion.js): each turns or grows about its own box; the check
   mark of the first step does not move */
.fmt-svg .ic-cue, .fmt-svg .ic-ball, .fmt-svg .ic-bar, .fmt-svg .ic-cup { transform-box: fill-box; }
.fmt-svg .ic-ball, .fmt-svg .ic-cup { transform-origin: center; }
.fmt-svg .ic-bar { transform-origin: 50% 100%; }
body.live .fmt-step h3 { margin: 14px 0 0; font: 700 19px/1.25 var(--display); letter-spacing: -.01em; text-transform: none; color: var(--ink); }
.fmt-step p { margin: 6px 0 0; max-width: 36ch; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
/* what you do: short lines in the full ink, each its own line, so a player can scan them */
.fmt-do { margin: 10px 0 0; padding: 0; list-style: none; max-width: 36ch; }
.fmt-do li { position: relative; margin: 4px 0 0; padding-left: 16px; font-size: 15px; line-height: 1.45; color: var(--ink); }
.fmt-do li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--silver); }
.fmt-do b { color: var(--ink); }
.fmt-do .hlink { font-weight: 700; white-space: nowrap; }   /* (Nov 14) short labels: never split across lines */
/* one line for the whole event: the live dot says "this page is live" */
.fmt-keep { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px; margin: 28px 0 0; padding: 12px 20px; border-radius: var(--rc); background: var(--card); }
.fmt-keep p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.fmt-keep-t p { padding-left: 18px; }   /* (owner, Nov 14) every line, wrapped or not, starts after the live dot (8px + 10px) */
.fmt-keep-t p:first-child { text-indent: -18px; }
.fmt-keep .fmt-help { margin-top: 6px; }   /* help: what to do when a match goes wrong */
.fmt-keep b { color: var(--ink); }
.fmt-keep .hlink { display: inline-flex; align-items: center; min-height: 44px; }
.fmt-keep-t .hlink { display: inline; min-height: 0; text-indent: 0; }   /* (Nov 14) Home's "Keep Live View open": a link inside the sentence, not shifted by its hanging indent */
.fmt-live { display: inline-block; position: relative; top: -1px; width: 8px; height: 8px; margin-right: 10px; vertical-align: middle; }
.fmt-live i { display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(var(--acc-rgb), .22); }
@media (max-width: 1100px) and (min-width: 761px) { .fmt-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; } }
.lr-go { display: inline-flex; align-items: center; min-height: 44px; }

.lastres { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) auto; align-items: center; gap: 8px 32px; margin: 0 0 28px; padding: 16px 22px; background: var(--card); border-radius: var(--rc); }
:is(#live, #home) .lr-k { margin: 0; font: 600 13px/1.2 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lr-name { margin: 4px 0 0; font: 700 19px/1.25 var(--display); letter-spacing: -.01em; color: var(--ink); overflow-wrap: anywhere; }
.lr-part { display: inline-block; max-width: 100%; }   /* "· Week 3" stays together; a part longer than the line still wraps inside itself */
.lr-date { margin-left: .5em; font: 400 14px/1.25 var(--ui); letter-spacing: 0; color: var(--muted); white-space: nowrap; }
.lr-out { margin: 0; font-size: 16px; line-height: 1.35; color: var(--ink); overflow-wrap: anywhere; }
.lr-lab { margin-right: .55em; font-weight: 600; color: var(--gold); white-space: nowrap; }
.lr-who { font-weight: 700; }
.lr-meta { margin: 3px 0 0; font-size: 14px; color: var(--muted); }
.lr-go { justify-self: end; }
@media (max-width: 760px) {
  .fmt { margin: 18px 0 32px; }
  .fmt-steps { grid-template-columns: minmax(0, 1fr); gap: 22px; margin-top: 20px; }
  .fmt-ic { height: 32px; }
  .fmt-ic svg { width: 32px; height: 32px; }
  .fmt-step { display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 14px; }
  .fmt-ic { grid-row: 1 / span 3; }
  body.live .fmt-step h3 { grid-column: 2; margin: 3px 0 0; font-size: 18px; }
  .fmt-step p, .fmt-do { grid-column: 2; max-width: none; }
  .fmt-keep { padding: 12px 16px; }
  .lastres { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 14px 16px; }
  .lr-go { justify-self: start; }
  .lr-date { display: block; margin: 3px 0 0; }   /* phones: the day on its own line */
}
@media (max-width: 640px) {
}

/* ---- The pitch under the name between events (owner and Tanmay, Nov 11): the hero is the brand, nothing else ---- */
/* (second pass) The pitch sells the format, so it is the hero's second voice, not a subtitle: about half the title's
   size, in the heading face, tight, with "One champion." in the champion's gold (the only gold besides the title). One
   supporting line under it at reading size. No motion: players open this page often. */
body.liveview .lk-pitch { margin: 18px 0 0; font: 700 clamp(28px, 3vw, 42px)/1.08 var(--display); letter-spacing: -.025em; text-transform: none; color: var(--ink); text-wrap: balance; }
.lk-pitch > span { white-space: nowrap; }
.lk-pitch .lk-win { color: var(--gold); }
body.liveview .lk-sub { margin: 12px 0 0; max-width: 62ch; font: 500 clamp(16px, 1.35vw, 18px)/1.45 var(--ui); letter-spacing: 0; color: var(--ink-2); text-wrap: pretty; }
@media (max-width: 640px) {
  body.liveview .lk-pitch { margin-top: 12px; font-size: clamp(24px, 7.2vw, 30px); line-height: 1.1; }
  body.liveview .lk-sub { margin-top: 10px; font-size: 16px; }
}

/* ---- During play (owner, Nov 11): a compact brand header (the name and the small pitch), so the round's status and the
   player's match come first. Phones were already compact. The finished champion page keeps its own layout. ---- */
@media (min-width: 901px) {
  body.liveround .lk-name { font-size: 44px; }
  body.liveround .lk-tag { margin-top: 8px; font-size: 12px; }
  body.liveround .eh .in { padding-top: 20px; padding-bottom: 18px; }
}

/* ---- Hero art between events, desktop only (owner, Nov 10). The 8brCam aperture key visual (the main site's hero art,
   as a silver aperture lit by gold light: /img/hero-aperture-showdown.webp, 2000x667, the owner's render of Nov 11) fills the right side of the hero when nothing is
   live: no event, or the next event. Flush right, hanging from the bottom, fading into the navy on the left and top, so the
   title and the event's facts keep the calm left side. Never on a live or finished event (that side holds the round or the
   result), and never at 1000px or narrower: behind the text on a phone it only muddied it, and a phone doesn't fetch it.
   The file is 3:1; it is drawn a little taller than the band (1.067) and a touch low, so the aperture keeps the size it
   had and the film strip sits on the band's bottom edge. Decoration only: nothing is said by the picture alone. ---- */
@media (min-width: 1001px) {
  .eh-empty { position: relative; isolation: isolate; overflow: hidden; --art-h: clamp(300px, 26.25vw, 400px);
    /* the picture's box (2000x667, drawn 1.067 band-heights tall, 3.5% low) and place, shared by the picture, its mask,
       the opening clip and the pool, so all four stay registered at every width */
    --pic-size: calc(var(--art-h) * 3.2) calc(var(--art-h) * 1.067);
    --pic-pos: right var(--art-r, -80px) bottom calc(var(--art-h) * -.035);
    /* The blend (Nov 13 polish). The picture dissolves by its own alpha; nothing is painted over it. Before, navy fades sat
       inside the art's filter, so their navy came out a few steps off the band's own and the top fade blended the two into
       faint stripes; and the picture's flat dark ground, heavily compressed (8px blocks), showed as a darker box before the
       blades. Now the picture is opaque only from the blades' outer tips (52% of its width), its ground and the long blade
       lines fade out to the left, and the darkness behind the aperture is a CSS pool in the picture's own ground colour (the
       file's rgb(2 9 20) after the filter), so the two meet without a step and no compressed ground is left to see. Eased
       stops, not a straight ramp, so neither fade shows an edge. */
    --pic-mask: linear-gradient(90deg, transparent 26%, rgb(0 0 0 / .08) 32%, rgb(0 0 0 / .25) 37%, rgb(0 0 0 / .55) 42%, rgb(0 0 0 / .85) 47%, #000 52%,
      #000 90%, rgb(0 0 0 / .45) 95.5%, transparent 100%);
    /* The film strip (the picture's bottom 11.2%: its highlight line, perforations every ~43.5px, the dark edge below) has
       its own ending instead of riding the long fade above, where it trailed in faintly under the text. It starts in the gap
       between two perforations (41.2% of the picture) and comes to full strength one perforation later (45.6%), so no hole
       is ever cut in half and the start reads as placed, not cropped. Its right end follows the picture's. */
    --strip-mask: linear-gradient(90deg, transparent 41.2%, rgb(0 0 0 / .3) 42.8%, rgb(0 0 0 / .75) 44.4%, #000 45.6%,
      #000 90%, rgb(0 0 0 / .45) 95.5%, transparent 100%);
    /* the two parts of the picture's mask, in the picture's box: above the strip, and the strip */
    --pic-masks: var(--pic-mask) right var(--art-r, -80px) bottom calc(var(--art-h) * -.035 + var(--art-h) * 1.067 * .112) / calc(var(--art-h) * 3.2) calc(var(--art-h) * 1.067 * .888) no-repeat,
      var(--strip-mask) var(--pic-pos) / calc(var(--art-h) * 3.2) calc(var(--art-h) * 1.067 * .112) no-repeat;
    /* (owner, Nov 14: "pixellation" right of SHOWDOWN) a fine random grain over the pool and the band, under the art: the
       pool and the band are gentle gradients across a few levels of near-black, which Chrome dithers in a regular dot grid
       (and the fade shows it through). The grain, about one level either way and zero on average, turns that grid into
       even noise the eye reads as a smooth fade. The art covers it wherever it is opaque. */
    background: url("/img/hero-grain.png") 0 0 / 128px 128px repeat,
      linear-gradient(90deg, rgb(2 8 17 / 0) 18%, rgb(2 8 17 / .12) 24%, rgb(2 8 17 / .35) 30%, rgb(2 8 17 / .65) 36%, rgb(2 8 17 / .9) 41%, rgb(2 8 17) 46%,
      rgb(2 8 17) 92%, rgb(2 8 17 / .5) 96.5%, rgb(2 8 17 / 0) 100%) var(--pic-pos) / var(--pic-size) no-repeat; }
  /* the brand band: the name and the pitch, centred beside the art, which sets the band's height */
  .eh-brand { --art-h: clamp(270px, 22vw, 330px); }
  .eh-brand .in { display: flex; align-items: center; min-height: var(--art-h); padding-top: 26px; padding-bottom: 30px; box-sizing: border-box; }
  .eh-empty::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background: url("/img/hero-aperture-showdown.webp") var(--pic-pos) / var(--pic-size) no-repeat;
    filter: saturate(.9) brightness(.9);
    -webkit-mask: linear-gradient(180deg, rgb(0 0 0 / 0) calc(100% - var(--art-h)), #000 calc(100% - var(--art-h) + 90px)), var(--pic-masks);
    -webkit-mask-composite: source-in, source-over, source-over;
            mask: linear-gradient(180deg, rgb(0 0 0 / 0) calc(100% - var(--art-h)), #000 calc(100% - var(--art-h) + 90px)), var(--pic-masks);
            mask-composite: intersect, add, add; }
  /* the band settles into the page below: a navy shade over the art's bottom edge (the film strip), drawn above the art but
     outside its filter, so its navy is the band's own */
  .eh-empty:not(.eh-brandtop)::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background: linear-gradient(0deg, #0a111c 0%, rgb(10 17 28 / .6) 6%, rgb(10 17 28 / 0) 24%); }
}

/* ---- The same hero art as a layer (owner, Nov 12: the aperture opening; Nov 14: the blade-light sweep; public/hero-art.js). On wide
   screens with motion allowed, the script draws the art itself so the opening clip and the accent can sit in it: the same
   picture, place, fades, filter and mask as the ::before above, which then steps aside (.has-art). Without the script, with
   reduced motion, or on phones, nothing here applies and the ::before (or no art) is exactly as before. ---- */
@media (min-width: 1001px) {
  .eh-empty.has-art::before { content: none; }
  .eh-art { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; filter: saturate(.9) brightness(.9);
    -webkit-mask-image: linear-gradient(180deg, rgb(0 0 0 / 0) calc(100% - var(--art-h)), #000 calc(100% - var(--art-h) + 90px));
            mask-image: linear-gradient(180deg, rgb(0 0 0 / 0) calc(100% - var(--art-h)), #000 calc(100% - var(--art-h) + 90px)); }
  .eh-art-frame { position: absolute; right: var(--art-r, -80px); bottom: calc(var(--art-h) * -.035); height: calc(var(--art-h) * 1.067); aspect-ratio: 2000 / 667; }
  .eh-art-frame > * { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
  .eh-art-pic { position: absolute; inset: 0;   /* exactly the ::before's picture: same box, same declaration, same mask */
    background: url("/img/hero-aperture-showdown.webp") var(--pic-pos) / var(--pic-size) no-repeat;
    -webkit-mask: var(--pic-masks);
            mask: var(--pic-masks); }
  /* the clip is 668 tall: its padding row falls below. Its box is the picture's, so the same two masks fit it as they are,
     and the opening dissolves into the band exactly as the picture it hands over to */
  .eh-art-frame video { object-fit: cover; object-position: top;
    -webkit-mask: var(--pic-mask) top / 100% 88.8% no-repeat, var(--strip-mask) bottom / 100% 11.2% no-repeat;
            mask: var(--pic-mask) top / 100% 88.8% no-repeat, var(--strip-mask) bottom / 100% 11.2% no-repeat; }
  /* the blade-light sweep only ever adds light, and fades out with the picture's own masks (as the clip does), so it can
     never show a frame edge */
  .eh-art-frame canvas { mix-blend-mode: plus-lighter;
    -webkit-mask: var(--pic-mask) top / 100% 88.8% no-repeat, var(--strip-mask) bottom / 100% 11.2% no-repeat;
            mask: var(--pic-mask) top / 100% 88.8% no-repeat, var(--strip-mask) bottom / 100% 11.2% no-repeat; }
  .eh-art-fades { display: none; }   /* the old navy fades: the mask and the pool do their work now */
  /* the words and the button keep one way of being drawn the whole time: Chrome draws anything above a playing video on
     its own layer, and without this the text's edges would change slightly as the clip starts and ends */
  .eh-empty.has-art .in, .eh-art-pause { will-change: transform; }
  /* (owner's recording, Nov 14) and the art is its own layer from its first paint too, with the clip already in it
     (hero-art.js setup), so nothing about the layers changes when the clip starts or ends: no tiles under the title have
     to be painted again at that moment (on a busy machine one showed for a frame as a flat dark block behind SHOWDOWN) */
  .eh-art { will-change: transform; }
  /* Pause animation: small and quiet, over the art's top right, clear of the title and the film strip */
  body.live .eh-art-pause { position: absolute; top: 12px; right: 16px; z-index: 2; min-height: 32px; padding: 0 12px;
    font: 600 13px/1 var(--ui); color: var(--ink-2); background: rgb(9 15 25 / .62); border: 1px solid var(--line-2); border-radius: var(--r); }
}
@media (max-width: 1000px) { .eh-art, .eh-art-pause { display: none; } }

/* ---- The brand band on every view, wide screens (owner, Nov 12: "Every view, compact in play"; live.js brandTop). Above a
   finished event's hero it is the full band; above a live round it is shorter (no supporting line) so the round status and
   the match stay near the top. Its height is fixed from the first frame, so nothing below moves when the art or the
   opening loads. The event's own hero then doesn't repeat the brand: its line stays for screen readers only. Phones and
   narrow windows: no band, exactly as before. ---- */
.brandwrap:empty { display: none; }
@media (max-width: 1000px) { .brandwrap { display: none; } }
@media (min-width: 1001px) {
  .eh-brandtop.eh-compact { --art-h: clamp(150px, 11vw, 168px); }
  .eh-brandtop.eh-compact .in { padding-top: 14px; padding-bottom: 14px; }
  .eh-brandtop.eh-compact .lk-sub { display: none; }
  body.liveview .eh-brandtop.eh-compact .lk-name { font-size: clamp(36px, 3.2vw, 46px); }
  body.liveview .eh-brandtop.eh-compact .lk-pitch { margin-top: 7px; font-size: clamp(24px, 2.05vw, 30px); letter-spacing: -.012em; }   /* a little larger and looser; the band keeps its height */
  /* Polish (Nov 12): the band and the event below it are one header: one ground, no darkened seam between them (the band
     keeps only its side fade), and the event's own hero tightens to what it adds */
  .brandwrap { background: #050b15; }   /* the artwork's own dark navy (filtered), so the picture sits in its ground */
  /* the side fade starts where the picture itself starts (its left edge is 3.2 band-heights left of its right edge, 80px past
     the band), so the picture's own edge never shows as a box at any width */
  /* Final composition (owner, Nov 12): the aperture sits on the page's content grid. Its ring's right edge (6% in from the
     picture's right edge, so .192 band-heights) lands on the right edge of the title's and the match panels' column; the
     picture, the light's layer, the fades and the still fallback all share this one offset, so the light stays on the ring */
  .brandwrap { container-type: inline-size; }
  /* (the picture's mask, in .eh-empty above, follows this offset, so both its edges dissolve into the band's ground). This
     band's ground is already within a few steps of the picture's own, so it needs no pool: one there reads as a box */
  .eh-brandtop { --art-r: calc(max(0px, (100cqw - var(--max)) / 2) + var(--gutter) - var(--art-h) * .192); }
  .eh-brandtop.eh-empty { background: none; }
  body.has-brandtop .herowrap { background: linear-gradient(180deg, #050b15 0%, var(--bg) 100%); }
  body.has-brandtop .herowrap:has(.eh-won) { background: radial-gradient(640px 320px at 18% 38%, rgba(var(--acc-rgb), .09), rgba(var(--acc-rgb), 0) 70%), linear-gradient(180deg, #050b15 0%, var(--bg) 100%); }
  /* a live round: one status row, no plate, in three groups (Nov 13 polish). Left: which event and that it is on (the name
     and date, the live flag under it, a pilot note under that). Centre: the current round, the largest thing in the row,
     with the tournament's progress (one slot per round) right under it. Right, quiet: the players and the guide. The round
     header below keeps the round's own results and their rail. The status block's box steps aside (display: contents) so
     its parts join the row's grid; the reading order stays the same. */
  body.liveround .herowrap .eh .in { padding-top: 14px; padding-bottom: 16px; }
  body.liveround .herowrap .eh .hero-text { display: grid; max-width: none; align-items: center; column-gap: 40px; row-gap: 2px;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-areas: "id rd me" "st rd gd" "pl sb gd"; }
  body.liveround .herowrap .eh .hero-text > .estatus { display: contents; }
  body.liveround .herowrap .eh .hero-text > .estatus::before { content: none; }   /* the plate's hairline: no plate here */
  body.liveround .herowrap .evid { grid-area: id; align-self: end; margin: 0; }
  body.liveround .herowrap .evname .evdate { color: var(--ink-2); }
  body.liveround .herowrap .estatus .es-top { grid-area: st; align-self: start; margin: 0; }
  body.liveround .herowrap .eh .pilot-chip { grid-area: pl; align-self: start; margin: 6px 0 0; }
  body.liveround .herowrap .estatus .es-head { grid-area: rd; justify-self: center; display: grid; justify-items: stretch; gap: 9px; margin: 0; }
  body.liveround .herowrap .estatus .es-sub, body.liveround .herowrap .estatus .es-state { grid-area: sb; justify-self: center; margin: 6px 0 0; text-align: center; }
  body.liveround .herowrap .estatus .es-meta { grid-area: me; justify-self: end; align-self: end; margin: 0; font-size: 14px; color: var(--muted); }
  body.liveround .herowrap .estatus .es-guide { grid-area: gd; justify-self: end; align-self: start; margin: 0; font-size: 14px; }
  body.live.liveround .herowrap .estatus.live .es-k, body.live.liveround .herowrap .estatus.done .es-k { font-size: clamp(36px, 3.1vw, 44px); line-height: 1; }
  body.liveround .herowrap .es-head .trk { flex: none; width: 100%; min-width: 200px; }
  /* a finished event: the champion leads; the result feature starts close under the band */
  body.has-brandtop .herowrap .eh-won .in { padding-top: 22px; }
  body.has-brandtop .herowrap .rf-main .won-h { margin-top: 16px; }
  /* Pause / Play animation: off the artwork, a small quiet control in the band's lower right corner; still a real,
     labelled button with the site's focus ring */
  body.live .eh-brandtop .eh-art-pause { top: auto; bottom: 10px; right: calc(max(0px, (100cqw - var(--max)) / 2) + var(--gutter)); min-height: 32px; padding: 0 11px;
    font-size: 13px; font-weight: 500; color: var(--ink-2); background: rgb(5 11 21 / .78); border-color: var(--line-2); }
  @media (hover: hover) { body.live .eh-brandtop .eh-art-pause:hover { color: var(--ink); border-color: var(--silver); } }
  body.liveround .eh-brandtop .hero-text { display: block; max-width: 900px; }   /* not the live hero's two-column grid */
  body.has-brandtop .herowrap .eh .lockup, body.has-brandtop .herowrap .rf-title {
    position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---- Emphasis (owner, Nov 10; visual review findings 1 and 3). Gold marks the one thing to do, and the champion.
   Between events and after an event, joining the community (or Sign up) is the gold button, so signing in is a quiet
   outlined button; the header keeps its own. During a live round signing in stays gold: it is how a player reaches
   their match. ---- */
.eh-empty .nsecondary .navlink.primary, .nextstep .nsecondary .navlink.primary { min-height: 48px; padding: 12px 22px; font-size: 16px; font-weight: 700; }
body:not(.liveround) #player .psignin-in { background: var(--raise); border-color: var(--line-2); color: var(--ink); font-weight: 600; }
@media (hover: hover) { body:not(.liveround) #player .psignin-in:hover { background: #22334a; border-color: var(--gold-dim); color: var(--ink); } }
body:not(.liveround) #player .psignin-in:active { background: #263a52; border-color: var(--line-2); color: var(--ink); box-shadow: none; }
/* A finished event with a champion: the champion's name is the largest thing on the page, in the champion's gold (with
   the crown and the word, as always); SUNDAY SHOWDOWN steps back to a small line that says whose event it was. */
body.liveview .eh-won .lk-name { font-size: 26px; line-height: 1; letter-spacing: .02em; }
body.liveview .eh-won .lk-tag { display: none; }
body.liveview .eh-won .rf-title { margin-bottom: 14px; }
.eh-won .won-name { font-size: clamp(56px, 6.6vw, 96px); line-height: .98; color: var(--gold); }
.eh-won .won-name.long { font-size: clamp(38px, 4.4vw, 60px); }
.eh-won .won-names.shared .won-name { font-size: clamp(34px, 3.8vw, 52px); }
@media (max-width: 640px) {
  body.liveview .eh-won .lk-name { font-size: 20px; }
  .eh-won .won-name { font-size: clamp(44px, 13vw, 56px); }
  .eh-won .won-name.long { font-size: clamp(30px, 8.6vw, 38px); }
  .eh-won .won-names.shared .won-name { font-size: clamp(28px, 8vw, 36px); }
}

/* ---- One frame (owner, Nov 10; finding 4). Past Showdowns and Player Records start at the same left edge as the header
   and every other page. Their lists keep the widths they read best at (the records table is rows, not a spread), now
   from that edge instead of centred on their own. ---- */
body.pstand.showdowns main, body.live.pstand:not(.showdowns) main,
body.pstand.showdowns .pshero .hero-text, body.pstand:not(.showdowns) .pshero .hero-text { max-width: var(--max); }
body.pstand.showdowns main > :not(.pshero) { max-width: 1020px; }
body.pstand:not(.showdowns) main > :not(.pshero) { max-width: 960px; }

/* ---- Scoreboard figures (owner, Nov 10; review finding 5). The condensed title face, until now used once, also sets the
   figures a scoreboard would: the day of an event, a record, a place, points, the records table, the result plate, and
   "Round 2 of 3". Words stay in Inter and Space Grotesk. A little larger than before, since the face is narrow. ---- */
body.live .sx-day, body.live .crec, body.live .hrec, body.live .stand td.rk, body.live .stand td.num.pts, body.live .ptable td.num,
body.live .rf-facts dd, body.live .estatus.live .es-k, body.live .estatus.done .es-k {
  font-family: var(--display-cn, "Heros Cn", "Arial Narrow", sans-serif); font-weight: 700; letter-spacing: .015em; font-variant-numeric: tabular-nums; }
body.live .sx-day { font-size: 46px; line-height: .95; }
body.live .crec { font-size: 26px; }
body.live .hrec { font-size: 21px; }
body.live .stand td.rk { font-size: 21px; }
body.live .stand td.num.pts { font-size: 24px; }
body.live .ptable td.num { font-size: 19px; }
body.live .rf-facts dd { font-size: 28px; }
body.live .estatus.live .es-k, body.live .estatus.done .es-k { font-size: 1.14em; }

/* ---- The tournament guide during a live event (owner, Nov 12): the button in the event's status row and its dialog, the
   same words as the page section. A quiet text control, not a second gold action: the match card keeps the gold one. ---- */
body.live .es-guide { display: inline-flex; align-items: center; min-height: 44px; margin: 4px 0 0; padding: 0; border: 0; background: none; box-shadow: none;
  font: 600 15px/1.2 var(--ui); color: var(--acc-link); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; cursor: pointer; }
@media (hover: hover) { body.live .es-guide:hover { color: var(--acc-hi); background: none; } }
/* Under a finished event's results (Nov 14): the Tournament guide and Full rules, side by side with room between them,
   wrapping on a narrow phone; both the same size, both a comfortable tap */
body.live .guiderow { display: flex; flex-wrap: wrap; align-items: center; gap: 0 28px; margin: 24px 0 4px; font-size: 15px; }
body.live .guiderow .es-guide { margin: 0; }
body.live .guiderow .hlink { display: inline-flex; align-items: center; gap: .3em; min-height: 44px; font-weight: 600; }   /* the gap: the arrow keeps its space */
body.live dialog.guidedlg { width: min(1080px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 48px); margin: auto; padding: 0; overflow: auto;
  border: 1px solid var(--line-2); border-radius: var(--rc); background: var(--bg); color: var(--ink); overscroll-behavior: contain; }
body.live dialog.guidedlg::backdrop { background: rgba(2, 6, 14, .72); }
.guide-head { position: sticky; top: 0; z-index: 1; display: flex; justify-content: flex-end; padding: 12px 16px 4px; background: var(--bg); }
body.live .guide-close { min-height: 44px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--raise); color: var(--ink); font: 600 15px/1 var(--ui); cursor: pointer; }
body.live dialog.guidedlg .fmt { margin: 0; padding: 0 24px 24px; }
@media (max-width: 640px) {
  body.live dialog.guidedlg { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border: 0; border-radius: 0; }
  body.live dialog.guidedlg .fmt { padding: 0 16px 24px; }
}
@media (prefers-reduced-motion: no-preference) {
  body.live dialog.guidedlg[open] { animation: guidein 180ms cubic-bezier(0.23, 1, 0.32, 1); }
}
@keyframes guidein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---- The live status row, every width (Nov 13 polish; the wide-screen row is with the brand band above). The current
   round leads: "Round 6" at full weight, "of 9" quieter. The tournament's progress is one slot per round, outlined until
   played, so it reads as a count of rounds and never as the round header's results rail (a continuous fill) just below.
   Phones and narrow windows: the event and the live flag sit together as one group (no rule between them), the round
   comes next and larger than before, then the players and the guide on one quiet line. ---- */
.estatus .es-of { margin-left: .26em; font-size: .6em; font-weight: 600; letter-spacing: .02em; color: var(--ink-2); }
.estatus .es-k:has(.es-of) { align-items: baseline; }
.es-head .trk { gap: 4px; }
.trk i { background: transparent; box-shadow: inset 0 0 0 1px rgba(141, 155, 179, .5); }
.trk i.done { background: var(--silver-hi); box-shadow: none; }
.trk i.now { background: var(--cyan); box-shadow: none; }
/* between rounds, said in words (owner, Nov 13): a silver check and "Round complete" under the round; played is silver,
   like the round's slot, and the gold stays with what is in play */
.estatus .es-state { display: inline-flex; align-items: center; gap: 8px; margin: 8px 0 0; font: 600 14px/1.3 var(--ui); letter-spacing: 0; text-transform: none; color: var(--silver-hi); }
.estatus .es-state::before { content: ""; flex: none; width: 4px; height: 8px; margin: -2px 2px 0 3px; border: solid var(--silver-hi); border-width: 0 2px 2px 0; transform: rotate(45deg); }
@media (max-width: 900px) {
  body.liveround .eh .hero-text > .estatus { margin-top: 6px; padding-top: 0; border-top: 0; }
  body.liveround .eh .hero-text > .estatus::before { content: none; }
  body.liveround .estatus .es-top { margin: 0 0 12px; }
  body.liveround .estatus .es-head.has-trk { display: grid; justify-items: start; gap: 8px; }
  body.live.liveround .estatus.live .es-k, body.live.liveround .estatus.done .es-k { font-size: 32px; line-height: 1; }
  body.liveround .estatus .es-head .trk { flex: none; width: min(260px, 100%); min-width: 0; }
  body.liveround .estatus .es-state { display: flex; margin: 10px 0 0; }   /* its own line, above the players and the guide */
  body.liveround .estatus .es-meta { display: inline-block; margin: 10px 18px 0 0; }
  body.liveround .estatus .es-guide { margin-top: 0; vertical-align: middle; }
}
@media (max-width: 640px) {
  body.live.liveround .estatus.live .es-k, body.live.liveround .estatus.done .es-k { font-size: 28px; }
}


/* ==== The champion's page (owner, Nov 13: a winner's presentation; then the results as their own reading layer) ========
   One ground: the hero sits on the page's own navy (no band, no hairline, no pool), so the champion, the results and what
   follows share one background; the only surfaces are the results' cards, all one fill. Gold is the champion's: the crown,
   "Champion", the name, and the champion's mark in the standings. The tournament identity is one quiet silver line. Eye
   order: the name, then the achievement in figures, then the artwork as atmosphere. ---- */
body.live.livefinal:has(.eh-champ) .herowrap { background: none; border-bottom: 0; min-height: 0; }
.eh-champ.eh-empty { background: none; }
body.liveview .eh-champ .rf-title { margin: 0; }
body.liveview .eh-champ .lk-name { font: 600 13px/1.3 var(--ui); letter-spacing: .14em; text-transform: uppercase; filter: none; }
body.liveview .eh-champ .lk-name .lk-s, body.liveview .eh-champ .lk-name .lk-g { color: var(--muted); background: none; -webkit-text-fill-color: currentColor; }
body.liveview .eh-champ .rf-main .evname { margin: 2px 0 0; font: 500 15px/1.4 var(--ui); color: var(--muted); }
body.liveview .eh-champ .rf-main .won-h { margin-top: 26px; }
/* the achievement (live.js champAchievement): figures in the scoreboard face, ink not gold; the field on one quiet line */
.won-ach { margin: 24px 0 0; }
.won-figs { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 34px; margin: 0; }
.won-fig { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.won-fig b { font: 700 clamp(40px, 3.6vw, 52px)/1 var(--display-cn, "Heros Cn", "Arial Narrow", sans-serif); letter-spacing: .01em; font-variant-numeric: tabular-nums; color: var(--ink); }
.won-fl { font: 600 17px/1.2 var(--ui); color: var(--ink-2); }
.won-fn { font: 500 14px/1.3 var(--ui); color: var(--muted); }
.won-fn::before { content: "· "; }
.won-field { margin: 8px 0 0; font: 500 15px/1.4 var(--ui); color: var(--muted); }
body.live .eh-champ .rf-road { margin-top: 0; padding-top: 0; border-top: 0; }
/* the outcome note (Nov 14): only for a final won by forfeit; a short line close under the figures, not a paragraph */
body.live .eh-champ .rf-road .won-how { margin: 8px 0 0; max-width: 56ch; font-size: 16px; color: var(--ink-2); }
body.live .eh-champ .rf-road .won-rec { display: flex; margin-top: 12px; }
body.live .eh-won .won-rec .marks button.mk.w { background: transparent; color: var(--silver-hi); border-color: var(--silver-lo); }
body.live .eh-champ .rf-road .po-path { margin: 12px 0 0; border-top: 0; }
@media (max-width: 640px) { .won-fig b { font-size: 40px; } .won-figs { gap: 6px 26px; } }

/* Wide screens (1001px and wider): the champion in the aperture (owner, Nov 13; reviewed the same day). The champion takes
   the centre of one reusable aperture picture with an empty dark middle (/img/champion-aperture.avif, 1774 x 887, the
   owner's picture, toned for the page); the name and every result are real text on top of it, centred in the opening. The
   picture is decoration only (a CSS background: nothing is said by it). Phones and windows up to 1000px keep their approved
   layout and no artwork (owner, Nov 10 and Nov 12). */
@media (min-width: 1001px) {
  body.livefinal .herowrap { container-type: inline-size; }
  body.live.livefinal:has(.eh-champ) .herowrap { background: none; border-bottom: 0; }

  /* the stage: as tall as its content and its padding, no taller (Nov 14: a 70%-of-the-window floor kept it tall after the
     recap went, turning the freed space into empty air); centred, and never clipped */
  body.live .eh-champ.eh-brand .in { display: flex; flex-direction: column; justify-content: center; align-items: center;
    padding: 56px var(--gutter) 72px; box-sizing: border-box; }

  /* the picture: covering the stage, and never drawn less than 720px tall. "cover" alone sizes it by the stage's height on
     narrower or shorter windows, so a shorter stage would draw a smaller picture and its opening would close in on words
     that keep their size; at 720px the opening is about 680px across, wider than the widest line it frames (Nov 14). At
     1440px and wider "cover" already draws it larger. Its opening sits a little high (42%), on the name, where the words
     are widest; below it they narrow to the marks and the bracket link. No filter: the file is already toned. Its empty
     navy (the opening, the outer border) is transparent, so there the page itself shows and nothing can step or band
     (Nov 13). AVIF keeps the dark texture clean (lossy WebP broke it into square patches); the WebP stays only for
     browsers without AVIF or image-set() with type(): they keep the line before it.
     Two fades, multiplied: into the page above and below (the bottom one long and eased, so the picture never ends in a
     line), and, behind the words, down to 12% (30% at 62% of the way out), so the text keeps its contrast wherever the
     blades reach. The second fade replaces a navy pool drawn over the art: a gradient drawn over flat navy left faint
     one-level rings, while a fade of the picture changes nothing where the picture is empty. */
  body.live .eh-champ.eh-empty::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background: url("/img/champion-aperture.webp") center 42% / auto max(100%, 50vw, 720px) no-repeat;
    background-image: image-set(url("/img/champion-aperture.avif") type("image/avif"), url("/img/champion-aperture.webp") type("image/webp"));
    filter: none; transform-origin: 50% 50%;
    -webkit-mask: radial-gradient(520px 340px at 50% 44%, rgb(0 0 0 / .12), rgb(0 0 0 / .3) 62%, #000), linear-gradient(180deg, transparent 0, #000 9%, #000 64%, rgb(0 0 0 / .62) 78%, rgb(0 0 0 / .26) 90%, transparent 100%);
    -webkit-mask-composite: source-in;
            mask: radial-gradient(520px 340px at 50% 44%, rgb(0 0 0 / .12), rgb(0 0 0 / .3) 62%, #000), linear-gradient(180deg, transparent 0, #000 9%, #000 64%, rgb(0 0 0 / .62) 78%, rgb(0 0 0 / .26) 90%, transparent 100%);
            mask-composite: intersect; }
  body.live .eh-champ.eh-empty::after { content: none; }

  /* one centred column inside the opening */
  body.live.liveview .eh-won.eh-champ .hero-text.rf:not(.rf-shared) { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center;
    width: 100%; max-width: min(780px, 100%); margin: 0 auto; text-align: center; }
  body.live .eh-champ .rf-road, body.live .eh-champ .rf-main { width: 100%; max-width: none; }
  body.liveview .eh-champ .rf-main .evname { margin: 6px auto 0; }
  /* paragraphs keep their reading width, centred in the column (not on its left edge) */
  .eh-champ :is(.evname, .won-figs, .won-field, .won-rec, .evnext) { margin-left: auto; margin-right: auto; }
  body.liveview .eh-champ .rf-main .won-h { margin-top: 34px; }
  body.liveview .eh-champ .won-k { padding-bottom: 6px; }
  .eh-champ .won-k { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
  .eh-champ .won-names { justify-content: center; }
  .eh-champ .won-one { align-items: center; max-width: 100%; }
  .eh-champ .won-pid { margin-top: 12px; }

  /* the name: a size for its length (live.js sets data-len from the characters), then live.js fitChampionName() shrinks it
     only if its longest word still can't fit the column. Lines are balanced, so a two-line name never leaves one word alone. */
  .eh-champ .won-name { font-size: min(96px, 7.4vw); line-height: .96; text-wrap: balance; overflow-wrap: normal; }
  .eh-champ .won-name[data-len="m"] { font-size: min(80px, 6.2vw); }
  .eh-champ .won-name[data-len="l"] { font-size: min(66px, 5.1vw); }
  .eh-champ .won-name[data-len="xl"] { font-size: min(56px, 4.4vw); line-height: 1; }

  .eh-champ .won-ach { margin-top: 36px; }
  .eh-champ .won-figs { justify-content: center; }
  .eh-champ .won-field { margin-top: 8px; }
  body.live .eh-champ .rf-road .won-ach + .won-how { margin: 8px auto 0; max-width: 54ch; }
  body.live .eh-champ .rf-road .won-rec { justify-content: center; flex-wrap: wrap; margin-top: 16px; }
  body.live .eh-champ .rf-road .po-path { margin: 14px auto 0; }
  body.live .eh-champ .rf-road .po-path > summary { justify-content: center; }
  body.live .eh-champ .rf-road .po-path[open] > :not(summary) { text-align: left; }
  body.live .eh-champ .rf-road .evnext { margin-top: 14px; }
  body.live.livefinal:has(.eh-champ) main > .cols.final { margin-top: 8px; }
}
/* Short wide windows (up to 880px tall: most laptops once the browser's own bars are drawn). The same stage with less air,
   about 100px, so the top of the results can show on the first screen. Only empty space changes: every text size, every
   mark, every link and the bracket stay as they are, and the stage still grows with its content. */
@media (min-width: 1001px) and (max-height: 880px) {
  body.live .eh-champ.eh-brand .in { padding-top: 32px; padding-bottom: 40px; }
  body.liveview .eh-champ .rf-main .won-h { margin-top: 22px; }
  .eh-champ .won-ach { margin-top: 24px; }
  body.live .eh-champ .rf-road .won-rec { margin-top: 12px; }
  body.live .eh-champ .rf-road .po-path { margin-top: 10px; }
}

/* The reveal on wide screens, once per device per event (live.js revealChampion adds .reveal and takes it off again once it
   has played, so a refresh, a scroll, a resize or a turned tablet never replays it). Three beats (review, Nov 13), all from
   a readable start:
     0 ms     the name and "Champion" (the lead, together): from 40%, the name rises 10px and the label 6px, 440 ms;
              one soft gold light as the name settles (500 ms, from 200 ms)
     0 ms     the picture (decoration): from transparent and 3% larger to its place, 600 ms
     120 ms   everything under the name (support): from 40%, the figures rise 6px, the rest fades only, 360 ms
   The identity line ("Sunday Showdown", the week and the date) doesn't move; everything is still by 700 ms. Phones keep the
   reveal in live.css. Reduced motion: nothing moves or fades. */
@media (min-width: 1001px) and (prefers-reduced-motion: no-preference) {
  .eh-champ.reveal::before { animation: ca-settle 600ms cubic-bezier(0.23, 1, 0.32, 1) both; }
  .eh-champ.reveal .won-k { animation: ca-label 440ms cubic-bezier(0.23, 1, 0.32, 1) both; }
  .eh-champ.reveal .won-names { animation: ca-name 440ms cubic-bezier(0.23, 1, 0.32, 1) both, champglow 500ms ease 200ms 1; }
  .eh-champ.reveal .won-ach { animation: ca-label 360ms cubic-bezier(0.23, 1, 0.32, 1) 120ms both; }
  .eh-champ.reveal .rf-road > :not(.won-ach) { animation: ca-fade 360ms cubic-bezier(0.23, 1, 0.32, 1) 120ms both; }
  @keyframes ca-settle { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: none; } }
  @keyframes ca-name { from { opacity: .4; transform: translateY(10px); } to { opacity: 1; transform: none; } }
  @keyframes ca-label { from { opacity: .4; transform: translateY(6px); } to { opacity: 1; transform: none; } }
  @keyframes ca-fade { from { opacity: .4; } to { opacity: 1; } }
}
@media (min-width: 1001px) and (prefers-reduced-motion: reduce) {
  .eh-champ.reveal::before, .eh-champ.reveal .won-k, .eh-champ.reveal .won-names, .eh-champ.reveal .won-ach,
  .eh-champ.reveal .rf-road > :not(.won-ach) { animation: none; }
}

/* My Sunday Showdown and the feedback ask follow the results, on the page's left edge, the full width of the column */
body.live main > #player.playerwrap { max-width: none; margin: 4px 0 0; padding: 0; }
body.live.livefinal:has(.eh-champ) #player .playerbox { border-color: var(--line-2); }
body.live.livefinal:has(.eh-champ) #player .playerbox > h2 { color: var(--silver-hi); }
body.live main > .evfeedback { max-width: none; margin: 22px 0 8px; }
body.live #live > .evfeedback .fb-k { margin: 0 0 4px; font: 700 18px/1.3 var(--display); letter-spacing: 0; text-transform: none; color: var(--ink); }

/* one secondary-link style on the champion's page: silver, underlined, sentence case; the round picker's current round and
   the disclosure chevrons in silver too (gold stays with the champion) */
body.live.livefinal:has(.eh-champ) :is(.eh-champ, main) .hlink, body.live.livefinal:has(.eh-champ) .po-path > summary,
body.live.livefinal:has(.eh-champ) main .guiderow .es-guide {   /* (Nov 14) the Tournament guide under the results, like Full rules beside it */
  color: var(--silver-hi); font: 600 15px/1.3 var(--ui); letter-spacing: 0; text-transform: none; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
@media (hover: hover) { body.live.livefinal:has(.eh-champ) :is(.eh-champ, main) .hlink:hover, body.live.livefinal:has(.eh-champ) .po-path > summary:hover, body.live.livefinal:has(.eh-champ) main .guiderow .es-guide:hover { color: var(--ink); } }
body.live.livefinal:has(.eh-champ) .po-path > summary::before, body.live.livefinal:has(.eh-champ) #player summary::before { border-color: currentColor; }
body.live.livefinal:has(.eh-champ) .pctl .rounds .chip.on { background: rgba(228, 232, 237, .1); border-bottom-color: var(--silver-hi); }
/* a finished event (owner, Nov 13): "Keep this page open while you play" is advice for during an event (the live guide still
   gives it); after one, the briefing ends on its link to the full rules alone */
body.livefinal .fmt-keep { padding: 0; background: none; justify-content: flex-start; }
body.livefinal .fmt-keep p { display: none; }

/* ---- Live View's compact event header (owner, Nov 15: Live View focus). Home owns the promotional hero, the opening and the
   light; Live View starts with the event itself: Sunday Showdown in its own lettering and the event's name on one line (the
   page's one heading, never a label above it), when it is, and where it stands. A champion's page keeps its own presentation. */
.eh-head .in { padding: 22px var(--gutter) 20px; }
.evid { min-width: 0; }
.evh-t { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin: 0; font: 600 clamp(22px, 2.3vw, 28px)/1.15 var(--ui); letter-spacing: -.01em; color: var(--ink); }
body.liveview .eh-head .evh-t .lk-name.evh-mark { margin: 0; padding: 0; border: 0; font-size: 1.18em; line-height: 1; letter-spacing: .01em; white-space: nowrap; }
.evh-sep { align-self: center; width: 1px; height: .85em; background: var(--line-2); }
.evh-ed { min-width: 0; overflow-wrap: anywhere; }
.eh-head .evname { margin: 6px 0 0; max-width: none; font: 500 15px/1.4 var(--ui); letter-spacing: 0; text-transform: none; color: var(--ink-2); }
.eh-head .evname .evdate { color: var(--muted); }
.eh-head .evwhen .evdate { margin-left: 8px; }
.eh-head .evname .evsep { display: none; }
.evchange { margin: 8px 0 0; max-width: 62ch; font: 600 15px/1.4 var(--ui); color: var(--ink); }
.evchange-note { font-weight: 400; color: var(--ink-2); }
.eh-wait .estatus { max-width: 620px; margin-top: 14px; padding-top: 12px; }
.eh-wait .es-head { font-size: clamp(19px, 1.8vw, 22px); }
.eh-wait .es-sub { margin-top: 4px; font: 500 15px/1.45 var(--ui); color: var(--ink-2); }
.eh-wait .es-guide { margin-top: 8px; }
.eh-wait .estatus.off .es-k { color: var(--ink-2); }
body.liveround .eh-head .in { padding-top: 16px; padding-bottom: 16px; }
body.liveround .evh-t { font-size: 22px; }
body.liveround .eh-head .evname { margin-top: 2px; }
@media (min-width: 1001px) {
  /* before Round 1: the event on the left, where it stands on the right, in one row */
  .eh-wait .hero-text { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 440px); column-gap: 48px; align-items: center; max-width: none; }
  .eh-wait .hero-text > :not(.estatus) { grid-column: 1; }
  .eh-wait .hero-text > .estatus { grid-column: 2; grid-row: 1 / span 4; margin: 0; padding: 2px 0 2px 24px; border-top: 0; border-left: 1px solid var(--sep-2, rgba(141,155,179,.3)); }
  .eh-wait .estatus::before { content: none; }
}
@media (max-width: 640px) {
  .eh-head .in { padding: 16px 16px 14px; }
  .evh-t { font-size: 20px; gap: 0 10px; }
  .eh-head .evname { font-size: 14px; margin-top: 4px; }
  .eh-wait .estatus { margin-top: 12px; padding-top: 10px; }
  .eh-wait .es-head { font-size: 18px; }
}

/* ---- A round's states (owner, Nov 15: round review). One state per match row, in words first: Waiting for result (hollow
   ring), Timer running (dashed ring), Admin decides / Admin checking (solid, the row's red edge), a result (silver check).
   The sentence under the names says the rest. Never colour alone. ---- */
.pstate.act { color: var(--bad); }
.pstate.act i { flex: none; width: 9px; height: 9px; border-radius: 2px; background: var(--bad); transform: rotate(45deg); }
.pstate.clock { color: var(--ink); }
.pstate.clock i { flex: none; width: 9px; height: 9px; border: 2px dashed var(--silver-hi); border-radius: 50%; }
/* the standings say whether they're final yet */
.standings-card .standnow { margin: 4px 0 12px; font-size: 14px; color: var(--ink-2); }
.standings-card .standnow b { color: var(--ink); }
/* an admin decides the player's match: that leads the card; reporting steps back from gold */
#player .pdecide { margin: 14px 0 0; }
#player .pdecide p + p { margin-top: 6px; font-weight: 400; }
#player .pquiet .legend { margin: 14px 0 8px; }
#player button.preportbtn.quiet { min-height: 44px; background: none; border: 1px solid var(--line-2); color: var(--ink); font-size: 15px; }
@media (hover: hover) and (pointer: fine) { #player button.preportbtn.quiet:hover:not(:disabled) { background: rgba(141,155,179,.12); border-color: var(--silver); color: var(--ink); } }
@media (max-width: 640px) { #player button.preportbtn.quiet { width: auto; } }

/* ---- Live View on a phone during a round (owner, Nov 15: "Fix phone order next"). A spectator reaches the first match on
   the first screen; a player's card still comes first. Nothing is removed: the event's state reads once, in its header; the
   sign-in box keeps its gold button (owner, Nov 10) on one row with its help; the round's own line names the list. ---- */
@media (max-width: 640px) {
  /* the event header: the event, then the round with its progress and the Tournament guide on one row */
  body.liveround .eh-head .in { padding: 12px 16px 12px; }
  body.liveround .eh-head .evh-t { font-size: 18px; gap: 0 8px; }
  body.liveround .eh-head .evname { margin-top: 1px; font-size: 13px; }
  body.liveround .eh-head .pilot-chip { margin-top: 4px; font-size: 12px; }
  body.liveround .eh-head .estatus { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; margin-top: 8px; padding-top: 8px; }
  body.liveround .eh-head .estatus > * { grid-column: 1 / -1; }
  body.liveround .eh-head .estatus > .es-head { grid-column: 1; margin: 0; }
  body.liveround .eh-head .estatus > .es-guide { grid-column: 2; grid-row: 1; align-self: center; margin: 0; }
  /* "Tournament in progress" and the player count: the round says the first, the standings the second (kept for screen readers) */
  body.liveround .eh-head .es-top { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  body.liveround .eh-head .es-meta { display: none; }
  body.liveround .eh-head .es-state { margin-top: 2px; }
  /* signed out: the gold Sign in and "Can't sign in?" share one row under the line that says what signing in is for */
  body.liveround #player .playerbox.pout { padding: 10px 14px 6px; gap: 0 12px; }
  body.liveround #player .pout > p:not(.psignin-go):not(.noshow) { flex-basis: 100%; font-size: 15px; line-height: 1.4; }
  body.liveround #player .pout > .psignin-go { flex: 0 0 auto; flex-basis: auto; margin: 8px 0 4px; }
  body.liveround #player .pout > .psignin-go .navlink { width: auto; min-height: 44px; padding: 10px 16px; font-size: 15px; }
  body.liveround #player .pout > .pgroup:not([open]) { flex: 0 1 auto; }
  /* the latest result: its label and headline on one line, where and against whom under it */
  body.liveround .latest { display: block; padding: 8px 12px; margin-bottom: 10px; }
  body.liveround .latest .kick { display: inline; margin-right: 8px; font-size: 11px; }
  body.liveround .latest .lhead { display: inline; font-size: 16px; }
  body.liveround .latest .lsub { margin: 2px 0 0; font-size: 13px; }
  /* the round's line names the list on a phone (the jump bar says Pairings); the heading stays for screen readers */
  body.liveround #pairings .rhd { padding-top: 12px; padding-bottom: 10px; }
  body.liveround #pairings .rhd h2 { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  body.liveround #pairings .rhd .es-rail, body.liveround #pairings .rhd .rhd-sub { margin-top: 6px; }
  /* Find me, the rounds and the filter: no frames, tighter rows */
  body.liveround #pairings .findme { margin-top: 8px; }
  body.liveround #pairings .pctl { gap: 4px 12px; margin-top: 4px; padding: 0; border: 0; background: none; }
  body.liveround #pairings .pctl .rsel { padding: 0; border: 0; background: none; }
  body.liveround #pairings .pctl .chips.views { margin: 0; }
  /* the rounds, then the filter, as two tight rows (one row would squeeze the round buttons out of sight) */
  body.liveround #pairings .pctl { row-gap: 2px; }
  body.liveround #pairings .pctl .rsel { margin: 0; }
  body.liveround #pairings .pctl .chips.rounds { padding: 0; }
}
