/* Swiss Line at night: a dark 12-column page where one gold hairline carries the reading, after the
   launch film's grid. Dark only since 2026-11-04; the light theme and its toggle are gone. */
:root {
  color-scheme: dark;
  /* Colour. Dark only, on the same ground, surface, text and line values as storefront.css
     (docs/web-design.md). Gold is this page's event colour; green is for the XP wordmark and scores. */
  --xp: #8ae644;
  --paper: #0e0f12;
  --paper-glass: rgba(14, 15, 18, 0.86);
  --surface: #16171b;
  --ink: #eceef1;
  --ink-hover: #d2d5db;
  --ink-2: #abb0b9;
  --ink-3: #8f95a0;
  --line: #2a2d34;
  --line-2: #444851;
  --grid: #1e2026;
  --gold: #d4a84b;
  --gold-ink: #d9b35e;
  --gold-num: #d4a84b; /* large figures only */
  --gold-wash: #231e12;
  --strength: #8a8fe6;
  --endurance: #6f9fd3;
  --silver: #a9b0ba;
  --bronze: #b8763e;
  --rec: #e5484d;
  /* The clip's screen: a blue-black that sits with the ink, lit a little at the top. */
  --screen: #101216;
  --screen-top: #22262d;
  --screen-ink: #e4e7ec;
  --danger: #f27b7b;
  --shade: rgba(0, 0, 0, 0.55);
  --veil: rgba(4, 5, 7, 0.72);
  --on-gold: #101114; /* text on a gold fill, in both themes */
  --arrow: #8a6716; /* the arrow on an ink button */
  --score: #6cc070; /* leaderboard scores: the app's green, 4.5:1 or better */
  --zebra: rgba(255, 255, 255, 0.03);
  --select: #4d3c14;
  /* Type: Schibsted Grotesk for display, Geist Mono for labels and numbers, Montserrat to read. */
  --display: 'Schibsted Grotesk', 'Montserrat', system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, Menlo, Consolas, monospace;
  --body: 'Montserrat', system-ui, sans-serif;
  --pixel: 'Silkscreen', 'Geist Mono', monospace; /* section labels, 1rem only, as on the homepage */
  --f-label: 500 0.6875rem/1.2 var(--mono); /* 11px labels, set in caps with open tracking */
  --f-note: 400 0.75rem/1.45 var(--mono); /* 12px notes and table figures */
  --f-num: 500 0.875rem/1.2 var(--mono); /* 14px prices and buttons in mono */
  --f-ui: 600 0.875rem/1.2 var(--body); /* 14px interface text */
  /* Fluid display sizes mix rem and vw, so they still grow with browser zoom. */
  --fs-h2: clamp(2.25rem, 1.4rem + 2.4vw, 3.5rem);
  --fs-display: clamp(2.5rem, 1rem + 4.6vw, 5rem);
  --fs-h1: clamp(2.75rem, 1rem + 6.6vw, 7rem);
  --fs-figure: clamp(2.15rem, 1.3rem + 2.4vw, 3.5rem); /* Was up to 4.5rem; smaller so the seven hero figures fit in one row */
  /* Space: everything sits on a 4/8 px scale. */
  --page-pad: 32px;
  --section: 96px;
  --wrap: 1120px;
  --nav-h: 68px;
  --r-card: 16px; /* the app's card radius, as on the homepage */
  --bar-h: 72px;
  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-snap: cubic-bezier(0.34, 1.56, 0.64, 1);
  --fast: 160ms;
}


/* ---------- 1. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--nav-h) + 16px); }
/* Only while the cart bar shows (snatch-world-open.js adds has-bar), keep anchors and focused fields
   clear of it (WCAG 2.4.11). */
html.has-bar { scroll-padding-bottom: calc(var(--bar-h) + 16px); }
html.has-bar body { padding-bottom: var(--bar-h); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 500 1rem/1.55 var(--body); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img, svg { display: block; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
th { font-weight: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 12px 16px; background: var(--ink); color: var(--surface); font-weight: 600; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--select); color: var(--ink); }

/* ---------- 2. Shared type and marks ---------- */
/* One label style for axis labels, table heads, stamps and small captions. */
.sp-end, .award-who, .medal-caption, .picker-legend, .standings thead th, .c-div, .seg button, .nav-links a, .event-top::after, .opt-name::after, .remove {
  font: var(--f-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow { font: 400 1rem/1.2 var(--pixel); letter-spacing: 0; text-transform: uppercase; color: var(--gold-ink); }
.h2 { font: 800 var(--fs-h2)/1.02 var(--display); letter-spacing: -0.035em; text-wrap: balance; }
.lead, .hero-foot > p, .final-head p { max-width: 34em; font-size: 1.125rem; color: var(--ink-2); text-wrap: pretty; }
.footnote { font: var(--f-note); color: var(--ink-3); }
/* Crop marks: eight hairlines just outside a frame's corners, as on a print proof.
   --o is how far they reach out from the frame, --l how long each mark is. */
.crops {
  --o: 28px;
  --l: 20px;
  --m: linear-gradient(var(--ink-3), var(--ink-3));
  position: absolute;
  inset: calc(var(--o) * -1);
  pointer-events: none;
  background: var(--m) 0 var(--o) / var(--l) 1px, var(--m) var(--o) 0 / 1px var(--l), var(--m) 100% var(--o) / var(--l) 1px, var(--m) calc(100% - var(--o)) 0 / 1px var(--l),
    var(--m) 0 calc(100% - var(--o)) / var(--l) 1px, var(--m) var(--o) 100% / 1px var(--l), var(--m) 100% calc(100% - var(--o)) / var(--l) 1px, var(--m) calc(100% - var(--o)) 100% / 1px var(--l);
  background-repeat: no-repeat;
}

/* ---------- 3. Buttons, tick boxes, leaders ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 52px; padding: 0 24px; border: 1px solid var(--ink); font: 600 1rem/1.2 var(--body); text-decoration: none; cursor: pointer; }
.btn--ink { background: var(--ink); color: var(--surface); box-shadow: 4px 4px 0 0 var(--line-2); }
.btn--ink:hover { background: var(--ink-hover); }
.btn--ink .arrow { color: var(--arrow); }
.btn--line { background: none; }
.btn--line:hover { background: var(--ink); color: var(--surface); }
/* A press changes color and never moves the box: a target that shifts under the pointer can
   lose the click. Text buttons, tabs and Remove press with their hover color. */
.btn--ink:active, .btn--line:active, .nav-cta:active { background: var(--ink-2); color: var(--surface); }
.btn:disabled { border-color: var(--line-2); background: var(--paper); color: var(--ink-2); cursor: not-allowed; }
.btn--block { width: 100%; justify-content: space-between; }
.arrow { width: 16px; height: 12px; flex: none; }
.text-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0; border: 0; background: none; font: var(--f-num); text-decoration: underline 1px; text-underline-offset: 5px; cursor: pointer; }
.text-btn:hover { color: var(--gold-ink); }
/* A square tick box drawn on the real checkbox, so it stays native and focusable. */
.tick { appearance: none; -webkit-appearance: none; flex: none; display: inline-grid; place-content: center; width: 20px; height: 20px; margin: 0; border: 1.5px solid var(--ink-2); background: var(--surface); cursor: pointer; }
.tick::before { content: ''; width: 12px; height: 12px; background: var(--surface); clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%); transform: scale(0); }
.tick:hover, .tick:checked { border-color: var(--ink); }
.tick:checked { background: var(--ink); }
.tick:checked::before { transform: none; }
/* Dotted leader, receipt style. When its line is ticked, a gold-ink rule draws over the dots. */
.leader { position: relative; flex: 1 1 16px; min-width: 16px; height: 2px; background: radial-gradient(circle, var(--line-2) 0.8px, transparent 1.2px) 0 0 / 5px 2px repeat-x; }
.leader::after { content: ''; position: absolute; inset: 0; background: var(--gold-ink); transform: scaleX(0); transform-origin: 0 50%; }
.tick:checked ~ .leader::after { transform: none; }
.add .leader, .pick .leader, .order-list .leader { transform: translateY(4px); }
.price { font: var(--f-num); }
/* Pricing switch: <body data-pricing="off"> hides every price, total, Stripe line and the
   first-lift / added-lift lines. The event picker, counts and the order dialog keep working without them. */
body[data-pricing='off'] .price, body[data-pricing='off'] [data-price-only] { display: none; }
body[data-pricing='off'] .add .leader, body[data-pricing='off'] .picks .leader, body[data-pricing='off'] .order-list .leader { display: none; } /* no dotted leader to a hidden price */

/* ---------- 4. Nav and the reading rail ---------- */
.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--nav-h); padding: 0 var(--page-pad); border-bottom: 1px solid var(--line); background: var(--paper-glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-icon { width: 28px; height: 28px; border-radius: 7px; }
.brand-name { font: 700 0.875rem/1 var(--body); }
.brand-xp { color: var(--xp); } /* the XP in the wordmark, as on the homepage */
.nav-links { display: flex; gap: clamp(16px, 2.5vw, 32px); }
.nav-links a { position: relative; padding: 12px 0; font-size: 0.75rem; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.nav-links a::after { content: ''; position: absolute; inset: auto 0 6px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: none; }
.nav-cta { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; background: var(--ink); color: var(--surface); font: var(--f-ui); text-decoration: none; box-shadow: 4px 4px 0 0 var(--line-2); } /* the homepage's pixel shadow */
.nav-cta:hover { background: var(--ink-hover); }
.nav-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; background: var(--gold); color: var(--on-gold); font: 500 0.75rem/1 var(--mono); }
.nav-end { display: flex; flex: none; align-items: center; gap: 8px; }
/* Language menu: the same <details> as the homepage header (storefront.css), in this page's tokens. */
.lang { position: relative; }
.lang-summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; border: 1px solid var(--line-2); font: 500 0.75rem/1 var(--mono); letter-spacing: 0.14em; color: var(--ink-2); cursor: pointer; user-select: none; box-sizing: border-box; }
.lang-summary::-webkit-details-marker { display: none; }
.lang-summary::after { content: ''; width: 6px; height: 6px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.lang[open] .lang-summary, .lang-summary:hover { color: var(--ink); border-color: var(--ink-3); }
.lang-menu { position: absolute; top: calc(100% + 8px); right: 0; min-width: 160px; margin: 0; padding: 6px 0; list-style: none; background: var(--surface); border: 1px solid var(--line-2); z-index: 30; }
.lang-menu a { display: block; padding: 9px 14px; font: 600 0.875rem var(--body); color: var(--ink-2); text-decoration: none; }
.lang-menu a:hover { color: var(--ink); background: var(--grid); }
.lang-menu a[aria-current="true"] { color: var(--gold-ink); }
/* Russian: Schibsted Grotesk and Silkscreen have no Cyrillic, so the Russian page uses Manrope,
   Press Start 2P and JetBrains Mono instead, matched as a set (all in /fonts/fonts.css). */
html[lang="ru"] { --display: 'Manrope', 'Montserrat', system-ui, sans-serif; --mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace; --pixel: 'Press Start 2P', 'JetBrains Mono', monospace; }
html[lang="ru"] .eyebrow { font-size: 0.75rem; line-height: 1.5; }
.rail { position: absolute; left: 0; bottom: -1px; width: 100%; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: 0 50%; }

/* ---------- 5. Hero ---------- */
.hero { padding: 40px var(--page-pad) 64px; overflow: hidden; }
.frame { position: relative; max-width: var(--wrap); margin: 0 auto; padding: 64px 0 48px; }
/* Seven hairlines at the spectrum's column centres (the lift circles), a shade dimmer than --grid. */
.grid-lines { position: absolute; inset: 0; display: flex; justify-content: space-around; pointer-events: none; }
.grid-lines i { width: 1px; background: #17191e; transform-origin: 50% 0; }
.hero-head, .hero-foot { position: relative; text-align: center; }
.hero-eyebrow { font: 500 clamp(0.8125rem, 0.7rem + 0.3vw, 1rem)/1.4 var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-ink); text-wrap: balance; }
/* The dates are set in ink so they read first. Each date, and "Open ·", stays on one line,
   so a narrow screen breaks the line after the dot, never before it. */
.hero-eyebrow time, .hero-eyebrow span { white-space: nowrap; }
.hero-eyebrow time { color: var(--ink); }
.hero-title { margin-top: 24px; font: 800 var(--fs-h1)/0.9 var(--display); letter-spacing: -0.045em; word-spacing: 0.06em; }
/* Each line is a mask for the load rise. The bottom padding keeps descenders inside the
   mask and the matching negative margin cancels it in the layout: keep the pair together. */
.hero-title .line { display: block; overflow: hidden; padding: 0 0.05em 0.12em; margin-bottom: -0.12em; }
.hero-title .line > span { display: inline-block; }
.spectrum { --fig-h: calc(var(--fs-figure) * 0.82); --node: 14px; position: relative; display: grid; grid-template-columns: 1fr 1fr; margin-top: 56px; }
.sp-list { position: relative; grid-row: 1; grid-column: 1 / -1; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
/* The gold line runs from the first node to the last: the centers of the first and last of the 7 columns.
   Its top is the node's center: 16px top margin + 7px (half the node) - 1px (half the line). */
.sp-list::before { content: ''; position: absolute; left: calc(100% / 14); right: calc(100% / 14); top: calc(var(--fig-h) + 22px); height: 2px; background: var(--gold); transform-origin: 0 50%; }
.sp-item { position: relative; display: flex; flex-direction: column; align-items: center; padding: 0 6px; text-align: center; }
.sp-figure { display: flex; align-items: flex-end; height: var(--fig-h); }
.sp-num { font: 800 var(--fs-figure)/0.8 var(--display); letter-spacing: -0.045em; white-space: nowrap; }
.sp-item--endurance .sp-num, .event--endurance .event-fig { color: var(--gold-num); }
.sp-node { position: relative; z-index: 1; width: var(--node); height: var(--node); margin: 16px 0 18px; border: 2px solid var(--strength); border-radius: 50%; background: var(--paper); }
.sp-item--endurance .sp-node { border-color: var(--endurance); }
.sp-meta { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.sp-name { font: var(--f-ui); line-height: 1.3; text-wrap: balance; }
.sp-division { font: var(--f-note); color: var(--ink-3); }
.sp-end { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; }
/* The arrow tips line up with the first and last node (1/14 of the frame = 1/7 of a half). */
.sp-end--start { grid-row: 2; justify-self: start; padding-left: calc(100% / 7 - 7px); }
.sp-end--end { grid-row: 2; justify-self: end; padding-right: calc(100% / 7 - 7px); }
.sp-arrow { width: 14px; height: 10px; flex: none; }
.hero-foot { display: flex; flex-direction: column; align-items: center; gap: 20px; margin-top: 28px; margin-bottom: 56px; }
/* The price line under the promise. Green marks the price you pay; the struck grey one is the full
   price, shown only while the early price runs (snatch-world-open.js hides it afterwards). */
.hero-foot > .hero-price { max-width: none; margin: 0; font: var(--f-note); font-size: 1.0625rem; color: var(--ink-2); text-align: center; }
.hero-price b { margin: 0 4px; font: 800 1.5rem/1 var(--display); letter-spacing: -0.01em; color: var(--xp); }
.hero-price .was, .mid-cta-price .was { margin-left: 4px; color: var(--ink-2); text-decoration: line-through; text-decoration-thickness: 2px; }
.hero-price .was { font: 700 1.25rem/1 var(--display); }
/* The "Choose your events" button repeated at the end of Awards and Leaderboard. */
.wrap.mid-cta { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 56px; text-align: center; } /* .wrap.mid-cta, so this top margin beats ".wrap { margin: 0 auto }" further down */
.mid-cta-title { margin: 0; font: 700 1.5rem/1.2 var(--display); color: var(--ink); }
.mid-cta-price { margin: 0; font: var(--f-note); color: var(--ink-2); }
.mid-cta-price b { color: var(--xp); }
.hero-commit { max-width: 30em; font-weight: 600; font-size: 1.125rem; color: var(--ink); text-align: center; text-wrap: balance; }
.cta-row { display: flex; justify-content: center; }
.hero-notes { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 0; font: var(--f-note); color: var(--ink-2); }
.hero-notes li { display: inline-flex; align-items: flex-start; gap: 8px; padding: 0 20px; }
.hero-notes li + li { border-left: 1px solid var(--line-2); }
.price-note { color: var(--ink); }
.phone-icon { width: 11px; height: 17px; flex: none; color: var(--gold-ink); }

/* ---------- 6. Sections and the event cards ---------- */
.section { position: relative; padding: var(--section) var(--page-pad); border-top: 1px solid var(--line); }
.section--alt { background: var(--surface); }
.wrap { max-width: var(--wrap); margin: 0 auto; }
.stack { display: flex; flex-direction: column; gap: 48px; }
.head { display: flex; flex-direction: column; gap: 14px; }
.head--split { flex-flow: row wrap; justify-content: space-between; align-items: flex-end; gap: 16px 48px; }
.head--split > .head { max-width: 46rem; }
.event-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: ev; }
.event { display: flex; flex-direction: column; padding: 20px 20px 0; border: 1px solid var(--line); border-top: 2px solid var(--strength); border-radius: var(--r-card); overflow: hidden; background: var(--surface); counter-increment: ev; }
.event--endurance { border-top-color: var(--endurance); }
/* Selected: an ink frame, the tick, the gold rule and an "Added" stamp, never color alone. */
.event:not(.event--pair):has(:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
/* overflow: hidden is the mask the big number rises out of on entrance (section 14). */
.event-top { display: flex; align-items: flex-end; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--line); overflow: hidden; }
.event-top::after { content: counter(ev, decimal-leading-zero); padding: 5px 0 4px; }
.event:not(.event--pair):has(:checked) .event-top::after, .opt:has(:checked) .opt-name::after { content: 'Added'; padding: 5px 7px 4px; background: var(--gold); color: var(--on-gold); }
.event-fig { font: 800 2.5rem/0.8 var(--display); letter-spacing: -0.045em; }
.event-name { margin-top: 18px; font: 700 1.375rem/1.15 var(--display); letter-spacing: -0.02em; text-wrap: balance; }
.event-level { display: flex; align-items: center; gap: 10px; margin-top: 14px; font: var(--f-note); color: var(--ink-2); }
/* Three steps: beginner, medium, advanced. The filled steps are the levels the event suits. */
.level-bars { display: inline-flex; align-items: flex-end; gap: 2px; }
.level-bars i { width: 4px; height: 6px; background: var(--line-2); }
.level-bars i:nth-child(2) { height: 9px; }
.level-bars i:nth-child(3) { height: 12px; }
.level-bars i.on { background: var(--ink); }
/* margin-bottom: auto pushes the tag and the Add row down, so the Add rows line up. */
.event-rules { display: flex; flex-direction: column; gap: 8px; margin: 16px 0 auto; padding-top: 16px; border-top: 1px solid var(--line); }
.event-rules li { position: relative; padding-left: 18px; font-size: 0.875rem; line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }
.event-rules li::before { content: ''; position: absolute; left: 0; top: 0.72em; width: 8px; height: 1px; background: var(--ink-3); }
.event-tag { align-self: flex-start; margin-top: 20px; padding: 5px 8px 4px; border: 1px solid var(--gold-ink); font: var(--f-label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-ink); }
/* The rows are labels for their tick boxes. user-select: none, because pressing on the words
   and drifting a few pixels would start a text selection, and the browser then skips the tick. */
.add, .pick { display: flex; align-items: center; gap: 12px; min-height: 56px; cursor: pointer; -webkit-user-select: none; user-select: none; }
.add { margin: 20px -20px 0; padding: 0 20px; border-top: 1px solid var(--line); font: var(--f-ui); }
.add:hover, .pick:hover { background: var(--paper); }
/* Rows and segments press darker instead of moving, so their hairlines stay aligned. */
.add:active, .pick:active, .seg button:not([aria-pressed='true']):active { background: var(--grid); }
.add:has(:checked) { border-top-color: var(--ink); background: var(--gold-wash); }
/* One event, two tickets: a single spec sheet over two grid cells, a column per variant split by
   an ink hairline. Each column is its own pick, so the ink frame and the stamp sit on the column
   ("05.1", "05.2" until added), never on the whole card. */
.event--pair { grid-column: span 2; }
.opts { flex: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 16px -20px 0; border-top: 1px solid var(--line); counter-reset: opt; }
.opt { position: relative; display: flex; flex-direction: column; padding: 18px 20px 0; counter-increment: opt; }
.opt + .opt { border-left: 1px solid var(--ink); }
.opt-name { display: flex; align-items: center; justify-content: space-between; gap: 12px; font: 700 1.125rem/1.2 var(--display); letter-spacing: -0.015em; }
.opt-name::after { content: counter(ev, decimal-leading-zero) '.' counter(opt); padding: 5px 0 4px; }
.opt::after { content: ''; position: absolute; inset: 0; border: 2px solid var(--ink); opacity: 0; pointer-events: none; }
.opt + .opt::after { left: -1px; }
.opt:has(:checked)::after { opacity: 1; }

/* ---------- 7. Map ---------- */
.final-head { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.final-title { font: 800 var(--fs-display)/0.95 var(--display); letter-spacing: -0.045em; text-wrap: balance; }
.map { position: relative; max-width: var(--wrap); margin: 40px auto 0; aspect-ratio: 1000 / 520; }
/* The shared map is drawn for a dark page; it is lifted a little so the land reads on the ground. */
.map-img { width: 100%; height: 100%; filter: brightness(1.4); }
/* The lights are XP green with a soft glow (Ian, 2026-11-17). The glow colour is --xp (#8ae644) at 75%. */
.pin { position: absolute; width: max(6px, 0.72%); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: var(--xp); box-shadow: 0 0 0 1.5px var(--surface), 0 0 6px 1px rgba(138, 230, 68, 0.75); }
.pin::after { content: ''; position: absolute; inset: -1px; border: 1px solid var(--xp); border-radius: 50%; opacity: 0; }

/* ---------- 8. How it works and the app moment ---------- */
/* Two plates in one hairline frame: the phone on the column grid, the checklist on plain paper.
   Text never sits on the grid lines, so nothing has to mask them. */
.app-moment { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin: 32px 28px 0; border: 1px solid var(--line); background: var(--paper); }
.app-fig { display: flex; align-items: flex-start; justify-content: center; padding: 64px 40px; border-right: 1px solid var(--line); background: linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / calc(100% / 6) 100%; }
/* The phone is drawn with hairlines. Its screen is the app's record screen laid out in real
   iPhone points (390 x 844, 1px = 1pt) and shrunk as one piece by --ph-scale, so every size
   below reads straight from record.tsx and SnatchRepsCards.tsx. Always dark, like the app. */
.phone { --ph-scale: 0.75; position: relative; width: calc(390px * var(--ph-scale) + 18px); padding: 9px; border: 1.5px solid var(--ink); border-radius: 46px; background: var(--surface); box-shadow: 0 40px 60px -40px var(--shade); }
.phone::before { content: ''; position: absolute; z-index: 1; top: 21px; left: calc(50% - 38px); width: 76px; height: 22px; border-radius: 11px; background: #000; }
/* translateZ(0) makes iPhone Safari clip the scaled screen to the rounded corners. */
.ph-frame { position: relative; overflow: hidden; width: calc(390px * var(--ph-scale)); height: calc(844px * var(--ph-scale)); border-radius: 37px; background: #141615; transform: translateZ(0); }
/* The app's counts use the phone's own font (SF Pro on iPhone, Roboto on Android). */
.ph-screen { position: absolute; top: 0; left: 0; width: 390px; height: 844px; transform: scale(var(--ph-scale)); transform-origin: 0 0; font-family: -apple-system, BlinkMacSystemFont, Roboto, 'Segoe UI', var(--body); color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6); }
/* The camera fills the screen above the control bar. */
.ph-video { position: absolute; top: 0; left: 0; display: block; width: 390px; height: 744px; object-fit: cover; }
/* Back and close buttons: 44px, 12px under the 47px status bar. */
.ph-head { position: absolute; top: 59px; left: 16px; right: 16px; display: flex; align-items: center; justify-content: space-between; }
.ph-btn { display: grid; place-content: center; width: 44px; height: 44px; border-radius: 22px; background: rgba(0, 0, 0, 0.4); }
/* The event name replaces the app's RECORDING pill; the red dot stays. */
.ph-title { display: flex; align-items: center; gap: 8px; text-align: center; font-size: 14px; font-weight: 800; line-height: 17px; letter-spacing: 0.8px; text-transform: uppercase; }
.ph-title i { flex: none; width: 10px; height: 10px; border-radius: 5px; background: #ff3b30; }
/* The rep count cards and the flying rep number were removed on 2026-11-05: rep counting is in
   beta and the page no longer shows it. Only the set clock and the control bar remain. */
/* Time left in the set, 54px/900 on a glass panel, bottom left of the camera. */
.ph-clock { position: absolute; bottom: 124px; left: 20px; margin: 0; padding: 10px 18px; border-radius: 22px; background: rgba(0, 0, 0, 0.35); font-size: 54px; font-weight: 900; line-height: 1.2; }
/* Control bar, slimmer than the app's 134px: logo left, pause and stop right. */
.ph-controls { position: absolute; bottom: 0; left: 0; right: 0; box-sizing: border-box; display: flex; align-items: center; gap: 20px; height: 100px; padding: 10px 20px 34px; background: rgba(0, 0, 0, 0.8); }
.ph-brand { display: flex; align-items: center; gap: 8px; margin-right: auto; font-size: 17px; font-weight: 800; letter-spacing: -0.2px; }
.ph-brand img { width: 26px; height: 26px; border-radius: 6px; }
.ph-pause { display: flex; gap: 5px; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 24px; background: rgba(255, 255, 255, 0.2); }
.ph-pause i { width: 5px; height: 19px; border-radius: 2px; background: #fff; }
.ph-stop { display: grid; place-content: center; width: 42px; height: 42px; border-radius: 10px; background: #ff3b30; }
.ph-stop i { width: 16px; height: 16px; border-radius: 3px; background: #fff; }
.app-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 64px 48px; }
.app-title { font: 800 2rem/1.05 var(--display); letter-spacing: -0.03em; text-wrap: balance; }
/* Progress above the checklist: "1 of 5 done" and a bar of five segments, one per item. */
.app-progress { width: 100%; margin-top: 8px; }
.app-progress-head { display: flex; justify-content: space-between; gap: 16px; font: var(--f-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.app-progress-head span:last-child { color: var(--gold-ink); }
.app-progress-bar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin-top: 10px; }
.app-progress-bar i { height: 4px; background: var(--line); }
.app-progress-bar i.is-done { background: var(--gold); }
/* A checklist: a column of drawn boxes joined by a 2px line, the text column to its right. The
   boxes are smaller and lighter than the event tick boxes (section 3) on purpose, so nobody
   mistakes them for something to tick. No numbers: it is a list of things to get done. */
.app-steps { width: 100%; border-top: 1px solid var(--ink); }
.app-steps li { position: relative; display: grid; grid-template-columns: 16px minmax(0, 1fr); column-gap: 20px; }
/* The line runs from the bottom of this box (21px + 16px) to the top of the next one (21px). */
.app-steps li::before { content: ''; position: absolute; left: 7px; top: 37px; bottom: -21px; width: 2px; background: var(--line); transform-origin: 50% 0; }
.app-steps li:last-child::before { display: none; }
.app-steps .is-done::before { background: var(--gold); }
.app-steps .check { position: relative; z-index: 1; display: grid; place-content: center; width: 16px; height: 16px; margin-top: 21px; border: 1px solid var(--ink-3); background: var(--paper); }
.app-steps .is-done .check { border-color: var(--ink); background: var(--ink); }
/* The same tick as the event tick boxes. */
.app-steps .is-done .check::after { content: ''; width: 10px; height: 10px; background: var(--paper); clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%); }
.step { min-width: 0; padding: 18px 0 20px; border-bottom: 1px solid var(--line); }
.step-head { display: block; }
.step-head strong { font: 600 1rem/1.4 var(--body); color: var(--ink); text-wrap: balance; }
.step-body { max-width: 34em; margin-top: 4px; font-size: 0.9375rem; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.step-note { margin-top: 10px; font: var(--f-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-ink); }
/* A footnote, set in the text column under the list. */
.app-aside { width: 100%; padding-left: 36px; font-size: 0.875rem; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.app-aside-label { display: block; margin-bottom: 4px; font: var(--f-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
/* Wide screens: the phone stays in view while the steps scroll past it. */
@media (min-width: 901px) {
  .app-fig .phone { position: sticky; top: calc(var(--nav-h) + 40px); }
}

/* ---------- 9. Awards ---------- */
.awards { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
.awards-copy { display: flex; flex-direction: column; gap: 16px; }
.award-list { margin-top: 16px; border-top: 1px solid var(--ink); }
.award-row { display: grid; grid-template-columns: 136px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.award-who { padding-top: 4px; }
.award-what { font-weight: 600; }
.award-detail { margin-top: 4px; font-size: 0.875rem; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.medal-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-card); border: 1px solid var(--line); background: #0b0b0c; }
/* Concept photo of the medal and trophy. It fills the card; the caption sits under it. */
.medal-photo { display: block; width: 100%; height: auto; flex: 1; object-fit: cover; }
.medal-caption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; padding: 14px 20px 16px; border-top: 1px solid var(--line); background: var(--surface); }
.medal-tag { color: var(--ink); }
.medal-note { font: 400 0.8125rem/1.45 var(--body); text-transform: none; letter-spacing: 0; color: var(--ink-2); }

/* ---------- 10. Leaderboard ---------- */
.board-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.board-head .head { max-width: 34rem; }
.seg { display: inline-flex; border: 1px solid var(--ink); }
.seg button { min-width: 84px; min-height: 44px; padding: 0 16px; border: 0; background: none; color: var(--ink); cursor: pointer; }
.seg button + button { border-left: 1px solid var(--ink); }
.seg button:hover { background: var(--paper); }
.seg button[aria-pressed='true'] { background: var(--ink); color: var(--surface); }
.seg button:focus-visible { outline-offset: -5px; }
.seg button[aria-pressed='true']:focus-visible { outline-color: var(--gold); }
/* One row of tabs that scrolls sideways when the eight do not fit. Soft fades mark the side
   with more tabs (snatch-world-open.js sets fade-l / fade-r as the row scrolls). revealTab() in snatch-world-open.js
   keeps a chosen or keyboard-focused tab 40px clear of the fades. */
.tabs { position: relative; display: flex; flex-wrap: nowrap; gap: 16px; margin: 0 -8px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs.fade-l, .tabs.fade-r { --fl: 0px; --fr: 0px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--fl), #000 calc(100% - var(--fr)), transparent); mask-image: linear-gradient(90deg, transparent, #000 var(--fl), #000 calc(100% - var(--fr)), transparent); }
.tabs.fade-l { --fl: 40px; }
.tabs.fade-r { --fr: 40px; }
.tab { flex: none; min-height: 52px; padding: 0 8px; border: 0; background: none; color: var(--ink-3); font: var(--f-ui); white-space: nowrap; cursor: pointer; }
.tab:hover, .tab[aria-pressed='true'] { color: var(--ink); }
.tab:focus-visible { outline-offset: -2px; }
/* Each active tab draws its own underline under its label; with JavaScript one underline
   slides instead. It sits inside the scrolling row, so it moves with its tab. */
.tab[aria-pressed='true'] { background: linear-gradient(var(--gold-ink), var(--gold-ink)) 8px 100% / calc(100% - 16px) 2px no-repeat; }
.tab-ink { display: none; position: absolute; left: 0; bottom: 0; width: 1px; height: 2px; background: var(--gold-ink); transform-origin: 0 0; }
.has-ink .tab-ink { display: block; }
.has-ink .tab[aria-pressed='true'] { background: none; }
/* The podium: the top three on three equal columns, 2nd | 1st | 3rd. Each step is an outlined
   block of its own height standing on one ink baseline, with its rank as a big grotesk numeral.
   The gold line underlines the winner only. The baseline is also the table's top rule. */
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; margin-top: 32px; border-bottom: 2px solid var(--ink); }
.podium:not([hidden]) + .standings { border-top: 0; }
.metal--1 { --metal: var(--gold); }
.metal--2 { --metal: var(--silver); }
.metal--3 { --metal: var(--bronze); }
/* Clip beside the words on wide screens, above them on phones; the step always at the bottom. */
.pod { --h: 84px; display: grid; grid-template: 'clip who' 'step step' / auto minmax(0, 1fr); align-items: end; gap: 16px 14px; min-width: 0; }
.pod--0 { --h: 144px; grid-area: 1 / 2; }
.pod--1 { --h: 112px; grid-area: 1 / 1; }
.pod--2 { grid-area: 1 / 3; }
.pod-clip { grid-area: clip; padding-left: 16px; }
.pod-who { grid-area: who; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; padding-right: 12px; }
.pod-name { font: 600 1rem/1.25 var(--body); overflow-wrap: break-word; text-wrap: balance; }
.pod-meta { font: var(--f-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.pod-res { margin-top: 6px; font: 500 1.375rem/1 var(--mono); letter-spacing: -0.02em; white-space: nowrap; }
.pod-res small { font-size: 0.75rem; letter-spacing: 0; color: var(--ink-3); }
.pod .pace { margin-top: 0; }
/* Podium tiles are bigger and framed in the medal's metal; pinned adds an ink ring outside. */
.pod .clip { width: 36px; height: 64px; border: 2px solid var(--metal); border-radius: 6px; }
.pod .clip:hover, .pod .clip[aria-pressed='true'] { border-color: var(--metal); }
.pod .clip[aria-pressed='true'] { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--ink); }
/* The base is the mask the step rises out of (section 14); the step is the outlined block.
   Neighbouring steps share the winner's side rules. */
.pod-base { grid-area: step; display: block; height: var(--h); overflow: hidden; }
.pod-step { position: relative; display: flex; justify-content: space-between; align-items: flex-start; height: 100%; padding: 14px 14px 0 16px; border: 1px solid var(--ink); border-bottom: 0; }
.pod--1 .pod-step { border-right: 0; }
.pod--2 .pod-step { border-left: 0; }
.pod--0 .pod-step::before { content: ''; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px; background: var(--gold); transform-origin: 0 50%; }
.pod-num { font: 800 5.25rem/0.74 var(--display); letter-spacing: -0.05em; }
/* The tie mark: a small T hung from the numeral's cap line. */
.pod-num small { display: inline-block; margin-right: 0.04em; font-size: 0.4em; line-height: 1; letter-spacing: 0; vertical-align: top; }
.pod-metal { display: inline-flex; align-items: center; gap: 6px; padding-top: 2px; font: var(--f-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.pod-metal::before { content: ''; width: 8px; height: 8px; background: var(--metal); }
/* Compact rows in the app's style: a small clip with a rank badge on its corner, the name and
   flag, the score in bold green on the right, and a light zebra stripe instead of rules. */
.standings { width: 100%; border-collapse: collapse; table-layout: fixed; border-block: 1px solid var(--line); }
.standings th, .standings td { padding: 6px 12px; text-align: left; }
.standings thead th { height: 44px; padding-block: 0; border-bottom: 1px solid var(--line); }
.standings tbody tr:nth-child(even) { background: var(--zebra); }
.standings .c-res, .standings .c-gap, .standings .c-move { text-align: right; }
/* The badge carries the rank for the eye; the Rank column keeps it, hidden, for screen readers. */
.standings .c-rank { width: 0; padding: 0; }
.c-div { width: 112px; }
.c-res { width: 152px; }
.c-gap { width: 116px; }
.c-move { width: 76px; }
.standings td.c-div, .c-gap, .move { font: 400 0.8125rem/1.2 var(--mono); letter-spacing: 0; text-transform: none; color: var(--ink-2); }
.ath { display: flex; align-items: center; gap: 12px; padding-left: 4px; }
.tile { position: relative; flex: none; }
/* Rank badge, as in the app: medal colors for the top three, navy for everyone else. */
.badge { position: absolute; top: -3px; left: -5px; z-index: 1; min-width: 16px; height: 16px; padding: 0 3px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 8px; background: #1e1e3a; color: #e8e8e8; font: 700 9px/14px var(--body); text-align: center; pointer-events: none; }
.badge--1, .badge--2, .badge--3 { border-color: transparent; color: #1a1a2e; }
.badge--1 { background: #ffd700; }
.badge--2 { background: #c0c0c0; }
.badge--3 { background: #cd7f32; }
/* The 9:16 mini screen: the lifter's submitted video (a drawn stand-in for now, snatch-world-open.js
   part 3). Width and height are both set: Safari sizes an aspect-ratio box from its content,
   and an svg without a definite height falls back to 150 px. The svg is pinned to the frame.
   The ::before stretches the hit area to 44 x 44 without changing the look; it is why the
   frame does not use overflow: hidden (that would clip the hit area too). The svg clips its
   own drawing, and max-height keeps it inside the frame if a browser ignores height. */
.clip { position: relative; display: block; width: 22px; height: 40px; padding: 0; border: 1px solid var(--ink); border-radius: 5px; background: linear-gradient(var(--screen-top), var(--screen) 70%); cursor: pointer; }
.clip::before { content: ''; position: absolute; inset: -3px -12px; }
.clip svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-height: 100%; overflow: hidden; border-radius: 4px; fill: none; stroke: var(--screen-ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.clip circle { fill: var(--screen); }
.clip .clip-bell { fill: var(--gold); stroke: none; }
.clip .clip-handle { stroke: var(--gold); stroke-width: 1.3; }
.clip .clip-floor { stroke: var(--gold); stroke-width: 1; opacity: 0.55; }
/* The hip and the shoulder are the turning points (view-box units, as in snatch-world-open.js). */
.clip-upper, .clip-arm { transform-box: view-box; }
.clip-upper { transform-origin: 17px 35px; }
.clip-arm { transform-origin: 16.6px 21px; }
.clip-rec { position: absolute; right: 3px; top: 3px; width: 3px; height: 3px; border-radius: 50%; background: var(--rec); }
.clip-play { position: absolute; left: calc(50% - 6px); top: calc(50% - 3px); width: 12px; height: 12px; border-radius: 50%; background: rgba(16, 17, 20, 0.78); box-shadow: 0 0 0 1px rgba(228, 231, 236, 0.5); }
.clip-play::before { content: ''; position: absolute; left: 4.5px; top: 3px; width: 4px; height: 6px; background: var(--screen-ink); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.clip-time { position: absolute; left: 2px; right: 2px; bottom: 2px; height: 1.5px; background: var(--gold); transform: scaleX(0); transform-origin: 0 50%; }
.clip:hover { border-color: var(--gold-ink); }
.clip.is-playing .clip-play { opacity: 0; }
/* Pinned (pressed): a gold ring outside the frame, so the state never relies on motion. */
.clip[aria-pressed='true'] { border-color: var(--ink); box-shadow: 0 0 0 2px var(--gold); }
.ath-text { min-width: 0; }
.ath-line { display: flex; align-items: center; min-width: 0; }
.jmark { flex: none; display: inline-block; margin-left: 8px; padding: 2px 6px; font: 500 0.625rem/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; vertical-align: middle; border: 1px solid; }
.jmark--ok { color: #8ae644; border-color: rgba(138, 230, 68, 0.5); }
.jmark--ok::before { content: '\2713\00a0'; }
.jmark--wait { color: var(--ink-2); border-color: var(--line); border-style: dashed; }
.ath-meta .jmark { display: none; }
.ath-name { overflow: hidden; font: 600 0.875rem/1.3 var(--body); white-space: nowrap; text-overflow: ellipsis; }
.flag { flex: none; margin-left: 5px; font-size: 0.875rem; line-height: 1; }
.flag--code { font: var(--f-label); color: var(--ink-3); }
/* Phones hide the Division column, so it shows under the name there. */
.ath-meta { display: none; margin-top: 1px; font-size: 0.6875rem; line-height: 1.3; color: var(--ink-3); }
.res { font: 700 0.875rem/1.2 var(--body); color: var(--score); white-space: nowrap; }
.res small { font-weight: 500; font-size: 0.6875rem; color: var(--ink-3); }
.pace { display: block; margin-top: 2px; font: 500 0.625rem/1.2 var(--mono); color: var(--ink-3); }
.lead-tag { color: var(--gold-ink); }
.move i { display: inline-block; width: 7px; height: 6px; margin-right: 4px; vertical-align: 1px; background: currentColor; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.move--down i { transform: scaleY(-1); }
.board-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 16px; }
.board-notes { display: flex; flex-wrap: wrap; gap: 8px 24px; }
/* The hint carries a tiny 9:16 frame with a play mark, like the tiles it points to. */
.clip-hint { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); }
.clip-hint i { position: relative; flex: none; width: 9px; height: 16px; border: 1px solid var(--ink); border-radius: 2px; background: var(--screen); }
.clip-hint i::before { content: ''; position: absolute; left: 2.5px; top: 4.5px; width: 3px; height: 5px; background: var(--gold); clip-path: polygon(0 0, 100% 50%, 0 100%); }

/* ---------- 10b. FAQ (native <details>: tap a question to open its answer) ---------- */
.faq { border-top: 1px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; min-height: 44px; padding: 18px 0; font: 700 1.125rem/1.3 var(--display); color: var(--ink); cursor: pointer; }
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after { content: '+'; flex: none; font: 400 1.25rem/1 var(--mono); color: var(--ink-2); }
.faq-item[open] .faq-q::after { content: '\2212'; }
.faq-q:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.faq-a { max-width: 68ch; padding: 0 0 18px; font-size: 0.9375rem; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.faq-a p + p { margin-top: 10px; }
.faq-a b { font-weight: 600; color: var(--ink); }
.faq-a a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 11. Final call to action and the entry form ---------- */
.final { position: relative; padding: 112px var(--page-pad) var(--section); border-top: 1px solid var(--line); }
.final-inner { display: flex; flex-direction: column; align-items: center; gap: 32px; max-width: 720px; margin: 0 auto; text-align: center; }
.sheet { position: relative; width: 100%; max-width: 640px; margin: 16px 0; padding: 32px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); box-shadow: 0 32px 48px -40px var(--shade); text-align: left; }
.picker { min-width: 0; margin: 0; padding: 0; border: 0; }
.picker-legend { padding: 0 0 16px; }
.picks { border-top: 1px solid var(--ink); }
.pick { gap: 14px; min-height: 52px; padding: 0 8px; border-bottom: 1px solid var(--line); }
.pick:has(:checked) { background: var(--gold-wash); }
.pick-name { font-weight: 600; line-height: 1.3; }
.receipt { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.receipt .text-btn { align-self: flex-start; }
.r-line { display: flex; align-items: baseline; gap: 12px; font: var(--f-num); font-weight: 400; color: var(--ink-2); }
.r-note { margin: -6px 0 0; font-size: 0.8125rem; line-height: 1.45; color: var(--ink-2); }
.r-total { padding-top: 16px; border-top: 1px solid var(--ink); font: 800 1.75rem/1 var(--display); letter-spacing: -0.02em; color: var(--ink); }
/* Changing figures need a box so their "bump" can move them (the nav badge keeps its grid). */
[data-cart-total], [data-cart-count]:not(.nav-count) { display: inline-block; }
.checkout-msg { font: var(--f-ui); color: var(--danger); }
/* Early-price countdown (Ian, 2026-11-15): above the entry form only (the order box shows the
   first lift's later price struck out instead, Ian 2026-11-17). [data-early-note] hides it once the early price ends (snatch-world-open.js). */
/* Events intro price line (Ian picked the two-line intro, 2026-11-15): prices large, words lead-sized. */
.price-line b { margin: 0 4px; font: 800 1.5rem/1 var(--display); letter-spacing: -0.01em; color: var(--ink); }
.countdown { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; max-width: 640px; margin-top: 16px; padding: 14px 16px; border: 1px solid var(--gold); background: var(--gold-wash); text-align: center; }
.countdown[hidden] { display: none; }
.countdown-label { font: var(--f-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-ink); }
.countdown-time { font: 600 1.5rem/1.1 var(--mono); letter-spacing: 0.02em; color: var(--gold-num); font-variant-numeric: tabular-nums; }
/* Now vs later prices under the clock (Ian picked layout B, 2026-11-15). */
.countdown-prices { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); width: 100%; margin-top: 8px; border-top: 1px solid var(--gold); }
.countdown-col { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px 4px; min-width: 0; }
.countdown-col + .countdown-col { border-left: 1px solid var(--gold); }
.countdown-cap { font: var(--f-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-ink); }
/* Prices like "39,99 US$" (es, fr, it, pl, pt) are wider than "$39.99": shrink on phones so two columns fit. */
.countdown-price { font: 800 clamp(1.375rem, 7vw, 2.5rem)/1 var(--display); letter-spacing: -0.02em; color: var(--ink); white-space: nowrap; }
.countdown-note { font-size: 0.8125rem; line-height: 1.3; color: var(--ink-2); }
.countdown-col--later .countdown-cap, .countdown-col--later .countdown-price { color: var(--ink-3); }
.checkout-msg:empty { display: none; }
/* After an empty Checkout, focus moves to the first tick box, so the same message also shows
   above the list, next to it. (aria-hidden there: screen readers hear the copy by the button.) */
.checkout-msg--top { margin: 0 0 12px; text-align: left; }
/* A mouse click does not normally leave a focus ring on the box that receives focus. While
   that message shows, a focused tick box always draws one, so the eye finds where to start. */
.picker:has(> .checkout-msg--top:not(:empty)) .tick:focus { outline: 2px solid var(--ink); outline-offset: 3px; }
.trust { display: flex; align-items: center; justify-content: center; gap: 8px; font: var(--f-note); color: var(--ink-2); }
.lock { width: 12px; height: 14px; }
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.store-badge img { width: auto; height: 40px; }

/* Sponsors: the pitch on the left, the form on the right (stacked on phones). */
.sponsor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.sponsor-form { display: flex; flex-direction: column; gap: 18px; max-width: none; margin: 0; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-label { font: var(--f-ui); color: var(--ink); }
.field-label i { font-style: normal; color: var(--ink-3); }
.field input, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.4 var(--body); }
.field textarea { resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
.sponsor-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sponsor-msg { font: var(--f-ui); color: var(--ink-2); }
.sponsor-msg:empty { display: none; }
.sponsor-msg.is-error { color: var(--danger); }
/* What sponsors get: a short list under the pitch. */
.sponsor-perks { display: flex; flex-direction: column; gap: 10px; max-width: 34em; padding: 0; list-style: none; color: var(--ink-2); }
.sponsor-perks li { position: relative; padding-left: 22px; }
.sponsor-perks li::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 10px; height: 2px; background: var(--gold); }
/* "Rules and scoring" on every event card: a native <details> expand, no script needed.
   Closed on phones so the cards stay short; snatch-world-open.js opens it on wider screens.
   margin-bottom: auto keeps the XP line and "Add to entry" at the foot of the card. */
.event-more { margin: 16px 0 auto; border-top: 1px solid var(--line); }
.event-more-toggle { list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 44px; font: 500 0.75rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); cursor: pointer; user-select: none; }
.event-more-toggle::-webkit-details-marker { display: none; }
.event-more-toggle::after { content: ''; width: 6px; height: 6px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform var(--fast); }
.event-more[open] .event-more-toggle::after { transform: translateY(2px) rotate(-135deg); }
.event-more-toggle:hover, .event-more[open] .event-more-toggle { color: var(--ink); }
.event-more-toggle:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.event-more > .event-rules { margin: 4px 0 0; padding-top: 0; border-top: 0; }
/* "How it's scored" sits under the rules inside the same expand. */
.event-score { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.event-score-head { margin-bottom: 10px; font: 500 0.75rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }
.event-score-rules { margin: 0 0 4px; padding-top: 0; border-top: 0; }
.event-score-link { display: inline-block; padding: 12px 0; margin-left: 18px; font: 500 0.75rem/1.3 var(--mono); letter-spacing: 0.08em; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--ink-3); }
.event-score-link::after { content: ' \2192'; }
.event-score-link:hover { text-decoration-color: var(--ink); }
/* XP for a valid entry, on each event card just above "Add to entry". */
.event-xp { padding-top: 20px; font: var(--f-note); color: var(--ink-2); }
.event-xp b { font: var(--f-num); color: var(--score); }
.event-xp + .add { margin-top: 14px; }
@media (max-width: 900px) {
  .sponsor { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .sponsor-form { padding: 24px 20px; }
}

/* ---------- 12. Footer, cart bar and order dialog ---------- */
/* Footer: the same markup and look as the homepage footer (storefront.css section 8),
   written with this page's tokens so every page ends the same way. */
.site-footer { border-top: 1px solid var(--line); padding: 32px var(--page-pad); }
.footer-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px 24px; }
.site-footer .brand { font-size: 0.875rem; cursor: default; }
.site-footer .brand-icon { width: 24px; height: 24px; border-radius: 6px; }
.wordmark { font: 700 0.875rem/1 var(--body); color: var(--ink); }
.wordmark-accent { color: var(--xp); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.footer-link, .social { font: 400 0.75rem var(--mono); color: var(--ink-3); padding: 8px 0; display: inline-block; text-decoration: none; }
.footer-link:hover, .social:hover { color: var(--ink); }
.socials { display: flex; gap: 20px; }
.copyright { margin: 20px 0 0; font: 400 0.75rem var(--mono); color: var(--ink-3); }
.cart-bar { position: fixed; inset: auto 0 0; z-index: 30; padding: 0 var(--page-pad) env(safe-area-inset-bottom); border-top: 1px solid var(--line); background: var(--surface); box-shadow: 0 -16px 32px -28px var(--shade); transform: translateY(100%); visibility: hidden; pointer-events: none; }
.cart-bar.is-shown { transform: none; visibility: visible; pointer-events: auto; }
.cart-inner { display: flex; align-items: center; gap: 24px; max-width: var(--wrap); min-height: var(--bar-h); margin: 0 auto; }
/* Eight squares on a hairline: the picked events, in page order (filled by snatch-world-open.js). */
.cart-line { position: relative; display: flex; gap: 10px; }
.cart-line::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line-2); }
.cart-line i { position: relative; width: 8px; height: 8px; border: 1px solid var(--ink-2); background: var(--surface); }
.cart-line i.on { border-color: var(--ink); background: var(--ink); }
.cart-sum { display: flex; flex: 1; align-items: baseline; gap: 8px; font: var(--f-num); }
.cart-total { font-size: 1.125rem; }
.order { width: min(560px, 100% - 32px); max-height: calc(100% - 48px); padding: 0; overflow: hidden; border: 1px solid var(--ink); background: var(--surface); color: var(--ink); box-shadow: 0 40px 80px -40px var(--shade); }
/* Only an open dialog becomes a flex column; a closed one must stay hidden. */
.order[open] { display: flex; flex-direction: column; }
.order::backdrop { background: var(--veil, rgba(16, 17, 20, 0.42)); } /* fallback: older browsers give ::backdrop no custom properties */
.order-sheet { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
/* Only the list scrolls; the head and foot stay pinned. scroll-padding keeps a focused Remove
   and its focus ring 12px clear of the list's edges, so the pinned foot never covers it. */
.order-body { display: flex; flex-direction: column; gap: 20px; flex: 1 1 auto; min-height: 0; padding: 0 32px 24px; overflow-y: auto; overscroll-behavior: contain; scroll-padding-block: 12px; }
.order-foot { display: flex; flex-direction: column; gap: 16px; flex: none; padding: 20px 32px 32px; border-top: 1px solid var(--ink); }
.order-foot .r-total { padding-top: 0; border-top: 0; }
.order-head { display: flex; flex: none; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 32px 32px 20px; }
.order-title { font: 800 2.5rem/1 var(--display); letter-spacing: -0.035em; }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; margin: -6px -6px 0 0; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.icon-btn:hover { border-color: var(--ink); }
.icon-btn:active { background: var(--grid); }
.icon-btn svg { width: 14px; height: 14px; }
.order-list { border-top: 1px solid var(--ink); }
.order-list li { display: flex; align-items: center; gap: 12px; min-height: 56px; border-bottom: 1px solid var(--line); }
.order-list li:last-child { border-bottom: 0; } /* the Terms box's top line follows */
.order-list .was { color: var(--ink-3); font: var(--f-num); text-decoration-thickness: 1px; white-space: nowrap; }
.order-list .price { white-space: nowrap; }
.order-list .o-prices { display: flex; align-items: baseline; gap: 10px; flex: none; }
@media (max-width: 720px) {
  .order-list .o-prices { flex-direction: column; align-items: flex-end; gap: 2px; }
}
.o-name { font-weight: 600; line-height: 1.3; }
.remove { min-height: 44px; padding: 0 0 0 8px; border: 0; background: none; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.remove:hover { color: var(--danger); }
.order-empty, .order-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.order-actions .btn:disabled { justify-content: center; }
.order-currency { margin: -4px 0 12px; font-size: 0.8125rem; line-height: 1.45; color: var(--ink-3); text-wrap: pretty; }
.order-help { font-size: 0.875rem; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
/* The rules the athlete agrees to: a ruled block like the receipt, then the agree box. */
.order-terms { display: flex; flex-direction: column; gap: 12px; padding-top: 16px; border-top: 1px solid var(--ink); }
.agree { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; margin-top: 4px; padding: 12px 14px; border: 1px solid var(--line-2); background: var(--paper); font: var(--f-ui); line-height: 1.45; cursor: pointer; }
.agree .tick { margin-top: -0.5px; }
.agree a { text-decoration: underline 1px; text-underline-offset: 3px; }
.agree a:hover { color: var(--gold-ink); }
.agree:hover { border-color: var(--ink); }
.agree:has(:checked) { border-color: var(--ink); background: var(--gold-wash); }
.agree:has([aria-invalid='true']) { border-color: var(--danger); }
/* Focus moves here after a click on the link, so the ring shows even without the keyboard. */
.agree .tick[aria-invalid='true']:focus { outline: 2px solid var(--danger); outline-offset: 3px; }
.agree-error { font: var(--f-ui); color: var(--danger); }
/* "Signed in as ... Not you? Sign out": quiet, above the agree box. */
.order-who { font: var(--f-ui); line-height: 1.5; color: var(--ink-2); overflow-wrap: anywhere; }
.order-who strong { color: var(--ink); font-weight: 600; }
.order-who a { text-decoration: underline 1px; text-underline-offset: 3px; }
.order-who a:hover { color: var(--gold-ink); }

/* ---------- 13. Tablet and phone ---------- */
@media (max-width: 1080px) {
  .event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-fig { padding: 56px 24px; }
  .app-copy { padding: 56px 32px; }
}
@media (max-width: 900px) {
  .crops { --o: 20px; --l: 14px; }
  /* visibility, not display: switching display would replay the load animation on resize. */
  .grid-lines, .sp-list::before { visibility: hidden; }
  .hero-title { font-size: clamp(2.75rem, 1rem + 7.4vw, 4.5rem); }
  /* The spectrum turns vertical: nodes on a top-to-bottom gold line, figures to their right. */
  .spectrum { display: flex; flex-direction: column; max-width: 420px; margin: 48px auto 0; }
  .sp-list { display: flex; flex-direction: column; gap: 24px; }
  .sp-item { display: grid; grid-template: 'node figure' '. meta' / var(--node) 1fr; align-items: center; column-gap: 20px; padding: 0; text-align: left; }
  .sp-figure { grid-area: figure; height: 44px; align-items: center; }
  .sp-num { font-size: 2.75rem; }
  .sp-node { grid-area: node; margin: 0; }
  /* Each node draws the line down to the next: 22px is this node's center, and the next
     node is this item's height plus the 24px gap further down. */
  .sp-item:not(:last-child)::after { content: ''; position: absolute; left: 6px; top: 22px; width: 2px; height: calc(100% + 24px); background: var(--gold); transform-origin: 50% 0; }
  .sp-meta { grid-area: meta; align-items: flex-start; margin-top: 8px; }
  .sp-end { margin: 0 0 24px; padding: 0; }
  .sp-end--end { margin: 24px 0 0; }
  .sp-end .sp-arrow { transform: rotate(90deg); }
  .app-moment { grid-template-columns: 1fr; margin: 32px 0 0; }
  .app-fig { padding: 56px 176px 56px 40px; border-right: 0; border-bottom: 1px solid var(--line); background-size: calc(100% / 8) 100%; }
  .app-copy { padding: 48px 40px 56px; }
  .awards { gap: 40px; }
  .award-row { grid-template-columns: 1fr; gap: 6px; }
  /* Narrower data columns leave the athlete's name room to breathe. */
  .c-div { width: 92px; }
  .c-res { width: 128px; }
  .c-gap { width: 96px; }
  .c-move { width: 56px; }
}
@media (max-width: 720px) {
  :root { --page-pad: 20px; --section: 64px; --nav-h: 60px; --bar-h: 68px; }
  .nav-links, .cart-line, .cart-trust, .c-div, .c-gap, .c-move { display: none; }
  /* Phones: the app icon alone stands for the brand (the link keeps its "KettlebellXP home" name), so
     the language chip and "Registration Opens Soon" (or "Inscripción próximamente") fit at 390px. */
  .nav { gap: 12px; }
  .brand-name { display: none; }
  .nav-cta { padding: 0 12px; font-size: 0.8125rem; }
  .lang-summary { padding: 0 8px; }
  .footer-row { flex-direction: column; align-items: flex-start; }
  .footer-links { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero { padding: 36px var(--page-pad) 56px; }
  .frame { padding: 56px 0 40px; }
  .crops { --o: 12px; --l: 8px; }
  .hero-foot { margin-top: 28px; }
  .mid-cta .btn { align-self: stretch; justify-content: center; }
  .cta-row { flex-direction: column; align-self: stretch; }
  .hero-notes { flex-direction: column; }
  .hero-notes li + li { border-left: 0; }
  /* When the app note wraps, the icon starts its first line so both lines stay centered. */
  .hero-notes li { display: block; }
  .phone-icon { display: inline-block; margin-right: 8px; vertical-align: -4px; }
  .head--split { flex-direction: column; align-items: flex-start; }
  .event-grid, .awards { grid-template-columns: 1fr; }
  /* One column of cards: the two tickets stack, split by the same ink hairline. */
  .event--pair { grid-column: auto; }
  .opts { grid-template-columns: minmax(0, 1fr); }
  .opt + .opt { border-left: 0; border-top: 1px solid var(--ink); }
  .opt + .opt::after { left: 0; top: -1px; }
  .app-fig { padding: 40px 20px; background-size: 25% 100%; }
  .app-copy { padding: 32px 20px 40px; }
  .app-title { font-size: 1.75rem; }
  .seg { width: 100%; }
  .seg button { flex: 1; min-width: 0; }
  .standings th, .standings td { padding: 5px 8px; }
  /* Three places side by side: clip, words, then a lower step with a smaller numeral. */
  .podium { margin-top: 16px; }
  .pod { --h: 36px; grid-template: 'clip' 'who' 'step' / minmax(0, 1fr); gap: 8px; }
  .pod--0 { --h: 62px; }
  .pod--1 { --h: 46px; }
  .pod-clip { padding-left: 8px; }
  .pod-who { gap: 2px; padding: 0 4px 0 8px; }
  .pod-name { font-size: 0.8125rem; line-height: 1.2; }
  .pod-meta { font-size: 0.625rem; letter-spacing: 0.1em; }
  .pod-res { margin-top: 2px; font-size: 0.9375rem; }
  .pod-res small { font-size: 0.6875rem; }
  .pod .pace { display: none; }
  .pod .clip { width: 28px; height: 50px; border-radius: 5px; }
  .pod-step { padding: 7px 8px 0; }
  .pod-num { font-size: 2.25rem; }
  .pod-metal { font-size: 0; }
  .ath { gap: 10px; }
  .ath-meta { display: block; }
  .ath-line .jmark { display: none; }
  .ath-meta .jmark { display: inline-block; margin-left: 6px; padding: 1px 4px; font-size: 0.5625rem; }
  .c-res { width: 96px; }
  .final { padding: 80px var(--page-pad) var(--section); }
  .sheet { padding: 24px 16px; }
  .pick { align-items: flex-start; gap: 10px; padding: 14px 4px; }
  .pick .leader { display: none; }
  .pick .price { margin-left: auto; padding-top: 3px; }
  .order { width: 100%; max-width: 100%; max-height: 92%; margin: auto 0 0; border-width: 1px 0 0; }
  .order-head { padding: 20px var(--page-pad) 16px; }
  .order-body { padding: 0 var(--page-pad) 16px; }
  .order-foot { gap: 12px; padding: 16px var(--page-pad) calc(16px + env(safe-area-inset-bottom)); }
  .order-title { font-size: 1.75rem; }
  /* Shorter event cards (Ian, 2026-11-18): smaller number and gaps; rules and scoring sit in
     the closed "Rules and scoring" expand. */
  .event { padding: 16px 16px 0; }
  .event-top { padding-bottom: 10px; }
  .event-fig { font-size: 2rem; }
  .event-name { margin-top: 12px; font-size: 1.25rem; }
  .event-level { margin-top: 8px; }
  .event-more { margin-top: 12px; }
  .event-xp { padding-top: 12px; }
  .event-xp + .add { margin-top: 10px; }
  /* The drawn app screen takes about half a phone screen (422px on an 844px iPhone). */
  .app-fig { padding: 24px 20px; }
  .phone { --ph-scale: 0.48; border-radius: 34px; padding: 7px; }
  .phone::before { top: 13px; left: calc(50% - 22px); width: 44px; height: 12px; border-radius: 6px; }
  .ph-frame { border-radius: 28px; }
  /* The medal photo: about a third of the screen height, caption included. */
  .medal-photo { flex: none; height: max(160px, calc(33vh - 64px)); height: max(160px, calc(33svh - 64px)); object-position: 50% 72%; }
  .medal-caption { padding: 10px 16px 12px; }
  /* Leaderboard: no podium on phones (snatch-world-open.js, phoneBoard); every place is a row. */
  .board-head { gap: 16px; }
  .standings th, .standings td { padding: 4px 8px; }
}

/* ---------- 13b. Featured coaches (a coach map above the bio cards) ---------- */
/* The map (.map, .map-img, .pin) is the one the old "Get on the map" section used. Each face is a
   link to the coach's card and sits above the green lights. */
.coach-map { margin-top: 0; }
.coach-pin { position: absolute; z-index: 1; width: clamp(34px, 5.4%, 60px); aspect-ratio: 1; transform: translate(-50%, -50%); text-decoration: none; }
.coach-pin img { display: block; width: 100%; height: 100%; border: 2px solid var(--gold); border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--paper-glass), 0 6px 18px var(--shade); }
.coach-pin:hover img, .coach-pin:focus-visible img { border-color: var(--ink); }
.coach-pin-label { position: absolute; top: 50%; transform: translateY(-50%); padding: 6px 9px; border: 1px solid var(--line-2); background: var(--paper-glass); white-space: nowrap; }
.coach-pin--r .coach-pin-label { left: calc(100% + 8px); }
.coach-pin--l .coach-pin-label { right: calc(100% + 8px); }
.coach-pin-label b { display: block; font: 600 0.75rem/1.25 var(--body); color: var(--ink); }
.coach-pin-label i { font: 500 0.625rem/1.3 var(--mono); font-style: normal; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-ink); }
.coach-map-hint { margin-top: 12px; text-align: center; }
.coach-map-hint + .coach-map-hint { margin-top: 4px; }
/* align-items: start lets each card keep its own height. Without it the two cards in a row share
   one height, so opening "More about" on one stretched its neighbour and moved the page (Ian, 2026-11-28). */
.coach-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 24px; }
/* A card is the link target of a face on the map, so it lights up when you arrive. */
.coach { display: flex; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.coach:target { border-color: var(--gold); }
/* max-height keeps the photo the same when "More about" opens; the card grows below it instead of
   the photo zooming in. 640px is a little taller than the tallest closed card. */
.coach-photo { flex: none; width: 38%; min-height: 340px; max-height: 640px; object-fit: cover; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.coach-body { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 20px; }
.coach-role { font: var(--f-label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-ink); }
.coach-name { margin-top: 4px; font: 800 1.6rem/1.05 var(--display); letter-spacing: -0.02em; }
.coach-where { display: flex; flex-direction: column; gap: 6px; list-style: none; font: 500 0.75rem/1.4 var(--mono); color: var(--ink-2); }
.coach-where b { display: inline-block; margin-right: 6px; padding: 3px 7px; border: 1px solid var(--line-2); font-weight: 600; font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; }
.coach-where li:first-child { color: var(--ink); }
.coach-where li:first-child b { border-color: var(--gold); background: var(--gold); color: var(--on-gold); }
.coach-facts { display: flex; flex-wrap: wrap; gap: 6px; }
.coach-facts span { padding: 6px 10px; border: 1px solid var(--line-2); font: 500 0.6875rem/1.2 var(--mono); letter-spacing: 0.04em; color: var(--ink-2); }
.coach-bio { font-size: 0.9375rem; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.coach-more summary { cursor: pointer; font: var(--f-ui); list-style: none; }
.coach-more summary::-webkit-details-marker { display: none; }
.coach-more summary::after { content: ' +'; color: var(--gold); }
.coach-more[open] summary::after { content: ' \2212'; }
.coach-more ul { margin: 10px 0 0 18px; list-style: disc; font-size: 0.875rem; line-height: 1.55; color: var(--ink-2); }
.coach-more li + li { margin-top: 4px; }
.coach-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.coach-link { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line-2); font: var(--f-num); font-size: 0.8125rem; text-decoration: none; }
.coach-link:hover { border-color: var(--ink); }
.coach-link--main { border-color: var(--gold); background: var(--gold); color: var(--on-gold); }
.coach-link--main:hover { border-color: var(--ink); background: var(--ink); }
/* One card per row, photo on top, once two columns get tight. Below 1200px the faces stay but
   the name labels go, because a label would run past the edge of a narrow map. Each face link
   carries the coach's name in aria-label, so screen readers still read it. */
@media (max-width: 1200px) {
  .coach-pin-label { display: none; }
}
@media (max-width: 900px) {
  .coach-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .coach { flex-direction: column; }
  .coach-photo { width: 100%; min-height: 0; max-height: none; aspect-ratio: 1; border-right: 0; }
}

/* ---------- 14. Motion (only when the visitor allows it) ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  /* Hover and state changes ease in only when motion is allowed; otherwise they are instant. */
  .btn, .seg button { transition: background-color var(--fast), color var(--fast); }
  .tick { transition: background-color var(--fast), border-color var(--fast); }
  .add, .pick { transition: background-color var(--fast); }
  .event { transition: border-color var(--fast), box-shadow var(--fast); }
  .opt::after { transition: opacity var(--fast); }
  .tab { transition: color var(--fast); }
  .nav-links a::after { transition: transform 260ms var(--ease-out); }
  .order[open] { animation: rise-in 320ms var(--ease-out); }
  .order[open]::backdrop { animation: fade 320ms var(--ease-out); }
  .tick::before { transition: transform var(--fast) var(--ease-snap); }
  .leader::after { transition: transform 420ms var(--ease-out); }
  .arrow { transition: transform var(--fast) var(--ease-out); }
  .btn:hover .arrow { transform: translateX(4px); }
  .tab-ink { transition: transform 340ms var(--ease-in-out); }
  /* Exits are quicker than entrances. */
  .cart-bar { transition: transform 200ms var(--ease-in-out), visibility 0s linear 200ms; }
  .cart-bar.is-shown { transition: transform 360ms var(--ease-out), visibility 0s; }
  /* Signature, on load: the grid draws from the center out, the headline rises line by line,
     then the gold line runs through the six nodes. All done by about 1.3 s.
     --d is a hairline's distance from the center line; --k is a node's place on the line. */
  .grid-lines i { animation: draw-y 460ms var(--ease-in-out) calc(var(--d, 0) * 50ms) backwards; }
  .grid-lines i:nth-child(3), .grid-lines i:nth-child(5) { --d: 1; }
  .grid-lines i:nth-child(2), .grid-lines i:nth-child(6) { --d: 2; }
  .grid-lines i:nth-child(1), .grid-lines i:nth-child(7) { --d: 3; }
  .sp-item:nth-child(2) { --k: 1; }
  .sp-item:nth-child(3) { --k: 2; }
  .sp-item:nth-child(4) { --k: 3; }
  .sp-item:nth-child(5) { --k: 4; }
  .sp-item:nth-child(6) { --k: 5; }
  .sp-item:nth-child(7) { --k: 6; }
  .frame > .crops { animation: crops-in 600ms var(--ease-out) 80ms backwards; }
  .hero-eyebrow { animation: fade 500ms var(--ease-out) 120ms backwards; }
  .hero-title .line > span { animation: rise 860ms var(--ease-out) 140ms backwards; }
  .hero-title .line + .line > span { animation-delay: 220ms; }
  .sp-list::before { animation: draw-x 620ms var(--ease-in-out) 480ms backwards; }
  .sp-node { animation: pop 300ms var(--ease-snap) calc(var(--k, 0) * 100ms + 500ms) backwards; }
  .sp-item:not(:last-child)::after { animation: draw-y 300ms var(--ease-in-out) calc(var(--k, 0) * 100ms + 520ms) backwards; }
  .is-loaded .grid-lines i, .is-loaded .frame > .crops, .is-loaded .hero-eyebrow, .is-loaded .hero-title .line > span,
  .is-loaded .sp-list::before, .is-loaded .sp-node, .is-loaded .sp-item::after { animation: none; }
  /* Scroll entrances: snatch-world-open.js adds .is-in once, when an element first comes on screen.
     A block that holds controls is marked data-reveal="inner" and never moves or fades, because
     a click that lands while its target shifts is lost. Only the parts without controls move:
     the event numbers, the phone, the crop marks and the table rows. */
  .is-in:not([data-reveal='inner']) { animation: rise-in 700ms var(--ease-out) calc(var(--i, 0) * 70ms) backwards; }
  .map.is-in { animation-name: fade; }
  .map.is-in .pin::after { animation: ping 1.4s var(--ease-out) calc(var(--delay) * 0.5) 2; }
  .event.is-in .event-fig { animation: rise-fig 640ms var(--ease-out) calc(var(--i, 0) * 70ms) backwards; }
  .app-moment.is-in > .crops, .sheet.is-in > .crops { animation: crops-in 600ms var(--ease-out) backwards; }
  .app-moment.is-in .phone { animation: rise-in 700ms var(--ease-out) 80ms backwards; }
  /* The REC dot on the phone blinks like the app's. */
  .ph-title i { animation: blink 1s ease-in-out infinite; }
  /* The checklist: the tick lands, then the gold line draws down to the next item. */
  .app-moment.is-in .is-done .check::after { animation: pop 300ms var(--ease-snap) 200ms backwards; }
  .app-moment.is-in .app-steps .is-done::before { animation: draw-y 480ms var(--ease-in-out) 420ms backwards; }
  /* The board's rows rise in when it first comes on screen, and again whenever snatch-world-open.js
     rebuilds them for another event or division. --i is the row's place. */
  .board.is-in tbody > tr > * { animation: rise-in 380ms var(--ease-out) calc(var(--i) * 20ms) backwards; }
  .board.is-settled tbody > tr > * { animation: none; }
  /* The podium rises in ceremony order, third, second, then the winner (--o is 0, 1, 2): each
     step draws up out of the baseline, its words follow, and last the gold line runs under the
     winner. All done by 580 ms. The clips never move, so a press always lands. */
  .board.is-in .is-rising .pod-step { animation: rise 320ms var(--ease-out) calc(var(--o) * 110ms) backwards; }
  .board.is-in .is-rising .pod-who { animation: rise-in 280ms var(--ease-out) calc(var(--o) * 110ms + 80ms) backwards; }
  .board.is-in .is-rising .pod-step::before { animation: draw-x 160ms var(--ease-out) 420ms backwards; }
  .clip-play { transition: opacity var(--fast); }
  /* On check, the "Added" stamp pops in. The row the visitor pressed never moves. */
  .event:not(.event--pair):has(:checked) .event-top::after, .opt:has(:checked) .opt-name::after { animation: stamp 300ms var(--ease-snap); }
  .bump { animation: bump 280ms var(--ease-out); }
}
/* The reading rail follows scroll position in CSS where the browser supports it (snatch-world-open.js
   draws it elsewhere). It stays empty for reduced motion. */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .rail { animation: fill linear both; animation-timeline: scroll(root block); }
  }
}
/* The clip plays only when asked: a mouse hover (never with reduced motion, snatch-world-open.js) or a
   press. A pressed clip plays even with reduced motion, as a real video would. One 1.6 s loop:
   lockout, down past the front to the backswing (the hips bend and dip), then back up. */
.clip.is-playing .clip-arm { animation: snatch 1.6s var(--ease-in-out) infinite; }
.clip.is-playing .clip-upper { animation: hinge 1.6s var(--ease-in-out) infinite; }
.clip.is-playing .clip-time { animation: draw-x 6s linear infinite; transform: none; }
.clip.is-playing .clip-rec { animation: blink 1s steps(2, jump-none) infinite; }
@media (prefers-reduced-motion: reduce) {
  .clip:not(.is-pinned) * { animation: none !important; }
}
@keyframes snatch { 0%, 10%, 90%, 100% { transform: none; } 50% { transform: rotate(180deg); } }
@keyframes hinge { 0%, 20%, 80%, 100% { transform: none; } 50% { transform: translateY(1.5px) rotate(20deg); } }
@keyframes draw-y { from { transform: scaleY(0); } }
@keyframes draw-x { from { transform: scaleX(0); } }
@keyframes fill { to { transform: none; } }
@keyframes rise { from { transform: translateY(110%); } }
@keyframes rise-in { from { opacity: 0; transform: translateY(16px); } }
/* Starts below the hairline under the number, so it rises out of the line. */
@keyframes rise-fig { from { transform: translateY(calc(100% + 16px)); } }
@keyframes stamp { from { opacity: 0; transform: scale(0.6); } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: scale(0); } }
@keyframes crops-in { from { opacity: 0; transform: scale(1.03); } }
@keyframes ping { from { opacity: 0.9; transform: scale(1); } to { opacity: 0; transform: scale(4.5); } }
@keyframes blink { 50% { opacity: 0.2; } }
@keyframes bump { from { opacity: 0; transform: translateY(40%); } }
