/* tokens.css — the kit's whole visual vocabulary. Components read these
   variables and nothing else; a theme is a new :root block. No transitions,
   no animations: every moving value is written by seek(t). */
@font-face {
  font-family: 'Instrument Sans';
  src: url('fonts/InstrumentSans-VF.ttf') format('truetype');
  font-weight: 400 700; font-stretch: 75% 100%; font-style: normal; font-display: block;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('fonts/InstrumentSans-Italic-VF.ttf') format('truetype');
  font-weight: 400 700; font-stretch: 75% 100%; font-style: italic; font-display: block;
}

:root {
  /* stage: the backdrop's royal blue (under the shader, and on pages without one) */
  --canvas: #2E66E6;
  --canvas-2: #2A5DD6;
  /* the shape and everything inside it. The surface is the backdrop's own cobalt
     taken down to night: the same hue as the field behind it, so a card belongs to
     the picture, and a lightness no part of the field comes near (measured over the
     film's whole backdrop: 2.7:1 against its deepest blue, 15:1 against its white),
     so it always stands off it. */
  --ink: #0A1541;             /* surface */
  --ink-2: #111E53;           /* raised panel */
  --ink-3: #1C2B69;           /* tracks, idle chips */
  --pitch: #0C1848;           /* grass, a hair off the surface */
  --pitch-2: #0F1C50;         /* mowing stripe */
  --line: rgba(190, 210, 255, .14);
  --line-2: rgba(190, 210, 255, .27);
  --paper: #F1F5FF;           /* text on ink: a cool white, the backdrop's white */
  --mute: rgba(225, 234, 255, .66);
  --dim: rgba(225, 234, 255, .42);
  /* the card as a material: lit from above by the field behind it (a faint sheen at the
     top, a hairline rim like the light on the backdrop's glass seams) and lifted off it
     by a shadow in the field's own deep blue */
  --surface: linear-gradient(180deg, rgba(122, 170, 255, .075) 0%, rgba(122, 170, 255, 0) 36%), var(--ink);
  --edge: inset 0 0 0 1px rgba(168, 198, 255, .16), inset 0 1px 0 rgba(236, 244, 255, .10);
  --lift: 0 30px 70px -26px rgba(6, 18, 72, .62), 0 3px 10px rgba(6, 18, 72, .22);
  /* the heatmap's quiet bands (where a player went at all), lightest last; the busy bands are the team's colour */
  --heat-1: rgba(46, 107, 236, .20);
  --heat-2: rgba(60, 158, 241, .30);
  --heat-3: rgba(84, 208, 236, .42);
  --heat-4: rgba(143, 240, 214, .58);
  /* the comments' paper: the one light surface, so a comment never reads as data */
  --note: #F5F8FF;
  --on-note: #0A1541;
  --note-mute: rgba(10, 21, 65, .52);
  /* teams, by side (this match: home Austrália = the cool white, away Brasil = canarinho,
     the complement of the blue around it). One accent, one neutral: a new match only
     changes these four. */
  --home: #F1F5FF;
  --away: #FFD400;
  --on-home: #0A1541;
  --on-away: #0A1541;
  --accent: #FFD400;          /* the one accent (the side the story follows) */
  /* performance (ratings) — never a team colour */
  --good: #3EE0A1;
  --poor: #FF7A63;
  /* radii */
  --r-pill: 999px;
  --r-card: 22px;
  --r-panel: 14px;
  --r-chip: 7px;
  --r-tag: 5px;
  /* type */
  --font: 'Instrument Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--canvas); }
body {
  font-family: var(--font); color: var(--paper); overflow: hidden;
  -webkit-font-smoothing: antialiased; text-rendering: geometricPrecision;
  font-feature-settings: 'tnum' 1, 'ss01' 1;
}
.abs { position: absolute; left: 0; top: 0; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum' 1, 'ss01' 1; }
.cond { font-stretch: 75%; }
.semi { font-stretch: 87.5%; }
.kicker { font-size: 10.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--mute); font-stretch: 87.5%; }
.label { font-size: 12px; font-weight: 500; color: var(--mute); }
.nowrap { white-space: nowrap; }
/* the one shape: every page's card is this material */
.shape > .fill { background: var(--surface); box-shadow: var(--edge); }
svg { overflow: visible; }
