:root {
  --bg: #0b0b0b;
  --surface: #121212;
  --surface-2: #181818;
  --line: #232323;
  --line-2: #3a3a3a;
  --ink: #f2f2f2;
  --ink-2: #bdbdbd;
  --muted: #8a8a8a;
  --green: #7ee0a2;
  --green-2: #5fc888;
  --green-ink: #0b1a10;
  --pink: #ef4f6f;
  --sans: 'Geist', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Geist Mono', ui-monospace, Menlo, monospace;
  --wrap: 1200px;
  --t1: 12px; --t2: 13px; --t3: 15px; --t4: 17px; --t5: 22px; --t6: 28px; --t7: 40px; --t8: 64px; --t9: 88px;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; color: var(--ink); background: var(--bg); font: 400 var(--t3)/1.5 var(--sans); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, ul, table { margin: 0; }
ul { padding: 0; list-style: none; }
canvas { display: block; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.mono { font-family: var(--mono); font-size: var(--t2); }
.muted { color: var(--muted); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

/* top */
.top { position: sticky; top: 0; z-index: 5; background: rgba(11,11,11,.82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 32px; height: 64px; }
.mark { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: var(--t5); letter-spacing: -0.03em; }
.mark i { width: 14px; height: 14px; border-radius: 3px; background: var(--green); }
.top nav { display: flex; gap: 24px; font-size: var(--t3); font-weight: 500; color: var(--muted); }
.top nav a:hover, .top nav a.on { color: var(--ink); }
.top .spacer { flex: 1; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 10px; font-size: var(--t3); font-weight: 700; border: 1px solid var(--green-2); border-bottom-width: 2px; background: var(--green); color: var(--green-ink); white-space: nowrap; }
.btn:hover { background: #8fe6ae; }
.btn:active { border-bottom-width: 1px; transform: translateY(1px); }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); border-bottom-width: 1px; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.sm { min-height: 36px; padding: 0 14px; font-size: var(--t2); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.done { background: var(--surface-2); color: var(--green); border-color: var(--line-2); }
.addr { font-family: var(--mono); font-size: var(--t2); color: var(--muted); }
.logo { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 1px solid var(--line-2); color: #111; flex: none; }
.logo svg { width: 55%; height: 55%; }
.logo.lg { width: 44px; height: 44px; }
.logo.you { background: var(--green); color: var(--green-ink); border-color: var(--green); font: 800 12px var(--mono); }

/* hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); min-height: 760px; }
.hero canvas.scene { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; image-rendering: crisp-edges; }
.hero .wrap { position: relative; z-index: 2; min-height: 760px; display: grid; grid-template-columns: 6fr 6fr; align-items: center; padding-top: 48px; padding-bottom: 48px; }
.hero h1 { font-size: clamp(44px, 5.4vw, 72px); line-height: .98; letter-spacing: -0.045em; font-weight: 800; text-shadow: 0 2px 20px rgba(0,0,0,.8); }
.hero .lede { margin-top: 24px; font-size: var(--t4); letter-spacing: -0.01em; line-height: 1.5; max-width: 44ch; color: #d8d8d8; text-shadow: 0 1px 10px rgba(0,0,0,.8); }
.hero .cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero .stats { margin-top: 32px; font: 500 var(--t2) var(--mono); color: var(--muted); }
.nodes { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.node { position: absolute; left: 0; top: 0; width: 56px; height: 56px; margin: -28px 0 0 -28px; transition: transform .125s steps(1); border-radius: 50%; border: 2px solid #c8c8c8; background: rgba(14,14,14,.85); display: grid; place-items: center; color: #fff; box-shadow: inset -5px -5px 0 rgba(255,255,255,.07), 0 0 0 4px rgba(11,11,11,.6); }
.node svg { width: 26px; height: 26px; }
.moon { position: absolute; transform: translate(-50%, 0); }
.hero .last { margin-top: 12px; font: 500 var(--t2) var(--mono); color: var(--ink-2); }
.hero .last .side { font-weight: 700; }

/* sections */
.sec { padding: 96px 0 0; }
.sec:last-child { padding-bottom: 96px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.sec-head h2 { font-size: var(--t6); letter-spacing: -0.03em; font-weight: 800; }
.sec-head p { color: var(--muted); font-size: var(--t3); }
.sec-head a { color: var(--ink); font-weight: 600; }
.sec-head a:hover { text-decoration: underline; text-underline-offset: 3px; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.acard, .card, .empty { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.acard { display: flex; flex-direction: column; padding: 24px; }
a.acard:hover, .card.hover:hover { border-color: var(--line-2); }
.acard .id { display: flex; align-items: center; gap: 8px; }
.acard .id > div:first-child { flex: 1; min-width: 0; }
.acard .id b { display: block; font-size: var(--t5); font-weight: 800; letter-spacing: -0.03em; }
.acard .id small { display: block; font-size: var(--t2); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acard .nums { display: flex; justify-content: space-between; gap: 16px; margin-top: 20px; }
.acard .nums span { display: block; font-size: var(--t1); color: var(--muted); }
.acard .nums b { display: block; margin-top: 2px; font-size: var(--t5); font-weight: 800; letter-spacing: -0.03em; }
.acard .nums .r { text-align: right; }
.bar { margin-top: 16px; }
.bar div { display: flex; justify-content: space-between; font-size: var(--t1); color: var(--muted); }
.bar div b { color: var(--ink); font-weight: 600; }
.bar i { display: block; margin-top: 6px; height: 4px; border-radius: 2px; background: var(--line-2); overflow: hidden; }
.bar i b { display: block; height: 100%; background: var(--green); }
.acard .foot { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; font-size: var(--t1); color: var(--muted); }
.cols { display: grid; grid-template-columns: repeat(3, 1fr); }
.cols > div { padding: 8px 32px 8px 0; }
.cols > div + div { border-left: 1px solid var(--line); padding-left: 32px; }
.cols .n { font: 500 var(--t2) var(--mono); color: var(--green); }
.cols h3 { margin-top: 12px; font-size: var(--t5); font-weight: 800; letter-spacing: -0.03em; }
.cols p { margin-top: 8px; color: var(--ink-2); font-size: var(--t3); max-width: 36ch; }

/* chips, sides */
.chain { display: inline-block; padding: 1px 7px; border-radius: 6px; font: 600 11px/1.6 var(--mono); letter-spacing: .02em; border: 1px solid currentColor; }
.chain.rh { color: #8fc1ff; } .chain.bnb { color: #f0c94a; } .chain.sol { color: #c39cff; }
.side { font-weight: 700; }
.side.buy, .up { color: var(--green); } .side.sell, .down { color: var(--pink); }

/* app pages */
#view.in { animation: fade .12s ease-out; }
@keyframes fade { from { opacity: 0; } }
.page { padding: 48px 0 96px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.page-head h1 { font-size: var(--t7); font-weight: 800; letter-spacing: -0.03em; }
.page-head p { margin-top: 8px; color: var(--muted); max-width: 60ch; }
.tabs { display: flex; gap: 4px; margin-bottom: 16px; }
.tabs a { padding: 6px 12px; border-radius: 8px; font-size: var(--t2); font-weight: 600; color: var(--muted); }
.tabs a:hover { color: var(--ink); }
.tabs a.on { background: var(--surface-2); color: var(--ink); }
.tk { display: flex; align-items: center; gap: 10px; }
.tk b { display: block; font-weight: 700; }
.tk small { display: block; color: var(--muted); font-size: var(--t2); }
.tbl { overflow: auto; max-height: 720px; }
table { width: 100%; border-collapse: separate; border-spacing: 0; }
th, td { padding: 14px 12px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
th { position: sticky; top: 0; z-index: 1; background: var(--bg); font-size: var(--t1); font-weight: 500; color: var(--muted); border-bottom: 1px solid var(--line-2); }
.card th { background: var(--surface); }
th:first-child, td:first-child { padding-left: 0; }
th:last-child, td:last-child { padding-right: 0; }
td.r, th.r { text-align: right; }
td.mono, td.r.muted { white-space: nowrap; }
tr.link { cursor: pointer; }
tr.link:hover td { background: var(--surface); }
tr.new td { animation: arrive .6s steps(3); }
@keyframes arrive { from { background: rgba(126,224,162,.14); } }
.tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: var(--t1); font-weight: 600; background: var(--surface-2); color: var(--muted); }
.split { display: grid; grid-template-columns: 7fr 5fr; gap: 24px; align-items: start; }
.split > * { min-width: 0; }
.card { padding: 24px; }
.card + .card { margin-top: 16px; }
.card h2 { font-size: var(--t2); font-weight: 500; color: var(--muted); }
.card .big { margin-top: 6px; font-size: var(--t7); font-weight: 800; letter-spacing: -0.03em; }
.card .sub { margin-top: 8px; color: var(--muted); font-size: var(--t2); }
.kv { margin-top: 16px; }
.kv div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: var(--t3); }
.kv span { color: var(--muted); }
.kv b { font-weight: 600; text-align: right; }
.kv .tk { gap: 8px; }
.field { margin-top: 14px; }
.field label { display: block; font-size: var(--t2); color: var(--muted); margin-bottom: 6px; }
.field .in { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg); }
.field .in:focus-within { border-color: var(--green); }
.field input { flex: 1; min-width: 0; min-height: 44px; padding: 0 12px; border: 0; background: transparent; font: 600 var(--t3) var(--mono); color: var(--ink); outline: none; }
.field .in span { padding: 0 12px; font: 500 var(--t2) var(--mono); color: var(--muted); }
.err { margin-top: 6px; font-size: var(--t2); color: var(--pink); }
.seg { display: flex; margin-top: 12px; padding: 3px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg); }
.seg button { flex: 1; min-height: 38px; border-radius: 7px; background: transparent; border: 0; font-weight: 700; color: var(--muted); }
.seg button.on { background: var(--surface-2); color: var(--ink); box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.total { display: flex; justify-content: space-between; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: var(--t2); }
.total b { font-family: var(--mono); font-size: var(--t3); }
.card .btn.full { width: 100%; margin-top: 14px; }
.note { margin-top: 12px; font-size: var(--t2); color: var(--muted); }
.why { max-width: 30ch; font-size: var(--t2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumb { font-size: var(--t2); color: var(--muted); margin-bottom: 16px; }
.crumb a:hover { color: var(--ink); }
.head-row { display: flex; align-items: center; gap: 14px; }
.head-row h1 { font-size: var(--t6); font-weight: 800; letter-spacing: -0.03em; }
.head-row .spark { margin-left: auto; }
.spark { width: 120px; height: 32px; image-rendering: pixelated; }
.h2 { font-size: var(--t5); font-weight: 800; letter-spacing: -0.03em; }
.prose { max-width: 66ch; }
.prose h2 { font-size: var(--t4); font-weight: 800; margin: 32px 0 8px; }
.prose h2:first-child { margin-top: 0; }
.prose p + p { margin-top: 10px; }
.prose p { color: var(--ink-2); }
.empty { padding: 32px; color: var(--muted); }
.empty a { color: var(--ink); font-weight: 600; }

footer { border-top: 1px solid var(--line); padding: 48px 0 64px; font-size: var(--t2); color: var(--muted); }
footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
footer b { display: block; color: var(--ink); font-size: var(--t3); margin-bottom: 8px; }
footer a { display: block; color: var(--ink-2); padding: 2px 0; }
footer a:hover { color: var(--ink); }
footer p { max-width: 40ch; }

@media (prefers-reduced-motion: reduce) { .node { transition: none; } #view.in { animation: none; } tr.new td { animation: none; } }
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .nodes { display: none; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .cols { grid-template-columns: 1fr; }
  .cols > div + div { border-left: 0; border-top: 1px solid var(--line); padding: 24px 0 8px; }
  .cols > div { padding-right: 0; }
  .split { grid-template-columns: 1fr; }
  .hide-m { display: none; }
  footer .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .top .wrap { flex-wrap: wrap; height: auto; padding: 12px 20px; gap: 8px; }
  .top nav { order: 3; width: 100%; gap: 16px; font-size: var(--t2); }
  .hero, .hero .wrap { min-height: 0; }
  .sec { padding-top: 64px; }
  .sec:last-child { padding-bottom: 64px; }
  .cards { grid-template-columns: 1fr; }
  .sec-head, .page-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  th, td { padding: 12px 8px; }
}

/* nodes as UI */
.nodes { pointer-events: none; }
.node { pointer-events: auto; cursor: pointer; }
.node:hover, .node.hot { border-color: var(--green); box-shadow: inset -5px -5px 0 rgba(255,255,255,.07), 0 0 0 4px rgba(126,224,162,.25); }
.node.pulse { animation: pulse .7s steps(3); }
@keyframes pulse { 0% { scale: 1; } 40% { scale: 1.18; } 100% { scale: 1; } }
.node .lbl { position: absolute; left: 50%; top: -14px; transform: translate(-50%, -100%); padding: 3px 8px; border-radius: 6px; background: #0e0e0e; border: 1px solid var(--line-2); font: 600 11px/1.4 var(--mono); color: var(--ink); white-space: nowrap; opacity: 0; }
.node .lbl.on { opacity: 1; animation: labelin .3s steps(3); }
.node .lbl.buy { color: var(--green); border-color: rgba(126,224,162,.5); }
.node .lbl.sell { color: var(--pink); border-color: rgba(239,79,111,.5); }
.node .lbl.launch { color: #ffd27a; border-color: rgba(255,210,122,.5); }
@keyframes labelin { from { opacity: 0; transform: translate(-50%, -80%); } }
.moon { pointer-events: auto; }
.moon:hover .chain { background: rgba(255,255,255,.06); }
.tip { position: absolute; left: 0; top: 0; z-index: 3; width: 200px; padding: 12px 14px; border-radius: 10px; background: #0e0e0e; border: 1px solid var(--line-2); box-shadow: 0 8px 30px rgba(0,0,0,.6); margin-left: 40px; font-size: var(--t2); }
.tip > b { display: block; font-size: var(--t3); }
.tip > span { display: block; color: var(--muted); margin-bottom: 8px; }
.tip div { display: flex; justify-content: space-between; padding: 4px 0; border-top: 1px solid var(--line); }
.tip div span { color: var(--muted); }
.walletpill { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); font: 500 var(--t2) var(--mono); }
.walletpill i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

/* home: live block, launch rows, chain cards */
.live { display: grid; grid-template-columns: 7fr 5fr; gap: 32px; align-items: start; }
.live > * { min-width: 0; }
.llist { border-top: 1px solid var(--line-2); }
.lrow { display: grid; grid-template-columns: 28px 1fr auto 40px 84px; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.lrow:hover { background: var(--surface); }
.lrow .t { min-width: 0; }
.lrow .t b { display: block; font-weight: 700; }
.lrow .t small { display: block; font-size: var(--t1); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lrow .n { text-align: right; }
.lrow .n b { display: block; font-weight: 700; }
.lrow .n small { display: block; height: 3px; margin-top: 6px; border-radius: 2px; background: var(--line-2); overflow: hidden; }
.lrow .n small i { display: block; height: 100%; background: var(--green); }
.lrow.new { animation: arrive .6s steps(3); }
.spark.sm { width: 40px; height: 12px; }
.chains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.chaincard { display: block; padding: 20px 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.chaincard:hover { border-color: var(--line-2); }
.chaincard .row1 { display: flex; align-items: center; gap: 10px; }
.chaincard .row1 b { font-weight: 700; }
.chaincard .nums { display: flex; gap: 24px; margin-top: 16px; }
.chaincard .nums span { display: block; font-size: var(--t1); color: var(--muted); }
.chaincard .nums b { display: block; margin-top: 2px; font-size: var(--t5); font-weight: 800; letter-spacing: -0.03em; }
.chaincard .nums b small { font-size: var(--t2); font-weight: 500; }
.howline p { max-width: 70ch; color: var(--ink-2); font-size: var(--t4); line-height: 1.5; }
.howline a { color: var(--ink); font-weight: 600; }
.tabrow { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 960px) { .live { grid-template-columns: 1fr; } .chains { grid-template-columns: 1fr; } }
.hero .wrap { pointer-events: none; }
.hero .wrap > * { pointer-events: auto; }
.nodes { z-index: 3; }
.live { grid-template-columns: 3fr 2fr; }
.tk b { white-space: nowrap; }
.tip.flip { margin-left: -240px; }
