/* Hallmark · macrostructure: studied DeepBook (stack pin + tiles + giant footer wordmark) · studied: yes · theme: tradecore-lime */
/* TradeCore. Built to DeepBook's language: black page, hairline frames with corner
   ticks, one accent used as solid panels, isometric line art on paper. */
@font-face { font-family: "Hanken Grotesk"; src: url("/assets/fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --ink: #0b0d0a;
  --panel: #15170f;
  --line: #2a2e24;
  --lime: #c8f03c;
  --paper: #ede6d6;
  --muted: #8d9283;
  --down: #ff5b38;
  --text: #f1f2ec;
  --gut: clamp(14px, 1.9vw, 36px);
  --sans: "Hanken Grotesk", system-ui, sans-serif;
  --mono: "Plex Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --c1: rgba(21, 23, 15, .92);
  --c2: #c9ccc0;
  --c3: #d8dbcf;
  --c4: #4a5040;
  --c5: #3a3f33;
  --c6: rgba(11, 13, 10, .92);
  --c7: rgba(11, 13, 10, 0);
  --c8: #d4d7cb;
  --c9: #6b7160;
  --c10: #23271f;
  --c11: #c3c6ba;
  --c12: #1d2019;
  --c13: #13160f;
  --c14: rgba(200, 240, 60, .16);
  --c15: #555b4b;
  --c16: #20231b;
  --c17: #22261c;
  --c18: #d6dacb;
  --c19: #1e2119;
  --c20: rgba(11, 13, 10, .55);
  --c21: rgba(11, 13, 10, .1);
  --c22: rgba(11, 13, 10, .35);
  --c23: #f7f2e6;
  --c24: #ddd5c2;
  --c25: #c9c0aa;
  --c26: #a9cf2a;
  --c27: #8fb31c;
  --c28: #12150e;
  --c29: #bfc3b5;
  --c30: rgba(11, 13, 10, .75);
  --c31: rgba(11, 13, 10, .18);
  --c32: #4b4e43;
  --c33: #cfc6b0;
  --c34: #5f6155;
  --c35: #d9d0bb;
  --c36: #3f6a00;
  --c37: #c2300f;
  --c38: rgba(11, 13, 10, .95);
  --c39: #5b6150;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); color-scheme: dark; overflow-x: clip; }
body { margin: 0; background: var(--ink); color: var(--text); font: 400 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, select, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 99; background: var(--lime); color: var(--ink); padding: 8px 12px; }
.skip:focus { left: 8px; }
.num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.up { color: var(--lime); }
.down { color: var(--down); }
.empty { color: var(--muted); margin: 0; padding: 22px 18px; list-style: none; }

/* ---------- live tape (DeepBook's accent announcement bar) ---------- */
.tape { position: relative; z-index: 30; height: 30px; overflow: hidden; background: var(--lime); color: var(--ink); font-size: 13px; font-weight: 600; }
.tape-track { display: flex; gap: 46px; width: max-content; height: 100%; align-items: center; padding-left: 100%; animation: tape 60s linear infinite; white-space: nowrap; }
.tape:hover .tape-track { animation-play-state: paused; }
.tape-item { display: inline-flex; gap: 8px; align-items: center; }
.tape-item b { font-weight: 700; }
.tape-item .mono { font-weight: 500; }
.tape-item i { display: inline-block; width: 7px; height: 7px; background: var(--ink); }
.tape-item i.dn { background: transparent; border: 1.5px solid var(--ink); }
@keyframes tape { to { transform: translateX(-100%); } }

/* ---------- floating pill bar ---------- */
.bar { position: sticky; top: 12px; z-index: 25; padding: 12px var(--gut) 0; margin-bottom: -66px; pointer-events: none; }
.bar-in { pointer-events: auto; display: flex; align-items: center; gap: 20px; max-width: 1180px; margin: 0 auto; height: 54px; padding: 0 8px 0 10px; background: var(--c1); backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 8px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand-tile { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--lime); }
.brand-word { font-size: 18px; font-weight: 600; letter-spacing: -.03em; }
.links { display: flex; gap: 22px; font-size: 14px; }
.links a { text-decoration: none; color: var(--c2); transition: color .2s; }
.links a:hover { color: var(--lime); }
.tools { display: flex; align-items: center; gap: 6px; margin-left: 12px; }
.ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 4px; color: var(--c3); border: 1px solid var(--line); transition: background .2s, color .2s; }
.ico:hover { background: var(--paper); color: var(--ink); }
.ca { height: 34px; padding: 0 11px; border-radius: 4px; border: 1px dashed var(--c4); background: none; color: var(--c2); font: 500 12px var(--mono); cursor: default; }
.ca.is-live { border-style: solid; cursor: pointer; }
.ca.is-live:hover { border-color: var(--lime); }
.pairnote { font-size: 12px; color: var(--muted); margin-right: 4px; }
.pairnote a { color: var(--lime); }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 36px; padding: 0 15px; border-radius: 3px; border: 1px solid transparent; font-size: 14px; font-weight: 600; letter-spacing: -.01em; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s; white-space: nowrap; }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { background: var(--paper); }
.btn-paper { background: var(--paper); color: var(--ink); }
.btn-paper:hover { background: var(--lime); }
.btn-ghost { border-color: var(--c5); color: var(--text); background: none; }
.btn-ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn[aria-disabled="true"] { opacity: .55; }
.btn.small { height: 30px; font-size: 13px; padding: 0 11px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- hero: the live signal field ---------- */
.hero { position: relative; min-height: max(720px, 100svh); display: flex; flex-direction: column; justify-content: flex-end; padding: 120px var(--gut) var(--gut); overflow: hidden; }
.field { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 46% 34% at 50% 52%, var(--c6), var(--c7) 70%), linear-gradient(to bottom, var(--c7) 60%, var(--ink) 100%); }
.hero-copy { position: relative; z-index: 2; margin: auto auto 0; text-align: center; max-width: 1100px; padding-bottom: clamp(30px, 6vh, 80px); }
.hero h1 { margin: 0; font-size: clamp(44px, 6.6vw, 126px); line-height: .98; font-weight: 500; letter-spacing: -.045em; text-wrap: balance; }
.hero-sub { margin: 18px auto 0; max-width: 560px; font-size: clamp(15px, 1.15vw, 19px); color: var(--c8); font-weight: 500; letter-spacing: -.01em; }
.hero-cta { display: flex; gap: 8px; justify-content: center; margin-top: 26px; }
.field-key { margin: 22px auto 0; max-width: 470px; font-size: 12.5px; color: var(--muted); }
.tiles { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); }
.tile { display: flex; flex-direction: column; justify-content: space-between; gap: 30px; min-height: clamp(130px, 15vh, 190px); padding: 16px 18px 18px; border-right: 1px solid var(--line); }
.tile:last-child { border-right: 0; }
.tile-n { font-size: clamp(34px, 3.6vw, 68px); line-height: 1; font-weight: 500; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.tile-c { font-size: 13px; max-width: 260px; line-height: 1.35; }
.t-lime { background: var(--lime); color: var(--ink); }
.t-paper { background: var(--paper); color: var(--ink); }
.t-grey { background: var(--muted); color: var(--ink); }
.t-ink { background: var(--ink); }
.t-ink .tile-c { color: var(--muted); }

/* ---------- frames and corner ticks ---------- */
.frame { position: relative; border: 1px solid var(--line); }
.tick { position: absolute; width: 11px; height: 11px; pointer-events: none; }
.tick::before, .tick::after { content: ""; position: absolute; background: var(--c9); }
.tick::before { left: 5px; top: 0; width: 1px; height: 11px; }
.tick::after { top: 5px; left: 0; height: 1px; width: 11px; }
.tick.tl { left: 8px; top: 8px; } .tick.tr { right: 8px; top: 8px; } .tick.bl { left: 8px; bottom: 8px; } .tick.br { right: 8px; bottom: 8px; }

/* ---------- terminal ---------- */
.terminal { margin: clamp(60px, 9vh, 120px) var(--gut) 0; background-image: radial-gradient(var(--c10) 1px, transparent 1.2px); background-size: 26px 26px; }
.term-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 26px 28px 18px; border-bottom: 1px solid var(--line); background: var(--ink); }
.term-head h2 { margin: 0; font-size: clamp(30px, 3vw, 52px); font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.term-ctl { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 4px; padding: 2px; background: var(--panel); }
.seg button { height: 30px; padding: 0 12px; border: 0; border-radius: 3px; background: none; color: var(--c11); font-size: 13px; font-weight: 500; cursor: pointer; transition: background .2s, color .2s; }
.seg button:hover { color: var(--text); }
.seg button[aria-selected="true"], .seg button.on { background: var(--lime); color: var(--ink); }
.seg.small button { height: 26px; padding: 0 9px; font-family: var(--mono); font-size: 12px; }
.sort { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.sort select { height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); color: var(--text); font-size: 13px; }
.stamp { font-size: 12.5px; color: var(--muted); }
.term-grid { display: grid; grid-template-columns: minmax(0, 1fr) clamp(300px, 26vw, 460px); background: var(--ink); }
.board { border-right: 1px solid var(--line); min-width: 0; }
.brow { display: grid; grid-template-columns: minmax(170px, 1.8fr) minmax(0, .9fr) minmax(0, .9fr) minmax(0, .9fr) minmax(0, .9fr) minmax(0, 1.1fr) minmax(0, .65fr) minmax(0, .65fr) minmax(110px, 1fr); align-items: center; gap: 10px; padding: 0 18px; min-height: 56px; border-bottom: 1px solid var(--c12); font-size: 13.5px; }
.bhead { min-height: 38px; color: var(--muted); font-size: 12.5px; position: sticky; top: 0; background: var(--ink); z-index: 1; }
#boardRows { max-height: min(640px, 70vh); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--c5) transparent; }
.brow.row { cursor: pointer; transition: background .15s; }
.brow.row:hover, .brow.row.is-open { background: var(--c13); }
.brow.row.flash { animation: flash 1.4s var(--ease); }
@keyframes flash { from { background: var(--c14); } }
.coin { display: flex; align-items: center; gap: 10px; min-width: 0; }
.star { flex: none; width: 22px; height: 22px; display: grid; place-items: center; border: 0; background: none; color: var(--c15); cursor: pointer; padding: 0; }
.star[aria-pressed="true"] { color: var(--lime); }
.star svg { width: 15px; height: 15px; }
.av { flex: none; width: 30px; height: 30px; border-radius: 6px; background: var(--c16); object-fit: cover; }
.av.blank { display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--muted); }
.coin-t { min-width: 0; line-height: 1.2; }
.coin-t b { display: block; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.coin-t span { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bs { display: flex; flex-direction: column; gap: 4px; font-family: var(--mono); font-size: 12px; }
.bs-bar { display: flex; height: 3px; background: var(--down); }
.bs-bar i { background: var(--lime); }
.flags { display: flex; flex-wrap: wrap; gap: 4px; }
.flag { font-size: 11.5px; padding: 2px 6px; border-radius: 2px; background: var(--c17); color: var(--c18); white-space: nowrap; }
.flag.up { background: var(--lime); color: var(--ink); }
.flag.down { background: var(--down); color: var(--ink); }

.feed { display: flex; flex-direction: column; min-width: 0; }
.feed-head { display: flex; align-items: center; justify-content: space-between; padding: 0 18px; min-height: 38px; border-bottom: 1px solid var(--c12); }
.feed-head h3 { margin: 0; font-size: 13px; font-weight: 600; }
.live-dot { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }
.live-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); animation: pulse 2s infinite; }
.live-dot.stale::before { background: var(--down); animation: none; }
@keyframes pulse { 50% { opacity: .25; } }
.feed-list { list-style: none; margin: 0; padding: 0; max-height: min(640px, 70vh); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--c5) transparent; }
.sig { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--c12); cursor: pointer; transition: background .15s; }
.sig:hover { background: var(--c13); }
.sig-b { min-width: 0; font-size: 13px; line-height: 1.35; }
.sig-b b { font-weight: 600; }
.sig-b p { margin: 2px 0 0; color: var(--muted); font-size: 12.5px; }
.sig-r { text-align: right; font-size: 12px; color: var(--muted); white-space: nowrap; }
.sig-r .res { display: block; margin-top: 3px; font-family: var(--mono); font-size: 12px; }
.res.hit { color: var(--lime); } .res.miss { color: var(--down); }
.dir { display: inline-block; width: 0; height: 0; margin-right: 6px; border-left: 5px solid transparent; border-right: 5px solid transparent; vertical-align: 1px; }
.dir.up { border-bottom: 7px solid var(--lime); }
.dir.down { border-top: 7px solid var(--down); }
.sig.new { animation: flash 1.6s var(--ease); }

/* coin drawer */
.drawer { border-top: 1px solid var(--line); background: var(--ink); display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr) minmax(260px, .8fr); }
.drawer > section { padding: 22px 24px; border-right: 1px solid var(--line); min-width: 0; }
.drawer > section:last-child { border-right: 0; }
.dr-title { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.dr-title h3 { margin: 0; font-size: 26px; font-weight: 500; letter-spacing: -.035em; }
.dr-title .av { width: 40px; height: 40px; }
.dr-close { margin-left: auto; }
.chart { position: relative; height: 260px; border: 1px solid var(--c12); background-image: radial-gradient(var(--c19) 1px, transparent 1.2px); background-size: 18px 18px; }
.chart canvas { width: 100%; height: 100%; display: block; }
.chart .empty { position: absolute; inset: 0; display: grid; place-items: center; }
.dr-src { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.kv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; margin: 0; border-top: 1px solid var(--c12); }
.kv div { padding: 10px 0; border-bottom: 1px solid var(--c12); }
.kv dt { font-size: 12px; color: var(--muted); }
.kv dd { margin: 2px 0 0; font-family: var(--mono); font-size: 14px; }
.dr-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.dr-hist { list-style: none; margin: 14px 0 0; padding: 0; font-size: 13px; }
.dr-hist li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--c12); }
.buybox h4 { margin: 0 0 10px; font-size: 18px; font-weight: 500; letter-spacing: -.02em; }
.buybox .quote { margin: 12px 0; font-size: 13px; color: var(--c2); min-height: 60px; }
.buybox .quote b { color: var(--text); font-family: var(--mono); font-weight: 500; }
.buybox .btn { width: 100%; height: 44px; font-size: 15px; }
.buybox .fine { font-size: 12px; color: var(--muted); margin: 10px 0 0; }

/* ---------- pinned stack ---------- */
.stack { padding: clamp(80px, 12vh, 150px) var(--gut) 0; }
.stack-pin { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); height: min(860px, calc(100svh - 110px)); min-height: 560px; border: 1px solid var(--line); }
.stack-text { position: relative; background: var(--lime); color: var(--ink); display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 60px 9%; text-align: center; }
.stack-text .tick::before, .stack-text .tick::after { background: var(--c20); }
.stack-steps { position: relative; width: 100%; min-height: 300px; }
.step { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; opacity: 0; visibility: hidden; }
.step.is-on { opacity: 1; visibility: visible; }
.step h2 { margin: 0; font-size: clamp(36px, 3.9vw, 70px); line-height: 1; font-weight: 500; letter-spacing: -.045em; }
.step p { margin: 22px auto 0; max-width: 470px; font-size: clamp(15px, 1.1vw, 18px); font-weight: 500; line-height: 1.45; }
.step p b { display: block; margin-top: 14px; font-weight: 500; font-size: 14px; }
.dashes { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); display: flex; gap: 5px; padding: 6px 8px; background: var(--c21); border-radius: 3px; }
.dashes i { width: 26px; height: 3px; background: var(--c22); transform: scaleX(.24); transform-origin: left; margin-right: -19px; transition: transform .4s var(--ease), margin .4s var(--ease), background .4s; }
.dashes i.on { transform: scaleX(1); margin-right: 0; background: var(--ink); }
.stack-art { position: relative; display: grid; place-items: center; padding: 8%; background-image: radial-gradient(var(--c5) 1px, transparent 1.3px); background-size: 52px 52px; background-position: 26px 26px; }
.paper { width: 100%; max-width: 560px; aspect-ratio: 1; background: var(--paper); display: grid; place-items: center; }
.paper svg { width: 86%; height: 86%; overflow: visible; }
.iso-f { stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; }
.iso-top { fill: var(--c23); } .iso-l { fill: var(--c24); } .iso-r { fill: var(--c25); }
.iso-lime.iso-top { fill: var(--lime); } .iso-lime.iso-l { fill: var(--c26); } .iso-lime.iso-r { fill: var(--c27); }
.iso-ink.iso-top { fill: var(--line); } .iso-ink.iso-l { fill: var(--panel); } .iso-ink.iso-r { fill: var(--ink); }
.iso-line { stroke: var(--ink); stroke-width: 1.4; fill: none; }
.iso-thin { stroke: var(--ink); stroke-width: 1; fill: none; stroke-dasharray: 3 4; }

/* ---------- engine rules ---------- */
.sec-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 6vw; align-items: end; padding: clamp(90px, 13vh, 170px) var(--gut) clamp(30px, 5vh, 56px); }
.sec-head h2 { margin: 0; font-size: clamp(38px, 4.6vw, 86px); line-height: .98; font-weight: 500; letter-spacing: -.045em; text-wrap: balance; }
.sec-head p { margin: 0; max-width: 520px; font-size: 16px; color: var(--c2); }
.rules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 var(--gut); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.rule { position: relative; display: flex; flex-direction: column; gap: 16px; min-height: 300px; padding: 22px 22px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .3s; }
.rule:hover { background: var(--c28); }
.rule-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.rule h3 { margin: 0; font-size: 22px; font-weight: 500; letter-spacing: -.025em; }
.rule .dirtag { font-size: 12px; padding: 3px 7px; border-radius: 2px; background: var(--c17); white-space: nowrap; }
.rule .dirtag.up { background: var(--lime); color: var(--ink); } .rule .dirtag.down { background: var(--down); color: var(--ink); }
.rule p { margin: 0; color: var(--c29); font-size: 14px; flex: 1; }
.rule-rate { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.rule-rate .big { font-size: 54px; line-height: .9; font-weight: 500; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.rule-rate .big.pending { font-size: 22px; letter-spacing: -.02em; color: var(--muted); line-height: 1.2; }
.rule-rate small { display: block; text-align: right; font-size: 12px; color: var(--muted); line-height: 1.5; }
.meter { height: 4px; background: var(--c17); }
.meter i { display: block; height: 100%; width: 100%; background: var(--lime); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease); }
.rule.lead { background: var(--lime); color: var(--ink); }
.rule.lead p, .rule.lead small { color: var(--c30); }
.rule.lead .meter { background: var(--c31); } .rule.lead .meter i { background: var(--ink); }
.rule.lead h3 { font-size: 30px; }

/* ---------- bots ---------- */
.bot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0 var(--gut); }
.bot { padding: 26px 24px 22px; min-height: 480px; display: flex; flex-direction: column; gap: 14px; margin-left: -1px; background: var(--ink); }
.bot-top { display: flex; align-items: center; justify-content: space-between; }
.bot h3 { margin: 0; font-size: 30px; font-weight: 500; letter-spacing: -.04em; }
.bot-note { margin: 0; color: var(--c29); font-size: 14px; }
.count { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.switch { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px 0 4px; border: 1px solid var(--line); border-radius: 15px; background: var(--panel); font-size: 13px; cursor: pointer; }
.switch span { width: 22px; height: 22px; border-radius: 50%; background: var(--c5); transition: background .2s, transform .3s var(--ease); }
.switch[aria-checked="true"] { border-color: var(--lime); }
.switch[aria-checked="true"] span { background: var(--lime); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { height: 28px; padding: 0 10px; border: 1px solid var(--line); border-radius: 3px; background: none; font-size: 12.5px; cursor: pointer; color: var(--c2); }
.chip[aria-pressed="true"] { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.check { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--c2); }
.check input { accent-color: var(--lime); width: 16px; height: 16px; }
.bot-log, .watch { list-style: none; margin: 4px 0 0; padding: 0; border-top: 1px solid var(--line); flex: 1; max-height: 250px; overflow-y: auto; font-size: 13px; }
.bot-log li, .watch li { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--c12); }
.bot-log .empty, .watch .empty { padding: 14px 0; display: block; }
.watch .coin { cursor: pointer; }
.field-row { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--c2); }
.field-row > span:first-child { width: 64px; }

/* ---------- record ---------- */
.record { background: var(--paper); color: var(--ink); margin-top: clamp(90px, 13vh, 170px); padding-bottom: clamp(60px, 9vh, 110px); }
.record .sec-head p { color: var(--c32); }
.rec-table { margin: 0 var(--gut); border-top: 1px solid var(--ink); }
.rrow { display: grid; grid-template-columns: minmax(150px, 1.4fr) minmax(0, 1fr) minmax(0, .7fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, .7fr) minmax(0, .7fr) minmax(0, .5fr); gap: 12px; align-items: center; min-height: 54px; padding: 0 6px; border-bottom: 1px solid var(--c33); font-size: 14px; }
.rrow.rhead { min-height: 40px; font-size: 12.5px; color: var(--c34); }
.rrow .av { background: var(--c35); }
.rrow .coin-t span { color: var(--c34); }
.rrow .hitmark { justify-self: start; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 2px; }
.hitmark.hit { background: var(--ink); color: var(--lime); }
.hitmark.miss { background: none; border: 1px solid var(--ink); }
.rrow .up { color: var(--c36); } .rrow .down { color: var(--c37); }
.record .empty { color: var(--c34); padding: 26px 6px; }
.rec-more { display: block; margin: 22px var(--gut) 0; }
.record .btn-ghost { border-color: var(--ink); color: var(--ink); }
.record .btn-ghost:hover { background: var(--ink); color: var(--paper); }

/* ---------- footer ---------- */
.foot { background: var(--lime); color: var(--ink); overflow: hidden; padding: clamp(50px, 7vh, 90px) var(--gut) 0; }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(120px, 200px)) minmax(0, 1fr); gap: 28px; }
.foot h4 { margin: 0 0 10px; font-size: 14px; font-weight: 700; }
.foot-cols a { display: block; font-size: 14px; text-decoration: none; padding: 3px 0; }
.foot-cols a:hover { text-decoration: underline; }
.foot-note { margin: 0; justify-self: end; max-width: 360px; font-size: 13px; }
.foot-word { font-size: clamp(90px, 21.5vw, 520px); line-height: .78; font-weight: 600; letter-spacing: -.07em; margin: clamp(40px, 7vh, 90px) 0 -0.08em -0.04em; white-space: nowrap; }

/* ---------- responsive ---------- */
@media (max-width: 1240px) {
  .links { display: none; }
  .brow { grid-template-columns: minmax(160px, 1.8fr) minmax(0, .9fr) minmax(0, .9fr) minmax(0, .9fr) minmax(0, 1.1fr) minmax(0, .65fr) minmax(100px, 1fr); }
  .brow > :nth-child(4), .brow > :nth-child(7) { display: none; }
  .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .drawer { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .drawer > section:first-child { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 960px) {
  .term-grid { grid-template-columns: minmax(0, 1fr); }
  .board { border-right: 0; border-bottom: 1px solid var(--line); }
  .stack-pin { grid-template-columns: minmax(0, 1fr); height: auto; }
  .stack-art { padding: 10%; }
  .bot-grid { grid-template-columns: minmax(0, 1fr); }
  .bot { margin-left: 0; margin-top: -1px; min-height: 0; }
  .sec-head { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .rrow { grid-template-columns: minmax(130px, 1.4fr) minmax(0, 1fr) minmax(0, .8fr) minmax(0, .7fr) minmax(0, .5fr); }
  .rrow > :nth-child(3), .rrow > :nth-child(4), .rrow > :nth-child(6) { display: none; }
}
@media (max-width: 720px) {
  .bar { top: 8px; padding-top: 8px; }
  .bar-in { gap: 8px; height: 50px; }
  .brand-word { display: none; }
  .ca, .pairnote, #buyBtn { display: none; }
  .tools { margin-left: 0; }
  .btn { padding: 0 11px; }
  .hero { padding-top: 100px; min-height: 0; }
  .hero-copy { padding-top: 200px; }
  .tiles { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .tile:nth-child(2) { border-right: 0; }
  .tile { min-height: 120px; gap: 18px; padding: 12px; }
  .term-head { padding: 18px 14px 14px; }
  .bhead { display: none; }
  .brow.row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "coin price" "bs chg" "flags flags"; row-gap: 8px; padding: 12px 14px; }
  .brow.row > * { display: none; }
  .brow.row > .coin { display: flex; grid-area: coin; }
  .brow.row > .c-price { display: block; grid-area: price; text-align: right; }
  .brow.row > .bs { display: flex; grid-area: bs; }
  .brow.row > .c-h1 { display: block; grid-area: chg; text-align: right; }
  .brow.row > .flags { display: flex; grid-area: flags; }
  .drawer { grid-template-columns: minmax(0, 1fr); }
  .drawer > section { border-right: 0; border-bottom: 1px solid var(--line); padding: 18px 14px; }
  .rules { grid-template-columns: minmax(0, 1fr); }
  .rule { min-height: 0; }
  .rrow { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr) minmax(0, .5fr); }
  .rrow > :nth-child(2), .rrow > :nth-child(5) { display: none; }
  .foot-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot-note { grid-column: 1 / -1; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .tape-track { animation: none; padding-left: 16px; }
}

/* hero peek cards: the newest signal and the busiest pool, live */
.peek { position: absolute; z-index: 3; bottom: calc(var(--gut) + 190px); width: 300px; background: var(--c1); border: 1px solid var(--line); border-radius: 6px; padding: 16px 18px; font-size: 13px; backdrop-filter: blur(6px); cursor: pointer; transition: border-color .25s; }
.peek:hover { border-color: var(--lime); }
.peek:empty { display: none; }
.peek-l { left: var(--gut); }
.peek-r { right: var(--gut); }
.peek h4 { margin: 0 0 12px; font-size: 12px; font-weight: 500; color: var(--muted); display: flex; justify-content: space-between; }
.peek .coin { display: flex; align-items: center; gap: 10px; }
.peek .coin b { font-size: 16px; }
.peek p { margin: 10px 0 0; color: var(--c2); line-height: 1.45; }
.peek .pk-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.peek .pk-nums span { display: block; color: var(--muted); font-family: var(--sans); font-size: 11px; }
.peek .bs-bar { margin-top: 12px; }
@media (max-width: 1240px) { .peek { display: none; } }
@media (max-width: 720px) {
  .hero::after { background: radial-gradient(ellipse 95% 42% at 50% 62%, var(--c38), var(--c7) 85%), linear-gradient(to bottom, var(--c7) 55%, var(--ink) 100%); }
}

/* board, feed and record are real tables laid out as grids */
.tbl { width: 100%; border-collapse: collapse; display: block; }
.tbl > thead, .tbl > tbody { display: block; }
.tbl th { font-weight: 400; text-align: left; }
.tbl td.empty { display: block; padding: 22px 18px; color: var(--muted); }
.sig > td { display: block; }
.empty-flag { color: var(--c39); font-size: 12px; }
.sig-r .res, .count, .stack-text b, .pk-nums .res { font-family: var(--sans); }

.btn:active, .seg button:active, .chip:active, .star:active, .switch:active, .peek:active { transform: translateY(1px); }
.seg button:disabled, .chip:disabled, .star:disabled, .switch:disabled, select:disabled { opacity: .5; cursor: not-allowed; }
