/* Blot on Ink · terminal / ascii theme (dark default, light = paper) */
@font-face { font-family: JBM; font-weight: 400; font-display: swap; src: url(fonts/jbm-400.woff2) format('woff2'); }
@font-face { font-family: JBM; font-weight: 500; font-display: swap; src: url(fonts/jbm-500.woff2) format('woff2'); }
@font-face { font-family: JBM; font-weight: 700; font-display: swap; src: url(fonts/jbm-700.woff2) format('woff2'); }
@font-face { font-family: JBM; font-weight: 800; font-display: swap; src: url(fonts/jbm-800.woff2) format('woff2'); }
@font-face { font-family: Display; font-weight: 800; font-display: swap; src: url(fonts/barlow-800.woff2) format('woff2'); }

:root, :root[data-theme="dark"] {
  --bg: #0a0a0a; --panel: #111111; --panel-2: #171717; --text: #ededed; --text-2: #c4c4c4; --muted: #8f8f8f;
  --line: #2a2a2a; --line-2: #3b3b3b; --accent: #8fe35a; --accent-ink: #0a0a0a;
  --buy: #8fe35a; --sell: #ff7b7b; --warn: #ffcc66;
  --buy-soft: #16240f; --sell-soft: #2a1414; --warn-soft: #2a220f; --brand-soft: #16240f;
  --hover: #1d1d1d; --invert-bg: #ededed; --invert-text: #0a0a0a;
  /* names used by the app and its canvas charts (hex only) */
  --ink: #ededed; --ink-2: #c4c4c4; --ink-3: #8f8f8f; --brand: #8fe35a; --card: #111111; --soft: #171717; --soft-2: #0a0a0a;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f3f2ec; --panel: #ffffff; --panel-2: #f8f7f2; --text: #111111; --text-2: #333333; --muted: #5e5e5e;
  --line: #d9d7ce; --line-2: #c4c2b8; --accent: #2f7d12; --accent-ink: #ffffff;
  --buy: #2f7d12; --sell: #b8232b; --warn: #7a4f00;
  --buy-soft: #e5f2dc; --sell-soft: #f8e1e1; --warn-soft: #f8ecd2; --brand-soft: #e5f2dc;
  --hover: #ecebe4; --invert-bg: #111111; --invert-text: #f3f2ec;
  --ink: #111111; --ink-2: #333333; --ink-3: #5e5e5e; --brand: #2f7d12; --card: #ffffff; --soft: #f8f7f2; --soft-2: #f3f2ec;
  color-scheme: light;
}
:root {
  --mono: JBM, ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --display: Display, 'Arial Narrow', Impact, sans-serif;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
}
*, *::before, *::after { box-sizing: inherit; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 400 14px/1.6 var(--mono); padding-bottom: calc(34px + env(safe-area-inset-bottom, 0px)); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--invert-bg); color: var(--invert-text); padding: 6px 10px; z-index: 99; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.num { font-variant-numeric: tabular-nums; }
h1 { font-family: var(--display); font-weight: 800; font-size: clamp(36px, 5vw, 56px); line-height: .95; margin: 0; letter-spacing: -0.01em; text-transform: uppercase; }
h2 { font-size: 13px; font-weight: 700; margin: 0; text-transform: uppercase; letter-spacing: .08em; }
h3 { font-size: 13px; font-weight: 700; margin: 0 0 8px; text-transform: uppercase; letter-spacing: .06em; }
code { background: var(--panel-2); border: 1px solid var(--line); padding: 0 5px; font-size: .92em; }

/* ---------------- header */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1320px; margin: 0 auto; padding: 14px 28px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; }
.logo img { image-rendering: pixelated; display: block; }
.logo b { font-weight: 800; letter-spacing: .02em; }
.logo em { font-style: normal; color: var(--accent); font-weight: 800; }
.tagline { color: var(--muted); margin-left: 2px; }
.nav { display: flex; gap: 22px; justify-content: center; }
.nav a { text-decoration: none; color: var(--muted); padding: 4px 0; border-bottom: 1px solid transparent; }
.nav a:hover { color: var(--text); }
.nav a.on { color: var(--text); border-bottom-color: var(--accent); }
.top-right { display: flex; align-items: center; gap: 12px; }
.search-box { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--panel); padding: 0 8px; color: var(--muted); width: 220px; }
.search-box input { border: 0; outline: 0; background: transparent; height: 32px; width: 100%; color: var(--text); font-size: 13px; }
.net { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.net i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.net.ok i { background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.net.bad i { background: var(--sell); }
.wallet-wrap { position: relative; }
.wallet-menu { position: absolute; right: 0; top: calc(100% + 8px); width: 260px; padding: 6px; display: flex; flex-direction: column; z-index: 40; }
.wallet-menu .wm-head { display: flex; gap: 10px; align-items: center; padding: 8px; }
.wallet-menu .wm-head small { display: block; color: var(--muted); }
.wallet-menu .wm-bal { padding: 0 8px 8px; font-size: 22px; font-weight: 700; }
.wallet-menu button, .wallet-menu a { text-align: left; border: 0; background: none; padding: 7px 8px; text-decoration: none; color: var(--text); }
.wallet-menu button:hover, .wallet-menu a:hover { background: var(--hover); }
.theme-btn { width: 34px; min-width: 34px; padding: 0; }

/* ---------------- layout */
main { min-height: 70vh; }
.page { max-width: 1320px; margin: 0 auto; padding: 34px 28px 60px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head .sub { margin: 10px 0 0; color: var(--text-2); max-width: 64ch; }
.row-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 30px 0 12px; }
.row-head.wrap { flex-wrap: wrap; }
.card { background: var(--panel); border: 1px solid var(--line); }
.empty { padding: 32px 18px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); }
.empty.big { padding: 52px 22px; }
.empty a { color: var(--text); }
.back { display: inline-block; margin-bottom: 16px; color: var(--muted); text-decoration: none; }
.back:hover { color: var(--text); }
.loading { display: flex; gap: 10px; align-items: center; justify-content: center; padding: 60px 0; color: var(--muted); }
.spinner { width: 12px; height: 12px; border: 1px solid var(--accent); animation: spin 1s steps(4) infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- buttons + controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 18px; border: 1px solid var(--line-2); background: transparent; color: var(--text); text-decoration: none; white-space: nowrap; font-weight: 500; transition: background .12s, color .12s, border-color .12s; }
.btn:hover:not(:disabled) { border-color: var(--text); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-ink { border-color: var(--text); font-weight: 700; }
.btn-ink:hover:not(:disabled) { background: var(--invert-bg); color: var(--invert-text); }
.btn-buy { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }
.btn-buy:hover:not(:disabled) { filter: brightness(1.08); border-color: var(--accent); }
.btn-sell { background: var(--sell); border-color: var(--sell); color: #0a0a0a; font-weight: 700; }
:root[data-theme="light"] .btn-sell { color: #ffffff; }
.btn-ghost { border-color: var(--line-2); }
.btn-warn { border-color: var(--warn); color: var(--warn); }
.btn-solid { background: var(--invert-bg); color: var(--invert-text); border-color: var(--invert-bg); font-weight: 700; }
.btn-solid:hover:not(:disabled) { filter: brightness(.9); }
.btn.big { height: 48px; width: 100%; font-size: 15px; }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12px; margin-top: 6px; }
.btn.wallet { gap: 8px; padding: 0 6px 0 8px; }
.btn.wallet .bal { border-left: 1px solid var(--line-2); padding-left: 8px; color: var(--muted); }
.icon-btn { width: 30px; height: 30px; border: 1px solid var(--line-2); background: transparent; color: var(--text); display: inline-flex; align-items: center; justify-content: center; font-size: 15px; }
.icon-btn:hover { border-color: var(--text); }
.icon-btn.star.on { color: var(--warn); border-color: var(--warn); }
.icon-btn.star.on svg { fill: currentColor; }
.icon-link { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border: 0; background: none; color: var(--muted); padding: 0; text-decoration: none; }
.icon-link:hover { color: var(--text); }
.seg { display: inline-flex; border: 1px solid var(--line-2); }
.seg button { border: 0; background: transparent; padding: 6px 14px; color: var(--muted); }
.seg button + button { border-left: 1px solid var(--line-2); }
.seg button[aria-pressed="true"] { background: var(--invert-bg); color: var(--invert-text); font-weight: 700; }
.seg button:disabled { opacity: .4; cursor: not-allowed; }
.seg.sm button { padding: 4px 10px; font-size: 12px; }
.seg.wide { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
.seg.wide button { padding: 9px; }
.sort { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
select { border: 1px solid var(--line-2); background: var(--panel); color: var(--text); padding: 5px 8px; }
.badge { display: inline-flex; align-items: center; padding: 0 6px; border: 1px solid var(--line-2); color: var(--text-2); font-size: 11px; white-space: nowrap; }
.badge.warn { border-color: var(--warn); color: var(--warn); }
.badge.good { border-color: var(--buy); color: var(--buy); }
.badge.pin { border-color: var(--accent); color: var(--accent); font-weight: 700; }
.chg { font-weight: 700; }
.chg.up, .up { color: var(--buy); } .chg.down, .down { color: var(--sell); }
.up, .down { font-weight: 700; }
.warn-text { color: var(--warn); font-weight: 700; }
.tick { color: var(--muted); font-weight: 700; font-size: 12px; }
.tick.big { font-size: 16px; color: var(--text-2); }

/* ---------------- avatars + identities */
.tava { position: relative; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; color: #fff; font-weight: 800; border: 1px solid var(--line-2); }
.tava img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.who { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--text); max-width: 100%; }
.who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.who:hover span { text-decoration: underline; }
.ident { flex-shrink: 0; image-rendering: pixelated; }
.coin { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }

/* ---------------- hero (launches page) */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; padding: 30px 0 46px; border-bottom: 1px solid var(--line); }
.boot { color: var(--muted); font-size: 13px; line-height: 1.75; margin: 0 0 18px; white-space: pre; min-height: 9em; }
.boot .ok { color: var(--accent); }
.boot .bad { color: var(--sell); }
.hero h1.big { font-size: clamp(84px, 13vw, 172px); line-height: .82; letter-spacing: -0.02em; }
.hero h1.big span { display: block; }
.hero .lead { font-size: 16px; color: var(--text); max-width: 46ch; margin: 26px 0 26px; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .ctas .btn { height: 48px; padding: 0 22px; }
.hstats { display: flex; gap: 0; margin-top: 34px; flex-wrap: wrap; }
.hstats div { padding: 4px 20px 4px 14px; border-left: 1px solid var(--line-2); }
.hstats b { display: block; font-size: 24px; font-weight: 700; line-height: 1.2; }
.hstats small { color: var(--muted); font-size: 12px; }
.ascii { position: relative; border: 1px solid var(--line-2); background: var(--panel); aspect-ratio: 1; max-width: 500px; justify-self: end; width: 100%; overflow: hidden; container-type: size; }
.ascii pre { position: absolute; inset: 0; margin: auto; display: block; width: fit-content; height: fit-content; font: 400 13px/1.05 var(--mono); font-size: min(15px, calc(100cqw / 30), calc(100cqh / 39)); color: var(--text-2); user-select: none; white-space: pre; }
.ascii .eye { color: var(--accent); }
.ascii .rain { color: var(--muted); }
.ascii .lbl { position: absolute; font-size: 11px; color: var(--muted); }
.ascii .lbl.tl { top: 10px; left: 12px; } .ascii .lbl.tr { top: 10px; right: 12px; }
.ascii .lbl.bl { bottom: 10px; left: 12px; } .ascii .lbl.br { bottom: 10px; right: 12px; }
.ascii .live::before { content: "● "; color: var(--accent); }

/* ---------------- trending / pinned */
.arrows { display: flex; gap: 6px; }
.trend { display: grid; grid-auto-flow: column; grid-auto-columns: 200px; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; scrollbar-width: thin; }
.trend.pinned { grid-auto-columns: 220px; }
.tcard { scroll-snap-align: start; text-decoration: none; color: var(--text); display: flex; flex-direction: column; gap: 8px; padding: 8px; border: 1px solid var(--line); background: var(--panel); }
.tcard:hover { border-color: var(--text); }
.tcard .art { aspect-ratio: 1; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; color: #fff; font-family: var(--display); font-weight: 800; font-size: 60px; }
.tcard .art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tcard-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tcard-num { display: flex; align-items: baseline; gap: 8px; }
.tcard-num b { font-size: 18px; }
.tcard.static { pointer-events: none; }
.pin-note { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------- token list */
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 560px), 1fr)); gap: 0; border-top: 1px solid var(--line); }
.trow { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; gap: 4px 14px; padding: 14px 6px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); }
.trow:hover { background: var(--hover); }
.trow .tava { grid-row: span 2; }
.trow-main { min-width: 0; }
.trow-title { display: flex; gap: 8px; align-items: baseline; min-width: 0; }
.trow-title b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.trow-title .tick { flex-shrink: 0; }
.trow-meta { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: 12px; min-width: 0; }
.trow-meta .who { color: var(--text-2); }
.trow-badges { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.trow-nums { display: flex; gap: 16px; text-align: right; }
.trow-nums small { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.trow-nums b { font-size: 14px; }
.trow-bar, .bar { height: 4px; background: var(--line); align-self: end; }
.trow-bar { grid-column: 2 / 4; }
.trow-bar i, .bar i { display: block; height: 100%; max-width: 100%; background: var(--accent); }

/* ---------------- token page */
.tok-head { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; margin-bottom: 22px; }
.tok-name { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tok-name h1 { font-size: clamp(30px, 4vw, 48px); text-transform: none; }
.tok-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 13px; margin-top: 6px; }
.tok-meta .addr { display: inline-flex; align-items: center; gap: 4px; }
.tok-mcap { text-align: right; }
.tok-mcap small { display: block; color: var(--muted); font-size: 12px; }
.tok-mcap b { display: block; font-family: var(--display); font-weight: 800; font-size: 44px; line-height: 1; }
.tok-mcap span { color: var(--muted); font-size: 12px; }
.tok-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.tok-side { position: sticky; top: 80px; }
.chart-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.price { font-size: 28px; font-weight: 700; line-height: 1.1; }
.chart-ctrl { display: flex; gap: 8px; flex-wrap: wrap; }
.chart-box { position: relative; height: 360px; border: 1px solid var(--line); background: var(--panel); padding: 8px; }
.chart-box canvas { width: 100%; height: 100%; display: block; }
.chart-tip { position: absolute; top: 12px; background: var(--invert-bg); color: var(--invert-text); padding: 6px 9px; font-size: 12px; display: grid; gap: 1px; pointer-events: none; min-width: 170px; }
.chart-tip span { color: inherit; opacity: .85; font-variant-numeric: tabular-nums; }
.curve { margin: 20px 0 6px; }
.curve-top { display: flex; justify-content: space-between; color: var(--text-2); font-size: 13px; margin-bottom: 8px; }
.stats { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); margin-top: 16px; }
.stats > div { padding: 12px 14px; }
.stats > div + div { border-left: 1px solid var(--line); }
.stats small, .info small { display: block; color: var(--muted); font-size: 12px; }
.stats b { font-size: 22px; font-weight: 700; }
.info { display: flex; flex-wrap: wrap; gap: 12px 34px; padding: 16px 0; }
.about { padding: 6px 0; }
.about p { margin: 0; color: var(--text-2); max-width: 70ch; white-space: pre-wrap; }
.tabs-head { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 22px; border-bottom: 1px solid var(--line); }
.tabs { display: flex; gap: 20px; }
.tabs button { border: 0; background: none; padding: 8px 0; color: var(--muted); border-bottom: 1px solid transparent; margin-bottom: -1px; }
.tabs button[aria-pressed="true"] { color: var(--text); border-bottom-color: var(--accent); font-weight: 700; }

/* ---------------- tables */
.table-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-weight: 400; color: var(--muted); padding: 10px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; font-size: 12px; }
.tbl td { padding: 10px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl .r { text-align: right; }
.tbl td a { text-decoration: none; }
.tbl tr.click { cursor: pointer; }
.tbl tbody tr:hover { background: var(--hover); }
.more { margin: 12px auto; display: flex; }

/* ---------------- trade panel */
.tp { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.tp h3 { margin: 0; }
.pay { border: 1px solid var(--line); background: var(--panel-2); padding: 12px; }
.pay-top { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
.pay-row { display: flex; align-items: center; gap: 8px; margin: 6px 0 10px; }
.pay-row input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 30px; font-weight: 700; color: var(--text); }
.pay-row .unit { font-weight: 700; }
.pcts { display: flex; gap: 6px; }
.pcts button { border: 1px solid var(--line-2); background: transparent; padding: 2px 10px; font-size: 12px; color: var(--text); }
.pcts button:hover { border-color: var(--text); }
.recv small { display: block; color: var(--muted); font-size: 12px; }
.recv b { font-size: 22px; }
.tp-details { display: grid; gap: 4px; font-size: 13px; color: var(--text-2); }
.tp-details div { display: flex; justify-content: space-between; align-items: center; }
.tp-warn { border: 1px solid var(--warn); color: var(--warn); padding: 10px 12px; font-size: 12px; }
.tp-foot { margin: 0; text-align: center; color: var(--muted); font-size: 12px; }

/* ---------------- forms + launch */
.launch-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.form { padding: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.field small { font-size: 12px; }
.input { border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text); padding: 9px 10px; width: 100%; outline: none; }
.input:focus { border-color: var(--accent); }
.input.sm { width: 140px; }
textarea.input { resize: vertical; }
input[type=range] { accent-color: var(--accent); width: 100%; }
.img-field { flex-direction: row; gap: 14px; align-items: center; }
.img-prev { position: relative; width: 76px; height: 76px; border: 1px dashed var(--line-2); background: var(--panel-2); display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--muted); font-size: 24px; flex-shrink: 0; cursor: pointer; padding: 0; }
.img-prev img { width: 100%; height: 100%; object-fit: cover; }
.img-busy { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.5); }
.img-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.img-actions .btn.sm { margin-top: 0; }
.img-link summary { cursor: pointer; font-size: 12px; color: var(--muted); margin: 2px 0 4px; }
.grow { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.social-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.adv { border-top: 1px solid var(--line); padding-top: 12px; }
.adv summary { font-weight: 700; cursor: pointer; margin-bottom: 10px; }
.adv .field + .field { margin-top: 12px; }
.launch-side { position: sticky; top: 80px; }
.preview { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.sum { display: grid; gap: 6px; font-size: 13px; color: var(--text-2); border-top: 1px solid var(--line); padding-top: 10px; }
.sum div { display: flex; justify-content: space-between; }
.sum .tot { border-top: 1px solid var(--line); padding-top: 8px; color: var(--text); font-weight: 700; }

/* ---------------- analytics + kpis */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); border: 1px solid var(--line); margin-bottom: 22px; }
.kpi { padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; align-items: flex-start; border-right: 1px solid var(--line); }
.kpi b { font-size: 26px; font-weight: 700; line-height: 1.15; }
.kpi small { color: var(--muted); font-size: 12px; }
.kpi .btn { margin-top: 8px; height: 30px; }
.chart-card { padding: 18px; margin-bottom: 22px; }
.chart-card .row-head { margin-top: 0; }
.big-num { font-family: var(--display); font-weight: 800; font-size: 40px; line-height: 1; }
.bars-box { height: 290px; }
.bars-box canvas { width: 100%; height: 100%; display: block; }
.card > .row-head { padding: 14px 16px 0; margin: 0 0 6px; }
.card > .table-wrap { margin: 0 8px 8px; }
.settings { padding: 4px 18px; margin-bottom: 12px; }
.set { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.set:last-child { border-bottom: 0; }
.set small { display: block; color: var(--muted); }
.set .input:not(.sm) { width: min(420px, 100%); }
.mod-h { margin: 26px 0 12px; }
.mod-form { display: grid; grid-template-columns: auto 1.2fr 1fr auto; gap: 8px; }
.mod-gap { margin-top: 12px; }
.mod-tools { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; margin-top: 8px; }
.mod-tools:empty { display: none; }
.hidden-banner { display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--sell); color: var(--sell); padding: 10px 14px; margin-bottom: 16px; }
.hidden-banner span { color: var(--text); }

/* ---------------- docs */
.docs { max-width: 78ch; }
.docs h2 { margin: 28px 0 10px; }
.docs p, .docs li { color: var(--text-2); }
.docs ul, .docs ol { padding-left: 20px; margin: 6px 0; }
.docs li { margin: 4px 0; }
.docs .table-wrap { margin: 10px 0; border: 1px solid var(--line); }
.docs code { word-break: break-all; }

/* ---------------- toasts, footer, status bar */
.toasts { position: fixed; right: 16px; bottom: calc(44px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 8px; z-index: 50; max-width: calc(100% - 32px); }
.toast { background: var(--invert-bg); color: var(--invert-text); padding: 12px 14px; width: 340px; max-width: 100%; display: flex; flex-direction: column; gap: 2px; animation: up .15s ease-out; transition: opacity .4s; font-size: 13px; }
.toast b::before { content: "> "; }
.toast span { opacity: .8; }
.toast a { font-weight: 700; font-size: 12px; color: inherit; }
.toast.good b::before { content: "✓ "; } .toast.bad b::before { content: "✕ "; } .toast.warn b::before { content: "! "; }
.toast.out { opacity: 0; }
@keyframes up { from { opacity: 0; transform: translateY(6px); } }
.foot { border-top: 1px solid var(--line); margin-top: 20px; }
.foot-in { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; padding: 26px 28px 30px; }
.foot-brand small { display: block; color: var(--muted); margin-top: 8px; }
.foot-col { display: flex; flex-direction: column; gap: 6px; }
.foot-col h4 { margin: 0 0 4px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.foot-col a { color: var(--muted); text-decoration: none; width: fit-content; }
.foot-col a:hover { color: var(--text); }
.statusbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; height: calc(30px + env(safe-area-inset-bottom, 0px)); padding: 0 28px env(safe-area-inset-bottom, 0px); display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line); background: var(--bg); color: var(--muted); font-size: 11px; }
.statusbar b { color: var(--text); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------------- responsive */
@media (max-width: 1180px) {
  .top-in { grid-template-columns: auto 1fr; }
  .nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; overflow-x: auto; }
  .top-right { justify-self: end; }
  .tagline { display: none; }
  .tok-layout, .launch-grid { grid-template-columns: minmax(0, 1fr); }
  .tok-side, .launch-side { position: static; }
  .tok-side { order: -1; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .ascii { justify-self: stretch; max-width: 520px; margin: 0 auto; }
}
@media (max-width: 760px) {
  .top-in { padding: 10px 16px; gap: 10px 12px; }
  .top-right { gap: 8px; }
  .search-box { display: none; }
  .search-box.open { display: flex; }
  .net { display: none; }
  .btn.wallet .bal { display: none; }
  .page { padding: 22px 16px 48px; }
  .tok-head { grid-template-columns: auto 1fr; }
  .tok-mcap { grid-column: 1 / -1; text-align: left; display: flex; align-items: baseline; gap: 10px; }
  .tok-mcap small { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > div + div { border-left: 0; }
  .stats > div { border-bottom: 1px solid var(--line); }
  .trow { grid-template-columns: auto 1fr; }
  .trow-nums { grid-column: 1 / -1; justify-content: space-between; text-align: left; }
  .trow-bar { grid-column: 1 / -1; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .chart-box { height: 280px; }
  .mod-form { grid-template-columns: 1fr; }
  .mod-tools { justify-content: flex-start; }
  .foot-in { grid-template-columns: 1fr 1fr; padding: 22px 16px; }
  .foot-brand { grid-column: 1 / -1; }
  .statusbar { padding: 0 16px env(safe-area-inset-bottom, 0px); }
  .statusbar > span:first-child { display: none; }
  .hstats div { padding-right: 14px; }
  .kpi { border-bottom: 1px solid var(--line); }
}
@media (max-width: 420px) {
  .logo span b, .logo span em { font-size: 13px; }
  .trend { grid-auto-columns: 150px; }
  .tcard .art { font-size: 40px; }
  .social-grid { grid-template-columns: 1fr; }
  .hero h1.big { font-size: 80px; }
}
.set-ctl { display: inline-flex; gap: 8px; align-items: center; }
/* filter tabs scroll inside their own row on narrow screens instead of widening the page */
.row-head .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.row-head .seg::-webkit-scrollbar { display: none; }
.row-head .seg button { flex-shrink: 0; white-space: nowrap; }
.row-head.wrap { min-width: 0; }
.row-head.wrap > * { min-width: 0; }

/* ---------------- early-access gate */
body.gated .nav, body.gated .search-box, body.gated .foot { display: none !important; }
.gate .countdown { font-size: 18px; margin: 0 0 22px; }
.gate .countdown b { color: var(--accent); font-size: 26px; }
.gate-note { color: var(--text-2); margin: 16px 0 0; max-width: 52ch; font-size: 13px; }
.set .grow { display: flex; flex-direction: column; gap: 8px; width: 100%; }

/* ---------------- status chips (replace the boot log) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; min-height: 26px; }
.chip { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line-2); padding: 3px 10px; font-size: 12px; color: var(--text-2); white-space: nowrap; }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.chip.ok i { background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.chip.bad i { background: var(--sell); }
.chip.warn { border-color: var(--warn); color: var(--warn); }
.chip.good { border-color: var(--accent); color: var(--accent); }

/* ---------------- vector ink blot (replaces the ascii art) */
.blot-host { position: absolute; inset: 0; display: grid; place-items: center; }
.blot-svg { width: 88%; height: 88%; overflow: visible; }
.blot-svg .ink { fill: var(--text); }
.blot-svg .lime { fill: var(--accent); }
.blot-svg .floor { stroke: var(--line-2); stroke-width: 1.5; stroke-dasharray: 2 7; }

/* ---------------- early-access banner inside the site */
.ea-bar { border-bottom: 1px solid var(--warn); background: var(--warn-soft); font-size: 12px; }
.ea-in { max-width: 1320px; margin: 0 auto; padding: 7px 28px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ea-tag { color: var(--warn); margin-right: 6px; letter-spacing: .06em; }
.ea-in a { color: var(--text); }
@media (max-width: 760px) { .ea-in { padding: 7px 16px; } }
