/* GRABBY — Cipher-style: charcoal, blueprint hairlines with nodes, light grotesk, cinematic 3D. */
@font-face { font-family: 'Manrope'; src: url(/fonts/manrope-normal-latin.woff2) format('woff2'); font-weight: 200 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; src: url(/fonts/manrope-normal-latin-ext.woff2) format('woff2'); font-weight: 200 800; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #0c0e10;
  --bg-2: #111417;
  --card: #15181b;
  --card-2: #1b1f23;
  --ink: #f1f2f3;
  --ink-2: #b8bcc1;
  --muted: #7c838b;
  --faint: #4a5058;
  --line: rgba(120, 132, 146, .26);
  --line-2: rgba(150, 162, 176, .42);
  --node: #5f6873;
  --btn: #2a2e33;
  --btn-hi: #383d43;
  --btn-ink: #e9ebed;
  --accent: #e9ebed;
  --kraft: #c9ccd0;
  --up: #7fa6e6;
  --down: #f06a5c;
  --gut: 24px;
  --head: 90px;
  --cell: 232px;
  --sans: 'Manrope', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --serif: var(--sans);
  --h-d3: #8a2a22; --h-d2: #a6392f; --h-d1: #5b302c; --h-0: #262a2f; --h-u1: #263a57; --h-u2: #2f5590; --h-u3: #4377c9;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 300 15px/1.55 var(--sans); letter-spacing: -.003em; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input { font: inherit; color: inherit; }
img { display: block; }
b, strong { font-weight: 500; }
.muted { color: var(--muted); }
.up { color: var(--up); }
.down { color: var(--down); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- blueprint frame ---------- */
/* Page-long vertical rails at the gutters, like a technical drawing. */
body::before, body::after { content: ''; position: fixed; top: 0; bottom: 0; width: 1px; background: var(--line); z-index: 1; pointer-events: none; }
body::before { left: var(--gut); }
body::after { right: var(--gut); }
.hl { position: relative; border-top: 1px solid var(--line); }
.hl::before, .hl::after, .node { content: ''; position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--node); transform: translate(-50%, -50%); z-index: 3; pointer-events: none; }
.hl::before { left: var(--gut); top: -.5px; }
.hl::after { left: calc(100% - var(--gut)); top: -.5px; }
.bp { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.bp i { position: absolute; background: var(--line); }
.bp i.v { top: 0; bottom: 0; width: 1px; }
.bp i.h { left: 0; right: 0; height: 1px; }
.bp i.n { width: 7px; height: 7px; border-radius: 50%; background: var(--node); transform: translate(-50%, -50%); }
.bp i.d { height: 1px; transform-origin: 0 0; }
.wrap { padding: 0 var(--gut); position: relative; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 4px; background: var(--btn); color: var(--btn-ink); font-size: 14px; font-weight: 400; white-space: nowrap; transition: background .2s, color .2s; }
.btn:hover { background: var(--btn-hi); }
.btn svg { width: 15px; height: 15px; flex: none; }
.btn[disabled] { opacity: .4; pointer-events: none; }
.btn.ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
.btn.ghost:hover { background: var(--btn); }
.btn.light { background: #e9ebed; color: #0c0e10; }
.btn.light:hover { background: #fff; }
.btn.lg { height: 52px; font-size: 16px; padding: 0 24px; }
.btn.sm { height: 34px; font-size: 13px; padding: 0 14px; }
.btn.block { width: 100%; }
.btn.caps, .btn.kraft { background: var(--btn); color: var(--btn-ink); }
.pill-o, .pill-w { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 20px; border-radius: 4px; background: var(--btn); color: var(--btn-ink); font-size: 14px; transition: background .2s; white-space: nowrap; }
.pill-o:hover, .pill-w:hover { background: var(--btn-hi); }
.pill-w { background: #e9ebed; color: #0c0e10; }
.pill-w:hover { background: #fff; }
.pill-o svg, .pill-w svg { width: 15px; height: 15px; }
.pill-o.sm { height: 34px; font-size: 13px; padding: 0 14px; }
.icon-btn { width: 40px; height: 40px; border-radius: 4px; display: grid; place-items: center; background: var(--btn); transition: background .2s; }
.icon-btn:hover { background: var(--btn-hi); }
.icon-btn svg { width: 16px; height: 16px; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 4px; font-size: 12px; background: var(--btn); color: var(--btn-ink); }
.pill.dark { background: rgba(12,14,16,.8); }
.pill.light { background: rgba(233,235,237,.92); color: #0c0e10; }
.lbl { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); letter-spacing: .02em; }
.lbl::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-2); }

/* ---------- header ---------- */
.nav { position: sticky; top: 0; z-index: 40; height: var(--head); display: flex; align-items: center; background: rgba(12,14,16,.72); backdrop-filter: blur(14px) saturate(1.1); border-bottom: 1px solid var(--line); }
.nav::before, .nav::after { content: ''; position: absolute; bottom: -4px; width: 7px; height: 7px; border-radius: 50%; background: var(--node); transform: translateX(-50%); z-index: 2; }
.nav::before { left: var(--gut); }
.nav::after { left: calc(100% - var(--gut)); }
.nav .logo-cell { height: 100%; width: calc(var(--gut) + var(--cell)); padding-left: calc(var(--gut) + 24px); display: flex; align-items: center; gap: 10px; border-right: 1px solid var(--line); font-size: 23px; font-weight: 400; letter-spacing: -.02em; flex: none; position: relative; }
.nav .logo-cell::after { content: ''; position: absolute; right: -4px; bottom: -4px; width: 7px; height: 7px; border-radius: 50%; background: var(--node); }
.nav .logo-cell .mark { width: 38px; height: 38px; }
.nav .ca-cell { flex: 1; min-width: 0; height: 100%; display: flex; align-items: center; padding: 0 24px; }
.nav .act { height: 100%; display: flex; align-items: center; gap: 8px; padding: 0 calc(var(--gut) + 24px) 0 24px; border-left: 1px solid var(--line); position: relative; }
.nav .act::before { content: ''; position: absolute; left: -4px; bottom: -4px; width: 7px; height: 7px; border-radius: 50%; background: var(--node); }
.ca-chip { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }
.ca-chip b { color: var(--ink-2); font-weight: 400; }
.ca-chip[data-live="1"] { cursor: pointer; }
.ca-chip svg { width: 13px; height: 13px; }
.mark { width: 36px; height: 36px; display: block; }
.ca-box { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border-radius: 4px; background: rgba(42,46,51,.7); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); white-space: nowrap; transition: background .2s, box-shadow .2s; max-width: 100%; }
.ca-box:hover { background: var(--btn); box-shadow: inset 0 0 0 1px var(--line-2); }
.ca-box .k { font-size: 12px; color: var(--muted); }
.ca-box .v { font-size: 13px; font-variant-numeric: tabular-nums; letter-spacing: .01em; overflow: hidden; text-overflow: ellipsis; }
.ca-box svg { width: 14px; height: 14px; color: var(--ink-2); flex: none; }
.ca-strip { display: none; }
.nav .act .soc { flex: none; }
.foot .foot-ca { margin-top: 14px; }
.foot .acts { gap: 10px; }
.live-dot { display: inline-flex; align-items: center; gap: 8px; }
.live-dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #e9ebed; box-shadow: 0 0 0 3px rgba(233,235,237,.15); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px transparent; } }

/* ---------- home hero ---------- */
.hero { position: relative; height: calc(100vh - var(--head)); min-height: 640px; max-height: 1000px; overflow: hidden; background: #0c0e10; }
.hero canvas { z-index: 0; }
.hero .shade { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(12,14,16,.85) 0%, rgba(12,14,16,.35) 38%, rgba(12,14,16,0) 60%), linear-gradient(0deg, rgba(12,14,16,.85) 0%, rgba(12,14,16,0) 22%); }
.hero h1 { position: absolute; z-index: 4; left: calc(var(--gut) + var(--cell) + 24px); bottom: calc(36% + 30px); margin: 0; font-size: clamp(46px, 5.6vw, 84px); font-weight: 300; line-height: 1; letter-spacing: -.035em; pointer-events: none; }
.hero .lede { position: absolute; z-index: 4; left: calc(var(--gut) + var(--cell) + 24px); bottom: calc(36% - 70px); max-width: 420px; color: var(--ink-2); font-size: 16px; margin: 0; pointer-events: none; }
.hero .cta { position: absolute; z-index: 4; left: calc(var(--gut) + var(--cell) + 24px); bottom: calc(36% - 150px); display: flex; gap: 10px; }
.hero .cta .btn { height: 50px; padding: 0 24px; font-size: 15px; }
.hero .trust { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; height: 90px; display: flex; align-items: center; }
.hero .trust .t-lbl { width: calc(var(--gut) + var(--cell)); padding-left: calc(var(--gut) + 24px); font-size: 14px; color: var(--ink-2); flex: none; }
.hero .trust .t-row { display: flex; align-items: center; gap: 38px; padding-left: 24px; overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, #000 85%, transparent); }
.hero .trust a { display: inline-flex; align-items: center; gap: 9px; font-size: 19px; font-weight: 500; letter-spacing: -.02em; color: #eef0f2; white-space: nowrap; opacity: .92; transition: opacity .2s; }
.hero .trust a:hover { opacity: 1; }
.hero .trust img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.hero .feat { position: absolute; z-index: 4; right: calc(var(--gut) + 24px); bottom: 112px; text-align: right; font-size: 13px; color: var(--ink-2); transition: opacity .4s; }
.hero .feat b { display: block; font-size: 22px; font-weight: 400; color: #fff; letter-spacing: -.02em; }
.ctip { position: fixed; z-index: 50; pointer-events: none; padding: 8px 12px; border-radius: 4px; background: rgba(21,24,27,.95); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 13px; opacity: 0; transition: opacity .15s; white-space: nowrap; }
.ctip.on { opacity: 1; }

/* intro grid */
.intro { position: relative; height: 640px; }
.intro p { position: absolute; left: 50%; bottom: 48px; margin: 0 0 0 48px; max-width: 500px; font-size: 19px; line-height: 1.5; color: var(--ink-2); }
.intro p b { color: #fff; font-weight: 400; }

/* hero side rail (vertical nav in the left column) */
.hrail { position: absolute; z-index: 5; left: var(--gut); width: var(--cell); top: 0; bottom: 90px; display: flex; flex-direction: column; padding: 18px 16px; }
.hrail a { display: flex; align-items: center; gap: 14px; height: 54px; padding: 0 14px; border-radius: 4px; font-size: 14px; color: var(--ink-2); transition: background .2s, color .2s; position: relative; }
.hrail a svg { width: 19px; height: 19px; flex: none; color: var(--muted); transition: color .2s; }
.hrail a:hover { background: rgba(42,46,51,.55); color: #fff; }
.hrail a:hover svg { color: #fff; }
.hrail a.on { background: rgba(42,46,51,.85); color: #fff; box-shadow: inset 0 0 0 1px var(--line-2); }
.hrail a.on svg { color: #fff; }
.hrail a .n { margin-left: auto; font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }
.hrail .rfoot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding: 14px 14px 4px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.hrail .rfoot a { height: auto; padding: 0; gap: 8px; font-size: 12.5px; color: var(--muted); }
.hrail .rfoot a:hover { background: none; color: #fff; }
.hrail .rfoot svg { width: 15px; height: 15px; }

/* intro cells, filled with live data */
.intro .idx { position: absolute; left: calc(var(--gut) + 18px); font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.intro .idx b { display: block; font-size: 22px; font-weight: 300; color: var(--ink-2); letter-spacing: -.02em; }
.intro .c-tape { position: absolute; left: calc(var(--gut) + 116px + 30px); width: calc(50% - var(--gut) - 116px - 60px); top: 30px; height: calc(52% - 56px); display: flex; flex-direction: column; }
.intro .c-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 12.5px; color: var(--muted); margin-bottom: 12px; }
.intro .c-head b { font-weight: 400; color: var(--ink-2); }
.tape { flex: 1; overflow: hidden; mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent); }
.tape-in { animation: tapeUp 40s linear infinite; }
.tape:hover .tape-in { animation-play-state: paused; }
@keyframes tapeUp { to { transform: translateY(-50%); } }
.trow { display: grid; grid-template-columns: 26px 1fr 90px 40px 74px; align-items: center; gap: 12px; height: 46px; border-bottom: 1px solid var(--line); font-size: 14px; cursor: pointer; }
.trow:hover { background: rgba(255,255,255,.02); }
.trow img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.trow:hover img { filter: none; }
.trow .s { font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trow .p { text-align: right; color: var(--ink-2); font-variant-numeric: tabular-nums; font-size: 13px; }
.trow .g { position: relative; width: 40px; height: 26px; border-radius: 2px; overflow: hidden; background: #15181b; }
.trow .g .lv { position: absolute; left: 0; right: 0; height: var(--lv); }
.trow .g[data-dir="up"] .lv { bottom: 0; background: rgba(67,119,201,.9); box-shadow: inset 0 1px 0 rgba(170,200,255,.95); }
.trow .g[data-dir="down"] .lv { top: 0; background: rgba(200,67,58,.9); box-shadow: inset 0 -1px 0 rgba(255,160,150,.95); }
.trow .c { text-align: right; font-variant-numeric: tabular-nums; font-size: 13px; }
.intro .c-stat { position: absolute; left: calc(50% + 46px); right: calc(var(--gut) + 46px); top: 30px; height: calc(52% - 56px); display: flex; flex-direction: column; }
.intro .c-stat .big { font-size: clamp(56px, 6vw, 96px); font-weight: 300; letter-spacing: -.05em; line-height: 1; margin-top: auto; display: flex; align-items: baseline; }
.intro .c-stat .big small { font-size: 26px; letter-spacing: 0; margin-left: 8px; color: var(--ink-2); }
.intro .c-stat .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.intro .c-stat .row2 small { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }
.intro .c-stat .row2 b { font-size: 22px; font-weight: 300; letter-spacing: -.02em; }
.intro .c-stat .breadth .bar { height: 4px; margin-top: 10px; }
.intro .c-block { position: absolute; left: calc(var(--gut) + 116px + 30px); top: calc(52% + 30px); }
.intro .c-block small { display: block; font-size: 12.5px; color: var(--muted); }
.intro .c-block b { font-size: 34px; font-weight: 300; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.intro .c-block span { font-size: 12.5px; color: var(--ink-2); }

/* scroll-expanding map */
.expand { position: relative; height: 260vh; }
.expand .stick { position: sticky; top: var(--head); height: calc(100vh - var(--head)); overflow: hidden; }
.expand .reveal-box { position: absolute; inset: 0; will-change: clip-path; }
.expand .hm { position: absolute; top: var(--mtop, 120px); left: var(--gut); right: var(--gut); bottom: 0; height: auto; border: 0; }
.expand .mtop { position: absolute; z-index: 6; top: 0; left: var(--gut); right: var(--gut); padding: 14px 16px 12px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); border-bottom: 1px solid var(--line); opacity: 0; pointer-events: none; transition: opacity .4s; }
.expand .mtop.on { opacity: 1; pointer-events: auto; }
.expand .tools { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.bagbar { display: flex; align-items: center; gap: 12px; min-width: 0; }
.bagbar .bb-l { flex: none; font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.bagbar .bb-row { flex: 1; min-width: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.bagbar .bb-row::-webkit-scrollbar { display: none; }
.bagbar .bb-row button { flex: none; height: 40px; padding: 0 14px; border-radius: 4px; display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--ink-2); background: rgba(42,46,51,.55); box-shadow: inset 0 0 0 1px var(--line); transition: background .2s, color .2s; }
.bagbar .bb-row button:hover { color: #fff; background: rgba(42,46,51,.95); }
.bagbar .bb-row button.on { background: #e9ebed; color: #0c0e10; box-shadow: none; }
.bagbar .bb-row button .n { font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }
.bagbar .bb-row button.on .n { color: #5f6873; }
.bagbar .st { display: inline-flex; margin-left: -4px; }
.bagbar .st img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; margin-left: -7px; box-shadow: 0 0 0 2px #1d2024; }
.bagbar .st img:first-child { margin-left: 0; }
.bagbar button.on .st img { box-shadow: 0 0 0 2px #e9ebed; filter: none; }
.bagbar .bb-go { flex: none; height: 40px; font-size: 13.5px; padding: 0 16px; }
/* caption beside the small map; it slides away as the map grows (home.js) */
.expand .over { position: absolute; z-index: 5; pointer-events: none; left: calc(50% + 48px); right: calc(var(--gut) + 24px); top: 22%; bottom: 30%; display: flex; flex-direction: column; justify-content: space-between; will-change: transform, opacity; }
.expand .over h2 { font-size: clamp(24px, 2.3vw, 36px); font-weight: 300; letter-spacing: -.02em; line-height: 1.15; margin: 0; max-width: 560px; }
.expand .stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(233,235,237,.5); border-bottom: 1px solid rgba(233,235,237,.5); position: relative; }
.expand .stats > div { padding: 18px 16px 20px; border-right: 1px solid rgba(233,235,237,.5); position: relative; }
.expand .stats > div:last-child { border-right: 0; }
.expand .stats > div::before { content: ''; position: absolute; left: -4px; top: -4px; width: 7px; height: 7px; border-radius: 50%; background: #e9ebed; }
.expand .stats > div:last-child::after { content: ''; position: absolute; right: -4px; top: -4px; width: 7px; height: 7px; border-radius: 50%; background: #e9ebed; }
.expand .stats b { font-size: clamp(36px, 3.6vw, 60px); font-weight: 300; letter-spacing: -.04em; line-height: 1; display: flex; align-items: baseline; }
.expand .stats b small { font-size: 18px; margin-left: 6px; letter-spacing: 0; font-weight: 300; }
.expand .stats > div > span { display: block; margin-top: 10px; font-size: 13px; color: var(--ink-2); }

/* odometer */
.odo { display: inline-flex; overflow: hidden; height: 1em; line-height: 1; }
.odo .col { display: inline-flex; flex-direction: column; text-align: center; font-variant-numeric: tabular-nums; transition: transform 1.6s cubic-bezier(.2, .8, .2, 1); }
.odo .col span { height: 1em; display: block; }
.odo .fx { display: inline-block; }

/* sections */
.sec { position: relative; }
.sec-row { display: grid; grid-template-columns: calc(var(--gut) + var(--cell)) 1fr; }
.sec-row > .side { padding: 40px 24px 40px calc(var(--gut) + 24px); border-right: 1px solid var(--line); }
.sec-row > .side h2 { font-size: clamp(34px, 3.4vw, 48px); font-weight: 300; letter-spacing: -.03em; line-height: 1.05; margin: 14px 0 16px; }
.sec-row > .side p { color: var(--ink-2); font-size: 15px; margin: 0 0 24px; }
.sec-head { padding: 90px calc(var(--gut) + 24px) 40px; }
.sec-head h2, .h2 { font-size: clamp(34px, 3.6vw, 52px); font-weight: 300; letter-spacing: -.03em; line-height: 1.05; margin: 14px 0 0; max-width: 900px; }
.sec-head p { color: var(--ink-2); font-size: 17px; max-width: 620px; margin: 16px 0 0; }
.center { display: flex; justify-content: center; padding: 34px 0; }
.frame { position: relative; }

/* grids of cells */
.cells { display: grid; grid-template-columns: repeat(3, 1fr); }
.cells > * { border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; position: relative; }
.cells.c4 { grid-template-columns: repeat(4, 1fr); }
.cells > *::before { content: ''; position: absolute; left: -4px; top: -4px; width: 7px; height: 7px; border-radius: 50%; background: var(--node); z-index: 2; }
.bcell { display: flex; flex-direction: column; padding: 28px 24px 24px; min-height: 330px; transition: background .3s; }
.bcell:hover { background: var(--bg-2); }
.bcell .top-r { display: flex; justify-content: space-between; gap: 16px; }
.bcell .tick { font-size: 13px; color: var(--muted); margin-bottom: 18px; display: flex; gap: 12px; }
.bcell h3 { font-size: 27px; font-weight: 300; letter-spacing: -.02em; margin: 0 0 10px; }
.bcell p { color: var(--ink-2); font-size: 15px; line-height: 1.5; margin: 0; max-width: 320px; }
.ibox { width: 60px; height: 60px; flex: none; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 6px; background: var(--card); border-radius: 4px; }
.ibox img { width: 100%; aspect-ratio: 1; border-radius: 50%; object-fit: cover; }
.bcell:hover .ibox img { filter: none; }
.bcell .meta { margin-top: auto; padding-top: 30px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.bcell .ret small { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.bcell .ret strong { font-size: 42px; font-weight: 300; letter-spacing: -.04em; line-height: 1; }
.stack { display: flex; align-items: center; }
.stack img { width: 24px; height: 24px; border-radius: 50%; margin-left: -6px; box-shadow: 0 0 0 2px var(--bg); background: var(--card); object-fit: cover; }
.stack img:first-child { margin-left: 0; }
.stack span { margin-left: 8px; font-size: 12px; color: var(--muted); }
.iso-cell { padding: 34px 24px 30px; display: flex; flex-direction: column; min-height: 380px; }
.iso-cell svg.iso { width: 170px; height: 150px; margin: 10px auto 34px; display: block; color: #cfd3d8; }
.iso-cell svg.iso polygon, .iso-cell svg.iso path[fill="#fff"], .iso-cell svg.iso ellipse[fill="#fff"] { fill: #111417; }
.iso-cell svg.iso [fill="#f3f3f2"] { fill: #1b1f23; }
.iso-cell h3 { font-size: 21px; font-weight: 400; margin: auto 0 10px; letter-spacing: -.01em; }
.iso-cell p { color: var(--ink-2); font-size: 15px; line-height: 1.5; margin: 0; }
.band-c { background: var(--bg-2); text-align: center; padding: 110px 24px; }
.band-c h2 { font-size: clamp(30px, 2.6vw, 40px); font-weight: 300; letter-spacing: -.02em; margin: 0 0 14px; }
.band-c p { color: var(--ink-2); margin: 0 auto 26px; max-width: 520px; font-size: 16px; }

/* footer */
.foot { position: relative; min-height: 720px; overflow: hidden; display: flex; flex-direction: column; background: #0c0e10; }
.foot canvas { z-index: 0; }
.foot .shade { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(12,14,16,.8), rgba(12,14,16,.25) 55%, rgba(12,14,16,.55)), linear-gradient(0deg, rgba(12,14,16,.9), rgba(12,14,16,0) 30%); }
.foot .in { position: relative; z-index: 3; flex: 1; display: grid; grid-template-columns: 1.2fr 1fr; align-items: end; gap: 40px; padding: 120px calc(var(--gut) + 24px) 54px; }
.foot h2 { font-size: clamp(52px, 6vw, 92px); font-weight: 300; letter-spacing: -.045em; line-height: .98; margin: 0; }
.foot .cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 40px; font-size: 13.5px; color: var(--ink-2); align-self: center; }
.foot .cols a:hover { color: #fff; }
.foot .acts { display: flex; align-items: center; gap: 22px; margin-top: 36px; grid-column: 1 / -1; }
.foot .acts a svg { width: 18px; height: 18px; }
.foot .bar { position: relative; z-index: 3; display: flex; justify-content: space-between; gap: 20px; padding: 18px calc(var(--gut) + 24px); font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.foot.plain { min-height: 0; background: var(--bg-2); }
.foot.plain .in { padding-top: 90px; }

/* ---------- heatmap ---------- */
.hm-wrap { padding: 20px calc(var(--gut) + 20px) 24px; }
.hm-toolbar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.hm-toolbar .sp { flex: 1; }
.sel { position: relative; }
.sel > button { height: 34px; padding: 0 12px; border-radius: 4px; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; background: rgba(42,46,51,.92); backdrop-filter: blur(8px); color: var(--btn-ink); }
.sel > button svg { width: 13px; height: 13px; color: var(--muted); }
.sel > button:hover { background: var(--btn-hi); }
.menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 210px; padding: 6px; border-radius: 6px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line-2), 0 20px 40px -20px #000; z-index: 20; display: none; }
.sel.open .menu { display: block; animation: pop .16s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } }
.menu button { width: 100%; text-align: left; padding: 8px 10px; border-radius: 4px; font-size: 13.5px; display: flex; justify-content: space-between; gap: 10px; color: var(--ink-2); }
.menu button:hover { background: var(--card-2); color: #fff; }
.menu button.on { color: #fff; }
.menu button.on::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #fff; align-self: center; }
.search { position: relative; }
.search input { height: 34px; width: 200px; border-radius: 4px; border: 0; outline: 0; padding: 0 12px 0 32px; background: rgba(42,46,51,.92); font-size: 13px; transition: width .25s, box-shadow .2s; }
.search input:focus { width: 240px; box-shadow: inset 0 0 0 1px var(--line-2); }
.search svg { position: absolute; left: 11px; top: 10px; width: 14px; height: 14px; color: var(--muted); }
.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.4fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.strip > div { padding: 12px 16px; border-right: 1px solid var(--line); min-width: 0; }
.strip > div:last-child { border-right: 0; }
.strip small { display: block; color: var(--muted); font-size: 12px; }
.strip b { font-size: 22px; font-weight: 300; letter-spacing: -.02em; }
.breadth .lbls { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 7px; }
.breadth .bar { display: flex; gap: 3px; height: 4px; }
.breadth .bar i { border-radius: 2px; display: block; transition: flex .6s; }
.hm { position: relative; height: 760px; overflow: hidden; background: #0c0e10; user-select: none; }
.hm.full { position: fixed; inset: 10px; height: auto; z-index: 60; box-shadow: 0 0 0 100vmax rgba(0,0,0,.7); }
.hm .clu { position: absolute; pointer-events: none; transition: left .8s cubic-bezier(.2, .8, .2, 1), top .8s cubic-bezier(.2, .8, .2, 1), width .8s cubic-bezier(.2, .8, .2, 1), height .8s cubic-bezier(.2, .8, .2, 1); }
.hm .clu .ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed hsla(var(--h, 215), var(--s, 8%), 66%, .36); transition: opacity .3s; }
.hm .clu-l { position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%); padding: 3px 10px; border-radius: 3px; background: var(--bg); box-shadow: inset 0 0 0 1px hsla(var(--h, 215), var(--s, 8%), 66%, .4); font-size: 11.5px; color: var(--ink-2); white-space: nowrap; letter-spacing: .02em; pointer-events: auto; cursor: pointer; z-index: 4; transition: color .2s, box-shadow .2s; }
.hm .clu-l::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; background: hsl(var(--h, 215) var(--s, 8%) 62%); }
.hm .clu-l em { font-style: normal; margin-left: 7px; color: hsl(var(--h, 215) var(--s, 8%) 76%); font-variant-numeric: tabular-nums; }
.hm .clu-l:hover { color: #fff; box-shadow: inset 0 0 0 1px hsla(var(--h, 215), var(--s, 8%), 70%, .8); }
.hm.focusing .clu .ring { opacity: .35; }
/* bubbles are moved every frame by heatmap.js (transform), so no layout transitions here */
.bub { position: absolute; left: 0; top: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; will-change: transform; transition: opacity .35s, scale .25s; }
.bub-f { position: absolute; inset: 0; border-radius: 50%; transition: background .6s, box-shadow .3s; }
/* up: a glossy marble in the category colour, brighter = bigger gain */
.bub-f[data-dir="up"] { background: radial-gradient(circle at 34% 28%, hsl(var(--h) var(--s) calc(42% + var(--m) * 40%)) 0%, hsl(var(--h) var(--s) calc(27% + var(--m) * 27%)) 60%, hsl(var(--h) calc(var(--s) * .8) calc(14% + var(--m) * 15%)) 100%); box-shadow: inset 0 0 0 1px hsla(var(--h), var(--s), 82%, calc(.18 + var(--m) * .42)), inset 0 -5px 12px rgba(0,0,0,.22); }
/* down: hollows out to a ring in the same colour, emptier = bigger loss */
.bub-f[data-dir="down"] { background: hsla(var(--h), calc(var(--s) * .4), 15%, calc(.94 - var(--m) * .88)); box-shadow: inset 0 0 0 1.5px hsla(var(--h), var(--s), 64%, calc(.22 + var(--m) * .5)); }
.bub-f[data-dir="flat"] { background: hsla(var(--h), calc(var(--s) * .3), 18%, .95); box-shadow: inset 0 0 0 1px hsla(var(--h), var(--s), 64%, .2); }
.bub .bc { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; line-height: 1.1; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.45); pointer-events: none; }
.bub-f[data-dir="down"] + .bc, .bub-f[data-dir="flat"] + .bc { color: hsl(var(--h) 45% 84%); }
.bub[data-ink="dark"] .bc { color: #0c0e10; text-shadow: none; }
.bub .bi { border-radius: 50%; object-fit: cover; background: #e9ebed; margin-bottom: 4px; flex: none; box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.bub .bi:only-child { margin: 0; }
.bub .bs { font-weight: 500; white-space: nowrap; letter-spacing: -.01em; }
.bub .bv { white-space: nowrap; opacity: .85; font-variant-numeric: tabular-nums; margin-top: 1px; }
.bub:hover { z-index: 3; scale: 1.08; }
.bub:hover .bub-f { box-shadow: inset 0 0 0 1.5px #fff, 0 0 0 4px hsla(var(--h), var(--s), 70%, .25); }
.bub.dim { opacity: .1; }
.bub.hit { z-index: 2; }
.bub.hit .bub-f { box-shadow: inset 0 0 0 2px #fff, 0 0 0 4px hsla(var(--h), var(--s), 70%, .3); }
.hm-legend { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 4px; background: rgba(42,46,51,.92); font-size: 11.5px; color: var(--ink-2); }
.hm-legend .lg-t { margin-right: 4px; }
.lg-b { display: inline-flex; align-items: center; gap: 5px; }
.lg-b .bub-f { position: relative; inset: auto; display: block; width: 15px; height: 15px; --h: 38; --s: 92%; }
.lg-b em { font-style: normal; font-size: 10.5px; color: var(--ink-2); }
.tip.mono .chg b.pos { color: #fff; }
.tip.mono .chg b.neg { color: var(--muted); }
.hm-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.legend { display: flex; gap: 3px; align-items: flex-end; }
.legend span { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); }
.legend i { width: 44px; height: 5px; display: block; }
.tip { position: fixed; z-index: 80; width: 280px; padding: 14px; border-radius: 6px; pointer-events: none; background: rgba(21,24,27,.97); box-shadow: inset 0 0 0 1px var(--line-2), 0 24px 50px -24px #000; opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s; }
.tip.on { opacity: 1; transform: none; }
.tip .th { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.tip .th b { font-size: 16px; display: block; }
.tip .th small { color: var(--muted); font-size: 12.5px; }
.tip .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; font-size: 13px; }
.tip .grid span { color: var(--muted); }
.tip .grid b { text-align: right; font-weight: 400; }
.tip .chg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 10px; }
.tip .chg div { background: var(--card-2); border-radius: 4px; padding: 6px 4px; text-align: center; font-size: 11px; color: var(--muted); }
.tip .chg div b { display: block; font-size: 13px; font-weight: 400; }
.coin-ic { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; background: var(--card-2); flex: none; }
.coin-ic.sm { width: 18px; height: 18px; }
.coin-ic.lg { width: 40px; height: 40px; }
.coin-ic.xl { width: 56px; height: 56px; }

/* rows */
.list-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); cursor: pointer; }
.list-row:first-child { border-top: 0; }
.list-row .nm { flex: 1; min-width: 0; }
.list-row .nm b { display: block; font-size: 15px; font-weight: 400; }
.list-row .nm small { color: var(--muted); font-size: 12.5px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-row .vals { text-align: right; font-size: 14px; }
.list-row .vals b { display: block; font-weight: 400; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.kv span:first-child { color: var(--muted); }
.kv span:last-child { text-align: right; }

/* drawer */
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.5); backdrop-filter: blur(2px); z-index: 70; opacity: 0; pointer-events: none; transition: opacity .25s; }
.scrim.on { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); z-index: 75; overflow-y: auto; background: var(--bg-2); box-shadow: inset 1px 0 0 var(--line-2); transform: translateX(100%); transition: transform .45s cubic-bezier(.2, .8, .2, 1); padding: 28px; }
.drawer.on { transform: none; }
.drawer .x { position: absolute; top: 22px; right: 22px; }
.drawer h3 { font-size: 40px; font-weight: 300; letter-spacing: -.03em; margin: 16px 0 2px; }
.drawer .sub { color: var(--muted); font-size: 14px; }
.drawer .px { font-size: 30px; font-weight: 300; letter-spacing: -.02em; margin: 18px 0 6px; }
.drawer .desc { color: var(--ink-2); font-size: 14px; margin: 16px 0; white-space: pre-line; }
.drawer .chg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 14px 0; background: var(--line); border: 1px solid var(--line); }
.drawer .chg div { background: var(--bg-2); padding: 10px 6px; text-align: center; font-size: 11.5px; color: var(--muted); }
.drawer .chg div b { display: block; font-size: 16px; font-weight: 400; margin-top: 2px; }
.drawer .tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0; }
.drawer .acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.addr { font-size: 12.5px; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.addr:hover { color: #fff; }
.addr svg { width: 13px; height: 13px; }

/* ---------- inner pages ---------- */
.hero-g { position: relative; padding: 110px 0 0; background: radial-gradient(ellipse 60% 80% at 75% 0%, #1a1f25 0%, #0c0e10 70%); overflow: hidden; }
.hero-g .bp { z-index: 0; }
.hero-g .hrail { bottom: auto; }
.hero-g .hrail .rfoot { margin-top: 18px; }
@media (min-width: 901px) { .hero-g .hero-in { min-height: 360px; } }
.hero-in { position: relative; z-index: 2; padding: 0 calc(var(--gut) + 24px) 70px calc(var(--gut) + var(--cell) + 24px); max-width: 1200px; }
.hero-in .lbl { margin-bottom: 22px; }
.hero-in h1 { font-size: clamp(42px, 5vw, 76px); font-weight: 300; line-height: 1.02; letter-spacing: -.035em; margin: 0; }
.hero-in .sub { color: var(--ink-2); font-size: clamp(16px, 1.4vw, 19px); max-width: 600px; margin: 22px 0 28px; }
.hero-in .ul { display: inline-block; margin-top: 18px; font-size: 14px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 4px; }
.band { position: relative; z-index: 2; border-top: 1px solid var(--line); }
.band .frame { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); padding: 0 var(--gut); }
.band .frame > div { padding: 22px 24px 24px; border-left: 1px solid var(--line); position: relative; }
.band .frame > div:last-child { border-right: 1px solid var(--line); }
.band .frame > div::before { content: ''; position: absolute; left: -4px; top: -4px; width: 7px; height: 7px; border-radius: 50%; background: var(--node); }
.band b { display: block; font-size: clamp(32px, 3.4vw, 52px); font-weight: 300; letter-spacing: -.04em; line-height: 1.05; }
.band span { display: block; margin-top: 8px; font-size: 14px; color: var(--ink-2); }
.logos { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logos .frame { display: grid; grid-template-columns: repeat(var(--n, 6), 1fr); padding: 0 var(--gut); }
.logos .frame > a { height: 88px; display: flex; align-items: center; gap: 10px; border-left: 1px solid var(--line); padding: 0 20px; min-width: 0; transition: background .2s; }
.logos .frame > a:last-child { border-right: 1px solid var(--line); }
.logos .frame > a:hover { background: var(--bg-2); }
.logos img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: none; }
.logos a:hover img { filter: none; }
.logos b { font-size: 17px; font-weight: 400; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logos small { display: block; font-size: 12px; }
.logos .t { min-width: 0; }
main.page { position: relative; margin: 0 var(--gut); border-left: 1px solid var(--line); border-right: 1px solid var(--line); min-height: 30vh; }
.page-pad { padding: 40px 24px 60px; }
.bk-grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; }
.bk-grid > div:first-child { border-right: 1px solid var(--line); min-width: 0; }
.panel-in { padding: 30px 24px; }
.sec-t { font-size: 30px; font-weight: 300; letter-spacing: -.02em; margin: 0; }
.row-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.invest { position: sticky; top: calc(var(--head) + 10px); padding: 30px 24px; align-self: start; }
.invest h3 { font-size: 30px; font-weight: 300; letter-spacing: -.02em; margin: 0 0 4px; }
.amt { margin: 20px 0 10px; border-radius: 6px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); padding: 14px 16px; display: flex; align-items: center; gap: 10px; transition: box-shadow .2s; }
.amt:focus-within { box-shadow: inset 0 0 0 1px var(--line-2); }
.amt input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 32px; font-weight: 300; letter-spacing: -.02em; }
.amt .unit { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 6px; border-radius: 4px; background: var(--btn); font-size: 14px; }
.amt .unit i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #627eea; }
.amt .unit i svg { width: 12px; height: 12px; color: #fff; }
.presets { display: flex; gap: 6px; }
.presets button { flex: 1; height: 34px; border-radius: 4px; font-size: 13px; background: var(--btn); }
.presets button:hover { background: var(--btn-hi); }
.usd-hint { font-size: 12.5px; color: var(--muted); margin: 8px 4px 0; display: flex; justify-content: space-between; }
.legs { margin: 16px 0; max-height: 330px; overflow-y: auto; border-top: 1px solid var(--line); }
.leg { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.leg b { font-weight: 400; }
.leg .w { font-size: 11.5px; color: var(--muted); display: block; }
.leg .o { text-align: right; }
.leg .o small { display: block; color: var(--muted); font-size: 11px; }
.leg.err .o { color: var(--down); }
.note { font-size: 12.5px; color: var(--muted); margin: 14px 0 0; line-height: 1.55; }
.status { margin-top: 12px; padding: 12px 14px; border-radius: 4px; font-size: 13.5px; background: var(--card); display: none; }
.status.on { display: block; }
.status.bad { color: var(--down); }
.status.good { color: var(--up); }
.status a { text-decoration: underline; text-underline-offset: 3px; }
.skel { background: linear-gradient(90deg, var(--card), var(--card-2), var(--card)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 4px; color: transparent !important; }
@keyframes sk { to { background-position: -200% 0; } }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: right; font-size: 12px; font-weight: 400; color: var(--muted); padding: 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th:first-child, .tbl th:nth-child(2) { text-align: left; }
.tbl td { padding: 12px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.tbl td:first-child { text-align: left; color: var(--muted); width: 30px; }
.tbl td.coin { text-align: left; }
.tbl.grabs th:nth-child(2) { text-align: right; }
.tbl.grabs tbody tr { cursor: default; }
.tbl tbody tr { cursor: pointer; transition: background .15s; }
.tbl tbody tr:hover { background: var(--bg-2); }
.tbl .cn { display: flex; align-items: center; gap: 10px; }
.tbl .cn b { display: block; font-weight: 400; }
.tbl .cn small { color: var(--muted); font-size: 12px; max-width: 180px; overflow: hidden; text-overflow: ellipsis; display: block; }
.wbar { display: inline-flex; align-items: center; gap: 8px; }
.wbar i { display: block; height: 4px; border-radius: 2px; background: #c9ccd0; }
.wbar b { font-weight: 400; }
.tbl-wrap { overflow-x: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 5px; border-radius: 4px; background: var(--btn); font-size: 13px; cursor: pointer; }
.chip small { color: var(--muted); }
.card { background: var(--card); border-radius: 6px; }
.panel { padding: 22px; }
.stats4 { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.stats4 > div { padding: 22px 24px; border-right: 1px solid var(--line); }
.stats4 > div:last-child { border-right: 0; }
.stats4 b { font-size: 40px; font-weight: 300; letter-spacing: -.03em; display: block; line-height: 1.1; }
.stats4 small { color: var(--muted); font-size: 13px; }
.empty { padding: 90px 24px; text-align: center; color: var(--muted); }
.empty h3 { font-size: 36px; font-weight: 300; letter-spacing: -.02em; color: var(--ink); margin: 0 0 10px; }
.empty .btn, .empty .pill-o { margin-top: 16px; }
.bot-p, .fee-p { border-bottom: 1px solid var(--line); }
.st-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 12px; vertical-align: 6px; background: var(--muted); }
.st-dot.live { background: #e9ebed; box-shadow: 0 0 0 4px rgba(233,235,237,.15); animation: pulse 2.4s infinite; }
.st-dot.error, .st-dot.needs-gas { background: #f0b35a; }
.bot-note { margin: 10px 0 0; color: var(--ink-2); font-size: 14px; }
.stats4.in { margin-top: 18px; border: 1px solid var(--line); border-radius: 6px; }
.stats4.in b { font-size: 30px; }
.rules { margin: 16px 0 0; padding-left: 18px; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.bot-addr { margin-top: 12px; font-size: 13.5px; display: flex; gap: 10px; align-items: center; }
.addr-l { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.addr-l svg { width: 12px; height: 12px; }
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; border-bottom: 1px solid var(--line); }
.flow .st { padding: 36px 24px; }
.flow .st b { display: block; font-size: 24px; font-weight: 300; letter-spacing: -.02em; margin-bottom: 6px; }
.flow .st small { color: var(--muted); font-size: 14px; }
.flow .ar { display: grid; place-items: center; border-left: 1px solid var(--line); border-right: 1px solid var(--line); padding: 0 18px; color: var(--ink-2); }
.flow .ar svg { width: 22px; height: 22px; }
.doc { display: grid; grid-template-columns: var(--cell) minmax(0, 1fr); }
.toc { position: sticky; top: calc(var(--head) + 20px); align-self: start; padding: 30px 24px; }
.toc a { display: block; padding: 7px 0; color: var(--muted); font-size: 14px; }
.toc a:hover { color: #fff; }
.prose { max-width: 820px; padding: 10px 40px 80px; border-left: 1px solid var(--line); }
.prose h2 { font-size: 36px; font-weight: 300; letter-spacing: -.025em; margin: 56px 0 14px; }
.prose p, .prose li { color: var(--ink-2); font-size: 16.5px; line-height: 1.7; }
.prose b { color: #fff; font-weight: 400; }
.prose code { font-size: 13.5px; background: var(--card); padding: 2px 6px; border-radius: 4px; }
.prose .formula { font-size: 21px; padding: 18px 22px; background: var(--card); border-radius: 6px; margin: 16px 0; }
.prose .stats4 { margin: 10px 0; border: 1px solid var(--line); }
.prose .stats4 > div { padding: 16px; }
.prose .stats4 b { font-size: 30px; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); z-index: 90; padding: 11px 18px; border-radius: 4px; background: #e9ebed; color: #0c0e10; font-size: 14px; opacity: 0; transition: .25s; pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .9s, transform .9s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.art { position: relative; overflow: hidden; background: var(--card); isolation: isolate; }
.art canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs button { height: 34px; padding: 0 14px; border-radius: 4px; font-size: 13px; background: var(--btn); color: var(--ink-2); transition: background .2s, color .2s; }
.tabs button.on { background: #e9ebed; color: #0c0e10; }
.tabs .slider { display: none; }
.tabbar { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1040px) {
  .nav .ca-box .v { font-size: 12px; }
}
@media (max-width: 1100px) {
  :root { --cell: 180px; }
  .bk-grid { grid-template-columns: 1fr; }
  .bk-grid > div:first-child { border-right: 0; border-bottom: 1px solid var(--line); }
  .invest { position: static; }
  .cells.c4 { grid-template-columns: repeat(2, 1fr); }
  .foot .in { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  :root { --gut: 12px; --head: 64px; --cell: 0px; }
  .nav .logo-cell { width: auto; padding: 0 20px 0 24px; font-size: 19px; }
  .nav .ca-cell { display: none; }
  .nav .act { margin-left: auto; padding: 0 24px 0 16px; border-left: 0; }
  .nav .act::before { display: none; }
  .nav .ca-box { display: none; }
  .ca-strip { display: block; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--bg); position: relative; z-index: 3; }
  .ca-strip .ca-box { width: 100%; justify-content: space-between; gap: 8px; padding: 0 10px; }
  .ca-strip .ca-box .k { display: none; }
  .ca-strip .ca-box::before { content: 'CA'; font-size: 11px; color: var(--muted); flex: none; }
  .ca-strip .ca-box .v { font-size: clamp(10px, 3vw, 13px); letter-spacing: -.015em; overflow: visible; }
  .hero { height: calc(100svh - var(--head) - 64px); min-height: 560px; }
  .hero h1 { left: 24px; right: 24px; bottom: auto; top: 54%; font-size: 46px; }
  .hero .lede { left: 24px; right: 24px; bottom: auto; top: calc(54% + 104px); font-size: 15px; }
  .hero .trust { height: 70px; }
  .hero .trust .t-lbl { display: none; }
  .hero .trust .t-row { gap: 22px; }
  .hero .trust a { font-size: 15px; }
  .hero .feat { display: none; }
  .hrail { display: none; }
  .hero .shade { background: linear-gradient(0deg, rgba(12,14,16,.95) 0%, rgba(12,14,16,.55) 45%, rgba(12,14,16,0) 75%); }
  .intro { height: auto; padding: 40px 24px 50px; display: flex; flex-direction: column; gap: 34px; }
  .intro p { position: static; margin: 0; font-size: 17px; order: 1; }
  .intro .bp, .intro .idx { display: none; }
  .intro .c-tape, .intro .c-stat, .intro .c-block { position: static; width: auto; height: auto; }
  .intro .c-tape { height: 320px; }
  .trow { grid-template-columns: 24px 1fr 80px 36px 64px; gap: 8px; }
  .expand { height: 200vh; }
  .expand .over { left: 16px; right: 16px; top: 0; bottom: 0; padding: 18px 0 14px; }
  .expand .over h2 { font-size: 21px; max-width: none; transform: translateY(var(--ty1, 0)); }
  .expand .stats { transform: translateY(var(--ty2, 0)); }
  .expand .stats > div { padding: 10px 8px 12px; }
  .expand .stats b { font-size: 30px; }
  .expand .stats b small { font-size: 12px; margin-left: 3px; }
  .expand .stats > div > span { font-size: 11px; margin-top: 6px; }
  .expand .stick { height: calc(100svh - var(--head) - 64px); }
  .expand .mtop { padding: 10px 8px; gap: 8px; }
  .expand .tools { flex-wrap: nowrap; }
  .hm .clu-l { font-size: 10.5px; padding: 2px 8px; }
  #selSize { display: none; }
  .bagbar .bb-l, .hm-legend { display: none; }
  .bagbar .bb-go { display: none; }
  .bagbar .bb-row button { height: 36px; font-size: 13px; padding: 0 11px; }
  .expand .tools .search { flex: 1; }
  .sec-row { grid-template-columns: 1fr; }
  .sec-row > .side { border-right: 0; padding: 50px 24px 24px; }
  .sec-head { padding: 60px 24px 30px; }
  .cells, .cells.c4 { grid-template-columns: 1fr; }
  .cells > * { border-left: 0; }
  .bcell { min-height: 0; }
  .hm-wrap { padding: 14px 12px 18px; }
  .hm { height: 560px; }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip > div { border-bottom: 1px solid var(--line); }
  .strip > div:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .search, .search input, .search input:focus { width: 100%; }
  .foot { min-height: 640px; }
  .foot .in { padding: 80px 24px 40px; }
  .foot h2 { font-size: 46px; }
  .hero-g { padding-top: 70px; }
  .hero-in { padding: 0 24px 50px; }
  .band .frame, .logos .frame { grid-template-columns: repeat(2, 1fr); }
  .band .frame > div, .logos .frame > a { border-bottom: 1px solid var(--line); }
  .band b { font-size: 32px; }
  .logos .frame > a { height: 72px; padding: 0 14px; }
  main.page { margin: 0; border: 0; }
  .stats4 { grid-template-columns: repeat(2, 1fr); }
  .stats4 > div:nth-child(2) { border-right: 0; }
  .stats4 > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .stats4 b { font-size: 28px; }
  .flow { grid-template-columns: 1fr; }
  .flow .ar { border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 10px; }
  .flow .ar svg { transform: rotate(90deg); }
  .doc { grid-template-columns: 1fr; }
  .toc { display: none; }
  .prose { padding: 10px 18px 60px; border-left: 0; }
  .tbl .hide-m { display: none; }
  .tbl .wbar i { display: none; }
  .tbl td, .tbl th { padding: 10px 8px; }
  .drawer { top: auto; left: 0; right: 0; bottom: 0; width: auto; max-height: 86vh; transform: translateY(100%); box-shadow: inset 0 1px 0 var(--line-2); }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: rgba(12,14,16,.92); backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .nav-i { display: grid; place-items: center; gap: 3px; color: var(--muted); font-size: 10.5px; padding: 6px 0; }
  .nav-i svg { width: 20px; height: 20px; }
  .nav-i.on { color: #fff; }
  body { padding-bottom: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- utility: buy / sell / build ---------- */
.bagbar > button.build { flex: none; height: 40px; padding: 0 14px; border-radius: 4px; display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; }
.bagbar .bb-row button.build, .bagbar > button.build { color: #fff; background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); border-style: dashed; }
.bagbar button.build svg { width: 14px; height: 14px; }
.bagbar > button.build:hover { background: rgba(42,46,51,.95); }
.bagbar button.build.on { background: #e9ebed; color: #0c0e10; box-shadow: none; }
.expand.building .hm .bub { cursor: copy; }
.tray { position: absolute; z-index: 8; left: 0; right: 0; margin: 0 auto; width: max-content; bottom: 18px; transform: translateY(140%); display: flex; align-items: center; gap: 10px; max-width: calc(100% - 2 * var(--gut) - 24px); padding: 10px 10px 10px 18px; border-radius: 6px; background: rgba(21,24,27,.96); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px var(--line-2), 0 24px 60px -20px #000; opacity: 0; pointer-events: none; transition: transform .45s cubic-bezier(.2, .8, .2, 1), opacity .3s; }
.tray.on { transform: none; opacity: 1; pointer-events: auto; }
.tray .tr-l { display: flex; flex-direction: column; flex: none; font-size: 12px; color: var(--muted); }
.tray .tr-l b { font-size: 15px; font-weight: 400; color: #fff; }
.tray .tr-coins { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; min-width: 0; max-width: 520px; }
.tray .tr-coins::-webkit-scrollbar { display: none; }
.tray .tr-coins button { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 8px 0 4px; border-radius: 4px; background: var(--btn); font-size: 12.5px; }
.tray .tr-coins button:hover { background: var(--btn-hi); }
.tray .tr-coins img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.tray .tr-coins svg { width: 11px; height: 11px; color: var(--muted); }
.tray .tr-w { flex: none; }
.tray .tr-w button { height: 34px; font-size: 12.5px; }
.tray .tr-x { width: 36px; height: 36px; flex: none; }
.tray .tr-x svg { width: 15px; height: 15px; }
.tray .btn { flex: none; height: 40px; }
.tray .tr-hint { margin: 0; font-size: 13.5px; color: var(--ink-2); max-width: 380px; }

.sheet { width: min(460px, 100vw); padding: 26px 26px 40px; }
.sheet .sheet-in { padding-top: 6px; }
.buy h3 { font-size: 30px; font-weight: 300; letter-spacing: -.02em; margin: 0 0 4px; padding-right: 50px; }
.buy-sub { margin: 0; font-size: 13.5px; color: var(--muted); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 18px 0 4px; padding: 0; }
.steps li { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 4px; background: var(--card); font-size: 12.5px; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.steps li i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 11px; background: var(--btn); color: var(--ink-2); flex: none; }
.steps li.cur { color: #fff; box-shadow: inset 0 0 0 1px var(--line-2); }
.steps li.cur i { background: #e9ebed; color: #0c0e10; }
.steps li.ok i { background: rgba(233,235,237,.18); color: #fff; }
.steps li.ok i { font-size: 0; }
.steps li.ok i::after { content: ''; width: 9px; height: 5px; border-left: 1.6px solid #fff; border-bottom: 1.6px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.legs-h { display: flex; justify-content: space-between; margin-top: 16px; font-size: 12px; color: var(--muted); }
.legs-h + .legs { margin-top: 8px; }
.buy .go { margin-top: 14px; }
.buy .go svg { width: 16px; height: 16px; }
.presets button.on { background: #e9ebed; color: #0c0e10; }
.presets button[disabled] { opacity: .5; }
.warn { color: #f0b35a; }
.err-t { color: var(--down); }
.ok-t { color: #fff; }
.ok-t a, .leg small a { text-decoration: underline; text-underline-offset: 2px; }
.status.good { color: #fff; }
.spin { display: inline-block; width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid rgba(233,235,237,.3); border-top-color: #fff; animation: spin .8s linear infinite; vertical-align: -1px; margin-right: 4px; }
@keyframes spin { to { transform: rotate(360deg); } }
.done { text-align: center; padding: 24px 0 0; }
.done-ic { width: 54px; height: 54px; border-radius: 50%; display: inline-grid; place-items: center; background: #e9ebed; color: #0c0e10; }
.done-ic svg { width: 26px; height: 26px; }
.done h4 { font-size: 26px; font-weight: 300; margin: 14px 0 4px; }
.done p { margin: 0; color: var(--muted); font-size: 14px; }
.done .legs { text-align: left; }
.done-acts { display: grid; gap: 8px; margin-top: 16px; }
.drawer .buy-acts { display: grid; gap: 8px; margin-top: 18px; }
.drawer .buy-acts svg { width: 15px; height: 15px; }

.modal { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.55); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .2s; }
.modal.on { opacity: 1; pointer-events: auto; }
.modal-box { position: relative; width: min(420px, 100%); padding: 28px; border-radius: 8px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line-2), 0 30px 80px -30px #000; }
.modal-box .x { position: absolute; top: 16px; right: 16px; }
.modal-box h3 { font-size: 26px; font-weight: 300; letter-spacing: -.02em; margin: 0 0 8px; padding-right: 40px; }
.modal-box p { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }
.modal-acts { display: grid; gap: 8px; margin-top: 20px; }
.modal-box.wide { width: min(480px, 100%); }
.modal-acts svg, .al-set svg { width: 15px; height: 15px; }
.icon-btn.bell { position: relative; }
.icon-btn.bell svg { width: 18px; height: 18px; }
.bdg { position: absolute; top: -5px; right: -5px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: #e9ebed; color: #0c0e10; font-size: 10.5px; line-height: 17px; text-align: center; display: none; }
.bdg.on { display: block; }
.al-set { margin-top: 18px; padding: 16px; border-radius: 6px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.al-h { display: flex; justify-content: space-between; align-items: center; font-size: 14px; margin-bottom: 10px; }
.al-h span { display: inline-flex; align-items: center; gap: 7px; }
.al-h small { color: var(--muted); font-size: 12.5px; }
.al-set .imp { margin-top: 8px; }
.al-mine { display: flex; flex-wrap: wrap; gap: 6px; }
.al-mine:not(:empty) { margin-top: 10px; }
.al-mine .chip { padding: 0 4px 0 10px; height: 28px; font-size: 12.5px; cursor: default; }
.al-mine .chip button { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 3px; }
.al-mine .chip button:hover { background: var(--btn-hi); }
.al-mine .chip svg { width: 11px; height: 11px; }
.al-list { margin-top: 14px; max-height: 340px; overflow-y: auto; }
.al { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.al small { display: block; color: var(--muted); font-size: 12px; }
.al.fired { opacity: .5; }
.al .icon-btn { width: 30px; height: 30px; }
.al .icon-btn svg { width: 13px; height: 13px; }
.tg-ok { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 14px; }

.imp { display: flex; gap: 8px; margin-top: 16px; }
.imp input { flex: 1; min-width: 0; height: 40px; padding: 0 14px; border-radius: 4px; border: 0; outline: 0; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font-size: 13.5px; }
.imp input:focus { box-shadow: inset 0 0 0 1px var(--line-2); }
.imp .btn { height: 40px; }
.drift { margin-top: 16px; padding: 14px 16px; border-radius: 6px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.dr-t { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }
.dr-t b { font-weight: 400; color: #fff; font-size: 15px; }
.dr-bar { display: flex; gap: 2px; height: 34px; margin-top: 12px; }
.dr-bar i { position: relative; min-width: 4px; border-radius: 2px; background: rgba(233,235,237,.07); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.dr-bar i::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px dashed rgba(233,235,237,.45); }
.dr-bar em { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(233,235,237,.5); }
.dr-acts { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.hold-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px 0; }
.btn.sm svg { width: 13px; height: 13px; }

@media (max-width: 1100px) {
  .bk-grid .invest { order: -1; position: static; border-bottom: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .hero .cta { left: 24px; right: 24px; bottom: auto; top: calc(54% + 196px); }
  .hero .cta .btn { flex: 1; height: 46px; padding: 0 12px; font-size: 14px; }
  .tray { left: 8px; right: 8px; width: auto; bottom: 10px; max-width: none; transform: translateY(140%); flex-wrap: wrap; padding: 10px; gap: 8px; }
  .tray.on { transform: none; }
  .tray .tr-coins { order: 3; flex-basis: 100%; max-width: none; }
  .tray .tr-w { display: none; }
  .tray .btn { margin-left: auto; }
  .tray .tr-hint { font-size: 12.5px; flex: 1; }
  .sheet { padding: 22px 16px 34px; }
  .steps li span { font-size: 11.5px; }
}
