/* The homepage's own parts (pk.css has the shared ones, draw.css the drawn pictures): what it is (with the start/sit
   card), the same pickup in two matchups, what's your next move (the week), free tools with no sign-in, questions, and
   the closing.

   One system (the clean-up of 18 Nov 2026), the same as pk.css's:
   - space: 4, 8, 12, 16, 24, 32, 48 and the section's --space; every section is the same: a hairline, --space above and
     below, its heading, then 24 px (40 on a computer) to what it holds;
   - type: 13 (a picture's labels), 15 (small print), 17 (reading), 20 (a card's or a step's title), the H2 and the H1;
   - one card (pk.css --r-box, a hairline, no shadow at rest) with one inner box (--r-inner, the second surface), and one
     picture frame (the stage, --r-pic).

   Motion: the first screen's card rises once; choosing a player changes it at once; the words never move. Each day's
   picture is a CSS animation. home-motion.js (GSAP and ScrollTrigger, loaded after the page has loaded) adds the
   scroll reveals and Dill's moment. With "reduce motion", none of
   it runs (pk.css stops every animation and transition) and every part shows in its final state. */

@media (min-width: 720px) { :root { --space: 72px; } }

/* Sections: a hairline that fades out at both ends, the same everywhere (the first screen's too) */
.sect, .closing { position: relative; border-top: 0; }
.sect::before, .closing::before { content: ''; position: absolute; top: 0; left: 50%; width: min(var(--wrap), calc(100% - 2 * var(--g))); height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, var(--line-strong) 18%, var(--line-strong) 82%, transparent); }
.h2 { font-size: clamp(30px, 4vw, 48px); letter-spacing: -.025em; }
.head { display: grid; gap: 8px; margin-bottom: 24px; }
@media (min-width: 720px) { .head { margin-bottom: 40px; } }
.quiet { font-size: 15px; color: var(--dim); }

/* 1. What it is. A phone: the H1 (its small first line, then the promise), the lede, the start/sit card, the two
   buttons and the quiet line, in that order. A computer: the words on the left, the card on the right. */
.home-hero { position: relative; padding: 16px 0 var(--space); overflow-x: clip; }
.home-hero .wrap { display: grid; justify-items: start; }
.home-hero h1 .kick { display: block; margin-bottom: 8px; font: 650 14px/1.3 var(--font-body); letter-spacing: 0; color: var(--accent); font-variation-settings: normal; }
.home-hero h1 .big { display: block; font-size: clamp(36px, 4.6vw, 62px); line-height: 1.02; letter-spacing: -.035em; }
.home-hero .lede { max-width: 34ch; margin-top: 12px; }
.home-hero .scene { margin-top: 16px; }
.home-hero .cta { display: grid; gap: 8px; margin-top: 16px; width: 100%; }
.home-hero .quiet { margin-top: 12px; max-width: 44ch; text-wrap: pretty; }
/* The second action: the same size, outlined, not lime. */
.btn.alt { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn.alt:hover { background: var(--surface-2); color: var(--text); }
.btn.alt:active { transform: none; box-shadow: inset 0 0 0 1.5px var(--text); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .btn.alt { box-shadow: inset 0 0 0 1.5px var(--line-strong); } }
:root[data-theme='dark'] .btn.alt { box-shadow: inset 0 0 0 1.5px var(--line-strong); }
@media (min-width: 520px) {
  .home-hero .cta { display: flex; flex-wrap: wrap; gap: 12px; width: auto; }
}
@media (min-width: 900px) {
  .home-hero { padding-top: 48px; }
  .home-hero .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: 1fr repeat(4, auto) 1fr; column-gap: 64px; align-items: center; }
  .home-hero .wrap > * { grid-column: 1; }
  .home-hero h1 { grid-row: 2; }
  .home-hero h1 .kick { margin-bottom: 16px; font-size: 17px; }
  .home-hero .lede { grid-row: 3; margin-top: 24px; }
  .home-hero .cta { grid-row: 4; margin-top: 32px; }
  .home-hero .quiet { grid-row: 5; margin-top: 16px; }
  .home-hero .scene { grid-column: 2; grid-row: 1 / -1; margin-top: 0; }
}

/* The start/sit card ("Your moves"): one decision, a real radio group. Each choice is a whole 56 px row (the radio
   itself sits under it, so the keyboard, a tap and a click all work); the chosen one is outlined in ink with a filled
   dot, Pikola's pick carries its sticker either way. CSS shows the chosen choice's chance and reason (:has), so it
   works without the script; home.js says it aloud. The pickups below are plain rows: they change nothing. */
.scene { position: relative; width: 100%; max-width: 480px; justify-self: center; isolation: isolate; }
.scene::before { content: ''; position: absolute; z-index: -1; inset: -6% -12% -4%; background: radial-gradient(closest-side, var(--wash), transparent); }
.mv-card { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-pic); background: var(--card-bg); box-shadow: var(--shadow-lift); }
.mv-top { font: 700 15px/1.2 var(--font-body); }
.ss { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.ss legend { float: left; grid-column: 1 / -1; margin-bottom: 8px; padding: 0; font-size: 13px; font-weight: 650; color: var(--dim); }
.ss legend + * { clear: both; }
.ss-opt { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: 'face who' 'pick pick'; align-items: center; gap: 4px 8px; min-height: 56px; padding: 8px 10px 8px 34px; border-radius: var(--r-inner); background: var(--surface-2); box-shadow: inset 0 0 0 1.5px transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: box-shadow var(--motion-fast), background var(--motion-fast); }
.ss-opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.ss-opt::before { content: ''; position: absolute; left: 10px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line-strong); background: var(--card-bg); }
.ss-opt:has(input:checked) { background: var(--card-bg); box-shadow: inset 0 0 0 2px var(--text); }
.ss-opt:has(input:checked)::before { box-shadow: inset 0 0 0 2px var(--text), inset 0 0 0 5px var(--card-bg); background: var(--text); }
.ss-opt:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.ss-opt:hover { box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.ss-opt:has(input:checked):hover { box-shadow: inset 0 0 0 2px var(--text); }
.ss-opt .pf { grid-area: face; --s: 30px; }
.ss-opt .who { grid-area: who; display: grid; min-width: 0; line-height: 1.2; }
.ss-opt .who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; font-weight: 700; }
.ss-opt .who small { font-size: 13px; color: var(--dim); white-space: nowrap; }
.ss-opt .stk { grid-area: pick; justify-self: start; }
.ss-res { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 12px; row-gap: 4px; }
.ss-res .mv-why { flex-basis: 100%; }
.mv-card:has(input[value='bench']:checked) .ss-res[data-for='start'], .mv-card:not(:has(input[value='bench']:checked)) .ss-res[data-for='bench'] { display: none; }
.mv-pct { display: flex; align-items: baseline; gap: 8px; font: 800 44px/1 var(--font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.mv-pct .was { font-size: 26px; color: var(--dim); }
.mv-pct .arr { font-size: 24px; color: var(--dim); }
.mv-pct b { color: var(--text); }
.mv-cap { font-size: 15px; line-height: 1.3; color: var(--dim); }
.mv-why { margin-top: 4px; font-size: 15px; line-height: 1.4; text-wrap: pretty; }
.mv-adds { display: grid; gap: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.mv-adds .k { font-size: 13px; font-weight: 650; color: var(--dim); }
.mv-list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.mv-list li { display: grid; grid-template-columns: 46px auto minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 36px; padding: 2px 4px; }
.mv-list .stk { justify-content: center; }
.mv-list .pf { --s: 26px; }
.mv-list b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 650; }
.mv-list .up { font: 800 18px/1 var(--font-display); color: var(--go-text); font-variant-numeric: tabular-nums; }
.mv-all { font-size: 14px; color: var(--dim); }
.mv-all b { color: var(--text); font-weight: 700; }
@media (max-width: 519px) {
  .home-hero .lede { max-width: none; }
  .scene::before { display: none; }
  .mv-card { gap: 8px; padding: 12px; }
  .ss legend { margin-bottom: 6px; }
  .ss-opt { padding: 8px 8px 8px 30px; column-gap: 6px; }
  .ss-opt::before { left: 8px; }
  .ss-opt .pf { --s: 26px; }
  .ss-opt .who small { white-space: normal; }
  /* Pikola's pick sits on its choice's top corner, so both choices are one row tall. */
  .ss { margin-top: 6px; }
  .ss-opt { grid-template-areas: 'face who'; }
  .ss-opt .stk { position: absolute; top: -9px; right: 8px; padding: 3px 6px 2px; font-size: 11px; }
  .mv-pct { font-size: 40px; }
  .mv-pct .was { font-size: 24px; }
  .mv-why { margin-top: 0; }
  .ss legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .mv-adds { gap: 2px; padding-top: 8px; }
  /* A phone: the two pickups side by side, under their heading (the Add sticker is the heading's word). */
  .mv-list { grid-template-columns: 1fr 1fr; gap: 0 12px; }
  .mv-list li { grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px; min-height: 32px; padding: 2px 0; }
  .mv-list .stk { display: none; }
  .mv-all { font-size: 13px; }
}
/* A small phone (360 px): the moves card drops its one-line reason so the button stays on the first screen whatever the day's
   names wrap to (it sat 2 px under the fold on the build machine, 20 Nov 2026); the figures say the same. */
@media (max-width: 379px) { .home-hero .lede { font-size: 17px; } .home-hero .mv-why { display: none; } }
@media (min-width: 520px) {
  .mv-card { gap: 16px; padding: 20px; }
  .mv-pct { font-size: 56px; }
  .mv-pct .was { font-size: 30px; }
}

/* 2. The same pickup in two matchups: one tip, two managers, and the visitor tries it. The player and his game once,
   with an Add button (a real checkbox under the whole button: a tap, a click and the space bar work), on a tab that
   forks to the two leagues; each league a sibling card with its own edge and badge (yours green, a friend's blue), its
   matchup, its question, then its picture: the steals race against the 50% line, and that night's lineup, a chip in
   the league's colour for each filled spot (no one named: he is the only player here), its position under it. Added (:has, no script): he drops into your open spot, your bar
   grows past the line and turns green, and your question becomes "Pick him up."; in a friend's full lineup he lands on
   the bench, the bar stays put, and the question becomes "Hold.". A phone: stacked; from 720 px: side by side. */
.tip { position: relative; display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: var(--r-inner); background: var(--surface-2); }
.mu-who { display: flex; flex: 1; align-items: center; gap: 12px; min-width: 0; }
.mu-who .pf { --s: 44px; flex: none; }
.mu-who > span:last-child { display: grid; min-width: 0; line-height: 1.3; }
.mu-who .k { font: 800 12px/1.2 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.mu-who b { font-size: 16px; font-weight: 700; }
.mu-who small { font-size: 13px; color: var(--dim); }
/* Add: the app's add button, green; added, it keeps its place, outlined, with a tick. */
.mu-try { position: relative; display: inline-flex; flex: none; align-items: center; gap: 6px; min-height: 48px; padding: 0 16px 0 12px; border-radius: 24px; background: var(--go); color: var(--go-ink); font: 700 16px/1 var(--font-body); white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background var(--motion-fast), color var(--motion-fast), box-shadow var(--motion-fast); }
.mu-try::before { content: '+'; width: 18px; font: 800 22px/1 var(--font-body); text-align: center; }
.mu-try input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.mu-try:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.mu-try:hover { box-shadow: inset 0 0 0 99px rgba(255, 255, 255, .12); }
.mu-try .wide { display: none; }
/* Add or Added, one shown: no space kept for the longer word (owner 22 Nov: "weird gap"). */
.mu-try .say { display: inline; }
#pickup:has(#mu-add:checked) .mu-try .b4, #pickup:not(:has(#mu-add:checked)) .mu-try .af { display: none; }
#pickup:has(#mu-add:checked) .mu-try { background: var(--card-bg); color: var(--go-text); box-shadow: inset 0 0 0 2px var(--go); }
#pickup:has(#mu-add:checked) .mu-try::before { content: '✓'; font-size: 17px; }
/* Before and after: each part's two states, one shown. */
#pickup:has(#mu-add:checked) .b4, #pickup:not(:has(#mu-add:checked)) .af { display: none; }
.two { position: relative; display: grid; gap: 12px; margin-top: 12px; }
.mu { position: relative; display: grid; grid-template-rows: auto 1fr; gap: 12px; padding: 16px; border: 1px solid var(--line); border-top: 4px solid var(--edge); border-radius: var(--r-box); background: var(--surface); --edge: var(--you); }
.mu.friend { --edge: var(--other-b); }
.mu-vs { display: grid; justify-items: start; gap: 8px; font: 700 16px/1.25 var(--font-body); }
.mu.friend .mu-vs .stk { background: var(--other-b); color: var(--other-b-ink); }
.mu-vs .vs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; font-weight: 500; color: var(--dim); }
.mu-vs .team { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text); }
.mu-vs .tp { width: 30px; height: 30px; }
.mu-pic { display: grid; gap: 12px; padding: 12px; border-radius: var(--r-inner); background: var(--surface-2); }
.mu-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 6px 8px; margin: 0; }
.mu-k { font-size: 14px; font-weight: 650; color: var(--dim); }
.mu-row b { font: 800 18px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.mu-row b small { margin-left: 2px; font-size: 14px; color: var(--go-text); }
.mu.friend .mu-row b small { color: var(--dim); }
.mu-row > .mu-say:nth-child(2) { grid-column: 2 / 4; justify-self: end; }
.mu-say { padding: 3px 7px 2px; border-radius: var(--r-sticker); font: 800 12px/1.2 var(--font-display); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.mu-say.close { background: var(--careful-tint); color: var(--careful-text); }
.mu-say.open { background: var(--go-tint); color: var(--go-text); }
.mu-say.safe, .mu-say.full { box-shadow: inset 0 0 0 1.5px var(--line-strong); color: var(--dim); }
.mu-bn { display: inline-flex; align-items: center; gap: 6px; }
.mu-bn .pf { --s: 18px; margin: -4px 0; }
/* The steals race: the bar to the chance, a tick at 50%; added, yours grows to the new chance, past the tick. */
.mu-bar { position: relative; grid-column: 1 / -1; height: 10px; border-radius: 5px; background: var(--track); }
.mu-bar::before { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--p); border-radius: 5px; background: var(--careful); transition: width .7s cubic-bezier(.2, .8, .2, 1) .15s, background .3s .5s; }
.mu-bar.safe::before { background: var(--line-strong); }
.mu-bar::after { content: ''; position: absolute; left: 50%; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--text); }
#pickup:has(#mu-add:checked) .mu-bar::before { width: var(--q); }
#pickup:has(#mu-add:checked) .mu.you .mu-bar::before { background: var(--go); }
/* The lineup on his night: ten spots, each filled one a chip in the league's colour (its card's edge) with a tick, the
   position under it (from data-pos: drawn, never read). */
.mu-spots { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; margin: 0; padding: 0; list-style: none; }
.mu-spots li { position: relative; display: grid; justify-items: center; align-content: start; gap: 3px; }
.mu-spots li::after { content: attr(data-pos); font: 700 9px/1 var(--font-body); letter-spacing: .02em; color: var(--dim); }
.mu-spots .pf, .mu-spots li::before { --s: 26px; box-sizing: border-box; width: 100%; max-width: 34px; height: auto; aspect-ratio: 1; border-radius: 50%; }
.mu-spots li:not(.open)::before { content: '✓'; display: grid; place-items: center; background: color-mix(in srgb, var(--edge) 20%, transparent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--edge) 50%, transparent); color: color-mix(in srgb, var(--edge) 65%, var(--text)); font: 800 12px/1 var(--font-body); }
/* The open spot: a dashed ring with a plus, inviting; he drops into it when added, and the ring goes. */
.mu-spots li.open::before { content: '+'; position: absolute; top: 0; display: grid; place-items: center; box-sizing: border-box; border: 2px dashed var(--go); background: var(--go-tint); color: var(--go-text); font: 800 16px/1 var(--font-body); animation: mu-invite 1.8s ease-in-out infinite; transition: transform .2s; }
.mu-spots li.open:empty::before { position: static; }
@keyframes mu-invite { 50% { box-shadow: 0 0 0 4px var(--go-tint); } }
.mu-in { visibility: hidden; transform: translateY(-36px) scale(.4); transition: transform .5s cubic-bezier(.34, 1.56, .64, 1), visibility 0s .5s; }
#pickup:has(#mu-add:checked) .mu-in { visibility: visible; transform: none; transition: transform .5s cubic-bezier(.34, 1.56, .64, 1), visibility 0s; }
#pickup:has(#mu-add:checked) .mu-spots li.open::before { transform: scale(0); animation: none; }
/* The question first, level with the league's badge; added, the verdict lands. */
.mu-v { position: absolute; top: 12px; right: 12px; padding: 5px 12px 4px; border-radius: var(--r-inner); font: 800 20px/1.2 var(--font-display); }
#pickup:not(:has(#mu-add:checked)) .mu-v { outline: 1.5px dashed var(--line-strong); outline-offset: -1.5px; color: var(--dim); }
#pickup:has(#mu-add:checked) .mu-v { animation: mu-stamp .45s cubic-bezier(.34, 1.56, .64, 1) .35s backwards; }
@keyframes mu-stamp { from { transform: scale(.6) rotate(-4deg); } }
#pickup:has(#mu-add:checked) .mu-v.go { background: var(--go-tint); color: var(--go-text); }
#pickup:has(#mu-add:checked) .mu-v.hold { box-shadow: inset 0 0 0 1.5px var(--line-strong); color: var(--text); }
@media (min-width: 720px) {
  /* The tip sits centred over the two cards, and a bracket forks from it to each. */
  .tip { width: fit-content; margin: 0 auto 14px; padding: 8px 8px 8px 8px; }
  .mu-try .wide { display: inline; }
  .two { grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 0; padding-top: 32px; }
  .two::before { content: ''; position: absolute; top: 0; left: 25%; right: 25%; height: 24px; border: 2px solid var(--line-strong); border-bottom: 0; border-radius: 12px 12px 0 0; }
  .two::after { content: ''; position: absolute; top: -14px; left: 50%; width: 2px; height: 14px; margin-left: -1px; background: var(--line-strong); }
  .mu { padding: 18px 20px; gap: 12px; }
  .mu-v { top: 14px; right: 20px; }
  .mu-pic { padding: 14px 16px; gap: 14px; }
  .mu-spots { gap: 8px; }
  .mu-spots li::after { font-size: 11px; }
  .mu-spots li::before { font-size: 15px; }
  .mu-spots li.open::before { font-size: 20px; }
}
@media (max-width: 519px) {
  .mu-who .pf { --s: 36px; }
  .mu-v { font-size: 18px; }
  .mu { gap: 10px; }
  .mu-vs { gap: 6px; font-size: 15px; }
  .mu-vs .vs { column-gap: 6px; }
  .mu-vs .team { gap: 6px; }
  .mu-vs .tp { width: 24px; height: 24px; }
  .mu-who { gap: 10px; }
  .mu-try { padding: 0 14px 0 10px; font-size: 15px; }
  /* A phone: the lineups' room comes from the cards' padding, so the section is no taller. */
  .mu { gap: 8px; padding: 14px; }
  .mu-pic { gap: 8px; padding: 10px; }
  .mu-row { row-gap: 5px; }
  .mu-spots { gap: 3px; }
  .mu-spots li { gap: 2px; }
}

/* 3. The questions you ask every week. A computer: seven tabs down the left, the day's picture beside them. A phone:
   the day row on top, then a rail of cards, one a screen with the next one peeking in; a day scrolls to its card. */
.week { display: grid; gap: 16px; }
.days-wrap { position: relative; }
.days { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.days [role='tab'] { display: grid; place-items: center; min-height: 48px; padding: 0 2px; border: 1px solid var(--line); border-radius: var(--r-inner); background: var(--surface); color: var(--dim); font: inherit; cursor: pointer; transition: color var(--motion-fast), border-color var(--motion-fast); }
.days abbr { font: 800 16px/1 var(--font-display); letter-spacing: .06em; text-transform: uppercase; }
.days .q { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.days [role='tab']:hover { color: var(--text); }
.days [role='tab'][aria-selected='true'] { border-color: var(--text); color: var(--text); box-shadow: inset 0 -3px 0 var(--accent); }
/* With the script, the selected day's box glides from day to day behind the tabs */
.glide { display: none; }
.js .glide { display: block; position: absolute; z-index: 0; left: 0; top: 0; border-radius: var(--r-inner); background: var(--surface); border: 1px solid var(--text); box-shadow: var(--shadow-float); pointer-events: none; transition: transform .45s var(--ease-out), width .45s var(--ease-out), height .45s var(--ease-out); }
.js .glide::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--accent); }
.js .days [role='tab'][aria-selected='true'] { border-color: transparent; background: transparent; box-shadow: none; }

.panels { position: relative; display: grid; }
.panel { grid-area: 1 / 1; display: grid; gap: 12px; justify-items: start; align-content: start; }
.panel[hidden] { display: none; }
.panel:focus-visible { outline-offset: 6px; }
.pq { font: 700 20px/1.25 var(--font-body); letter-spacing: -.01em; text-wrap: balance; }
.pday { display: block; margin-bottom: 4px; font: 800 13px/1.2 var(--font-display); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.panel .cap { color: var(--dim); font-size: 17px; max-width: 34ch; text-wrap: pretty; }
/* The rail (home.js sets .rail on a phone, and shows every card). Each card's parts sit on the rail's four rows (a
   subgrid), so every card's question, picture, caption and link line up whatever the words. */
.panels.rail { grid-auto-flow: column; grid-auto-columns: 86%; grid-template-rows: repeat(4, auto); gap: 12px; margin: 0 calc(-1 * var(--g)); padding: 2px var(--g) 8px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding: 0 var(--g); scrollbar-width: none; }
.panels.rail::-webkit-scrollbar { display: none; }
.rail .panel { grid-area: auto; grid-row: 1 / span 4; grid-template-rows: subgrid; gap: 12px; scroll-snap-align: start; align-items: start; }
.rail .panel .pq { align-self: end; }
.rail .panel .stage { height: auto; min-height: 0; padding: 24px 0; align-self: stretch; }

/* Each day's picture is an app screen of the sample league (packages/ui/src/showcase's look): Dill With It against a
   team that changes each week, real players with their faces and team chips, stickers for the week's story. */
.panel .vis { position: relative; }
.panel .v-head { align-items: center; }
.vis .who { min-width: 0; }
.vis .who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vis .who small { display: flex; align-items: center; gap: 6px; }
/* A row's sticker sits on its top corner, so the name has the row's whole width; a long name takes a second line */
.cands .who b { white-space: normal; text-wrap: balance; line-height: 1.25; }
.vis .corner { position: relative; }
.vis .corner > .stk { position: absolute; top: -8px; right: 8px; z-index: 1; box-shadow: 0 0 0 2px var(--card-bg); }
.vis .corner > .stk.plain { background: var(--card-bg); box-shadow: inset 0 0 0 1.5px var(--line-strong), 0 0 0 2px var(--card-bg); }
.v-pick .v-head { margin-bottom: 4px; }
/* Mon: the ink scoreboard (brand §5), the two teams, three of each side's players, each stat's chance, then the moves */
.v-match { gap: 0; padding: 0 !important; overflow: hidden; }
.sb { display: grid; gap: 8px; padding: 12px 16px; background: var(--board); color: var(--on-board); border-bottom: 3px solid var(--board-you); }
.sb .v-head { color: var(--on-board-dim); }
.sb-sides { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 8px; }
.sb-side { display: grid; justify-items: start; gap: 4px; min-width: 0; }
.sb-side.them { justify-items: end; text-align: right; }
.sb-side .tp { width: 36px; height: 36px; }
.sb-side b { font: 800 16px/1.05 var(--font-display); letter-spacing: .03em; text-transform: uppercase; }
.sb-side small { font-size: 12px; color: var(--on-board-dim); }
.sb-v { align-self: center; font: 800 14px/1 var(--font-display); color: var(--on-board-faint); text-transform: uppercase; }
.sb-rosters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 8px; border-top: 1px dotted var(--board-line); }
.sb-rosters ul { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; min-width: 0; }
.sb-rosters li { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 13px; font-weight: 600; }
.sb-rosters li > span:not(.pf) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-rosters .them li { justify-content: flex-end; }
.sb-rosters .pf { --s: 24px; }
.v-match .clist { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(5, auto); grid-auto-flow: column; column-gap: 16px; row-gap: 4px; padding: 12px 16px 8px; }
.v-match .clist li { grid-template-columns: 30px 1fr 30px; gap: 6px; }
.v-match .clist b { font-size: 14px; }
.moves { display: grid; gap: 6px; margin: 0; padding: 4px 16px 16px; list-style: none; }
.moves li { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 6px 8px; border-radius: var(--r-inner); background: var(--surface-2); font-size: 14px; }
.moves b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; }
.moves .up { margin-left: auto; font: 800 18px/1 var(--font-display); color: var(--go-text); font-variant-numeric: tabular-nums; }
/* Tue: the pickup check, three players whose teams play the most this week */
.cands { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.cands li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; padding: 8px; border-radius: var(--r-inner); }
.cands li.top { background: var(--surface-2); box-shadow: inset 3px 0 0 var(--accent); }
.cands .pf { --s: 36px; }
.cands b { font-size: 15px; font-weight: 650; }
.cands small { font-size: 13px; color: var(--dim); }
.v-pick .proj { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-size: 13px; color: var(--dim); }
.v-pick .proj b { color: var(--text); font-weight: 650; font-variant-numeric: tabular-nums; }
/* Wed: the Trade Machine, with a team of the league. The two sides are one height whatever the names: the name has
   room for two lines, centred, and the ⇄ sits in the middle. */
.partner { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--dim); }
.partner .tp { width: 32px; height: 32px; }
.partner b { color: var(--text); font-weight: 650; }
.v-trade .sides { align-items: stretch; }
.v-trade .swap { align-self: center; }
.v-trade .sides p { grid-template-rows: auto auto 1fr auto; justify-items: center; align-items: center; text-align: center; gap: 4px; padding: 12px 8px; min-width: 0; }
.v-trade .sides .pf { --s: 48px; }
.v-trade .sides b { min-height: 2.4em; align-content: center; font-size: 14px; line-height: 1.2; text-wrap: balance; overflow-wrap: anywhere; hyphens: auto; }
.v-trade .verdict p { text-wrap: balance; }
.v-trade .verdict b { --fs: 24px; font-size: 24px; white-space: nowrap; }
.v-trade .v-note { text-wrap: balance; }
/* Thu: tonight's top 10 by Pikola's projected fantasy points, real, loaded by home.js from /projections/daily.json: the rank (the list's own
   number), the face, the name, the team chip and minutes, the fantasy points. Before it comes, the same rows as a
   skeleton, fading out. */
.v-tonight { gap: 8px; }
/* Room for two rows to take a second line (a status), so the list never grows when it fills in */
.tn-list { display: grid; align-content: start; gap: 2px; min-height: calc(10 * 32px + 9 * 2px + 28px); margin: 0; padding: 0; list-style: none; counter-reset: tn; }
.tn-list li { display: grid; grid-template-columns: 1.4em 26px minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 32px; counter-increment: tn; }
.tn-list li::before { content: counter(tn); font: 800 14px/1 var(--font-display); color: var(--dim); text-align: right; }
.tn-list .pf { --s: 26px; }
.tn-list .who { display: grid; min-width: 0; }
.tn-list .who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 650; line-height: 1.15; }
.tn-list .who small { flex-wrap: wrap; gap: 0 6px; font-size: 12px; line-height: 1.2; color: var(--dim); }
.tn-list .tc { font-size: 10.5px; padding: 1px 3px 0; }
.tn-list .fp { font: 800 17px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.tn-list.sk { -webkit-mask-image: linear-gradient(#000 45%, transparent); mask-image: linear-gradient(#000 45%, transparent); }
.tn-list.sk i { display: block; height: 10px; border-radius: 5px; background: var(--line-strong); }
.tn-list.sk i:first-child { width: 26px; height: 26px; border-radius: 50%; }
.tn-list.sk i:nth-child(2) { width: 70%; }
.tn-list.sk i:last-child { width: 2.4em; }
.tn-at { font-size: 12px; color: var(--dim); }
/* A computer: the picture has its fixed frame, so the list needs no room held for a second line */
@media (min-width: 820px) { .tn-list { min-height: 0; } }
/* Fri: a lock screen, an alert from real news (his face and his fill's), or nobody named when no one fits (pages/alert.ts,
   pages/players.ts). His face greys (he's out), the arrow, then his fill's: all in place, nothing turns or leaves the card. */
.v-lock { position: relative; overflow: hidden; }
.v-lock::after { content: ''; position: absolute; inset: auto -20% -40% -20%; height: 70%; background: radial-gradient(closest-side, rgba(158, 211, 42, .28), transparent); pointer-events: none; }
.v-lock .notch { justify-self: center; width: 84px; height: 22px; margin: -14px 0 6px; border-radius: 12px; background: #000; }
.v-lock .ntf { position: relative; z-index: 1; backdrop-filter: blur(8px); box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .6); }
.v-lock .ntf p:not(.meta) { text-wrap: pretty; }
.v-lock .fx { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.v-lock .fx .pf { --s: 32px; }
.v-lock .fx .pf:first-child { filter: grayscale(1) brightness(.7); }
.v-lock .fx .arr { color: var(--pk-ink-200); }
/* Sat: where you place in each stat against the league, and the one to chase (the League Analyser's places, the app's Need) */
.places { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0; padding: 0; list-style: none; }
.places li { display: flex; align-items: baseline; justify-content: space-between; gap: 4px; padding: 8px 10px; border-radius: var(--r-inner); background: var(--surface-2); color: var(--dim); }
.places span { font: 700 13px/1 var(--font-display); letter-spacing: .04em; }
.places b { font: 800 18px/1 var(--font-display); color: var(--text); font-variant-numeric: tabular-nums; }
.places .y { background: var(--go-tint); color: var(--go-text); }
.places .y b { color: var(--go-text); }
.places .l { background: var(--stop-tint); color: var(--stop-text); box-shadow: inset 0 0 0 2px var(--stop); }
.places .l b { color: var(--stop-text); }
.chase { display: flex; align-items: center; gap: 12px; padding-top: 4px; font-size: 15px; }
.chase b { font-weight: 650; }
/* Sun: the final, the pun, a handful of pickles on the win, and next week's chance to plan for */
.fin { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; width: 100%; }
.fin .tp { justify-self: center; width: 54px; height: 54px; }
.v-final .fin .score { --fs: 72px; }
.v-final .fin .score > span:last-child { font-size: 72px; }
.v-final .fin .score .dash { font-size: 44px; margin: 0 8px; }
.fin-names { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; margin-top: -6px; font: 800 13px/1.15 var(--font-display); letter-spacing: .04em; text-transform: uppercase; color: var(--dim); }
.fin-names b:first-child { text-align: left; color: var(--text); }
.fin-names b:last-child { text-align: right; }
.v-final .won { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; }
.pun { font: 600 14px/1.2 var(--font-body); color: var(--go-text); }
.stars { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; width: 100%; text-align: left; }
.stars .k { grid-column: 1 / -1; font: 700 12px/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.stars p:not(.k) { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 8px; align-items: center; padding: 6px 8px; border-radius: var(--r-inner); background: var(--surface-2); font-size: 12px; line-height: 1.25; color: var(--dim); min-width: 0; }
.stars .pf { --s: 28px; grid-row: span 2; }
.stars b { color: var(--text); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stars p > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v-final .v-note { width: 100%; padding: 8px; border-radius: var(--r-inner); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); font-weight: 600; text-wrap: balance; }
@media (max-width: 519px) { .stars { grid-template-columns: 1fr; } }
.v-note [data-p] { white-space: nowrap; }
.confetti { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.confetti i { position: absolute; left: -5px; top: -9px; width: 10px; height: 18px; border-radius: 6px; background: var(--pk-pickle-500); box-shadow: inset 0 0 0 1.5px var(--pk-pickle-800); visibility: hidden; }
.confetti i:nth-child(3n) { width: 7px; height: 7px; border-radius: 50%; background: var(--acid); box-shadow: none; }
.confetti i:nth-child(4n) { width: 6px; height: 6px; border-radius: 50%; background: var(--coral); box-shadow: none; }
.confetti i:nth-child(1) { --x: -120px; --y: -70px; --r: -40deg; }
.confetti i:nth-child(2) { --x: 110px; --y: -84px; --r: 50deg; }
.confetti i:nth-child(3) { --x: -60px; --y: -110px; --r: 0deg; }
.confetti i:nth-child(4) { --x: 70px; --y: -120px; --r: 0deg; }
.confetti i:nth-child(5) { --x: -150px; --y: -20px; --r: 80deg; }
.confetti i:nth-child(6) { --x: 150px; --y: -30px; --r: -70deg; }
.confetti i:nth-child(7) { --x: -20px; --y: -130px; --r: 120deg; }
.confetti i:nth-child(8) { --x: 30px; --y: -90px; --r: 0deg; }
.confetti i:nth-child(9) { --x: -100px; --y: -120px; --r: 0deg; }
.confetti i:nth-child(10) { --x: 125px; --y: -125px; --r: -110deg; }
.confetti i:nth-child(11) { --x: -135px; --y: -95px; --r: 160deg; }
.confetti i:nth-child(12) { --x: 95px; --y: -40px; --r: 0deg; }

@media (min-width: 820px) {
  .week { grid-template-columns: minmax(0, 1fr) 440px; gap: 64px; align-items: start; }
  .days { grid-template-columns: 1fr; gap: 4px; align-content: start; }
  .days [role='tab'] { grid-template-columns: 64px 1fr; justify-items: start; min-height: 60px; padding: 0 20px; text-align: left; border-color: transparent; background: transparent; }
  .days .q { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; font: 600 18px/1.3 var(--font-body); color: inherit; }
  .days [role='tab'][aria-selected='true'] { box-shadow: inset 4px 0 0 var(--accent); }
  .js .glide::after { left: 0; right: auto; top: 12px; bottom: 12px; width: 4px; height: auto; border-radius: 0 3px 3px 0; }
  .pq { display: none; }
  .panel .stage { height: 460px; }
}

/* 5. Questions: on a computer, the heading on the left and the questions on the right; the sign turns as it opens */
@media (min-width: 900px) {
  #faq .wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: 64px; align-items: start; }
  #faq .head { margin: 0; }
}
#faq summary::after { transition: transform .35s var(--ease-out); }
#faq details[open] summary::after { transform: rotate(180deg); }
#faq summary:hover { color: var(--accent); }

/* 6. Closing: the line, the one button and the phone's way in */
.closing { padding: var(--space) 0; text-align: center; background: radial-gradient(60% 70% at 50% 100%, var(--wash), transparent 70%); }
.closing .wrap { display: grid; gap: 16px; justify-items: center; }
.closing .dill { width: 80px; height: 80px; }
@media (min-width: 720px) { .closing .wrap { gap: 24px; } .closing .dill { width: 96px; height: 96px; } }
.closing h2 { max-width: 20ch; }
@media (max-width: 519px) { .closing .dill { width: 64px; height: 64px; } }

/* 4. Free tools (owner, 22 Nov 2026: one set of cards, one style): a card a tool, the same parts in the same order: its
   character on a wash of the tool's colour (the app's tool cards' tones), its name, what it's for, and a small preview in
   a soft inset that fills the rest of the card, so a row's cards are one height and their insets end level. Each card is
   one link (its heading's, over the whole card) and lifts on hover; a preview's foot link (its free page) sits above it.
   The pickles move at rest (their own SVGs' idle loops); the previews stay still.
   A computer: three by two. A phone: a rail. */
.tools-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.tl { --c: var(--pk-pickle-300); --c2: color-mix(in srgb, var(--c) 34%, var(--surface)); position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 20px 20px; border: 1px solid var(--line); border-radius: var(--r-card); background: linear-gradient(180deg, var(--c2), var(--surface) 46%); text-align: center; transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s var(--ease-out); }
@media (min-width: 900px) {
  .tools-grid { row-gap: 24px; }
  .tl { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 6px; justify-items: center; align-content: start; }
  .tl-peek { align-self: stretch; justify-self: stretch; }
  .tl .c-q { align-self: start; }
}
.tl.t-coral { --c: var(--pk-coral-300); }
.tl.t-sky { --c: var(--pk-chalk-300); }
.tl.t-amber { --c: var(--pk-amber-300); }
.tl:hover { transform: translateY(-4px); box-shadow: var(--shadow-float); border-color: var(--line-strong); }
.tl:has(h3 a:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.tl h3 { font: 800 21px/1.15 var(--font-display); letter-spacing: .01em; }
.tl h3 a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); text-decoration: none; }
.tl h3 a::after { content: ''; position: absolute; inset: 0; border-radius: var(--r-card); }
.tl h3 a:focus-visible { outline: none; }
.tl .c-q { margin-top: -6px; font-size: 15px; line-height: 1.4; color: var(--dim); text-wrap: balance; }
.c-art { display: grid; place-items: center; width: 116px; height: 116px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 55%, var(--surface)), transparent); }
.c-art img { width: 104px; height: 104px; transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.c-art.duo { grid-template-columns: 1fr 1fr; width: 150px; }
.c-art.duo img { width: 80px; height: 80px; margin: 0 -6px; }
.c-art.duo img:first-child { width: 94px; height: 94px; }
.tl:hover .c-art img, .tl:has(h3 a:focus-visible) .c-art img { transform: translateY(-6px) scale(1.04); }
.tl:hover .c-art img + img { transition-delay: .06s; }
/* The preview: one soft inset, its rows left-aligned, filling the card to its foot */
.tl-peek { flex: 1; align-self: stretch; display: grid; gap: 10px; align-content: start; margin-top: 10px; padding: 16px; border-radius: var(--r-inner); background: var(--surface-2); text-align: left; }
.tl-peek .k { font-size: 14px; line-height: 1.35; color: var(--dim); text-wrap: balance; }
.tl-peek .pf { --s: 36px; }
.tl-peek .more { position: relative; z-index: 1; display: inline-flex; align-items: center; min-height: 44px; margin: -6px 0 -12px; justify-self: start; font-weight: 650; color: var(--accent); text-decoration: none; }
.tl-peek .more:hover { text-decoration: underline; }
.tl-peek .big { display: flex; align-items: baseline; gap: 10px; font: 650 17px/1.3 var(--font-body); }
.tl-peek .big .n { font: 800 40px/.9 var(--font-display); font-variant-numeric: tabular-nums; }
.tl-peek .big i { font-style: normal; font-size: 22px; color: var(--dim); }
.tl-peek .big .up { color: var(--accent); }
/* Matchup Planner: the first screen's moves, each with what it adds */
.tl-moves { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tl-moves li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.tl-moves b { font-weight: 650; }
.tl-moves .n { font: 800 16px/1 var(--font-display); color: var(--accent); font-variant-numeric: tabular-nums; }
/* Projections: the free rest of season page's top three, in Pikola rank, drawn as "#1" (no second number beside it, so the
   list never reads as unsorted) */
.tops { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; counter-reset: rank; }
.tops li { display: grid; grid-template-columns: 2em auto minmax(0, 1fr); align-items: center; gap: 10px; counter-increment: rank; }
.tops li::before { content: '#' counter(rank); font: 800 16px/1 var(--font-display); color: var(--dim); }
.tops b, .tl-form b { min-width: 0; font-weight: 650; line-height: 1.25; text-wrap: balance; overflow-wrap: break-word; }
/* Hot or Not: one up, one down; the move is the ranks, projected then the last 14 days */
.tl-form { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tl-form li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.tl-form .tl-mv { font: 800 15px/1 var(--font-display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tl-form .tl-mv i { display: inline-block; font-style: normal; color: var(--dim); }
.tl-form .up .tl-mv i { transform: rotate(-35deg); }
.tl-form .down .tl-mv i { transform: rotate(35deg); }
.tl-form .tl-mv span { display: inline-block; }
.tl-form .up .tl-mv span:last-child { color: var(--accent); }
.tl-form .down .tl-mv span:last-child { color: color-mix(in srgb, var(--them) 68%, var(--text)); }
/* Trade Machine: the two faces, the example and the analyzer's verdict */
.tl .pair { display: flex; align-items: center; gap: 8px; }
.tl .pair .swap { font-size: 18px; color: var(--dim); }
.tl-segs { display: flex; gap: 4px; margin: 2px 0 0; padding: 0; list-style: none; }
.tl-segs li { flex: 1; height: 8px; border-radius: 4px; background: var(--line); transform-origin: left center; }
.tl-segs .win { background: var(--accent); }
.tl-segs .loss { background: color-mix(in srgb, var(--them) 68%, var(--text)); }
.tl .tl-said { font-size: 18px; line-height: 1.3; font-weight: 650; text-wrap: balance; }
/* League Analyser: a pip a team, the ones this week's totals beat filled */
.tl-pips { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; padding: 0; list-style: none; }
.tl-pips li { position: relative; width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid var(--line-strong); }
.tl-pips .on { border-color: var(--accent); }
.tl-pips .on::after { content: ''; position: absolute; inset: -1.5px; border-radius: 50%; background: var(--accent); }
/* Schedule Grid: this week (pages/week.ts), its own box folded into the inset */
.tl-peek .thisweek { display: grid; gap: 10px; }
.thisweek ul { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.thisweek .big .n { font: 800 40px/.9 var(--font-display); }
.thisweek .tc { display: inline-grid; border-radius: var(--r-sticker); letter-spacing: .05em; font-family: var(--font-display); font-weight: 700; place-items: center; min-width: 38px; height: 22px; padding: 0 4px; border: 1px solid var(--line); background: var(--surface); color: var(--dim); box-shadow: none; font-size: 12px; }
.thisweek p { font-size: 14px; color: var(--dim); }
.thisweek .and { align-self: center; padding: 0 2px; font-size: 13px; font-weight: 600; color: var(--dim); }
@media (max-width: 899px) {
  .tools-grid { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--g); margin: 0 calc(-1 * var(--g)); padding: 6px var(--g) 14px; scrollbar-width: none; }
  .tools-grid::-webkit-scrollbar { display: none; }
  .tl { flex: 0 0 min(320px, 84vw); scroll-snap-align: start; padding: 14px 14px 14px; }
  .tl-peek { padding: 14px; gap: 8px; }
  .tl-peek .pf { --s: 32px; }
  .tops li { grid-template-columns: 1.7em auto minmax(0, 1fr); gap: 8px; }
  .tops b, .tl-form b, .tl-moves li > span:nth-child(2) { font-size: 15px; }
  .tl-form li, .tl-moves li { gap: 8px; }
  .c-art { width: 100px; height: 100px; }
  .c-art img { width: 90px; height: 90px; }
  .c-art.duo { width: 132px; }
  .c-art.duo img { width: 70px; height: 70px; }
  .c-art.duo img:first-child { width: 82px; height: 82px; }
}
@media (prefers-reduced-motion: reduce) { .tl, .c-art img { transition: none; } .tl:hover { transform: none; } }
/* A card's preview plays once as the card comes into view (home-pickles.js adds .play, and counts the numbers): the rows
   come in one by one, the trade's bar fills left to right and its verdict settles, the dots fill, the teams pop in. Only
   transform and opacity, each piece in its own final place; without the script, or with "reduce motion", it shows as written. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes tl-in { from { opacity: 0; transform: translateY(8px); } }
  @keyframes tl-fill { from { transform: scaleX(0); } }
  @keyframes tl-pop { 0% { opacity: 0; transform: scale(.4); } 70% { opacity: 1; transform: scale(1.15); } }
  @keyframes tl-up { 50% { translate: 2px -3px; } }
  @keyframes tl-down { 50% { translate: 2px 3px; } }
  @keyframes tl-swap { from { transform: rotate(-180deg); } }
  .tl.play .tops li, .tl.play .tl-form li, .tl.play .tl-moves li { animation: tl-in .45s var(--ease-out) both; animation-delay: calc(.15s + var(--i, 0) * 110ms); }
  .tl.play .tl-form .up .tl-mv i { animation: tl-up .5s .75s ease-in-out both; }
  .tl.play .tl-form .down .tl-mv i { animation: tl-down .5s .9s ease-in-out both; }
  .tl.play .pair .swap { animation: tl-swap .6s .15s var(--ease-out) both; }
  .tl.play .tl-segs li { animation: tl-fill .3s var(--ease-out) both; animation-delay: calc(.25s + var(--i, 0) * 60ms); }
  .tl.play .tl-said { animation: tl-in .4s .85s var(--ease-out) both; }
  .tl.play .tl-pips .on::after { animation: tl-pop .3s var(--ease-out) both; animation-delay: calc(.25s + var(--i, 0) * 90ms); }
  .tl.play .thisweek li { animation: tl-pop .3s var(--ease-out) both; animation-delay: calc(.3s + var(--i, 0) * 40ms); }
}


/* Motion, from the first paint and finished in under two seconds. The words never move; only the pictures. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise { from { opacity: 0; translate: 0 22px; } }
  @keyframes slide { from { opacity: 0; translate: -18px 0; } }
  @keyframes count { from { --n: var(--from, 0); } }
  @keyframes fill { from { width: 0; } }
  @keyframes fade { from { opacity: 0; } }
  @keyframes fade-out { to { opacity: 0; translate: 0 -8px; } }
  /* The first screen: the card rises once; choosing a player changes it at once. The words never move. */
  .mv-card { animation: rise .7s .1s var(--ease-out) both; }
  .scene::before { animation: fade 1.2s .1s both; }
  .ss-res { animation: fade .3s both; }
  /* A day's picture: on a computer the card rises as its day is chosen */
  .panel .vis { animation: rise .55s var(--ease-out) both; }
  .panel.in .cap, .panel.in .more { animation: fade .45s .1s both; }
  .panel.leaving { animation: fade-out .25s var(--ease-out) both; pointer-events: none; }
  .rail .panel .vis { animation: none; }
  /* Its story plays when you reach it (home.js: .play on the day in view, a computer's tab or a phone's card): the
     numbers roll, the bars fill, the players pop in, the sticker stamps on, and Sunday's win throws a few pickles.
     Until then (.mo, set by home.js only when motion is welcome) each piece waits at its start; without the script,
     or with "reduce motion", every piece shows in its final state. */
  @keyframes stamp { 0% { visibility: visible; opacity: 0; transform: scale(1.9); } 55% { opacity: 1; transform: scale(.92); } 100% { visibility: visible; transform: none; } }
  @keyframes pa { from { visibility: visible; opacity: 0; translate: 0 10px; } to { visibility: visible; } }
  @keyframes drop { 0% { visibility: visible; opacity: 0; translate: 0 -34px; } 60% { opacity: 1; translate: 0 4px; } 100% { visibility: visible; translate: 0 0; } }
  @keyframes dot { from { transform: scale(0); } }
  @keyframes spin { from { transform: rotate(-180deg); } }
  @keyframes burst { 0% { visibility: visible; transform: translate(0, 0) scale(.3); } 45% { transform: translate(var(--x), var(--y)) rotate(calc(var(--r) * .5)) scale(1); } 99% { visibility: visible; transform: translate(calc(var(--x) * 1.15), calc(var(--y) + 60px)) rotate(var(--r)) scale(.9); } 100% { visibility: hidden; } }
  .mo .panel:not(.play) .pa { visibility: hidden; }
  .mo .panel:not(.play) .count { --n: var(--from, 0); }
  .mo .panel:not(.play) .clist i::before, .mo .panel:not(.play) .tug i { width: 0; }
  .mo .panel:not(.play) .places li, .mo .panel:not(.play) .segs li { transform: scale(0); }
  .panel.play .count { animation: count .9s .35s var(--ease-out) both; }
  .panel.play .pa { animation: pa .45s var(--ease-out) both; animation-delay: calc(.12s + var(--i, 0) * 70ms); }
  .panel.play .stamp { animation: stamp .5s var(--ease-out) both; animation-delay: .75s; }
  .panel.play .clist i::before { animation: fill .7s var(--ease-out) both; animation-delay: calc(.3s + var(--i, 0) * 45ms); }
  .panel.play .places li, .panel.play .segs li { animation: dot .3s var(--ease-out) both; animation-delay: calc(.35s + var(--i, 0) * 45ms); }
  .panel.play .ntf { animation: drop .7s .3s var(--ease-out) both; }
  .panel.play .swap { animation: spin .6s .5s var(--ease-out) both; }
  @keyframes fx-out { from { filter: none; } }
  @keyframes fx-in { from { opacity: 0; scale: .5; } }
  .panel.play .fx .pf:first-child { animation: fx-out .5s .95s ease-out both; }
  .panel.play .fx .arr { animation: slide .4s 1.1s var(--ease-out) both; }
  .panel.play .fx .pf:last-child { animation: fx-in .45s 1.25s cubic-bezier(.34, 1.56, .64, 1) both; }
  .panel.play .sides p + .swap + p { animation-delay: .3s; }
  .panel.play .moves li + li { animation-delay: 1s; }
  .panel.play .confetti i { animation: burst 1.5s 1.05s cubic-bezier(.15, .7, .3, 1) both; }
  .panel.play .confetti i:nth-child(odd) { animation-delay: 1.12s; }
}
li:nth-child(2) { --i: 1; } li:nth-child(3) { --i: 2; } li:nth-child(4) { --i: 3; } li:nth-child(5) { --i: 4; }
li:nth-child(6) { --i: 5; } li:nth-child(7) { --i: 6; } li:nth-child(8) { --i: 7; } li:nth-child(9) { --i: 8; }
li:nth-child(10) { --i: 9; } li:nth-child(11) { --i: 10; } li:nth-child(12) { --i: 11; } li:nth-child(13) { --i: 12; }
li:nth-child(14) { --i: 13; } li:nth-child(15) { --i: 14; }
