/* The MUSL landing page's own styles, site/landing/landing.css: round 5's accepted stylesheet
   (plans/basic-teams/reviews/landing-r5/landing.css, the owner's picks built in), carried over unchanged except where
   the real feeds needed it (the champions' place goes to the round's fixtures), with the live page's additions at the
   end. Built on docs/design/site/musl.css (linked first, never copied): colours are its tokens, fonts its two families,
   the elements its own. Two layouts, the guide's: phone under 900 px, desktop from 900 at the 1080 px design width,
   range-syntax queries only (guide 3.4). The type is T2, "Sign-ups loud"; the draft is D1, "The deal"; the starting 11
   is X1, "Broadcast" (the owner's picks).
   Motion (the reel): smooth and physical, in the site's look: flat colour, hard edges, the block shadow, slants. Only
   transform, opacity and an SVG stroke offset are ever animated; colour changes are cuts. Native scroll: nothing here
   listens to scroll or ties an animation to it. The finished state is the default: with no script, or with reduced
   motion, every picture shows its end. */

/* ---- the page's state, set on <html> before the first paint (layout-a.html's head script): data-state live or
   between; data-hero what the hero shows. .js on <html> when the page's script runs. */
[data-state="live"] .between-only, [data-state="between"] .live-only { display: none !important; }
[data-hero="match"] .hero .ft-pair { display: none !important; }
[data-hero="result"] .hero-live { display: none !important; }

/* ---- T2, "Sign-ups loud": each role's size at the phone and the desktop layout (round 3's T2, built in), with the
   reel's own roles (the cards' names, the shirts' names, the league table, the worldie's line) a step down */
:root { --fs-poster: 32px; --fs-pitch: 32px; --fs-suline: 17px; --fs-livecap: 12.5px; --fs-running: 15px; --fs-exlabel: 16px; --fs-box: 20px;
  --fs-lead: 24px; --fs-beat: 18px; --fs-bline: 15px; --fs-rmh: 17px; --fs-rml: 15px; --fs-bigbtn: 15px; --fs-bigfield: 16px; --fs-biglabel: 12.5px;
  --fs-card: 12.5px; --fs-shirt: 11px; --fs-league: 13.5px; }
@media (width >= 900px) {
  :root { --fs-poster: 112px; --fs-pitch: 64px; --fs-suline: 20px; --fs-livecap: 12.5px; --fs-running: 17px; --fs-exlabel: 19px; --fs-box: 26px;
    --fs-lead: 32px; --fs-beat: 23px; --fs-bline: 17px; --fs-rmh: 17px; --fs-rml: 15px; --fs-bigbtn: 28px; --fs-bigfield: 26px; --fs-biglabel: 17px;
    --fs-card: 15px; --fs-shirt: 12.5px; --fs-league: 16px; }
}
/* the box and section headings take the T's size (guide 5.9: one heading size on a screen) */
.lp .title h2, .lp h2.sec, .lp .ex-head h2 { font-size: var(--fs-box); }

/* ---- the box headings may take a second line where the owner's words are longer than a narrow phone's box
   ("Demo champions, so far" at 320 and 360 px): guide 5.9 keeps them to one line, so this is the page's exception */
.lp .title h2 { white-space: normal; text-wrap: balance; min-width: 0; }

/* ---- the black bar: the logo and one link, Sign up, at its right end in both layouts */
.league .go { margin-left: auto; padding-right: 0; }

/* ---- the mode button (Claude's, changeable; the guide has no element for it): the standard sun and moon glyphs in the
   bar's link colour, 24 px in a 44 px target like the Account icon (guide 5.4), yellow on hover and focus like the
   bar's links. It shows the mode a press gives (the moon in light mode, the sun in dark) and says which is on with
   aria-pressed (pressed: dark). Desktop: at the bar's right end, after Sign up. Phones: at the right end of the logo's
   row, where the Account icon stands on the Club screen, with Sign up on the second row (the guide's two-row bar, 5.1):
   the logo, the icon and Sign up don't fit one phone row. No script, no button */
.league .mode { display: flex; align-items: center; justify-content: flex-end; min-width: 44px; min-height: var(--bar-h); margin: 0; padding: 0; border: 0;
  background: none; color: var(--league-ink); cursor: pointer; }
.league .mode:hover { color: var(--league-hover); }
.league .mode:focus-visible { outline-color: var(--league-focus); }
.mode-i { display: block; width: 24px; height: 24px; fill: currentColor; }
:root[data-mode="dark"] .mode .i-moon, :root:not([data-mode="dark"]) .mode .i-sun { display: none; }
:root:not(.js) .league .mode { display: none; }
@media (width >= 900px) { .league .mode { order: 3; } }
@media not (width >= 900px) {
  .league .mode { margin-left: auto; }
  .league .go { order: 2; margin-left: 0; padding-left: 0; }
}

/* ---- the column: one column on phones, 16 px apart; on desktop 22 px between rows, 24 between columns (guide 2.6) */
.lp { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 12px; padding-bottom: 48px; }
.lp .table { grid-area: auto; }
@media (width >= 900px) {
  .lp { gap: 22px 24px; padding-top: 22px; }
  .lp .card { display: flex; flex-direction: column; }
}

/* ---- the playing dots on Division 1's two playing clubs (round 2's); the pulse stops with reduced motion */
.playing { display: inline-block; width: 7px; height: 7px; margin-left: 5px; border-radius: 50%; background: var(--btn); vertical-align: 1px; animation: live-pulse 1.6s ease-in-out infinite; }
@keyframes live-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .playing { animation: none; } }

/* ---- a club name too long for its column wraps beside its swatch, never under it (the lead's fix: at 900 px "Dynamo
   Kalinsk" and "Olympique Valmont" dropped whole to a second line and left the swatch alone above them). A hanging
   indent the swatch's width (16 + 8 px; 14 + 6 under 390), so a second line starts under the name */
.lt td.clubcell { padding-left: 28px; text-indent: -24px; }
.lt td.clubcell:first-child { padding-left: 24px; }
.lt td.clubcell .cn { white-space: normal; }
.lt .cn .nw { white-space: nowrap; }
@media not (width >= 480px) { .lt td.clubcell { padding-left: 27px; } }
@media not (width >= 390px) { .lt td.clubcell { padding-left: 23px; text-indent: -20px; } .lt td.clubcell:first-child { padding-left: 20px; } }

/* ==================================================================== the example block (E2, built in)
   The match, the sign-up, Division 1 and the round's fixtures in one block under one heading. Desktop: a 2 px ink frame
   round it; the match the full width, then the sign-up and the round's fixtures in the left column beside Division 1
   in full. Phones: rules above and below, edge to edge, and no side frame, so the match keeps running edge to edge */
.ex { position: relative; display: grid; gap: 16px; min-width: 0; margin: 0 -16px; padding: 0 16px 18px; border-top: 2px solid var(--rule-strong); border-bottom: 2px solid var(--rule-strong); }
@media not (width >= 390px) { .ex { margin: 0 -12px; padding: 0 12px 18px; } }
.ex-head { padding-top: 14px; min-width: 0; }
.ex-head h2 { margin: 0; white-space: normal; }
/* "Live right now" with its blinking pink dot (new): the button pink, a hard on and off like a studio's on-air light;
   still and lit with reduced motion; gone between matches with the words that carry it */
.ex-dot { display: inline-block; width: .5em; height: .5em; margin-left: .45em; border-radius: 50%; background: var(--btn); vertical-align: .08em; animation: ex-blink 1.2s linear infinite; }
@keyframes ex-blink { 0%, 54% { opacity: 1; } 55%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ex-dot { animation: none; } }
.ex-line { margin: 6px 0 0; font: 600 var(--fs-exlabel)/1.35 var(--font-body); text-wrap: pretty; }
.exgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }
@media (width >= 900px) {
  /* the frame sits in the page's side margin, so everything inside it keeps the guide's column widths (504 px at 1080) */
  .ex { margin: 0 -22px; padding: 0 20px 22px; border: 2px solid var(--rule-strong); border-radius: 2px; gap: 22px; }
  .ex-head { padding-top: 18px; }
  .exgrid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px 24px; grid-template-areas: "su tb" "fx tb"; grid-template-rows: auto 1fr; }
  .exgrid > .join-top { grid-area: su; }
  .exgrid > .table { grid-area: tb; }
  .exgrid > .fxs { grid-area: fx; }
  /* no empty foot under the shorter column (guide 1.8): the fixtures' sheet runs to its box foot, so it ends level
     with Division 1 */
  .exgrid > .fxs .sheet, .exgrid > .table .sheet { flex: 1 1 auto; display: flex; flex-direction: column; }
  .exgrid > .fxs .fx-list, .exgrid > .table table { flex: 1 1 auto; }
}
@media (width >= 900px) and (not (width >= 1080px)) {
  .ex { margin: 0 -16px; padding: 0 14px 18px; }
}

/* ---- the hero (round 2's): the featured match, nothing laid over the pitch; under it the strip and the running line */
.hero { display: grid; min-width: 0; }
.viewer { display: block; width: 100%; height: 545px; border: 0; background: var(--league); }
.strip { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 18px; padding-top: 8px; }
.strip .cap { white-space: normal; }
.live-cap { margin: 0; font-size: var(--fs-livecap); }
.ctls { display: flex; flex-wrap: wrap; gap: 10px; }
.running { margin: 8px 0 0; font: italic 800 var(--fs-running)/1.2 var(--font-head); font-stretch: 100%; text-wrap: pretty; }
[data-hero="result"] .running { margin-top: 14px; }
/* the outline button (round 2's): a second action beside a box's one primary button; the link colour, 2 px corners */
.ctl { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: 0; padding: 0 14px; border: 2px solid currentColor;
  border-radius: 2px; background: none; color: var(--link); font: italic 800 15px/1 var(--font-head); font-stretch: 112%; cursor: pointer; }
.ctl:hover { background: var(--sheet); }
.ctl .ico { flex: none; width: 15px; height: 15px; fill: currentColor; }
.ctl[data-state="paused"] .i-pause, .ctl:not([data-state="paused"]) .i-play { display: none; }
.ft-pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.scorers { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; font-size: 14px; line-height: 1.45; }
.scorers .who { font-weight: 700; margin-right: 6px; }
.scorers .nw { white-space: nowrap; }
.ft-again { margin-top: 16px; }
@media not (width >= 900px) {
  .hero .viewer { width: calc(100% + 32px); margin: 0 -16px; height: 660px; }
}
@media not (width >= 390px) {
  .hero .viewer { width: calc(100% + 24px); margin: 0 -12px; }
}
@media (width >= 900px) {
  .ft-pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px 24px; }
  .ft-again { margin-top: auto; padding-top: 16px; }
  [data-hero="result"] .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "ft nx" "ft run"; gap: 0 24px; }
  [data-hero="result"] .ft-pair { display: contents; }
  [data-hero="result"] .hero .ft { grid-area: ft; }
  [data-hero="result"] .hero .ft-next { grid-area: nx; align-self: start; }
  [data-hero="result"] .hero .running { grid-area: run; align-self: end; margin: 22px 0 0; }
}

/* ---- the sign-ups (round 2's, T2): the headline at poster size on desktop, its two moments, preferred name and
   email, one button, the privacy line */
h2.pitch { margin: 0; font: italic 900 var(--fs-pitch)/.92 var(--font-head); font-stretch: 75%; letter-spacing: .01em; text-transform: uppercase; white-space: normal; text-wrap: balance; }
h2.pitch::before, h2.poster::before { content: none; }
.su-line { margin: 12px 0 0; font-size: var(--fs-suline); line-height: 1.45; max-width: 34em; }
.su-line span { display: block; text-wrap: pretty; } /* round 5: S3's "89th." never alone on a phone's last line */
.su-line span + span { margin-top: 4px; }
.lp .join { display: grid; gap: 16px; align-content: start; }
.signup { display: grid; gap: 14px; align-content: start; }
.fields { display: grid; gap: 12px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field input { width: 100%; min-height: 48px; margin: 0; padding: 10px 12px; border: 1px solid var(--ink-2); border-radius: 2px; background: var(--sheet);
  color: var(--ink); font: 400 16px/1.2 var(--font-body); }
.field input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.field input[aria-invalid="true"] { border-width: 2px; }
.err { margin: 0; font-size: 14px; font-weight: 700; }
button.btn { border: 0; cursor: pointer; justify-self: start; }
.privacy { margin: 0; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.privacy a { display: inline-flex; align-items: center; min-height: 44px; color: var(--link); font-weight: 600; }
.thanks { margin: 0; font-weight: 700; }
.signup-confirmation { padding: 22px; border: 2px solid var(--league-line); border-radius: 2px;
  background: var(--league); color: var(--league-ink); }
.signup-confirmation p { margin: 0; font: 600 18px/1.5 var(--font-body); text-wrap: pretty; }
.signup-confirmation p.signup-confirmation-help { margin-top: 12px; font-size: 15px; opacity: .8; }
.join[data-signup-state] h2 { font-size: var(--fs-pitch); text-align: center; }
.join[data-signup-state] h2:focus { outline: 3px solid var(--focus); outline-offset: 4px; }
.su-line[hidden] { display: none; }
.discord-follow { padding-top: 16px; border-top: 1px solid var(--ink-2); }
.discord-follow .ctl { width: 100%; min-height: 48px; justify-content: center; border-color: #2fd1c5; background: #2fd1c5; color: #141414; }
h2.poster { margin: 0; font: italic 900 var(--fs-poster)/.92 var(--font-head); font-stretch: 78%; letter-spacing: .01em; text-transform: uppercase; white-space: normal; text-wrap: balance; }
.join-big .field label { font-size: var(--fs-biglabel); }
@media (width >= 900px) {
  .field input { min-height: 54px; }
  .join-top .fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .lp .join-big { gap: 22px; padding: 28px 28px 22px; }
  .join-big .signup { grid-template-columns: minmax(0, 1fr) auto; column-gap: 20px; row-gap: 10px; align-items: end; }
  .join-big .fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
  .join-big .field input { min-height: calc(var(--fs-bigbtn) * 3.1); padding: 10px 18px; font-size: var(--fs-bigfield); }
  .join-big .btn { min-height: calc(var(--fs-bigbtn) * 3.1); font-size: var(--fs-bigbtn); padding: 0 calc(var(--fs-bigbtn) * 1.47) 0 calc(var(--fs-bigbtn) * 4.24); }
  .join-big .btn::before { left: calc(var(--fs-bigbtn) * .67); width: calc(var(--fs-bigbtn) * 2.918); height: calc(var(--fs-bigbtn) * 1.129);
    margin-top: calc(var(--fs-bigbtn) * -.5645); background-size: 100% 100%; }
  .join-big .privacy, .join-big .thanks { grid-column: 1 / -1; }
  .join-big .privacy { font-size: 15px; }
}

/* ---- Roadmap: what a player will do, each with a plain symbol (Coming soon folded in, November 7) */
.rm-list { list-style: none; margin: 0; padding: 0; display: grid; align-content: start; }
.rm-list li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; padding: 12px 0; border-top: 1px solid var(--panel-line); }
.rm-list li:first-child { padding-top: 0; border-top: 0; }
.rm-mark { color: var(--ink-2); padding-top: 3px; }
.rm-mark svg { display: block; width: 36px; height: 14px; }
.rm-list h3 { margin: 0 0 2px; font: italic 900 var(--fs-rmh)/1.2 var(--font-head); font-stretch: 112%; }
.rm-list p { margin: 0; font-size: var(--fs-rml); line-height: 1.45; }

/* ---- the foot of the page: one Roadmap, then the bottom sign-up (owner, November 7: "maybe we just do roadmap and just
   have chip shop promotion, relegation, and coach tactics. Then we save some of the scroll space for something else").
   On desktop its three items sit in one row (Claude's call, changeable: beside the sign-up squeezed the form's fields) */
.endgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }
@media (width >= 900px) {
  .endgrid { gap: 22px; }
  .endgrid > .pr .rm-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; }
  .endgrid > .pr .rm-list li { padding-top: 0; border-top: 0; }
}

/* ==================================================================== Run your club, the reel (O3, built in)
   The owner's beats in order, one story club throughout (the owner's pick, reel-picks.json's last club; build.ts draws
   it): the draft signs to it, it names itself, its kit is the one the flash locks on, it picks its eleven and wins the
   league. */
.rc { display: grid; gap: 8px; min-width: 0; }
h2.sec { margin: 6px 0 0; }
.rc-lead { margin: 2px 0 10px; font: italic 900 var(--fs-lead)/1.1 var(--font-head); font-stretch: 112%; }
.beat-h { margin: 0; font: italic 900 var(--fs-beat)/1.15 var(--font-head); font-stretch: 112%; }
.beat-l { margin: 6px 0 0; font-size: var(--fs-bline); line-height: 1.45; max-width: 34em; }

/* ---- the story club's colours: before the kit, a plain slate; after it, its own (build.ts sets them on the screen) */
.kit-none { --club: #3d4a6b; --club-ink: #ffffff; --red-deep: #313b56; --trim: #f3efe6; }
/* the club bar in a picture (guide 5.6), with the teal line along its top as well, as it sits under the black bar */
.sc-bar { border-top: var(--line-w) solid var(--league-line); }
.sc-bar .wrap { padding-left: 12px; padding-right: 12px; }

/* ---- the shirts (new): the Kit Room's shirt drawn flat in the club's home colour with its trim on the collar, the cuffs
   and the hem, its number on the chest; the keepers' in the trim colour */
.shirt { display: block; width: var(--sw, 30px); height: auto; aspect-ratio: 100 / 90; overflow: visible; --k-body: var(--club); --k-trim: var(--trim); --k-line: #0c1220; }
.gk .shirt { --k-body: var(--trim); --k-trim: var(--club); }
.sh-n { fill: var(--club-ink); font: italic 900 38px var(--font-head); font-stretch: 100%; }
.gk .sh-n { fill: var(--club); }
:root[data-mode="dark"] .shirt { --k-line: #f3efe6; }

/* ---- the motion's shared steps. A cut is a hold: "hidden" keeps an element out of sight until its moment, "shown"
   keeps it in sight until its moment; after either, the element's own (finished) style is back. Every animation ends
   on the element's own style (fill backwards), so the end state is always the finished state */
@keyframes shown { from, to { opacity: 1; } }
@keyframes hidden { from, to { opacity: 0; } }
@keyframes snap-in { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
:root { --e-slide: cubic-bezier(.22, .8, .3, 1); --e-drop: cubic-bezier(.5, 0, .75, .3); --e-move: cubic-bezier(.45, .05, .2, 1); --e-fall: cubic-bezier(.55, 0, .9, .45); }

/* ==================================================================== the seven pictures
   Each picture's finished state is its default. landing.js sets data-p="wait" (the start) before it plays, "go" while
   it plays; CSS ends on the finished state. With no script or reduced motion it stays finished. data-ms is its duration. */
.pic { container-type: inline-size; position: relative; display: grid; align-content: center; min-width: 0; height: var(--pic-h, 272px); }
@media (width >= 900px) { .pic { --pic-h: 480px; } }
/* the scenes that place their pieces themselves take the picture's whole height */
.bc { height: var(--pic-h, 272px); }

/* ---- 2, Name it: the name builds onto the club bar letter by letter, like a teletext page (round 3's), then the crest
   cuts in (--crest-at, when the last letter is in; build.ts) */
.pic-name { align-content: center; }
.pic[data-p="wait"] .nm-l, .pic-name[data-p="wait"] .crest { opacity: 0; }
.pic[data-p="go"] .nm-l { animation: hidden calc(var(--i) * 55ms + 200ms) linear; }
.pic-name[data-p="go"] .crest { animation: hidden var(--crest-at, 1150ms) linear; }
/* the whole name on the bar, whatever the club: the bar's own size where it fits, smaller where the picture is narrow,
   sized from the picture's width and the name's length (--nlen; build.ts), like the kit flash's names (Claude's sizes) */
.pic-name .cname { font-size: min(16px, calc((100cqw - 80px) / (var(--nlen, 14) * .7))); }
@media not (width >= 390px) { .pic-name .cname { font-size: min(15px, calc((100cqw - 80px) / (var(--nlen, 14) * .7))); } }
@media (width >= 900px) { .pic-name .cname { font-size: min(21px, calc((100cqw - 80px) / (var(--nlen, 14) * .78))); } }

/* ---- 3, Pick its kit (owner, November 7: "I actually like the old concept better ... Just show the different uniforms
   being picked. Use the new uniform format and show stripes, sash. Show a different one each time with different colors
   and different names but use real team names and real different symbols"): round 3's flash, each layer a real club
   (reel-picks.json; build.ts writes them): its crest from the accepted renderer, its name on its club bar, its two kits in
   the uniform builder U3's drawing (kit-draw.js) and pattern. The layers are stacked, the first club on top; each cuts
   away in its turn, its kits turning edge on as the next club's turn face on, and the last locks on, its crest stamped */
.kitflip { display: grid; }
.kitflip > .kf { grid-area: 1 / 1; display: grid; gap: 12px; align-content: center; }
.kf-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.kf-top .sc-bar { flex: 1 1 auto; min-width: 0; }
.kf[data-bar-tone="light"] .cname { text-shadow: 0 1px 0 rgba(255,255,255,.35); }
/* every club's whole name on its bar: the bar's own size where it fits, a step smaller where the picture is narrow (the
   narrowest phones and the 900 to 1079 px band), sized from the picture's width (a long name, Dynamo Skarmyr, runs about
   10.4 times its type size at the phone's width, 11.6 at the desktop's) */
.kf .cname { font-size: min(16px, calc((78cqw - 34px) / 10.4)); }
/* the crest and the bar share the picture's width: on the narrowest phones the crest shrinks so the name stays whole */
.kf-crest { flex: none; display: block; width: clamp(40px, 22cqw, 84px); }
.kf-crest svg { display: block; width: 100%; height: auto; }
@media not (width >= 360px) { .kf-top { gap: 8px; } .kf-top .sc-bar .wrap { padding-left: 8px; padding-right: 8px; } }
.kf-kits { display: flex; justify-content: center; gap: 12cqw; --kw: clamp(68px, 30cqw, 128px); }
.kfig { margin: 0; display: grid; justify-items: center; gap: 4px; perspective: 600px; }
.kfig .kit-svg { display: block; width: var(--kw); height: auto; color: var(--ink); backface-visibility: hidden; }
/* desktop: the crest a step smaller so every club's whole name fits its bar at the bar's own size, and the kits larger to
   use the picture's height (Claude's sizes, changeable) */
@media (width >= 900px) {
  .kitflip > .kf { gap: 28px; }
  .kf-crest { width: 56px; }
  .kf .cname { font-size: min(21px, calc((100cqw - 92px) / 11.6)); }
  .kf-kits { gap: 6cqw; --kw: 46cqw; }
}
.kitflip > .kf:not(.kf-end) { opacity: 0; }
.pic-kit[data-p="wait"] .kitflip > .kf { opacity: 1; }
.pic-kit[data-p="go"] .kf-1 { animation: shown 500ms linear; }
.pic-kit[data-p="go"] .kf-2 { animation: shown 1000ms linear; }
.pic-kit[data-p="go"] .kf-3 { animation: shown 1500ms linear; }
.pic-kit[data-p="go"] .kf-1 .kit-svg { animation: kit-out 130ms var(--e-fall) 370ms backwards; }
.pic-kit[data-p="go"] .kf-2 .kit-svg { animation: kit-in 130ms var(--e-slide) 500ms backwards, kit-out 130ms var(--e-fall) 870ms backwards; }
.pic-kit[data-p="go"] .kf-3 .kit-svg { animation: kit-in 130ms var(--e-slide) 1000ms backwards, kit-out 130ms var(--e-fall) 1370ms backwards; }
.pic-kit[data-p="go"] .kf-end .kit-svg { animation: kit-lock 240ms var(--e-slide) 1500ms backwards; }
.pic-kit[data-p="go"] .kf-end .kf-crest { animation: stamp-flat 200ms var(--e-drop) 1780ms backwards; }
@keyframes kit-in { from { transform: rotateY(-90deg); } to { transform: none; } }
@keyframes kit-out { from { transform: none; } to { transform: rotateY(90deg); } }
@keyframes kit-lock { 0% { transform: rotateY(-90deg); } 70% { transform: rotateY(10deg); } 100% { transform: none; } }
@keyframes stamp-flat { from { opacity: 0; transform: scale(1.9); } to { opacity: 1; transform: none; } }

/* ---- 4, Pick your starting 11: the eleven as shirts on a pitch (attack upward), each with its number and the surname
   under it. It ends with the top scorer on the bench and the kid on. A shirt's place: --x/--y in the shape, in % of
   its field (a size container); the bench is outside the field. The outer element (.xs) is the shirt's place and its
   move; the inner (.xs-in) its drop. */
.xs { position: absolute; left: 0; top: 0; z-index: 1; --px: calc(var(--x, 50) * 1cqw); --py: calc(var(--y, 50) * 1cqh);
  transform: translate(calc(var(--px) - 50%), calc(var(--py) - 50%)); }
.xs-in { display: grid; justify-items: center; gap: 1px; --sw: clamp(24px, 11cqw, 40px); }
@media (width >= 900px) { .xs-in { --sw: clamp(24px, 12.5cqw, 46px); } }
.sh-name { display: block; padding: 0 3px; background: var(--sheet); color: var(--ink); font: 700 var(--fs-shirt)/1.25 var(--font-body); white-space: nowrap; }
.xs.top, .xs.sub { transform: translate(calc(var(--qx) - 50%), calc(var(--qy) - 50%)); }
.xs.kid { z-index: 2; }
.xs.top { z-index: 3; }
/* the top scorer and the kid keep their names' line while on the bench (hidden), so their places there drop by half of
   it to sit level with the bench's other shirt (the lead's fix: the 9 rode over the bench strip's top edge) */
.xs.top, .xs.kid { --nh: calc((1px + var(--fs-shirt) * 1.25) / 2); }
.pl { position: absolute; inset: 0; pointer-events: none; }
.pl::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--rule); }
.pl::after { content: ""; position: absolute; left: 50%; top: 50%; width: 24cqw; aspect-ratio: 1; border: 1px solid var(--rule); border-radius: 50%; transform: translate(-50%, -50%); }
/* a pink ring flashes round the top scorer before he goes */
.xs.top .xs-in::after { content: ""; position: absolute; left: 50%; top: calc(var(--sw) * .45); width: calc(var(--sw) * 1.5); height: calc(var(--sw) * 1.5); border: 3px solid var(--btn); border-radius: 50%; transform: translate(-50%, -50%); opacity: 0; }

/* X1 "Broadcast": the club's bar wipes in like a broadcast graphic, the shirts drop into the shape and settle, the
   names cascade in under them; the bench slides up; the top scorer's shirt goes down to it and the kid's comes up */
.bc { display: grid; grid-template-rows: auto minmax(0, 1fr) 42px; gap: 6px; overflow: hidden; }
.bc-head { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 4px 10px; background: var(--league); color: var(--logo-ink); border-bottom: 3px solid var(--league-line);
  font: italic 900 14px/1.1 var(--font-head); font-stretch: 112%; white-space: nowrap; }
.bc-head .crest { width: 22px; height: 26px; }
/* the club's whole name, smaller where a long one would run past the bar (as Name it's; Claude's sizes) */
.bc-head > span:last-child { font-size: min(1em, calc((100cqw - 56px) / (var(--nlen, 14) * .7))); }
.bc-pitch { position: relative; container-type: size; background: var(--sheet); border: 1px solid var(--panel-line); }
.bc-bench { display: flex; align-items: center; padding: 0 10px; background: var(--league); }
.bc-bench .cap { color: var(--logo-ink); }
.pic-x1 .xs.top { --qx: 68cqw; --qy: calc(100cqh + 27px + var(--nh)); }
.pic-x1 .xs.kid { --qx: 84cqw; --qy: calc(100cqh + 27px + var(--nh)); }
.pic-x1 .xs.sub { --qx: 52cqw; --qy: calc(100cqh + 27px); }
.pic-x1 .xs.sub .sh-name { display: none; }
.xs.top .sh-name { opacity: 0; }
@media (width >= 900px) { .bc { grid-template-rows: auto minmax(0, 1fr) 52px; } .bc-head { font-size: 18px; padding: 6px 12px; } .bc-head .crest { width: 28px; height: 33px; }
  .bc-head > span:last-child { font-size: min(1em, calc((100cqw - 66px) / (var(--nlen, 14) * .7))); }
  .pic-x1 .xs.sub { --qy: calc(100cqh + 32px); } .pic-x1 .xs.top, .pic-x1 .xs.kid { --qy: calc(100cqh + 32px + var(--nh)); } }
.pic-x1[data-p="wait"] .bc > * , .pic-x1[data-p="wait"] .xs { opacity: 0; }
.pic-x1[data-p="go"] .bc-head { animation: wipe 280ms var(--e-slide) backwards; }
@keyframes wipe { from { transform: translateX(-102%); } to { transform: none; } }
.pic-x1[data-p="go"] .bc-pitch { animation: show-in 200ms linear 120ms backwards; }
@keyframes show-in { from { opacity: 0; } to { opacity: 1; } }
.pic-x1[data-p="go"] .xs:not(.kid):not(.sub) .xs-in { animation: x-drop 300ms linear calc(240ms + var(--i) * 95ms) backwards; }
@keyframes x-drop {
  0% { opacity: 0; transform: translateY(-34px) scale(1.25); animation-timing-function: var(--e-drop); }
  68% { opacity: 1; transform: translateY(0) scale(1.06, .92); animation-timing-function: var(--e-slide); }
  100% { transform: none; }
}
.pic-x1[data-p="go"] .xs:not(.kid):not(.sub) .sh-name { animation: x-name 220ms var(--e-slide) calc(520ms + var(--i) * 95ms) backwards; }
@keyframes x-name { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.pic-x1[data-p="go"] .bc-bench { animation: bench-up 260ms var(--e-slide) 1700ms backwards; }
.pic-x1[data-p="go"] .xs.kid .xs-in, .pic-x1[data-p="go"] .xs.sub .xs-in { animation: bench-up 260ms var(--e-slide) 1760ms backwards; }
@keyframes bench-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.pic-x1[data-p="go"] .xs.top .xs-in::after { animation: ring 600ms linear 2200ms backwards; }
@keyframes ring { 0%, 100% { opacity: 0; } 1%, 30% { opacity: 1; } 31%, 55% { opacity: 0; } 56%, 85% { opacity: 1; } 86% { opacity: 0; } }
.pic-x1[data-p="go"] .xs.top { animation: x-off 520ms var(--e-move) 2780ms backwards; }
@keyframes x-off { from { transform: translate(calc(var(--px) - 50%), calc(var(--py) - 50%)); } to { transform: translate(calc(var(--qx) - 50%), calc(var(--qy) - 50%)); } }
.pic-x1[data-p="go"] .xs.top:not(.kid):not(.sub) .sh-name { animation: nm-x1 2780ms linear; }
@keyframes nm-x1 { 0%, 49.4% { opacity: 0; transform: translateY(6px); } 57.4%, 100% { opacity: 1; transform: none; } }
.pic-x1[data-p="go"] .xs.kid { animation: x-on 520ms var(--e-move) 3080ms backwards; }
@keyframes x-on { from { transform: translate(calc(var(--qx) - 50%), calc(var(--qy) - 50%)); } to { transform: translate(calc(var(--px) - 50%), calc(var(--py) - 50%)); } }
.pic-x1[data-p="go"] .xs.kid .sh-name { animation: hidden 3540ms linear; }

/* ---- 5, Keep your players fresh: a Fitness row whose word flips fresh, tired, worn out (round 3's; guide 5.18) */
.fit .sheet { margin: 0; }
.fit td.pname { white-space: normal; }
.flip { display: inline-grid; }
.flip > span { grid-area: 1 / 1; white-space: nowrap; }
.flip .trend svg { display: inline-block; width: 11px; height: 7px; margin-left: 5px; vertical-align: 1px; fill: none; stroke: currentColor; }
.flip > .f-fresh, .flip > .f-tired { opacity: 0; }
.pic[data-p="wait"] .flip > .f-fresh { opacity: 1; }
.pic[data-p="wait"] .flip > .f-worn { opacity: 0; }
.pic[data-p="go"] .flip > .f-fresh { animation: shown 600ms linear; }
.pic[data-p="go"] .flip > .f-tired { animation: shown 600ms linear 600ms; }
.pic[data-p="go"] .flip > .f-worn { animation: hidden 1200ms linear; }

/* ---- 1 and 6, Draft it and Watch your matches: a clip recorded from the live page (the onboarding lane's draft, gold
   pack; the accepted match viewer, a goal from the sample match), a muted mp4 over its still, the desktop or the phone
   cut (landing.js). The picture runs to the screen's edges on the ground the recording was made on (the draft's stage and
   the viewer are both near the black bar's black, so the bar's colour stands for both). The clip shows only when it
   plays: with no script or with reduced motion the still is the picture */
.pic-clip { height: calc(100% + 24px); min-height: 0; align-content: center; margin: -12px -10px; background: var(--league); }
@media (width >= 900px) { .pic-clip { height: calc(100% + 32px); margin: -16px -14px; } }
.clip { position: relative; overflow: hidden; }
.clip picture, .clip-still { display: block; width: 100%; height: auto; }
.clip-v { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
:root:not(.js) .clip-v { display: none; }
@media (prefers-reduced-motion: reduce) { :root:not([data-reel-motion="on"]) .clip-v { display: none; } }

/* ---- 7, Win your league (new): a league table on its sheet; the story's club (the your-club row, guide 5.23) climbs
   to first a matchday at a time, its points going up and the rows it passes sliding down; then the trophy stamps on */
.lg { --rh: 34px; display: grid; align-self: center; padding: 8px 10px 2px; background: var(--sheet); border: 1px solid var(--panel-line); border-radius: 2px; }
.lg-head { display: grid; grid-template-columns: 2.2em minmax(0, 1fr) auto; gap: 0 8px; padding: 0 0 7px; border-bottom: 2px solid var(--rule-strong);
  font: 700 12px/1.2 var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.lg-head span:first-child { text-align: center; }
.lg-body { position: relative; display: grid; grid-template-columns: 2.2em minmax(0, 1fr); column-gap: 8px; height: calc(var(--n) * var(--rh)); }
.lg-ranks, .lg-rows { margin: 0; padding: 0; list-style: none; }
.lg-ranks li { display: grid; place-items: center; height: var(--rh); font: 700 var(--fs-league)/1 var(--font-body); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.lg-rows { position: relative; }
.lg-row { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; height: var(--rh); padding-right: 2px; border-bottom: 1px solid var(--rule);
  font: 400 var(--fs-league)/1.2 var(--font-body); transform: translateY(calc(var(--to) * var(--rh))); }
.lg-row .cn { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* a long club name takes a second line in its row rather than losing its end, as the Division table's names do (its
   your-club row carries the tag and the trophy too; Claude's, changeable) */
.lg-row .cn { white-space: normal; line-height: 1.08; overflow-wrap: normal; }
.lg-row .chip { flex: none; }
.lg-pts { flex: none; display: inline-grid; margin-left: 8px; font-variant-numeric: tabular-nums; text-align: right; }
.lg-pts > span { grid-area: 1 / 1; }
.lg-me { z-index: 2; font-weight: 700; background: var(--me-band); box-shadow: -6px 0 0 var(--me-band), 6px 0 0 var(--me-band); }
.lg-me .cn { flex: 0 1 auto; }
.lg-me .cn::after { content: ""; display: inline-block; width: 21.5px; height: 9px; margin-left: 4.5px; vertical-align: .5px; background: var(--tag) 0 0 / 21.5px 9px no-repeat; }
.lg-pts > .lgp-0, .lg-pts > .lgp-1, .lg-pts > .lgp-2, .lg-pts > .lgp-3 { opacity: 0; }
.trophy { flex: none; width: 26px; height: 26px; margin: 0 4px 0 auto; transform: rotate(-12deg); overflow: visible; }
.trophy .tr-cup { fill: #f1c40f; stroke: #1a1630; stroke-width: 2.5; stroke-linejoin: round; }
.trophy .tr-ear { fill: none; stroke: #1a1630; stroke-width: 2.5; }
@media (width >= 900px) { .lg { --rh: 54px; padding: 12px 16px 2px; } .lg-head { font-size: 12.5px; } .trophy { width: 34px; height: 34px; } }
/* on the narrowest phones the table tightens so every name stays whole: smaller type, the trophy smaller, the
   your-club row keeping its tint and dropping its tag */
@container (width < 260px) {
  .lg { padding: 6px 6px 2px; }
  .lg-head, .lg-body { grid-template-columns: 1.6em minmax(0, 1fr); column-gap: 6px; }
  .lg-head { grid-template-columns: 1.6em minmax(0, 1fr) auto; font-size: 11px; }
  .lg-row, .lg-ranks li { font-size: 12px; }
  .lg-row .chip { margin-right: 5px; width: 13px; height: 13px; }
  .lg-me .cn::after { content: none; }
  .trophy { width: 20px; height: 20px; }
}
.pic-league[data-p="wait"] .lg-me { transform: translateY(calc(var(--from) * var(--rh))); }
.pic-league[data-p="wait"] .lg-row:not(.lg-me) { transform: translateY(calc(var(--from) * var(--rh))); }
.pic-league[data-p="wait"] .trophy, .pic-league[data-p="wait"] .lgp-4 { opacity: 0; }
.pic-league[data-p="wait"] .lgp-0 { opacity: 1; }
.pic-league[data-p="go"] .lg-me { animation: climb 2600ms linear backwards; }
@keyframes climb {
  0% { transform: translateY(calc(4 * var(--rh))); }
  15.4% { transform: translateY(calc(4 * var(--rh))); animation-timing-function: var(--e-move); }
  30% { transform: translateY(calc(3 * var(--rh))); }
  38.5% { transform: translateY(calc(3 * var(--rh))); animation-timing-function: var(--e-move); }
  53% { transform: translateY(calc(2 * var(--rh))); }
  61.5% { transform: translateY(calc(2 * var(--rh))); animation-timing-function: var(--e-move); }
  76% { transform: translateY(calc(1 * var(--rh))); }
  84.6% { transform: translateY(calc(1 * var(--rh))); animation-timing-function: var(--e-move); }
  99.2%, 100% { transform: none; }
}
.pic-league[data-p="go"] .lg-row[data-step="1"] { animation: row-down 380ms var(--e-move) 400ms backwards; }
.pic-league[data-p="go"] .lg-row[data-step="2"] { animation: row-down 380ms var(--e-move) 1000ms backwards; }
.pic-league[data-p="go"] .lg-row[data-step="3"] { animation: row-down 380ms var(--e-move) 1600ms backwards; }
.pic-league[data-p="go"] .lg-row[data-step="4"] { animation: row-down 380ms var(--e-move) 2200ms backwards; }
@keyframes row-down { from { transform: translateY(calc(var(--from) * var(--rh))); } to { transform: translateY(calc(var(--to) * var(--rh))); } }
.pic-league[data-p="go"] .lgp-0 { animation: shown 590ms linear; }
.pic-league[data-p="go"] .lgp-1 { animation: shown 600ms linear 590ms; }
.pic-league[data-p="go"] .lgp-2 { animation: shown 600ms linear 1190ms; }
.pic-league[data-p="go"] .lgp-3 { animation: shown 600ms linear 1790ms; }
.pic-league[data-p="go"] .lgp-4 { animation: hidden 2390ms linear; }
.pic-league[data-p="go"] .trophy { animation: trophy-in 220ms var(--e-drop) 2700ms backwards; }
@keyframes trophy-in { from { opacity: 0; transform: rotate(-12deg) scale(2.2); } to { opacity: 1; transform: rotate(-12deg); } }

/* ==================================================================== the reel's frame (round 3's O3)
   One screen-like frame (the black bar's black round a cloth screen) plays the seven beats in a loop, each as long as
   its picture plays plus a hold, cutting between them, with a bar of seven segments on top whose current segment fills
   smoothly across its beat; it plays only while on screen. The Pause button stops the picture and bar together.
   Selecting a segment or scene keeps the current playback choice. Desktop: the frame in the left column, the beats as a list in
   the right with the current one marked. Phones: the frame the full width, the current beat's item and line under it.
   With no script every beat and picture shows. */
.o3 { display: grid; gap: 14px; min-width: 0; }
.reel { display: grid; gap: 12px; min-width: 0; }
.bezel { margin: 0 -16px; padding: 0 6px 6px; background: var(--league); }
@media not (width >= 390px) { .bezel { margin: 0 -12px; } }
.segs { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; padding: 0 6px; }
/* seven targets of at least 44 px across the narrowest phone (320 px): the bars keep a 4 px gap inside their targets */
@media not (width >= 360px) { .segs { padding: 0; } }
.seg { display: flex; align-items: center; min-width: 0; min-height: 44px; margin: 0; padding: 0; border: 0; background: none; cursor: pointer; }
.seg i { position: relative; display: block; width: calc(100% - 4px); height: 6px; margin: 0 2px; overflow: hidden; background: #3d4a6b; transform: skewX(-30deg); }
.seg b { position: absolute; inset: 0; background: var(--sc); transform: scaleX(0); transform-origin: 0 50%; }
.seg[data-done] b, .seg[aria-current="true"] b { transform: none; }
/* the current segment fills smoothly (linear, no steps) across its beat's time, and holds where it is while the reel is
   paused; the beat moves on when it is full (landing.js) */
.reel[data-run] .seg[aria-current="true"] b { animation: seg-fill var(--dur, 3000ms) linear both; }
.reel[data-run="0"] .seg[aria-current="true"] b { animation-play-state: paused; }
@keyframes seg-fill { from { transform: scaleX(0); } to { transform: none; } }
.seg:focus-visible, .side:focus-visible { outline: 3px solid var(--league-focus); outline-offset: -3px; }
.screen-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; }
.side { display: grid; place-items: center; min-width: 44px; min-height: 44px; margin: 0; padding: 0; border: 0; background: none; color: var(--logo-ink); cursor: pointer; }
.side svg { width: 14px; height: 9px; }
.side.prev svg { transform: rotate(90deg); }
.side.next svg { transform: rotate(-90deg); }
.screen { display: grid; min-width: 0; padding: 12px 10px; overflow: hidden; background: repeating-linear-gradient(135deg, var(--panel-a) 0 7px, var(--panel-b) 7px 14px); }
.js .slide { grid-area: 1 / 1; min-width: 0; }
/* the slides share one cell and the frame keeps the tallest one's height; only the current one is visible (a cut) */
.js .slide.off { visibility: hidden; }
.now { min-height: 4.4em; }
.now-n, .bl-n { margin: 0 0 2px; font: 700 12.5px/1.2 var(--font-body); letter-spacing: .08em; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.reel-ctl { display: flex; align-items: center; gap: 12px; }
.beats { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; align-content: start; min-width: 0; }
.beats > li { display: grid; grid-template-columns: 2.4em minmax(0, 1fr); column-gap: 10px; align-items: baseline; }
.beats > li > .bl-n { grid-column: 1; }
.beats > li > :not(.bl-n) { grid-column: 2; }
.bl-b { position: relative; display: inline-flex; align-items: center; min-height: 44px; margin: -6px 0 -4px; padding: 0 0 4px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.bl-b[aria-current="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 5px; background: var(--tab-mark); clip-path: polygon(3.6px 0, 100% 0, calc(100% - 3.6px) 100%, 0 100%); }
.beats .beat-l { margin-top: 0; }
:root:not(.js) .segs, :root:not(.js) .side, :root:not(.js) .reel-ctl, :root:not(.js) .now { display: none; }
:root:not(.js) .screen-row { grid-template-columns: minmax(0, 1fr); }
:root:not(.js) .screen { gap: 22px; }
@media not (width >= 900px) {
  .js .beats > li { display: none; }
}
@media (width >= 900px) {
  /* the frame runs as tall as the list beside it (its screen grows, the picture centred), so neither column ends short */
  .o3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 24px; align-items: stretch; }
  .reel { display: flex; flex-direction: column; }
  .bezel { flex: 1 1 auto; display: flex; flex-direction: column; }
  .screen-row { flex: 1 1 auto; }
  .screen { align-content: center; }
  .bezel { margin: 0; padding: 0 8px 8px; border-radius: 2px; }
  .screen { padding: 16px 14px; }
  .now { display: none; }
  .beats { gap: 8px; }
}

/* ---- reduced motion: nothing in the story animates; the reel waits on its first beat and steps on a tap (landing.js);
   every picture shows its finished state */
@media (prefers-reduced-motion: reduce) {
  :root:not([data-reel-motion="on"]) .rc *, :root:not([data-reel-motion="on"]) .rc *::before, :root:not([data-reel-motion="on"]) .rc *::after { animation: none !important; transition: none !important; }
}

/* ==================================================================== the privacy page (new in round 5): privacy.html
   The black bar (with its Sign up link, as on the landing page), then one box: the guide's heading row, "Last updated"
   as its caption, over one sheet of text in the guide's body type (Rubik 400, 15 px, line height 1.45; guide 2.5).
   Each part of the notice is led by a heading in the roadmap items' style. Phone layout: one column. Desktop layout:
   the parts flow in two columns 24 px apart (the guide's gutter), so no line runs the full 1032 px and no band is
   left empty beside a short column. A fact the owner hasn't set shows as a slot (.ph): its words in brackets, bold, on
   the your-club tint with a dashed rule round it, so it is easy to spot and fill in. */
.pv-page { padding-top: 12px; padding-bottom: 48px; }
.pv-sheet { padding: 14px 12px 2px; }
.pv-sec { break-inside: avoid; padding-bottom: 16px; }
.pv-sec h3 { margin: 0 0 4px; font: italic 900 17px/1.2 var(--font-head); font-stretch: 112%; }
.pv-sec p { margin: 0; text-wrap: pretty; }
.pv-sec p + p { margin-top: 8px; }
.ph { padding: 0 4px; border: 2px dashed var(--ink-2); border-radius: 2px; background: var(--me-band); color: var(--ink); font-weight: 700;
  white-space: nowrap; }
@media (width >= 900px) {
  .pv-page { padding-top: 22px; }
  .pv-sheet { columns: 2; column-gap: 24px; padding: 18px 16px 4px; }
  .pv-sec { padding-bottom: 18px; }
}

/* ==================================================================== the live page (new for the real feeds)
   What the accepted round 5 design didn't need because its league was a sample. Each new visual element here is
   Claude's default from a three-option sheet in out/landing-page/options/ (continents, fixtures, why), for the owner. */

/* ---- the feeds' states, set on <html> by landing.js: data-feed loading, on or off (no runner address, or the runner
   didn't answer); data-ft none before the first kickoff (no Full time box); data-next none when no kickoff is left */
.ex-off { display: none; margin: 0; font: italic 800 var(--fs-running)/1.3 var(--font-head); font-stretch: 100%; }
[data-feed="off"] .ex-off { display: block; }
[data-feed="off"] .hero, [data-feed="off"] .exgrid > .table, [data-feed="off"] .exgrid > .fxs, [data-feed="off"] .ex-head .ex-line { display: none !important; }
[data-feed="off"] .ex-dot { display: none; }
[data-ft="none"] .hero .ft { display: none !important; }
[data-next="none"] .hero .ft-next { display: none !important; }
@media (width >= 900px) {
  [data-ft="none"][data-hero="result"] .hero { grid-template-areas: "nx run"; }
}

/* ---- the featured match: the runner's accepted viewer page, its full layout (scoreboard, pitch, commentary under it on
   phones), so the frame is tall enough for all of it; edge to edge on phones as round 5 had it */
.hero .viewer { height: 620px; }
@media not (width >= 900px) {
  .hero .viewer { height: 780px; }
}

/* ---- why this match is the featured one (owner, November 4: "Why this is the featured match: B"): the runner's label
   (/fixtures' featuredLabel) as a pink outline tag at the tags' slant, over the match; no label, no tag */
.why-b { display: inline-flex; width: fit-content; max-width: 100%; margin: 0 0 8px; padding: 4px 10px; border: 2px solid var(--btn); color: var(--btn);
  font: 800 12.5px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; transform: skewX(-12deg); }
.why-b span { display: block; transform: skewX(12deg); }
.why-b[hidden] { display: none; }
/* the same tag on the Full time card after the reveal (owner, November 5, Sherpa R1: "A"; SETTINGS.fullTimeTag): under
   the card's title, before the score */
.ft .why-b { margin: 2px 0 10px; }
[data-ft-tag="off"] .ft .why-b { display: none; }

/* ---- the round's fixtures (option A, "score rows"; owner, November 4: "A: we need to use the crests though"): one row
   per match on a sheet, the home club right aligned against the score, the away club left aligned after it, each beside
   its crest (SETTINGS.fixtureMark; the swatch as before when a club has no crest); a live match shows the playing dot
   and Live, a match not yet kicked off its time. The featured match's names are bold */
.fx-list { list-style: none; margin: 0; padding: 0; }
.fx { display: grid; grid-template-columns: minmax(0, 1fr) 4.2em minmax(0, 1fr); align-items: center; column-gap: 8px; padding: 8px 0;
  border-bottom: 1px solid var(--rule); font-size: 15px; line-height: 1.25; }
.fx:last-child { border-bottom: 0; }
.fx-linked { display: block; padding: 0; }
.fx-watch { display: grid; grid-template-columns: inherit; column-gap: inherit; align-items: center; min-height: 44px;
  padding: 8px 0; color: inherit; text-decoration: none; }
.fx-watch:hover, .fx-watch:focus-visible { background: var(--sheet); }
.fx-watch:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.fx-h { display: flex; justify-content: flex-end; align-items: center; gap: 8px; text-align: right; min-width: 0; }
.fx-a { display: flex; align-items: center; gap: 8px; min-width: 0; }
.fx .chip { flex: none; margin: 0; }
/* a club's crest (the accepted renderer's micro drawing, SETTINGS.crestHeight tall), standing where the swatch stood */
.crest-m { display: inline-flex; flex: none; line-height: 0; }
.crest-m svg { display: block; }
.fx .crest-m { margin: 0; }
/* in Division 1 too (owner, November 5, launch list 0.7: tableRows' mark 'crest'): the swatch's room */
.lt .crest-m { margin-right: 8px; vertical-align: -4px; }
.fx-n { min-width: 0; }
.fx-m { text-align: center; font-variant-numeric: tabular-nums; }
.fx-s { font: italic 900 17px/1 var(--font-head); font-stretch: 112%; }
.fx-sep { padding: 0 .2em; }
.fx-t { color: var(--ink-2); font-weight: 600; }
.fx-live { display: inline-flex; align-items: center; gap: 0; font: 700 12px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.fx-live .playing { margin: 0 5px 0 0; }
.fx-on .fx-n { font-weight: 700; }
@media (width >= 900px) {
  .fx { font-size: 16px; padding: 9px 0; }
  .fx-linked { padding: 0; }
  .fx-watch { padding: 9px 0; }
}
@media not (width >= 390px) {
  .fx { font-size: 14px; column-gap: 6px; grid-template-columns: minmax(0, 1fr) minmax(4.2em, max-content) minmax(0, 1fr); }
  .fx-h, .fx-a { gap: 6px; }
}

/* ---- each club's continent in the Division table: its name in words under the club's name, small capitals in the
   second ink (.ct-u; owner, November 4, "Continents in the table: B"); screen readers hear "from <continent>". The other
   two options stay here: 'tag', a three-letter tag after the name (the reel's Coming tag drawn small, an outline at the
   tags' slant, guide 5.12), and 'column' (SETTINGS.continent) */
.ct { display: inline-flex; margin-left: 6px; padding: 1px 4px; border: 1.5px solid currentColor; color: var(--ink-2);
  font: 700 10px/1.1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; transform: skewX(-12deg); vertical-align: 1px; text-indent: 0; }
.ct > span { display: block; transform: skewX(12deg); }
.ct-u { display: block; margin-top: 1px; font: 700 10.5px/1.3 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); text-indent: 0; }
.lt .ctc { color: var(--ink-2); font-size: 13px; letter-spacing: .04em; }
.lt td.ctc .th-s { display: none; }
@media not (width >= 480px) {
  .lt td.ctc .th-l, .lt th.ctc .th-l { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .lt td.ctc .th-s, .lt th.ctc .th-s { display: inline; }
}
.lt th.ctc .th-s { display: none; }
@media not (width >= 480px) { .lt th.ctc .th-s { display: inline; } }

/* ---- the sign-ups before the Kit form exists (KIT_FORM_ACTION empty): the button off and one line under it */
.signup button.btn:disabled { opacity: .45; cursor: not-allowed; }
.kit-off { margin: 0; font-weight: 700; }

/* ---- the 404 page's one line */
.nf-line { margin: 0; font-size: 17px; }
.nf-line a { display: inline-flex; align-items: center; min-height: 44px; margin-left: 6px; color: var(--link); font-weight: 600; }

/* ==================================================================== the continents map (option B; owner, November 4:
   "Pick: B"), world.js: the map Sherpa's world.css cut to B. A box after Run your club, before Coming soon: the accepted
   night chart (plans/world/map/night10.html's MAP_CSS, round 10, the owner's switches on: Shallows, Double coast, the
   open continent on the block shadow with its name in yellow lettering, teal names, chart frame, scanlines) beside a
   lore panel from the 1080 px design width, the panel joined under the map below it. The map keeps the black bar's night
   colours in both modes; the box and the panel follow the mode. No crest on a continent (owner, November 4: "also
   continents dont have a crest"). With no script there is no map, so the box doesn't show */
:root:not(.js) .wb { display: none; }

/* ---- the map: a 2:1 night chart, the shapes in map units (1000 by 500) */
.wmap { position: relative; aspect-ratio: 2 / 1; overflow: hidden; container-type: inline-size; background: var(--league);
  outline: 1px solid #28334e; outline-offset: -1px; -webkit-tap-highlight-color: transparent; }
.wmap > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.wmap .w-sel { filter: drop-shadow(4px 4px 0 var(--league-line)); pointer-events: none; }
.wmap .w-hit { pointer-events: none; }
.wmap .w-hp { fill: transparent; stroke: transparent; stroke-width: 18; stroke-linejoin: round; pointer-events: all; cursor: pointer; }
.w-shal1 { fill: none; stroke: var(--league-line); stroke-opacity: .07; stroke-width: 30; stroke-linejoin: round; }
.w-shal2 { fill: none; stroke: var(--league-line); stroke-opacity: .08; stroke-width: 15; stroke-linejoin: round; }
.w-grid { fill: none; stroke: var(--league-line); stroke-opacity: .18; stroke-width: 1; }
.w-axes { fill: none; stroke: var(--league-line); stroke-opacity: .38; stroke-width: 1; }
.w-ticks { fill: none; stroke: var(--league-line); stroke-opacity: .75; stroke-width: 1.25; }
.w-fill { fill: var(--league-line); fill-opacity: .1; stroke: var(--league-line); stroke-width: 1.25; }
.w-tube { fill: none; stroke: var(--league-line); stroke-opacity: .28; stroke-width: 9; }
/* hover (a pointer over a continent or its name): the land a little brighter, a cut, no fade */
.w-land.hover .w-fill { fill-opacity: .26; }
/* the open continent: the homeland's treatment from the accepted chart, pink with a yellow coast on the teal block shadow */
.w-hi { display: none; }
.w-hi.on { display: inline; }
.w-hfill { fill: var(--league-mark); stroke: var(--league-hover); stroke-width: 1.5; }
.w-htube { fill: none; stroke: var(--league-hover); stroke-opacity: .5; stroke-width: 9; }
.wmap .scan { position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(180deg, rgba(243,239,230,.05) 0 1px, transparent 1px 3px); }

/* ---- the names over the map (the accepted chart's sizes: 11 px on a phone, 12.5 px from a 440 px map; Here be dragons
   smaller, 9.5 and 11). Each keeps one spot whichever continent is open. A map 700 px wide or more (the full column,
   from 900 to 1079 px) takes larger names (the Sherpa's sizes, Claude's) */
.w-labels { position: absolute; inset: 0; pointer-events: none; }
.hl { --halo: 1.5px 0 0 var(--league), -1.5px 0 0 var(--league), 0 1.5px 0 var(--league), 0 -1.5px 0 var(--league), 1px 1px 0 var(--league), -1px -1px 0 var(--league), 1px -1px 0 var(--league), -1px 1px 0 var(--league);
  position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); white-space: nowrap; visibility: hidden;
  font: 600 11px/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--league-line); text-shadow: var(--halo); }
.wmap.placed .hl { visibility: visible; }
.hl[aria-expanded="true"], .hl.as-on { color: var(--league-hover); font: italic 900 13px/1 var(--font-head); font-stretch: 125%; letter-spacing: .05em; }
.hl.dragons { font: italic 900 9.5px/1.1 var(--font-head); font-stretch: 112%; letter-spacing: .06em; text-align: center; color: var(--league-ink);
  text-shadow: -1.5px 0 var(--league-mark), 1.5px 0 var(--league-line), var(--halo); }
@media (prefers-reduced-motion: no-preference) {
  .hl.dragons { animation: w-split 9s steps(1) infinite; }
}
@keyframes w-split { 0%, 100% { text-shadow: -1.5px 0 var(--league-mark), 1.5px 0 var(--league-line), var(--halo); } 96% { text-shadow: -2.5px 0 var(--league-mark), 2px 0 var(--league-line), var(--halo); } }
@container (width >= 440px) {
  .hl { font-size: 12.5px; }
  .hl[aria-expanded="true"], .hl.as-on { font-size: 16px; }
  .hl.dragons { font-size: 11px; }
}
@container (width >= 700px) {
  .hl { font-size: 15px; }
  .hl[aria-expanded="true"], .hl.as-on { font-size: 20px; }
  .hl.dragons { font-size: 13px; }
}
/* a name you can tap: a button the size of a fingertip (44 by 44 at least) round its word, the word underlined like the
   expanders' words (guide 5.25), so it reads as something to press */
button.hl { display: grid; place-items: center; min-width: 44px; min-height: 44px; margin: 0; padding: 0 4px; border: 0; background: none; cursor: pointer; pointer-events: auto; }
button.hl .hl-t { text-decoration: underline 2px; text-underline-offset: 4px; text-decoration-color: color-mix(in srgb, var(--league-line) 55%, transparent); }
button.hl[aria-expanded="true"] .hl-t { text-decoration-color: var(--league-hover); }
button.hl:hover .hl-t { text-decoration-color: currentColor; }
button.hl:focus-visible { outline: 3px solid var(--league-focus); outline-offset: -3px; }

/* ---- the box: the map reaches 8 px past the box's inner edge like a sheet (10 on desktop), the lore panel a sheet
   joined under it; side by side from the 1080 px design width, the map about two thirds. From 900 to 1079 the panel's
   words would run taller than the map beside it (an empty band under the map, guide 1.8), so it sits under the map
   there as on phones (the Sherpa's call, Claude's) */
.wb-pair { display: grid; margin: 0 -8px; }
.wb-map { min-width: 0; }
.wb .lore { margin: 0; padding: 16px 14px; }
@media (width >= 900px) {
  .wb-pair { margin: 0 -10px; }
  .wb .lore { padding: 18px 20px 20px; }
}
@media (width >= 1080px) {
  .wb-pair { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); }
  .wb .lore { display: grid; align-content: center; padding: 22px 20px; border-left: 1px solid var(--panel-line); }
  /* words longer than the map is tall (a rewrite to come) make the row taller: the chart then sits centred on the night
     ground rather than over an empty band (Claude's, changeable) */
  .wb-map { display: grid; align-content: center; background: var(--league); }
}

/* ---- the lore: a name and its words (world-copy.js), with the close cross at the top right of a continent's */
.lore-in { position: relative; }
/* the cross sits beside a continent's name, so only the name keeps clear of it; the words run the panel's width */
.lore-in[data-id] .lore-name { padding-right: 40px; }
.lore-name { margin: 2px 0 6px; font: italic 900 22px/1.05 var(--font-head); font-stretch: 125%; letter-spacing: .03em; text-transform: uppercase; }
.lore-in p { margin: 0; font-size: 15px; line-height: 1.5; text-wrap: pretty; max-width: 40em; }
.lore-in p + p { margin-top: 8px; }
.lore-x { position: absolute; right: -10px; top: -10px; display: grid; place-items: center; width: 44px; height: 44px; margin: 0; padding: 0; border: 0;
  background: none; color: inherit; cursor: pointer; }
.lore-x svg { width: 14px; height: 14px; }
.lore-x:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
@media (prefers-reduced-motion: no-preference) {
  .lore-in { animation: w-lore 180ms cubic-bezier(.22, .8, .3, 1) backwards; }
}
@keyframes w-lore { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (width >= 900px) {
  .lore-name { font-size: 26px; }
  .lore-in p { font-size: 16px; }
}
/* beside the map the words are the guide's body size (2.5), as on a phone, so the owner's lore fits the map's height
   (the world's, the longest, ran to 323 of the map's 331 px at 16 px; Claude's, changeable) */
@media (width >= 1080px) {
  .wb .lore-in p { font-size: 15px; }
}

/* ==================================================================== the history page: history.html (owner, November 11:
   "In prod, let's push a history link to the bottom of the table where you can check your team you are following
   stats, as well as previous winners of the league"). The privacy page's shell and two boxes on its column: Champions
   (every finished season's winner, drawn as Division 1 draws a club, its season in the continent's small capitals under
   its name) and Your club (a picked club, then each season it played: its line of the table and its results). One
   column at every width (guide 3.2's one-column page: the tables get the full width); on desktop a season's results run
   in two columns side by side. Claude's layout, changeable */

/* ---- the link at Division 1's foot (index.html): the expander's type (guide 5.25), on the card's right; across from
   Show full table on phones, alone at the foot on desktop, where the expander hides */
.tb-live a.tb-hist { display: inline-flex; float: right; text-decoration: none; }
@media (width >= 900px) { .tb-live a.tb-hist { align-self: flex-end; } }

.hs-page { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 12px; padding-bottom: 48px; }
@media (width >= 900px) { .hs-page { gap: 22px; padding-top: 22px; } }
/* before the feeds answer, nothing; with no script, or no runner, the one line */
.js[data-feed="loading"] .hs-page [data-fill="champions"] { visibility: hidden; }
:root:not(.js) .hs-cl, [data-feed="off"] .hs-cl { display: none; }
.hs-ch .nf-line, .hs-cl .nf-line { margin: 0; }

/* ---- the picker: the sign-up fields' look (label above, the field on the sheet colour) */
.hs-pick { margin: 0 0 16px; }
.hs-pick select { width: 100%; min-height: 48px; margin: 0; padding: 10px 12px; border: 1px solid var(--ink-2); border-radius: 2px; background: var(--sheet);
  color: var(--ink); font: 400 16px/1.2 var(--font-body); cursor: pointer; }
.hs-pick select:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.hs-pick select:disabled { cursor: default; }
@media (width >= 900px) { .hs-pick { max-width: calc((100% - 24px) / 2); } .hs-pick select { min-height: 54px; } }

/* ---- one season of the club: the heading row (the box's pattern, the privacy page's heading type), one sheet with the
   club's line of the table and its results under it */
.hs-season + .hs-season { margin-top: 22px; }
.hs-season .title { margin-bottom: 10px; }
.hs-season h3 { margin: 0; font: italic 900 17px/1.2 var(--font-head); font-stretch: 112%; }
.hs-sheet .hs-rec + * { margin-top: 18px; }
/* the number columns one width each, so their figures stand evenly apart at every width (the club's name takes what is
   left in Champions, the position in the club's line); a figure wider than its share still widens its own column */
.hs-ct .n { width: 9%; }
.hs-rec .n { width: 11.75%; }
.hs-empty { margin: 0; padding: 0 0 8px; color: var(--ink-2); }
.hs-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 24px; align-items: start; }
@media (width >= 900px) { .hs-cl .more { display: none; } }
