/* ═══════════ STRIDETOBER — VIEWS ═══════════
   Per-view layout, one commented block per view (PLAN §2.3: parallel agents
   edit separate blocks). Shared pieces live in components.css. */

/* ── global bits ───────────────────────────────────────── */
#burst { position: fixed; inset: 0; z-index: 90; width: 100%; height: 100%; pointer-events: none; }
.page-head { display: grid; justify-items: start; gap: var(--s-3); padding-top: var(--s-7); }
.page-title { font-size: var(--step-3); }
.flourish { margin-top: var(--s-7); color: var(--ink-2); font: 600 26px/1.2 var(--font-hand); text-align: center; }
.flourish.small { margin-top: var(--s-2); color: var(--accent-ink); font-size: 22px; }
.delta { font: 700 14px/1 var(--font-ui); white-space: nowrap; }
.delta.up { color: var(--up); }
.delta.down { color: var(--down); }
.delta.flat { color: var(--ink-3); }
.stamp-sm { padding: 3px 7px; border-width: 2px; font-size: 12px; }
html.js [data-reveal]:not(.is-in) .harvest-fill { transform: scaleX(0); }
html.js [data-reveal]:not(.is-in) .harvest-cap { transform: translateX(0); }
.counting-row { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: var(--s-4); color: var(--gold-ink); }
.counting-row .tally { width: 40px; height: 30px; }
.counting-row.small { margin-top: var(--s-3); font-weight: 600; font-size: 15px; }
.counting-row.small .tally { width: 28px; height: 21px; }

/* ── view: court ───────────────────────────────────────── */
.hero {
  position: relative;
  overflow-x: clip;                                   /* the sky's glow may run wide; the page may not */
  padding-block: var(--s-7) var(--s-5);                /* its sky now lives behind the tree (.tree::before) */
}
.hero-grid { display: grid; gap: var(--s-5); }
.hero-copy { display: grid; justify-items: start; gap: var(--s-4); }
.hero-title { font-size: var(--step-4); max-width: 12ch; }
.hero-sub { color: var(--ink-2); font-size: var(--step-1); max-width: 34ch; }
.hero-lede { max-width: 42ch; }
.hero-note { justify-self: start; margin: 4px 0 -8px clamp(72px, 28%, 200px); }
.hero-cta { margin-top: var(--s-1); }
.hero-art { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: var(--s-4); min-height: 150px; }
.hero-sneaker { width: 132px; height: 66px; color: var(--accent); transform: rotate(-6deg); margin-bottom: 6px; }
.bubble-slot { position: absolute; left: 50%; bottom: 150px; translate: -40% 0; }
@media (min-width: 1024px) {
  .hero { padding-block: var(--s-9) var(--s-7); }
  .hero-grid { grid-template-columns: 1.35fr .65fr; align-items: center; }
  .hero-art { min-height: 320px; align-items: flex-end; }
  .hero-sneaker { width: 220px; height: 110px; margin-right: -36px; }
  .hero-art .bottle { width: 96px; height: 192px; }
  .hero-art .bottle-label { width: 124px; font-size: 20px; }
  .bubble-slot { bottom: auto; top: 0; translate: -50% 0; }
}

/* the harvest sky behind the sneaker and bottle (M31) */
.hero-art { isolation: isolate; }
.hero-sky { position: absolute; inset: -24px -56px 0; z-index: -1; overflow: hidden; pointer-events: none; }
.sky-orb {
  --core: #FFE08A; --edge: #F5B544; --glow: rgb(245 181 68 / .42);
  position: absolute;
  left: 50%;
  bottom: 30px;
  width: 104px;
  height: 104px;
  margin-left: -6px;
  border-radius: 50%;
  background: radial-gradient(circle at 42% 40%, var(--core) 0 44%, var(--edge) 74%);
  box-shadow: 0 0 46px 14px var(--glow);
}
.sky-moon { display: none; width: 100%; height: 100%; color: #F4E6C4; filter: drop-shadow(0 0 16px rgb(244 230 196 / .65)); }
.sky-star { position: absolute; display: none; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.sky-star:nth-of-type(1) { left: 16%; top: 20%; }
.sky-star:nth-of-type(2) { left: 34%; top: 8%; width: 3px; height: 3px; }
.sky-star:nth-of-type(3) { left: 82%; top: 30%; }
html[data-daypart="morning"] .sky-orb { --core: #FFF1C9; --edge: #F9D38A; --glow: rgb(249 211 138 / .5); left: 32%; bottom: 10px; }
html[data-daypart="dusk"] .sky-orb { --core: #FFB27A; --edge: #E0661B; --glow: rgb(224 102 27 / .42); bottom: -38px; width: 132px; height: 132px; margin-left: -30px; }
html[data-daypart="night"] .sky-orb { width: 76px; height: 76px; left: 58%; bottom: 72px; background: none; box-shadow: none; }
html[data-daypart="night"] .sky-moon { display: block; }
html[data-daypart="night"] .sky-star, html[data-eve] .sky-star { display: block; }
html[data-eve] .sky-orb { --core: #FFC27A; --edge: #E0661B; --glow: rgb(224 102 27 / .5); width: 96px; height: 96px; left: 56%; bottom: 64px;
  background: radial-gradient(circle at 42% 40%, var(--core) 0 44%, var(--edge) 74%); box-shadow: 0 0 46px 14px var(--glow); }
html[data-eve] .sky-moon { display: none; }
@media (min-width: 1024px) {
  .sky-orb { width: 150px; height: 150px; bottom: 90px; margin-left: -40px; }
  html[data-daypart="dusk"] .sky-orb { width: 190px; height: 190px; bottom: -50px; }
  html[data-daypart="night"] .sky-orb { width: 110px; height: 110px; bottom: 150px; }
  html[data-eve] .sky-orb { width: 140px; height: 140px; bottom: 130px; }
}

.countdown-card .kicker { color: var(--accent-ink); }

.roll { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(160px, 100%), 1fr)); gap: var(--s-3); list-style: none; }
.roll-card { padding: 0; min-width: 0; transition: transform 200ms var(--ease-settle), box-shadow 200ms var(--ease-settle); }
.roll-card:has(.roll-link:hover) { transform: translateY(-2px); box-shadow: inset 0 0 0 2px var(--c); }
.roll-card:active { transform: scale(.97); }
.roll-link {
  color: inherit;
  text-decoration: none;
  border-radius: inherit;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas: "crest" "name" "status";
  row-gap: 6px;
  min-width: 0;
  padding: var(--s-4);
}
.roll-link:focus-visible { outline: 2px solid var(--c); outline-offset: 2px; }
.roll-card .crest { grid-area: crest; }
.roll-name { grid-area: name; margin-top: 6px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.roll-card .caption { grid-area: status; }
.roll-empty { display: grid; justify-items: center; gap: var(--s-3); padding-block: var(--s-7); text-align: center; }

/* ── anticipation: the stakes, the trail, the calendar (muster) ── */
.stakes { display: grid; gap: var(--s-3); list-style: none; }
.stake { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--s-4); padding: var(--s-4) var(--s-5); }
.stake-1 { border-color: var(--gold); box-shadow: 0 0 0 1.5px var(--gold), var(--shadow-1); }
.stake-medal { font-size: 34px; line-height: 1; }
.stake-title { font: 600 var(--step-0)/1.25 var(--font-display); }
.stake-share { color: var(--ink-2); font-size: 14px; }
.stake-amount { font: 600 var(--step-2)/1 var(--font-display); }
.stake-fine { margin-top: var(--s-3); }
@media (min-width: 768px) {
  .stakes { grid-template-columns: 1.15fr 1fr 1fr; align-items: stretch; }
  .stake { grid-template-columns: 1fr; justify-items: start; gap: var(--s-2); padding: var(--s-5); }
  .stake > div { min-width: 0; }
  .stake-amount { font-size: var(--step-3); }
}

.trail { position: relative; display: grid; gap: var(--s-5); list-style: none; padding-left: 4px; }
.trail::before { content: ""; position: absolute; left: 25px; top: 18px; bottom: 18px; border-left: 2px dashed var(--line-strong); }
.trail-stop { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: var(--s-4); align-items: start; min-width: 0; }
.trail-dot {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--line-strong);
  color: var(--accent-ink);
}
.trail-mark { width: 24px; height: 24px; }
.trail-emoji { font-size: 22px; line-height: 1; }
.trail-stop.is-kick .trail-dot { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.trail-stop.is-finale .trail-dot { border-color: var(--gold); color: var(--gold-ink); }
.trail-stop.is-eve .trail-dot { border-color: var(--eve); color: var(--eve); }
.trail-body { display: grid; gap: 2px; min-width: 0; padding-top: 2px; }
.trail-date { color: var(--accent-ink); font: 700 12px/1.2 var(--font-ui); letter-spacing: .12em; text-transform: uppercase; }
.trail-body p:last-child { color: var(--ink-2); }
@media (min-width: 1024px) {
  .trail { grid-template-columns: repeat(3, 1fr); gap: var(--s-6) var(--s-5); padding-left: 0; }
  .trail::before { display: none; }
  .trail-stop { grid-template-columns: 1fr; gap: var(--s-2); }
}

.calendar-card { display: grid; gap: var(--s-3); justify-items: start; max-width: 640px; }

.duo { display: grid; gap: var(--s-7); }
.duo > .section { margin-top: 0; width: auto; }
@media (min-width: 1024px) {
  .duo { grid-template-columns: 1.2fr .8fr; gap: var(--s-5); align-items: stretch; }
  .duo .card { height: 100%; }
}
.kit .h2 { margin: 6px 0 var(--s-4); }
.kit-stamp { padding: 6px 0 2px 4px; }

.how { display: grid; gap: var(--s-3); list-style: none; margin-bottom: var(--s-3); }
.how-card { display: grid; align-content: start; gap: 6px; min-width: 0; }
.how-n { color: var(--accent-ink); font: 600 var(--step-2)/1 var(--font-display); }
@media (min-width: 768px) { .how { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.job-lede { margin: 8px 0 var(--s-4); color: var(--ink-2); }
.job-list { display: grid; gap: 12px; list-style: none; }
.job-list li { display: grid; grid-template-columns: 32px 1fr; align-items: start; font-weight: 600; line-height: 1.35; }
.job-list span { font-size: 20px; line-height: 1.2; }

.preview-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.preview-list { display: grid; gap: 10px; margin: var(--s-4) 0 var(--s-2); list-style: none; }
.preview-row { display: grid; grid-template-columns: 28px 40px minmax(0, 1fr) auto; align-items: center; column-gap: 10px; padding: 6px 0; }
.preview-row + .preview-row { border-top: 1px solid var(--line); }
.preview-row .chase { grid-column: 3 / -1; margin-top: -4px; color: var(--ink-2); font-size: 13px; }
.preview-row.is-podium .preview-total { color: var(--c); }
.preview-rank { color: var(--ink-2); font: 600 var(--step-1)/1 var(--font-display); text-align: center; }
.preview-name { overflow: hidden; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.preview-total { font: 600 var(--step-1)/1 var(--font-display); text-align: right; }
.preview-note { display: flex; justify-content: flex-end; margin-top: 4px; }

.report { display: grid; grid-template-columns: auto 1fr; gap: var(--s-4); align-items: start; }
.report-note { margin: 8px 0; font: italic 600 20px/1.4 var(--font-display); font-variation-settings: "SOFT" 100, "WONK" 1; }

.together-total { margin: 6px 0 var(--s-3); font: 600 var(--step-3)/1 var(--font-display); }
.together-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--s-3); list-style: none; }

@media (min-width: 1024px) {
  .preview-list { max-width: 640px; }
}

/* ── view: ledger ──────────────────────────────────────── */
.empty-state { display: grid; justify-items: center; gap: var(--s-3); padding-block: var(--s-7); text-align: center; }
.lb-cards { display: grid; gap: var(--s-3); list-style: none; }
.lb-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  grid-template-areas: "rank who right" "bar bar bar";
  align-items: center;
  gap: 10px 12px;
  padding: var(--s-4);
}
.lb-rank { grid-area: rank; color: var(--ink-2); font: 600 var(--step-1)/1 var(--font-display); text-align: center; }
.lb-row .lb-who { grid-area: who; }
.lb-name { overflow: hidden; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.lb-name .short { display: none; }
@media (max-width: 400px) { .lb-name .full { display: none; } .lb-name .short { display: inline; } }
.lb-right { grid-area: right; display: grid; justify-items: end; gap: 4px; }
.lb-total { font: 600 var(--step-1)/1 var(--font-display); }
.lb-bar { grid-area: bar; }
.lb-row .stamp-sm { position: absolute; top: -8px; right: 12px; background: var(--surface); }
.lb-row.is-champ, .lb-table tr.is-champ { outline: 2px solid var(--gold); outline-offset: -2px; }
.lb-table-wrap { display: none; }
.lb-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.lb-table th, .lb-table td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.lb-table thead th { color: var(--ink-3); font: 600 12px/1 var(--font-ui); letter-spacing: .1em; text-transform: uppercase; }
.lb-table th[scope="row"], .lb-table thead th:nth-child(2) { text-align: left; }
.lb-table td:first-child, .lb-table thead th:first-child { text-align: center; }
.lb-table tbody tr:last-child > * { border-bottom: 0; }
.lb-table .lb-total { font-size: var(--step-1); }
.lb-who { display: inline-flex; align-items: center; gap: 10px; min-width: 0; min-height: 44px; color: inherit; font-weight: 600; text-decoration: none; }
a.lb-who:active .lb-name { text-decoration: underline; }
@media (hover: hover) { a.lb-who:hover .lb-name { text-decoration: underline; } }
.lb-who .crest { --size: 32px; }
@media (min-width: 768px) {
  .lb-cards { display: none; }
  .lb-table-wrap { display: block; }
}
.honours { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }

/* ── view: check-in ────────────────────────────────────── */
.flyer-quote { margin: 0; padding: var(--s-4) var(--s-4) var(--s-3); border-left: 4px solid var(--accent); border-radius: 0 var(--r-sm) var(--r-sm) 0; background: var(--surface-2); max-width: 60ch; }
.flyer-quote p { font: italic 600 var(--step-1)/1.35 var(--font-display); font-variation-settings: "SOFT" 100, "WONK" 1; }
.flyer-quote strong { font-style: normal; color: var(--down); }
.flyer-quote footer { margin-top: 8px; }
.ruling { max-width: 60ch; color: var(--ink-2); }
.submit { display: grid; gap: var(--s-4); }
.submit-steps, .needs { display: grid; gap: 10px; padding-left: 1.4em; }
.submit-steps li::marker { color: var(--accent-ink); font-weight: 700; }
.needs li::marker { color: var(--ink-3); }
.submit-actions { margin-top: var(--s-2); }
.submit-stamp { justify-self: end; margin-top: var(--s-2); }

/* ── the Sunday text ───────────────────────────────────── */
.sunday { display: grid; gap: var(--s-4); }
.sunday-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: var(--s-3); }
.field, .day-field { display: grid; gap: 6px; min-width: 0; }
.field > span, .day-field > span { color: var(--ink-2); font: 600 13px/1.2 var(--font-ui); }
.field select, .field textarea, .day-field input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 0 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  font: 500 16px/1.2 var(--font-ui);                 /* 16px: iOS zooms the page on anything smaller */
}
.day-field input { font-variant-numeric: tabular-nums; }
.day-field input[aria-invalid] { border-color: var(--down); }
.field select:focus-visible, .day-field input:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 2px; }
.sunday-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(130px, 100%), 1fr)); gap: var(--s-3); }
.sunday-sum { display: flex; flex-wrap: wrap; gap: var(--s-6); margin: 0; }
.sunday-sum dt { color: var(--ink-2); font: 600 13px/1.2 var(--font-ui); }
.sunday-sum dd { margin: 2px 0 0; font: 600 var(--step-2)/1.1 var(--font-display); }
.sunday-preview {
  margin: 0;
  padding: var(--s-4);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  color: var(--ink);
  font: 400 14px/1.6 var(--font-ui);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.sunday-actions .btn[aria-disabled="true"], .sunday-actions .btn:disabled { opacity: .5; cursor: not-allowed; }
@media (min-width: 768px) {
  .submit { padding-bottom: 88px; }
  .submit-stamp { position: absolute; right: 16px; bottom: 18px; margin: 0; }
}

/* ── view: decree ──────────────────────────────────────── */
.decree-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-4); align-items: start; }
.decree-body { display: grid; justify-items: start; gap: var(--s-3); }
.decree-body .h2 { margin-bottom: 2px; }
.decree-lead { color: var(--accent-ink); font: 600 var(--step-1)/1.2 var(--font-display); }
.decree-quote { font: italic 600 var(--step-0)/1.45 var(--font-display); font-variation-settings: "SOFT" 100, "WONK" 1; }
.champion-line { display: block; margin-top: 6px; color: var(--gold-ink); font: 600 var(--step-1)/1.15 var(--font-display); letter-spacing: .01em; }
.season { width: 100%; border-collapse: collapse; }
.season th, .season td { padding: 10px 8px 10px 0; border-bottom: 1px solid var(--line); text-align: left; }
.season thead th { color: var(--ink-3); font: 600 12px/1 var(--font-ui); letter-spacing: .1em; text-transform: uppercase; }
.moving { display: grid; gap: 6px; padding-left: 1.2em; }
.moving li::marker { content: "✓  "; color: var(--up); font-weight: 700; }
.hand-line { color: var(--accent-ink); font: 600 26px/1.1 var(--font-hand); transform: rotate(-2deg); }
@media (max-width: 479px) {
  .decree-card { grid-template-columns: 1fr; }
}

/* ── view: excuses ─────────────────────────────────────── */
.bench { display: grid; justify-items: start; gap: var(--s-4); }
.bench-top { display: flex; align-items: center; gap: var(--s-3); }
.bench-gavel { display: grid; place-items: center; width: 56px; height: 56px; flex: none; border-radius: 50%; background: var(--surface-2); color: var(--accent-ink); }
.bench-gavel .icon { width: 30px; height: 30px; }
.verdict { display: grid; gap: var(--s-3); width: 100%; min-height: 8px; }
.plea {
  justify-self: start;
  max-width: 34ch;
  padding: 12px 16px;
  border-radius: 16px 16px 16px 4px;
  background: var(--surface-2);
  font: 600 24px/1.2 var(--font-hand);
  animation: pop 240ms var(--ease-stamp) both;
}
.ruling-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4); }
.ruling-text { flex: 1 1 200px; color: var(--ink-2); }
.pleas-note { display: flex; justify-content: flex-end; width: 100%; }

/* ── view: summons ─────────────────────────────────────── */
.summons {
  position: relative;
  display: grid;
  justify-items: center;
  gap: var(--s-3);
  max-width: 560px;
  margin-inline: auto;
  padding: var(--s-8) var(--s-5) var(--s-7);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background:
    radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--sky) 70%, transparent), transparent 70%),
    var(--surface);
  box-shadow: var(--shadow-1), inset 0 0 0 6px var(--surface), inset 0 0 0 7px var(--line);
  text-align: center;
}
.summons-seal { position: absolute; top: -34px; }
.summons-mark { font: 600 var(--step-4)/1 var(--font-display); letter-spacing: -.02em; }
.summons-mark em { color: var(--accent-ink); font-variation-settings: "SOFT" 100, "WONK" 1; }
.summons-dates { color: var(--accent-ink); font: 700 13px/1 var(--font-ui); letter-spacing: .14em; }
.summons-tag { font: italic 600 var(--step-1)/1.2 var(--font-display); }
.summons-terms { display: grid; gap: 8px; margin: var(--s-2) 0; list-style: none; }
.summons-count { color: var(--ink-2); font-weight: 600; }
.summons-late { max-width: 36ch; color: var(--ink-2); font-size: 15px; }
.summons-hand { color: var(--accent-ink); font: 600 20px/1 var(--font-hand); }
.summons-hand.left { transform: rotate(-4deg); }
.summons-hand.right { transform: rotate(3deg); }
@media (min-width: 640px) {
  .summons-hand { position: absolute; margin: 0; }
  .summons-hand.left { left: 18px; bottom: 22px; }
  .summons-hand.right { right: 18px; top: 22px; }
}
.summons-actions { justify-content: center; margin-top: var(--s-5); }

/* ── view: off-trail ───────────────────────────────────── */
.off-trail { display: grid; justify-items: start; gap: var(--s-3); margin-top: var(--s-7); }

/* ── charts (shared: ledger, dossier, compare) ─────────── */
.chart svg { display: block; width: 100%; height: auto; }
.chart-grid { stroke: var(--line); }
.chart-axis { fill: var(--ink-3); font: 600 12px var(--font-ui); }
.chart-val { fill: var(--ink-2); font-weight: 700; }
.chart-line { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.chart-pt { stroke: var(--surface); stroke-width: 1.5; }
.chart-bar { fill: var(--c, var(--accent)); }
.chart-bar[data-best] { stroke: var(--gold); stroke-width: 2.5; }
.chart-mark { font-size: 14px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: var(--s-3); list-style: none; color: var(--ink-2); font: 600 13px/1 var(--font-ui); }
.legend li { display: inline-flex; align-items: center; }
.dot { flex: none; width: 10px; height: 10px; margin-right: 6px; border-radius: 50%; background: var(--c); }
.chart-data { margin-top: var(--s-3); }
.chart-data summary { display: flex; align-items: center; min-height: 44px; color: var(--accent-ink); font-weight: 600; cursor: pointer; }
.chart-data table { width: 100%; border-collapse: collapse; margin-top: 4px; }
.chart-data th, .chart-data td { padding: 9px 10px 9px 0; border-bottom: 1px solid var(--line); text-align: right; }
.chart-data th[scope="row"], .chart-data thead th:first-child { text-align: left; }
.chart-data tbody tr:last-child > * { border-bottom: 0; }

/* ── ledger: reading + payout chips ────────────────────── */
.reading-head { display: flex; justify-content: flex-end; }
.reading-head:empty { display: none; }
.pay-chip { background: color-mix(in srgb, var(--gold) 20%, var(--surface)); color: var(--gold-ink); font-weight: 700; }

/* ── court: coronation + podium (crowned phase) ────────── */
.coronation-grid { display: grid; justify-items: center; gap: var(--s-3); text-align: center; }
.coronation-stage { position: relative; display: flex; align-items: flex-end; gap: var(--s-5); padding-top: 48px; }
.crown-slot { position: relative; display: inline-grid; }
.crown { position: absolute; left: 50%; bottom: 82%; translate: -50% 0; width: 52px; height: auto; color: var(--gold-ink); }
.coronation-name { font-size: var(--step-3); }
.coronation-total { color: var(--ink-2); }
.coronation-total b { font: 600 var(--step-2)/1 var(--font-display); }
.podium { display: grid; gap: var(--s-3); list-style: none; }
.podium-row {
  display: grid;
  grid-template-columns: 34px 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 12px;
  padding: var(--s-4);
}
.podium-row.first { outline: 2px solid var(--gold); outline-offset: -2px; }
.podium-medal { font-size: 26px; line-height: 1; text-align: center; }
.podium-name { display: inline-flex; align-items: center; min-width: 0; min-height: 44px; color: var(--ink); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
@media (hover: hover) { .podium-name:hover { text-decoration: underline; } }
.podium-total { font: 600 var(--step-1)/1 var(--font-display); text-align: right; }
.podium-row .pay-chip { grid-column: 1 / -1; justify-self: start; }
.payout-line { margin-top: var(--s-4); }

/* ── view: dossier ─────────────────────────────────────── */
.dossier-hero { display: grid; gap: var(--s-4); overflow: hidden; }
.dossier-top { display: flex; align-items: center; gap: var(--s-3); }
.dossier-id { display: grid; gap: 4px; min-width: 0; }
.dossier-id .caption { display: inline-flex; align-items: center; gap: 8px; }
.dossier-assess { color: var(--ink-2); font: italic 600 var(--step-1)/1.35 var(--font-display); font-variation-settings: "SOFT" 100, "WONK" 1; }
.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); margin: 0; }
.stat-grid > div { display: grid; gap: 4px; min-width: 0; }
.stat-grid dt { color: var(--ink-3); font: 600 12px/1 var(--font-ui); letter-spacing: .1em; text-transform: uppercase; }
.stat-grid dd { margin: 0; font: 600 var(--step-1)/1 var(--font-display); }
@media (max-width: 400px) { .stat-grid dd { font-size: var(--step-0); } }
.dossier-note { justify-self: end; }
.weeks-grid { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.week-card { display: grid; gap: var(--s-3); align-content: start; }
.week-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.week-total b { font: 600 var(--step-2)/1 var(--font-display); }
.week-zero { color: var(--ink-3); font-weight: 600; }
.week-stamp { position: absolute; top: 12px; right: 12px; }
.derived-note summary { color: var(--ink-3); font-size: 14px; }
.h2h-list { display: grid; padding: var(--s-2) var(--s-4); }
.h2h-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; min-height: 56px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.h2h-row:last-child { border-bottom: 0; }
.h2h-row .crest { --size: 32px; }
.h2h-name { font-weight: 600; overflow-wrap: anywhere; }
.h2h-gap { color: var(--ink-2); font-weight: 600; font-size: 14px; text-align: right; }

/* ── view: settle it ───────────────────────────────────── */
.vs { display: grid; gap: var(--s-4); }
.vs-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: var(--s-3); }
.vs-side { display: grid; justify-items: center; gap: 6px; min-width: 0; text-align: center; }
.vs-name { font-weight: 600; overflow-wrap: anywhere; }
.vs-total { font: 600 var(--step-2)/1 var(--font-display); }
.vs-best { font-size: 14px; }
.vs-mark { color: var(--accent-ink); font: 600 var(--step-2)/1 var(--font-display); transform: rotate(-8deg); }
.verdict-line { color: var(--ink-2); font: italic 600 var(--step-1)/1.3 var(--font-display); font-variation-settings: "SOFT" 100, "WONK" 1; text-align: center; }
.h2h-score { color: var(--ink-2); text-align: center; }
.vs .btn-row { justify-content: center; }
.pick-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.pick .crest { --size: 24px; font-size: 14px; }
@media (max-width: 400px) { .vs-total { font-size: var(--step-1); } }

/* ── view: fall finds ──────────────────────────────────── */
.finds-grid { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); }
.find { padding: 0; overflow: hidden; }
.find:nth-child(odd) { transform: rotate(-.5deg); }
.find:nth-child(even) { transform: rotate(.4deg); }
.find img { width: 100%; height: auto; }
.find-developing { display: grid; place-items: center; justify-items: center; gap: 10px; min-height: 190px; background: var(--surface-2); color: var(--ink-3); font: 600 15px/1 var(--font-ui); }
.find figcaption { display: grid; justify-items: start; gap: 6px; padding: var(--s-4); }
.find-cap { font: italic 600 var(--step-0)/1.35 var(--font-display); font-variation-settings: "SOFT" 100, "WONK" 1; }
.find-finders { display: flex; flex-wrap: wrap; gap: 8px; }
.finder { gap: 8px; }
.finder .crest { --size: 22px; font-size: 12px; }

/* ── view: dossier — the Chronicle (PLAN §5.4.1) ───────── */
.chronicle-wrap { padding-top: var(--s-5); }
.chronicle {
  position: relative;
  display: grid;
  justify-items: center;
  gap: var(--s-3);
  overflow: hidden;
  padding: var(--s-7) var(--s-5) var(--s-6);
  text-align: center;
  background:
    radial-gradient(120% 60% at 50% 0%, color-mix(in srgb, var(--c) 22%, transparent), transparent 70%),
    radial-gradient(80% 50% at 50% 100%, color-mix(in srgb, var(--gold) 12%, transparent), transparent 70%),
    var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 0 0 6px var(--surface), inset 0 0 0 7px color-mix(in srgb, var(--c) 55%, var(--line));
}
.chronicle > * { position: relative; min-width: 0; max-width: 100%; }
.chronicle-corner { position: absolute; top: 14px; font-size: 18px; opacity: .7; }
.chronicle-corner.tl { left: 16px; transform: rotate(-30deg); }
.chronicle-corner.tr { right: 16px; transform: scaleX(-1) rotate(-30deg); }
.chronicle-kicker { color: var(--ink-3); letter-spacing: .24em; }
.chronicle-crest { position: relative; display: grid; place-items: center; padding: 18px; }
.chronicle-crest::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--c) 35%, transparent) 0%, transparent 68%);
  animation: twinkle 3.2s var(--ease-swing) infinite;
}
.crest-xl {
  --size: clamp(104px, 30vw, 136px);
  box-shadow: inset 0 0 0 3px var(--c), 0 0 0 6px color-mix(in srgb, var(--c) 18%, transparent), 0 14px 30px -12px color-mix(in srgb, var(--c) 70%, transparent);
  animation: rise 900ms var(--ease-settle) both, breathe 4s var(--ease-swing) 900ms infinite;
}
.chronicle-epithet {
  margin-top: var(--s-2);
  font: 600 var(--step-4)/1 var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  letter-spacing: -.01em;
  text-wrap: balance;
  animation: settle 700ms var(--ease-settle) 250ms both;
}
.chronicle-name {
  font: 800 var(--step-0)/1.3 var(--font-ui);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-2);
  overflow-wrap: anywhere;
  animation: settle 700ms var(--ease-settle) 380ms both;
}
.chronicle-motto {
  font: 600 var(--step-2)/1.15 var(--font-hand);
  color: var(--accent-ink);
  text-wrap: balance;
  animation: settle 700ms var(--ease-settle) 500ms both;
}
.chronicle-rule { display: flex; align-items: center; gap: var(--s-3); width: min(320px, 100%); color: var(--gold-ink); }
.chronicle-rule span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.chronicle-tale { display: grid; gap: var(--s-3); max-width: 34rem; text-align: left; color: var(--ink); font-size: var(--step-0); line-height: 1.6; }
.chronicle-tale p:first-child::first-letter {
  float: left;
  margin: 6px 10px 0 0;
  font: 600 3.4em/.8 var(--font-display);
  color: var(--accent-ink);
}
.chronicle-kin { display: grid; justify-items: center; gap: var(--s-2); margin-top: var(--s-2); }
.kin-row { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2); }
.kin-chip { min-height: 44px; padding-left: 4px; text-decoration: none; color: var(--ink); }
.kin-chip .crest { --size: 34px; }
.kin-chip span { display: grid; text-align: left; line-height: 1.15; font-weight: 600; }
.kin-chip small { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.chronicle-seal { margin-top: var(--s-2); }
.chronicle-seal .seal { animation: seal-stamp 520ms var(--ease-stamp) 1100ms both; }
@media (max-width: 400px) { .chronicle { padding-inline: var(--s-4); } }

/* ── the Courtroom: two dockets, one page ──────────────── */
.docket { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); width: 100%; max-width: 520px; margin-top: var(--s-2); }
.docket-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 12px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-pill);
  color: var(--ink);
  font: 600 15px/1.15 var(--font-ui);
  text-align: center;
  text-decoration: none;
}
.docket-tab[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
@media (max-width: 359px) { .docket-tab { font-size: 14px; padding: 0 8px; gap: 6px; } }

.chronicle-tz { justify-self: center; margin-top: var(--s-2); font-size: 13px; }

/* Court: screenshot roll call (names only, no numbers) */
.roll-call-list { list-style: none; margin: 12px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); gap: 8px; }
.docket-row { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 10px 12px; border-radius: 12px; border: 1.5px dashed var(--line, currentColor); color: var(--ink-2); }
.docket-row b { margin-left: auto; font-size: 14px; font-weight: 600; white-space: nowrap; }
.docket-row.is-in { border-style: solid; color: var(--ink); }
.docket-row.is-in { border-color: var(--walker-moss); }

/* Courtroom: typed excuses and the public record */
.filing { display: grid; gap: var(--s-3); }
.field textarea { padding: 12px 14px; font: inherit; resize: vertical; }
.record { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.record-row { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: start; }
.record-plea { font: italic 600 var(--step-0)/1.35 var(--font-display); overflow-wrap: anywhere; }
.find-week > summary { cursor: pointer; list-style: none; position: relative; padding-right: 32px; }
.find-week > summary::-webkit-details-marker { display: none; }
.find-week > summary::after { content: "▾"; position: absolute; right: 4px; top: 4px; color: var(--ink-2); font-size: 20px; transition: rotate .2s; }
.find-week:not([open]) > summary::after { rotate: -90deg; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: var(--r-sm); background: var(--line); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: grid; place-items: center; min-height: 40px; border-radius: calc(var(--r-sm) - 2px); color: var(--ink-2); font: 600 14px/1 var(--font-ui); }
.seg input:checked + span { background: var(--accent); color: var(--on-accent); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.sunday-days.is-total { grid-template-columns: 1fr; }
.record-body { display: grid; gap: 6px; min-width: 0; }
.record-actions { display: flex; gap: 16px; }
.record-actions { flex-wrap: wrap; align-items: center; }
.react { min-height: 36px; padding: 0 12px; border: 1.5px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--ink-2); font: 600 14px/1 var(--font-ui); cursor: pointer; }
.react.is-on { border-color: var(--accent); color: var(--accent-ink); }
.record-thread { display: grid; gap: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.record-comment { overflow-wrap: anywhere; font-size: 15px; }
.record-reply { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.record-reply input { min-height: 44px; min-width: 0; padding: 0 12px; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); background: transparent; color: var(--ink); font: inherit; }
