/* css/fixtures.css
   FIXTURES - ported from the design export's FINAL - Fixtures.dc.html (with
   its embedded "Fixtures Table" component, variant c). Behaviour in
   js/modules/fixtures.js; the shell markup in index.html.

   Every rule is nested under `.fc`. Colour, spacing, radius and font tokens
   are base.css's own; only values this page alone needs are declared on `.fc`.
   Same scope-level re-point as the landing and Matchup (CONVENTIONS.md §5.2):
   Tough reads orange.

   ENTRANCE MOTION RUNS ONLY UNDER [data-anim]. The module sets it on a render
   the reader caused (mode, gameweek, club or pairing change) and clears it on
   a data repaint, so a live payload or an Understat re-emit landing never
   replays the page's entrances under the reader. */

@keyframes fc-in       { from { opacity: 0; transform: translateY(8px); } }
@keyframes fc-fade     { from { opacity: 0; } }
@keyframes fc-bar      { from { transform: scaleY(0); } }
@keyframes fc-grow     { from { transform: scaleX(0); } }
@keyframes fc-panel-r  { from { opacity: 0; transform: translateX(40px); } }
@keyframes fc-panel-l  { from { opacity: 0; transform: translateX(-40px); } }
@keyframes fc-roll-up  { from { opacity: 0; transform: translateY(70%); } }
@keyframes fc-roll-dn  { from { opacity: 0; transform: translateY(-70%); } }
@keyframes fc-tag      { from { opacity: 0; transform: translateX(14px); } }
@keyframes fc-wipe     { from { clip-path: inset(0 100% 0 0); } }
@keyframes fc-live     { 50% { opacity: .2; } }
@keyframes fc-drawer   { from { transform: translateX(100%); } }
@keyframes fc-sheet    { from { transform: translateY(100%); } }
@keyframes fc-sk       { to { transform: translateX(100%); } }

.fc {
  --pad: clamp(16px, 3vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow-pop: 0 16px 40px rgba(1, 4, 9, .6);
  --fc-neutral-ink: #a2abb5;   /* neutral band text - grey is too dark on its tint */
  --fc-hatch: rgba(139, 148, 158, .07);
  --fc-scrim: rgba(1, 4, 9, .6);
  --none: 0 0 0 0 transparent;
  --band-tough: var(--band-orange);
  --band-tough-bg: var(--band-orange-bg);

  font: 14px/1.45 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  color: var(--color-text);

  [data-band] { --b: var(--band-neutral); --bb: var(--band-neutral-bg); --bt: var(--color-muted); }
  [data-band=excellent] { --b: var(--band-excellent); --bb: var(--band-excellent-bg); --bt: var(--band-excellent); }
  [data-band=great]     { --b: var(--band-great);     --bb: var(--band-great-bg);     --bt: var(--band-great); }
  [data-band=good]      { --b: var(--band-good);      --bb: var(--band-good-bg);      --bt: var(--band-good); }
  [data-band=neutral]   { --b: var(--band-neutral);   --bb: var(--band-neutral-bg);   --bt: var(--fc-neutral-ink); }
  [data-band=tough]     { --b: var(--band-tough);     --bb: var(--band-tough-bg);     --bt: var(--band-tough); }
  [data-band=brutal]    { --b: var(--band-brutal);    --bb: var(--band-brutal-bg);    --bt: var(--band-brutal); }
  [data-band=extreme]   { --b: var(--band-extreme-ink); --bb: var(--band-extreme-bg); --bt: var(--band-extreme-ink); }
  [data-band=none]      { --b: var(--color-border);   --bb: transparent;              --bt: var(--color-muted); }

  *, *::before, *::after { box-sizing: border-box; margin: 0; }
  a { color: var(--color-accent); }
  a:hover { color: var(--color-text); }
  button, select { font: inherit; color: inherit; }
  ul, ol { list-style: none; padding: 0; }
  i { font-style: normal; }
  :focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
  .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .lbl { font: 700 11px/1.2 var(--font-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--color-muted); }
  .muted { color: var(--color-muted); }
  .note { max-width: 80ch; font-size: 12px; color: var(--color-muted); text-wrap: pretty; }
  .h-xl { font: 600 34px/1 var(--font-head); letter-spacing: .05em; text-transform: uppercase; }
  .h-md { font: 600 24px/1 var(--font-head); letter-spacing: .05em; text-transform: uppercase; }
  .h-sm { font: 600 20px/1 var(--font-head); letter-spacing: .05em; text-transform: uppercase; }
  .scroll { overflow-x: auto; }
  .rule { flex: 1; height: 1px; background: var(--color-border-subtle); transform-origin: left; }
  .cr { flex: none; width: var(--s, 22px); height: var(--s, 22px); object-fit: contain; }
  .cr--16 { --s: 16px; } .cr--18 { --s: 18px; } .cr--36 { --s: 36px; }
  .cr-none { flex: none; display: inline-block; width: var(--s, 22px); height: var(--s, 22px); border-radius: 50%; box-shadow: inset 0 0 0 1px var(--color-border); }

  /* score chip - one rule for every band: tint + hue ring. Only excellent is solid. */
  .chip { display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 4px; border-radius: var(--radius-sm); background: var(--bb); color: var(--bt); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--b) 60%, transparent); font: 700 12px/1 var(--font-sans); font-variant-numeric: tabular-nums; white-space: nowrap; }
  .chip[data-band=excellent] { background: var(--band-excellent); color: var(--color-bg); box-shadow: 0 0 0 1px var(--band-excellent), 0 0 14px color-mix(in srgb, var(--band-excellent) 40%, transparent); }
  .chip[data-band=extreme] { background: var(--band-extreme); }
  .chip[data-band=none] { color: var(--color-muted); box-shadow: inset 0 0 0 1px var(--color-border); }
  .chip--md { min-width: 32px; }
  /* Low-confidence score (CompositeScore.provisional): same chip, dashed ring. */
  .chip.is-est { outline: 1px dashed var(--color-estimated); outline-offset: 2px; }
  .bandname { font: 700 10px/1 var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--bt); }

  /* Still settling - the value is withheld, the footprint kept. */
  .chip.is-pending, .sk-t { position: relative; overflow: hidden; background: var(--color-skeleton); color: transparent; box-shadow: none; outline: 0; }
  .sk-t { display: inline-block; border-radius: 2px; }
  .chip.is-pending::after, .sk::after, .sk-t::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, var(--color-skeleton-highlight), transparent); transform: translateX(-100%); animation: fc-sk 1.3s ease-in-out infinite; }
  .sk { position: relative; overflow: hidden; display: block; height: 12px; border-radius: 2px; background: var(--color-skeleton); }
  .sk-lines { display: grid; gap: 8px; }
  .sk-lines .sk:last-child { width: 60%; }

  /* W / D / L boxes */
  .pips { display: inline-flex; align-items: center; gap: 3px; }
  .pip { display: inline-grid; place-items: center; width: var(--s, 18px); height: var(--s, 18px); border-radius: 2px; font: 700 10px/1 var(--font-sans); }
  .pip--w { background: var(--band-green-bg); color: var(--band-green); }
  .pip--d { background: var(--band-grey-bg); color: var(--fc-neutral-ink); }
  .pip--l { background: var(--band-red-bg); color: var(--band-red); }
  .pips--lg { --s: 20px; }

  .tag { display: inline-flex; align-items: center; height: 26px; padding: 0 12px 0 18px; background: var(--color-text); color: var(--color-bg); font: 600 14px/1 var(--font-head); letter-spacing: .05em; text-transform: uppercase; clip-path: polygon(10px 0, 100% 0, 100% 100%, 10px 100%, 0 50%); }

  .btn { min-height: 36px; padding: 0 12px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-surface-raised); color: var(--color-text); font-weight: 600; font-size: 13px; cursor: pointer; transition: border-color .12s; }
  .btn:hover { border-color: var(--color-muted); }
  .btn kbd { font: 400 11px/1 var(--font-sans); color: var(--color-muted); }
  .cta { justify-self: start; min-height: 40px; padding: 0 16px; border: 0; background: var(--color-text); color: var(--color-bg); font: 600 15px/1 var(--font-head); letter-spacing: .05em; text-transform: uppercase; cursor: pointer; }
  .linkb { padding: 0; border: 0; background: none; color: var(--color-text); font-weight: 600; text-align: left; cursor: pointer; transition: color .12s; }
  .linkb:hover { color: var(--color-accent); }
  .fdr { display: inline-grid; place-items: center; width: 20px; height: 20px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-bg); color: var(--color-text); font: 700 11px/1 var(--font-sans); }

  .seg { display: flex; gap: 2px; padding: 2px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-bg); }
  .seg button { min-height: 32px; padding: 0 12px; border: 0; border-radius: 2px; background: transparent; color: var(--color-muted); font-weight: 600; font-size: 13px; cursor: pointer; transition: background-color .12s, color .12s; }
  .seg button:hover { color: var(--color-text); }
  .seg button[aria-pressed=true] { background: var(--color-text); color: var(--color-bg); }

  .sel { display: inline-flex; align-items: center; gap: 8px; justify-self: start; height: 36px; padding: 0 4px 0 10px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-bg); }
  .sel select { height: 32px; border: 0; background: transparent; color: var(--color-text); font-weight: 600; cursor: pointer; }
  .sel option { background: var(--color-surface); }

  .empty { padding: 24px; border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-muted); }
  .hatch { background: repeating-linear-gradient(45deg, transparent 0 8px, var(--fc-hatch) 8px 16px); border: 1px solid var(--color-border); }

  /* oversized crest watermark behind a hero */
  .mark { position: absolute; top: 50%; left: 0; z-index: -1; height: 165%; aspect-ratio: 1; background: center / contain no-repeat; opacity: .1; transform: translate(-22%, -50%) rotate(10deg); pointer-events: none; }
  .mark--r { left: auto; right: 0; transform: translate(22%, -50%) rotate(10deg); }

  /* data tables (split, venue, meetings) */
  .dt { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
  .dt caption { caption-side: top; padding-bottom: 10px; text-align: left; }
  .dt caption b { font: 600 24px/1 var(--font-head); letter-spacing: .05em; text-transform: uppercase; }
  .dt caption span { font-size: 12px; color: var(--color-muted); }
  .dt thead th { padding: 8px; border-bottom: 2px solid var(--color-border); text-align: right; font: 700 11px/1.2 var(--font-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--color-muted); }
  .dt thead th:first-child { text-align: left; }
  .dt tbody tr { border-bottom: 1px solid var(--color-border-subtle); }
  .dt tbody th { padding: 12px 8px; text-align: left; font: 600 20px/1 var(--font-head); letter-spacing: .05em; text-transform: uppercase; }
  .dt td { padding: 12px 8px; text-align: right; font-size: 15px; }
  .dt--venue caption b { font-size: 22px; }
  .dt--venue tbody th { font: 600 14px/1.45 var(--font-sans); text-transform: none; letter-spacing: 0; }
  .dt--venue td { font-size: 14px; }
  .dt--meet { min-width: 520px; font-size: 14px; }
  .dt--meet thead th { text-align: left; }
  .dt--meet td { padding: 10px 8px; text-align: left; font-size: 14px; }
  .dt--meet .mono { color: var(--color-muted); }
  .dt--meet .disp { font: 700 21px/1 var(--font-score); letter-spacing: 0; }
  .dt--meet .disp:has(.club) { font: 400 20px/1 var(--font-team); letter-spacing: .04em; text-transform: uppercase; }
  .club { display: inline-flex; align-items: center; gap: 6px; }
  .vn { font: 700 10px/1 var(--font-sans); letter-spacing: .1em; color: var(--color-muted); }

  /* ─── Mode tabs ─────────────────────────────────────────────────────────── */

  .modes { border-bottom: 1px solid var(--color-border); background: var(--color-surface); }
  .modes__in { display: flex; max-width: 1440px; margin: 0 auto; padding: 0 var(--pad); overflow-x: auto; }
  .mode { flex: none; display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 20px 0 24px; border: 0; background: transparent; color: var(--color-muted); font: 600 18px/1 var(--font-head); letter-spacing: .05em; text-transform: uppercase; cursor: pointer; clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%); transition: background-color .12s, color .12s; }
  .mode:hover { color: var(--color-text); }
  .mode[aria-selected=true] { background: var(--color-text); color: var(--color-bg); }
  .mode__k { font: 700 11px/1 var(--font-sans); letter-spacing: .1em; opacity: .7; }

  .panel { max-width: 1440px; margin: 0 auto; padding: 32px var(--pad) 64px; }
  .panel > section { display: grid; gap: 28px; }
  .panel[data-anim][data-enter=fade] { animation: fc-fade 440ms var(--ease) both; }
  .panel[data-anim][data-enter=r]    { animation: fc-panel-r 440ms var(--ease) both; }
  .panel[data-anim][data-enter=l]    { animation: fc-panel-l 440ms var(--ease) both; }

  .loading { display: grid; gap: 20px; }
  .loading__t { width: 260px; height: 72px; }
  .loading__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
  .loading__cols .sk { height: 280px; }

  /* ─── Matchday ──────────────────────────────────────────────────────────── */

  .gw__head { display: grid; gap: 16px; }
  .gw__top { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 24px; }
  .gw__clock { display: flex; align-items: center; gap: 6px; padding: 10px 40px 10px 10px; background: var(--color-surface-raised); clip-path: polygon(0 0, 100% 0, calc(100% - 22px) 100%, 0 100%); }
  .gw__step { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; color: var(--color-muted); font-size: 24px; cursor: pointer; }
  .gw__step:hover { color: var(--color-text); }
  .gw__step:disabled { opacity: .3; cursor: default; }
  .gw__n { font: 700 clamp(70px, 10vw, 120px)/.86 var(--font-score); letter-spacing: 0; text-transform: uppercase; font-variant-numeric: tabular-nums; }
  .gw__meta { display: grid; gap: 6px; padding-bottom: 6px; }
  .gw__line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
  .gw__line b { font-size: 15px; }
  .gw__sub { font-size: 13px; color: var(--color-muted); }
  .gw__home { justify-self: start; min-height: 32px; border: 0; background: none; color: var(--color-accent); font-weight: 600; font-size: 13px; cursor: pointer; }
  .gw__home:hover { color: var(--color-text); }

  .ruler { display: grid; grid-template-columns: repeat(38, minmax(0, 1fr)); gap: 2px; align-items: end; height: 30px; }
  .ruler button { height: 12px; border: 0; background: var(--color-border); cursor: pointer; transform-origin: bottom; transition: background-color .12s; }
  .ruler .is-past { background: var(--color-muted); }
  .ruler .is-home { height: 20px; background: var(--color-accent); }
  .ruler [aria-current=true] { height: 30px; background: var(--color-text); }
  .ruler button:hover { background: var(--color-text); }
  .ruler__k { display: flex; justify-content: space-between; gap: 12px; font: 700 10px/1 var(--font-sans); letter-spacing: .1em; color: var(--color-muted); }

  .blank { padding: 48px 32px; }
  .blank h3 { margin-bottom: 6px; font: 600 32px/1 var(--font-head); letter-spacing: .05em; text-transform: uppercase; }
  .blank p { color: var(--color-muted); }

  .days { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
  @media (min-width: 600px)  { .days { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (min-width: 1000px) { .days { grid-template-columns: repeat(var(--n, 1), minmax(0, 1fr)); } }
  .day { display: grid; gap: 10px; min-width: 0; }
  .day__h { display: grid; gap: 2px; padding-bottom: 10px; border-bottom: 2px solid var(--color-border); }
  .day.is-today .day__h { border-bottom-color: var(--color-accent); }
  .day__d { font: 600 clamp(28px, 3vw, 40px)/.9 var(--font-head); letter-spacing: .05em; text-transform: uppercase; }
  .day__date { font-size: 12px; color: var(--color-muted); }
  .slot { display: grid; gap: 8px; }
  .slot__t { display: flex; align-items: center; gap: 8px; font: 700 12px/1 var(--font-sans); font-variant-numeric: tabular-nums; color: var(--color-muted); }

  .tile { display: grid; gap: 10px; width: 100%; padding: 14px 26px 14px 14px; border: 0; background: var(--color-surface); color: var(--color-text); text-align: left; cursor: pointer; clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%); transition: background-color .12s; }
  .tile:hover { background: var(--color-surface-raised); }
  .tile.is-ko { box-shadow: inset 0 0 0 1px var(--color-border-subtle); }
  .tile.is-live { background: var(--color-surface-raised); box-shadow: inset 3px 0 0 var(--band-red); }
  .tile__st { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .st { display: inline-flex; align-items: center; gap: 6px; font: 700 10px/1 var(--font-sans); letter-spacing: .12em; color: var(--color-muted); }
  .st--ft { color: var(--color-text); }
  .st--live { color: var(--band-red); }
  .live { width: 6px; height: 6px; border-radius: 50%; background: var(--band-red); animation: fc-live 1.4s ease-in-out infinite; }
  .tile__prov { font-size: 10px; color: var(--color-muted); }
  .tile__sides { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 10px; }
  .tile__team { display: inline-flex; align-items: center; gap: 8px; min-width: 0; font: 400 26px/1 var(--font-team); letter-spacing: .04em; text-transform: uppercase; }
  .tile__v { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
  .tile__g { font: 700 33px/1 var(--font-score); letter-spacing: 0; font-variant-numeric: tabular-nums; }
  .tile__ratios { display: grid; gap: 6px; padding-top: 10px; border-top: 1px solid var(--color-border-subtle); }
  .ratio { display: grid; grid-template-columns: 30px 22px minmax(0, 1fr) 22px; align-items: center; gap: 6px; }
  .ratio__k { font: 700 9px/1 var(--font-sans); letter-spacing: .12em; color: var(--color-muted); }
  .ratio__h, .ratio__a { font: 700 11px/1 var(--font-sans); font-variant-numeric: tabular-nums; }
  .ratio__h { text-align: right; }
  .ratio__a { color: var(--color-muted); }
  .ratio__bar { display: flex; gap: 2px; height: 4px; min-width: 0; }
  .ratio__bar i { min-width: 0; }
  .ratio__bar i:nth-child(1) { background: var(--color-text); transform-origin: right; }
  .ratio__bar i:nth-child(2) { background: var(--color-border); }
  .ratio__bar i:nth-child(3) { background: var(--color-muted); transform-origin: left; }
  .ratio.is-pending .ratio__bar { position: relative; overflow: hidden; background: var(--color-skeleton); }
  .ratio.is-pending .ratio__bar i { visibility: hidden; }

  .now { display: flex; align-items: center; gap: 8px; font: 700 10px/1 var(--font-sans); letter-spacing: .12em; color: var(--color-accent); }
  .now::after { content: ""; flex: 1; height: 2px; background: var(--color-accent); transform-origin: left; }

  .pp { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 14px 18px; }
  .pp > b { font: 600 18px/1 var(--font-head); letter-spacing: .05em; text-transform: uppercase; }
  .pp__i { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
  .pp__i em { font-style: normal; font-weight: 400; color: var(--color-muted); }

  /* ─── League table ──────────────────────────────────────────────────────── */

  .panel > .lt { gap: 16px; }
  .lt__scope { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
  .lt__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; padding-bottom: 12px; border-bottom: 1px solid var(--color-border-subtle); }
  .lt__title { display: grid; gap: 6px; min-width: 0; }
  .meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--color-muted); }
  .zones { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--color-muted); }
  .zones li { display: inline-flex; align-items: center; gap: 6px; }
  .zones i { width: 3px; height: 14px; background: var(--z); }
  [data-zone=ucl]  { --z: var(--band-deep-blue); }
  [data-zone=uel]  { --z: var(--band-orange); }
  [data-zone=uecl] { --z: var(--band-green); }
  [data-zone=rel]  { --z: var(--band-red); }
  .tw { overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-surface); }
  .lt table { width: 100%; min-width: 820px; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
  .lt thead tr { background: var(--color-bg); }
  .lt th { padding: 10px 12px; border-bottom: 1px solid var(--color-border); text-align: right; font: 700 11px/1.2 var(--font-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--color-muted); white-space: nowrap; }
  .lt th.l { text-align: left; }
  .lt th.c { text-align: center; }
  .lt td { padding: 10px 12px; text-align: right; color: var(--color-muted); }
  .lt tbody tr { border-bottom: 1px solid var(--color-border-subtle); transition: background-color .12s; }
  .lt tbody tr:hover { background: var(--color-surface-raised); }
  .lt .pos { width: 36px; font-weight: 700; color: var(--color-text); box-shadow: inset 3px 0 0 var(--z, transparent); }
  .lt .mv { width: 20px; text-align: center; font-size: 10px; }
  .mv--up { color: var(--band-green); }
  .mv--down { color: var(--band-red); }
  .lt .team, .lt .form, .lt .next { text-align: left; white-space: nowrap; color: var(--color-text); }
  .lt .team .club { gap: 8px; }
  .lt .pts { font: 700 19px/1 var(--font-score); letter-spacing: 0; color: var(--color-text); }
  .lt .next .club b { font-weight: 600; }
  .lt .next .club span { font-size: 12px; color: var(--color-muted); }

  /* ─── By team ───────────────────────────────────────────────────────────── */

  .tm__hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; }
  .tm__card { position: relative; isolation: isolate; overflow: hidden; display: grid; gap: 14px; align-content: end; min-width: 0; padding: 24px 48px 24px 24px; background: var(--color-surface-raised); clip-path: polygon(0 0, 100% 0, calc(100% - 28px) 100%, 0 100%); }
  .tm__name { font: 400 clamp(48px, 8.4vw, 106px)/.9 var(--font-team); letter-spacing: .04em; text-transform: uppercase; overflow-wrap: anywhere; }
  .tm__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font-size: 13px; color: var(--color-muted); }
  .tm__meta b { color: var(--color-text); }
  .tm__pos { display: grid; align-content: end; justify-items: end; gap: 6px; padding: 0 0 18px 24px; }
  .tm__ord { font: 700 clamp(90px, 15vw, 210px)/.82 var(--font-score); letter-spacing: 0; font-variant-numeric: tabular-nums; }
  .stats { display: flex; flex-wrap: wrap; gap: 8px 28px; }
  .stats li { display: flex; align-items: baseline; gap: 6px; }
  .stats b { font: 700 35px/1 var(--font-score); letter-spacing: 0; font-variant-numeric: tabular-nums; }
  .stats li > span { font: 700 11px/1 var(--font-sans); letter-spacing: .1em; color: var(--color-muted); }

  .rb { display: grid; gap: 12px; }
  .sub-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
  .sub-h > span { font-size: 12px; color: var(--color-muted); }
  .rb__grids { display: grid; gap: 20px; }
  .rb__grp { display: grid; gap: 8px; }
  .rb__gh { display: flex; align-items: baseline; gap: 10px; }
  .rb__gh b { font: 600 18px/1 var(--font-head); letter-spacing: .05em; text-transform: uppercase; }
  .rb__gh span { font-size: 12px; color: var(--color-muted); }
  .rb__row { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 3px; }
  @media (max-width: 599px) { .rb__row { grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); } }

  .cell { position: relative; display: grid; align-content: space-between; gap: 6px; min-height: 84px; padding: 8px 6px; border: 0; background: var(--bb, var(--color-surface)); color: var(--color-text); text-align: left; cursor: pointer; box-shadow: var(--sh-n, var(--none)), var(--sh-r, var(--none)); transition: background-color .12s, box-shadow .12s; }
  .cell[data-band] { --sh-r: inset 0 0 0 1px color-mix(in srgb, var(--b) 60%, transparent); }
  .cell[data-band=excellent] { --bb: var(--band-excellent); --bt: var(--color-bg); }
  .cell[data-band=none] { --sh-r: inset 0 0 0 1px var(--color-border); }
  .cell[data-out=w] { --bb: var(--band-green-bg); --bt: var(--band-green); }
  .cell[data-out=d] { --bb: var(--band-grey-bg);  --bt: var(--fc-neutral-ink); }
  .cell[data-out=l] { --bb: var(--band-red-bg);   --bt: var(--band-red); }
  .cell.is-pp { background: repeating-linear-gradient(45deg, var(--color-surface) 0 6px, var(--color-surface-raised) 6px 12px); --bt: var(--color-muted); }
  .cell.is-live { --sh-r: inset 0 0 0 2px var(--band-red); }
  .cell.is-next { grid-column: span 2; --sh-n: inset 0 3px 0 var(--color-accent); }
  .cell[aria-selected=true] { --sh-r: inset 0 0 0 2px var(--color-text); }
  .cell[data-band=excellent][aria-selected=true] { --sh-r: inset 0 0 0 2px var(--color-bg); }
  .cell.is-est { outline: 1px dashed var(--color-estimated); outline-offset: -4px; }
  .cell__top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
  .cell__gw { font: 700 10px/1 var(--font-sans); letter-spacing: .06em; color: var(--color-muted); }
  .cell[data-band=excellent] .cell__gw, .cell[data-band=excellent] .cell__v { color: var(--color-bg); }
  .cell__tag { display: inline-flex; align-items: center; height: 18px; padding: 0 8px 0 13px; background: var(--color-accent); color: var(--color-bg); font: 600 12px/1 var(--font-head); letter-spacing: .05em; text-transform: uppercase; clip-path: polygon(7px 0, 100% 0, 100% 100%, 7px 100%, 0 50%); }
  .cell__opp { display: grid; gap: 2px; }
  .cell__o { display: inline-flex; align-items: center; gap: 5px; font: 400 20px/1 var(--font-team); letter-spacing: .04em; text-transform: uppercase; }
  .cell__v { font: 700 9px/1 var(--font-sans); letter-spacing: .1em; color: var(--color-muted); }
  .cell__meta { font-size: 11px; line-height: 1.3; color: var(--color-muted); }
  .cell__val { font: 700 13px/1 var(--font-sans); font-variant-numeric: tabular-nums; color: var(--bt, var(--color-text)); }
  .cell[data-out] .cell__val { font: 700 25px/1 var(--font-score); }

  .rb__detail { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; min-height: 56px; padding: 12px 16px; border: 1px solid var(--color-border); background: var(--color-surface); }
  .rb__detail > b { font: 400 24px/1 var(--font-team); letter-spacing: .04em; text-transform: uppercase; animation: fc-tag 320ms var(--ease) both; }
  .rb__detail > span { font-size: 13px; }
  .rb__detail .btn { margin-left: auto; }
  .rb__key { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12px; color: var(--color-muted); }
  .split .dt { min-width: 560px; }

  /* ─── Head-to-head ──────────────────────────────────────────────────────── */

  .h2h__pick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
  .h2h__pick .sel { height: 40px; background: var(--color-surface); }
  .h2h__pick select { height: 36px; }
  .swap { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-surface); color: var(--color-text); cursor: pointer; }
  .swap:hover { border-color: var(--color-muted); }
  .msg { padding: 40px 32px; background: var(--color-surface); clip-path: polygon(0 0, 100% 0, calc(100% - 28px) 100%, 0 100%); }
  .msg h2 { margin-bottom: 8px; font: 600 clamp(28px, 4vw, 44px)/1 var(--font-head); letter-spacing: .05em; text-transform: uppercase; }
  .msg p { max-width: 60ch; color: var(--color-muted); }

  .hh { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: 16px; padding: 20px 24px; background: var(--color-surface-raised); }
  .hh__side { display: grid; gap: 6px; min-width: 0; }
  .hh__side--b { justify-items: end; text-align: right; }
  .hh__n { font: 700 clamp(80px, 12.5vw, 175px)/.82 var(--font-score); letter-spacing: 0; font-variant-numeric: tabular-nums; }
  .hh__name { font: 400 clamp(24px, 2.88vw, 36px)/1 var(--font-team); letter-spacing: .04em; text-transform: uppercase; overflow-wrap: anywhere; }
  .hh__d { display: grid; justify-items: center; gap: 4px; padding-bottom: 4px; }
  .hh__d b { font: 700 clamp(45px, 6.25vw, 80px)/.86 var(--font-score); letter-spacing: 0; font-variant-numeric: tabular-nums; color: var(--color-muted); }
  .hh__bar { display: flex; gap: 2px; height: 8px; }
  .hh__bar i:nth-child(1) { background: var(--color-text); }
  .hh__bar i:nth-child(2) { background: var(--color-border); }
  .hh__bar i:nth-child(3) { background: var(--color-muted); }
  .hh__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--color-muted); }

  .mm { display: grid; gap: 10px; }
  .mm__h { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .chart { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 12px; }
  .chart__axis, .mt { display: grid; grid-template-rows: 120px 1px 120px 40px; }
  .chart__axis { font: 700 10px/1.2 var(--font-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--color-muted); }
  .chart__axis span { writing-mode: vertical-rl; transform: rotate(180deg); }
  .chart__axis span:first-child { align-self: start; }
  .chart__axis span:last-child { grid-row: 3; align-self: end; }
  .chart ol { display: grid; grid-template-columns: repeat(var(--n, 1), minmax(32px, 1fr)); gap: 6px; overflow-x: auto; overflow-y: hidden; }
  .mt { min-width: 32px; }
  .mt__up, .mt__dn { display: flex; justify-content: center; }
  .mt__up { align-items: flex-end; }
  .mt__dn { align-items: flex-start; }
  .mt__b { display: grid; place-items: start center; width: 60%; height: var(--h); padding-top: 4px; background: var(--color-border); color: var(--color-bg); font: 700 18px/1 var(--font-score); letter-spacing: 0; transform-origin: bottom; }
  .mt__dn .mt__b { place-items: end center; padding: 0 0 4px; transform-origin: top; }
  .mt__b.is-win  { background: var(--color-text); }
  .mt__b.is-draw { background: var(--band-grey); }
  .mt__line { background: var(--color-text); }
  .mt__f { display: grid; justify-items: center; align-content: start; gap: 3px; padding-top: 6px; }
  .mt__f span:last-child { font-size: 10px; color: var(--color-muted); white-space: nowrap; }

  .h2h__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 24px; align-items: start; }
  .notable { display: grid; gap: 10px; }
  .notable .h-sm { font-size: 22px; }
  .notable dl > div { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--color-border-subtle); }
  .notable dt { font-size: 13px; color: var(--color-muted); }
  .notable dd { margin: 0; font-weight: 600; }
  .notable dd em { font-style: normal; font-weight: 400; color: var(--color-muted); }

  /* ─── Match report drawer - above the app nav (100) and phone tab bar (200) ── */

  .scrim { position: fixed; inset: 0; z-index: 205; background: var(--fc-scrim); animation: fc-fade 200ms ease-out both; }
  .drawer { position: fixed; z-index: 210; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); display: grid; grid-template-rows: auto minmax(0, 1fr); background: var(--color-surface); border-left: 1px solid var(--color-border); box-shadow: var(--shadow-pop); animation: fc-drawer 260ms var(--ease) both; }
  .dr__head { display: grid; gap: 12px; padding: 20px 20px 16px; background: var(--color-surface-raised); border-bottom: 1px solid var(--color-border); }
  .dr__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .dr__bar .st { font-size: 11px; }
  .dr__title { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; font-weight: 400; }
  .dr__side { display: flex; align-items: center; gap: 10px; font: 400 clamp(26px, 3.6vw, 38px)/1 var(--font-team); letter-spacing: .04em; text-transform: uppercase; overflow-wrap: anywhere; }
  .dr__side--a { justify-content: flex-end; text-align: right; }
  .dr__score { font: 700 clamp(50px, 6.25vw, 70px)/.86 var(--font-score); letter-spacing: 0; font-variant-numeric: tabular-nums; }
  .dr__giq { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 12px; }
  .dr__giq > span { display: inline-flex; align-items: center; gap: 6px; }
  .dr__mx { margin-left: auto; font-weight: 600; text-decoration: none; }
  .dr__body { display: grid; gap: 24px; align-content: start; padding: 20px; overflow: auto; }
  .blk { display: grid; gap: 10px; }
  .blk--alt { padding: 14px; border: 1px dashed var(--color-border); }
  .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; font-size: 13px; }
  .cols--xi { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
  .cols--fe { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }

  .tl { position: relative; display: grid; }
  .tl::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--color-border); }
  .ev { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr); align-items: center; min-height: 34px; }
  .ev__body { grid-row: 1; display: flex; align-items: baseline; gap: 6px; min-width: 0; font-size: 13px; }
  .ev--home .ev__body { grid-column: 1; justify-self: end; flex-direction: row-reverse; text-align: right; }
  .ev--away .ev__body { grid-column: 3; justify-self: start; }
  .ev__body b { font-weight: 600; }
  .ev__as { font-size: 11px; color: var(--color-muted); }
  .ev__sc { font: 700 20px/1 var(--font-score); letter-spacing: 0; white-space: nowrap; }
  .ev__min { grid-column: 2; grid-row: 1; justify-self: center; z-index: 1; display: inline-grid; place-items: center; min-width: 34px; height: 22px; background: var(--color-surface-raised); color: var(--color-muted); font: 700 11px/1 var(--font-sans); font-variant-numeric: tabular-nums; }
  .ev--goal .ev__min { background: var(--color-text); color: var(--color-bg); }

  .grp { display: grid; gap: 3px; }
  .grp__h { display: flex; align-items: center; gap: 6px; font: 400 19px/1 var(--font-team); letter-spacing: .04em; text-transform: uppercase; }
  .xi { display: grid; align-content: start; min-width: 0; }
  .xi__h { display: flex; align-items: baseline; gap: 8px; padding-bottom: 6px; border-bottom: 2px solid var(--color-border); }
  .xi__h b { display: inline-flex; align-items: center; gap: 6px; font: 400 22px/1 var(--font-team); letter-spacing: .04em; text-transform: uppercase; }
  .xi__h span { font-size: 12px; color: var(--color-muted); }
  .xi__h--fe { padding-bottom: 6px; border: 0; }
  .xi__h--fe b { font-size: 19px; }
  .xi__sh { padding-top: 8px; font: 700 10px/1.2 var(--font-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--color-muted); }
  .xr { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 6px; align-items: center; min-height: 28px; border-bottom: 1px solid var(--color-border-subtle); }
  .xr__p { font: 700 10px/1 var(--font-sans); color: var(--color-muted); }
  .xr__n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .xr__m, .xr__sw { font-size: 11px; color: var(--color-muted); }
  .xr--sub { color: var(--color-muted); }
  .xr--sub .xr__nm { color: var(--color-text); }
  .xr--fe { grid-template-columns: 36px minmax(0, 1fr) auto; min-height: 24px; }
  .xr--fe .xr__m { font-size: 13px; }

  .mini { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 24px; }
  .mini__t { display: grid; }
  .mini__t b { font: 700 45px/.9 var(--font-score); letter-spacing: 0; }
  .mini__t span { font-size: 11px; color: var(--color-muted); }
  .mini__t--d b { color: var(--color-muted); }
  .mini .pips { padding-bottom: 3px; }

  /* ─── Entrances (render the reader caused only - see header) ──────────── */

  [data-anim] {
    .gw__n { animation: fc-in 420ms var(--ease) both; }
    .gw__n[data-roll=up] { animation-name: fc-roll-up; }
    .gw__n[data-roll=down] { animation-name: fc-roll-dn; }
    .ruler button { animation: fc-bar 520ms var(--ease) both; animation-delay: var(--d); }
    .day__h, .tile, .tm__meta .pip, .stats li, .cell, .ev { animation: fc-in 440ms var(--ease) both; animation-delay: var(--d, 0ms); }
    .tile { animation-duration: 480ms; }
    .rule { animation: fc-grow 700ms var(--ease) 150ms both; }
    .ratio__bar i { animation: fc-grow 620ms var(--ease) both; animation-delay: var(--d); }
    .now::after { animation: fc-grow 900ms var(--ease) 500ms both; }
    .cell__tag { animation: fc-tag 460ms var(--ease) both; animation-delay: var(--dt); }
    .tm__hero, .hh { animation: fc-in 380ms var(--ease) both; }
    .hh__bar { animation: fc-wipe 900ms var(--ease) 200ms both; }
    .mt__b { animation: fc-bar 560ms var(--ease) both; animation-delay: var(--d); }
  }

  @media (max-width: 768px) {
    /* The drawer becomes a bottom sheet. */
    .drawer { top: auto; left: 0; width: auto; max-height: 88vh; border-left: 0; border-radius: 8px 8px 0 0; animation-name: fc-sheet; }
  }

  @media (prefers-reduced-motion: reduce) {
    &, *, *::before, *::after { animation: none !important; transition: none !important; }
  }
}
