/* hacklaunch — a security alert. Every coin is a hack notice in someone's GitHub name, printed as an ASCII
   skull drawn from that name. Near-black ground with a red cast, pale ink, one accent: alarm red is the notice,
   the coin (the * in the skull) and the one main action. Space Mono Bold for headings, Plex Mono for the rest. */

@font-face { font-family: "Space Mono"; src: url("/fonts/SpaceMono-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/IBMPlexMono-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/IBMPlexMono-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/IBMPlexMono-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  color-scheme: dark;
  --ground: #0a0505;
  --surface: #120808;
  --foam: #170a0a;
  --surface-2: #1f0d0d;
  --line: rgba(255, 59, 48, 0.14);
  --line-2: rgba(255, 59, 48, 0.26);
  --line-3: rgba(255, 59, 48, 0.45);
  --ink: #fbe9e7;
  --ink-2: #d6aaa5;
  --muted: #9b6d68;
  --accent: #ff3b30;
  --accent-deep: #e0251b;
  --accent-wash: rgba(255, 59, 48, 0.16);
  --on-accent: #1a0302;
  --good: #3ddc84;
  --good-wash: rgba(61, 220, 132, 0.1);
  --bad: #ff6b5e;
  --bad-wash: rgba(255, 107, 94, 0.12);
  --warn: #ffcc00;
  --focus: #ffcc00;
  --pin: #ff3b30;
  --ring: rgba(255, 204, 0, 0.35);

  --display: "Space Mono", var(--mono);
  --sans: var(--mono);
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1220px;
  --r: 0;
  --z-sticky: 30;
  --z-menu: 40;
  --z-toast: 60;
  --z-skip: 100;
  --shadow-box: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
main { display: block; min-height: 60vh; outline: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: var(--line-3); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }
.mono { font-family: var(--mono); font-feature-settings: "zero" 0; }
.label, .tray-stats, .statline dd, .trade-table, .holders, .pkgs, .quote-table, .ledger-row, .ca-box code { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -40px; background: var(--ink); color: var(--foam); padding: 6px 10px; z-index: var(--z-skip); }
.skip:focus { top: 8px; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---- header ---------------------------------------------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: var(--z-sticky);
  display: flex; align-items: center; gap: 24px;
  height: 66px; padding: 0 var(--gutter);
  background: rgba(10, 5, 5, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-2);
}
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; }
.brand-name { font: 600 25px/1 var(--display); letter-spacing: -0.02em; font-variation-settings: "SOFT" 60, "opsz" 48; }
.nav { display: flex; gap: 4px; margin-right: auto; }
.nav a { padding: 8px 11px; text-decoration: none; color: var(--ink-2); font-size: 15px; border-radius: var(--r); }
.nav a:hover { color: var(--ink); background: var(--accent-wash); }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.wallet-slot { display: flex; align-items: center; gap: 8px; }
.demo-banner { background: var(--ink); color: var(--foam); text-align: center; font: 500 13px/1.4 var(--mono); padding: 7px var(--gutter); }

/* ---- buttons, fields --------------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px;
  border: 1px solid var(--ink); border-radius: var(--r);
  background: transparent; color: var(--ink);
  font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.1s;
}
.btn:hover { background: var(--accent-wash); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn-buy { background: var(--good); border-color: var(--good); color: var(--on-accent); }
.btn-sell { background: var(--bad); border-color: var(--bad); color: var(--on-accent); }
.btn-buy:hover, .btn-sell:hover { filter: brightness(1.08); }
.btn-small { height: 36px; padding: 0 13px; font-size: 14px; }
.btn-block { width: 100%; height: 52px; font-size: 16px; }
.link-btn { font: 500 13px/1 var(--mono); color: var(--ink-2); }

.field { display: grid; gap: 6px; margin: 0 0 16px; align-content: start; }
.field > span { font-weight: 600; font-size: 14px; }
.field small { color: var(--muted); font-size: 13px; }
.input, .textarea {
  width: 100%; min-height: 46px; padding: 10px 13px;
  background: var(--foam); border: 1px solid var(--line-3); border-radius: var(--r);
  font-size: 16px;
}
.input:focus, .textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 2px var(--ring); }
.textarea { min-height: 96px; resize: vertical; }
.input-group { display: flex; align-items: stretch; border: 1px solid var(--line-3); border-radius: var(--r); background: var(--foam); }
.input-group:focus-within { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ring); }
.input-group .input { border: 0; box-shadow: none; background: transparent; }
.input-group .suffix { display: grid; place-items: center; padding: 0 13px; font: 500 14px var(--mono); color: var(--muted); border-left: 1px solid var(--line-2); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; align-items: start; }
.inline { display: flex; gap: 10px; align-items: flex-end; }
.inline > .field { flex: 1; margin: 0; }
.inline > .btn { height: 46px; }
.check-row { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 14px 0; cursor: pointer; }
.check-row input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }

/* ---- trade tape: a strip of typed slips ------------------------------------------------------------- */
.tape {
  display: flex; gap: 22px; overflow: hidden; white-space: nowrap;
  padding: 7px var(--gutter); border-bottom: 1px solid var(--line);
  font: 400 12.5px/1.4 var(--mono); color: var(--ink-2); background: var(--surface);
  mask-image: linear-gradient(90deg, #000 85%, transparent);
}
.tape-item { text-decoration: none; display: inline-flex; gap: 5px; align-items: center; }
.tape-item b { font-weight: 600; color: var(--ink); }
.tape-item::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--good); }
.tape-item.sell::before { background: var(--bad); }
.tape-item.muted::before { display: none; }
.tape-item.fresh { animation: slip 0.6s ease-out; }
@keyframes slip { from { background: var(--accent-wash); } to { background: transparent; } }

/* ---- page frame -------------------------------------------------------------------------------------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding-top: 88px; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 24px; margin-bottom: 26px; }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
p, li { text-wrap: pretty; }
h1, h2 { font-family: var(--display); letter-spacing: -0.02em; font-variation-settings: "SOFT" 50, "opsz" 96; }
h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.05; }
h3 { font-size: 18px; line-height: 1.3; font-family: var(--sans); }
.kicker { font: 500 12px/1.3 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.kicker b { color: var(--accent); font-weight: 600; }
.lede { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.55; color: var(--ink-2); max-width: 36em; margin: 16px 0 0; }
.lede strong { color: var(--ink); font-weight: 600; }
.section-lede { color: var(--ink-2); max-width: 44em; margin: -10px 0 24px; }

/* ---- the specimen box, the label --------------------------------------------------------------------- */
.box {
  position: relative;
  background: var(--foam);
  border: 1px solid var(--line-3);
  border-radius: 2px;
  box-shadow: var(--shadow-box);
}
.specimen { display: block; width: 100%; height: auto; }
.label {
  display: inline-grid; gap: 1px;
  padding: 7px 10px 8px;
  background: transparent;
  border: 1px solid var(--line-2);
  border-style: dashed;
  font: 400 11.5px/1.45 var(--mono);
  color: var(--ink);
  text-align: left;
  max-width: 100%;
}
.label .l-id { font-weight: 600; letter-spacing: 0.01em; }
.label .l-row { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.label .l-sev { text-transform: uppercase; letter-spacing: 0.06em; }
.label .l-leg { font-style: normal; color: var(--ink-2); }
.label.demo .l-id::after { content: " · demo"; color: var(--accent); font-weight: 500; }
.sev { display: inline-flex; align-items: center; gap: 5px; }
.sev::before { content: ""; width: 7px; height: 7px; background: var(--muted); }
.sev.critical::before { background: var(--bad); }
.sev.high::before { background: var(--warn); }
.sev.medium::before { background: #facc15; }
.sev.low::before { background: var(--muted); }

/* ---- home: the plate --------------------------------------------------------------------------------- */
.hero { padding-top: clamp(40px, 6vw, 72px); }
.hero-title { text-align: center; max-width: 900px; margin: 0 auto; }
.hero-title h1 {
  font-size: clamp(46px, 7.2vw, 100px); line-height: 0.95; letter-spacing: -0.035em;
  font-variation-settings: "SOFT" 70, "WONK" 1, "opsz" 144; font-weight: 600; text-wrap: balance;
}
.hero-title h1 em { font-style: italic; color: var(--accent); font-weight: 500; }
.hero-title .lede { margin: 20px auto 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 26px; }
.plate {
  margin-top: 44px;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 0;
  border: 1px solid var(--line-3); background: var(--surface);
}
.plate-fig { position: relative; margin: 0; padding: 22px; border-right: 1px solid var(--line-2); }
.plate-fig .box { padding: 18px 18px 22px; display: grid; justify-items: center; }
.plate-fig .specimen-wrap { width: min(100%, 440px); position: relative; }
.plate-fig .callouts { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.callouts circle { fill: var(--foam); stroke: var(--ink); stroke-width: 1.2; }
.callouts text { font: 600 11px var(--mono); fill: var(--ink); text-anchor: middle; dominant-baseline: central; }
.callouts line { stroke: var(--ink); stroke-width: 0.9; }
.callouts .dot { fill: var(--ink); stroke: none; }
.callouts .pin-n { fill: var(--accent); stroke: var(--accent-deep); }
.callouts .pin-t { fill: var(--on-accent); }
.plate-fig .label { margin-top: 12px; }
.plate-caption { display: flex; justify-content: space-between; gap: 12px; margin: 12px 2px 0; font: 400 12px/1.4 var(--mono); color: var(--muted); }
.plate-caption a { color: var(--ink-2); }
.legend { padding: 26px clamp(18px, 3vw, 34px); display: grid; align-content: center; gap: 4px; }
.legend h2 { font-size: clamp(22px, 2.4vw, 30px); margin-bottom: 10px; }
.legend ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.legend li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); }
.legend li:first-child { border-top: 0; }
.legend .n { width: 24px; height: 24px; border-radius: 50%; border: 1.2px solid var(--ink); display: grid; place-items: center; font: 600 11px var(--mono); background: var(--foam); }
.legend li.pin .n { background: var(--accent); border-color: var(--accent-deep); color: var(--on-accent); }
.legend strong { display: block; font-weight: 650; }
.legend p { margin: 2px 0 0; color: var(--ink-2); font-size: 15px; }
.ca-row { margin-top: 18px; }

/* ---- the collection: a drawer of trays --------------------------------------------------------------- */
.drawer { border: 1px solid var(--line-3); background: var(--surface-2); padding: 14px; border-radius: 0; }
.drawer-head { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tabs { display: flex; gap: 2px; max-width: 100%; overflow-x: auto; background: var(--surface); border: 1px solid var(--line-2); padding: 3px; border-radius: var(--r); }
.tabs button { white-space: nowrap; flex: none; border: 0; background: transparent; padding: 7px 12px; border-radius: 2px; cursor: pointer; font-size: 14px; color: var(--ink-2); }
.tabs button[aria-pressed="true"] { background: var(--ink); color: var(--foam); }
.search { width: min(320px, 100%); min-height: 40px; }
.coin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 12px; }
.tray {
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 1fr; text-decoration: none; min-width: 0;
  padding: 12px 12px 12px; transition: transform 0.15s ease-out;
}
.tray:hover { transform: translateY(-2px); border-color: var(--accent); }
.tray .specimen { width: 78%; margin: 0 auto -6px; }
.tray .label { justify-self: center; transform: rotate(var(--tilt, 0deg)); }
.tray-foot { display: grid; gap: 6px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line-2); align-self: end; }
.tray-title { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.tray-title strong { font: 600 16px/1.2 var(--sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticker { font: 600 13px var(--mono); color: var(--ink-2); }
.tray-stats { display: flex; justify-content: space-between; font: 400 12.5px var(--mono); color: var(--muted); }
.tray-stats b { color: var(--ink); font-weight: 600; }
.grad-badge { font: 600 11px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--good); }
.progress { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--ink); }
.progress.done > span { background: var(--good); }
.coin-grid > .empty { grid-column: 1 / -1; }
.empty { text-align: center; padding: 42px 20px; border: 1px dashed var(--line-3); background: var(--foam); border-radius: 2px; }
.empty h3 { font: 600 22px/1.2 var(--display); margin-bottom: 6px; }
.empty p { color: var(--ink-2); margin: 0 0 14px; }
.more-row { display: flex; justify-content: center; margin-top: 16px; }

/* ---- fixed this week: the accession ledger ----------------------------------------------------------- */
.ledger { border: 1px solid var(--line-3); background: var(--foam); }
.ledger-row { display: grid; grid-template-columns: 54px minmax(0, 2.2fr) minmax(0, 1.1fr) minmax(0, 1fr) 120px; gap: 14px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); }
.ledger-row:first-child { border-top: 0; }
.ledger-row.head { font: 500 11px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); background: var(--surface); padding-block: 9px; }
.ledger-row .specimen { width: 46px; }
.ledger-row .what { min-width: 0; }
.ledger-row .what a { font: 600 13px var(--mono); }
.ledger-row .what p { margin: 2px 0 0; font-size: 14px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ledger-row .pkg, .ledger-row .who { font: 400 13px var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ledger-row .state { justify-self: end; font: 500 12px var(--mono); }
.state.pinned { color: var(--accent); }
.state.open { color: var(--muted); }
.span-all { grid-column: 1 / -1; }
.ledger-note { margin: 10px 2px 0; font: 400 12px var(--mono); color: var(--muted); }

/* ---- how it works: field notes ----------------------------------------------------------------------- */
.notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0; counter-reset: note; }
.notes li { background: var(--foam); border: 1px solid var(--line-2); padding: 22px 22px 24px; position: relative; counter-increment: note; }
.notes li::before { content: "No. " counter(note); display: block; font: 500 12px var(--mono); letter-spacing: 0.1em; color: var(--muted); margin-bottom: 10px; }
.notes h3 { font: 600 22px/1.15 var(--display); margin-bottom: 8px; }
.notes p { margin: 0; color: var(--ink-2); font-size: 15px; }
.notes .aside { display: block; margin-top: 12px; font: italic 400 15px/1.4 var(--display); color: var(--ink-2); }

/* ---- the split: two wings ---------------------------------------------------------------------------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1px solid var(--line-3); background: var(--foam); }
.split > div { padding: 26px clamp(18px, 3vw, 32px); }
.split > div + div { border-left: 1px dashed var(--line-3); }
.split .pct { font: 600 clamp(44px, 6vw, 72px)/1 var(--display); letter-spacing: -0.03em; }
.split h3 { margin: 6px 0 4px; }
.split p { margin: 0; color: var(--ink-2); font-size: 15px; }
.split-note { margin: 12px 2px 0; color: var(--muted); font-size: 14px; }

/* ---- coin page ------------------------------------------------------------------------------------- */
.coin-head { display: grid; grid-template-columns: 236px minmax(0, 1fr) auto; gap: 26px; align-items: center; padding: 34px 0 18px; }
.coin-head .box { padding: 10px; display: grid; justify-items: center; }
.coin-head .box .label { margin-top: -10px; font-size: 10.5px; max-width: 100%; }
.coin-head h1 { font-size: clamp(34px, 4.6vw, 58px); line-height: 1; }
.coin-head .sub { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-top: 10px; color: var(--ink-2); font-size: 15px; }
.coin-head-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.coin-head-links a { font: 500 13px var(--mono); padding: 7px 10px; border: 1px solid var(--line-2); border-radius: var(--r); text-decoration: none; background: var(--foam); }
.coin-head-links a:hover { border-color: var(--ink); }
.coin-head .coin-art { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; border: 1px solid var(--line-2); flex: none; }
.coin-head .coin-art img { width: 100%; height: 100%; object-fit: cover; }
.coin-art.placeholder { display: grid; place-items: center; font: 600 12px var(--mono); background: var(--surface-2); }
.addr { display: inline-flex; align-items: center; gap: 6px; font: 400 13px var(--mono); }
.addr button { border: 1px solid var(--line-2); background: var(--foam); border-radius: var(--r); padding: 3px 8px; cursor: pointer; font: 500 12px var(--mono); }
.statline { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); margin: 0 0 22px; border: 1px solid var(--line-2); background: var(--foam); }
.statline div { padding: 12px 16px; }
.statline div + div { border-left: 1px solid var(--line); }
.statline dt { font: 500 11px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.statline dd { margin: 4px 0 0; font: 600 20px var(--mono); font-variant-numeric: tabular-nums; }
.up { color: var(--good); }
.down { color: var(--bad); }
.coin-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.side { display: grid; gap: 22px; position: sticky; top: 84px; }
.panel { background: var(--foam); border: 1px solid var(--line-2); border-radius: 2px; }
.panel + .panel { margin-top: 22px; }
.side .panel + .panel { margin-top: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.panel-head h2 { font: 600 20px/1.2 var(--display); }
.panel-body { padding: 16px; }
.chart-wrap { position: relative; height: 320px; }
.chart-wrap canvas { width: 100%; height: 100%; display: block; }
.chart-readout { display: flex; flex-wrap: wrap; gap: 4px 12px; font: 400 12px var(--mono); color: var(--ink-2); min-height: 18px; }
.chart-readout b { color: var(--ink); }
.chart-empty { display: grid; place-items: center; height: 100%; color: var(--muted); font-size: 14px; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; }
.seg button { border: 0; background: transparent; padding: 5px 9px; font: 500 12px var(--mono); cursor: pointer; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--foam); }

.trade-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 3px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); margin-bottom: 14px; }
.trade-switch button { border: 0; background: transparent; padding: 9px; border-radius: 2px; font-weight: 600; cursor: pointer; color: var(--ink-2); }
.trade-switch button[aria-pressed="true"].buy { background: var(--good); color: var(--on-accent); }
.trade-switch button[aria-pressed="true"].sell { background: var(--bad); color: var(--on-accent); }
.quick { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 14px; }
.quick button { border: 1px solid var(--line-2); background: var(--surface); border-radius: var(--r); padding: 4px 9px; font: 500 12px var(--mono); cursor: pointer; }
.quick button:hover { border-color: var(--ink); }
.quote { font: 400 13px/1.5 var(--mono); color: var(--ink-2); margin: 0 0 12px; }
.quote b { color: var(--ink); }
.trade-note { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.settings-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); margin-bottom: 12px; }

/* The advisory, as the coin page shows it. */
.adv-summary { font: 500 italic 19px/1.4 var(--display); margin: 0 0 14px; }
.audit { list-style: none; margin: 0; padding: 0; }
.audit li { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.audit li:first-child { border-top: 0; }
.audit li span:first-child { color: var(--muted); }
.audit li span:last-child { text-align: right; font-family: var(--mono); font-size: 13px; }
.audit-verdict { display: flex; gap: 10px; padding: 12px 14px; border-radius: 2px; margin-bottom: 14px; font-size: 14px; }
.audit-verdict.pass { background: var(--good-wash); }
.audit-verdict.fail { background: var(--bad-wash); }
.audit-verdict.info { background: var(--surface); }
.audit-verdict strong { display: block; }
.pkgs { width: 100%; border-collapse: collapse; font: 400 13px var(--mono); margin: 4px 0 14px; }
.pkgs th { text-align: left; font: 500 10.5px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding: 6px 0; border-bottom: 1px solid var(--line-2); }
.pkgs td { padding: 7px 8px 7px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.pkgs td.fixed { color: var(--good); font-weight: 600; }

.holders { list-style: none; margin: 0; padding: 0; font: 400 13px var(--mono); }
.holders li { display: flex; justify-content: space-between; padding: 7px 0; border-top: 1px solid var(--line); }
.holders li:first-child { border-top: 0; }
.holders .who { display: flex; gap: 6px; align-items: center; }
.tag { font: 600 10px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; padding: 2px 6px; border-radius: 2px; background: var(--surface-2); color: var(--ink-2); }
.tabbar { display: flex; gap: 4px; padding: 10px 12px 0; border-bottom: 1px solid var(--line); }
.tabbar button { border: 0; background: transparent; padding: 8px 10px 10px; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabbar button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.table-scroll { overflow-x: auto; }
.trade-table { width: 100%; border-collapse: collapse; font: 400 13px var(--mono); }
.trade-table th, .trade-table td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.trade-table thead th { font: 500 10.5px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.trade-table tr:last-child td { border-bottom: 0; }
.trade-table .num { text-align: right; }
.trade-table a { text-decoration: none; }
.trade-table a:hover { text-decoration: underline; }
.trade-table tr.fresh td { animation: slip 1s ease-out; }
.trade-table .buy { color: var(--good); }
.trade-table .sell { color: var(--bad); }
.comments { list-style: none; margin: 0; padding: 0 12px; }
.comments li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.comments li:last-child { border-bottom: 0; }
.comments .by { font: 400 12px var(--mono); color: var(--muted); }
.comments p { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.comment-form { padding: 12px; border-bottom: 1px solid var(--line); }
.comment-form .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px; }
.coin-desc-full { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0 0 12px; }

.alert { display: grid; gap: 4px; padding: 13px 15px; border-radius: 2px; border: 1px solid var(--line-2); font-size: 14px; margin: 0 0 16px; background: var(--surface); }
.alert.fail { background: var(--bad-wash); border-color: var(--bad); }
.alert.info { background: var(--surface); }
.alert strong { font-weight: 650; }

/* ---- launch (pin a bug) ------------------------------------------------------------------------------- */
.launch-intro { padding: 40px 0 26px; max-width: 760px; }
.launch-intro h1 { font-size: clamp(40px, 5.4vw, 68px); line-height: 1; }
.launch-intro p { color: var(--ink-2); font-size: 17px; margin: 14px 0 0; }
.launch { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 26px; align-items: start; }
.stage { background: var(--foam); border: 1px solid var(--line-2); border-radius: 2px; margin-bottom: 18px; }
.stage[data-state="locked"] { opacity: 0.55; }
.stage-head { display: flex; gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.stage-num { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1.3px solid var(--ink); display: grid; place-items: center; font: 600 13px var(--mono); }
.stage[data-state="done"] .stage-num { background: var(--good); border-color: var(--good); color: var(--on-accent); }
.stage-head h2 { font-size: 24px; }
.stage-head p { margin: 4px 0 0; color: var(--ink-2); font-size: 15px; }
.stage-body { padding: 20px; }
.stage[data-state="locked"] .stage-body { pointer-events: none; }
.examples { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 14px; margin: 12px 0 0; }
.example-btn { border: 1px dashed var(--line-3); background: transparent; border-radius: var(--r); padding: 5px 9px; cursor: pointer; font: 400 12.5px var(--mono); }
.example-btn:hover { border-color: var(--ink); border-style: solid; }
.check-area { margin-top: 18px; }
.checklist { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line-2); }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 10px 12px; border-top: 1px solid var(--line); font-size: 14.5px; }
.checklist li:first-child { border-top: 0; }
.checklist li::before { content: "✓"; font: 700 14px var(--mono); color: var(--good); }
.checklist li.no::before { content: "✗"; color: var(--bad); }
.checklist li.no { background: var(--bad-wash); }
.bio-help { margin-top: 12px; padding: 14px; background: var(--surface); border: 1px dashed var(--line-3); font-size: 14px; }
.bio-help code { display: block; margin-top: 8px; padding: 8px 10px; background: var(--foam); border: 1px solid var(--line-2); font: 400 13px var(--mono); overflow-wrap: anywhere; }
.result { display: grid; gap: 4px; padding: 13px 15px; border-radius: 2px; font-size: 14px; margin-bottom: 12px; }
.result.pass { background: var(--good-wash); }
.result.fail { background: var(--bad-wash); }
.result.info { background: var(--surface); }
.result strong { font-weight: 650; }
.art-choice { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: center; margin-bottom: 16px; }
.art-choice .art { width: 112px; height: 112px; border: 1px solid var(--line-2); background: var(--foam); overflow: hidden; display: grid; place-items: center; }
.art-choice .art img { width: 100%; height: 100%; object-fit: cover; }
.art-choice .art .specimen { width: 100%; }
.art-choice input[type="file"] { font-size: 13px; max-width: 100%; }
.preview-card { position: sticky; top: 84px; }
.preview-card > p { font: 500 11px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.progress-steps { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; font-size: 14px; }
.progress-steps li { display: flex; gap: 10px; align-items: center; color: var(--muted); }
.progress-steps li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--line-3); flex: none; }
.progress-steps li.active { color: var(--ink); font-weight: 600; }
.progress-steps li.active::before { border-color: var(--accent); background: var(--accent); animation: pulse 1.2s ease-in-out infinite; }
.progress-steps li.done { color: var(--ink-2); }
.progress-steps li.done::before { background: var(--good); border-color: var(--good); }
@keyframes pulse { 50% { opacity: 0.35; } }
.quote-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 8px; }
.quote-table td { padding: 7px 0; border-bottom: 1px solid var(--line); }
.quote-table td.num { text-align: right; }
.quote-table tr.total td { font-weight: 700; border-bottom: 0; padding-top: 10px; }
.wallet-ask { margin-top: 14px; }
.setup-status { margin-top: 14px; font-size: 14px; }
.setup-status:empty { display: none; }
.setup-status ul { margin: 6px 0; padding-left: 20px; }
.setup-status .mono { font-size: 12.5px; overflow-wrap: anywhere; }

/* ---- prose pages, token page ------------------------------------------------------------------------- */
.prose { max-width: 760px; padding-top: 44px; padding-bottom: 20px; margin-inline: auto; }
.prose h1 { font-size: clamp(40px, 5.4vw, 64px); line-height: 1; margin-bottom: 18px; }
.prose h2 { font-size: clamp(26px, 3vw, 34px); margin: 40px 0 12px; }
.prose h3 { margin: 24px 0 8px; }
.prose p, .prose li { color: var(--ink-2); font-size: 17px; }
.prose p { margin: 0 0 14px; }
.prose code { font: 400 14px var(--mono); background: var(--surface-2); padding: 1px 5px; border-radius: 2px; }
.versions { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0 18px; background: var(--foam); border: 1px solid var(--line-2); }
.versions th, .versions td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.versions tr:last-child td { border-bottom: 0; }
.versions th { font: 500 11px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.token-page { padding-bottom: 20px; }
.token-hero { padding: 44px 0 26px; max-width: 820px; }
.token-hero h1 { font-size: clamp(44px, 6.4vw, 84px); line-height: 0.95; }
.ca-box { display: grid; gap: 4px; padding: 12px 14px; background: var(--foam); border: 1px solid var(--line-3); border-radius: 2px; max-width: 560px; margin-top: 18px; }
.ca-box code { font: 500 14px var(--mono); overflow-wrap: anywhere; }
.ca-box small { font-size: 13px; }
.ca-label { font: 500 11px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.small-print { font-size: 13px; margin-top: 18px; }
.fees-panel p { margin: 0; font-size: 14px; color: var(--ink-2); }
.token-page .receipts { margin-top: 22px; }
.receipts .kind { font: 600 12px var(--mono); }
.receipts .kind.add { color: var(--good); }
.receipts .kind.del { color: var(--accent); }

/* ---- wallet ------------------------------------------------------------------------------------------ */
.wallet-btn { font: 500 14px var(--mono); }
.wallet-menu { position: absolute; right: var(--gutter); top: 62px; width: 300px; background: var(--foam); border: 1px solid var(--line-3); border-radius: 2px; box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.8); padding: 10px; z-index: var(--z-menu); }
.wallet-menu p { margin: 4px 6px 10px; font-size: 13px; color: var(--muted); }
.wallet-menu button, .wallet-menu a { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border: 0; background: transparent; text-align: left; cursor: pointer; border-radius: 2px; text-decoration: none; font-size: 15px; }
.wallet-menu button:hover, .wallet-menu a:hover { background: var(--surface); }
.wallet-menu img { width: 24px; height: 24px; border-radius: 5px; }
.signed { display: inline-flex; align-items: center; gap: 6px; }
.signed::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--good); }

/* ---- footer, toasts ---------------------------------------------------------------------------------- */
.footer { max-width: var(--max); margin: 96px auto 0; padding: 28px var(--gutter) 46px; border-top: 1px solid var(--line-2); font-size: 14px; color: var(--ink-2); }
.footer p { margin: 0 0 10px; max-width: 70em; }
.footer-rule { font: 600 italic 19px/1.3 var(--display); color: var(--ink); }
.footer-links a, .footer a { color: var(--ink); }
.toasts { position: fixed; bottom: calc(16px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); display: grid; gap: 8px; z-index: var(--z-toast); width: min(440px, calc(100% - 32px)); }
.toast { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; background: var(--surface-2); color: var(--ink); border: 1px solid var(--line-3); border-radius: 2px; font-size: 14px; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.5); }
.toast.error { border-color: var(--bad); color: var(--bad); }
.toast a { color: inherit; font-weight: 600; }
.skeleton { background: var(--surface-2); animation: pulse 1.4s ease-in-out infinite; border-radius: 2px; min-height: 18px; }

/* ---- the one motion moment: the pin goes in (home plate, once) --------------------------------------- */
.plate .sp-pin { animation: pin-drop 0.5s ease-out 0.35s both; transform-origin: center; transform-box: fill-box; }
@keyframes pin-drop { from { transform: translateY(-26px) scale(1.25); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---- phones ------------------------------------------------------------------------------------------ */
@media (max-width: 960px) {
  .plate { grid-template-columns: 1fr; }
  .plate-fig { border-right: 0; border-bottom: 1px solid var(--line-2); }
  .coin-layout, .launch { grid-template-columns: 1fr; }
  .side, .preview-card { position: static; }
  .notes { grid-template-columns: 1fr; }
  .ledger-row { grid-template-columns: 46px minmax(0, 1fr) 96px; }
  .ledger-row .pkg, .ledger-row .who { display: none; }
  .ledger-row.head .pkg, .ledger-row.head .who { display: none; }
}
@media (max-width: 720px) {
  .topbar { height: auto; flex-wrap: wrap; gap: 6px 12px; padding-top: 10px; padding-bottom: 8px; }
  .nav { order: 3; width: 100%; overflow-x: auto; margin: 0 -6px; }
  .nav a { white-space: nowrap; font-size: 14px; padding: 7px 8px; }
  .wallet-slot { margin-left: auto; }
  .coin-head { grid-template-columns: 120px minmax(0, 1fr); gap: 16px; }
  .coin-head-links { grid-column: 1 / -1; justify-content: flex-start; }
  .grid-2 { grid-template-columns: 1fr; }
  .inline { flex-direction: column; align-items: stretch; }
  .split { grid-template-columns: 1fr; }
  .split > div + div { border-left: 0; border-top: 1px dashed var(--line-3); }
  .coin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .drawer { padding: 8px; }
  .tray { padding: 8px; }
  .tray .label { font-size: 9.5px; padding: 5px 6px; }
  .tray-title { flex-direction: column; align-items: flex-start; gap: 0; }
  .tray-title strong { font-size: 14px; max-width: 100%; }
  .tray-stats { flex-direction: column; gap: 0; font-size: 12px; }
  .search { width: 100%; }
  .section { padding-top: 64px; }
  .legend li { padding: 10px 0; }
  .statline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .statline div + div { border-left: 0; }
  .statline div { border-top: 1px solid var(--line); }
  .art-choice { grid-template-columns: 84px minmax(0, 1fr); }
  .art-choice .art { width: 84px; height: 84px; }
}

/* ---- home: proof line, questions, closing call to action ------------------------------------------- */
.proof-line { margin: 16px 0 0; font: 400 13px/1.5 var(--mono); color: var(--muted); }
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 0; }
.faq > div { padding: 18px 0; border-top: 1px solid var(--line-2); }
.faq dt { font-weight: 650; font-size: 17px; margin-bottom: 6px; }
.faq dd { margin: 0; color: var(--ink-2); font-size: 15px; }
.final-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; padding: 32px clamp(18px, 3vw, 36px); background: var(--foam); border: 1px solid var(--line-3); }
.final-cta h2 em { font-style: italic; font-weight: 500; color: var(--accent); }
.final-cta p { margin: 8px 0 0; color: var(--ink-2); max-width: 40em; }
@media (max-width: 720px) {
  .faq { grid-template-columns: 1fr; }
}

/* ---- terminal ---------------------------------------------------------------------------------------- */
h1, h2 { letter-spacing: -0.01em; font-variation-settings: normal; }
h2::before { content: "> "; color: var(--accent); }
.hero-title h1 { font-size: clamp(34px, 5.6vw, 72px); letter-spacing: -0.03em; line-height: 1.02; }
.hero-title h1 em, .final-cta h2 em { font-style: normal; color: var(--accent); }
.kicker::before { content: "// "; }
.brand-name { font: 600 19px/1 var(--mono); letter-spacing: 0; }
.brand-name .prompt { color: var(--muted); font-weight: 400; }
.brand-name .cursor { color: var(--accent); }
.btn { text-transform: lowercase; font-weight: 600; }
.btn::before { content: "["; margin-right: 0.35em; opacity: 0.6; }
.btn::after { content: "]"; margin-left: 0.35em; opacity: 0.6; }
.btn-primary::before, .btn-primary::after { opacity: 0.8; }
.box, .tray { background: var(--foam); border-color: var(--line-2); box-shadow: none; }
.figlet { margin: 0 auto 18px; width: max-content; max-width: 100%; overflow: hidden; color: var(--accent); font: 400 clamp(7px, 1.5vw, 15px)/1.08 var(--mono); white-space: pre; }
.bug { margin: 0; font: 500 13px/1.12 var(--mono); color: var(--ink-2); white-space: pre; text-align: left; }
.bug .pin { color: var(--accent); font-weight: 700; }
.bug .slot { color: var(--accent); opacity: 0.55; }
.bug .note { color: var(--muted); }
.tray .bug { justify-self: center; margin: 4px 0 10px; font-size: 12px; }
.plate-fig .box { padding: 26px 18px 22px; }
.plate-bug { font-size: clamp(11px, 1.35vw, 16px); }
.coin-head .box .bug { font-size: 11px; margin: 6px 0 10px; }
.art-choice .art .bug { font-size: 7.5px; }
.mini { font: 600 13px var(--mono); color: var(--muted); }
.mini.pinned { color: var(--accent); }
.label { border-color: var(--line-3); }
.label .l-id { color: var(--ink); }
.label.demo .l-id::after { color: var(--warn); }
.split .pct { color: var(--accent); }
.footer-rule { font-style: normal; }
.footer-rule::before { content: "$ "; color: var(--accent); }
.tape-item::before { border-radius: 0; }
.tray .label { transform: none; }
.figlet { font-size: clamp(7px, 1.7vw, 18px); }

/* The house coin's CA in the home page's first screen: address, Copy and pump.fun in one row. */
.hero-ca .ca-box { margin: 22px auto 0; text-align: left; grid-template-columns: 1fr auto auto; align-items: center; column-gap: 10px; }
.hero-ca .ca-box .ca-label, .hero-ca .ca-box small { grid-column: 1 / -1; }
.hero-ca .ca-box code { font-size: 15px; color: var(--ink); }

/* A coin's hack notice: "@name has been hacked." */
.notice-line { margin: 0 0 8px; font: 600 20px/1.3 var(--mono); color: var(--accent); overflow-wrap: anywhere; }

/* ---- hacklaunch: a security alert ------------------------------------------------------------------- */
.topbar { border-bottom: 2px solid var(--accent); }
.brand-name { font: 700 18px/1 var(--display); text-transform: uppercase; letter-spacing: 0.06em; }
.brand-name .prompt { color: var(--accent); margin-right: 8px; }
h1, h2 { font-weight: 700; letter-spacing: -0.02em; }
h2::before { content: "[!] "; color: var(--accent); }
.kicker::before { content: "!! "; color: var(--accent); }
.hero-title { --pad: clamp(18px, 4vw, 44px); max-width: 960px; padding: 0 var(--pad) 30px; border: 2px solid var(--accent); background: var(--surface); }
.hero-title::before {
  content: "!! SECURITY NOTICE !!"; display: block; margin: 0 calc(-1 * var(--pad)) 28px; padding: 11px 12px;
  background: var(--accent); color: var(--on-accent); font: 700 13px/1 var(--display); letter-spacing: 0.24em;
}
.hero-title h1 { font-weight: 700; letter-spacing: -0.04em; }
.tray { border-left: 3px solid var(--accent); }
.bug .pin, .bug .slot, .mini.pinned { color: var(--pin); }
.notice-line { font: 700 21px/1.3 var(--display); }
.notice-line::before { content: "[!] "; }
.empty h3, .notes h3, .panel-head h2 { font-weight: 700; }

/* Launch, step 1: recent vulnerabilities to pick, and the finder picker when GitHub credits several. */
.examples .link-btn { background: none; border: 0; padding: 2px 0; cursor: pointer; text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; }
.examples .link-btn:hover { color: var(--ink); text-decoration-color: currentColor; }
.finder-pick { display: grid; gap: 8px; margin: 14px 0 4px; font-size: 14px; }
.finder-pick .seg { flex-wrap: wrap; justify-self: start; }
.finder-pick .seg button { font-size: 13px; padding: 7px 11px; }

/* Home: vulnerabilities that could get a coin today. */
.vuln-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line-3); background: var(--surface); }
.vuln-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 18px; align-items: center; padding: 14px 16px; border-top: 1px solid var(--line); }
.vuln-list li:first-child { border-top: 0; }
.vuln-list p { margin: 0; }
.vuln-id { font: 700 15px/1.3 var(--mono); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.vuln-id .sev { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); }
.vuln-sum { margin-top: 4px !important; color: var(--ink); font-size: 15px; overflow-wrap: anywhere; }
.vuln-meta { margin-top: 3px !important; color: var(--muted); font: 400 13px/1.4 var(--mono); overflow-wrap: anywhere; }
@media (max-width: 640px) { .vuln-list li { grid-template-columns: minmax(0, 1fr); } .vuln-list .btn { justify-self: start; } }
