/* ==========================================================================
   coalescence — black, white, and one hot accent.
   ========================================================================== */
:root {
  --bg: #000;
  --ink: #f4f2ee;
  --ink-2: rgba(244, 242, 238, 0.64);
  --ink-3: rgba(244, 242, 238, 0.4);
  --ink-4: rgba(244, 242, 238, 0.18);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.18);
  --panel: rgba(6, 6, 6, 0.84);
  --accent: #ff6b1a;
  --accent-2: #ffb27f;
  --accent-soft: rgba(255, 107, 26, 0.12);
  --down: #8f99ab;

  --sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", monospace;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;

  --wrap: 1360px;
  --gutter: 56px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --halo-x: 60vw; --halo-y: 50vh; --halo-s: 0.8; --merge: 0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; min-width: 1100px;
  background: var(--bg); color: var(--ink);
  font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
::selection { background: var(--accent); color: #000; }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }

/* ---------- sky ---------- */
#field, #glow, .halo, .grain { position: fixed; inset: 0; pointer-events: none; }
#field { z-index: 0; }
#glow {
  z-index: 1; width: 100vw; height: 100vh;
  filter: blur(14px) saturate(1.5) brightness(1.7);
  mix-blend-mode: screen; opacity: 0.85;
}
.halo {
  z-index: 0;
  background: radial-gradient(
    circle calc(42vmin * var(--halo-s)) at var(--halo-x) var(--halo-y),
    rgba(255, 107, 26, 0.13), rgba(255, 107, 26, 0.04) 55%, transparent 75%);
}
.grain {
  z-index: 2; opacity: 0.06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
main, .foot, .nav, .hud { position: relative; z-index: 3; }

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

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center;
  height: 68px; padding: 0 28px;
  background: linear-gradient(to bottom, rgba(0,0,0,.82), rgba(0,0,0,.55));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 500; font-size: 17px; letter-spacing: -0.02em; }
.links { display: flex; gap: 2px; justify-content: center; }
.links a {
  position: relative; display: inline-flex; align-items: baseline; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  font-size: 13.5px; color: var(--ink-2);
  transition: color .25s, background .25s;
}
.links a:hover { color: var(--ink); }
.links a[aria-current="page"] { color: var(--ink); background: rgba(255,255,255,.07); }
.nav-right { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-4); }
.on .dot { background: var(--accent); box-shadow: 0 0 0 0 rgba(255,107,26,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(255,107,26,0); } 100% { box-shadow: 0 0 0 0 rgba(255,107,26,0); } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 46px; padding: 0 22px; border-radius: 999px;
  font-size: 14.5px; font-weight: 500; letter-spacing: -0.005em; white-space: nowrap;
  border: 1px solid transparent; background: none;
  transition: background .25s var(--ease), color .25s, border-color .25s, transform .25s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn-solid { background: var(--ink); color: #000; }
.btn-solid:hover { background: #fff; }
.btn-solid span { transition: transform .3s var(--ease); }
.btn-solid:hover span { transform: translateX(3px); }
.btn-line { border-color: var(--line-2); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); }
.btn-ghost { height: 38px; padding: 0 16px; font-size: 13.5px; border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn-ghost.connected { border-color: rgba(255,107,26,.5); }
.btn-ghost.connected::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.btn-accent { background: var(--accent); color: #000; }
.btn-accent:hover { background: #ff8440; }
.btn[disabled] { opacity: .35; cursor: not-allowed; transform: none; }

/* ---------- type ---------- */
.eyebrow, .kicker, .label, dt { font: 500 11.5px var(--mono); text-transform: uppercase; letter-spacing: .09em; color: var(--ink-3); }
.kicker { display: inline-flex; gap: 12px; align-items: center; margin: 0 0 26px; }
.kicker i { font-style: normal; color: var(--accent); }
.kicker::after { content: ""; width: 48px; height: 1px; background: var(--line-2); }
.display {
  margin: 0; font-weight: 450; letter-spacing: -0.055em; line-height: .9;
  font-size: clamp(76px, 8.6vw, 156px);
}
.display .line { display: block; }
.display em { letter-spacing: -0.03em; padding-right: .06em; }
.title { margin: 0; font-weight: 450; letter-spacing: -0.045em; line-height: .96; font-size: clamp(48px, 5.2vw, 88px); }
.title.xl { font-size: clamp(64px, 7.4vw, 132px); }
.lede { max-width: 540px; font-size: 18.5px; line-height: 1.55; color: var(--ink-2); margin: 34px 0 0; }
.body-lg { font-size: 24px; line-height: 1.4; letter-spacing: -0.015em; color: var(--ink); margin: 0 0 26px; max-width: 640px; }
.body { font-size: 16.5px; color: var(--ink-2); max-width: 560px; margin: 0; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
.display .line { overflow: hidden; }

/* ---------- sections ---------- */
.section { position: relative; padding: 180px 0 120px; }
.section-head { margin-bottom: 64px; }
.section-head.row { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.section-head.center { text-align: center; display: flex; flex-direction: column; align-items: center; margin-bottom: 96px; }
.head-note { margin-top: 26px; }
.narrow { max-width: 660px; }
.narrow .title { margin-bottom: 40px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 56px; background: var(--line); border: 1px solid var(--line); }
.fact { background: rgba(4,4,4,.9); padding: 26px 24px 30px; }
.fact-n { font: 500 11px var(--mono); color: var(--accent); }
.fact p { margin: 18px 0 0; color: var(--ink-2); font-size: 15px; }
.fact strong { color: var(--ink); font-weight: 500; display: block; margin-bottom: 6px; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; }
.prop { background: rgba(4,4,4,.92); }

/* legibility over the field */
.title, .display, .body-lg, .body, .lede, .kicker, .eyebrow { text-shadow: 0 0 28px #000, 0 0 10px rgba(0,0,0,.9); }
#field, #glow { transition: opacity 1.2s var(--ease); }
body[data-field="page"] #field { opacity: .42; }
body[data-field="page"] #glow { opacity: .34; }

/* ---------- scanner ---------- */
.scanner { padding: 30px; }
.scan-form { display: flex; gap: 14px; }
.scan-field {
  flex: 1; display: flex; align-items: center; gap: 4px; height: 64px; padding: 0 22px;
  border: 1px solid var(--line-2); border-radius: 14px; background: rgba(255,255,255,.02);
  transition: border-color .25s, background .25s;
}
.scan-field:focus-within { border-color: var(--ink-2); background: rgba(255,255,255,.04); }
.scan-dollar { font: 400 28px var(--mono); color: var(--accent); }
.scan-field input {
  flex: 1; border: 0; outline: 0; background: none; color: var(--ink);
  font: 500 26px var(--mono); letter-spacing: .04em; text-transform: uppercase;
}
.scan-field input::placeholder { color: var(--ink-4); }
.scan-form .btn { height: 64px; padding: 0 30px; border-radius: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; min-height: 32px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 13px;
  border: 1px solid var(--line); border-radius: 999px; background: none;
  font: 500 12.5px var(--mono); color: var(--ink-2); transition: all .2s;
}
.chip:hover { border-color: var(--line-2); color: var(--ink); }
.chip .x { color: var(--accent); }
.chip-label { font: 500 11px var(--mono); color: var(--ink-4); text-transform: uppercase; letter-spacing: .09em; align-self: center; margin-right: 6px; }

.scan-out { margin-top: 34px; }
.scan-summary { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.scan-summary h3 { margin: 0; font-weight: 450; font-size: 30px; letter-spacing: -0.03em; }
.scan-summary h3 b { font-weight: 450; font-family: var(--mono); font-size: .86em; }
.scan-summary p { margin: 0; font: 400 13px var(--mono); color: var(--ink-3); }
.massbar { display: flex; height: 10px; gap: 2px; margin-bottom: 30px; border-radius: 3px; overflow: hidden; }
.massbar span { display: block; height: 100%; background: var(--ink-4); transition: flex-grow .8s var(--ease); min-width: 2px; }
.massbar span:first-child { background: var(--accent); }
.massbar span:nth-child(2) { background: rgba(244,242,238,.55); }
.massbar span:nth-child(3) { background: rgba(244,242,238,.32); }

.table { font-size: 14.5px; }
.tr {
  display: grid; align-items: center; gap: 16px;
  grid-template-columns: 34px minmax(220px, 2.2fr) 64px 1fr 1fr 1fr 82px 120px 112px;
  padding: 14px 12px; border-bottom: 1px solid var(--line);
  transition: background .2s;
}
.tr:not(.th):hover { background: rgba(255,255,255,.025); }
.th { padding-top: 0; font: 500 11px var(--mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.rank { font: 500 12px var(--mono); color: var(--ink-3); }
.tok { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tok img, .tok .ph { width: 34px; height: 34px; border-radius: 50%; flex: none; background: #151515; object-fit: cover; border: 1px solid var(--line); }
.tok .ph { display: grid; place-items: center; font: 500 12px var(--mono); color: var(--ink-3); }
.tok-meta { min-width: 0; }
.tok-name { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tok-ca { display: inline-flex; gap: 6px; align-items: center; font: 400 12px var(--mono); color: var(--ink-3); border: 0; background: none; padding: 0; }
.tok-ca:hover { color: var(--ink); }
.lead-tag { margin-left: 8px; font: 500 10px var(--mono); color: var(--accent); text-transform: uppercase; letter-spacing: .08em; }
.mono { font-family: var(--mono); font-size: 13.5px; }
.dim { color: var(--ink-3); }
.up { color: var(--accent); }
.down { color: var(--down); }
.spark { display: block; width: 120px; height: 34px; }
.add {
  justify-self: end; height: 34px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: none; font-size: 13px; transition: all .2s;
}
.add:hover { border-color: var(--ink); }
.add.on { background: var(--ink); color: #000; border-color: var(--ink); }

.empty { padding: 50px 10px 26px; text-align: center; color: var(--ink-3); font-size: 15px; }
.empty p { margin: 0; }
.loading { display: inline-flex; gap: 10px; align-items: center; font: 500 12px var(--mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; }
.loading::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--ink-4); border-top-color: var(--accent); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- chamber ---------- */
.chamber { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.slot {
  position: relative; min-height: 380px; border-radius: 18px; padding: 22px;
  background: var(--panel); border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: border-color .3s, transform .5s var(--ease);
}
.slot.empty-slot { border-style: dashed; border-color: var(--line-2); background: rgba(3,3,3,.9); }
.slot.filled:hover { border-color: var(--line-2); }
.slot.survivor { border-color: rgba(255,107,26,.45); box-shadow: 0 0 0 1px rgba(255,107,26,.12), 0 30px 80px -30px rgba(255,107,26,.25); }
.slot-head { display: flex; justify-content: space-between; align-items: center; font: 500 11px var(--mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: .09em; }
.slot-head .role { color: var(--ink-3); }
.slot.survivor .slot-head .role { color: var(--accent); }
.slot-x { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: none; color: var(--ink-3); display: grid; place-items: center; font-size: 14px; line-height: 1; }
.slot-x:hover { color: var(--ink); border-color: var(--line-2); }
.slot-empty { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.slot-empty p { margin: 0; color: var(--ink-3); font-size: 14px; }
.slot-input {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2);
  background: rgba(255,255,255,.02); color: var(--ink); font: 400 12.5px var(--mono); outline: 0;
}
.slot-input:focus { border-color: var(--ink-2); }
.slot-input::placeholder { color: var(--ink-4); }
.slot-body { flex: 1; display: flex; flex-direction: column; }
.slot-id { display: flex; gap: 14px; align-items: center; margin: 22px 0 18px; }
.slot-id img, .slot-id .ph { width: 48px; height: 48px; border-radius: 50%; background: #151515; object-fit: cover; border: 1px solid var(--line); flex: none; display: grid; place-items: center; font: 500 13px var(--mono); color: var(--ink-3); }
.slot-sym { font: 500 22px var(--mono); letter-spacing: -0.01em; }
.slot-name { font-size: 13.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.slot-price { display: flex; align-items: baseline; justify-content: space-between; }
.slot-price strong { font: 400 26px var(--sans); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.slot-chart { margin: 12px -6px 14px; height: 92px; }
.slot-chart svg { width: 100%; height: 100%; display: block; }
.slot-chart .note { font: 400 10.5px var(--mono); color: var(--ink-4); text-transform: uppercase; letter-spacing: .08em; }
.slot-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin: auto 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.slot-stats div span { display: block; font: 500 10.5px var(--mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; }
.slot-stats div strong { font-weight: 450; font-size: 15px; font-variant-numeric: tabular-nums; }
.slot-share { margin-top: 14px; height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; }
.slot-share span { display: block; height: 100%; background: var(--ink-2); transition: width .8s var(--ease); }
.slot.survivor .slot-share span { background: var(--accent); }

.resolve { margin-top: 14px; display: grid; grid-template-columns: repeat(4, 1fr) 1.4fr; align-items: center; }
.resolve-cell { padding: 26px 28px; border-right: 1px solid var(--line); }
.resolve-cell strong { display: block; margin-top: 10px; font-weight: 400; font-size: 26px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
#rsSurvivor { font-family: var(--mono); font-size: 22px; color: var(--accent); }
.resolve-cta { padding: 20px 26px; display: flex; align-items: center; justify-content: flex-end; gap: 18px; }
.resolve-note { margin: 0; font-size: 13px; color: var(--ink-3); max-width: 200px; text-align: right; }
.resolve-note.warn { color: var(--accent-2); }

/* ---------- vote ---------- */
.rules { display: flex; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.rules div { background: var(--panel); padding: 16px 22px; min-width: 140px; }
.rules span { display: block; font: 500 10.5px var(--mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: .09em; }
.rules strong { display: block; margin-top: 6px; font-weight: 450; font-size: 19px; letter-spacing: -0.02em; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: rgba(0,0,0,.7); margin-bottom: 26px; }
.tabs button { height: 36px; padding: 0 18px; border: 0; border-radius: 999px; background: none; color: var(--ink-3); font-size: 13.5px; transition: all .2s; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--ink); color: #000; }

.proposals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.prop { padding: 26px; display: flex; flex-direction: column; gap: 22px; }
.prop-top { display: flex; justify-content: space-between; align-items: center; }
.prop-id { font: 500 11px var(--mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: .09em; }
.status { display: inline-flex; align-items: center; gap: 8px; height: 26px; padding: 0 11px; border-radius: 999px; font: 500 10.5px var(--mono); text-transform: uppercase; letter-spacing: .09em; border: 1px solid var(--line-2); color: var(--ink-2); }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.open { color: var(--accent); border-color: rgba(255,107,26,.35); }
.status.ratified { color: #000; background: var(--ink); border-color: var(--ink); }
.status.rejected { color: var(--ink-3); }
.bodies { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.body-chip { display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border: 1px solid var(--line); border-radius: 999px; background: rgba(0,0,0,.4); position: relative; }
.body-chip img, .body-chip .ph { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: #151515; display: grid; place-items: center; font: 500 10px var(--mono); color: var(--ink-3); }
.body-chip b { font: 500 13px var(--mono); }
.body-chip small { font: 400 11.5px var(--mono); color: var(--ink-3); }
.body-chip.lead { border-color: rgba(255,107,26,.45); z-index: 2; }
.prop-arrow { margin: 0 6px; color: var(--ink-3); font-family: var(--mono); }
.prop-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.prop-meta span { display: block; font: 500 10.5px var(--mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; }
.prop-meta strong { font-weight: 450; font-size: 18px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.tally { display: flex; flex-direction: column; gap: 10px; }
.tally-bar { position: relative; height: 8px; border-radius: 4px; background: rgba(255,255,255,.06); overflow: hidden; }
.tally-bar .m { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent); transition: width .8s var(--ease); }
.tally-bar .threshold { position: absolute; top: -3px; bottom: -3px; width: 1px; background: var(--ink); }
.tally-legend { display: flex; justify-content: space-between; font: 400 12px var(--mono); color: var(--ink-3); }
.tally-legend b { color: var(--ink); font-weight: 500; }
.prop-actions { display: flex; gap: 10px; }
.prop-actions .btn { flex: 1; height: 44px; }
.vote-merge { border: 1px solid rgba(255,107,26,.5); color: var(--ink); }
.vote-merge:hover, .vote-merge.chosen { background: var(--accent); color: #000; border-color: var(--accent); }
.vote-pass { border: 1px solid var(--line-2); }
.vote-pass:hover, .vote-pass.chosen { background: var(--ink); color: #000; border-color: var(--ink); }
.prop-empty { grid-column: 1 / -1; padding: 70px 30px; text-align: center; }
.prop-empty h3 { margin: 0 0 10px; font-weight: 450; font-size: 28px; letter-spacing: -0.03em; }
.prop-empty p { margin: 0 0 24px; color: var(--ink-3); }

/* ---------- coalesce ---------- */
#coalesce { padding-top: 220px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.step { background: rgba(0,0,0,.8); padding: 34px 30px 40px; min-height: 260px; }
.step-n { font: 500 11px var(--mono); color: var(--accent); }
.step h3 { margin: 48px 0 12px; font-weight: 450; font-size: 28px; letter-spacing: -0.03em; }
.step p { margin: 0; color: var(--ink-2); font-size: 15px; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.principle { background: rgba(3,3,3,.9); border: 1px solid var(--line); border-radius: 18px; padding: 28px 30px 32px; }
.principle h4 { margin: 0 0 10px; font-weight: 500; font-size: 17px; letter-spacing: -0.01em; }
.principle p { margin: 0; color: var(--ink-2); font-size: 15px; max-width: 360px; }

/* ---------- toasts ---------- */
.toasts { position: fixed; right: 24px; bottom: 24px; z-index: 40; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.toast {
  max-width: 360px; padding: 14px 18px; border-radius: 12px; font-size: 14px;
  background: var(--ink); color: #000; box-shadow: 0 20px 50px -20px rgba(0,0,0,.8);
  animation: toastIn .45s var(--ease) both;
}
.toast.err { background: #1a0f08; color: var(--accent-2); border: 1px solid rgba(255,107,26,.35); }
.toast.out { animation: toastOut .35s var(--ease) both; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px); } }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .band-run { animation-duration: 180s; }
}


/* ==========================================================================
   v2 — simple landing, chain switch, vamp list, sub-pages, intro
   ========================================================================== */

/* ---------- intro ---------- */
.nav, main, .foot { transition: opacity .9s var(--ease), transform 1s var(--ease); }
body.intro .nav, body.intro main, body.intro .foot { opacity: 0; }
body.intro main { transform: translateY(14px); }
body.intro { overflow: hidden; }

/* ---------- nav controls ---------- */
.chain-switch {
  position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 3px;
  height: 38px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.02);
}
.chain-switch button {
  position: relative; z-index: 1; border: 0; background: none; padding: 0 14px; border-radius: 999px;
  font: 500 12.5px var(--sans); color: var(--ink-3); transition: color .3s;
}
.chain-switch button[aria-checked="true"] { color: #000; }
.chain-pill {
  position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px);
  border-radius: 999px; background: var(--ink); transition: transform .45s var(--ease);
}
.chain-switch[data-active="robinhood"] .chain-pill { transform: translateX(100%); }
.icon-btn {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--ink-2); transition: color .2s, border-color .2s;
}
.icon-btn:hover { color: var(--ink); border-color: var(--line-2); }
.links a { font-size: 14px; }

/* ---------- CA pill ---------- */
.ca {
  display: inline-flex; align-items: center; gap: 12px; height: 42px; padding: 0 16px 0 6px;
  border: 1px solid var(--line-2); border-radius: 999px; background: rgba(0,0,0,.6); color: var(--ink);
  font: 500 13px var(--mono); transition: border-color .2s, background .2s;
}
.ca[hidden] { display: none; }
.ca:hover { border-color: var(--ink-2); background: rgba(0,0,0,.8); }
.ca-k { display: inline-grid; place-items: center; height: 30px; padding: 0 11px; border-radius: 999px; background: var(--accent); color: #000; font-size: 11px; letter-spacing: .08em; }
.ca-i { color: var(--ink-3); }
.ca-small { height: 34px; font-size: 12px; }
.ca-small .ca-k { height: 24px; padding: 0 9px; font-size: 10px; }

/* ---------- home ---------- */
.home-hero { padding: 132px var(--gutter) 0; }
.mega {
  margin: 0; font-weight: 460; letter-spacing: -0.058em; line-height: .92;
  font-size: clamp(66px, 7.4vw, 128px); text-shadow: 0 0 30px #000, 0 0 12px rgba(0,0,0,.9);
}
.mline { display: block; overflow: hidden; padding-bottom: .16em; margin-bottom: -.16em; }
.mline > span { display: inline-block; transform: translateY(0); transition: transform 1.1s var(--ease); }
.mega em { letter-spacing: -0.025em; padding-right: .05em; color: var(--ink); }
body.intro .mline > span { transform: translateY(105%); }
.mline:nth-child(2) > span { transition-delay: .08s; }
.mline:nth-child(3) > span { transition-delay: .16s; }
.hero-foot { display: flex; align-items: center; gap: 22px; margin-top: 30px; flex-wrap: wrap; }
.sub { margin: 0; font-size: 19px; color: var(--ink-2); text-shadow: 0 0 20px #000; }

.vamps { padding-top: 64px; padding-bottom: 120px; }
.vamps-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.vamps-head h2 { margin: 0; font-weight: 450; font-size: 26px; letter-spacing: -0.03em; text-shadow: 0 0 20px #000; }
.vamps-meta { display: inline-flex; align-items: center; gap: 10px; font: 500 11.5px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }

.vamp-list { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: rgba(4,4,4,.88); backdrop-filter: blur(4px); }
.vamp {
  position: relative; display: grid; align-items: center; gap: 24px;
  grid-template-columns: 34px minmax(200px, 1.25fr) minmax(260px, 2fr) 150px 250px;
  padding: 20px 26px 22px; border-bottom: 1px solid var(--line);
  animation: rowIn .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms);
  transition: background .25s;
}
.vamp:last-child { border-bottom: 0; }
.vamp:hover { background: rgba(255,255,255,.025); }
@keyframes rowIn { from { opacity: 0; transform: translateY(8px); } }
.v-rank { font: 500 12px var(--mono); color: var(--ink-4); }
.v-ticker { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.v-ticker b { font: 500 24px var(--mono); letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .2s; }
.v-ticker:hover b { color: var(--accent); }
.v-ticker span { font-size: 13px; color: var(--ink-3); }
.v-n { font-family: var(--sans); font-style: normal; color: var(--accent); font-weight: 500; letter-spacing: 0; }
.v-coins { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; min-width: 0; }
.v-coin {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px 0 4px;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.02);
  font: 500 12.5px var(--mono); color: var(--ink-2); transition: border-color .2s, color .2s;
}
.v-coin:hover { border-color: var(--line-2); color: var(--ink); }
.v-coin img, .v-coin .ph { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: #151515; display: grid; place-items: center; font: 500 10px var(--mono); color: var(--ink-3); }
.v-coin.top { border-color: rgba(255,107,26,.45); color: var(--ink); }
.v-more { font: 500 12px var(--mono); color: var(--ink-3); padding-left: 4px; }
.v-cap span { display: block; font: 500 10.5px var(--mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; }
.v-cap strong { display: block; margin-top: 4px; font-weight: 420; font-size: 24px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.v-vote { display: flex; align-items: center; justify-content: flex-end; gap: 16px; }
.v-count { font: 400 12.5px var(--mono); color: var(--ink-3); white-space: nowrap; }
.v-count b { color: var(--ink); font-weight: 500; }
.vote-btn { height: 46px; padding: 0 22px; background: var(--accent); color: #000; font-weight: 550; }
.vote-btn:hover { background: #ff8440; }
.vote-btn.voted { background: none; color: var(--ink); border-color: var(--line-2); cursor: default; }
.vote-btn.voted::before { content: "✓"; color: var(--accent); }
.v-bar { position: absolute; left: 26px; right: 26px; bottom: 0; height: 2px; display: flex; gap: 2px; opacity: .9; }
.v-bar i { display: block; height: 100%; background: rgba(244,242,238,.22); min-width: 3px; }
.v-bar i:first-child { background: var(--accent); }
.vamp.skel { grid-template-columns: 34px 1.25fr 2fr 150px 250px; height: 88px; animation: none; }
.vamp.skel span { display: block; height: 14px; border-radius: 6px; background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.09), rgba(255,255,255,.04)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.vamp.skel span:first-child { grid-column: 2; width: 60%; height: 20px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.vamp-empty { padding: 60px 30px; text-align: center; color: var(--ink-2); }
.vamp-empty p { margin: 0 0 20px; }

/* ---------- sub-pages ---------- */
.page { padding-top: 68px; min-height: calc(100vh - 112px); }
.page-hero { padding-top: 120px; padding-bottom: 40px; }
.page-hero.compact { padding-top: 110px; padding-bottom: 36px; }
.page-hero .lede { max-width: 640px; }
.page .section { padding: 110px var(--gutter) 40px; }
.page .section-head { margin-bottom: 40px; }
.page .steps, .page .principles { margin-top: 44px; }
.stats { display: flex; gap: 56px; margin: 56px 0 0; padding-top: 24px; border-top: 1px solid var(--line); max-width: 760px; }
.stats dd { margin: 10px 0 0; font: 400 30px var(--sans); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; text-shadow: 0 0 20px #000; }
.lead-tag.vamp-tag { color: var(--ink-3); }
.prop.focus { border-color: rgba(255,107,26,.5); }
.faq { display: grid; gap: 10px; max-width: 860px; margin-top: 30px; }
.faq details { background: rgba(4,4,4,.9); border: 1px solid var(--line); border-radius: 14px; padding: 0 24px; transition: border-color .2s; }
.faq details[open] { border-color: var(--line-2); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 20px 0; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 20px var(--mono); color: var(--ink-3); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); color: var(--accent); }
.faq details p { margin: 0 0 22px; color: var(--ink-2); max-width: 680px; }
.faq a, .link { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--accent); }
.nf { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; }

/* ---------- footer ---------- */
.foot { padding: 40px 0 34px; border-top: 1px solid var(--line); background: rgba(0,0,0,.72); backdrop-filter: blur(6px); }
.foot-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; font-size: 14px; color: var(--ink-3); }
.foot .brand { font-size: 15px; color: var(--ink); }
.foot-links { display: flex; gap: 28px; }
.foot-links a:hover { color: var(--ink); }
.foot-end { display: flex; align-items: center; justify-content: flex-end; gap: 18px; }
.foot-data { font: 400 12px var(--mono); }


/* ---------- v3: submit CTA, see-all, nav submit ---------- */
.btn-submit { height: 38px; padding: 0 16px; font-size: 13.5px; background: var(--accent); color: #000; font-weight: 550; }
.btn-submit:hover { background: #ff8440; }
.btn-submit span { font-size: 16px; line-height: 1; margin-right: -2px; }
.btn-submit[aria-current="page"] { background: none; color: var(--accent); border-color: rgba(255,107,26,.5); }
.vamp-all {
  display: flex; align-items: center; justify-content: center; gap: 10px; height: 60px;
  font-size: 14.5px; color: var(--ink-2); border-top: 1px solid var(--line); transition: color .2s, background .2s;
}
.vamp-all:hover { color: var(--ink); background: rgba(255,255,255,.03); }
.vamp-all span { transition: transform .3s var(--ease); }
.vamp-all:hover span { transform: translateX(4px); }
.submit-cta {
  display: flex; align-items: center; gap: 24px; margin-top: 14px; padding: 24px 26px;
  border: 1px dashed rgba(255,107,26,.5); border-radius: 18px; background: rgba(12,6,2,.88);
  transition: border-color .25s, background .25s;
}
.submit-cta:hover { border-color: var(--accent); border-style: solid; background: rgba(20,9,3,.92); }
.submit-plus {
  flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(255,107,26,.5); color: var(--accent); font: 300 30px var(--sans); line-height: 1;
}
.submit-text { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.submit-text strong { font-weight: 500; font-size: 21px; letter-spacing: -0.02em; }
.submit-text span { color: var(--ink-2); font-size: 15px; }
.vamps.compact-top { padding-top: 10px; }
.cta-row { display: flex; gap: 10px; justify-content: center; }
.vamps { padding-bottom: 90px; }
@media (max-width: 1320px) { .links a { padding: 8px 10px; font-size: 13.5px; } .chain-switch button { padding: 0 10px; } }
.slot.empty-slot { min-height: 230px; }

/* ==========================================================================
   Light theme — <html data-theme="light">
   Paper, ink and one orange. The black holes print as solid ASCII ink.
   ========================================================================== */
:root[data-theme="light"] {
  --bg: #f4f2ed;
  --ink: #111113;
  --ink-2: rgba(17, 17, 19, 0.66);
  --ink-3: rgba(17, 17, 19, 0.46);
  --ink-4: rgba(17, 17, 19, 0.2);
  --line: rgba(17, 17, 19, 0.08);
  --line-2: rgba(17, 17, 19, 0.16);
  --panel: #ffffff;
  --accent: #e2530f;
  --accent-2: #b8400a;
  --down: #6b7280;
}
:root[data-theme="light"] body { background: var(--bg); }
:root[data-theme="light"] ::selection { background: var(--ink); color: var(--bg); }

/* sky */
:root[data-theme="light"] #field { mix-blend-mode: normal; opacity: 1; }
:root[data-theme="light"] #glow { mix-blend-mode: multiply; filter: blur(22px) saturate(1.5); opacity: .22; }
:root[data-theme="light"] .halo { background: radial-gradient(circle calc(46vmin * var(--halo-s)) at var(--halo-x) var(--halo-y), rgba(226,83,15,.09), transparent 70%); }
:root[data-theme="light"] .grain { opacity: .035; mix-blend-mode: multiply; }
:root[data-theme="light"] body[data-field="page"] #field { opacity: .32; }
:root[data-theme="light"] body[data-field="page"] #glow { opacity: .12; }

/* type over the field: a paper-coloured halo instead of a black one */
:root[data-theme="light"] :is(.title, .display, .body-lg, .body, .lede, .kicker, .eyebrow, .mega, .sub, .vamps-head h2, .stats dd) {
  text-shadow: 0 0 22px var(--bg), 0 0 8px var(--bg), 0 0 2px var(--bg);
}
:root[data-theme="light"] .mega em { color: var(--accent); }

/* chrome */
:root[data-theme="light"] .nav { background: rgba(244,242,237,.82); border-bottom-color: var(--line); }
:root[data-theme="light"] .foot { background: rgba(244,242,237,.9); }
:root[data-theme="light"] .icon-btn,
:root[data-theme="light"] .chain-switch { background: #fff; border-color: var(--line-2); }
:root[data-theme="light"] .chain-pill { background: var(--ink); }
:root[data-theme="light"] .chain-switch button[aria-checked="true"] { color: #fff; }
:root[data-theme="light"] .btn-ghost { background: #fff; }

/* buttons */
:root[data-theme="light"] .btn-solid { background: var(--ink); color: #fff; }
:root[data-theme="light"] .btn-solid:hover { background: #000; }
:root[data-theme="light"] :is(.btn-accent, .btn-submit, .vote-btn) { color: #fff; box-shadow: 0 6px 18px -8px rgba(226,83,15,.6); }
:root[data-theme="light"] :is(.btn-accent, .btn-submit, .vote-btn):hover { background: #c94609; }
:root[data-theme="light"] .vote-btn.voted { background: #fff; color: var(--ink); box-shadow: none; }
:root[data-theme="light"] .btn-submit[aria-current="page"] { background: #fff; color: var(--accent); box-shadow: none; }
:root[data-theme="light"] .vote-merge:hover, :root[data-theme="light"] .vote-merge.chosen { color: #fff; }
:root[data-theme="light"] .vote-pass:hover, :root[data-theme="light"] .vote-pass.chosen { background: var(--ink); color: #fff; }
:root[data-theme="light"] .tabs { background: #fff; }
:root[data-theme="light"] .tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
:root[data-theme="light"] .status.ratified { background: var(--ink); color: #fff; }

/* paper cards: solid white, hairline border, soft lift */
:root[data-theme="light"] :is(.panel, .vamp-list, .fact, .step, .principle, .slot, .faq details, .rules div, .steps, .facts) {
  background: #fff; backdrop-filter: none;
}
:root[data-theme="light"] :is(.vamp-list, .panel, .slot, .steps, .facts, .faq details, .rules) {
  box-shadow: 0 1px 0 rgba(17,17,19,.03), 0 24px 60px -34px rgba(17,17,19,.22);
}
:root[data-theme="light"] .slot.empty-slot { background: rgba(255,255,255,.7); }
:root[data-theme="light"] :is(.scan-field, .slot-input) { background: var(--bg); }
:root[data-theme="light"] .vamp:hover, :root[data-theme="light"] .tr:not(.th):hover { background: #faf8f4; }
:root[data-theme="light"] .v-coin { background: var(--bg); }
:root[data-theme="light"] .v-coin.top { background: #fff3ec; border-color: rgba(226,83,15,.35); }
:root[data-theme="light"] .v-bar i, :root[data-theme="light"] .massbar span { background: rgba(17,17,19,.12); }
:root[data-theme="light"] :is(.v-bar i, .massbar span):first-child { background: var(--accent); }
:root[data-theme="light"] .massbar span:nth-child(2) { background: rgba(17,17,19,.45); }
:root[data-theme="light"] .massbar span:nth-child(3) { background: rgba(17,17,19,.26); }
:root[data-theme="light"] :is(.tok, .slot-id, .body-chip, .v-coin) :is(img, .ph) { background: #ece8df; color: var(--ink-2); border-color: var(--line); }
:root[data-theme="light"] .tally-bar { background: rgba(17,17,19,.07); }
:root[data-theme="light"] .slot.survivor { box-shadow: 0 0 0 1px rgba(226,83,15,.25), 0 30px 70px -36px rgba(226,83,15,.45); }

/* submit card + CA */
:root[data-theme="light"] .submit-cta { background: #fff; border: 1px solid rgba(226,83,15,.35); box-shadow: 0 24px 60px -34px rgba(226,83,15,.4); }
:root[data-theme="light"] .submit-cta:hover { background: #fffaf6; border-color: var(--accent); }
:root[data-theme="light"] .ca { background: #fff; }
:root[data-theme="light"] .ca-k { color: #fff; }

/* toasts */
:root[data-theme="light"] .toast { background: var(--ink); color: #fff; }
:root[data-theme="light"] .toast.err { background: #fff; color: var(--accent-2); border: 1px solid rgba(226,83,15,.35); }

/* theme toggle icon swap */
.theme-btn { position: relative; }
.theme-btn svg { position: absolute; inset: 0; margin: auto; transition: opacity .3s, transform .45s var(--ease); }
.theme-btn .sun { opacity: 0; transform: rotate(-90deg) scale(.7); }
:root[data-theme="light"] .theme-btn .sun { opacity: 1; transform: none; }
:root[data-theme="light"] .theme-btn .moon { opacity: 0; transform: rotate(90deg) scale(.7); }
