@font-face{font-family:'Fraunces';font-style:italic;font-weight:300 900;font-display:swap;src:url(fonts/fraunces-italic-latin-ext.woff2?v=2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Fraunces';font-style:italic;font-weight:300 900;font-display:swap;src:url(fonts/fraunces-italic-latin.woff2?v=2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Fraunces';font-style:normal;font-weight:300 900;font-display:swap;src:url(fonts/fraunces-normal-latin-ext.woff2?v=2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Fraunces';font-style:normal;font-weight:300 900;font-display:swap;src:url(fonts/fraunces-normal-latin.woff2?v=2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Source Serif 4';font-style:italic;font-weight:300 700;font-display:swap;src:url(fonts/source-serif-4-italic-latin-ext.woff2?v=2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Source Serif 4';font-style:italic;font-weight:300 700;font-display:swap;src:url(fonts/source-serif-4-italic-latin.woff2?v=2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Source Serif 4';font-style:normal;font-weight:300 700;font-display:swap;src:url(fonts/source-serif-4-normal-latin-ext.woff2?v=2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Source Serif 4';font-style:normal;font-weight:300 700;font-display:swap;src:url(fonts/source-serif-4-normal-latin.woff2?v=2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
/* ---------- tokens ---------- */
:root {
  color-scheme: light;
  --paper: #f5efe3;
  --paper-deep: #ece3d2;
  --surface: #fcf8f0;
  --ink: #1a1712;
  --ink-soft: #3b352c;
  --ink-muted: #4a4237;
  --rule: #d9cdb6;
  --rule-strong: #b6a88c;
  --accent: #1c4a7e;
  --accent-text: #164070;
  --on-accent: #fdf8ee;
  --gold: #74490c;
  --celi: #8c1d18;
  --shadow: 0 1px 2px #1c181414, 0 8px 24px #1c181412;
  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --bar: 2.75rem;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #11130f;
    --paper-deep: #1a1c16;
    --surface: #1d201a;
    --ink: #f0ebde;
    --ink-soft: #dcd5c6;
    --ink-muted: #c0b8a6;
    --rule: #343a2e;
    --rule-strong: #545b49;
    --accent: #e2aa5c;
    --accent-text: #f0bd75;
    --on-accent: #15130d;
    --gold: #e2c36a;
    --celi: #ef8a80;
    --shadow: 0 1px 2px #0006, 0 8px 24px #0005;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #11130f;
  --paper-deep: #1a1c16;
  --surface: #1d201a;
  --ink: #f0ebde;
  --ink-soft: #dcd5c6;
  --ink-muted: #c0b8a6;
  --rule: #343a2e;
  --rule-strong: #545b49;
  --accent: #e2aa5c;
  --accent-text: #f0bd75;
  --on-accent: #15130d;
  --gold: #e2c36a;
  --celi: #ef8a80;
  --shadow: 0 1px 2px #0006, 0 8px 24px #0005;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html, body { overflow-x: clip; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--serif); font-size: 1.125rem; line-height: 1.62;
  font-optical-sizing: auto; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; color: var(--ink); text-wrap: balance; }
section { scroll-margin-top: calc(var(--bar) + .5rem); }
section[tabindex="-1"]:focus-visible { outline: none; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 72rem; margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--ink); color: var(--paper); padding: .5rem .8rem; border-radius: 4px; }
.skip:focus { left: .8rem; top: .8rem; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: .55rem;
  min-height: var(--bar); padding: .3rem var(--gutter);
  padding-top: calc(.3rem + env(safe-area-inset-top, 0px));
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: saturate(1.3) blur(10px); -webkit-backdrop-filter: saturate(1.3) blur(10px);
  border-bottom: 1px solid var(--rule); font-family: var(--sans); font-size: .78rem;
}
.topbar .home { font-weight: 650; color: var(--ink-soft); text-decoration: none; flex: none; padding-block: .35rem; }
.topbar .spacer { flex: 1; }
.topnav {
  display: flex; gap: .1rem; overflow-x: auto; scrollbar-width: none; min-width: 6rem; flex: 1 1 auto; align-self: stretch; margin-left: .25rem;
  mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 1.6rem), transparent 100%);
}
.topnav::-webkit-scrollbar { display: none; }
.topnav a { display: flex; align-items: center; padding: .25rem .55rem; border-radius: 999px; text-decoration: none; color: var(--ink-muted); white-space: nowrap; }
.topnav a:hover { color: var(--accent-text); background: var(--paper-deep); }
.topnav a[aria-current="true"] { color: var(--ink); background: var(--paper-deep); font-weight: 650; }
.chip {
  display: inline-flex; align-items: center; padding: .22rem .6rem; border-radius: 999px; flex: none; position: relative;
  border: 1px solid var(--ink-muted); color: var(--ink-soft); text-decoration: none; background: var(--surface);
}
.chip:hover { border-color: var(--accent); color: var(--accent-text); }
.chip::before, .icon-btn::before { content: ""; position: absolute; inset: 50% auto auto 50%; width: 2.75rem; height: 2.75rem; transform: translate(-50%, -50%); }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; flex: none; position: relative;
  width: 1.95rem; height: 1.95rem; padding: 0; border-radius: 999px; cursor: pointer;
  color: var(--ink-muted); background: var(--surface); border: 1px solid var(--ink-muted);
}
.icon-btn:hover { color: var(--accent-text); border-color: var(--accent); }
.icon-btn svg { display: block; }
.icon-btn svg[hidden] { display: none; }
@media (max-width: 34rem) {
  .topbar { gap: .35rem; }
  .topbar .home { max-width: 5.6rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topnav a { padding: .25rem .4rem; }
}

/* ---------- reading rail ---------- */
.rail { display: none; position: fixed; top: 50%; right: 1.1rem; transform: translateY(-50%); flex-direction: column; align-items: flex-end; gap: .5rem; z-index: 30; }
@media (min-width: 88rem) { .rail { display: flex; } }
.rail-dot { position: relative; display: flex; align-items: center; justify-content: flex-end; width: 14px; padding: .15rem 0; text-decoration: none; }
.rail-dot .dot { display: block; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-muted); transition: background-color .15s, transform .15s; }
.rail-dot:hover .dot, .rail-dot:focus-visible .dot { background: var(--ink-soft); }
.rail-dot.active .dot { background: var(--accent); transform: scale(1.5); }
.rail-label {
  position: absolute; right: 100%; top: 50%; margin-top: -.85rem; margin-right: .5rem;
  font-family: var(--sans); font-size: .75rem; line-height: 1.2; color: var(--ink-soft); white-space: nowrap;
  background: var(--surface); border: 1px solid var(--rule); border-radius: 4px; padding: .25rem .55rem; box-shadow: var(--shadow);
  opacity: 0; transform: translateX(6px); pointer-events: none; transition: opacity .12s, transform .12s;
}
.rail-dot:hover .rail-label, .rail-dot:focus-visible .rail-label { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rail-dot .dot, .rail-label, .card { transition: none; } }
@media print { .rail, .topbar { display: none; } }

/* ---------- hero: the dark hall ---------- */
.hero {
  position: relative; isolation: isolate; overflow: clip;
  background:
    radial-gradient(55rem 30rem at 82% 10%, #57330f 0%, transparent 60%),
    radial-gradient(46rem 30rem at 6% 96%, #1d3260 0%, transparent 55%),
    linear-gradient(180deg, #17110b 0%, #1e1510 50%, #12100d 100%);
  color: #f5eddc;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: repeating-linear-gradient(180deg,
    #f5eddc1a 0 1px, transparent 1px 22px,
    #f5eddc1a 22px 23px, transparent 23px 44px,
    #f5eddc1a 44px 45px, transparent 45px 66px,
    #f5eddc1a 66px 67px, transparent 67px 88px,
    #f5eddc1a 88px 89px, transparent 89px 200px);
  mask-image: linear-gradient(180deg, transparent 0, #000 18%, #000 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 18%, #000 70%, transparent 100%);
}
.hero::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  width: 34rem; height: 34rem; right: -8rem; top: -6rem; border-radius: 50%;
  background: radial-gradient(circle, #f2c87933 0%, transparent 65%);
}
.hero-inner {
  position: relative; z-index: 1; max-width: 96rem; margin: 0 auto;
  padding: clamp(2.2rem, 6vw, 4rem) var(--gutter) clamp(2.5rem, 6vw, 4rem);
  display: grid; gap: 1.8rem 3rem;
}
@media (min-width: 64rem) {
  .hero-inner { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center; min-height: calc(100svh - var(--bar)); }
  .hero-text { grid-column: 1; grid-row: 1; align-self: end; }
  .hero-fig { grid-column: 2; grid-row: 1 / span 2; }
  .hero-rest { grid-column: 1; grid-row: 2; align-self: start; }
}
.kicker { font-family: var(--sans); font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); margin: 0 0 .9rem; }
.hero .kicker { color: #e8b96f; }
.hero h1 { color: #faf5e9; font-size: clamp(2.4rem, 5.6vw, 4.6rem); line-height: 1; letter-spacing: -.025em; margin: 0; font-weight: 640; }
@media (max-width: 63.99rem) {
  .hero h1 { font-size: clamp(2.3rem, 11vw, 3.2rem); }
}
.hero .deck { font-size: clamp(1.05rem, 1.7vw, 1.22rem); line-height: 1.5; color: #e9dfc9; margin: 0 0 1.4rem; max-width: 40rem; }
.hero .byline { font-family: var(--sans); font-size: .82rem; color: #b7ab90; margin: 0; }
.hero :focus-visible { outline-color: #f4cd8a; }
.hero-fig { margin: 0; display: grid; gap: 1.1rem; justify-items: center; align-content: start; }
.hero-fig .figure { margin: 0; width: min(100%, 23rem); }
.hero-fig .figure.portrait img {
  width: 100%; max-height: none; border-radius: 12rem 12rem 10px 10px;
  border: 1px solid #e8b96f66;
  box-shadow: 0 0 0 6px #00000040, 0 24px 60px #00000080, 0 0 90px #f2c87922;
}
.hero-fig figcaption { color: #cbbb9e; }
.hero-fig .credit a { color: #cbbb9e; }
.hero-numeral { text-align: center; border-top: 1px solid #e8b96f40; padding-top: 1rem; width: min(100%, 23rem); }
.numeral-label { margin: 0 0 .2rem; font-family: var(--sans); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #e8b96f; }
.numeral { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(3.4rem, 8vw, 5.2rem); line-height: 1; letter-spacing: -.03em; color: #faf5e9; font-variant-numeric: tabular-nums lining-nums; text-shadow: 0 0 40px #f2c87933; }
.numeral-note { margin: .3rem 0 0; font-family: var(--sans); font-size: .85rem; color: #cbbb9e; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 0 0 1.5rem; padding: 0; background: #e8b96f33; border: 1px solid #e8b96f33; border-radius: 10px; overflow: hidden; max-width: 40rem; }
.hero-stats > div { background: #ffffff0d; padding: .7rem .9rem; }
.hero-stats dt { font-family: var(--display); font-weight: 700; font-size: clamp(1.1rem, 2.4vw, 1.45rem); line-height: 1.1; color: #faf5e9; font-variant-numeric: tabular-nums lining-nums; margin: 0; }
.hero-stats dd { margin: .15rem 0 0; font-family: var(--sans); font-size: .76rem; line-height: 1.4; color: #cbbb9e; }
@media (max-width: 30rem) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stats > div:last-child { grid-column: 1 / -1; }
}
.hero-cta { margin: 0 0 1.2rem; }
.hero .cta { display: inline-flex; align-items: center; gap: .6rem; padding: .8rem 1.5rem; border-radius: 999px; background: #e8b96f; color: #1c1410; font: 700 .95rem var(--sans); text-decoration: none; min-height: 2.75rem; }
.hero .cta:hover { background: #f4cd8a; color: #1c1410; }
.hero .cta svg { display: block; }
.hero .share-line { color: #b7ab90; }
.hero .share-btn { color: #f4cd8a; }
@media print {
  .hero { background: #fff; color: #000; }
  .hero::before, .hero::after { display: none; }
  .hero h1, .hero .deck, .hero-stats dt, .numeral { color: #000; text-shadow: none; }
  .hero .kicker, .numeral-label, .numeral-note, .hero .byline, .hero-fig figcaption { color: #333; }
}

/* ---------- figures ---------- */
.figure { margin: 1.8rem 0; }
.figure img { width: 100%; height: auto; border-radius: 6px; background: var(--paper-deep); box-shadow: var(--shadow); }
.figure.portrait img { max-height: 34rem; width: auto; max-width: 100%; margin-inline: auto; }
figcaption { font-family: var(--sans); font-size: .82rem; line-height: 1.45; color: var(--ink-muted); margin-top: .6rem; }
.credit { display: block; margin-top: .15rem; }
.credit a { color: var(--ink-muted); }

/* ---------- sections ---------- */
.story, .words, .paradox, .tempi, .game, .sources { padding: 4rem 0 3rem; border-top: 1px solid var(--rule); }
.story h2, .words h2, .paradox h2, .tempi h2, .game h2, .sources h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); line-height: 1.1; letter-spacing: -.015em; margin: 0 0 1rem; }
.section-intro { max-width: 44rem; color: var(--ink-soft); margin: 0 0 1.8rem; }

/* ---------- story ---------- */
.era { display: grid; gap: 0 2.5rem; padding: 2.2rem 0; border-top: 1px solid var(--rule); }
.era:first-of-type { border-top: 0; padding-top: 0; }
@media (min-width: 64rem) { .era { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; } .era .figure { margin: 0; } }
.era-years { margin: 0 0 .3rem; font-family: var(--display); font-weight: 700; font-size: .95rem; letter-spacing: .18em; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.era h3 { margin: 0 0 .8rem; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.1; }
.era-text p { margin: 0 0 1rem; max-width: 44rem; }
.era-note { font-family: var(--sans); font-size: .9rem; color: var(--ink-muted); border-left: 3px solid var(--accent); padding-left: .7rem; }

/* ---------- words ---------- */
.pull { margin: 0 0 2rem; padding: 1.1rem 0 0; border-top: 2px solid var(--accent); max-width: 46rem; }
.pull-label { margin: 0 0 .5rem; font-family: var(--sans); font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); }
.pull blockquote { margin: 0; }
.pull blockquote p { margin: 0; font-family: var(--display); font-size: clamp(1.15rem, 2.4vw, 1.45rem); line-height: 1.35; color: var(--ink); }
.q-original { margin: .7rem 0 0; font-size: .95rem; color: var(--ink-soft); font-style: italic; }
.pull figcaption { margin-top: .6rem; font-family: var(--sans); font-size: .82rem; color: var(--ink-muted); }
.words-close { max-width: 46rem; }

/* ---------- paradox ---------- */
.myth-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 1.2rem; counter-reset: myth; }
.myth-list li { counter-increment: myth; background: var(--surface); border: 1px solid var(--rule); border-top: 3px solid var(--celi); border-radius: 10px; padding: 1.1rem 1.15rem 1.2rem; box-shadow: var(--shadow); }
.myth-list h3 { font-size: 1.3rem; line-height: 1.2; margin: 0 0 .5rem; }
.myth-list h3::before {
  content: counter(myth, upper-roman); display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; margin-right: .6rem; vertical-align: .1em;
  border: 2px solid var(--celi); border-radius: 50%; color: var(--celi);
  font-family: var(--sans); font-size: .8rem; font-weight: 800; letter-spacing: .02em;
  transform: rotate(-6deg);
}
.myth-list p { margin: 0; color: var(--ink-soft); font-size: 1.02rem; }
.paradox-note { max-width: 46rem; margin-top: 1.6rem; font-style: italic; color: var(--ink-soft); }

/* ---------- tempi ---------- */
.sym-switch { display: flex; gap: .5rem; margin-bottom: 1.6rem; }
.sym-switch button {
  font: 650 .92rem var(--sans); padding: .6rem 1.1rem; border-radius: 999px; cursor: pointer; min-height: 2.75rem;
  color: var(--ink); background: var(--surface); border: 1.5px solid var(--ink-muted);
}
.sym-switch button:hover { border-color: var(--accent); color: var(--accent-text); }
.sym-switch button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.sym-panel + .sym-panel { margin-top: 2.5rem; border-top: 1px dashed var(--rule-strong); padding-top: 2.5rem; }
.js .sym-panel[hidden] { display: none; }
.js .sym-panel + .sym-panel { margin-top: 0; border-top: 0; padding-top: 0; }
.race { margin-bottom: 1.8rem; }
.lane { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name time" "track track"; gap: .15rem .8rem; align-items: baseline; padding: .7rem 0; border-top: 1px solid var(--rule); }
.lane:first-child { border-top: 0; }
.lane-name { grid-area: name; margin: 0; font-family: var(--sans); font-size: .92rem; }
.lane-who { font-weight: 700; }
.lane.celi .lane-who { color: var(--celi); }
.lane-note { color: var(--ink-muted); font-size: .8rem; }
.lane-time { grid-area: time; margin: 0; font-family: var(--display); font-weight: 700; font-size: 1.25rem; font-variant-numeric: tabular-nums lining-nums; }
.lane.celi .lane-time { color: var(--celi); }
.track { grid-area: track; position: relative; height: 1.9rem; }
.segs-svg { display: block; width: 100%; height: 1.15rem; border-radius: 999px; overflow: hidden; background: var(--paper-deep); border: 1px solid var(--rule); }
.segs-svg rect { fill: var(--rule-strong); opacity: .55; stroke: var(--surface); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.lane.celi .segs-svg rect { fill: var(--celi); opacity: .8; }
.dot {
  position: absolute; top: 1.15rem; left: 0; width: .8rem; height: .8rem; margin: -.4rem 0 0 -.4rem; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--ink-muted);
}
.lane.celi .dot { border-color: var(--celi); }
.lane.finished .dot { background: var(--ink); }
.lane.celi.finished .dot { background: var(--celi); }
.lane .place { font-family: var(--sans); font-size: .72rem; font-weight: 700; color: var(--ink-muted); margin-left: .4rem; }
.race-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin: 1rem 0 .4rem; }
.race-hint { font-family: var(--sans); font-size: .82rem; color: var(--ink-muted); }
.race-note { font-style: italic; color: var(--ink-soft); max-width: 44rem; min-height: 1.5em; margin: .2rem 0 0; }
.race-note:empty { display: none; }
.table-scroll { overflow-x: auto; margin-bottom: 1.2rem; }
.tempi table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: .88rem; font-variant-numeric: tabular-nums; }
.tempi caption { text-align: left; font-size: .82rem; color: var(--ink-muted); padding-bottom: .5rem; }
.tempi th, .tempi td { text-align: left; padding: .55rem .5rem; border-bottom: 1px solid var(--rule); }
.tempi thead th { font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); font-weight: 700; }
.tempi tbody th { font-weight: 600; }
.tempi tbody tr:first-child th, .tempi tbody tr:first-child td.tot { color: var(--celi); }
.tempi td.tot { font-weight: 700; }
.verdict { max-width: 46rem; font-family: var(--display); font-size: clamp(1.15rem, 2.4vw, 1.4rem); line-height: 1.4; border-left: 4px solid var(--celi); padding-left: 1rem; }
.lane-gap { font-family: var(--sans); font-size: .76rem; font-weight: 700; color: var(--ink-muted); background: var(--paper-deep); border: 1px solid var(--rule); border-radius: 999px; padding: .1rem .55rem; margin-left: .5rem; white-space: nowrap; }
.edition-note { max-width: 46rem; font-size: .95rem; color: var(--ink-soft); border-left: 3px solid var(--gold); padding-left: .8rem; }

/* ---------- game ---------- */
.game { background: var(--paper-deep); }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 1rem; }
.card {
  position: relative; display: flex; flex-direction: column; padding: 1.1rem 1.1rem 1rem; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--rule); box-shadow: var(--shadow);
  transition: transform .25s, border-color .25s;
}
.card-num { position: absolute; right: .9rem; top: .7rem; margin: 0; font-family: var(--display); font-weight: 700; font-size: 1.6rem; color: var(--ink-muted); line-height: 1; }
.card-place { margin: 0 2rem .5rem 0; font-size: 1.25rem; line-height: 1.2; }
.card-q { margin: 0 0 .9rem; font-size: 1rem; font-weight: 600; }
.card-buttons { display: flex; gap: .5rem; margin-top: auto; }
.card-buttons button, .btn {
  flex: 1; font: 650 .92rem var(--sans); padding: .6rem .8rem; border-radius: 999px; cursor: pointer; text-decoration: none; text-align: center;
  color: var(--ink); background: var(--paper); border: 1.5px solid var(--ink-muted); min-height: 2.75rem;
  transition: background-color .15s, border-color .15s, color .15s, transform .1s;
}
.card-buttons button:hover, .btn:hover { border-color: var(--accent); color: var(--accent-text); }
.card-buttons button:active, .btn:active { transform: scale(.97); }
.card-buttons button.chosen { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.card-buttons button:disabled { cursor: default; }
.card-buttons button:disabled:not(.chosen) { opacity: .62; }
.card-verdict { margin: .6rem 0 0; font: 700 .8rem var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.card-verdict:empty { display: none; }
.card.right { border-color: var(--gold); }
.card.right .card-verdict { color: var(--gold); }
.card.wrong .card-verdict { color: var(--accent-text); }
.card.answered { transform: translateY(-2px); }
.card-answer { margin-top: .6rem; font-size: .98rem; }
.card-answer summary { font: 600 .82rem var(--sans); color: var(--ink-muted); cursor: pointer; }
.card-answer p { margin: .4rem 0 .5rem; }
.game.ready .card-answer summary { display: none; }
.card-verdict:focus { outline: none; }
.card-verdict:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.game.ready .card:not(.answered) .card-answer { display: none; }
.scoreboard { margin-top: 1.6rem; padding: 1.2rem; border-radius: 10px; background: var(--surface); border: 1px solid var(--rule); display: grid; gap: .6rem; }
.score { margin: 0; font-family: var(--display); font-weight: 650; font-size: 1.35rem; }
.score-done { margin: 0; color: var(--ink-soft); min-height: 1.5em; }
.score-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.share-status { font: 600 .85rem var(--sans); color: var(--accent-text); }
.score-actions .btn { flex: 0 1 auto; }
.btn.share { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.share:hover { color: var(--on-accent); filter: brightness(1.08); }
.race-btn { flex: 0 1 auto; }

/* ---------- share line ---------- */
.share-line { margin: 0.6rem 0 0; font-size: 0.86rem; color: var(--ink-muted); display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
.share-btn { font: inherit; color: var(--accent-text); background: none; border: 0; padding: 0.3rem 0; min-height: 2.75rem; cursor: pointer; text-decoration: underline; text-underline-offset: 0.18em; }
.share-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.share-note { min-height: 1em; }

/* ---------- sources ---------- */
.sources { font-size: 1rem; }
.sources > .wrap > p { max-width: 46rem; color: var(--ink-soft); }
.src-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: 1.2rem 2rem; margin-top: 2rem; }
.src-group h3, .img-heading { font-family: var(--sans); font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); margin: 0 0 .4rem; }
.img-heading { margin-top: 2.2rem; }
.src-group ul, .img-credits { margin: 0; padding-left: 1.1rem; font-family: var(--sans); font-size: .86rem; line-height: 1.5; }
.src-group li, .img-credits li { margin-bottom: .35rem; overflow-wrap: anywhere; }
.img-credits { color: var(--ink-soft); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--rule); padding: 2rem var(--gutter) calc(2.5rem + env(safe-area-inset-bottom, 0px)); text-align: center; font-family: var(--sans); font-size: .88rem; color: var(--ink-muted); }
.site-footer p { margin: 0; }

/* ---------- 404 ---------- */
.nf-main { padding-block: 5rem; max-width: 40rem; }
.nf-main .btn { display: inline-block; }

@media (max-width: 40rem) {
  .lane-note { display: block; }
  .tempi table { font-size: .8rem; }
  .tempi th, .tempi td { padding: .45rem .35rem; }
}
