/*
 * ZEALOT v20 — "two skulls, one signal".
 * Encrypted terminal meets classified broadsheet. Near-black canvas, ONE lime accent, whisper-weight serif
 * display + terminal-grade sans. No shadows, no other chroma, radius 2/4, exactly one lime divider. No webfonts.
 */

:root {
  --bg: #060606;            /* page */
  --void: #000;             /* nav, hero */
  --graphite: #252525;      /* cards, nav cells */
  --onyx: #1f1f1f;
  --hairline: #3d3d3d;      /* table hairlines, borders */
  --muted: #7a7a7a;
  --caption: #8a8a8a;
  --body: #e5e5e5;
  --display: #fff;
  --lime: #f4b728;
  --lime-hover: #f8c64f;    /* CTA hover, lighter yellow */
  --olive: #8a6a1a;         /* glow under lime */
  --moss: #3a2e0c;          /* dotted grid strokes */

  --serif: "PT Serif", "Source Serif 4", Georgia, serif;
  --sans: "Inter Tight", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;

  --max: 1280px;
  --gutter: 24px;
  --pad: 24px;
  --r2: 2px;
  --r4: 4px;
}

* { box-sizing: border-box; }
html {
  background: var(--bg);
  color: var(--body);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 64px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p, dl, dd, dt, figure { margin: 0; }
a { color: var(--body); }
b, strong { font-weight: 600; }
code { font-family: var(--mono); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.dim { color: var(--muted); }
.arr { font-family: var(--mono); font-weight: 400; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; border-radius: var(--r2); }
::selection { background: var(--lime); color: var(--bg); }

/* ---------- skip link ---------- */
.skip {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  background: var(--lime); color: var(--bg);
  padding: 10px 16px; border-radius: var(--r4);
  font-weight: 600; text-decoration: none;
  transition: top 160ms ease;
}
.skip:focus { top: 12px; }

/* ---------- 0 · nav: segmented full-width bar ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: var(--void);
  border-bottom: 1px solid var(--hairline);
}
.seg {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  height: 48px;
}
.cell {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border-right: 1px solid var(--hairline);
  border-top: 0; border-bottom: 0; border-left: 0;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--body); text-decoration: none; background: none; cursor: pointer;
  white-space: nowrap; padding: 0 12px;
}
.cell:last-child { border-right: 0; }
.cell:hover { color: var(--display); }
.cell.brand { font-weight: 700; letter-spacing: 0.22em; color: var(--display); }
.cell.token { color: var(--muted); }
.cell.cta { background: var(--lime); color: var(--bg); font-weight: 700; }
.cell.cta:hover { color: var(--bg); background: var(--lime-hover); }
.cell.dock { display: none; color: var(--muted); }
.cell.dock:hover { color: var(--display); }

/* ---------- layout ---------- */
main { position: relative; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: 96px 0; position: relative; }
.eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--caption); margin-bottom: 20px;
}
.sec-h {
  font-family: var(--serif); font-weight: 300; letter-spacing: -0.025em; line-height: 1.0;
  font-size: clamp(34px, 4.6vw, 60px); margin-bottom: 32px; color: var(--display);
}
.sec-h em { font-style: italic; color: var(--lime); }

/* ---------- 1 · hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background-color: var(--bg);
  /* the hero grid is drawn in glyphs by hero.js */
}
.hero .skulls { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 1; }
.hero-copy {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 72px 24px 10vh; pointer-events: none;
}
.hero h1 {
  margin: 0; font-family: var(--serif); font-weight: 300;
  font-size: clamp(40px, 6.2vw, 92px); line-height: 1.02;
  letter-spacing: -0.025em; color: var(--display);
}
.hero h1 em { font-style: italic; color: var(--lime); text-shadow: 0 0 28px rgba(244, 183, 40, 0.35); }
.hero-sub {
  margin: 26px 0 0; max-width: 58ch;
  font-family: var(--sans); font-weight: 400; font-size: 15px; line-height: 1.7; color: var(--muted);
}
.mark { margin: 28px auto 0; display: grid; justify-items: center; gap: 10px; }
.mark canvas { width: 190px; height: 190px; display: block; }
.mark-word { font-family: var(--mono); font-size: 11px; letter-spacing: 0.26em; color: var(--lime); }
.hero-pills {
  position: absolute; left: 0; right: 0; bottom: 60px; z-index: 2; pointer-events: none;
}
.pill-status {
  position: absolute; transform: translateX(-50%);
  display: inline-flex; align-items: baseline; gap: 2px;
  padding: 7px 16px; border: 1px solid var(--lime); border-radius: 999px;
  background: rgba(6, 6, 6, 0.55);
  box-shadow: 0 0 18px rgba(138, 106, 26, 0.55);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--body);
  white-space: nowrap;
}
#pill-e1 { left: 25%; }
#pill-e2 { left: 75%; }
.pill-status .p-name { font-weight: 600; color: var(--display); }
.pill-status .sep { color: var(--caption); }
.pill-status .p-hours { color: var(--body); font-variant-numeric: tabular-nums; }
.pill-status .p-state { color: var(--lime); font-weight: 600; }
.scroll {
  position: absolute; left: 0; right: 0; bottom: 16px; z-index: 2;
  text-align: center; font-family: var(--mono); font-weight: 500; font-size: 10px;
  letter-spacing: 0.2em; color: var(--muted);
}


/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: var(--r4);
  font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  text-decoration: none; cursor: pointer; white-space: nowrap; border: 1px solid transparent;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}
.btn.fill { background: var(--lime); color: var(--bg); border-color: var(--lime); }
.btn.fill:hover { background: var(--lime-hover); color: var(--bg); }
.btn.ghost { background: transparent; color: var(--body); border-color: var(--hairline); }
.btn.ghost:hover { border-color: var(--body); color: var(--display); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn.buy-small { height: 32px; padding: 0 14px; font-size: 12px; }

/* ---------- [0002] · the enclaves ---------- */
.entity-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.card { border: 1px solid var(--hairline); border-radius: var(--r4); background: var(--graphite); overflow: hidden; }
.card-meta {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 18px; border-bottom: 1px solid var(--hairline); background: var(--onyx);
}
.meta-label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--caption); }
.meta-idx { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; color: var(--caption); }
.card-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 18px 18px; border-bottom: 1px solid var(--hairline);
}
.card-name { font-family: var(--serif); font-weight: 300; font-size: 26px; letter-spacing: -0.01em; color: var(--display); }
.card-state { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--lime); }
.tabs { display: flex; border-bottom: 1px solid var(--hairline); background: var(--onyx); }
.tab {
  flex: 1; height: 42px; background: none; border: 0; cursor: pointer;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); border-bottom: 1px solid transparent; margin-bottom: -1px;
  transition: color 160ms ease;
}
.tab:hover { color: var(--body); }
.tab.is-active { color: var(--display); border-bottom-color: var(--lime); }
.tab-panel { padding: 18px; }

.kvs { display: grid; }
.kvs > div {
  display: flex; justify-content: space-between; gap: 16px; align-items: baseline;
  padding: 9px 0; border-bottom: 1px solid var(--hairline);
}
.kvs > div:last-child { border-bottom: 0; }
.kvs dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--caption); }
.kvs dd { font-family: var(--mono); font-size: 13px; text-align: right; overflow-wrap: anywhere; color: var(--body); }

.empty { font-family: var(--mono); font-size: 13px; color: var(--caption); line-height: 1.6; }

.shop-list, .words-list { display: grid; gap: 10px; }
.shop-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border: 1px solid var(--hairline); border-radius: var(--r4); background: var(--onyx);
}
.shop-name { flex: 1; min-width: 0; font-size: 14px; color: var(--body); }
.shop-price { color: var(--caption); font-size: 12px; }
.word { padding: 0 0 12px; border-bottom: 1px solid var(--hairline); }
.word:last-child { border-bottom: 0; padding-bottom: 0; }
.word-text { font-size: 14px; line-height: 1.5; margin: 0 0 6px; color: var(--body); }
.word-time { font-size: 11px; color: var(--caption); }

/* ---------- [0003] · one trade, one wallet ---------- */
.steps { width: 100%; border-collapse: collapse; border: 1px solid var(--hairline); border-radius: var(--r4); overflow: hidden; margin: 0 0 8px; }
.steps th, .steps td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--hairline); }
.steps tr:last-child th, .steps tr:last-child td { border-bottom: 0; }
.steps th {
  font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--lime);
  width: 1%; white-space: nowrap; letter-spacing: 0.06em;
}
.steps td { font-family: var(--mono); font-size: 13px; line-height: 1.55; color: var(--body); }
.steps code {
  font-family: var(--mono); color: var(--display); background: var(--onyx);
  padding: 1px 6px; border-radius: var(--r2); border: 1px solid var(--hairline);
}
.fee { font-family: var(--mono); font-size: 12px; color: var(--caption); margin: 6px 0 26px; }

.book { margin: 0 0 26px; border: 1px solid var(--hairline); border-radius: var(--r4); overflow-x: auto; background: var(--onyx); }
.book-table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 13px; }
.book-table th, .book-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--hairline); white-space: nowrap; }
.book-table th { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--caption); }
.book-table td { color: var(--body); }
.book-table tbody tr:last-child td { border-bottom: 0; }
.book .empty { padding: 26px 18px; }

/* ---------- [0006] · where the money goes ---------- */
.flow { width: 100%; border-collapse: collapse; border: 1px solid var(--hairline); border-radius: var(--r4); overflow: hidden; margin: 0 0 12px; }
.flow th, .flow td { text-align: left; vertical-align: top; padding: 13px 16px; border-bottom: 1px solid var(--hairline); font-family: var(--mono); }
.flow thead th { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--caption); background: var(--onyx); font-weight: 600; white-space: nowrap; }
.flow thead th::after { content: " →"; color: var(--hairline); font-weight: 400; letter-spacing: 0; }
.flow thead th:last-child::after { content: none; }
.flow tbody td { font-size: 12px; line-height: 1.6; color: var(--body); }
.flow tbody tr:last-child td { border-bottom: 0; }
.flow td:nth-child(3) { color: var(--display); font-variant-numeric: tabular-nums; }
.flow td:nth-child(4) { color: var(--muted); }
.flow td.flow-addr { overflow-wrap: anywhere; user-select: all; }
.canary {
  display: inline-block; padding: 1px 7px; border: 1px solid var(--lime); border-radius: var(--r2);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--lime); margin-left: 6px; white-space: nowrap; font-weight: 600;
}
.legend { font-family: var(--mono); font-size: 11px; line-height: 1.6; color: var(--caption); margin: 12px 0 0; }
.money-sub {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 600; color: var(--caption); margin: 40px 0 14px;
}
.route {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px;
  border: 1px solid var(--hairline); border-radius: var(--r4); background: var(--onyx); padding: 16px;
}
.hop-node { font-family: var(--mono); font-size: 12px; color: var(--body); }
.hop-arr { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.pv { border: 1px solid var(--hairline); border-radius: var(--r4); background: var(--onyx); overflow: hidden; }
.pv-row { display: flex; gap: 16px; padding: 13px 16px; border-bottom: 1px solid var(--hairline); align-items: baseline; }
.pv-row:last-child { border-bottom: 0; }
.pv-k { flex: none; width: 128px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--caption); }
.pv-v { font-family: var(--mono); font-size: 12px; line-height: 1.6; color: var(--body); }
.token-plan { border: 1px solid var(--hairline); border-radius: var(--r4); background: var(--onyx); padding: 16px; }
.token-plan p { font-family: var(--mono); font-size: 12px; color: var(--caption); margin: 0 0 10px; }
.plan { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--body); line-height: 1.6; }
.plan li { padding-left: 18px; position: relative; }
.plan li::before { content: "·"; position: absolute; left: 4px; color: var(--caption); }

/* ---------- [0007] · the ledger ---------- */
.ledger-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.ledger-panel { border: 1px solid var(--hairline); border-radius: var(--r4); background: var(--graphite); overflow: hidden; }
.ledger-head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 16px; border-bottom: 1px solid var(--hairline); background: var(--onyx);
}
.ledger-title { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--caption); }
.ledger-head .btn { height: 34px; padding: 0 14px; font-size: 12px; }
.ledger-lines { max-height: 460px; overflow-y: auto; padding: 8px 0; }
.ledger-line {
  display: flex; gap: 12px; align-items: baseline;
  padding: 7px 16px; border-bottom: 1px solid rgba(61, 61, 61, 0.5);
  font-family: var(--mono); font-size: 12px;
}
.ledger-line:last-child { border-bottom: 0; }
.ledger-line.new { animation: settle 320ms ease-out; }
@keyframes settle { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.l-e { color: var(--lime); font-weight: 600; flex: none; }
.l-seq { color: var(--caption); flex: none; width: 34px; }
.l-type { color: var(--body); flex: none; }
.l-amt { color: var(--body); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.l-t { color: var(--caption); flex: none; }
.verify-out { padding: 0 16px 14px; display: grid; gap: 4px; }
.v-line { font-family: var(--mono); font-size: 12px; }
.v-line.ok { color: var(--lime); }
.v-line.bad { color: var(--body); }

.forecasts { border: 1px solid var(--hairline); border-radius: var(--r4); background: var(--graphite); overflow: hidden; }
.forecasts h3 {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600;
  padding: 13px 16px; border-bottom: 1px solid var(--hairline); color: var(--caption); background: var(--onyx);
}
.forecasts-body { padding: 8px 0; }
.fc {
  display: flex; gap: 12px; align-items: baseline;
  padding: 8px 16px; border-bottom: 1px solid rgba(61, 61, 61, 0.5);
  font-family: var(--mono); font-size: 12px; color: var(--caption);
}
.fc:last-child { border-bottom: 0; }
.fc-who { color: var(--lime); font-weight: 600; flex: none; }
.fc-score { color: var(--body); }
.forecasts-body .empty { padding: 18px 16px; }

/* ---------- [0008] · terminal ---------- */
.term {
  border: 1px solid var(--hairline); border-radius: var(--r4);
  height: 420px; display: flex; flex-direction: column;
  background: var(--void); overflow: hidden;
}
.term.docked {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
  height: min(62vh, 560px); border-radius: var(--r4);
  border-color: var(--lime);
}
.term-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 14px; border-bottom: 1px solid var(--hairline);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--caption);
  flex: none; background: var(--onyx);
}
.term-tools { display: flex; gap: 4px; }
.term-dock, .term-fold {
  background: none; border: 0; color: var(--muted); font-family: var(--mono);
  letter-spacing: 0.1em; cursor: pointer; padding: 2px 6px; font-size: 11px;
}
.term-dock:hover, .term-fold:hover { color: var(--display); }
.term-log { flex: 1; overflow-y: auto; padding: 12px 14px 4px; overscroll-behavior: contain; }
.term-log::-webkit-scrollbar { width: 10px; }
.term-log::-webkit-scrollbar-thumb { background: var(--graphite); }
.term-log::-webkit-scrollbar-track { background: transparent; }

.line { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; min-height: 1.4em; font-family: var(--mono); font-size: 13px; color: var(--body); }
.line.cmd { color: var(--body); margin-top: 12px; }
.line.cmd::before { content: "$ "; color: var(--lime); }
.line .ok { color: var(--lime); }
.line.dim { color: var(--muted); }
.line.signal { color: var(--lime); }
.line.err { color: var(--body); }
.cursor::after { content: "▋"; color: var(--lime); animation: blink 1s steps(2) infinite; margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }

.term-prompt { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--hairline); flex: none; }
.ps1 { color: var(--lime); white-space: nowrap; font-family: var(--mono); font-size: 13px; }
.prompt {
  flex: 1; min-width: 0; border: 0; padding: 4px 0; background: transparent;
  color: var(--body); font-family: var(--mono); font-size: 14px;
}
.prompt:focus { outline: none; }
.prompt::placeholder { color: var(--muted); }
.term-hint { font-size: 10px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--mono); }
.term.collapsed { height: auto; }
.term.collapsed .term-log, .term.collapsed .term-prompt { display: none; }
.line a { color: var(--body); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--muted); }
.line a:hover { color: var(--lime); }
.copy {
  background: none; border: 1px solid var(--hairline); color: var(--muted);
  font-family: var(--mono); font-size: 11px; padding: 3px 9px; cursor: pointer; margin-left: 6px; border-radius: var(--r2);
}
.copy:hover { color: var(--body); border-color: var(--body); }

/* ---------- footer ---------- */
.foot { position: relative; padding: 30px 0 44px; background: transparent; }
.foot-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--pad);
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: start;
}
.foot-mono { display: flex; flex-direction: column; gap: 6px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.foot-centre { text-align: center; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--muted); line-height: 1.7; }
.foot-right { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; font-family: var(--mono); font-size: 11px; }
.foot-url { color: var(--muted); text-decoration: none; }
.foot-url:hover { color: var(--body); }

/* ---------- pay dialog ---------- */
.pay {
  border: 1px solid var(--hairline); border-radius: var(--r4);
  background: var(--graphite); color: var(--body); padding: 0;
  width: min(640px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px); max-width: calc(100vw - 24px);
}
.pay::backdrop { background: rgba(3, 3, 5, 0.82); }
.pay-form { padding: 24px; display: grid; gap: 16px; }
.pay-form > * { min-width: 0; }
.pay-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.pay-head h2 { font-family: var(--serif); font-weight: 300; font-size: 24px; letter-spacing: -0.01em; color: var(--display); }
.pay .x { background: none; border: 1px solid var(--hairline); color: var(--body); width: 36px; height: 36px; font-size: 18px; line-height: 1; cursor: pointer; border-radius: var(--r4); }
.pay .x:hover { border-color: var(--lime); }
.pay-note { color: var(--caption); font-size: 12px; font-family: var(--mono); }
.pay p { margin: 0; }
.pay .dim { color: var(--caption); }

fieldset.seg { border: 0; padding: 0; margin: 0; display: flex; gap: 8px; flex-wrap: wrap; }
legend { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--caption); margin-bottom: 8px; padding: 0; font-family: var(--mono); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border: 1px solid var(--hairline); border-radius: var(--r4); font-size: 12px; cursor: pointer; color: var(--caption); font-family: var(--mono); }
.seg input:checked + span { background: var(--onyx); color: var(--body); border-color: var(--lime); }
.seg input:focus-visible + span { outline: 2px solid var(--lime); }
.seg input:disabled + span { opacity: 0.4; cursor: not-allowed; }

.pay-offer, .pay-q { display: grid; gap: 8px; }
.pay-offer > span, .pay-q > span { font-size: 10px; letter-spacing: 0.06em; color: var(--caption); display: flex; justify-content: space-between; gap: 10px; font-family: var(--mono); }
.pay-offer select, .pay-q textarea {
  width: 100%; font-family: var(--mono); font-size: 13px;
  color: var(--body); background: var(--onyx); border: 1px solid var(--hairline); border-radius: var(--r4); padding: 10px 12px;
}
.pay-q textarea { resize: vertical; min-height: 64px; }
.pay-q.over textarea { border-color: var(--body); }

.pay-buyrow { display: flex; align-items: flex-end; gap: 12px; }
.pay-buyrow .pay-q { flex: 1; }
.pay-buyrow .btn.fill { height: 40px; flex: none; }

.pay-price { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; font-size: 13px; }
.pay-price b { font-size: 20px; color: var(--display); }
.pay-price .mono { color: var(--body); }
.pay-price .dim { color: var(--muted); }

.pay-out { display: grid; grid-template-columns: 180px 1fr; gap: 20px; align-items: start; }
.qr { width: 180px; aspect-ratio: 1; background: #fff; overflow: hidden; border: 1px solid var(--hairline); border-radius: var(--r4); }
.qr svg { width: 100%; height: 100%; display: block; }
.qr .err { font-size: 12px; color: var(--body); padding: 12px; background: var(--onyx); height: 100%; display: block; font-family: var(--mono); }
.pay-actions { display: grid; gap: 10px; justify-items: start; }
.pay-actions .dim { font-size: 11px; line-height: 1.5; font-family: var(--mono); color: var(--caption); }
.addr { font-size: 10px; overflow-wrap: anywhere; user-select: all; color: var(--caption); font-family: var(--mono); }

/* ---------- trade dialog ---------- */
.trade {
  border: 1px solid var(--hairline); border-radius: var(--r4);
  background: var(--graphite); color: var(--body); padding: 0;
  width: min(640px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px); max-width: calc(100vw - 24px);
  overflow-y: auto;
}
.trade::backdrop { background: rgba(3, 3, 5, 0.82); }
.trade-form { padding: 24px; display: grid; gap: 16px; }
.trade-form > * { min-width: 0; }
.trade-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.trade-head h2 { font-family: var(--serif); font-weight: 300; font-size: 24px; letter-spacing: -0.01em; color: var(--display); }
.trade .x { background: none; border: 1px solid var(--hairline); color: var(--body); width: 36px; height: 36px; font-size: 18px; line-height: 1; cursor: pointer; border-radius: var(--r4); }
.trade .x:hover { border-color: var(--lime); }
.trade-note { color: var(--caption); font-size: 12px; font-family: var(--mono); }
.trade p { margin: 0; }
.trade .dim { color: var(--caption); }

.trade-field { display: grid; gap: 6px; }
.trade-field > span { font-size: 10px; letter-spacing: 0.06em; color: var(--caption); display: flex; justify-content: space-between; gap: 10px; font-family: var(--mono); }
.trade-field input {
  width: 100%; font-family: var(--mono); font-size: 13px;
  color: var(--body); background: var(--onyx); border: 1px solid var(--hairline); border-radius: var(--r4); padding: 10px 12px;
}
.trade-field input:focus { outline: none; border-color: var(--lime); }

.trade-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.trade-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: -6px; }
.trade-chip {
  background: none; border: 1px solid var(--hairline); color: var(--caption);
  font-family: var(--mono); font-size: 11px; padding: 4px 12px; cursor: pointer;
  border-radius: 999px; letter-spacing: 0.06em;
}
.trade-chip:hover { color: var(--body); border-color: var(--body); }

.trade-memo { display: grid; gap: 6px; border: 1px solid var(--hairline); border-radius: var(--r4); background: var(--onyx); padding: 10px 12px; }
.trade-memo > span { font-size: 10px; letter-spacing: 0.06em; color: var(--caption); font-family: var(--mono); display: flex; justify-content: space-between; gap: 10px; }
.trade-memo code { font-size: 12px; color: var(--body); overflow-wrap: anywhere; font-family: var(--mono); }
.trade-memo.over { border-color: var(--body); }

.trade-out { display: grid; grid-template-columns: 180px 1fr; gap: 20px; align-items: start; }
.trade-actions { display: grid; gap: 10px; justify-items: start; }
.trade-notlive { margin: 0; }

.trade-help { font-family: var(--mono); font-size: 11px; line-height: 1.6; color: var(--caption); }

.notlive[hidden], .trade-out[hidden], .trade-panel[hidden] { display: none; }

@media (max-width: 640px) {
  .trade-row { grid-template-columns: 1fr; }
  .trade-out { grid-template-columns: 1fr; }
}

/* ---------- [0001] · the channel ---------- */
.chat-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.chat-main { min-width: 0; display: grid; gap: 14px; }

.chat-feed {
  border: 1px solid var(--hairline); border-radius: var(--r4);
  background: var(--void); overflow-y: auto; padding: 12px 14px;
  max-height: 600px; min-height: 320px;
  overscroll-behavior: contain;
}
.chat-feed::-webkit-scrollbar { width: 10px; }
.chat-feed::-webkit-scrollbar-thumb { background: var(--graphite); }
.chat-feed::-webkit-scrollbar-track { background: transparent; }

.msg { display: grid; gap: 3px; padding: 9px 0; border-bottom: 1px solid rgba(61, 61, 61, 0.5); }
.msg:last-child { border-bottom: 0; }
.msg.reply {
  margin: 2px 0 0 22px; padding: 8px 0 8px 14px;
  border-bottom: 1px solid rgba(61, 61, 61, 0.5); border-left: 1px solid var(--hairline);
}
.msg.flash { animation: chat-flash 1.8s ease-out; }
@keyframes chat-flash { from { background: rgba(244, 183, 40, 0.16); } to { background: transparent; } }

.msg-head { display: flex; align-items: baseline; gap: 8px; font-family: var(--mono); font-size: 11px; }
.msg-author { font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; }
.msg-author.entity { color: var(--lime); }
.msg-author.human { color: var(--muted); }
.msg-time { color: var(--caption); font-variant-numeric: tabular-nums; margin-left: auto; }

.msg-text { font-family: var(--mono); font-size: 13px; line-height: 1.55; color: var(--body); white-space: pre-wrap; overflow-wrap: anywhere; }
.msg-text a { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--hairline); }
.msg-text a:hover { color: var(--body); }

.msg-waiting { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; color: var(--caption); }

.chat-composer {
  border: 1px solid var(--hairline); border-radius: var(--r4);
  background: var(--graphite); padding: 14px; display: grid; gap: 12px;
}
.chat-name { display: grid; gap: 6px; }
.chat-name > span { font-size: 10px; letter-spacing: 0.06em; color: var(--caption); font-family: var(--mono); }
.chat-name input {
  width: 100%; font-family: var(--mono); font-size: 13px;
  color: var(--body); background: var(--onyx); border: 1px solid var(--hairline); border-radius: var(--r4); padding: 9px 12px;
}
.chat-name input:focus { outline: none; border-color: var(--lime); }
.chat-text {
  width: 100%; font-family: var(--mono); font-size: 13px; line-height: 1.5;
  color: var(--body); background: var(--onyx); border: 1px solid var(--hairline); border-radius: var(--r4); padding: 10px 12px;
  resize: vertical; min-height: 68px; max-height: 220px;
}
.chat-text:focus { outline: none; border-color: var(--lime); }

.chat-meta { display: flex; align-items: center; gap: 12px; }
.chat-count { font-family: var(--mono); font-size: 11px; color: var(--caption); }
.chat-status { font-family: var(--mono); font-size: 11px; color: var(--caption); flex: 1; line-height: 1.5; }
.chat-status.err { color: var(--body); }
.chat-status.ok { color: var(--lime); }

.chat-side { display: grid; gap: 16px; min-width: 0; }
.priority-card {
  border: 1px solid var(--lime); border-radius: var(--r4);
  background: var(--graphite); padding: 18px; display: grid; gap: 12px;
}
.priority-card h3 { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--lime); }
.priority-card p { font-family: var(--mono); font-size: 12px; line-height: 1.6; color: var(--body); }
.priority-card .btn { justify-self: start; }
.chat-rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--muted); line-height: 1.5; }
.chat-rules li { padding-left: 18px; position: relative; }
.chat-rules li::before { content: "·"; position: absolute; left: 4px; color: var(--caption); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .entity-grid { grid-template-columns: 1fr; }
  .ledger-grid { grid-template-columns: 1fr; }
  .chat-grid { grid-template-columns: 1fr; }
  .foot-inner { grid-template-columns: 1fr; text-align: left; }
  .foot-centre { text-align: left; }
  .foot-right { align-items: flex-start; }
}

@media (max-width: 640px) {
  :root { --pad: 16px; }
  .cell.m { display: none; }
  .cell.dock { display: flex; }
  .hero { height: 100vh; height: 100svh; }
  .hero-copy { padding: 64px 16px 12vh; }
  .hero h1 { font-size: clamp(26px, 7vw, 40px); }
  .hero-sub { font-size: 13px; line-height: 1.6; margin-top: 18px; }
  .mark { margin-top: 22px; }
  .mark canvas { width: 84px; height: 84px; }
  .hero-pills { bottom: 46px; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; padding: 0 12px; }
  .pill-status { position: static; transform: none; }
  #pill-e1, #pill-e2 { left: auto; }
  .pill-status { font-size: 10px; padding: 6px 12px; letter-spacing: 0.05em; }
  .section { padding: 72px 0; }
  .steps th, .steps td { padding: 12px; }
  .steps td { font-size: 12px; }
  .term-hint { display: none; }
  .pay-buyrow { flex-direction: column; align-items: stretch; }
  .pay-out { grid-template-columns: 1fr; }
  .qr { width: 160px; }

  .flow thead { display: none; }
  .flow, .flow tbody, .flow tr, .flow td { display: block; width: 100%; }
  .flow tr { padding: 14px 16px; border-bottom: 1px solid var(--hairline); }
  .flow tr:last-child { border-bottom: 0; }
  .flow td { position: relative; padding: 6px 0 6px 112px; border: 0; }
  .flow td::before {
    content: attr(data-label);
    position: absolute; left: 0; top: 7px; width: 100px;
    font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--caption);
  }
  .pv-row { flex-direction: column; gap: 5px; align-items: flex-start; }
  .pv-k { width: auto; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ledger-line.new, .cursor::after, .msg.flash { animation: none; }
  .skip, .btn, .cell, .tab, .copy { transition: none; }
}

/* the nav arrow is not a segment option */
.seg .arr, .cell .arr { height: auto; padding: 0; border: 0; background: none; display: inline; }

/* trades are not live: say it so nobody sends money for them */
.notlive { border: 1px solid var(--lime); border-radius: var(--r4); padding: 16px 18px; margin: 18px 0; display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.notlive-tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; font-weight: 700; color: var(--bg); background: var(--lime); padding: 6px 10px; border-radius: 2px; white-space: nowrap; }
.notlive p { margin: 0; color: var(--body); font-size: 14px; line-height: 1.55; }
.notlive code { font-family: var(--mono); color: var(--lime); }
.btn.is-off { opacity: 0.45; cursor: not-allowed; pointer-events: none; }
@media (max-width: 640px) { .notlive { grid-template-columns: 1fr; } }

/* ---------- v20 · trade buttons, receipt, my trades ---------- */
[hidden] { display: none !important; }

.trade-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* the till receipt, shown inside the buy tab once the memo is valid */
.trade-receipt { margin-top: 2px; }
.receipt {
  border: 1px dashed var(--hairline); border-radius: var(--r4);
  background: var(--onyx); padding: 16px; display: grid; gap: 12px;
  font-family: var(--mono);
}
.receipt-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.receipt-brand { font-size: 18px; font-weight: 700; letter-spacing: 0.22em; color: var(--lime); }
.receipt-sub { font-size: 10px; letter-spacing: 0.14em; color: var(--caption); }
.receipt-dash { border-top: 1px dashed var(--hairline); }
.receipt-body { display: grid; gap: 5px; font-size: 12px; }
.rc-row { display: flex; justify-content: space-between; gap: 12px; }
.rc-k { color: var(--caption); text-transform: uppercase; font-size: 10px; letter-spacing: 0.06em; }
.rc-v { color: var(--body); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; text-align: right; }
.receipt-code {
  font-size: 12px; color: var(--lime); overflow-wrap: anywhere; user-select: all;
  background: var(--void); border: 1px dashed var(--hairline); padding: 8px 10px; border-radius: var(--r2);
}
.receipt-warn { font-size: 11px; line-height: 1.55; color: var(--caption); }
.receipt-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* my trades dialog */
.mytrade {
  border: 1px solid var(--hairline); border-radius: var(--r4);
  background: var(--graphite); color: var(--body); padding: 0;
  width: min(720px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px); max-width: calc(100vw - 24px);
  overflow-y: auto;
}
.mytrade::backdrop { background: rgba(3, 3, 5, 0.82); }
.mytrade-form { padding: 24px; display: grid; gap: 16px; }
.mytrade-form > * { min-width: 0; }
.mytrade .x {
  background: none; border: 1px solid var(--hairline); color: var(--body);
  width: 36px; height: 36px; font-size: 18px; line-height: 1; cursor: pointer; border-radius: var(--r4);
}
.mytrade .x:hover { border-color: var(--lime); }
.mytrade-note { color: var(--caption); font-size: 12px; font-family: var(--mono); line-height: 1.55; }
.mytrade select {
  width: 100%; font-family: var(--mono); font-size: 13px;
  color: var(--body); background: var(--onyx); border: 1px solid var(--hairline); border-radius: var(--r4); padding: 10px 12px;
}
.mytrades-add { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; }
.mytrades-list { display: grid; gap: 16px; }
.mt-err { color: var(--body); font-family: var(--mono); font-size: 12px; }

.mt-card {
  border: 1px solid var(--hairline); border-radius: var(--r4);
  background: var(--graphite); padding: 16px; display: grid; gap: 14px;
}
.mt-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.mt-entity { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--lime); font-weight: 600; }
.mt-token { color: var(--body); font-size: 13px; }
.mt-amt { color: var(--caption); font-size: 12px; margin-left: auto; }

.mt-wait { display: flex; align-items: center; gap: 10px; color: var(--caption); font-size: 12px; font-family: var(--mono); line-height: 1.5; }
.spinner {
  width: 14px; height: 14px; border: 2px solid var(--hairline);
  border-top-color: var(--lime); border-radius: 50%; animation: spin 0.9s linear infinite; flex: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

.mt-steps { display: flex; border: 1px solid var(--hairline); border-radius: var(--r4); overflow: hidden; }
.mt-step {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 10px 2px 8px; border-right: 1px solid var(--hairline); color: var(--muted);
}
.mt-step:last-child { border-right: 0; }
.mt-step .mt-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--graphite); border: 1px solid var(--hairline); }
.mt-step .mt-step-label { font-family: var(--mono); font-size: 8px; letter-spacing: 0.02em; text-align: center; line-height: 1.25; }
.mt-step.done { color: var(--body); }
.mt-step.done .mt-dot { background: var(--lime); border-color: var(--lime); }
.mt-step.active { color: var(--lime); }
.mt-step.active .mt-dot {
  background: transparent; border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(244, 183, 40, 0.22); animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(244, 183, 40, 0.08); } }

.mt-kvs { display: grid; }
.mt-kvs > div { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; border-bottom: 1px solid rgba(61, 61, 61, 0.5); }
.mt-kvs > div:last-child { border-bottom: 0; }
.mt-kvs dt { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--caption); }
.mt-kvs dd { font-family: var(--mono); font-size: 12px; text-align: right; color: var(--body); }

.mt-bar { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; font-size: 11px; }
.mt-bar-stop, .mt-bar-target { color: var(--caption); }
.mt-bar-track { position: relative; height: 6px; background: var(--onyx); border: 1px solid var(--hairline); border-radius: 999px; }
.mt-bar-entry { position: absolute; top: -3px; width: 2px; height: 12px; background: var(--caption); transform: translateX(-50%); }
.mt-bar-cur { position: absolute; top: -4px; width: 3px; height: 14px; background: var(--lime); transform: translateX(-50%); border-radius: 1px; }

.mt-close { display: grid; gap: 12px; }
.mt-close-btn { justify-self: start; }
.mt-close-sub { display: grid; gap: 10px; justify-items: start; }
.mt-qr { width: 140px; }
.mt-memo { font-size: 12px; color: var(--lime); overflow-wrap: anywhere; }
.mt-note { font-family: var(--mono); font-size: 12px; color: var(--caption); line-height: 1.55; }
.mt-note.err { color: var(--body); }
.mt-paid { color: var(--lime); }
.mt-forget {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--hairline);
  background: none; border: 0; padding: 0; cursor: pointer; justify-self: start;
}
.mt-forget:hover { color: var(--body); }

@media (max-width: 640px) {
  .mytrades-add { grid-template-columns: 1fr; }
  .mt-step { padding: 8px 1px 6px; }
  .mt-step .mt-step-label { font-size: 7px; }
}

/* ---------- v21 · ASCII scenes (the skull style, extended site-wide) ---------- */
.scene { display: block; background: transparent; pointer-events: none; }

/* every section gets the hero's glyph field behind it */
/* the glyph field runs behind the whole page (body), see the end of this file */

/* ---------- stages: the art is as big as the hero's, the copy sits in a clear column ---------- */
.section > .wrap { position: relative; z-index: 1; }

/* enclaves: two big portraits, no boxes around them */
.card { background: transparent; }
.card-portrait { position: relative; height: 560px; background: transparent; border-bottom: 1px solid var(--hairline); overflow: hidden; }
.card-portrait canvas { width: 100%; height: 100%; display: block; }
.card-portrait.is-dead { opacity: 0.35; }

/* trades: the hand fills the right half of the section, full height */
#trades { min-height: 760px; }
.scene.hand-band { position: absolute; top: 0; right: 0; bottom: 0; left: auto; width: 52%; height: 100%; opacity: 0.95; z-index: 0; transform: scaleX(-1); } /* mirrored: the hand reaches in from the right edge, away from the copy */
#trades .wrap > *:not(.book):not(.notlive) { max-width: 640px; }

/* money: a tall hourglass beside the table, sticky while you read */
.money-grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 32px; align-items: start; }
.money-main { min-width: 0; }
.scene.hourglass { width: 100%; height: 820px; position: sticky; top: 64px; }

/* ledger: the spine runs across the whole top of the section, big */
#ledger { padding-top: 360px; }
.scene.spine-band { position: absolute; top: 40px; left: 0; right: 0; width: 100%; height: 300px; opacity: 1; z-index: 0; }

/* terminal: the shouting skull is as tall as the terminal */
.term-grid { display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 24px; align-items: stretch; }
.scene.shout { width: 100%; height: 100%; min-height: 460px; }
.term.docked ~ .scene.shout { display: none; }

/* footer: crossed bones as a real band */
.foot { padding-top: 0; }
.scene.bones { width: 100%; height: 240px; opacity: 0.85; }
.foot-inner { padding-top: 30px; }

/* scrolling 1-row ASCII dividers (CSS only) */
.ascii-divider {
  overflow: hidden; height: 22px; line-height: 22px; white-space: nowrap;
  background: var(--void); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; color: var(--muted);
}
.ascii-scroll { display: inline-block; will-change: transform; animation: ascii-scroll 26s linear infinite; }
@keyframes ascii-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (max-width: 980px) {
  .money-grid { grid-template-columns: 1fr; }
  .scene.hourglass { height: 520px; position: static; }
  .term-grid { grid-template-columns: 1fr; }
  .scene.shout { min-height: 320px; height: 320px; }
  .scene.hand-band { position: relative; width: 100%; height: 360px; }
  #trades { min-height: 0; }
}
@media (max-width: 640px) {
  .scene.hand-band { height: 260px; }
  #ledger { padding-top: 220px; }
  .scene.spine-band { height: 180px; }
  .scene.bones { height: 140px; }
  .card-portrait { height: 420px; }
  .scene.hourglass { height: 440px; }
}

@media (prefers-reduced-motion: reduce) {
  .ascii-scroll { animation: none; }
}

/* one site, no seams: same colour and the same glyph field from top to bottom */
html, body { background-color: var(--bg); }
body { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22288%22%20height%3D%22288%22%3E%3Cg%20fill%3D%22%23f4b728%22%20fill-opacity%3D%220.16%22%20font-family%3D%22Menlo%2Cmonospace%22%20font-size%3D%2211%22%20text-anchor%3D%22middle%22%3E%3Ctext%20x%3D%2224%22%20y%3D%2230%22%3E%29%3C%2Ftext%3E%3Ctext%20x%3D%2272%22%20y%3D%2230%22%3E%24%3C%2Ftext%3E%3Ctext%20x%3D%22120%22%20y%3D%2230%22%3E%29%3C%2Ftext%3E%3Ctext%20x%3D%22168%22%20y%3D%2230%22%3E%29%3C%2Ftext%3E%3Ctext%20x%3D%22216%22%20y%3D%2230%22%3E%24%3C%2Ftext%3E%3Ctext%20x%3D%22264%22%20y%3D%2230%22%3E%23%3C%2Ftext%3E%3Ctext%20x%3D%2224%22%20y%3D%2278%22%3E%5E%3C%2Ftext%3E%3Ctext%20x%3D%2272%22%20y%3D%2278%22%3E%25%3C%2Ftext%3E%3Ctext%20x%3D%22120%22%20y%3D%2278%22%3E%24%3C%2Ftext%3E%3Ctext%20x%3D%22168%22%20y%3D%2278%22%3E%29%3C%2Ftext%3E%3Ctext%20x%3D%22216%22%20y%3D%2278%22%3E%23%3C%2Ftext%3E%3Ctext%20x%3D%22264%22%20y%3D%2278%22%3E%25%3C%2Ftext%3E%3Ctext%20x%3D%2224%22%20y%3D%22126%22%3E%40%3C%2Ftext%3E%3Ctext%20x%3D%2272%22%20y%3D%22126%22%3E%29%3C%2Ftext%3E%3Ctext%20x%3D%22120%22%20y%3D%22126%22%3E%26amp%3B%3C%2Ftext%3E%3Ctext%20x%3D%22168%22%20y%3D%22126%22%3E%25%3C%2Ftext%3E%3Ctext%20x%3D%22216%22%20y%3D%22126%22%3E%40%3C%2Ftext%3E%3Ctext%20x%3D%22264%22%20y%3D%22126%22%3E%24%3C%2Ftext%3E%3Ctext%20x%3D%2224%22%20y%3D%22174%22%3E%21%3C%2Ftext%3E%3Ctext%20x%3D%2272%22%20y%3D%22174%22%3E%23%3C%2Ftext%3E%3Ctext%20x%3D%22120%22%20y%3D%22174%22%3E%28%3C%2Ftext%3E%3Ctext%20x%3D%22168%22%20y%3D%22174%22%3E%29%3C%2Ftext%3E%3Ctext%20x%3D%22216%22%20y%3D%22174%22%3E%23%3C%2Ftext%3E%3Ctext%20x%3D%22264%22%20y%3D%22174%22%3E%25%3C%2Ftext%3E%3Ctext%20x%3D%2224%22%20y%3D%22222%22%3E%23%3C%2Ftext%3E%3Ctext%20x%3D%2272%22%20y%3D%22222%22%3E%21%3C%2Ftext%3E%3Ctext%20x%3D%22120%22%20y%3D%22222%22%3E%24%3C%2Ftext%3E%3Ctext%20x%3D%22168%22%20y%3D%22222%22%3E%40%3C%2Ftext%3E%3Ctext%20x%3D%22216%22%20y%3D%22222%22%3E%21%3C%2Ftext%3E%3Ctext%20x%3D%22264%22%20y%3D%22222%22%3E%21%3C%2Ftext%3E%3Ctext%20x%3D%2224%22%20y%3D%22270%22%3E%5E%3C%2Ftext%3E%3Ctext%20x%3D%2272%22%20y%3D%22270%22%3E%5E%3C%2Ftext%3E%3Ctext%20x%3D%22120%22%20y%3D%22270%22%3E%23%3C%2Ftext%3E%3Ctext%20x%3D%22168%22%20y%3D%22270%22%3E%21%3C%2Ftext%3E%3Ctext%20x%3D%22216%22%20y%3D%22270%22%3E%29%3C%2Ftext%3E%3Ctext%20x%3D%22264%22%20y%3D%22270%22%3E%2A%3C%2Ftext%3E%3C%2Fg%3E%3C%2Fsvg%3E"); background-size: 288px 288px; }
.section { background: transparent; }

/* hero buttons, card actions, section lead */
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; position: relative; z-index: 2; }
.card-actions { display: flex; gap: 10px; flex-wrap: wrap; padding: 16px 18px; border-top: 1px solid var(--hairline); }
.sec-lead { max-width: 62ch; margin: -6px 0 26px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.pay-actions .dim a, .trade-help a { color: var(--lime); }
@media (max-width: 640px) { .hero-ctas { margin-top: 18px; } .hero-ctas .btn { flex: 1 1 auto; text-align: center; } }

/* Sponsored swap dialog reuses the existing trade form and amber CTA roles. */
#swap-form select { background: var(--bg); color: var(--body); border: 1px solid var(--hairline); padding: 12px; font: inherit; }
#swap-form :focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
#swap-result code { overflow-wrap: anywhere; white-space: normal; }

/* Direct swap: existing site tokens, separate from the trading desk. */
.swap-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.swap-intro .sec-h { margin-bottom: 24px; }
.swap-description { color: var(--body); max-width: 380px; }
.swap-launch { margin: 28px 0 16px; font: 11px/1.8 var(--mono); color: var(--caption); }
.swap-card { border: 1px solid var(--hairline); background: var(--void); border-radius: var(--r4); }
.swap-card-head { display: flex; justify-content: space-between; gap: 16px; font: 12px var(--mono); letter-spacing: .08em; padding-bottom: 16px; border-bottom: 1px solid var(--hairline); }
.swap-output { padding: 10px 12px; border: 1px solid var(--hairline); border-radius: var(--r4); color: var(--caption); font: 13px/1.5 var(--mono); min-height: 41px; }
.swap-details { color: var(--caption); font: 11px/1.7 var(--mono); }
.swap-details summary { cursor: pointer; }
.swap-details p { margin-top: 12px; }
#swap-restore[hidden] { display: none; }
@media (max-width: 800px) { .swap-layout { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 420px) { .swap-card { padding: 18px; } }
