/* Hallmark · shape: matchday, a stadium hero with a live scoreboard, a scrollytelling run through each sport's court, then the fixture board beside a soft accreditation pass · genre: editorial · theme: custom · redesign: full · job: attend · idea: "The season reads like matchday: the scoreboard counts down, each sport's court draws itself as you scroll, and every event you add is kicked onto your pass" · vibe: "quiet scoreboard, soft pass, courts drawn live"
 * owner direction (this edition): soft neutral base and one quiet four-tone family (sage, sand, clay, mist) shared by the sports; sports theme, scrollytelling, rich motion, micro-interactions and sound effects; motion and sound beyond the gates are on request, every one honours reduced motion and sound is off until turned on
 * paper: oklch(97.5% 0.004 90) · tones: sage, sand, clay, mist at oklch 90% (fills) and 47% (lines, figures) · display: Anybody (condensed, variable width) · body: Schibsted Grotesk · accents: Newsreader italic · notes: Kalam · figures: Anybody (see programme.css, the current edition) · hero: the name with a scoreboard over the first sport's pitch · nav: edge-aligned, the wordmark, five section links, Tickets and the sound switch · footer: colophon, the policy links over the payments line under a rule · imagery: drawn courts and ball marks, no photos until the owner adds them · signature: each sport's court draws itself as you scroll, and every event you add is kicked onto your pass
 * axes: light/grotesk-sans/soft-four-tone · posture: restrained (neutral paper and ink carry the page; each sport's tone tints only what belongs to it) · contrast: pass · fold: hero · v3.0.0 */
/* Hallmark · pre-emit critique: P4 H5 E4 S5 R3 V5 · weakest: R, the owner asked for a rich, plush, effortful page, so it keeps a pass shadow, notches and rolling digits; every one of them shows a choice, a sum or a state, none is ambience */
/* Hallmark · hero-review: folded into the finish review (one fresh-context subagent) · finish-review: subagent · 8 findings · 7 resolved 1 partial · partial: at 1280x800 the Pay strip sits just under the fold until the pass pins after a short scroll; the board rows, the primary choice, are on the first screen */
/* Hallmark · waive 49b · a real phrase that cannot shorten, two lines at 320 · the link is the policy's own title inside the consent sentence on the registration pass, whose legal wording stays verbatim */
/* Hallmark · answered F24 · the pass carries a two-step neutral shadow tinted to its own hue and no border; the owner asked for a tactile, raised object and the shadow is what lifts it off the paper */
/* Hallmark · waive 78 · panel titles inside working objects, not section heads · "Choose events" and "Your registration" title the board and the pass at 25px so the objects stay the focus; the page's one section head, Before you pay, runs at the section size */
/* Hallmark · answered F7 · the pill radius draws circles (the pass notches, the spinner, the accordion icons) and pill controls (nav links, the add toggles, the skip link), never boxes */
/* Hallmark · answered F15 · the desk parts a board from the pass, two coloured objects that want a wider channel (96px) than the text grids below them (32px) */
/* Hallmark · dismissed 77 · three sections is the registration desk itself: the board, the pass and the payment questions; a lineup, venue or travel section would be invented */
/* Hallmark · reworded "1. Choose events" to "Choose events" · 54 names an ordinal set over a head; it now heads the board */
/* Hallmark · reworded "2. Your details" to "Your details" · the details moved into the registration pass, where the legend keeps the old heading's id */
@import url("./tokens.css");
@import url("./base.css");

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { text-rendering: optimizeLegibility; font-kerning: normal; -webkit-tap-highlight-color: var(--color-clear); }
h1, h2, h3 { font-weight: var(--display-weight); }
a { text-decoration-color: color-mix(in oklab, currentColor 45%, var(--color-clear)); transition: text-decoration-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
a:active { color: var(--color-ink-2); }
@media (hover: hover) { a:hover { text-decoration-color: currentColor; } }

.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); background: var(--color-ink); color: var(--color-paper); border-radius: var(--radius-pill); }
.skip:focus-visible { top: var(--space-md); }

/* Large figures: the dot-matrix face, one role only */
.fig { font-family: var(--font-outlier); font-weight: var(--figure-weight); letter-spacing: 0; }
/* The rupee sign comes from the body face, set small and high beside display figures */
.cur { margin-inline-end: 0.08em; font-family: var(--font-body); font-weight: 600; font-size: 0.5em; vertical-align: 0.7em; line-height: 0; }
.sep { margin-inline: -0.28em; }
/* Rolling counters: each digit is a column of 0 to 9 that slides to its value */
.odo { display: inline-flex; align-items: baseline; }
.odo__col { display: inline-block; height: 1em; overflow: clip; line-height: 1; vertical-align: baseline; }
.odo__strip { display: flex; flex-direction: column; transition: transform var(--dur-long) var(--ease-out); transition-delay: calc(var(--d, 0) * 35ms); }
.odo__strip > span { display: block; height: 1em; line-height: 1; }

/* Masthead */
.masthead__row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); min-height: 72px; border-bottom: 1px solid var(--color-ink); }
.wordmark { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--text-lg); letter-spacing: -0.02em; text-decoration: none; }
.masthead__nav { display: flex; gap: var(--space-xs); flex-shrink: 0; }
.masthead__nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--space-md); border: 1px solid var(--color-rule); border-radius: var(--radius-pill); font-size: var(--text-sm); color: var(--color-ink-2); text-decoration: none; white-space: nowrap; transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.masthead__nav a:active { transform: translateY(1px); }
@media (hover: hover) { .masthead__nav a:hover { color: var(--color-ink); border-color: var(--color-ink); } }

/* Hero: the name, and the one line beside it */
.intro { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--space-lg) var(--gap-columns); align-items: end; padding-block: var(--space-2xl) var(--space-xl); }
.intro h1 { max-width: 16ch; font-size: var(--text-display); line-height: 0.98; letter-spacing: var(--tracking-display); }
.lead { max-width: 30ch; padding-bottom: var(--space-xs); font-size: var(--text-lead); line-height: 1.45; color: var(--color-ink-2); }

/* The desk: the board beside the pass */
.desk { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-3xl); align-items: start; padding-block: var(--section-gap-s); }

/* The board: a dark panel whose rows are LED lines */
.board { padding: var(--space-lg) var(--space-lg) var(--space-sm); border-radius: var(--radius-card); background: var(--color-board); color: var(--color-board-ink); }
.board :focus-visible { outline-color: var(--color-led); }
.board__bar { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-xs) var(--space-lg); padding: var(--space-xs) var(--space-sm) var(--space-md); }
.board__bar h2 { font-size: var(--text-xl); letter-spacing: -0.02em; }
.board__sum { font-size: var(--text-sm); color: var(--color-board-muted); }
.board__cols { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) auto; gap: var(--space-lg); padding: var(--space-xs) var(--space-sm); border-block: 1px solid var(--color-board-rule); font-size: var(--text-xs); color: var(--color-board-muted); }
.index { margin: 0; padding: 0; list-style: none; }
.row + .row { border-top: 1px solid var(--color-board-rule); }
.row__hit { position: relative; display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) auto; gap: var(--space-lg); align-items: start; margin-block: var(--space-2xs); padding: var(--space-md) var(--space-sm); border-radius: var(--radius-panel); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out); }
.row__input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.row__date { display: grid; justify-items: start; gap: var(--space-xs); line-height: 1; }
.row__cell { display: inline-block; padding: var(--space-xs) var(--space-sm); border: 1px solid var(--color-board-rule); border-radius: var(--radius-cell); background: var(--color-board-2); transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out); }
.row__day { display: block; font-size: var(--text-figure-s); line-height: 0.9; color: var(--color-led-dim); transition: color var(--dur-short) var(--ease-out); }
.row__month { font-size: var(--text-sm); line-height: 1.3; font-weight: 600; color: var(--color-board-ink); }
.row__weekday { font-size: var(--text-sm); line-height: 1.3; color: var(--color-board-muted); }
.row__body { display: grid; gap: var(--space-2xs); min-width: 0; padding-top: var(--space-2xs); }
.row__name { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--text-title); line-height: 1.12; letter-spacing: -0.02em; overflow-wrap: break-word; }
.row__meta { font-size: var(--text-sm); color: var(--color-board-muted); }
.row__desc { max-width: 48ch; margin-top: var(--space-2xs); color: var(--color-board-muted); text-wrap: pretty; }
.row__side { display: grid; justify-items: end; gap: var(--space-xs); padding-top: var(--space-2xs); text-align: right; }
.row__price { font-size: var(--text-2xl); line-height: 0.9; color: var(--color-led-dim); white-space: nowrap; transition: color var(--dur-short) var(--ease-out); }
.row__seats { font-size: var(--text-sm); color: var(--color-board-muted); white-space: nowrap; }
.row__seats--low { color: var(--color-board-warn); font-weight: 600; }
.row__seats--off { color: var(--color-board-ink); font-weight: 600; }
.add { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 36px; margin-top: var(--space-2xs); padding: 0 var(--space-md); border: 1px solid var(--color-board-muted); border-radius: var(--radius-pill); font-size: var(--text-sm); font-weight: 600; color: var(--color-board-ink); white-space: nowrap; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.add svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.add__on { display: none; }
.add .tickmark { clip-path: inset(0 100% 0 0); transition: clip-path var(--dur-short) var(--ease-out) var(--dur-micro); }
.row:has(.row__input:checked) .row__hit { background: var(--color-board-2); }
.row:has(.row__input:checked) .row__cell { border-color: var(--color-led); background: var(--color-board); }
.row:has(.row__input:checked) :is(.row__day, .row__price) { color: var(--color-led); }
.row:has(.row__input:checked) .add { border-color: var(--color-led); background: var(--color-led); color: var(--color-ink); }
.row:has(.row__input:checked) .add__off { display: none; }
.row:has(.row__input:checked) .add__on { display: inline-flex; align-items: center; gap: var(--space-xs); }
.row:has(.row__input:checked) .add .tickmark { clip-path: inset(0 0 0 0); }
.row:has(.row__input:focus-visible) .row__hit { outline: 2px solid var(--color-led); outline-offset: 0; }
.row__hit:active .add { transform: scale(0.95); }
@media (hover: hover) {
  .row:not(.is-off) .row__hit:hover { background: var(--color-board-2); }
  .row:not(.is-off):not(:has(.row__input:checked)) .row__hit:hover .add { border-color: var(--color-board-ink); }
  .row:not(.is-off):not(:has(.row__input:checked)) .row__hit:hover .row__day { color: var(--color-board-ink); }
}
.row.is-off .row__hit { cursor: not-allowed; }
.row.is-off :is(.row__date, .row__body, .row__price, .add) { opacity: 0.55; }
.row.is-flagged .row__hit { outline: 2px solid var(--color-led); outline-offset: 0; }

.row--skeleton { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) 6rem; gap: var(--space-lg); padding: var(--space-lg) var(--space-sm); }
.row--skeleton span { height: var(--space-2xl); border-radius: var(--radius-cell); background: var(--color-board-2); animation: wait 1.4s var(--ease-in-out) infinite alternate; }
.row--skeleton span:nth-child(3) { height: var(--space-xl); }
@keyframes wait { to { opacity: 0.45; } }
.events__note { padding: var(--space-lg) var(--space-sm); color: var(--color-board-muted); }

/* The pass */
.desk__card { position: sticky; top: var(--space-lg); }
.card { position: relative; max-height: calc(100dvh - 2 * var(--space-lg)); padding: var(--space-xl); overflow-y: auto; overscroll-behavior: contain; border-radius: var(--radius-card); background-color: var(--color-field); background-image: radial-gradient(28rem circle at var(--mx, 50%) var(--my, -30%), var(--color-shine), var(--color-clear) 65%); color: var(--color-field-ink); box-shadow: var(--shadow-card); scrollbar-color: var(--color-field-rule) var(--color-field); scrollbar-width: thin; }
.card :focus-visible { outline-color: var(--color-field-focus); }
.card a { color: var(--color-field-ink); }
.card__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--space-md); align-items: start; margin-top: var(--space-sm); }
.card__head h2 { font-size: var(--text-xl); line-height: 1.1; letter-spacing: -0.02em; }
.card__count { grid-row: span 2; display: flex; align-items: baseline; gap: var(--space-2xs); font-size: var(--text-sm); color: var(--color-field-muted); white-space: nowrap; }
.card__count .fig { font-size: var(--text-figure-s); color: var(--color-field-ink); }
.card__for { min-height: 1lh; margin-top: var(--space-2xs); font-size: var(--text-sm); color: var(--color-field-muted); overflow-wrap: anywhere; }

.lines { margin: var(--space-lg) 0 0; padding: 0; list-style: none; border-top: 2px solid var(--color-field-ink); }
.line { display: grid; grid-template-rows: 1fr; transition: grid-template-rows var(--dur-long) var(--ease-out), opacity var(--dur-short) var(--ease-out); }
.line.is-entering { grid-template-rows: 0fr; opacity: 0; }
.line.is-leaving { grid-template-rows: 0fr; opacity: 0; transition-timing-function: var(--ease-in); transition-duration: var(--dur-short); }
/* A new line prints in from the top, like a receipt printer */
.line__clip { min-height: 0; overflow: hidden; }
.line__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--space-md); padding-block: var(--space-sm); border-bottom: 1px solid var(--color-field-rule); transition: clip-path var(--dur-long) var(--ease-out), transform var(--dur-long) var(--ease-out); }
.line.is-entering .line__row { clip-path: inset(0 0 100% 0); transform: translateY(-8px); }
.line__name { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--text-lg); line-height: 1.2; letter-spacing: -0.015em; overflow-wrap: break-word; min-width: 0; }
.line__price { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--text-lg); line-height: 1.2; font-variant-numeric: tabular-nums; }
.line__when { grid-column: 1 / -1; font-size: var(--text-sm); color: var(--color-field-muted); }
.lines__empty { padding-block: var(--space-md); border-bottom: 1px solid var(--color-field-rule); font-size: var(--text-sm); color: var(--color-field-muted); }

/* The tear line: a perforation with a notch punched into each edge of the pass */
.tear { position: relative; height: 0; margin: var(--space-lg) calc(-1 * var(--space-xl)); border-top: 2px dashed var(--color-field-rule); }
.tear::before, .tear::after { content: ""; position: absolute; top: calc(-1 * var(--space-sm) - 1px); width: var(--space-lg); height: var(--space-lg); border-radius: var(--radius-pill); background: var(--color-paper); }
.tear::before { left: calc(-1 * var(--space-sm)); }
.tear::after { right: calc(-1 * var(--space-sm)); }

.total { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-xs) var(--space-md); padding-top: var(--space-md); }
.total__label { font-size: var(--text-sm); color: var(--color-field-muted); }
.total__value { font-size: var(--text-figure); line-height: 0.9; }

.details { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-xs) var(--space-md); margin: 0; padding: 0; border: 0; }
.field { display: grid; gap: var(--space-2xs); min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field label { font-size: var(--text-sm); font-weight: 600; color: var(--color-field-ink); }
.field input { width: 100%; min-height: 50px; padding: 0 var(--space-md); border: 1px solid var(--color-ink); border-radius: var(--radius-input); background: var(--color-paper); color: var(--color-ink); font-size: var(--text-md); outline: 2px solid var(--color-clear); outline-offset: -4px; caret-color: var(--color-ink); box-shadow: var(--shadow-press); transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out); }
.field input::placeholder { color: var(--color-muted); }
.field input:focus-visible { outline-color: var(--color-focus); }
.field input:active { border-color: var(--color-ink-2); }
.field input:disabled { opacity: 0.55; cursor: not-allowed; }
.field input[aria-invalid="true"] { border-color: var(--color-error); }
@media (hover: hover) { .field input:hover { background: var(--color-paper-2); } }
.field__help { min-height: 1lh; font-size: var(--text-xs); line-height: 1.4; color: var(--color-field-muted); }
.field__help.is-error { color: var(--color-field-ink); font-weight: 600; }
.field__note { font-size: var(--text-xs); line-height: 1.45; color: var(--color-field-muted); }
.field--last4 input { max-width: 11rem; letter-spacing: 0.3em; font-variant-numeric: tabular-nums; }

.consent { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-sm); align-items: start; margin-top: var(--space-xs); font-size: var(--text-sm); line-height: 1.5; color: var(--color-field-muted); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: var(--space-3xs) 0 0; accent-color: var(--color-field-ink); cursor: pointer; }
.consent input:focus-visible { outline: 2px solid var(--color-field-focus); outline-offset: 2px; }
.consent input:active { transform: scale(0.94); }
.consent.is-error { color: var(--color-field-ink); }
#turnstile:not(:empty) { margin-top: var(--space-md); }

.message { margin-top: var(--space-md); font-size: var(--text-sm); font-weight: 600; color: var(--color-field-ink); overflow-wrap: anywhere; }
.message.info { font-weight: 400; }
.message a { font-weight: 600; }

/* Total and Pay stay in view while the pass scrolls (one scroll area, the pass itself) */
.card__foot { position: sticky; bottom: calc(-1 * var(--space-xl)); margin: var(--space-md) calc(-1 * var(--space-xl)) calc(-1 * var(--space-xl)); padding: 0 var(--space-xl) var(--space-xl); border-top: 2px solid var(--color-field-ink); background: var(--color-field); }
.pay { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); width: 100%; min-height: 52px; margin-top: var(--space-md); padding: 0 var(--space-lg); overflow: hidden; border: 1px solid var(--color-ink); border-radius: var(--radius-pill); background: var(--color-ink); color: var(--color-accent); font: 600 var(--text-md)/1 var(--font-body); white-space: nowrap; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
/* One pass of light across the button on hover */
.pay::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, var(--color-clear) 35%, var(--color-shine) 50%, var(--color-clear) 65%); transform: translateX(-100%); transition: transform 700ms var(--ease-out); pointer-events: none; }
.pay__label { position: relative; display: inline-flex; align-items: center; gap: var(--space-xs); }
.pay:active { transform: translateY(1px) scale(0.995); }
.pay:focus-visible { outline: 2px solid var(--color-field-focus); outline-offset: 3px; }
.pay:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.pay[aria-busy="true"] { cursor: progress; opacity: 1; }
@media (hover: hover) { .pay:hover { background: var(--color-ink-3); } .pay:hover::after { transform: translateX(100%); } }
.spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: var(--color-clear); border-radius: var(--radius-pill); animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }
.card__methods { margin-top: var(--space-sm); font-size: var(--text-xs); text-align: center; color: var(--color-field-muted); }

/* Questions, on the second paper, as an accordion */
.questions { padding-block: var(--section-gap-s); background: var(--color-paper-2); }
.questions__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gap-columns); align-items: start; }
.questions h2 { max-width: 9ch; font-size: var(--text-section); line-height: 1; letter-spacing: -0.03em; }
.qa { border-top: 2px solid var(--color-ink); }
.qa__item { border-bottom: 1px solid var(--color-rule); interpolate-size: allow-keywords; }
.qa__item summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); min-height: 72px; padding-block: var(--space-md); font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--text-lg); line-height: 1.25; letter-spacing: -0.015em; cursor: pointer; list-style: none; transition: color var(--dur-short) var(--ease-out); }
.qa__item summary::-webkit-details-marker { display: none; }
.qa__item summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.qa__item summary:active .qa__icon { transform: scale(0.92); }
@media (hover: hover) { .qa__item summary:hover { color: var(--color-ink-2); } .qa__item summary:hover .qa__icon { background: var(--color-ink); } .qa__item summary:hover .qa__icon::before, .qa__item summary:hover .qa__icon::after { background: var(--color-accent); } }
.qa__icon { position: relative; flex-shrink: 0; width: 36px; height: 36px; border: 1px solid var(--color-ink); border-radius: var(--radius-pill); transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out); }
.qa__icon::before, .qa__icon::after { content: ""; position: absolute; inset: 0; margin: auto; width: 14px; height: 2px; background: var(--color-ink); transition: transform var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out); }
.qa__icon::after { transform: rotate(90deg); }
.qa__item[open] .qa__icon { background: var(--color-accent); border-color: var(--color-ink); transform: rotate(45deg); }
.qa__item::details-content { block-size: 0; overflow: clip; transition: block-size var(--dur-long) var(--ease-out), content-visibility var(--dur-long) allow-discrete; }
.qa__item[open]::details-content { block-size: auto; }
.qa__body { padding-bottom: var(--space-lg); }
.qa__body p { max-width: 56ch; color: var(--color-ink-2); }

/* The phone dock: a floating bar with the count and total, and a way to the pass */
.dock { display: none; }
.dock__sum { display: grid; min-width: 0; line-height: 1.2; }
.dock__count { font-size: var(--text-sm); color: var(--color-board-muted); }
.dock__total { font-size: var(--text-2xl); line-height: 1; color: var(--color-led); }
.dock__go { display: inline-flex; align-items: center; min-height: 48px; padding: 0 var(--space-lg); border-radius: var(--radius-pill); background: var(--color-led); color: var(--color-ink); font-weight: 600; text-decoration: none; white-space: nowrap; transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.dock__go:active { transform: translateY(1px); }
.dock__go:focus-visible { outline: 2px solid var(--color-led); outline-offset: 3px; }
@media (hover: hover) { .dock__go:hover { background: var(--color-board-ink); } }

/* Colophon */
.colophon { padding-block: var(--space-3xl) var(--space-2xl); }
.colophon__grid { display: grid; gap: var(--space-lg); }
.colophon__links { display: flex; flex-wrap: wrap; gap: 0 var(--space-lg); padding-top: var(--space-md); border-top: 2px solid var(--color-ink); }
.colophon__links a { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; }
.colophon__note { max-width: 46ch; font-size: var(--text-sm); color: var(--color-muted); }

/* One reveal: the board rows settle in as they load, while their LED figures run through digits */
.js [data-reveal] { opacity: 0; transform: translateY(8px); transition: opacity var(--dur-long) var(--ease-out), transform var(--dur-long) var(--ease-out); transition-delay: calc(var(--i, 0) * 40ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (max-width: 60rem) {
  body { padding-bottom: var(--space-3xl); }
  .intro { grid-template-columns: minmax(0, 1fr); padding-block: var(--space-xl) var(--space-lg); }
  .desk { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xl); }
  .desk__card { position: static; scroll-margin-top: var(--space-md); }
  .card { max-height: none; overflow: clip; padding: var(--space-xl) var(--space-lg); }
  .tear { margin-inline: calc(-1 * var(--space-lg)); }
  .card__foot { bottom: 0; margin-inline: calc(-1 * var(--space-lg)); margin-bottom: calc(-1 * var(--space-xl)); padding-inline: var(--space-lg); padding-bottom: max(var(--space-lg), env(safe-area-inset-bottom)); border-radius: 0 0 var(--radius-card) var(--radius-card); }
  .questions__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .dock { position: fixed; inset-inline: var(--space-sm); bottom: max(var(--space-sm), env(safe-area-inset-bottom)); z-index: var(--z-sticky); display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); padding: var(--space-xs) var(--space-xs) var(--space-xs) var(--space-lg); border-radius: var(--radius-pill); background: var(--color-board); color: var(--color-board-ink); box-shadow: var(--shadow-card); transition: transform var(--dur-long) var(--ease-out); }
  .dock.is-away { transform: translateY(calc(100% + var(--space-xl))); transition-duration: var(--dur-short); transition-timing-function: var(--ease-in); }
}

@media (max-width: 40rem) {
  .masthead__nav a[href="/contact.html"] { display: none; }
  .board { padding: var(--space-md) var(--space-xs) var(--space-2xs); border-radius: var(--radius-panel); }
  .board__cols { display: none; }
  .row__hit { grid-template-columns: 4.75rem minmax(0, 1fr); column-gap: var(--space-md); padding-inline: var(--space-xs); }
  .row__side { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs) var(--space-md); margin-top: var(--space-xs); text-align: left; }
  .row__seats { flex: 1; }
  .add { margin-top: 0; }
  .details { grid-template-columns: minmax(0, 1fr); }
  .row--skeleton { grid-template-columns: 4.75rem minmax(0, 1fr); }
  .row--skeleton span:nth-child(3) { display: none; }
}

@media (pointer: coarse) { .pay, .field input, .dock__go { min-height: 52px; } .add { min-height: 40px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .line, .line.is-entering, .line.is-leaving { transition: opacity 150ms linear; }
  .line.is-entering .line__row { clip-path: none; transform: none; }
  .odo__strip { transition: none; }
  .pay::after { display: none; }
  .qa__item::details-content { transition: none; }
  .add, .add .tickmark, .row__hit, .row__cell, .row__day, .row__price, .pay, .dock, .dock__go, .field input, .qa__icon, .qa__icon::before, .qa__icon::after, .masthead__nav a, a { transition-duration: 0.01ms; }
  .row--skeleton span { animation: none; }
}


/* ===================== Sports edition ===================== */

/* Scroll progress, a running lane along the top edge */
.progress { position: fixed; inset: 0 0 auto; z-index: var(--z-sticky-nav); height: 3px; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--color-led); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; }

/* Sound switch in the masthead */
.masthead { position: relative; z-index: var(--z-raised); background: var(--color-paper); }
.sound { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 40px; padding: 0 var(--space-md); border: 1px solid var(--color-rule); border-radius: var(--radius-pill); background: var(--color-clear); color: var(--color-ink-2); font: 600 var(--text-sm)/1 var(--font-body); white-space: nowrap; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.sound svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sound__waves { display: none; }
.sound[aria-pressed="true"] { border-color: var(--color-ink); background: var(--color-ink); color: var(--color-led); }
.sound[aria-pressed="true"] .sound__waves { display: inline; }
.sound[aria-pressed="true"] .sound__mute { display: none; }
.sound:active { transform: translateY(1px); }
.sound:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
@media (hover: hover) { .sound:hover { border-color: var(--color-ink); color: var(--color-ink); } .sound[aria-pressed="true"]:hover { color: var(--color-led); } }

/* Hero: a floodlit pitch, the name, the scoreboard */
.hero { position: relative; overflow: clip; padding-block: var(--space-3xl) calc(var(--space-4xl) + 4vw); background: var(--color-board); color: var(--color-board-ink); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 4vw), 0 100%); }
.hero :focus-visible { outline-color: var(--color-led); }
.hero__field { position: absolute; inset: 6% -4% 4% 42%; color: var(--color-board-rule); opacity: 0.9; pointer-events: none; }
.hero__field .court { width: 100%; height: 100%; }
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-2xl) var(--space-3xl); align-items: end; }
.hero h1 { max-width: 11ch; font-size: clamp(3rem, 7.2vw + 0.5rem, 8.25rem); font-weight: 800; line-height: 0.9; letter-spacing: -0.045em; }
.hero h1 .word { display: inline-block; white-space: nowrap; }
.hero h1 .char { display: inline-block; }
.js .hero h1 .char { animation: rise var(--dur-long) var(--ease-out) both; animation-delay: calc(var(--c, 0) * 28ms + 120ms); }
@keyframes rise { from { opacity: 0; transform: translateY(0.4em) skewY(6deg); } }
.hero .lead { max-width: 30ch; margin-top: var(--space-lg); color: var(--color-board-muted); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-xl); }
.cta { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 var(--space-xl); overflow: hidden; border: 1px solid var(--color-led); border-radius: var(--radius-pill); background: var(--color-led); color: var(--color-ink); font-weight: 600; text-decoration: none; white-space: nowrap; transition: transform var(--dur-micro) var(--ease-out), background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.cta span { position: relative; }
.cta::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--color-board-ink); transform: translateY(101%); transition: transform var(--dur-long) var(--ease-out); }
.cta:active { transform: translateY(1px) scale(0.99); }
.cta--ghost { border-color: var(--color-board-muted); background: var(--color-clear); color: var(--color-board-ink); }
.cta--ghost::before { background: var(--color-board-2); }
@media (hover: hover) { .cta:hover::before { transform: none; } }

.hero__ball { position: absolute; left: 47%; top: 62%; z-index: var(--z-base); width: clamp(56px, 6vw, 92px); aspect-ratio: 1; cursor: pointer; }
.hero__ball-body { position: absolute; inset: 0; display: grid; place-items: center; border-radius: var(--radius-pill); background: var(--color-led); color: var(--color-ink); animation: bounce 900ms var(--ease-in) 3 both; }
.hero__ball-body .ball { width: 82%; height: 82%; stroke-width: 1.4; animation: spin 2.7s linear 1 both; }
.hero__ball-shadow { position: absolute; left: 10%; right: 10%; bottom: -14%; height: 12%; border-radius: var(--radius-pill); background: var(--color-ink); opacity: 0.6; animation: shadow 900ms var(--ease-in) 3 both; }
.hero__ball.is-kicked .hero__ball-body { animation: kick 1100ms var(--ease-out) 1 both; }
.hero__ball.is-kicked .hero__ball-shadow { animation: kick-shadow 1100ms var(--ease-out) 1 both; }
@keyframes bounce {
  0% { transform: translateY(-260%) scale(1); animation-timing-function: var(--ease-in); }
  46% { transform: translateY(0) scale(1.08, 0.86); animation-timing-function: var(--ease-out); }
  56% { transform: translateY(-4%) scale(0.96, 1.05); animation-timing-function: var(--ease-out); }
  100% { transform: translateY(0) scale(1); }
}
@keyframes shadow { 0% { transform: scaleX(0.4); opacity: 0.15; } 46% { transform: scaleX(1.1); opacity: 0.6; } 100% { transform: scaleX(1); opacity: 0.6; } }
@keyframes kick { 0% { transform: translate(0, 0) rotate(0); } 35% { transform: translate(-40%, -180%) rotate(-200deg); } 70% { transform: translate(-70%, 0) rotate(-340deg) scale(1.06, 0.9); } 100% { transform: translate(0, 0) rotate(-360deg); } }
@keyframes kick-shadow { 0%, 100% { transform: none; opacity: 0.6; } 35% { transform: translateX(-40%) scaleX(0.5); opacity: 0.2; } 70% { transform: translateX(-70%); opacity: 0.6; } }
@keyframes spin { to { transform: rotate(2turn); } }

.scoreboard { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--color-board-rule); border-radius: var(--radius-panel); background: var(--color-board-2); }
.scoreboard__cell { display: grid; gap: var(--space-xs); padding: var(--space-md) var(--space-lg); border-bottom: 1px solid var(--color-board-rule); }
.scoreboard__cell:nth-child(odd):not(.scoreboard__cell--wide) { border-right: 1px solid var(--color-board-rule); }
.scoreboard__cell--wide { grid-column: 1 / -1; }
.scoreboard__cell:last-child { border-bottom: 0; }
.scoreboard__label { font-size: var(--text-xs); color: var(--color-board-muted); }
.scoreboard__value { font-size: var(--text-figure); line-height: 0.9; color: var(--color-led); }
.scoreboard__clock { font-size: clamp(2rem, 2.6vw + 1rem, 3.4rem); line-height: 0.95; color: var(--color-led); white-space: nowrap; }
.scoreboard__clock { display: flex; align-items: flex-start; gap: 0.14em; }
.clock__part { display: grid; justify-items: start; gap: var(--space-xs); }
.clock__unit { font-family: var(--font-body); font-weight: 400; font-size: var(--text-xs); line-height: 1; letter-spacing: 0; color: var(--color-muted); }
.scoreboard__dates { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--text-xl); letter-spacing: -0.02em; }

/* Court lines that draw themselves */
/* No non-scaling-stroke: it makes browsers ignore pathLength, which the draw-in relies on */
.court .ln { fill: none; stroke: currentColor; stroke-width: calc(1.6 * var(--sw, 1)); stroke-linecap: round; }
.court .dot { fill: currentColor; }
.court .cell { fill: currentColor; opacity: 0.16; }
.js .draw .ln { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1100ms var(--ease-out); transition-delay: calc(var(--n, 0) * 45ms); }
.js .draw.is-drawn .ln { stroke-dashoffset: 0; }
.js .draw .dot, .js .draw .cell { opacity: 0; transition: opacity var(--dur-long) var(--ease-out) 600ms; }
.js .draw.is-drawn .dot { opacity: 1; }
.js .draw.is-drawn .cell { opacity: 0.16; }

/* Ribbon: the stadium's LED ad board, a tilted marquee of the season's sports */
.ribbon { position: relative; z-index: var(--z-raised); margin-block: calc(-1 * var(--space-2xl)) calc(-1 * var(--space-lg)); overflow: hidden; background: var(--color-led); color: var(--color-ink); transform: rotate(-2deg); }
.ribbon__track { display: flex; width: max-content; padding-block: var(--space-md); }
.ribbon[data-loop].is-running .ribbon__track { animation: marquee 36s linear infinite; }
.ribbon__item { display: inline-flex; align-items: center; gap: var(--space-md); padding-inline: var(--space-lg); font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 2vw + 0.8rem, 2.4rem); letter-spacing: -0.02em; text-transform: uppercase; white-space: nowrap; }
.ribbon__item .ball { width: 1.1em; height: 1.1em; stroke-width: 1.8; }
.ribbon__pause { position: absolute; right: var(--space-sm); top: 50%; translate: 0 -50%; min-height: 36px; padding: 0 var(--space-md); border: 1px solid var(--color-ink); border-radius: var(--radius-pill); background: var(--color-led); color: var(--color-ink); font: 600 var(--text-xs)/1 var(--font-body); cursor: pointer; }
.ribbon__pause:focus-visible { outline: 2px solid var(--color-ink); outline-offset: 2px; }
.ribbon__pause:active { transform: scale(0.96); }
html:not(.js) .ribbon__pause { display: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* The story: each sport's court draws in while its events scroll past */
.story { padding-block: var(--section-gap) var(--section-gap-s); background: var(--color-board); color: var(--color-board-ink); }
.story :focus-visible { outline-color: var(--color-led); }
.story__inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-3xl); align-items: start; }
.story__stage { position: sticky; top: var(--space-xl); display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; gap: var(--space-lg); height: calc(100svh - 2 * var(--space-xl)); max-height: 52rem; }
.story__count { display: flex; align-items: baseline; gap: var(--space-sm); color: var(--color-board-muted); font-size: var(--text-sm); }
.story__count .fig { font-size: var(--text-figure-s); color: var(--color-led); }
.story__court { display: grid; place-items: center; min-height: 0; color: var(--color-led); }
.story__court .court { width: 100%; height: 100%; max-height: 100%; }
.story__sport { overflow: hidden; font-family: var(--font-display); font-weight: 800; font-size: clamp(3rem, 6vw + 0.5rem, 7rem); line-height: 0.9; letter-spacing: -0.045em; white-space: nowrap; text-overflow: ellipsis; }
.story__sport span { display: inline-block; }
.story__sport.is-swapping span { animation: rise var(--dur-long) var(--ease-out) both; }
.story__lane { display: flex; gap: var(--space-xs); }
.story__lane span { flex: 1; height: 4px; border-radius: var(--radius-pill); background: var(--color-board-rule); transition: background-color var(--dur-short) var(--ease-out); }
.story__lane span.is-done { background: var(--color-led-dim); }
.story__lane span.is-on { background: var(--color-led); }
.story__steps { margin: 0; padding: 0; list-style: none; }
.step { display: grid; align-content: center; min-height: 82svh; padding-block: var(--space-2xl); }
.step__head { display: flex; align-items: center; gap: var(--space-sm); margin-bottom: var(--space-lg); color: var(--color-led); font-weight: 600; }
.step__head .ball { width: 28px; height: 28px; }
.step__events { display: grid; gap: var(--space-md); }
.step__event { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-xs) var(--space-lg); padding: var(--space-lg); border: 1px solid var(--color-board-rule); border-radius: var(--radius-panel); background: var(--color-board-2); transition: border-color var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out); }
.step__event.is-added { border-color: var(--color-led); }
.step__event h3 { font-size: var(--text-title); line-height: 1.1; letter-spacing: -0.02em; }
.step__meta { grid-column: 1; display: grid; gap: var(--space-3xs); font-size: var(--text-sm); color: var(--color-board-muted); }
.step__price { grid-column: 2; grid-row: 1; font-size: var(--text-2xl); line-height: 0.9; color: var(--color-led); white-space: nowrap; }
.step__add { grid-column: 2; grid-row: 2 / span 2; align-self: end; justify-self: end; }
.step__note { font-size: var(--text-sm); color: var(--color-board-ink); font-weight: 600; }
.pill { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 40px; padding: 0 var(--space-md); border: 1px solid var(--color-board-muted); border-radius: var(--radius-pill); background: var(--color-clear); color: var(--color-board-ink); font: 600 var(--text-sm)/1 var(--font-body); white-space: nowrap; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.pill svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.pill[aria-pressed="true"] { border-color: var(--color-led); background: var(--color-led); color: var(--color-ink); }
.pill:active { transform: scale(0.95); }
.pill:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.pill:focus-visible { outline: 2px solid var(--color-led); outline-offset: 2px; }
@media (hover: hover) { .pill:not(:disabled):not([aria-pressed="true"]):hover { border-color: var(--color-board-ink); } }

/* Board filters and sport marks on each row */
.filters { display: flex; gap: var(--space-xs); margin-inline: calc(-1 * var(--space-lg)); padding: 0 var(--space-lg) var(--space-md); overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding-inline: var(--space-lg); mask-image: linear-gradient(90deg, var(--color-clear), var(--color-ink) var(--space-lg), var(--color-ink) calc(100% - var(--space-lg)), var(--color-clear)); }
.filters::-webkit-scrollbar { display: none; }
.filters .pill { flex-shrink: 0; scroll-snap-align: start; }
.filters .pill { min-height: 36px; }
.filters .pill .count { font-family: var(--font-outlier); font-weight: var(--figure-weight); font-size: 0.95em; }
.row__name .ball { display: inline-block; width: 0.9em; height: 0.9em; margin-right: var(--space-xs); vertical-align: -0.08em; color: var(--color-led-dim); transition: color var(--dur-short) var(--ease-out), transform var(--dur-long) var(--ease-out); }
.row:has(.row__input:checked) .row__name .ball { color: var(--color-led); transform: rotate(1turn); }
.row__format { font-size: var(--text-sm); color: var(--color-board-ink); }
.line__name .ball { display: inline-block; width: 0.85em; height: 0.85em; margin-right: var(--space-xs); vertical-align: -0.06em; }
.field__optional { font-weight: 400; color: var(--color-field-muted); }

/* The ball that flies from the board to the pass */
.kick { position: fixed; left: 0; top: 0; z-index: var(--z-toast); width: 34px; height: 34px; padding: var(--space-2xs); border-radius: var(--radius-pill); background: var(--color-led); color: var(--color-ink); box-shadow: var(--shadow-card); pointer-events: none; }
.kick .ball { width: 100%; height: 100%; }
.bump { animation: bump var(--dur-long) var(--ease-out); }
@keyframes bump { 30% { transform: scale(1.18); } }

/* The pass, now an accreditation card: a lanyard slot and a sheen that follows the pointer */
.desk__card { transition: transform var(--dur-short) var(--ease-out); transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.card__slot { position: absolute; top: var(--space-md); left: 50%; width: 72px; height: 12px; translate: -50% 0; border-radius: var(--radius-pill); background: var(--color-paper); box-shadow: inset 0 1px 2px var(--color-shade); }

.desk-section { position: relative; }
.questions h2 { max-width: 8ch; }

@media (max-width: 60rem) {
  .hero { padding-block: var(--space-2xl) calc(var(--space-3xl) + 4vw); }
  .hero__grid, .story__inner { grid-template-columns: minmax(0, 1fr); }
  .hero__field { inset: 30% -30% 0 -10%; opacity: 0.6; }
  .hero__ball { left: auto; right: 6%; top: 4%; }
  .story__inner { gap: 0; }
  .story__stage { top: 0; z-index: var(--z-raised); height: auto; max-height: none; grid-template-rows: auto auto auto auto; gap: var(--space-sm); padding-block: var(--space-md); background: var(--color-board); }
  .story__court { height: 24svh; }
  .story__sport { font-size: clamp(2.25rem, 9vw, 3.5rem); }
  .step { min-height: 70svh; }
  .desk__card { transform: none; }
}
@media (max-width: 40rem) {
  .masthead__nav a[href="#sports"], .masthead__nav a[href="#questions"] { display: none; }
  .sound span { display: none; }
  .scoreboard__cell { padding: var(--space-sm) var(--space-md); }
  .step__event { grid-template-columns: minmax(0, 1fr); }
  .step__price, .step__add { grid-column: 1; grid-row: auto; justify-self: start; }
  .ribbon__pause { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .js .hero h1 .char, .hero__ball-body, .hero__ball-shadow, .hero__ball-body .ball, .story__sport.is-swapping span { animation: none; }
  .ribbon[data-loop] .ribbon__track { animation: none; }
  .js .draw .ln { stroke-dashoffset: 0; transition: none; }
  .js .draw .dot { opacity: 1; transition: none; }
  .js .draw .cell { opacity: 0.16; transition: none; }
  .desk__card { transform: none; transition: none; }
  .cta::before, .pill, .sound, .step__event, .row__name .ball { transition-duration: 0.01ms; }
  .bump { animation: none; }
}


/* Masthead: section links, Tickets as the one pill */
.masthead__link { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--space-xs); font-size: var(--text-sm); color: var(--color-ink-2); text-decoration: none; white-space: nowrap; transition: color var(--dur-short) var(--ease-out); }
.masthead__link:active { color: var(--color-ink); }
.masthead__nav .masthead__link { min-height: 40px; padding: 0 var(--space-xs); border: 0; }
.masthead__tickets { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--space-lg); border-radius: var(--radius-pill); background: var(--color-ink); color: var(--color-led); font-size: var(--text-sm); font-weight: 600; text-decoration: none; white-space: nowrap; transition: transform var(--dur-micro) var(--ease-out), background-color var(--dur-short) var(--ease-out); }
.masthead__nav a.masthead__tickets { border: 0; color: var(--color-led); }
.masthead__tickets:active { transform: translateY(1px); }
.masthead__tickets:focus-visible, .masthead__link:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
@media (hover: hover) { .masthead__nav .masthead__link:hover { color: var(--color-ink); text-decoration: underline; } .masthead__tickets:hover { background: var(--color-ink-3); } }

/* Hub: six round doors into the page */
.hub { position: relative; padding-block: var(--space-3xl) var(--space-2xl); background: var(--color-paper); }
.hub__list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--gap-columns); margin: 0 auto; list-style: none; }
.hub__item { display: grid; justify-items: center; gap: var(--space-md); color: var(--color-ink); text-decoration: none; }
.hub__disc { position: relative; display: grid; place-items: center; width: clamp(84px, 8vw, 120px); aspect-ratio: 1; border-radius: var(--radius-pill); background: var(--color-board); box-shadow: 0 0 0 6px var(--color-paper-2), var(--shadow-card); transition: transform var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out); }
.hub__disc::before { content: ""; position: absolute; inset: 22%; border-radius: var(--radius-pill); background: var(--color-led); transition: transform var(--dur-long) var(--ease-out); }
.hub__disc svg { position: relative; width: 34%; height: 34%; fill: none; stroke: var(--color-ink); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--dur-long) var(--ease-out); }
.hub__disc svg .fill { fill: var(--color-ink); stroke: none; }
.hub__label { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--text-lg); letter-spacing: -0.01em; }
.hub__item:focus-visible { outline: none; }
.hub__item:focus-visible .hub__disc { box-shadow: 0 0 0 6px var(--color-paper-2), 0 0 0 9px var(--color-focus); }
.hub__item:active .hub__disc { transform: scale(0.95); }
@media (hover: hover) {
  .hub__item:hover .hub__disc { transform: translateY(-6px); }
  .hub__item:hover .hub__disc::before { transform: scale(1.12); }
  .hub__item:hover .hub__disc svg { transform: rotate(-12deg) scale(1.08); }
}

/* Shared section head for the light sections */
.section-head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--space-md) var(--gap-columns); align-items: end; margin-bottom: var(--space-2xl); }
.section-head h2 { font-size: var(--text-section); line-height: 1; letter-spacing: -0.03em; }
.section-head__line { max-width: 40ch; justify-self: end; font-size: var(--text-lead); line-height: 1.45; color: var(--color-ink-2); }

/* Schedule: day tabs over a timeline of the day's events */
.schedule { padding-block: var(--section-gap-s); background: var(--color-paper); }
.days { position: relative; display: flex; gap: var(--space-xs); margin-bottom: var(--space-xl); overflow-x: auto; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.day { position: relative; display: grid; justify-items: start; gap: var(--space-2xs); flex-shrink: 0; min-width: 132px; padding: var(--space-md) var(--space-lg); border: 1px solid var(--color-rule); border-radius: var(--radius-panel); background: var(--color-paper); color: var(--color-ink); text-align: left; font: inherit; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.day__num { font-family: var(--font-outlier); font-weight: var(--figure-weight); font-size: var(--text-figure-s); line-height: 0.9; }
.day__name { font-size: var(--text-sm); color: var(--color-ink-2); }
.day__month { margin-inline-start: 0.35em; font-family: var(--font-body); font-weight: 600; font-size: var(--text-sm); letter-spacing: 0; }
.day__count { font-size: var(--text-xs); color: var(--color-muted); }
.day[aria-selected="true"] { border-color: var(--color-board); background: var(--color-board); color: var(--color-led); }
.day[aria-selected="true"] :is(.day__name, .day__count) { color: var(--color-board-muted); }
.day:active { transform: translateY(1px); }
.day:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
@media (hover: hover) { .day:not([aria-selected="true"]):hover { border-color: var(--color-ink); } }
.timeline { margin: 0; padding: 0; list-style: none; }
.timeline__day { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--color-ink); }
.timeline__day[hidden] { display: none; }
.slot { display: grid; grid-template-columns: 7rem minmax(0, 1fr) auto; gap: var(--space-lg); align-items: center; padding-block: var(--space-lg); border-bottom: 1px solid var(--color-rule); }
.js .timeline__day.is-in .slot { animation: slide-in var(--dur-long) var(--ease-out) both; animation-delay: calc(var(--i, 0) * 50ms); }
@keyframes slide-in { from { opacity: 0; transform: translateX(-16px); } }
.slot__time { font-family: var(--font-outlier); font-weight: var(--figure-weight); font-size: var(--text-2xl); line-height: 1; }
.slot__body { display: grid; gap: var(--space-3xs); min-width: 0; }
.slot__name { display: flex; align-items: center; gap: var(--space-xs); font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--text-title); line-height: 1.15; letter-spacing: -0.02em; }
.slot__name .ball { flex-shrink: 0; width: 0.9em; height: 0.9em; }
.slot__meta { font-size: var(--text-sm); color: var(--color-ink-2); }
.slot__tag { display: inline-flex; align-items: center; min-height: 28px; padding: 0 var(--space-sm); border-radius: var(--radius-pill); background: var(--color-paper-2); font-size: var(--text-xs); font-weight: 600; white-space: nowrap; }
.slot.is-mine .slot__tag { background: var(--color-led); color: var(--color-ink); }
.slot.is-next .slot__time { color: var(--color-ink); }
.slot.is-next .slot__time::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: var(--space-xs); border-radius: var(--radius-pill); background: var(--color-focus); vertical-align: middle; animation: blink 1.6s var(--ease-in-out) infinite; }
@keyframes blink { 50% { opacity: 0.2; } }
.timeline__empty { padding-block: var(--space-lg); color: var(--color-ink-2); }

/* Schools: crests on a grid */
.schools { padding-block: var(--section-gap-s); background: var(--color-paper-2); }
.schools__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap-columns); margin: 0; padding: 0; list-style: none; }
.school { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-md); align-items: center; padding: var(--space-lg); border-radius: var(--radius-panel); background: var(--color-paper); transition: transform var(--dur-short) var(--ease-out); }
.school__crest { display: grid; place-items: center; width: 56px; height: 56px; overflow: hidden; border-radius: var(--radius-pill); background: var(--color-board); color: var(--color-led); font-family: var(--font-display); font-weight: 800; font-size: var(--text-lg); letter-spacing: -0.02em; }
.school__crest img { width: 100%; height: 100%; object-fit: cover; }
.school__name { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--text-lg); line-height: 1.15; letter-spacing: -0.015em; }
.school__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs); margin-top: var(--space-2xs); font-size: var(--text-sm); color: var(--color-ink-2); }
.school__meta .ball { width: 16px; height: 16px; }
@media (hover: hover) { .school:hover { transform: translateY(-3px); } }
.empty-state { grid-column: 1 / -1; display: grid; justify-items: start; gap: var(--space-sm); padding: var(--space-2xl); border: 2px dashed var(--color-rule); border-radius: var(--radius-panel); color: var(--color-ink-2); }
.empty-state strong { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--text-title); color: var(--color-ink); letter-spacing: -0.02em; }

/* Behind the scenes: a contact sheet of the owner's photos and clips */
.bts { padding-block: var(--section-gap-s); background: var(--color-board); color: var(--color-board-ink); }
.bts .section-head__line { color: var(--color-board-muted); }
.bts .empty-state { border-color: var(--color-board-rule); color: var(--color-board-muted); }
.bts .empty-state strong { color: var(--color-board-ink); }
.bts__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 14rem; gap: var(--gap-columns); }
.shot { position: relative; grid-column: span 4; margin: 0; overflow: hidden; border-radius: var(--radius-panel); background: var(--color-board-2); }
.shot:nth-child(6n + 1) { grid-column: span 8; grid-row: span 2; }
.shot img, .shot video { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.shot figcaption { position: absolute; inset: auto 0 0; padding: var(--space-lg) var(--space-md) var(--space-sm); background: linear-gradient(0deg, var(--color-board), var(--color-clear)); font-size: var(--text-sm); color: var(--color-board-ink); }
@media (hover: hover) { .shot:hover img { transform: scale(1.04); } }

@media (max-width: 60rem) {
  .masthead__nav .masthead__link { display: none; }
  .hub__list { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: var(--space-xl); }
  .section-head { grid-template-columns: minmax(0, 1fr); }
  .section-head__line { justify-self: start; }
  .schools__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 11rem; }
  .shot, .shot:nth-child(6n + 1) { grid-column: span 1; grid-row: span 1; }
  .shot:nth-child(3n + 1) { grid-column: span 2; grid-row: span 2; }
}
@media (max-width: 40rem) {
  .hub__label { font-size: var(--text-md); }
  .slot { grid-template-columns: 4.5rem minmax(0, 1fr); }
  .slot__tag { grid-column: 2; justify-self: start; }
  .schools__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .hub__disc, .hub__disc::before, .hub__disc svg, .day, .school, .shot img { transition-duration: 0.01ms; }
  .js .timeline__day.is-in .slot, .slot.is-next .slot__time::after { animation: none; }
}


/* ===================== Soft colour system =====================
   A calm neutral base; colour comes from each sport's own soft fill and deep tone. */
:root { --sp: var(--sp-other); --sp-deep: var(--sp-other-deep); }
[data-sport="football"] { --sp: var(--sp-football); --sp-deep: var(--sp-football-deep); }
[data-sport="futsal"] { --sp: var(--sp-futsal); --sp-deep: var(--sp-futsal-deep); }
[data-sport="volleyball"] { --sp: var(--sp-volleyball); --sp-deep: var(--sp-volleyball-deep); }
[data-sport="throwball"] { --sp: var(--sp-throwball); --sp-deep: var(--sp-throwball-deep); }
[data-sport="basketball"] { --sp: var(--sp-basketball); --sp-deep: var(--sp-basketball-deep); }
[data-sport="badminton"] { --sp: var(--sp-badminton); --sp-deep: var(--sp-badminton-deep); }
[data-sport="table-tennis"] { --sp: var(--sp-table-tennis); --sp-deep: var(--sp-table-tennis-deep); }
[data-sport="chess"] { --sp: var(--sp-chess); --sp-deep: var(--sp-chess-deep); }
[data-sport="carrom"] { --sp: var(--sp-carrom); --sp-deep: var(--sp-carrom-deep); }
[data-sport="cricket"] { --sp: var(--sp-cricket); --sp-deep: var(--sp-cricket-deep); }
[data-sport="kabaddi"] { --sp: var(--sp-kabaddi); --sp-deep: var(--sp-kabaddi-deep); }
[data-sport="handball"] { --sp: var(--sp-handball); --sp-deep: var(--sp-handball-deep); }
[data-sport="judo"] { --sp: var(--sp-judo); --sp-deep: var(--sp-judo-deep); }
[data-sport="swimming"] { --sp: var(--sp-swimming); --sp-deep: var(--sp-swimming-deep); }
[data-sport="other"] { --sp: var(--sp-other); --sp-deep: var(--sp-other-deep); }

body { background: var(--color-paper); }
.masthead { background: var(--color-paper); }
.masthead__row { border-bottom-color: var(--color-rule); }
.masthead__tickets, .masthead__nav a.masthead__tickets { background: var(--color-ink); color: var(--color-paper); }
.sound[aria-pressed="true"], .sound[aria-pressed="true"]:hover { color: var(--color-paper); }
.progress span { background: var(--tone-sage-deep); }

/* Hero on light paper: a soft green pitch, a ball in its own colour */
.hero { background: var(--color-paper); color: var(--color-ink); clip-path: none; padding-block: var(--space-3xl) var(--space-4xl); }
.hero :focus-visible { outline-color: var(--color-focus); }
.hero__field { color: var(--sp-football); opacity: 1; }
.hero .lead { color: var(--color-ink-2); }
.cta { border-color: var(--color-ink); background: var(--color-ink); color: var(--color-paper); }
.cta::before { background: var(--color-ink-3); }
.cta--ghost { border-color: var(--color-rule); background: var(--color-card); color: var(--color-ink); }
.cta--ghost::before { background: var(--color-paper-2); }
.hero__ball-body { background: var(--sp); color: var(--sp-deep); }
.hero__ball-shadow { background: var(--color-ink); opacity: 0.18; }
@keyframes shadow { 0% { transform: scaleX(0.4); opacity: 0.05; } 46% { transform: scaleX(1.1); opacity: 0.2; } 100% { transform: scaleX(1); opacity: 0.18; } }
.scoreboard { border-color: var(--color-rule); background: var(--color-card); box-shadow: var(--shadow-card); }
.scoreboard__cell { border-color: var(--color-rule) !important; }
.scoreboard__value, .scoreboard__clock { color: var(--color-ink); }
.scoreboard__cell:nth-child(1) .scoreboard__value, .scoreboard__cell:nth-child(2) .scoreboard__value { color: var(--tone-sage-deep); }
.scoreboard__label { color: var(--color-muted); }

/* Ribbon: a quiet band where each sport wears its colour */
.ribbon { background: var(--color-card); color: var(--color-ink); border-block: 1px solid var(--color-rule); transform: rotate(-1.5deg); margin-block: calc(-1 * var(--space-xl)) 0; }
.ribbon__item { gap: var(--space-sm); }
.ribbon__item .ball { width: 1.3em; height: 1.3em; padding: 0.18em; border-radius: var(--radius-pill); background: var(--sp); color: var(--sp-deep); }
.ribbon__pause { border-color: var(--color-rule); background: var(--color-card); color: var(--color-ink); }
.ribbon__pause:focus-visible { outline-color: var(--color-focus); }

/* Hub: soft discs in six colours */
.hub { background: var(--color-paper); }
.hub__disc { background: var(--hub, var(--sp-other)); box-shadow: 0 0 0 6px var(--color-card), var(--shadow-card); }
.hub__disc::before { background: var(--color-card); }
.hub__disc svg { stroke: var(--hub-deep, var(--sp-other-deep)); }
.hub__disc svg .fill { fill: var(--hub-deep, var(--sp-other-deep)); }
.hub__item:focus-visible .hub__disc { box-shadow: 0 0 0 6px var(--color-card), 0 0 0 9px var(--color-focus); }
.hub li:nth-child(4n + 1) { --hub: var(--tone-sage); --hub-deep: var(--tone-sage-deep); }
.hub li:nth-child(4n + 2) { --hub: var(--tone-sand); --hub-deep: var(--tone-sand-deep); }
.hub li:nth-child(4n + 3) { --hub: var(--tone-clay); --hub-deep: var(--tone-clay-deep); }
.hub li:nth-child(4n + 4) { --hub: var(--tone-mist); --hub-deep: var(--tone-mist-deep); }

/* Story: the section takes on the colour of the sport in view */
.story { --story: var(--sp-other); --story-deep: var(--sp-other-deep); background: color-mix(in oklab, var(--story) 38%, var(--color-paper)); color: var(--color-ink); transition: background-color 700ms var(--ease-in-out); }
.story :focus-visible { outline-color: var(--color-focus); }
.story__court { color: var(--story-deep); }
.story__count { color: var(--color-ink-2); }
.story__count .fig { color: var(--story-deep); }
.story__sport { color: var(--color-ink); }
.story__lane span { background: color-mix(in oklab, var(--color-ink) 12%, var(--color-clear)); }
.story__lane span.is-done { background: color-mix(in oklab, var(--story-deep) 45%, var(--color-clear)); }
.story__lane span.is-on { background: var(--story-deep); }
.step__head { color: var(--sp-deep); }
.step__head .ball { padding: 4px; border-radius: var(--radius-pill); background: var(--sp); }
.step__event { border-color: var(--color-clear); background: var(--color-card); box-shadow: var(--shadow-card); }
.step__event.is-added { border-color: var(--sp-deep); }
.step__meta { color: var(--color-ink-2); }
.step__price { color: var(--sp-deep); }
.step__note { color: var(--color-ink); }

/* Pills and chips on light surfaces */
.pill { border-color: var(--color-rule); background: var(--color-card); color: var(--color-ink); }
.pill:focus-visible { outline-color: var(--color-focus); }
.pill[aria-pressed="true"] { border-color: var(--sp-deep, var(--color-ink)); background: var(--sp-deep, var(--color-ink)); color: var(--color-paper); }
.filters .pill[data-filter="all"][aria-pressed="true"] { border-color: var(--color-ink); background: var(--color-ink); }
.filters .pill .ball { color: var(--sp-deep); }
.filters .pill[aria-pressed="true"] .ball { color: var(--color-paper); }
@media (hover: hover) { .pill:not(:disabled):not([aria-pressed="true"]):hover { border-color: var(--color-ink-2); } }

/* The board, now a light sheet; every row carries its sport's colour */
.board { background: var(--color-card); color: var(--color-ink); box-shadow: var(--shadow-card); }
.board :focus-visible { outline-color: var(--color-focus); }
.board__cols { border-color: var(--color-rule); }
.row + .row { border-top-color: var(--color-rule); }
.row__cell { border-color: var(--color-clear); background: color-mix(in oklab, var(--sp) 55%, var(--color-card)); }
.row__day { color: var(--sp-deep); }
.row__month { color: var(--color-ink); }
.row__name .ball { color: var(--sp-deep); }
.row__price { color: var(--color-ink); }
.row__format { color: var(--color-ink-2); }
.add { border-color: var(--color-rule); color: var(--color-ink); }
.row:has(.row__input:checked) .row__hit { background: color-mix(in oklab, var(--sp) 30%, var(--color-card)); }
.row:has(.row__input:checked) .row__cell { border-color: var(--color-clear); background: var(--sp); }
.row:has(.row__input:checked) .row__day { color: var(--sp-deep); }
.row:has(.row__input:checked) .row__price { color: var(--sp-deep); }
.row:has(.row__input:checked) .row__name .ball { color: var(--sp-deep); }
.row:has(.row__input:checked) .add { border-color: var(--sp-deep); background: var(--sp-deep); color: var(--color-paper); }
.row:has(.row__input:focus-visible) .row__hit, .row.is-flagged .row__hit { outline-color: var(--color-focus); }
@media (hover: hover) {
  .row:not(.is-off):not(:has(.row__input:checked)) .row__hit:hover { background: var(--color-paper-2); }
  .row:has(.row__input:checked) .row__hit:hover { background: color-mix(in oklab, var(--sp) 42%, var(--color-card)); }
  .row:not(.is-off):not(:has(.row__input:checked)) .row__hit:hover .add { border-color: var(--color-ink-2); }
  .row:not(.is-off):not(:has(.row__input:checked)) .row__hit:hover .row__day { color: var(--sp-deep); }
}
.row--skeleton span { background: var(--color-paper-2); }

/* The pass: a soft card that takes the colour of the last sport added */
.card { transition: background-color 600ms var(--ease-out); }
.card__slot { background: var(--color-paper); }
.line__name .ball { padding: 2px; border-radius: var(--radius-pill); background: var(--color-card); color: var(--sp-deep); }
.field input { border-color: color-mix(in oklab, var(--color-ink) 30%, var(--color-clear)); background: var(--color-card); }
.pay { border-color: var(--color-ink); background: var(--color-ink); color: var(--color-paper); }
.kick { background: var(--sp); color: var(--sp-deep); }

/* Schedule, schools, BTS and questions on the neutral base */
.day[aria-selected="true"] { border-color: var(--color-ink); background: var(--color-ink); color: var(--color-paper); }
.day[aria-selected="true"] :is(.day__name, .day__count) { color: var(--color-night-muted); }
.slot__name .ball { color: var(--sp-deep); }
.slot__time { color: var(--sp-deep); }
.slot__tag { background: color-mix(in oklab, var(--sp) 60%, var(--color-card)); color: var(--color-ink); }
.slot.is-mine .slot__tag { background: var(--sp-deep); color: var(--color-paper); }
.school { background: var(--color-card); box-shadow: var(--shadow-card); }
.school__crest { background: var(--sp); color: var(--sp-deep); }
.school__meta .ball { color: var(--sp-deep); }
.bts { background: var(--color-night); color: var(--color-paper); }
.bts .section-head__line { color: var(--color-night-muted); }
.bts .empty-state { border-color: var(--color-night-2); color: var(--color-night-muted); }
.bts .empty-state strong { color: var(--color-paper); }
.shot { background: var(--color-night-2); }
.shot figcaption { background: linear-gradient(0deg, var(--color-night), var(--color-clear)); color: var(--color-paper); }
.questions { background: var(--color-paper-2); }
.qa__item[open] .qa__icon { background: var(--tone-sand); }
@media (hover: hover) { .qa__item summary:hover .qa__icon::before, .qa__item summary:hover .qa__icon::after { background: var(--color-paper); } }

/* The phone dock stays dark so it reads over any section */
.dock { background: var(--color-night); color: var(--color-paper); }
.dock__count { color: var(--color-night-muted); }
.dock__total { color: var(--color-paper); }
.dock__go { background: var(--color-paper); color: var(--color-ink); }
.dock__go:focus-visible { outline-color: var(--color-paper); }
@media (hover: hover) { .dock__go:hover { background: var(--color-paper-2); } }

@media (prefers-reduced-motion: reduce) { .story, .card { transition: none; } }

/* The pinned stage on phones shares the story's tint */
@media (max-width: 60rem) {
  /* edge to edge, so the cards' price stamps can't peek out beside it */
  .story__stage { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); background: color-mix(in oklab, var(--story) 38%, var(--color-paper)); transition: background-color 700ms var(--ease-in-out); }
}
@media (prefers-reduced-motion: reduce) { .story__stage { transition: none; } }
/* Cards pass under the pinned stage on phones; a short fade softens the edge */
@media (max-width: 60rem) {
  .story__stage::after { content: ''; position: absolute; inset: 100% 0 auto; height: var(--space-lg); background: linear-gradient(color-mix(in oklab, var(--story) 38%, var(--color-paper)), color-mix(in oklab, var(--story) 38%, var(--color-clear))); pointer-events: none; }
}
