/* The closed set of named values (prototypes/design-system/README.md, decision 1):
   colour, font, type scale, radius, space, shadow, motion, layer, glyphs. Nothing
   lives here but custom properties and the fallback faces that the font stacks
   name (the @font-face rules at the end: the sans in a face per weight, the mono in one). Every page loads this file first, then
   ui.css, then its own CSS. A component's own variables stay with the component. */

:root {
  /* Light palette (default) */
  --bg: #f6f7f5;
  --bg-2: #eef0ec;
  --surface: #ffffff;
  --surface-2: #f3f5f1;
  --surface-3: #e8ece6;
  --border: #e3e7df;
  --border-2: #d4dacf;
  --border-btn: #b2bab1;       /* an outlined button's edge: 2.0:1 on white (frrx.47) */
  --border-control: #7f8983;   /* an empty checkbox's or radio's edge: 3:1 on white, --bg and --bg-2 (lsrn.64) */
  --text: #0e1311;
  --text-2: #2a302c;
  --muted: #5d6862;
  --muted-2: #8a948e;

  /* Accent — Court Green: primary action, active/selected, focus, the wordmark
     dot, and the "ready" tag, told apart from the action by form (a tinted tag,
     never a filled one). Never a label or a team. */
  --accent: #2b6a48;
  --accent-ink: #ffffff;
  --accent-soft: rgba(43, 106, 72, 0.10);
  --accent-line: rgba(43, 106, 72, 0.30);

  /* Status, always beside a glyph and a word (DESIGN.md, Status). Status Blue
     is a match in flight — uploading, pending, the upload bar — and never a
     data mark; warn and danger collapse into each other under protan/deutan
     vision. Ready takes the accent wash (.status-tag.st-ready). */
  --info: #0b6a8a;
  --info-soft: rgba(11, 106, 138, 0.10);
  --info-line: rgba(11, 106, 138, 0.28);
  --warn: #94600a;
  --warn-soft: rgba(148, 96, 10, 0.10);
  --warn-line: rgba(148, 96, 10, 0.30);
  --danger: #b3261e;
  --danger-soft: rgba(179, 38, 30, 0.08);
  --danger-line: rgba(179, 38, 30, 0.28);

  /* The gold of a star mark (the export modal's starred chip and badge). */
  --star: #b7791f;

  /* Team colours — the two sides of a match (player analytics, gvtk.2). Blue
     and orange separate under every common colour-vision deficiency. Team B is
     3.9:1 on white: a mark, never text. */
  --team-a: #1157a4;
  --team-b: #db551d;

  /* Match-level charts with no team or shot meaning (the shots-per-rally
     histogram). */
  --data-ink: #46524b;

  /* Player DNA stroke-mix palette (sbx-619). Categorical, deliberately NOT the
     team hues: stroke type is a property of the shot, not the side, so it needs
     its own ramp that stays distinct on either team card. */
  --st-ground: #1d97a3;
  --st-volley: #9c76f3;
  --st-overhead: #7f3a72;
  --st-lob: #7e9a4c;

  /* Marketing palette (prototypes/design-system/README.md, decision 13): the
     colours of `/`, `/landing-v2`, the 404 and the analysis page, drawn by
     landing.css, landing-v2.css and analysis-landing.css and by nothing else. A
     value the product palette already names is used by its own name there; what is
     here has no other name. An alpha of one of these is written with color-mix()
     where it is drawn. */
  --mkt-paper: #f4f5ef;                   /* Clubhouse Paper: the landing's ground */
  --mkt-paper-deep: #e9eee8;              /* the pricing rail, the "what you need" panel */
  --mkt-ink: #142019;                     /* Clubhouse Ink: the landing's text */
  --mkt-ink-2: #26342b;                   /* a rally row's lead cell */
  --mkt-ink-3: #3b4940;                   /* the sample window's title */
  --mkt-soft: #536158;                    /* a lede and a note, a label on /landing-v2, a rally row's chip text */
  --mkt-muted: #66736b;                   /* secondary text, the proof strip */
  --mkt-faint: #94a097;                   /* the set divider on the rally track */
  --mkt-tick: #b8c1ba;                    /* a rally tick */
  --mkt-track: #dfe3dc;                   /* the speaker slot on a phone frame */
  --mkt-chip: #edf1ea;                    /* a rally row's chip */
  --mkt-line: rgba(20, 32, 25, 0.13);     /* a hairline on paper */
  --mkt-mark-green: #26352c;              /* the logo's fill: the reel and phone frames */
  --mkt-zone-1: #a1bbdd;                  /* the lightest of the three court zones */
  --mkt-zone-2: #5d89c1;                  /* the middle zone; the third is --team-a */
  --mkt-stage-1: #142e38;                 /* the sample window's stage, first half */
  --mkt-stage-2: #222f69;                 /* and its second */
  --mkt-stage-glow: rgba(61, 122, 85, 0.22);
  --mkt-stage-shade: rgba(4, 8, 6, 0.85);
  --mkt-stage-ink: #f3f5ef;               /* text on the stage */
  --mkt-stage-soft: #c3cec7;              /* secondary text on the stage */
  --mkt-reel-shade: rgba(14, 20, 16, 0.62);     /* the reel caption's fade, dark to transparent */
  --mkt-frame-shade: rgb(14 22 18 / 0.5); /* the dimmed court round a player's ring */

  /* What a modal lays over the page. */
  --scrim: rgba(0, 0, 0, 0.5);

  /* A tooltip's ground and words (ui.css .tooltip). They resolve here, on :root,
     so a scope that renames --text (the player's skin below, the framing
     editor's control row) cannot flip a tooltip placed inside it (sw5g.26). */
  --tip-bg: var(--text);
  --tip-ink: var(--on-video);

  /* Status glyphs, drawn in currentColor through a mask: the "ready" check
     (.dot.live and .status-tag.st-ready), then the rest of the status tag's
     (prototypes/palette/status-blue.html). */
  --icon-up: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 10V2.5M2.8 5.5 6 2.3l3.2 3.2'/%3E%3C/svg%3E");
  --icon-clock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round'%3E%3Ccircle cx='6' cy='6' r='4.6'/%3E%3Cpath d='M6 3.4V6l1.8 1.1'/%3E%3C/svg%3E");
  --icon-arc: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M10.4 6A4.4 4.4 0 1 1 6 1.6'/%3E%3C/svg%3E");
  --icon-alert: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2.2 10.6 10H1.4L6 2.2ZM6 5.4v2.2M6 8.7v.1'/%3E%3C/svg%3E");
  --icon-pause: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M4.2 3v6M7.8 3v6'/%3E%3C/svg%3E");
  --icon-x: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='m3 3 6 6M9 3l-6 6'/%3E%3C/svg%3E");
  --icon-arrow-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6h7M6.5 3l3 3-3 3'/%3E%3C/svg%3E");
  --icon-retry: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 8a5 5 0 1 1-1.5-3.5M13 3v3h-3'/%3E%3C/svg%3E");
  --icon-info: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round'%3E%3Ccircle cx='8' cy='8' r='6.2'/%3E%3Cpath d='M8 7.2v4M8 4.8v.2'/%3E%3C/svg%3E");
  --icon-decline: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='M4 12l8-8'/%3E%3C/svg%3E");
  --icon-flag: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.2 10.6V1.6M3.2 2h6L7.7 4.2l1.5 2.2h-6'/%3E%3C/svg%3E");
  --icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E");
  /* A select's background image cannot take currentColor, so this glyph carries
     --muted's hex. */
  --icon-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%235d6862' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m2.5 4.5 3.5 3.5 3.5-3.5'/%3E%3C/svg%3E");

  --radius-2xs: 2px;
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-control: 8px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-pill: 999px;

  /* Space: named by value, the point is the closed set. */
  --space-2: 2px;
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-28: 28px;
  --space-32: 32px;
  --space-40: 40px;
  --space-48: 48px;
  --space-64: 64px;
  --space-80: 80px;
  --space-96: 96px;
  --space-128: 128px;

  /* Shadow: the closed set of twelve (prototypes/design-system/README.md, decision
     2). A rule that adds a ring, a border-colour edge or an inset line composes it
     from one of these plus its own var(). */
  --shadow-1: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 1px 2px rgba(20, 30, 20, 0.05); /* paper edge: a card on the page, a stat tile */
  --shadow-2: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 10px 30px rgba(20, 30, 20, 0.08); /* raised panel: the upload card, a sign-in card, a toast */
  --shadow-chip: 0 1px 2px rgba(14, 19, 17, 0.12);        /* a white chip lifted off a tray: the active segment, a pressed filter; a button's hover edge */
  --shadow-thumb: 0 1px 2px rgba(20, 30, 20, 0.22);       /* a small knob: a switch thumb, the scrubber, a marker */
  --shadow-pop: 0 1px 2px rgba(20, 30, 20, 0.05), 0 14px 36px rgba(20, 30, 20, 0.12); /* a light popover on the page: the one user left is .mp2-why */
  --shadow-float: 0 18px 40px -16px rgba(14, 19, 17, 0.32), 0 2px 6px -2px rgba(14, 19, 17, 0.12); /* a card lifted hard off the page: the menu panel (.menu), the timeline card, the stage */
  --shadow-float-dark: 0 18px 40px -12px rgba(0, 0, 0, 0.6); /* the same lift over video or dark chrome */
  --shadow-sheet: 0 -12px 32px -12px rgba(14, 19, 17, 0.35); /* a phone bottom sheet and the coach dock, casting upward */
  --shadow-modal: 0 30px 80px rgba(0, 0, 0, 0.2);         /* the top of the stack: a dialog, the support panel, a landing hero frame */
  --shadow-focus: 0 0 0 var(--ring-3) var(--accent-soft); /* the focus halo on a light ground */
  --shadow-focus-dark: 0 0 0 var(--ring-3) rgba(157, 212, 176, 0.35); /* the focus halo on the player's dark chrome */
  --shadow-ring-dark: inset 0 0 0 1px rgba(255, 255, 255, 0.08); /* a one-pixel edge on a control or menu over video */

  /* Ring and edge: the widths of a line drawn as a box-shadow, three rings and two
     edges, and no others (README decision 2). They are lengths, not shadows, so the
     twelve-shadow cap does not count them. Form: box-shadow: 0 0 0 var(--ring-2)
     var(--accent). No var() fallback holds a length: the gate counts one as a literal. */
  --ring-1: 1px;                                          /* a hairline drawn as a shadow, outer or inset: a menu or panel edge, a resting clip ring, an inset hairline */
  --ring-2: 2px;                                          /* selection: a selected clip, tile or export row, a hover ring, the "mine" marker, a chip's flash, the unread badge's cut-out */
  --ring-3: 3px;                                          /* a halo: a focus ring, an error or live dot, a card waiting on you */
  --edge-3: 3px;                                          /* the team-coloured top edge of a clip or tile, as an inset shadow */
  --edge-2: 2px;                                          /* a row or cell marker, as an inset shadow: the playing rally, a current admin row */

  /* Motion */
  --dur-fast: 120ms;
  --dur-base: 180ms;
  --dur-slow: 260ms;
  /* Easing (esei.30): one out-curve, one in-out curve, one for an edge sheet. linear is the
     one keyword left, for constant speed (a spinner, a sweep, the scroll-driven rail, the 404
     timeline); it is not a curve to tokenise. */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);   /* every one-shot transition and entrance (expo-out) */
  --ease-breath: ease-in-out;                  /* a --dur-breath loop, and the 404 zoom */
  --ease-sheet: cubic-bezier(0.32, 0.72, 0, 1); /* an edge sheet sliding in or out */

  /* Marketing motion: only for one-off scenes on marketing pages and the 404, never
     for a control's transition (decision 2). */
  --dur-mkt-stagger: 90ms;
  --dur-mkt-xs: 300ms;
  --dur-mkt-sm: 420ms;
  --dur-mkt-md: 700ms;
  --dur-mkt-lg: 1100ms;
  --dur-mkt-xl: 2630ms;

  /* Motion loops (decision 2): every infinite animation names one of these. */
  --dur-spin: 1s;                 /* a rotation: every spinner turns at this speed */
  --dur-breath: 1.8s;             /* a skeleton, a pulse, a shimmer or a progress sweep */

  /* One-off motion (decision 2). */
  --dur-flash: 1s;                /* the highlight on a value that just changed, away from where the person is looking */
  --delay-skeleton-expire: 15s;   /* the wait before a skeleton slot gives up: a timer, not motion */

  /* Layer */
  --z-nav: 60;
  --z-sheet: 70;
  --z-backdrop: 100;
  --z-toast: 200;
  --z-top: 300;                   /* what no toast may cover: the cookie banner and its error, the support panel, the email card */

  /* Each Geist is followed by its metric-matched fallback face (the @font-face
     rules at the end of this file), so the swap when the web font lands moves no
     line (i8k3n.14). */
  --font-sans: 'Geist', 'Geist Fallback', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'Geist Mono', 'Geist Mono Fallback', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* ── Type scale (ADR-054) ────────────────────────────────────────────────
     Six steps, each a step a reader can SEE (seven until esei.8 merged the label
     step into meta). Counting every rule whose
     selector the upload screen's markup reaches, plus the sizes named in the
     template itself, the screen used to draw TWENTY distinct px: 10, 10.5,
     11, 11.5, 12, 12.5, 13, 13.5, 14, 14.5, 15, 16, 18, 19, 20, 22, 24, 28,
     36, 40. Eleven of those — everything from 10 to 15 — form an unbroken
     ladder in half-pixel steps, which is not a set of decisions but the
     residue of many. Nine were named inline in index.html, across seventeen
     `style="font-size:"` attributes, i.e. outside this file's reach, which is
     how they drifted apart in the first place.

     The roles, and they are the whole of it:
       --fs-eta     the countdown, mono
       --fs-title   the one heading an entry panel carries
       --fs-head    the card title, and a stage title
       --fs-body    prose the card speaks
       --fs-sub     a muted qualifier that is not a sentence
       --fs-meta    measured/mono lines — chip, sub line, figures line, hints, and
                    the smallest uppercase labels (11px; uppercase and 0.08em
                    tracking set a label apart, not size)

     The six own the card's own prose; they do not swallow all twenty. What
     is deliberately NOT on this scale, and why, is ADR-054's second half: the
     large button (`.btn-lg`), which is sized against its hit target rather than
     against prose;
     `.input` at 16px (the score boxes are one), which is an iOS Safari focus-zoom
     threshold and not a type choice (a fine-pointer override takes it to the body
     step where no focus zoom exists — see the rule beside .input in ui.css); the
     page's own `.h1` above the card; and the countdown's two derived ratios.
     All of them are pinned by name and value in tests/off-scale.js's OFF_SCALE,
     and the sweep in upload-layout.test.js fails on a card rule naming a px the table does not — so
     the list cannot grow without someone writing a line in it.

     NOTE the boundary that sweep has: it reaches a rule through the classes
     the card's markup AND its scripts apply, so a rule keyed on a class no
     card node ever carries is outside it. */
  --fs-eta: 40px;
  --fs-title: 19px;
  --fs-head: 15px;
  --fs-body: 13.5px;
  --fs-sub: 12.5px;
  --fs-meta: 11px;

  /* The steps above and beside the card's six, one scale with them
     (prototypes/design-system/README.md, decision 3): a marketing page's main
     headline and .lv2-free, a page's
     own title, a section head, the word in a status tag, a stat tile's number. */
  --fs-display: clamp(40px, 6vw, 78px);
  --fs-headline: 36px;
  --fs-title-lg: 24px;
  --fs-status: 12px;
  --fs-figure: 22px;

  /* The marketing steps (prototypes/design-system/README.md, decision 3, owner
     2026-11-02): sizes above --fs-head on `/`, `/landing-v2`, the 404 and the
     analysis page, and nowhere else. A product page never names one;
     design-tokens.test.js fails on a selector off those pages that does. Those
     pages also take --fs-title for 18 and 19, --fs-figure for 21 and 22 and
     --fs-headline for 32 to 36, and --fs-display for their main headline and
     .lv2-free. */
  --fs-mkt-text: 17px;                          /* prose and base text */
  --fs-mkt-h3: 28px;                            /* card heads; section heads on a phone */
  --fs-mkt-fig: 44px;                           /* a price or a big figure */
  --fs-mkt-h2: clamp(32px, 3.5vw, 46px);        /* section heads on /landing-v2 and analysis */
  --fs-mkt-display: clamp(56px, 6.7vw, 96px);   /* the "404", .lh-free, the closing head */

  /* ── Weight, line height, letter spacing (esei.31; README decision 18) ───
     Thirteen tokens and nothing else. Weight: 650 and 700 snap to 600, 550 to
     500; there is no bold (DESIGN.md forbids 700 for headings). Line height is
     chosen by the text's role, not its size; a value snaps to the nearest.
     Letter spacing has three families: caps labels, tnum figures, headings. */
  --fw-regular: 400;       /* running text */
  --fw-medium: 500;        /* UI text, labels, links, buttons */
  --fw-semibold: 600;      /* headings, emphasis, figures (650 and 700 land here) */
  --lh-none: 1;            /* single-line boxes: badges, buttons, icons, display heads (0.9 to 1.1) */
  --lh-tight: 1.2;         /* headings (1.15 to 1.25) */
  --lh-snug: 1.4;          /* compact UI text (1.3 to 1.45) */
  --lh-body: 1.55;         /* prose (1.5 to 1.75) */
  --ls-caps: .08em;        /* every uppercase label (.03 to .11) */
  --ls-figure: .02em;      /* tnum figures and unit suffixes (.01 to .02) */
  --ls-tight-1: -.01em;    /* headings, the lightest tightening (to -.014) */
  --ls-tight-2: -.02em;    /* headings (-.015 to -.024) */
  --ls-tight-3: -.03em;    /* headings (-.025 to -.034) */
  --ls-tight-4: -.04em;    /* headings, the tightest (-.035 and beyond) */
}

@media (max-width: 720px) {
  /* The one step of the type scale that moves with the viewport (ADR-054).
     The countdown is 40px of mono on a card 560px wide and 22px on a phone,
     and the second number is a measured fit — see the pin's height table at
     the bottom of the 720px block in styles.css. Declared on the token so every rule that
     spends it, and both of the ratios derived from it, come down together. */
  :root { --fs-eta: 22px; }
}

/* ───────── The player's skin (padel-website-sm0o.3) ─────────
   The dark player on the match page: what sits on the picture at every width.
   Full screen is not dark: the shelf under the picture is the page's light shelf,
   as out of full screen (g2fr.34). Three layers:
     1. the white and black over the video, on :root;
     2. the skin's palette, on the page's .mp2-player hook, where the rules that
        draw the player read it (the block's light shelf reads a team colour from
        it too, which is why it cannot live on the dark part alone);
     3. the scope, which points the system's tokens at that palette. An .icon-btn or a
        .btn other than .btn-danger, which reads --danger, placed inside it reads
        correctly with no rule of its own. The scope stops at the names below:
        --accent-line, the rest of the -soft and -line family, --danger and --info
        keep the page's light values, so a control that reads one of those still
        needs a token added here first.
   The measured colours are the lsrn.* beads' hand-tuned contrast. They are defined
   here, and the player's rules read the scope's names, not --pl-*. The scope reaches
   only the frame's chrome (the caption, the seek line, the control row, the middle
   transport), so a rule that also draws on the light shelf keeps --pl (the ground) or
   --pl-a/-b/-u (the rally colours). A menu is the system's panel (ui.css .menu) and
   reads --surface, so on the shelf, in full screen too, it is the page's white
   (sm0o.16). No rule that draws on the light shelf reads a palette name beyond those,
   and none reads --on-video-16 there (sm0o.17).
   The shelf's roles the system has no name for come last. */
:root {
  --video-black: #000;                    /* the ground behind the picture: a stage, a poster, a player's box, the shade over a thumbnail */
  --on-video: #fff;                       /* text and glyphs on the picture; the tip's word, a switch's knob */
  --on-video-84: rgba(255, 255, 255, .84); /* the caption's second line */
  --on-video-72: rgba(255, 255, 255, .72); /* the time's total; the court's line */
  --on-video-62: rgba(255, 255, 255, .62); /* auto-play's track, on */
  --on-video-34: rgba(255, 255, 255, .34); /* auto-play's track, off; what is buffered on the seek line */
  --on-video-28: rgba(255, 255, 255, .28); /* the seek line's rail on the picture */
  --on-video-22: rgba(255, 255, 255, .22); /* a switch's track, off; the spinner's ring */
  --on-video-20: rgba(255, 255, 255, .20); /* a hovered control on the dark block; the strip's scrollbar */
  --on-video-16: rgba(255, 255, 255, .16); /* a hovered glass control; every hairline of the dark block (--pl-line) */
  --on-video-14: rgba(255, 255, 255, .14); /* a skeleton on the dark block */
  --video-shade-60: rgba(0, 0, 0, .6);     /* the caption's fade at its top; the caption's text shadow */
  --video-shade-50: rgba(0, 0, 0, .5);     /* the caption's text shadow on a phone */
}

.match-detail.mp2-player {
  --pl: #0b0f0d;                          /* the block's ground; the ink on a --pl-accent fill */
  --pl-2: rgba(255, 255, 255, .07);       /* a clip or a field on the ground */
  --pl-3: rgba(255, 255, 255, .12);       /* a control at rest, a clip hovered */
  --pl-line: var(--on-video-16);          /* every hairline */
  --pl-text: #e6ebe8;                     /* body text */
  --pl-text-2: #c7cec9;                   /* the time, a clip's number: a step under the text */
  --pl-muted: #9aa39e;                    /* labels and hints */
  --pl-faint: #7f8a84;                    /* the quietest figure */
  --pl-accent: #9dd4b0;                   /* the light green: progress, selection, the focus ring */
  --pl-accent-soft: rgba(157, 212, 176, .16); /* the selected clip's wash */
  --pl-warn: #f2b134;                     /* amber: a moved break, an uncounted game */
  --pl-a: #3d8bdd;                        /* team A's rally, on the dark block and on the shelf */
  --pl-b: #f07a45;                        /* team B's rally, on the dark block and on the shelf */
  --pl-u: #5f6a64;                        /* a rally with no call yet */

  /* The page's own values, read here before the scope below renames them, for
     a light popover that stands inside the skin. */
  --page-surface: var(--surface);         /* the phone's "..." menu: its ground */
  --page-surface-2: var(--surface-2);     /* the phone's "..." menu: a field's ground */
  --page-surface-3: var(--surface-3);     /* the phone's "..." menu: a row hovered */
  --page-border-2: var(--border-2);       /* the phone's "..." menu: its edge */
  --page-text: var(--text);               /* the phone's "..." menu: its ground's ink */
  --page-text-2: var(--text-2);           /* the phone's "..." menu: its rows */
  --page-muted: var(--muted);             /* the phone's "..." menu: a row's hint */
  --page-accent: var(--accent);           /* the ask-the-coach mark, the "..." menu */
}

/* The scope: what stands on the picture, in full screen too. */
.match-detail.mp2-player :is(.mp2-cap, .mp2-prog, .mp2-ctl, .mp2-mid) {
  --bg: var(--pl);                        /* a ground under a control on the picture */
  --bg-2: var(--pl-2);                    /* an empty .checkbox's ground on the picture */
  --surface: var(--pl);                   /* a menu, the why-note */
  --surface-2: var(--pl-2);               /* a field or a raised ground: the palette's first step */
  --surface-3: var(--pl-3);               /* a status wash, a control at rest, a ghost .btn hovered: its second step */
  --border: var(--pl-line);               /* an .icon-btn's and a ghost .btn's edge */
  --border-2: var(--pl-line);             /* a menu's edge */
  --border-btn: var(--pl-line);           /* a bar button's edge, a ghost .btn's edge */
  --text: var(--pl-text);                 /* a clip, a menu row, a set boundary */
  --text-2: var(--pl-text-2);             /* a clip's number, a bar button's label */
  --muted: var(--pl-muted);               /* a clip's second line, a box's edge hovered */
  --muted-2: var(--pl-faint);             /* a score's small figure */
  --accent: var(--pl-accent);             /* a selected clip's ring, a focus outline, a checked box */
  --accent-ink: var(--pl);                /* the mark on a fill: a checked box's tick, the ! badge */
  --accent-soft: var(--pl-accent-soft);   /* the selected clip's and tile's wash, a filter chip */
  --warn: var(--pl-warn);                 /* an uncounted game, a moved break, the ! badge */
  --team-a: var(--pl-a);                  /* team A's rally */
  --team-b: var(--pl-b);                  /* team B's rally */
  --shadow-focus: var(--shadow-focus-dark);/* a shared control's focus ring */
}

/* The ask-the-coach mark stands in the control row and keeps the page's green; the
   button's own focus ring stays the skin's. */
.match-detail.mp2-player .mp2-ask-mark {
  --accent: var(--page-accent);
}

/* A phone's "…" menu hangs from the caption but is a light popover (lsrn.45), in full
   screen too (g2fr.34). */
@media (max-width: 720px) {
  .match-detail.mp2.mp2-player #rallies-card > .sbs-main .mp2-menu {
    --surface: var(--page-surface);
    --border-2: var(--page-border-2);
    --text: var(--page-text);
    --text-2: var(--page-text-2);
    --muted: var(--page-muted);
    --surface-2: var(--page-surface-2);
    --surface-3: var(--page-surface-3);
    --accent: var(--page-accent);
  }
}

/* The shelf's roles, where the system's names run out: the bar and the clips under
   the frame. Everything else on the shelf reads the system's tokens. */
.match-detail.mp2.mp2-player #rallies-card > .sbs-main {
  --sh-bg: var(--surface);                /* the shelf's ground */
  --sh-clip: var(--surface-2);            /* a clip, a field */
  --sh-clip-h: var(--surface-3);          /* a clip hovered */
  --sh-btn: var(--surface);               /* a bar button at rest */
  --sh-btn-h: var(--surface-2);           /* a bar button hovered */
  --sh-ring: var(--border);               /* a clip's one-pixel edge */
  --sh-sk: rgba(14, 19, 17, .07);         /* a first-paint stand-in */
}
/* A rally a serve-side break names (g2fr.20): its edge ring turns amber. */
.match-detail.mp2.mp2-player #rallies-card > .sbs-main .mp2-clip.brk { --sh-ring: var(--warn); }
/* At 1100px and below there is no card: the shelf sits on the page's ground with
   white clips on it. A menu stands off that ground on its own white (ui.css .menu
   reads --surface), and what sits in it, the sheet's close, takes the card's steps;
   so does Edit games' call control, for its ground and hover. */
@media (max-width: 1100px) {
  .match-detail.mp2.mp2-player #rallies-card > .sbs-main {
    --sh-bg: var(--bg); --sh-clip: var(--surface); --sh-clip-h: var(--surface-2);
  }
  .match-detail.mp2.mp2-player #rallies-card > .sbs-main .mp2-fmenu {
    --sh-clip: var(--surface-2); --sh-clip-h: var(--surface-3);
  }
}

/* ───────── The exported scoreboard (padel-website-olqn4.4) ─────────
   The board the Export modal burns into a reel or a clips zip, drawn in source
   pixels at 1920x1080 and scaled to the option's thumbnail (styles.css .sb*).
   Every length and colour here is a constant of the spec's board
   (prototypes/rally-score-overlay/README.md, "The board, in pixels"), named once
   for the browser; services/scoreboard_png.py holds the same numbers for the
   PNG, so a frame of the render matches the thumbnail. Not the page's palette:
   the board sits on the video, in the owner's theme and accent, whatever the
   site around it looks like. */
:root {
  --sb-margin: 40px;                      /* from the chosen corner, both axes */
  --sb-h: 112px;                          /* the board's height */
  --sb-radius: 10px;
  --sb-shadow: 0 6px 24px rgba(0, 0, 0, .28);
  --sb-logo: 112px;                       /* the logo tile, square */
  --sb-logo-mark: 84px;                   /* logo-mark.svg inside it */
  --sb-names-min: 260px;                  /* the names column, at least */
  --sb-fs-name: 32px;                     /* a team label */
  --sb-serve: 14px;                       /* the serving team's dot, and its gap to the label */
  --sb-serve-ink: #e8c547;
  --sb-col-w: 86px;                       /* a score column */
  --sb-fs-score: 38px;
  --sb-fs-dash: 30px;                     /* a hidden column's dash (55% opacity) */
  --sb-line: 2px;                         /* every divider */
  --sb-light-bg: #ffffff;
  --sb-light-ink: #1b2420;
  --sb-light-line: #e4e8e5;
  --sb-light-first: #1f2a24;              /* the first column on the light board */
  --sb-dark-bg: rgba(18, 22, 20, .86);
  --sb-dark-ink: #ffffff;
  --sb-dark-line: rgba(255, 255, 255, .14);
  --sb-dark-first: rgba(255, 255, 255, .12);
  --sb-second-line: rgba(255, 255, 255, .18); /* the accent column's row divider */
  --sb-on-accent: #ffffff;
  /* The five accent swatches; the free colour comes from the colour input. */
  --sb-accent-green: #3d7a55;
  --sb-accent-blue: #2d6cdf;
  --sb-accent-red: #c0392b;
  --sb-accent-orange: #e8830c;
  --sb-accent-black: #1f2a24;
  /* The thumbnail beside the checkbox: 88px of a 1920px frame. */
  --sb-thumb-w: 88px;
  --sb-thumb-scale: calc(88 / 1920);
}

/* The fallback faces that --font-sans and --font-mono name right after Geist and
   Geist Mono (i8k3n.14). base.html loads Geist from Google Fonts with display=swap,
   so a cold first paint is in a system font. Most text here is line-height: normal,
   and Geist's normal line is 1.30em against the system fonts' 1.15-1.18em, so every
   line grew 1-2px when Geist landed: +16px above the shared page's player at 1280,
   +30px at 390. These faces are a system font whose ascent, descent and line gap
   are overridden to Geist's, so a line in them is as tall as in Geist.

   Measured in Chromium (macOS, 2026-11-07): canvas fontBoundingBoxAscent and
   -Descent at 1000px, and the line box of a line-height: normal span.
     Geist       ascent 1.005  descent 0.295  gap 0
     Geist Mono  ascent 1.005  descent 0.295  gap 0  advance 0.600em
                                                     Menlo advance 0.602em
   size-adjust makes the system font as wide as Geist at each weight: Geist / Arial
   at 400 is 102.4% over the page's copy (the measurement and the other weights are
   under "Width, 400-700" below), and Geist Mono / Menlo is 99.66%. Chromium scales
   the overrides by size-adjust too, so each override is Geist's metric / size-adjust:
     sans  100.5 / 1.024 = 98.1445%   29.5 / 1.024 = 28.8086%   (400; 500-700 below)
     mono  100.5 / .9966 = 100.8429%  29.5 / .9966 = 29.6006%

   Where they hold:
   - Height: in Chromium and Firefox, whichever local font loads, because the
     overrides replace its own metrics. Not in Safari (macOS and every iOS browser):
     WebKit does not apply ascent-, descent- or line-gap-override, so there the face
     is the local font at size-adjust with its own line, and the swap still moves
     lines.
   - Width, at 400: exact where Arial's metrics are (Arial on macOS, iOS and Windows;
     Liberation Sans and Arimo, metric-compatible with it, on Linux and ChromeOS),
     within about 1% for Roboto (Android, measured against Roboto from Google Fonts
     at i8k3n.14's 101.8%, not measured again at 102.4%), exact for Menlo and DejaVu
     Sans Mono, and within 0.4% for Liberation Mono, Droid Sans Mono and Courier
     New. Courier New is Windows' face (Consolas is 8% narrower, so it is not
     listed).
   - Width, 400-700 (sans only; i8k3n.16): one face per weight, 400, 500, 600 and 700,
     each a system font drawn at its own weight, because a face with no weight above
     400 is the regular with a synthesized bold, which keeps its advances and is 2-7%
     narrower than Geist at that weight, so a wrapping heading or label could still
     rewrap on the swap. 500 is Arial Regular (Geist 500 is wider than Geist 400, and
     Arial has no medium), 600 and 700 are Arial Bold. Measured
     in the page's own DOM (an off-screen nowrap span per text node of the v2 shared
     page, the page's font-size and font-feature-settings, letter-spacing normal on
     both sides because it is the same px on both and does not scale with size-adjust,
     text-transform not applied: an upper-case label is short and does not wrap), over
     all of the page's Geist copy set at each weight: 1,317-1,600 characters at 1280
     and 390, in English, Spanish and Portuguese:
             size-adjust  Geist / fallback source       en     es     pt
       400   102.4%       Geist 400 / Arial Regular     102.5  102.4  102.4
       500   104.8%       Geist 500 / Arial Regular     104.9  104.8  104.8
       600   101.0%       Geist 600 / Arial Bold        101.2  100.9  101.0
       700   103.3%       Geist 700 / Arial Bold        103.4  103.1  103.2
     (1280; 390 differs by 0.05 or less.) i8k3n.14 set 400 at 101.8%, over the
     visible text of the same page by a method it did not record; by this one that
     left 400 about 0.6% narrow, and the i8k3n.16 review moved it to 102.4% with
     the others. font-swap.spec.js measures all four weights again on every run, and
     its probes also carry the page's font-variant-numeric (tabular figures), which
     these did not: on the seeded local page, fallback / Geist comes out at
     99.5-99.9% in Chromium on macOS.
     Overrides, divided by each size-adjust as above:
       500   100.5 / 1.048 = 95.8969%     29.5 / 1.048 = 28.1489%
       600   100.5 / 1.010 = 99.5050%     29.5 / 1.010 = 29.2079%
       700   100.5 / 1.033 = 97.2894%     29.5 / 1.033 = 28.5576%
     Same metric-compatible fonts as 400 (Liberation Sans Bold and Arimo Bold are
     Arial Bold's widths). Roboto (from Google Fonts, as at 400): Roboto Medium is
     within 0.4% of Arial Regular against Geist 500 (104.5-104.8%), so the 500 face
     names it; Roboto Bold is about 5% narrower than Arial Bold (106.3-106.4% against
     Geist 600, 108.7% against Geist 700), so on Android 600 and 700 are still about
     5% narrow and can still rewrap, as before this, and the 600 and 700 faces name
     Roboto Bold only to keep the line height. Android 12+ ships only a variable
     Roboto-Regular.ttf, so local("Roboto-Medium") / local("Roboto-Bold") may find
     nothing there; the 500, 600 and 700 faces therefore end with local("Roboto") and
     local("Roboto-Regular"), so the height overrides still apply (weight synthesized
     from the regular instance, as the single face in #952 did) instead of falling
     through to system-ui. Unverified on a device. 800 and above is drawn from the 700
     face, 300 from the 400.
   - Glyphs: unicode-range is the subsets base.html gets from Google Fonts (latin,
     latin-ext, cyrillic, cyrillic-ext, vietnamese; and symbols2 for Mono), so a
     character Geist is not served for (an arrow, a dot, a math sign) falls through
     to the system font both before and after the swap, as it did before these
     faces. Once Geist has loaded, they draw nothing. */
@font-face {
  font-family: 'Geist Fallback';
  font-weight: 400;
  src: local("Arial"), local("ArialMT"), local("Helvetica"), local("Liberation Sans"), local("LiberationSans"), local("Arimo"), local("Roboto"), local("Roboto-Regular");
  unicode-range: U+0000-02CC, U+02CE-02D7, U+02DA, U+02DC-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+0400-052F, U+1C80-1C8A, U+1D00-1DBF, U+1E00-1EFF, U+2000-206F, U+20A0-20C4, U+2113, U+2116, U+2122, U+2191, U+2193, U+2212, U+2215, U+2C60-2C7F, U+2DE0-2DFF, U+A640-A69F, U+A720-A7FF, U+FE2E-FE2F, U+FEFF, U+FFFD;
  size-adjust: 102.4%;
  ascent-override: 98.1445%;
  descent-override: 28.8086%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Geist Fallback';
  font-weight: 500;
  src: local("Arial"), local("ArialMT"), local("Helvetica"), local("Liberation Sans"), local("LiberationSans"), local("Arimo"), local("Roboto-Medium"), local("Roboto Medium"), local("Roboto"), local("Roboto-Regular");
  unicode-range: U+0000-02CC, U+02CE-02D7, U+02DA, U+02DC-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+0400-052F, U+1C80-1C8A, U+1D00-1DBF, U+1E00-1EFF, U+2000-206F, U+20A0-20C4, U+2113, U+2116, U+2122, U+2191, U+2193, U+2212, U+2215, U+2C60-2C7F, U+2DE0-2DFF, U+A640-A69F, U+A720-A7FF, U+FE2E-FE2F, U+FEFF, U+FFFD;
  size-adjust: 104.8%;
  ascent-override: 95.8969%;
  descent-override: 28.1489%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Geist Fallback';
  font-weight: 600;
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica-Bold"), local("Liberation Sans Bold"), local("LiberationSans-Bold"), local("Arimo Bold"), local("Arimo-Bold"), local("Roboto-Bold"), local("Roboto Bold"), local("Roboto"), local("Roboto-Regular");
  unicode-range: U+0000-02CC, U+02CE-02D7, U+02DA, U+02DC-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+0400-052F, U+1C80-1C8A, U+1D00-1DBF, U+1E00-1EFF, U+2000-206F, U+20A0-20C4, U+2113, U+2116, U+2122, U+2191, U+2193, U+2212, U+2215, U+2C60-2C7F, U+2DE0-2DFF, U+A640-A69F, U+A720-A7FF, U+FE2E-FE2F, U+FEFF, U+FFFD;
  size-adjust: 101.0%;
  ascent-override: 99.5050%;
  descent-override: 29.2079%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Geist Fallback';
  font-weight: 700;
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica-Bold"), local("Liberation Sans Bold"), local("LiberationSans-Bold"), local("Arimo Bold"), local("Arimo-Bold"), local("Roboto-Bold"), local("Roboto Bold"), local("Roboto"), local("Roboto-Regular");
  unicode-range: U+0000-02CC, U+02CE-02D7, U+02DA, U+02DC-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+0400-052F, U+1C80-1C8A, U+1D00-1DBF, U+1E00-1EFF, U+2000-206F, U+20A0-20C4, U+2113, U+2116, U+2122, U+2191, U+2193, U+2212, U+2215, U+2C60-2C7F, U+2DE0-2DFF, U+A640-A69F, U+A720-A7FF, U+FE2E-FE2F, U+FEFF, U+FFFD;
  size-adjust: 103.3%;
  ascent-override: 97.2894%;
  descent-override: 28.5576%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Geist Mono Fallback';
  src: local("Menlo-Regular"), local("Menlo"), local("DejaVu Sans Mono"), local("DejaVuSansMono"), local("Liberation Mono"), local("LiberationMono"), local("Droid Sans Mono"), local("Courier New"), local("CourierNewPSMT");
  unicode-range: U+0000-02CC, U+02CE-02D7, U+02DA, U+02DC-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+0400-052F, U+1C80-1C8A, U+1D00-1DBF, U+1E00-1EFF, U+2000-206F, U+20A0-20C4, U+2113, U+2116, U+2122, U+2191, U+2193, U+2212, U+2215, U+23B8-23BD, U+2500-259F, U+2C60-2C7F, U+2DE0-2DFF, U+A640-A69F, U+A720-A7FF, U+FE2E-FE2F, U+FEFF, U+FFFD;
  size-adjust: 99.66%;
  ascent-override: 100.8429%;
  descent-override: 29.6006%;
  line-gap-override: 0%;
}
