:root {
  --bg-0: #0a0b0d;
  --bg-1: #101216;
  --bg-2: #16181d;
  --bg-3: #1d2026;
  --line-0: #22252c;
  --line-1: #2e323a;
  --line-2: #3f444e;
  --ink-0: #eceef1;
  --ink-1: #a2a8b4;
  --ink-2: #5d6370;
  --gold: #e09a4e;
  --gold-dim: #9a6a33;
  --gold-glow: rgba(224, 154, 78, 0.16);
  --ok-text: #3dd68c;
  --ok-fill: #30a46c;
  --ok-bg: rgba(48, 164, 108, 0.12);
  --bad-text: #ff9592;
  --bad-fill: #e5484d;
  --bad-bg: rgba(229, 72, 77, 0.14);
  --warn-text: #d9a23d;
  --warn-bg: rgba(217, 162, 61, 0.12);
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --t-fast: 120ms;
  --t-base: 200ms;
  --t-slow: 320ms;
  --t-tween: 640ms;
  --r-s: 6px;
  --r-m: 10px;
  --r-l: 14px;
  --font-ui: "Geist", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-display: "Anton", Impact, var(--font-ui);
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-0);
  color: var(--ink-0);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}
body.flat #scene { display: none; }
body.flat { background: radial-gradient(120% 90% at 50% 0%, #121319 0%, var(--bg-0) 70%); }
.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(130% 100% at 50% 50%, transparent 55%, rgba(5, 6, 8, 0.55) 100%),
    linear-gradient(to bottom, rgba(10, 11, 13, 0.5), transparent 18%, transparent 82%, rgba(10, 11, 13, 0.6));
}

main { position: relative; z-index: 2; }

/* ---------- HUD ---------- */
.hud {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand svg { border-radius: var(--r-s); display: block; }

.chainbadge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line-1);
  border-radius: 99px;
  font-size: 12px;
  color: var(--ink-1);
  background: rgba(16, 18, 22, 0.7);
  backdrop-filter: blur(8px);
}
.chainbadge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok-fill); }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-1);
  background: rgba(22, 24, 29, 0.75);
  border: 1px solid var(--line-0);
  border-radius: var(--r-s);
  padding: 4px 8px;
  transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.chip:hover { border-color: var(--line-2); color: var(--ink-0); }
.chip.copied { color: var(--ok-text); border-color: var(--ok-fill); }

/* ---------- chapter rail ---------- */
.rail {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.rail a { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.rail i {
  width: 6px; height: 6px;
  border-radius: 1px;
  background: var(--line-2);
  transition: background var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.rail span {
  font-size: 11px;
  color: var(--ink-2);
  opacity: 0;
  transform: translateX(4px);
  transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}
.rail a:hover span { opacity: 1; transform: none; }
.rail a.on i { background: var(--gold); box-shadow: 0 0 10px var(--gold-glow); }
.rail a.on span { opacity: 1; transform: none; color: var(--ink-1); }
@media (max-width: 900px) { .rail { display: none; } }

/* ---------- chapters ---------- */
.chapter {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 90px 22px;
}
.beat {
  width: 100%;
  max-width: 1020px;
  margin: 0 auto;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
}
.chapter h2 {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.6vw, 72px);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.04;
  margin: 0 0 30px;
  letter-spacing: 0.015em;
  text-shadow: 0 2px 24px rgba(5, 6, 8, 0.8);
  position: relative;
  padding-bottom: 18px;
}
.chapter h2::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 1px;
  width: 0;
  background: linear-gradient(90deg, var(--gold), transparent);
  box-shadow: 0 0 14px var(--gold);
  transition: width 900ms var(--ease) 150ms;
}
.chapter.lit h2::after { width: min(420px, 70%); }
.hero-beat { display: flex; }
.hero-copy { max-width: 480px; }
.hero-beat .display {
  font-family: var(--font-display);
  font-size: clamp(58px, 8.6vw, 124px);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.98;
  letter-spacing: 0.01em;
  margin: 14px 0 24px;
  text-shadow: 0 2px 40px rgba(5, 6, 8, 0.9), 0 0 60px rgba(224, 154, 78, 0.12);
}
.lede {
  color: var(--ink-1);
  font-size: 15px;
  line-height: 1.75;
  max-width: 560px;
  margin: 0;
}
.oath-beat .lede { margin: 0 auto; }

/* ---------- 3D annotations ---------- */
.anno {
  position: fixed;
  top: 0; left: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  display: flex;
  align-items: center;
  gap: 0;
  transition: opacity var(--t-base) var(--ease);
}
.anno i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold-glow);
  flex-shrink: 0;
}
.anno i::after {
  content: "";
  display: block;
  position: relative;
  top: 3px; left: 7px;
  width: 54px;
  border-top: 1px solid var(--gold-dim);
}
.anno span {
  margin-left: 64px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-1);
  background: rgba(10, 11, 13, 0.72);
  padding: 4px 9px;
  border: 1px solid var(--line-0);
  border-radius: var(--r-s);
  white-space: nowrap;
}
@media (max-width: 900px) { .anno { display: none; } }
.scroll-cue {
  margin-top: 60px;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: 0 0 12px var(--gold-glow);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink-2);
  animation: cue 2.4s var(--ease) infinite;
}
.oath-beat { text-align: center; }
.oath-beat .verify-cmd.big {
  max-width: 420px;
  margin: 28px auto 0;
  font-size: 14px;
  justify-content: center;
  padding: 14px 18px;
  border-color: var(--gold-dim);
  box-shadow: 0 0 34px var(--gold-glow);
}
.foot-sign { margin-top: 70px; color: var(--ink-2); font-size: 12px; }

/* ---------- glass cards ---------- */
.stage, .counter, .seller-card, .ledger {
  background: transparent;
}

a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; padding: 0; }

/* ---------- stage ---------- */
.stage {
  margin-top: 24px;
  position: relative;
}

.stage-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(224, 154, 78, 0.14);
  font-size: 12px;
  color: var(--ink-1);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.stage-head .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ink-2);
}
.stage.live .stage-head .pulse { background: var(--gold); animation: heartbeat 2s ease-in-out infinite; }
.stage-title { font-weight: 500; color: var(--ink-0); }
.stage-rail {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.stage-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 300px; }
@media (max-width: 760px) { .stage-body { grid-template-columns: 1fr; } }

.steps { padding: 16px 0 16px 22px; position: relative; overflow-y: auto; max-height: 380px; }
.steps::before { content: ""; position: absolute; left: 6px; top: 20px; bottom: 20px; width: 1px; background: linear-gradient(var(--gold-dim), transparent); box-shadow: 0 0 8px var(--gold-glow); }

.step-row {
  display: flex;
  gap: 10px;
  padding: 7px 0;
  font-size: 13px;
  color: var(--ink-1);
  align-items: baseline;
}
.step-row .n {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-2);
  min-width: 22px;
}
.step-row.running { color: var(--ink-0); }
.step-row.running .n { color: var(--gold); }
.step-row.running .spin {
  display: inline-block;
  width: 10px; height: 10px;
  border: 1.5px solid var(--gold-dim);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: rotate 0.8s linear infinite;
  margin-right: 2px;
  vertical-align: -1px;
}
.step-row.done .mark { color: var(--ok-text); text-shadow: 0 0 12px rgba(61, 214, 140, 0.7); }
.step-row.failed { color: var(--bad-text); }
.step-row.failed .mark { color: var(--bad-text); text-shadow: 0 0 12px rgba(255, 149, 146, 0.7); }
.idle-note { color: var(--ink-2); font-size: 13px; padding: 24px 0; text-align: center; }
.idle-note .mono { font-family: var(--font-mono); font-size: 12px; }

.shot {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  position: relative;
  min-height: 300px;
  margin: 16px 0;
  border: 1px solid var(--gold-dim);
  box-shadow: 0 0 30px var(--gold-glow), inset 0 0 50px rgba(0, 0, 0, 0.5);
}
.shot::before, .shot::after {
  position: absolute;
  font-family: var(--font-mono);
  color: var(--gold);
  font-size: 13px;
  text-shadow: 0 0 10px var(--gold-glow);
  z-index: 1;
}
.shot::before { content: "⊕"; top: 6px; left: 8px; }
.shot::after { content: "⊕"; bottom: 6px; right: 8px; }
.shot img {
  max-width: 100%;
  max-height: 380px;
  display: block;
  opacity: 0;
  cursor: zoom-in;
  filter: brightness(0.72) contrast(1.05) saturate(0.9);
  transition: opacity var(--t-slow) var(--ease), filter var(--t-base) var(--ease);
}
.shot img:hover { filter: brightness(0.9) contrast(1.02); }
.shot img.on { opacity: 1; }
.shot .placeholder { color: var(--ink-2); font-size: 12px; }
.shot .shot-count {
  position: absolute;
  bottom: 10px; right: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-1);
  background: rgba(10, 11, 13, 0.8);
  padding: 2px 8px;
  border-radius: var(--r-s);
}

.verdict-banner {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-top: 1px solid var(--line-0);
  font-size: 13px;
}
.verdict-banner.on { display: flex; }
.verdict-banner { padding: 14px 0 0; border-top: 1px solid rgba(255, 255, 255, 0.08); background: transparent; }
.verdict-banner.ok { color: var(--ok-text); text-shadow: 0 0 16px rgba(61, 214, 140, 0.5); border-top-color: rgba(48, 164, 108, 0.4); }
.verdict-banner.bad { color: var(--bad-text); text-shadow: 0 0 16px rgba(255, 149, 146, 0.5); border-top-color: rgba(229, 72, 77, 0.4); }
.verdict-banner .glyph { font-weight: 700; }
.verdict-banner .detail { color: var(--ink-1); font-size: 12px; }

/* ---------- counters ---------- */
.counters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.counter { padding: 0; }
.counter .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-2);
}
.counter .value {
  font-family: var(--font-display);
  font-size: 72px;
  line-height: 1;
  letter-spacing: 0.02em;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin-top: 4px;
  transition: color var(--t-tween) var(--ease);
}
.counter.settled .value { color: var(--ok-text); text-shadow: 0 0 34px rgba(61, 214, 140, 0.55); }
.counter.refused .value { color: var(--bad-text); text-shadow: 0 0 34px rgba(255, 149, 146, 0.55); }
.counter.verdicts .value { color: var(--gold); text-shadow: 0 0 34px var(--gold-glow); }
.counter .value .unit { font-size: 14px; color: var(--ink-2); font-weight: 500; margin-left: 6px; }
.counter.flash-ok .value { color: var(--ok-text); }
.counter.flash-bad .value { color: var(--bad-text); }



/* ---------- sellers ---------- */
h3.section {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-2);
  font-weight: 500;
  margin: 36px 0 12px;
}
.sellers { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.seller-card {
  padding: 18px 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 18px;
  align-items: center;
}
.gauge { width: 112px; height: 86px; }
.gauge .track { stroke: var(--bg-3); }
.gauge .fill-arc { transition: stroke-dashoffset var(--t-tween) var(--ease), stroke var(--t-tween) var(--ease); }
.gauge text {
  font-family: var(--font-display);
  font-weight: 700;
  fill: var(--ink-0);
}
.seller-meta { min-width: 0; }
.seller-host {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-1);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.band-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.band-pill.trusted { background: var(--ok-bg); color: var(--ok-text); }
.band-pill.untrusted { background: var(--bad-bg); color: var(--bad-text); }
.band-pill.suspicious, .band-pill.unknown { background: var(--warn-bg); color: var(--warn-text); }
.seller-stats { grid-column: 1 / -1; font-size: 12px; color: var(--ink-2); display: flex; gap: 14px; flex-wrap: wrap; }
.ticks { display: inline-flex; gap: 3px; align-items: center; }
.ticks i {
  width: 6px; height: 14px;
  border-radius: 2px;
  background: var(--bg-3);
}
.ticks i.ok { background: var(--ok-fill); }
.ticks i.bad { background: var(--bad-fill); }

/* ---------- ledger ---------- */
.ledger { overflow: hidden; }
.ledger-row { border-top: 1px solid rgba(255, 255, 255, 0.07); }
.ledger-row:first-child { border-top: none; }
.ledger-row > button {
  width: 100%;
  display: grid;
  grid-template-columns: 86px 130px minmax(0,1fr) 110px 24px;
  gap: 12px;
  align-items: center;
  padding: 11px 16px;
  text-align: left;
  font-size: 12px;
  transition: background var(--t-fast) var(--ease);
}
.ledger-row > button:hover { background: rgba(224, 154, 78, 0.05); }
.ledger-row .when { font-family: var(--font-mono); color: var(--ink-2); font-size: 11px; }
.ledger-row .kind { font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.ledger-row .kind.ok { color: var(--ok-text); text-shadow: 0 0 10px rgba(61, 214, 140, 0.5); }
.ledger-row .kind.bad { color: var(--bad-text); text-shadow: 0 0 10px rgba(255, 149, 146, 0.5); }
.ledger-row .kind.dim { color: var(--warn-text); }
.ledger-row .seller { font-family: var(--font-mono); color: var(--ink-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-1);
  border: 1px solid var(--line-1);
  border-radius: var(--r-s);
  padding: 2px 7px;
  justify-self: start;
}
.ledger-row .caret { color: var(--ink-2); transition: transform var(--t-base) var(--ease); }
.ledger-row.open .caret { transform: rotate(90deg); }
.ledger-row.fresh > button { animation: rowin var(--t-base) var(--ease); }
.ledger-row.fresh { animation: tint 1.6s var(--ease); }

.proof { display: none; padding: 4px 16px 18px; }
.ledger-row.open .proof { display: block; }
.proof-grid {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 8px 16px;
  font-size: 12px;
  padding: 12px 0;
}
.proof-grid dt { color: var(--ink-2); }
.proof-grid dd { margin: 0; min-width: 0; }
.proof .summary { color: var(--ink-1); font-size: 12px; line-height: 1.6; }
.mono2 { font-family: var(--font-mono); font-size: 12px; }
.trunc { display: inline-flex; max-width: 100%; overflow: hidden; }
.trunc .head { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trunc .tail { white-space: nowrap; flex-shrink: 0; }
.proof .shots { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.proof .shots img {
  height: 90px;
  border-radius: var(--r-s);
  border: 1px solid var(--line-1);
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease);
}
.proof .shots img:hover { border-color: var(--gold); }
.proof .verify-cmd {
  margin-top: 12px;
  background: var(--bg-0);
  border: 1px solid var(--line-0);
  border-radius: var(--r-s);
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-1);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.tx-link { color: var(--gold); text-decoration: none; border-bottom: 1px dotted var(--gold-dim); }
.tx-link:hover { border-bottom-style: solid; }

footer.foot-note {
  margin-top: 40px;
  color: var(--ink-2);
  font-size: 12px;
  text-align: center;
}

/* ---------- demo console ---------- */
.console {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.console-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-2);
  text-transform: uppercase;
}
button.buy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 12px 20px;
  border-radius: 3px;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #0a0b0d;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  box-shadow: 0 0 26px var(--gold-glow);
  transition: box-shadow var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
button.buy span { font-family: var(--font-mono); font-size: 9px; color: rgba(10, 11, 13, 0.65); letter-spacing: 0.08em; }
button.buy:hover { box-shadow: 0 0 44px rgba(224, 154, 78, 0.45); transform: translateY(-1px); }
button.buy.bad { background: transparent; border-color: rgba(229, 72, 77, 0.7); color: var(--bad-text); box-shadow: 0 0 20px rgba(229, 72, 77, 0.2); }
button.buy.bad span { color: rgba(255, 149, 146, 0.6); }
button.buy.bad:hover { box-shadow: 0 0 36px rgba(229, 72, 77, 0.4); }
button.buy.alt { background: transparent; border-color: var(--line-2); color: var(--ink-1); box-shadow: none; }
button.buy.alt span { color: var(--ink-2); }
button.buy.alt:hover { border-color: var(--ink-1); }
button.buy:disabled { opacity: 0.45; pointer-events: none; }
.console-note { font-family: var(--font-mono); font-size: 11px; color: var(--gold); }
.provenance {
  flex-basis: 100%;
  margin: 10px 0 0;
  max-width: 640px;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--ink-2);
}
.provenance strong { color: var(--ink-1); font-weight: 500; }
.provenance code { font-family: var(--font-mono); color: var(--gold-dim); }

/* ---------- HUD corners ---------- */
.hud-corner {
  position: fixed;
  bottom: 16px;
  z-index: 5;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ink-2);
  pointer-events: none;
}
.hud-corner.bl { left: 22px; }
.hud-corner.br { right: 22px; }
.hud-corner.br #chapter-index { color: var(--gold); }

/* ---------- docs page ---------- */
body.docs-page {
  background: radial-gradient(120% 60% at 50% 0%, #15120c 0%, var(--bg-0) 55%);
  min-height: 100vh;
}
.docs {
  max-width: 780px;
  margin: 0 auto;
  padding: 96px 20px 80px;
}
.docs article h1 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 400;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  margin: 8px 0 18px;
}
.docs article h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 400;
  font-size: 24px;
  margin: 44px 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(224, 154, 78, 0.18);
}
.docs article p, .docs article li {
  color: var(--ink-1);
  font-size: 14.5px;
  line-height: 1.75;
}
.docs article strong { color: var(--ink-0); font-weight: 500; }
.docs article a { color: var(--gold); }
.docs article code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--gold);
  background: var(--bg-2);
  border: 1px solid var(--line-0);
  border-radius: 4px;
  padding: 1px 5px;
}
.docs article pre {
  background: #0d0e11;
  border: 1px solid var(--line-0);
  border-left: 2px solid var(--gold-dim);
  border-radius: var(--r-s);
  padding: 14px 16px;
  overflow-x: auto;
}
.docs article pre code {
  background: none;
  border: none;
  padding: 0;
  color: var(--ink-0);
  font-size: 12.5px;
  line-height: 1.7;
}
.docs article ul { padding-left: 20px; }
.docs-foot { padding-bottom: 40px; }
.docs-foot a { color: var(--gold); }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(5, 6, 8, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10;
  cursor: zoom-out;
}
.lightbox.on { display: flex; }
.lightbox img { max-width: 92vw; max-height: 92vh; border-radius: var(--r-m); }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  @keyframes cue { 0%,100% { opacity: .5; transform: none; } 50% { opacity: 1; transform: translateY(4px); } }
  @keyframes heartbeat { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
  @keyframes rotate { to { transform: rotate(360deg); } }
  @keyframes rowin { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
  @keyframes tint { from { background: var(--gold-glow); } to { background: transparent; } }
}
@media (prefers-reduced-motion: reduce) {
  .stage::before, .gauge .fill-arc, .counter .value { transition: none; }
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: var(--r-s);
}
