/* Seven Seals public site. The player-aid card: ink on card stock, flat affinity counters,
   one chrome-yellow marker. See DESIGN.md. */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('/assets/fonts/archivo-latin.woff2') format('woff2');
}

:root {
  --stock: #ECEDE8;
  --stock-raised: #F6F6F3;
  --stock-sunk: #DDDFD8;
  --ink: #15171A;
  --ink-muted: #4F545A;
  --rule: #15171A;
  --marker: #F2B705;
  --marker-ink: #15171A;
  --lumen: #E8E4D8; --lumen-ink: #15171A; --lumen-muted: #5D584D;
  --bloom: #267A42; --bloom-ink: #F6F6F3; --bloom-muted: #E6F2E9; --bloom-text: #1E6A36;
  --pyre: #B9281F; --pyre-ink: #F6F6F3; --pyre-muted: #F4D5D1; --pyre-text: #B9281F;
  --umbra: #26282C; --umbra-ink: #ECEDE8; --umbra-muted: #B7BAC0;
  --reverie: #2C5BC2; --reverie-ink: #F6F6F3; --reverie-muted: #D6E0F7;
  --human: #AD8834; --human-ink: #15171A; --human-muted: #2E240C;
  --plain: #B9BBB4; --plain-ink: #15171A; --plain-muted: #4F545A;
  --lift: 0 6px 14px -4px rgb(0 0 0 / 0.45), 0 1px 0 rgb(0 0 0 / 0.2);
  --font: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --measure: 66ch;
  --gutter: 16px;
  --max: 72rem;
  --ease-out: cubic-bezier(0.2, 0.9, 0.2, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --stock: #141816; --stock-raised: #1D2320; --stock-sunk: #0E100F;
    --ink: #ECEDE8; --ink-muted: #A9AFA9; --rule: #ECEDE8;
    --marker: #FFC21A; --marker-ink: #15171A;
    --bloom-text: #6FCF8E; --pyre-text: #FF8A7E;
    --lift: 0 6px 14px -4px rgb(0 0 0 / 0.8), 0 1px 0 rgb(0 0 0 / 0.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --stock: #141816; --stock-raised: #1D2320; --stock-sunk: #0E100F;
  --ink: #ECEDE8; --ink-muted: #A9AFA9; --rule: #ECEDE8;
  --marker: #FFC21A; --marker-ink: #15171A;
  --bloom-text: #6FCF8E; --pyre-text: #FF8A7E;
  --lift: 0 6px 14px -4px rgb(0 0 0 / 0.8), 0 1px 0 rgb(0 0 0 / 0.5);
  color-scheme: dark;
}

@media (min-width: 48rem) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--stock);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
[data-theme="dark"] :focus-visible { outline-color: var(--marker); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) :focus-visible { outline-color: var(--marker); } }
code, pre, kbd { font-family: var(--mono); font-size: 0.9375rem; }
pre { overflow-x: auto; padding: 16px; background: var(--stock-raised); border: 1px solid var(--rule); margin: 0 0 24px; line-height: 1.5; }
p code { background: var(--stock-sunk); padding: 0 0.25em; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 48px 0; }
::placeholder { color: var(--ink-muted); opacity: 1; }

.skip { position: absolute; left: 8px; top: -100px; background: var(--marker); color: var(--marker-ink); padding: 8px 12px; z-index: 10; }
.skip:focus { top: 8px; }

/* ---- type roles ---------------------------------------------------------- */
.display {
  font-weight: 800;
  font-variation-settings: 'wdth' 75;
  font-size: clamp(2.5rem, 1.5rem + 4vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 0;
  text-transform: uppercase;
}
h1, .h1 { font-weight: 800; font-variation-settings: 'wdth' 78; font-size: clamp(2rem, 1.4rem + 2.4vw, 3.5rem); line-height: 1; letter-spacing: -0.01em; text-wrap: balance; margin: 0 0 16px; }
h2, .h2 { font-weight: 700; font-variation-settings: 'wdth' 88; font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); line-height: 1.1; margin: 48px 0 16px; text-transform: uppercase; text-wrap: balance; }
h3, .h3 { font-weight: 700; font-variation-settings: 'wdth' 92; font-size: 1.125rem; line-height: 1.25; margin: 32px 0 8px; }
.label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; font-variation-settings: 'wdth' 80; line-height: 1.2; }
.lede { font-size: 1.25rem; line-height: 1.4; max-width: 46ch; text-wrap: pretty; }
.muted { color: var(--ink-muted); }
.prose { max-width: var(--measure); text-wrap: pretty; }
.prose p, .prose ul, .prose ol { margin: 0 0 20px; }
.prose li { margin-bottom: 6px; }
.prose h2 { margin-top: 48px; }
.prose h2:first-child { margin-top: 0; }
.prose blockquote { margin: 0 0 20px; padding: 0 0 0 16px; border-left: 1px solid var(--rule); color: var(--ink-muted); }
.table-scroll { overflow-x: auto; margin: 0 0 24px; }
table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-variation-settings: 'wdth' 80; background: var(--ink); color: var(--stock); border-bottom: 0; }
td.num, th.num { text-align: right; font-weight: 700; }

/* ---- shell --------------------------------------------------------------- */
.masthead { border-bottom: 1px solid var(--rule); background: var(--stock); }
.masthead__inner, .track-band__inner, .main > *, .colophon__inner, .wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}
.masthead__inner { display: flex; align-items: center; gap: 24px; min-height: 60px; padding: 8px 0; flex-wrap: wrap; }
.wordmark { display: inline-flex; align-items: baseline; gap: 8px; text-decoration: none; margin-right: auto; }
.wordmark__seal { align-self: center; }
.wordmark__name { font-weight: 800; font-variation-settings: 'wdth' 78; text-transform: uppercase; font-size: 1.25rem; letter-spacing: -0.01em; }
.wordmark__host { color: var(--ink-muted); font-size: 0.875rem; }
.nav { display: flex; gap: 2px 18px; flex-wrap: wrap; font-size: 0.9375rem; }
.nav a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--ink-muted); }
.nav a[aria-current="page"] { border-bottom-color: var(--ink); font-weight: 700; }
.masthead__tools { display: flex; align-items: center; gap: 12px; }
.theme-toggle { background: none; border: 1px solid var(--rule); color: var(--ink); width: 36px; height: 36px; display: grid; place-items: center; cursor: pointer; padding: 0; }
.theme-toggle:hover { background: var(--stock-sunk); }
@media (max-width: 47.99rem) {
  .masthead__inner { gap: 12px; }
  .nav { order: 3; width: 100%; gap: 2px 14px; padding-bottom: 4px; }
  .masthead .masthead__cta { display: none; }
}

.main { padding: 0 0 96px; }
.main > * + * { margin-top: 0; }

.colophon { border-top: 1px solid var(--rule); padding: 32px 0 48px; color: var(--ink-muted); font-size: 0.9375rem; }
.colophon__inner { display: grid; gap: 12px; }
.colophon__line { margin: 0; max-width: var(--measure); }
.colophon__line strong { color: var(--ink); }
.colophon__links { margin: 0; display: flex; gap: 20px; flex-wrap: wrap; }
.colophon__fixture { margin: 0; color: var(--marker-ink); background: var(--marker); display: inline-block; padding: 4px 8px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; width: fit-content; }

/* ---- buttons and inputs -------------------------------------------------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-variation-settings: 'wdth' 85;
  padding: 12px 20px; border: 1px solid var(--rule); background: transparent; color: var(--ink);
  text-decoration: none; cursor: pointer; line-height: 1; min-height: 44px;
}
.button:hover { background: var(--stock-sunk); }
.button--primary { background: var(--marker); color: var(--marker-ink); border-color: var(--marker); }
.button--primary:hover { filter: brightness(1.06); background: var(--marker); }
.button[disabled], .button[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.button--small { padding: 8px 12px; min-height: 36px; font-size: 0.75rem; }
.field { display: grid; gap: 6px; margin: 0 0 20px; }
.field label { font-weight: 700; font-size: 0.9375rem; }
.field input, .field textarea {
  font: inherit; color: var(--ink); background: var(--stock-raised); border: 1px solid var(--rule); padding: 12px 14px; width: 100%; min-height: 44px;
}
.field input:focus-visible { outline-offset: 0; }
.field__hint { font-size: 0.875rem; color: var(--ink-muted); margin: 0; }
.field__error { font-size: 0.9375rem; color: var(--pyre-text); margin: 0; font-weight: 700; }

/* ---- the Turn Record Track ------------------------------------------------ */
.track-band { border-bottom: 1px solid var(--rule); background: var(--stock); }
.track-band__inner { padding: 12px 0 10px; }
.track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); border: 1px solid var(--rule); border-right: 0; }
.track__box { position: relative; border-right: 1px solid var(--rule); background: var(--stock-sunk); min-height: 28px; display: flex; flex-direction: column; justify-content: space-between; padding: 3px 0 2px; }
.track__hour { font-size: 0.6875rem; font-weight: 600; text-align: center; line-height: 1; font-variation-settings: 'wdth' 75; color: var(--ink-muted); }
.track__marks { display: flex; gap: 2px; justify-content: center; align-items: flex-end; min-height: 8px; padding: 0 2px; }
.track__seal { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--stock-raised); box-shadow: inset 0 0 0 1.5px var(--stock-raised); }
.track__seal--open { background: var(--ink); }
.track__box--armageddon { background: var(--ink); }
.track__box--armageddon .track__hour { color: var(--stock); }
.track__box--armageddon .track__seal { border-color: var(--stock); background: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.track__box--armageddon .track__seal--open { background: var(--stock); }
.track__box--past { background: var(--stock); }
.track__box--past .track__hour { color: var(--ink-muted); }
.track__box--now { background: var(--marker); outline: 1px solid var(--rule); outline-offset: -1px; z-index: 1; }
.track__box--now .track__hour { color: var(--marker-ink); font-weight: 800; opacity: 1; }
.track__box--now .track__seal { border-color: var(--marker-ink); background: var(--marker); box-shadow: inset 0 0 0 1.5px var(--marker); }
.track__box--now .track__seal--open { background: var(--marker-ink); }
.track__tick { position: absolute; top: 55%; bottom: 0; width: 2px; margin-left: -1px; background: var(--marker-ink); transition: left 600ms var(--ease-out); }
.track__status { margin: 8px 0 0; font-size: 0.875rem; color: var(--ink-muted); display: flex; gap: 8px 20px; flex-wrap: wrap; }
.track__status strong { color: var(--ink); font-weight: 700; }
.track__status .live { color: var(--marker-ink); background: var(--marker); padding: 1px 6px; font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.track__status .stale { color: var(--ink-muted); border: 1px solid var(--ink-muted); padding: 0 6px; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.track__status .closed { color: var(--stock); background: var(--ink); padding: 1px 6px; font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }

.track-band--large .track-band__inner { padding: 24px 0 16px; }
.track-band--large .track__box { min-height: 56px; padding: 6px 0 5px; }
.track-band--large .track__hour { font-size: 0.875rem; }
.track-band--large .track__seal { width: auto; height: auto; border-radius: 0; border: 1px solid var(--ink); background: var(--stock-raised); box-shadow: none; font-size: 0.5625rem; font-weight: 800; line-height: 1.3; padding: 0 2px; color: var(--ink); }
.track-band--large .track__seal::after { content: attr(data-label); }
.track-band--large .track__seal--open { background: var(--ink); color: var(--stock); }
.track-band--large .track__box--armageddon .track__seal { border-color: var(--stock); background: var(--ink); color: var(--stock); }
.track-band--large .track__box--armageddon .track__seal--open { background: var(--stock); color: var(--ink); }
.track-band--large .track__box--now .track__seal { border-color: var(--marker-ink); background: var(--marker); color: var(--marker-ink); }
.track-band--large .track__box--now .track__seal--open { background: var(--marker-ink); color: var(--marker); }
.track-band--large .track__box[data-note]::after { content: attr(data-note); position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; font-size: 0.5rem; font-weight: 800; letter-spacing: 0.04em; color: var(--stock); }
.track-band--large .track__status { font-size: 1rem; margin-top: 12px; }
@media (max-width: 47.99rem) {
  .track__hour { font-size: 0.5625rem; }
  .track__box:nth-child(even):not(.track__box--now):not(.track__box--armageddon) .track__hour { visibility: hidden; }
  .track__seal { width: 5px; height: 5px; border-width: 1px; box-shadow: inset 0 0 0 1px var(--stock-raised); }
  .track__box--armageddon .track__seal { box-shadow: inset 0 0 0 1px var(--ink); }
  .track__box--now .track__seal { box-shadow: inset 0 0 0 1px var(--marker); }
  .track__marks { gap: 1px; padding: 0 1px; }
  .track-band--large .track__box { min-height: 44px; }
  .track-band--large .track__hour { font-size: 0.6875rem; }
}
@media (prefers-reduced-motion: reduce) { .track__tick { transition: none; } }

/* ---- the Hall: counters -------------------------------------------------- */
.hall { list-style: none; margin: 0; padding: 0; }
.hall__row {
  display: grid; grid-template-columns: 2.5rem 3.25rem minmax(0, 1fr) repeat(3, minmax(4.5rem, 7rem));
  align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--rule);
  position: relative;
}
.hall__row--empty { grid-template-columns: minmax(0, 1fr); }
.hall__row--moving { z-index: 2; }
.hall__rank { font-weight: 800; font-size: 1.25rem; font-variation-settings: 'wdth' 80; line-height: 1; }
.hall__delta { display: block; font-size: 0.6875rem; font-weight: 700; color: var(--ink-muted); letter-spacing: 0.04em; line-height: 1; margin-top: 3px; min-height: 0.7em; }
.hall__delta--up { color: var(--bloom-text); }
.hall__delta--down { color: var(--pyre-text); }
.hall__who { display: grid; gap: 2px; min-width: 0; }
.hall__name { font-weight: 700; font-size: 1rem; line-height: 1.15; overflow-wrap: anywhere; }
.hall__meta { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-muted); }
.hall__meta strong { font-weight: 800; color: var(--ink); }
.hall__num { text-align: right; font-weight: 700; font-size: 1.0625rem; line-height: 1.1; }
.hall__num small { display: none; font-size: 0.6875rem; font-weight: 600; color: var(--ink-muted); letter-spacing: 0.04em; text-transform: uppercase; }
.hall__head { display: grid; grid-template-columns: 2.5rem 3.25rem minmax(0, 1fr) repeat(3, minmax(4.5rem, 7rem)); gap: 12px; padding: 6px 0; background: var(--ink); color: var(--stock); }
.hall__head span { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-variation-settings: 'wdth' 80; padding: 0 4px; }
.hall__head span.num { text-align: right; }
@media (max-width: 47.99rem) {
  .hall__num small { display: block; }
  .hall__row, .hall__head { grid-template-columns: 2rem 3.25rem minmax(0, 1fr) minmax(4.5rem, 6rem); gap: 10px; }
  .hall__row .hall__num--land, .hall__row .hall__num--forts, .hall__head .num--land, .hall__head .num--forts { display: none; }
}

/* a die-cut counter: affinity initial on top, the Weight factor along the bottom edge */
.chit {
  display: grid; grid-template-rows: 1fr auto; align-items: start; justify-items: center;
  width: 3.25rem; height: 3.25rem; padding: 4px 4px 3px; border-radius: 2px; box-sizing: border-box;
  background: var(--stock-raised); color: var(--ink); border: 1px solid transparent;
  font-variant-numeric: tabular-nums;
}
.chit--lumen { background: var(--lumen); color: var(--lumen-ink); --c-muted: var(--lumen-muted); border-color: var(--rule); }
.chit--bloom { background: var(--bloom); color: var(--bloom-ink); --c-muted: var(--bloom-muted); }
.chit--pyre { background: var(--pyre); color: var(--pyre-ink); --c-muted: var(--pyre-muted); }
.chit--umbra { background: var(--umbra); color: var(--umbra-ink); --c-muted: var(--umbra-muted); border-color: var(--rule); }
.chit--reverie { background: var(--reverie); color: var(--reverie-ink); --c-muted: var(--reverie-muted); }
.chit--human { background: var(--human); color: var(--human-ink); --c-muted: var(--human-muted); }
.chit--plain { background: var(--plain); color: var(--plain-ink); --c-muted: var(--plain-muted); }
.chit--bot { border: 1px dashed currentColor; }
.chit__letter { font-weight: 800; font-size: 1.375rem; line-height: 1; font-variation-settings: 'wdth' 80; }
.chit__factor { font-size: 0.625rem; font-weight: 800; line-height: 1; letter-spacing: 0.02em; font-variation-settings: 'wdth' 85; }
.chit--sm { width: 1.5rem; height: 1.5rem; padding: 0; grid-template-rows: 1fr; align-items: center; display: inline-grid; vertical-align: -0.35em; margin-right: 8px; }
.chit--sm .chit__letter { font-size: 0.8125rem; }
.hall__row--moving .chit { box-shadow: var(--lift); }

/* the top ten on the landing page */
.strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0 32px; list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.strip .hall__row { grid-template-columns: 1.75rem 3.25rem minmax(0, 1fr); }
.strip__rank { font-weight: 800; font-size: 1.25rem; line-height: 1; font-variation-settings: 'wdth' 75; }

/* ---- the setup rule (the one line) --------------------------------------- */
.setup { background: var(--stock-raised); border: 1px solid var(--rule); padding: 24px; display: grid; gap: 16px; }
.setup__rule { font-family: var(--mono); font-size: clamp(1rem, 0.9rem + 0.6vw, 1.375rem); line-height: 1.4; margin: 0; overflow-wrap: anywhere; user-select: all; }
.setup__actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.setup__copied { font-size: 0.875rem; color: var(--ink-muted); }

/* ---- dispatch list (public events) --------------------------------------- */
.dispatch { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.dispatch li { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.dispatch .day { font-weight: 700; font-size: 0.875rem; color: var(--ink-muted); white-space: nowrap; }
.dispatch .day strong { color: var(--ink); }
.dispatch .empty { grid-column: 1 / -1; color: var(--ink-muted); }

/* ---- page sections ------------------------------------------------------- */
.section { padding: 48px 0 0; }
.section--rule { border-top: 1px solid var(--rule); margin-top: 48px; }
.section--tight { padding-top: 24px; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.section__head h2 { margin: 0; }
.section__head a { font-size: 0.9375rem; }
.two-col { display: grid; gap: 32px; }
@media (min-width: 64rem) { .two-col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; } .two-col--wide { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }

/* landing */
.hero { padding: 48px 0 0; display: grid; gap: 24px; }
@media (min-width: 64rem) { .hero { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: end; } }
.hero__kicker { margin: 0 0 16px; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-muted); }
.hero__kicker strong { color: var(--ink); }
.hero__copy { display: grid; gap: 20px; }
.hero .lede { margin: 0; }
.hero__facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.hero__facts li { padding: 10px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 12px; font-size: 0.9375rem; }
.hero__facts .label { color: var(--ink-muted); align-self: baseline; padding-top: 0.2em; }
.hero__facts strong { font-weight: 700; }
.moments { list-style: none; margin: 0; padding: 0; counter-reset: m; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.moments li { padding: 16px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 16px; align-items: baseline; }
.moments .who { font-weight: 800; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.04em; font-variation-settings: 'wdth' 80; }
.moments p { margin: 0; max-width: 60ch; }
.moments .lose .who { color: var(--pyre-text); }
.moments .win .who { color: var(--bloom-text); }
.rules { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; border-top: 1px solid var(--rule); max-width: var(--measure); }
.rules li { padding: 14px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 12px; }
.rules .n { font-weight: 800; font-variation-settings: 'wdth' 80; }
.rules p { margin: 0; }
.rules strong { display: block; margin-bottom: 2px; }
.clock-callout { border: 1px solid var(--rule); padding: 24px; display: grid; gap: 8px; background: var(--stock-raised); align-self: start; }
.clock-callout .label { color: var(--ink-muted); }
.clock-callout .big { font-weight: 800; font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem); line-height: 1.05; font-variation-settings: 'wdth' 80; }
.clock-callout .when { color: var(--ink-muted); font-size: 0.9375rem; }

/* page intro */
.page-head { padding: 40px 0 8px; display: grid; gap: 12px; }
.page-head .lede { margin: 0; }
.page-head__meta { color: var(--ink-muted); font-size: 0.9375rem; margin: 0; }

/* schedule */
.sched { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.sched li { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr) auto; gap: 12px 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.sched .what { font-weight: 700; }
.sched .what small { display: block; font-weight: 400; color: var(--ink-muted); font-size: 0.9375rem; }
.sched .when { text-align: right; font-weight: 700; }
.sched .when small { display: block; font-weight: 400; color: var(--ink-muted); font-size: 0.875rem; }
.sched li.past { color: var(--ink-muted); }
.sched li.past .what, .sched li.past .when { font-weight: 400; }
.sched li.next .glyph, .sched li.next .what { color: inherit; }
.sched .glyph { width: 2rem; height: 1.5rem; display: grid; place-items: center; border: 1px solid var(--rule); font-size: 0.625rem; font-weight: 800; letter-spacing: 0.04em; font-variation-settings: 'wdth' 80; background: var(--stock-sunk); }
.sched li.past .glyph { background: var(--stock); color: var(--ink-muted); }
.sched li.next .glyph { background: var(--marker); color: var(--marker-ink); border-color: var(--marker-ink); }
.countdown { display: grid; gap: 4px; padding: 24px 0 8px; }
.countdown .big { font-weight: 800; font-variation-settings: 'wdth' 78; font-size: clamp(2rem, 1.4rem + 3vw, 4rem); line-height: 1; letter-spacing: -0.01em; }
.countdown .what { font-size: 1.125rem; }
.countdown .zone { color: var(--ink-muted); font-size: 0.9375rem; }

/* content (wiki, world, docs, lab) */
.doc { display: grid; gap: 40px; padding-top: 8px; }
.doc > * { min-width: 0; }
@media (min-width: 64rem) { .doc { grid-template-columns: minmax(0, 1fr) 16rem; gap: 64px; align-items: start; } }
.toc { position: sticky; top: 16px; font-size: 0.9375rem; border-top: 1px solid var(--rule); padding-top: 12px; }
.toc .label { color: var(--ink-muted); margin: 0 0 8px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.toc a[aria-current="page"] { font-weight: 700; }
.index-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); max-width: 50rem; }
.index-list li { padding: 16px 0; border-bottom: 1px solid var(--rule); display: grid; gap: 4px; }
.index-list a { font-weight: 700; font-size: 1.125rem; text-decoration: none; }
.index-list a:hover { text-decoration: underline; }
.index-list p { margin: 0; color: var(--ink-muted); max-width: 60ch; }
.empty-state { border: 1px dashed var(--ink-muted); padding: 24px; color: var(--ink-muted); max-width: var(--measure); }

/* lab */
.game-card { border-top: 1px solid var(--rule); padding: 20px 0 24px; display: grid; gap: 8px; }
.game-card a { font-weight: 800; font-size: 1.375rem; text-decoration: none; font-variation-settings: 'wdth' 85; line-height: 1.1; }
.game-card a:hover { text-decoration: underline; }
.game-card p { margin: 0; max-width: 64ch; }
.game-card .date { color: var(--ink-muted); font-size: 0.875rem; }
.kv { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0 32px; border-top: 1px solid var(--rule); }
.kv li { padding: 8px 0; border-bottom: 1px solid var(--rule); display: grid; gap: 2px; }
.kv .label { color: var(--ink-muted); }
.standings td.seat { font-weight: 700; }
.standings td.note { color: var(--ink-muted); font-size: 0.875rem; }

/* claim */
.claim { max-width: 44rem; display: grid; gap: 24px; padding-top: 8px; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; border-top: 1px solid var(--rule); }
.steps li { counter-increment: s; display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.steps li::before { content: counter(s); font-weight: 800; font-size: 1.25rem; font-variation-settings: 'wdth' 80; line-height: 1.2; }
.steps p { margin: 0 0 8px; }
.steps p:last-child { margin: 0; }
.code-box { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; background: var(--stock-raised); border: 1px solid var(--rule); padding: 12px 16px; }
.code-box code { font-size: 1.125rem; font-weight: 700; user-select: all; }
.result { border: 1px solid var(--rule); padding: 20px 24px; display: grid; gap: 6px; }
.result--ok h2 { color: var(--bloom-text); }
.result--error h2 { color: var(--pyre-text); }
.result h2 { margin: 0; font-size: 1.25rem; }
.result p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* utilities (replace inline styles so the CSP can stay strict) */
.m-0 { margin: 0; }
.m-0-x { margin-left: 0; margin-right: 0; margin-bottom: 0; }
.mt-sm { margin-top: 8px; }
.mt-xl { margin-top: 32px; }
.small-note { font-size: 0.9375rem; max-width: 66ch; }

/* not found */
.notfound { padding: 64px 0; display: grid; gap: 16px; }
