/* Eidolon: site stylesheet. Type direction A (Fraunces, Hanken Grotesk, Martian Mono), unchanged from BRAND.md.
 * v2 changes: depth (layered shadows, inner rings, a mood-tinted glow), the atmosphere behind the page,
 * a sticky stage for the creature, a ledger instead of a card row, a gallery rail on phones, quieter honesty block,
 * larger display sizes at 1440 and tighter measures. Motion lives in motion.css. */
:root {
  --paper: #f3eee4;
  --paper-2: #ebe5d8;
  --paper-3: #e3dccd;
  --ink: #15171c;
  --ink-2: #5a5f6b;
  --rule: #cfc8ba;
  --rule-2: #ddd7c9;
  --accent: #2434d9;
  --accent-ink: #f3eee4;
  --plate: #faf7f0;
  --plate-edge: rgba(255, 255, 255, .7);
  --shadow-ink: 21, 23, 28;
  --mood-bg: #ffe9a8;
  --mood-body: #ffb23e;
  --atmo-strength: .9;
  --grain-opacity: .07;
  --font-display: 'Fraunces', Georgia, serif;
  --font-text: 'Hanken Grotesk', sans-serif;
  --font-mono: 'Martian Mono', monospace;
  --gutter: 16px;
  --maxw: 1240px;
  --radius: 22px;
  --radius-s: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #15171c; --paper-2: #1c1f26; --paper-3: #23262e; --ink: #f3eee4; --ink-2: #a9aeb8; --rule: #2b2f37; --rule-2: #23262e;
    --accent: #8f9bff; --accent-ink: #15171c; --plate: #1a1d24; --plate-edge: rgba(255, 255, 255, .06); --shadow-ink: 0, 0, 0;
    --atmo-strength: .38; --grain-opacity: .05;
  }
}
:root[data-theme="dark"] {
  --paper: #15171c; --paper-2: #1c1f26; --paper-3: #23262e; --ink: #f3eee4; --ink-2: #a9aeb8; --rule: #2b2f37; --rule-2: #23262e;
  --accent: #8f9bff; --accent-ink: #15171c; --plate: #1a1d24; --plate-edge: rgba(255, 255, 255, .06); --shadow-ink: 0, 0, 0;
  --atmo-strength: .38; --grain-opacity: .05;
}
@media (min-width: 390px) { :root { --gutter: 24px; } }
@media (min-width: 1100px) { :root { --gutter: 48px; } }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-text); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; position: relative;
}
@media (min-width: 600px) { body { font-size: 17px; } }
a { color: var(--accent); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
img, svg { max-width: 100%; }
p { margin: 0 0 1em; max-width: 38em; }
strong { font-weight: 600; }
code { font-family: var(--font-mono); font-size: .8em; background: var(--paper-2); padding: .12em .4em; border-radius: 6px; border: 1px solid var(--rule-2); }
hr { border: 0; border-top: 1px solid var(--rule); margin: 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); position: relative; }

/* ---- atmosphere: fixed layers behind everything ---- */
.atmo { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.atmo i {
  position: absolute; left: -10%; right: -10%; top: -10vh; height: 150vh; display: block; opacity: 0;
  background:
    radial-gradient(55% 44% at 18% 14%, color-mix(in srgb, var(--w1, #ffe9a8) var(--wash-pct, 85%), transparent), transparent 72%),
    radial-gradient(46% 38% at 86% 22%, color-mix(in srgb, var(--w2, #ffb23e) var(--wash2-pct, 28%), transparent), transparent 70%),
    radial-gradient(60% 34% at 50% 96%, color-mix(in srgb, var(--w1, #ffe9a8) var(--wash2-pct, 28%), transparent), transparent 70%);
}
.atmo i.on { opacity: var(--atmo-strength); }
.atmo .grain {
  position: absolute; inset: 0; opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}
.light {
  position: fixed; left: -260px; top: -260px; width: 520px; height: 520px; z-index: 0; pointer-events: none; opacity: 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0));
}
:root[data-theme="dark"] .light { background: radial-gradient(closest-side, rgba(255, 255, 255, .07), rgba(255, 255, 255, 0)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .light { background: radial-gradient(closest-side, rgba(255, 255, 255, .07), rgba(255, 255, 255, 0)); } }
.light.on { opacity: 1; }
.site-header, .status, main, .site-footer { position: relative; z-index: 1; }
main { overflow-x: clip; }

/* ---- type ---- */
.display, h1, h2 {
  font-family: var(--font-display); font-weight: 420; letter-spacing: -.022em; line-height: .96; margin: 0;
  font-variation-settings: 'opsz' 144, 'SOFT' 60, 'WONK' 1; text-wrap: balance;
}
h1 { font-size: clamp(44px, 7.6vw, 118px); line-height: 1; }
.stage h1 { margin-bottom: .32em; }
h2 { font-size: clamp(32px, 3.8vw, 56px); font-variation-settings: 'opsz' 72, 'SOFT' 50, 'WONK' 1; }
h3 { font-family: var(--font-text); font-weight: 600; font-size: 1.05em; margin: 0 0 .4em; }
.lede {
  font-family: var(--font-display); font-weight: 400; font-size: clamp(18px, 1.55vw, 23px); line-height: 1.42;
  font-variation-settings: 'opsz' 20, 'SOFT' 30, 'WONK' 0; max-width: 30em; margin: 0 0 1.2em; color: var(--ink);
}
.eyebrow, .mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: .02em; line-height: 1.7; }
.eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: 11px; color: var(--ink-2); display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ''; width: 18px; height: 1px; background: var(--ink-2); opacity: .7; flex: none; }
.eyebrow.plain::before { display: none; }
.muted { color: var(--ink-2); }
em.state { font-style: italic; font-variation-settings: 'opsz' 20, 'SOFT' 30, 'WONK' 1; }

/* ---- header ---- */
.site-header { border-bottom: 1px solid var(--rule); background: color-mix(in srgb, var(--paper) 72%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 12px; }
.wordmark { font-family: var(--font-display); font-size: 27px; font-weight: 500; color: var(--ink); letter-spacing: -.01em; font-variation-settings: 'opsz' 36, 'SOFT' 80, 'WONK' 1; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.wordmark:hover { text-decoration: none; }
.wordmark .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--mood-body); box-shadow: 0 0 0 3px color-mix(in srgb, var(--mood-bg) 70%, transparent); transition: background .6s, box-shadow .6s; }
.nav { display: flex; gap: 2px; }
.nav a { color: var(--ink); font-weight: 500; font-size: 15px; padding: 10px 13px; min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; }
.nav a[aria-current="page"] { color: var(--accent); }
.nav a:hover { text-decoration: none; background: var(--paper-2); }
@media (max-width: 420px) { .nav a { padding: 10px 7px; font-size: 14px; } .wordmark { font-size: 23px; } }
.status { border-bottom: 1px solid var(--rule); background: color-mix(in srgb, var(--paper-2) 80%, transparent); }
.status .wrap { display: flex; flex-wrap: wrap; gap: 4px 18px; padding-top: 8px; padding-bottom: 8px; }
.status .mono { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); white-space: nowrap; }
.status .mono b { color: var(--ink); font-weight: 500; }
.status .mono.live b { color: var(--accent); }

/* ---- buttons ---- */
.btn {
  font-family: var(--font-text); font-weight: 500; font-size: 15px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid var(--ink);
  background: var(--ink); color: var(--paper); cursor: pointer; text-decoration: none; position: relative;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 8px 18px -10px rgba(var(--shadow-ink), .55);
}
.btn:hover { text-decoration: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 14px 26px -12px rgba(var(--shadow-ink), .6); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: none; border-color: var(--rule); }
.btn.ghost:hover { background: var(--paper-2); border-color: var(--ink); }
.btn.accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none !important; box-shadow: none; }
.btn.small { min-height: 44px; padding: 0 16px; font-size: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---- sections ---- */
.section { padding: 64px 0; }
@media (min-width: 900px) { .section { padding: 112px 0; } }
.section + .section { border-top: 1px solid var(--rule); }
.section-head { margin-bottom: 32px; }
.section-head .eyebrow { margin-bottom: 14px; }
@media (min-width: 900px) { .section-head { margin-bottom: 48px; } }
.two { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; }
@media (min-width: 900px) { .two { grid-template-columns: 1.15fr .85fr; gap: 64px; } }

/* ---- the stage: hero copy and the strip on the left, the sticky creature on the right ---- */
.stage { padding: 36px 0 56px; position: relative; overflow: clip; }
@media (min-width: 900px) { .stage { padding: 72px 0 96px; } }
.stage-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
.stage-left { display: contents; }
.hero-copy { order: 1; }
.stage-right { order: 2; }
.strip-wrap { order: 3; }
.rules-wrap { order: 4; }
@media (min-width: 900px) {
  .stage-grid { grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); gap: 72px; align-items: start; }
  .stage-left { display: flex; flex-direction: column; gap: 96px; }
  .stage-right { position: sticky; top: 92px; order: 0; }
}
@media (min-width: 1200px) { .stage-grid { gap: 96px; } }
.hero-copy .eyebrow { margin-bottom: 22px; }
.hero-copy h1 { margin-bottom: 26px; }
.hero-copy .lede { margin-bottom: 30px; }
.hero-copy .btn-row { margin-bottom: 8px; }
.depth { position: absolute; inset: -10% -5%; z-index: 0; pointer-events: none; }
.depth i {
  position: absolute; display: block; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--mood-bg) var(--depth-pct, 60%), transparent), transparent);
  transition: background 1.1s ease;
}
.depth i:nth-child(1) { width: 56vw; height: 56vw; max-width: 760px; max-height: 760px; right: -14%; top: -6%; }
.depth i:nth-child(2) { width: 34vw; height: 34vw; max-width: 460px; max-height: 460px; left: -10%; top: 40%; background: radial-gradient(closest-side, color-mix(in srgb, var(--mood-body) 22%, transparent), transparent); }
.stage .wrap { z-index: 1; }

/* the creature's seat */
.seat { position: relative; max-width: 460px; margin: 0 auto; }
@media (min-width: 900px) { .seat { margin: 0 0 0 auto; } }
.seat::before {
  content: ''; position: absolute; inset: -14% -14% -6%; z-index: 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--mood-bg) var(--depth-pct, 70%), transparent), transparent);
  opacity: var(--atmo-strength); transition: background 1.1s ease;
}
.mood-word { position: relative; margin: 26px 0 0 6px; font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: clamp(40px, 4.4vw, 64px); line-height: 1; letter-spacing: -.02em; font-variation-settings: 'opsz' 72, 'SOFT' 40, 'WONK' 1; color: var(--ink); }
.mood-word .lbl { display: block; font: 11px/1.7 var(--font-mono); font-style: normal; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 2px; }
.mood-word .words { position: relative; display: block; min-height: 1.1em; }

/* ---- plate: the signature object ---- */
.plate {
  margin: 0; position: relative; z-index: 1;
  background: var(--plate); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 12px 12px 10px;
  box-shadow: inset 0 1px 0 var(--plate-edge), 0 1px 2px rgba(var(--shadow-ink), .06), 0 22px 44px -26px rgba(var(--shadow-ink), .45), 0 40px 80px -40px color-mix(in srgb, var(--mood-body) 55%, transparent);
}
.plate .art { border-radius: calc(var(--radius) - 9px); overflow: hidden; aspect-ratio: 1; display: block; background: var(--paper-2); position: relative; box-shadow: inset 0 0 0 1px rgba(var(--shadow-ink), .06), inset 0 -18px 30px -24px rgba(var(--shadow-ink), .35); }
.plate .art > svg:not(.fx) { width: 100%; height: 100%; display: block; position: relative; }
.plate .art svg.layer { position: absolute; inset: 0; }
.plate .cap { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); padding: 11px 4px 3px; display: flex; flex-wrap: wrap; gap: 2px 14px; }
.plate .cap b { color: var(--ink); font-weight: 500; }
.plate.placeholder::after {
  content: 'placeholder'; position: absolute; top: 20px; left: 20px; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .1em; text-transform: uppercase; background: var(--ink); color: var(--paper); padding: 4px 8px; border-radius: 6px;
}
.art.is-offscreen svg .rig { animation-play-state: paused; }

/* ---- companion: a small live creature that follows once the main plate leaves the viewport ---- */
.companion {
  position: fixed; right: 14px; bottom: 14px; z-index: 6; display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px;
  background: var(--plate); border: 1px solid var(--rule); border-radius: 999px; color: var(--ink); text-decoration: none;
  box-shadow: inset 0 1px 0 var(--plate-edge), 0 14px 30px -14px rgba(var(--shadow-ink), .5);
}
.companion:hover { text-decoration: none; }
.companion .art { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; display: block; position: relative; flex: none; }
.companion .art > svg:not(.fx) { width: 100%; height: 100%; display: block; }
.companion .c-cap { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.companion .c-cap b { color: var(--ink); font-weight: 500; }
@media (min-width: 900px) { .companion { right: 24px; bottom: 24px; } }
@media (max-width: 899px) { .companion { right: 10px; bottom: 12px; } }

/* ---- moods gallery ---- */
.moods { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (max-width: 719px) {
  .moods { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 18px; margin: 0 calc(-1 * var(--gutter)); scrollbar-width: none; }
  .moods::-webkit-scrollbar { display: none; }
  .moods .plate { flex: 0 0 min(78vw, 300px); scroll-snap-align: center; }
  .moods-hint { display: flex; }
}
.moods-hint { display: none; align-items: center; gap: 8px; margin: -8px 0 0; }
@media (min-width: 720px) { .moods { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1000px) { .moods { grid-template-columns: repeat(5, 1fr); gap: 18px; } .levels.moods { grid-template-columns: repeat(6, 1fr); gap: 14px; } }
.moods .plate { padding: 9px 9px 8px; }
.moods .rule { font-size: 14px; color: var(--ink-2); padding: 8px 4px 2px; line-height: 1.45; margin: 0; }
.moods .cap { font-size: 11px; }

/* ---- reading strip (the demo) ---- */
.strip {
  border: 1px solid var(--rule); border-radius: var(--radius); background: var(--plate); padding: 18px; position: relative;
  box-shadow: inset 0 1px 0 var(--plate-edge), 0 1px 2px rgba(var(--shadow-ink), .05), 0 24px 48px -32px rgba(var(--shadow-ink), .4);
  transition: transform .4s var(--spring-soft), box-shadow .4s ease;
}
.strip.is-pressed { transform: scale(.995); box-shadow: inset 0 1px 0 var(--plate-edge), 0 1px 2px rgba(var(--shadow-ink), .05), 0 14px 28px -24px rgba(var(--shadow-ink), .4); }
@media (min-width: 600px) { .strip { padding: 26px; } }
.strip-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; align-items: baseline; margin-bottom: 14px; }
.strip svg.sim { width: 100%; height: auto; display: block; touch-action: none; cursor: crosshair; border-radius: var(--radius-s); background: var(--paper-2); box-shadow: inset 0 0 0 1px rgba(var(--shadow-ink), .05); }
.sim .grid line { stroke: var(--rule); stroke-width: 1; }
.sim .grid line.mid { stroke-dasharray: 3 5; }
.sim .line { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.sim .glow { fill: none; stroke: var(--accent); stroke-width: 12; stroke-linejoin: round; stroke-linecap: round; opacity: .12; }
.sim .area { fill: url(#simfill); }
.sim .dot { fill: var(--plate); stroke: var(--accent); stroke-width: 3; cursor: grab; }
.sim .dot.is-active { fill: var(--accent); }
.sim .dot.off { opacity: .22; }
.sim .ring { fill: none; stroke: var(--accent); stroke-width: 2; }
.sim .pulse { fill: var(--accent); }
.sim.is-silent .line, .sim.is-silent .glow, .sim.is-silent .area, .sim.is-silent .pulse { opacity: .18; }
.sim text { font-family: var(--font-mono); font-size: 13px; fill: var(--ink-2); letter-spacing: .06em; }
.sim text.base { font-size: 11px; opacity: .8; }
.strip .readout { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 16px; margin-top: 18px; }
@media (min-width: 600px) { .strip .readout { grid-template-columns: repeat(4, 1fr); } }
.strip .readout > div { border-top: 1px solid var(--rule-2); padding-top: 8px; }
.strip .readout .k { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 3px; }
.strip .readout .v { font-family: var(--font-mono); font-size: 14px; color: var(--ink); }
.strip .readout .v.accent { color: var(--accent); }
.presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { min-height: 44px;
  font-family: var(--font-text); font-size: 14px; font-weight: 500; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--rule); background: transparent; color: var(--ink); cursor: pointer;
}
.chip:hover { background: var(--paper-2); border-color: var(--ink-2); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); box-shadow: 0 8px 16px -10px rgba(var(--shadow-ink), .6); }
.foot-note { font-size: 14px; color: var(--ink-2); margin-top: 18px; max-width: 42em; }
.foot-note a.more { display: inline-flex; align-items: center; min-height: 44px; }

/* ---- the ledger (three facts) ---- */
.ledger { border-top: 1px solid var(--ink); }
.ledger article { display: grid; grid-template-columns: 1fr; gap: 6px 32px; padding: 26px 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 720px) { .ledger article { grid-template-columns: 110px 1fr 1.2fr; padding: 34px 0; align-items: start; } }
.ledger .num { font-family: var(--font-display); font-weight: 300; font-size: 44px; line-height: 1; letter-spacing: -.03em; color: var(--ink-2); font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1; }
@media (min-width: 720px) { .ledger .num { font-size: 56px; } }
.ledger h3 { font-family: var(--font-display); font-weight: 450; font-size: 26px; letter-spacing: -.015em; line-height: 1.1; font-variation-settings: 'opsz' 36, 'SOFT' 50, 'WONK' 1; margin: 2px 0 0; }
@media (min-width: 720px) { .ledger h3 { font-size: 30px; } }
.ledger p { font-size: 15.5px; margin: 0; color: var(--ink); max-width: 34em; }
@media (max-width: 719px) { .ledger .num { font-size: 36px; } .ledger p { margin-top: 6px; } }

/* ---- honesty block ---- */
.honest { position: relative; max-width: 720px; padding: 8px 0 0 28px; border-left: 2px solid var(--ink); }
@media (min-width: 600px) { .honest { padding-left: 40px; } }
.honest .stamp { position: absolute; left: -2px; top: -30px; font: 10px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--paper); background: var(--ink); padding: 6px 8px; border-radius: 6px; }
.honest h2 { font-size: clamp(28px, 3.2vw, 44px); margin-bottom: 18px; }
.honest p { max-width: 32em; }
.honest p:last-child { margin-bottom: 0; }

/* ---- panels / forms (mint) ---- */
.panel { border: 1px solid var(--rule); border-radius: var(--radius); background: var(--plate); padding: 20px; box-shadow: inset 0 1px 0 var(--plate-edge), 0 1px 2px rgba(var(--shadow-ink), .05), 0 20px 40px -30px rgba(var(--shadow-ink), .35); }
@media (min-width: 600px) { .panel { padding: 28px; } }
.panel + .panel { margin-top: 16px; }
.panel h3 { font-family: var(--font-display); font-weight: 450; font-size: 23px; letter-spacing: -.01em; font-variation-settings: 'opsz' 36, 'SOFT' 50, 'WONK' 1; margin-bottom: 14px; }
.banner { border-radius: 14px; padding: 14px 16px; font-size: 14.5px; line-height: 1.5; margin-bottom: 22px; border: 1.5px dashed var(--ink); background: color-mix(in srgb, var(--paper-2) 80%, transparent); }
.banner b { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; display: block; margin-bottom: 4px; }
.banner.warn { border-style: solid; border-color: var(--accent); }
.kv { display: grid; grid-template-columns: 1fr; gap: 10px 20px; margin: 0; }
@media (min-width: 600px) { .kv { grid-template-columns: repeat(2, 1fr); } }
.kv div { border-top: 1px solid var(--rule-2); padding-top: 8px; }
.kv dt { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 4px; }
.kv dd { font-family: var(--font-mono); font-size: 13px; margin: 0; overflow-wrap: anywhere; min-height: 1.5em; }
.kv dd.accent { color: var(--accent); }
.kv dd.skeleton { display: block; height: 14px; width: 60%; border-radius: 6px; background: var(--paper-3); color: transparent; margin-top: 4px; }
.helper { font-size: 14px; color: var(--ink-2); margin: 8px 0 0; }
.msg { font-size: 15px; margin: 12px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--paper-2); }
.msg.ok { border-left: 3px solid var(--accent); }
.msg.err { border-left: 3px solid #c0392b; }
.msg:empty { display: none; }
.mint-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 900px) { .mint-grid { grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; } .mint-grid > .seat-col { position: sticky; top: 92px; } }
.mint-grid .seat { max-width: 440px; }
.ring16 { display: grid; grid-template-columns: repeat(16, 1fr); gap: 4px; margin: 14px 0 4px; }
.ring16 i { display: block; height: 8px; border-radius: 4px; background: var(--paper-3); transition: background .4s ease, transform .4s var(--spring); }
.ring16 i.on { background: var(--accent); }
.ring16 i.new { transform: scaleY(1.6); }
.empty { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border: 1px dashed var(--rule); border-radius: var(--radius-s); color: var(--ink-2); font-size: 14.5px; margin-top: 14px; }
.empty .glyph { width: 36px; height: 36px; border-radius: 50%; background: var(--paper-2); flex: none; display: grid; place-items: center; font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); }

/* ---- range ---- */
.range { display: flex; align-items: center; gap: 14px; margin: 20px 0 24px; }
.range input[type=range] { flex: 1; accent-color: var(--accent); height: 44px; margin: 0; cursor: pointer; }
.range output { font-family: var(--font-mono); font-size: 13px; min-width: 7ch; }

/* ---- docs ---- */
.docs { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 900px) { .docs { grid-template-columns: 220px 1fr; gap: 72px; } }
.toc { position: sticky; top: 92px; align-self: start; display: none; }
@media (min-width: 900px) { .toc { display: block; } }
.toc a { display: flex; align-items: center; min-height: 44px; color: var(--ink-2); font-size: 14px; padding: 4px 0; border-bottom: 1px solid var(--rule-2); }
.toc a:hover { color: var(--ink); text-decoration: none; }
.doc h2 { font-size: clamp(26px, 3vw, 38px); margin: 56px 0 18px; scroll-margin-top: 88px; }
.doc h2:first-child { margin-top: 0; }
.doc ol, .doc ul { padding-left: 1.3em; max-width: 40em; }
.doc li { margin-bottom: .55em; }
.doc dl.faq dt { font-weight: 600; margin-top: 1.2em; }
.doc dl.faq dd { margin: .3em 0 0; max-width: 40em; }
.doc table { border-collapse: collapse; width: 100%; max-width: 44em; font-size: 15px; }
.doc th, .doc td { text-align: left; border-top: 1px solid var(--rule); padding: 10px 10px 10px 0; vertical-align: top; }
.doc th { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); font-weight: 400; }

/* ---- footer ---- */
.site-footer { border-top: 1px solid var(--rule); padding: 40px 0 56px; font-size: 14px; color: var(--ink-2); background: color-mix(in srgb, var(--paper) 60%, transparent); }
.site-footer p { max-width: 48em; }
.site-footer .row { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 16px; align-items: center; }
.site-footer .row a { color: var(--ink); min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; }
.theme-toggle, .sound-toggle { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; background: none; border: 1px solid var(--rule); color: var(--ink-2); border-radius: 999px; min-height: 44px; padding: 0 14px; cursor: pointer; }
.theme-toggle:hover, .sound-toggle:hover { border-color: var(--ink-2); color: var(--ink); }
.sound-toggle[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
noscript .banner { margin: 24px var(--gutter); }

/* ---- loading ---- */
html.is-loading main { opacity: 0; }
main { transition: opacity .32s ease; }

/* tap targets: inline text links get a 44 px hit box without moving the line */
main p a:not(.btn):not(.more):not(.chip), main li a:not(.btn):not(.chip), main td a:not(.btn), main dd a:not(.btn) { display: inline-block; padding: 12px 8px; margin: -12px -8px; min-width: 46px; text-align: center; }
main p a:not(.btn):not(.more):not(.chip), main li a:not(.btn):not(.chip) { text-align: inherit; }
