/* Subchain — paper ground, navy ink, one warm yellow. Display: Fraunces (italic accents). Body: Onest. Numbers: Martian Mono. */
/* fonts, self-hosted (SIL Open Font Licence): Fraunces, Onest, Martian Mono (latin) */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 300 900; font-display: swap; src: url(/fonts/fraunces.woff2) format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 300 900; font-display: swap; src: url(/fonts/fraunces-italic.woff2) format("woff2"); }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 300 800; font-display: swap; src: url(/fonts/onest.woff2) format("woff2"); }
@font-face { font-family: "Martian Mono"; font-style: normal; font-weight: 300 700; font-display: swap; src: url(/fonts/martian-mono.woff2) format("woff2"); }
:root {
  --paper: #f6f4ee; --paper-2: #efece3; --panel: #ffffff; --panel-2: #f3f4f8; --glass: rgba(255,255,255,.78);
  --ink: #182338; --ink-2: #26324a; --muted: #5a6478; --dim: #8b93a5; --line: rgba(10,12,24,.08); --line-2: rgba(10,12,24,.15);
  --acid: #f5bf00; --acid-2: #d9a600; --acid-text: #9c7400; --acid-soft: #fff6d6;
  --up: #1f9d5f; --down: #dd3d4c; --warn: #b97a00;
  --seg-protocol: #3a3f52; --seg-creator: #c47a14; --seg-owner: #f5bf00; --seg-holders: #1fa39b; --seg-burn: #e04f5a; --seg-liquidity: #3d93d9; --seg-staking: #b8861a; --seg-nft: #c45fc0;
  --display: "Fraunces", "Iowan Old Style", Georgia, serif; --body: "Onest", system-ui, sans-serif; --mono: "Martian Mono", ui-monospace, Menlo, monospace;
  --r: 8px; --r-lg: 16px; --shadow: 0 1px 2px rgba(16,24,40,.05), 0 8px 24px -12px rgba(16,24,40,.12); --shadow-lg: 0 2px 4px rgba(16,24,40,.06), 0 24px 48px -24px rgba(16,24,40,.25);
  --sb-thumb: rgba(24,35,56,.22); --sb-thumb-hover: rgba(24,35,56,.4);
  color-scheme: light;
}
/* NO STOCK SCROLLBARS (larpcheck/scrollbars.css) */
*::-webkit-scrollbar { width: 6px; height: 6px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--sb-thumb); border-radius: 6px; }
*::-webkit-scrollbar-thumb:hover { background: var(--sb-thumb-hover); }
*::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
*::-webkit-scrollbar-corner { background: transparent; }
@supports (-moz-appearance: none) { * { scrollbar-width: thin; scrollbar-color: var(--sb-thumb) transparent; } }
.no-sb { scrollbar-width: none; } .no-sb::-webkit-scrollbar { display: none; }

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--paper); color: var(--ink); font: 15px/1.5 var(--body); -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; text-decoration: none; }
img { display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
.mono, .num { font-family: var(--mono); font-feature-settings: "tnum" 1; letter-spacing: -.02em; }
.num { white-space: nowrap; }
.muted { color: var(--muted); } .dim { color: var(--dim); } .up { color: var(--up); } .down { color: var(--down); }
.is-hidden { display: none !important; }
em.hl { font-style: italic; background: linear-gradient(transparent 12%, var(--acid) 12%, var(--acid) 88%, transparent 88%); padding: 0 .12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 40; background: rgba(246,244,238,.86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1320px; margin: 0 auto; height: 64px; padding: 0 22px; display: flex; align-items: center; gap: 14px; }
.brand { display: flex; align-items: center; gap: 10px; font: 600 21px/1 var(--display); letter-spacing: -.01em; flex: none; }
.brand img { width: 34px; height: 34px; object-fit: cover; border-radius: 50%; }
.nav { display: flex; gap: 2px; margin-left: 10px; }
.nav a { padding: 8px 11px; border-radius: 8px; color: var(--muted); font-weight: 500; font-size: 14px; }
.nav a:hover { color: var(--ink); background: rgba(24,35,56,.05); }
.nav a.on { color: var(--ink); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.search { position: relative; margin-left: auto; flex: 0 1 240px; min-width: 0; }
.search input { width: 100%; height: 36px; border: 1px solid var(--line-2); background: var(--panel); border-radius: 999px; padding: 0 14px; font-size: 13px; outline: none; }
.search input:focus { border-color: var(--ink); }
.search-drop { position: absolute; top: 42px; left: 0; right: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); display: none; overflow: hidden; z-index: 60; }
.search-drop.on { display: block; }
.search-drop a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; font-size: 13px; }
.search-drop a:hover { background: var(--panel-2); }
.search-drop img, .search-drop .ph { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; background: var(--panel-2); }
.search-drop small { margin-left: auto; color: var(--dim); }
.ca-pill { display: flex; align-items: center; height: 36px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line-2); overflow: hidden; flex: 0 1 auto; min-width: 0; max-width: 300px; }
.ca-lab { padding: 0 10px; height: 100%; display: grid; place-items: center; background: var(--ink); color: #fff; font: 600 11px/1 var(--mono); letter-spacing: .02em; flex: none; }
.ca-addr { border: 0; background: none; padding: 0 10px; height: 100%; display: flex; align-items: center; gap: 8px; min-width: 0; font: 11px/1 var(--mono); color: var(--muted); }
.ca-addr span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ca-addr:disabled { cursor: default; }
.ca-pill.is-live .ca-addr { color: var(--ink); }
.ca-copy { font-style: normal; font-size: 10px; color: var(--acid-text); font-weight: 600; flex: none; }
.ca-link { padding: 0 9px; height: 100%; display: grid; place-items: center; border-left: 1px solid var(--line); font-size: 11px; font-weight: 600; color: var(--muted); flex: none; }
.ca-link:hover { color: var(--ink); }
.x-btn { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); background: var(--panel); flex: none; }
.x-btn:hover { border-color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: 14px; white-space: nowrap; flex: none; transition: transform .12s ease, background .12s ease, box-shadow .12s ease; }
.btn:active { transform: translateY(1px); }
.btn-navy { background: var(--ink); color: #fff; } .btn-navy:hover { background: var(--ink-2); }
.btn-acid { background: var(--acid); color: var(--ink); box-shadow: inset 0 -2px 0 rgba(0,0,0,.08); } .btn-acid:hover { background: #ffcc1a; }
.btn-ghost { background: var(--panel); border-color: var(--line-2); color: var(--ink); } .btn-ghost:hover { border-color: var(--ink); }
.btn-sm { height: 30px; padding: 0 12px; font-size: 12.5px; }
.btn-lg { height: 48px; padding: 0 24px; font-size: 15px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
#wallet-btn img { width: 18px; height: 18px; border-radius: 4px; }
.burger { display: none; width: 38px; height: 38px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--panel); flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.burger i { width: 16px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ---------- layout ---------- */
.app { flex: 1; width: 100%; max-width: 1320px; margin: 0 auto; padding: 28px 22px 64px; }
.boot { display: grid; place-items: center; min-height: 50vh; } .boot img { animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-2deg); } }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 6px 0 22px; flex-wrap: wrap; }
.page-title { font: 500 clamp(34px, 4.4vw, 56px)/1.02 var(--display); letter-spacing: -.025em; }
.page-title em { font-style: italic; font-weight: 400; }
.page-sub { color: var(--muted); max-width: 560px; margin-top: 10px; font-size: 15.5px; }
.kicker { font: 600 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.panel-pad { padding: 20px 22px; }
.panel-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.panel-h h3 { font: 600 17px/1.2 var(--display); }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.nums > div { background: var(--panel); padding: 14px 18px; min-width: 0; }
.nums b { display: block; font: 600 20px/1.2 var(--mono); letter-spacing: -.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nums small { color: var(--dim); font-size: 12px; }
.empty { padding: 34px 20px; text-align: center; color: var(--muted); }
.empty img { margin: 0 auto 12px; width: 72px; height: 72px; object-fit: contain; opacity: .95; }
.empty b { display: block; color: var(--ink); font: 600 17px/1.3 var(--display); margin-bottom: 4px; }
.tag { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 999px; font: 600 10.5px/1 var(--mono); letter-spacing: .02em; background: var(--panel-2); color: var(--muted); white-space: nowrap; }
.tag.acid { background: var(--acid-soft); color: var(--acid-text); } .tag.navy { background: var(--ink); color: #fff; } .tag.green { background: #e6f6ee; color: var(--up); } .tag.red { background: #fdecee; color: var(--down); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); display: inline-block; flex: none; }
.dot.live { background: var(--up); box-shadow: 0 0 0 0 rgba(31,157,95,.5); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 7px rgba(31,157,95,0); } 100% { box-shadow: 0 0 0 0 rgba(31,157,95,0); } }
.avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--panel-2); flex: none; border: 1px solid var(--line); }
.avatar.lg { width: 76px; height: 76px; border-radius: 20px; } .avatar.sm { width: 24px; height: 24px; }
.ph-av { display: grid; place-items: center; font: 600 12px/1 var(--mono); color: var(--muted); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font: 12px/1 var(--mono); color: var(--dim); }
.crumbs a { color: var(--muted); padding: 4px 8px; border-radius: 6px; background: var(--panel); border: 1px solid var(--line); }
.crumbs a:hover { color: var(--ink); border-color: var(--line-2); }
.crumbs i { font-style: normal; }
.tabs { display: flex; gap: 4px; padding: 6px; background: var(--panel-2); border-radius: 12px; overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 8px 14px; border-radius: 8px; font-size: 13.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.tabs button.on { background: var(--panel); color: var(--ink); box-shadow: var(--shadow); }
table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.t th { text-align: left; font: 600 10.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--dim); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t tbody tr:hover td { background: #fbfaf6; }
table.t .r { text-align: right; }
table.t a.row-link { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.tscroll { overflow-x: auto; }
.split-bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--panel-2); }
.split-bar i { display: block; height: 100%; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; } .legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.legend b { color: var(--ink); font: 600 12px var(--mono); }
.bar { height: 8px; background: var(--panel-2); border-radius: 999px; overflow: hidden; } .bar i { display: block; height: 100%; background: var(--acid); border-radius: 999px; }
.bar.navy i { background: var(--ink); }

/* ---------- home ---------- */
.menu-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 32px; align-items: end; margin: 12px 0 22px; }
.menu-title { font: 500 clamp(44px, 6.2vw, 88px)/.96 var(--display); letter-spacing: -.035em; }
.menu-title em { font-style: italic; font-weight: 400; }
.menu-right p { color: var(--muted); font-size: 16px; margin: 0 0 16px; }
.menu-right p b { color: var(--ink); }
.menu-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.net-strip { display: flex; align-items: center; gap: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 6px 8px 6px 16px; margin-bottom: 18px; overflow: hidden; box-shadow: var(--shadow); min-height: 54px; transition: box-shadow .3s ease; }
.net-strip.flash { box-shadow: 0 0 0 3px rgba(245,191,0,.45), var(--shadow); }
.net-name { font: 600 13px/1 var(--mono); margin: 0 16px 0 10px; white-space: nowrap; }
.net-cell { display: flex; flex-direction: column; padding: 0 18px; border-left: 1px solid var(--line); min-width: 0; }
.net-cell b { font: 600 13.5px/1.2 var(--mono); white-space: nowrap; } .net-cell small { color: var(--dim); font-size: 11.5px; white-space: nowrap; }
.net-go { margin-left: auto; padding: 0 16px; height: 38px; display: grid; place-items: center; border-radius: 999px; background: var(--paper); font-weight: 600; font-size: 13px; white-space: nowrap; }
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(168px, auto)); gap: 14px; }
.tile { position: relative; border-radius: 22px; padding: 22px; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; min-height: 168px; border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease; isolation: isolate; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.tile.navy { background: var(--ink); color: #f8f8f8; border-color: transparent; }
.tile.acid { background: var(--acid); color: var(--ink); border-color: transparent; }
.tile.paper { background: var(--panel); }
.tile-ico { position: absolute; right: 14px; top: 14px; width: 96px; height: 96px; object-fit: contain; transition: transform .35s cubic-bezier(.2,.8,.2,1); z-index: -1; }
.tile:hover .tile-ico { transform: translateY(-4px) rotate(-4deg) scale(1.04); }
.tile.big .tile-ico { width: 190px; height: 190px; right: 20px; top: 20px; }
.tile-label { font: 500 30px/1 var(--display); letter-spacing: -.02em; }
.tile.big .tile-label { font-size: 46px; }
.tile-sub { font-size: 13.5px; opacity: .72; margin-top: 6px; max-width: 70%; }
.tile-stat { font: 600 12.5px/1 var(--mono); display: flex; align-items: center; gap: 8px; }
.tile-arrow { position: absolute; right: 18px; bottom: 18px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.14); font-size: 15px; }
.tile.paper .tile-arrow, .tile.acid .tile-arrow { background: rgba(24,35,56,.08); }
.burst { position: fixed; z-index: 90; pointer-events: none; }
.burst i { position: absolute; border-radius: 50%; border: 2px solid currentColor; opacity: 0; animation: bubble .9s cubic-bezier(.22,1,.36,1) forwards; }
@keyframes bubble { 0% { opacity: 0; transform: translate(0,0) scale(.3); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1); } }
.home-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; margin-top: 28px; }
.bk-chips { display: flex; gap: 8px; overflow-x: auto; padding: 14px 18px; }
.bk-chip { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-radius: 12px; background: var(--paper); min-width: 118px; border: 1px solid var(--line); }
.bk-chip b { font: 600 12px/1 var(--mono); } .bk-chip span { font: 600 15px/1.1 var(--mono); } .bk-chip small { color: var(--dim); font-size: 11px; }
.steps4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.step { padding: 20px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); }
.step i { font: 600 11px/1 var(--mono); color: var(--acid-text); font-style: normal; }
.step h4 { font: 600 19px/1.2 var(--display); margin: 10px 0 6px; } .step p { color: var(--muted); margin: 0; font-size: 14px; }

/* ---------- pads ---------- */
.padgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.padcard { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.padcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.padcard.root { background: linear-gradient(160deg, #fffaf0, #fff 60%); border-color: rgba(245,191,0,.45); }
.padhead { display: flex; align-items: center; gap: 12px; }
.padhead h3 { font: 600 19px/1.15 var(--display); } .padhead small { color: var(--dim); font-size: 12px; }
.padhead .tag { margin-left: auto; }
.padnums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.padnums div { background: var(--paper); border-radius: 10px; padding: 8px 10px; min-width: 0; } .padnums b { display: block; font: 600 13px/1.25 var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .padnums small { font-size: 11px; color: var(--dim); }
.padfoot { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--muted); }
.genesis { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; align-items: center; padding: 22px 26px; border-radius: 22px; background: var(--ink); color: #f8f8f8; margin-bottom: 18px; }
.genesis img { width: 92px; height: 92px; object-fit: contain; }
.genesis h3 { font: 500 26px/1.1 var(--display); } .genesis p { margin: 6px 0 0; opacity: .75; max-width: 640px; }

/* ---------- pad + token ---------- */
.hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; margin-bottom: 18px; }
.hero h1 { font: 500 clamp(30px, 3.6vw, 44px)/1.05 var(--display); letter-spacing: -.02em; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.hero h1 small { font: 600 14px/1 var(--mono); color: var(--muted); letter-spacing: 0; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 10px; color: var(--muted); font-size: 13px; align-items: center; }
.hero-side { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.banner-img { width: 100%; aspect-ratio: 3 / 1; object-fit: cover; border-radius: var(--r-lg); margin-bottom: 18px; border: 1px solid var(--line); }
.chart { height: 380px; position: relative; }
.chart-tools { display: flex; gap: 6px; align-items: center; }
.seg { display: inline-flex; background: var(--panel-2); border-radius: 9px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: none; padding: 5px 10px; border-radius: 7px; font: 600 11.5px/1 var(--mono); color: var(--muted); }
.seg button.on { background: var(--panel); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.trade { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.trade .seg { width: 100%; } .trade .seg button { flex: 1; padding: 9px; font-size: 13px; font-family: var(--body); }
.trade .seg button.buy.on { background: var(--up); color: #fff; } .trade .seg button.sell.on { background: var(--down); color: #fff; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field .lab { font-size: 12px; font-weight: 600; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; }
.field input, .field select, .field textarea { height: 42px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--panel); padding: 0 12px; outline: none; width: 100%; }
.field textarea { height: auto; min-height: 84px; padding: 10px 12px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(24,35,56,.08); }
.field .hint { font-size: 11.5px; color: var(--dim); font-weight: 400; }
.inline { display: flex; gap: 8px; align-items: center; }
.quick { display: flex; gap: 6px; flex-wrap: wrap; } .quick button { border: 1px solid var(--line-2); background: var(--panel); border-radius: 8px; padding: 5px 9px; font: 600 11.5px/1 var(--mono); }
.quick button:hover { border-color: var(--ink); }
.quote { background: var(--paper); border-radius: 12px; padding: 12px 14px; font-size: 13px; display: flex; flex-direction: column; gap: 6px; }
.quote .row { display: flex; justify-content: space-between; gap: 10px; } .quote .row span:first-child { color: var(--muted); }
.route { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font: 600 11.5px/1 var(--mono); }
.route i { font-style: normal; color: var(--dim); }
.note { font-size: 12.5px; color: var(--muted); background: var(--acid-soft); border-radius: 10px; padding: 10px 12px; border: 1px solid rgba(245,191,0,.35); }
.note.err { background: #fdecee; border-color: rgba(221,61,76,.25); color: #9b2230; }
.note.ok { background: #e6f6ee; border-color: rgba(31,157,95,.25); color: #16643f; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 13.5px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; text-align: right; font-family: var(--mono); font-size: 12.5px; word-break: break-all; }
.progress-big { display: flex; flex-direction: column; gap: 8px; }
.progress-big .bar { height: 12px; }
.progress-big .lab { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); }
.koth { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 18px; border-radius: 16px; background: var(--acid-soft); border: 1px solid rgba(245,191,0,.4); margin-bottom: 16px; }
.koth .avatar { width: 54px; height: 54px; border-radius: 14px; }
.bars30 { display: flex; align-items: flex-end; gap: 3px; height: 120px; padding: 10px 0 0; }
.bars30 i { flex: 1; background: var(--ink); border-radius: 3px 3px 0 0; min-height: 2px; opacity: .85; }
.bars30 i:hover { background: var(--acid); }
.tree { padding: 18px 20px; }
.tree ul { list-style: none; margin: 0; padding-left: 26px; border-left: 2px dashed var(--line-2); }
.tree > ul { padding-left: 0; border-left: 0; }
.tree li { position: relative; padding: 6px 0; }
.tree li li::before { content: ""; position: absolute; left: -26px; top: 26px; width: 20px; border-top: 2px dashed var(--line-2); }
.node { display: inline-flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px 8px 8px; box-shadow: var(--shadow); }
.node b { font: 600 14px/1.1 var(--display); } .node small { display: block; color: var(--dim); font-size: 11.5px; font-family: var(--mono); }
.node .lvl { font: 600 10px/1 var(--mono); padding: 4px 6px; border-radius: 6px; background: var(--ink); color: #fff; }
.chaincard { margin-bottom: 18px; }
.bk-list { font-size: 13px; }
.bk-row { display: grid; grid-template-columns: 90px 90px 60px 1fr 1fr 130px; gap: 10px; padding: 10px 18px; border-bottom: 1px solid var(--line); align-items: center; }
.bk-row:hover { background: #fbfaf6; }
.bk-head { font: 600 10.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.bk-row .r { text-align: right; } .bk-h { font: 600 13px var(--mono); }
.hash { font: 11.5px var(--mono); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- pulse ---------- */
.sonar-wrap { position: relative; border-radius: 24px; overflow: hidden; background: radial-gradient(120% 90% at 50% 0%, #22304b 0%, #141d30 55%, #0c1322 100%); color: #e9edf6; border: 1px solid #0c1322; box-shadow: var(--shadow-lg); }
.sonar-wrap svg { display: block; width: 100%; height: auto; }
.sonar-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 12px 18px; font-size: 12.5px; color: #aab4c8; border-top: 1px solid rgba(255,255,255,.08); }
.sonar-card { position: absolute; pointer-events: none; background: #fff; color: var(--ink); border-radius: 12px; padding: 10px 12px; box-shadow: var(--shadow-lg); font-size: 12.5px; min-width: 180px; opacity: 0; transition: opacity .12s; z-index: 4; }
.sonar-card.on { opacity: 1; }
.sonar-card b { font: 600 14px var(--display); }

/* ---------- launch ---------- */
.kinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.kind { text-align: left; border: 1px solid var(--line-2); background: var(--panel); border-radius: 16px; padding: 16px 18px; display: flex; gap: 14px; align-items: center; transition: border-color .15s, box-shadow .15s; }
.kind img { width: 52px; height: 52px; object-fit: contain; flex: none; }
.kind b { display: block; font: 600 17px/1.2 var(--display); } .kind small { color: var(--muted); font-size: 12.5px; }
.kind.on { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(24,35,56,.08), var(--shadow); }
.wiz { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.wiz-steps { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.wiz-steps button { border: 0; background: var(--panel-2); color: var(--muted); border-radius: 999px; padding: 7px 13px; font-size: 12.5px; font-weight: 600; }
.wiz-steps button.on { background: var(--ink); color: #fff; } .wiz-steps button.done { background: var(--acid-soft); color: var(--acid-text); }
.wiz-body { padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.wiz-body h3 { font: 600 22px/1.2 var(--display); }
.wiz-nav { display: flex; justify-content: space-between; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.drop { border: 1.5px dashed var(--line-2); border-radius: 14px; padding: 16px; display: flex; gap: 14px; align-items: center; cursor: pointer; background: var(--paper); }
.drop img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; background: var(--panel-2); }
.drop:hover { border-color: var(--ink); }
.presets { display: flex; gap: 8px; flex-wrap: wrap; }
.presets button { border: 1px solid var(--line-2); background: var(--panel); border-radius: 10px; padding: 8px 12px; font-size: 13px; text-align: left; }
.presets button b { display: block; font-size: 13px; } .presets button small { color: var(--dim); font-size: 11.5px; }
.presets button.on { border-color: var(--ink); background: var(--acid-soft); }
.sliders { display: flex; flex-direction: column; gap: 10px; }
.slider { display: grid; grid-template-columns: 140px minmax(0, 1fr) 64px; gap: 12px; align-items: center; font-size: 13px; }
.slider label { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 500; }
.slider label i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.slider input[type=range] { width: 100%; accent-color: var(--ink); }
.slider output { font: 600 12.5px var(--mono); text-align: right; }
.sum { font: 600 12.5px var(--mono); } .sum.bad { color: var(--down); }
.preview { position: sticky; top: 84px; }
.preview .pcard { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; }
.check input { margin-top: 3px; accent-color: var(--ink); }

/* ---------- learn / docs ---------- */
.beats { display: flex; flex-direction: column; gap: 18px; }
.beat { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 26px; align-items: center; padding: 24px; }
.beat img { width: 140px; height: 140px; object-fit: contain; }
.beat i { font: 600 11px/1 var(--mono); color: var(--acid-text); font-style: normal; }
.beat h3 { font: 500 28px/1.1 var(--display); margin: 8px 0; letter-spacing: -.015em; } .beat p { margin: 0; color: var(--muted); max-width: 680px; }
.calc { padding: 24px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
.calc-out { display: flex; flex-direction: column; gap: 10px; }
.calc-row { display: grid; grid-template-columns: 130px minmax(0, 1fr) 90px; gap: 12px; align-items: center; font-size: 13px; }
.calc-row .bar { height: 14px; }
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; }
.docs-nav { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 2px; }
.docs-nav a { padding: 8px 12px; border-radius: 8px; color: var(--muted); font-size: 14px; font-weight: 500; }
.docs-nav a.on, .docs-nav a:hover { background: var(--panel); color: var(--ink); }
.doc { padding: 30px 34px; max-width: 860px; }
.doc h1 { font: 500 40px/1.05 var(--display); letter-spacing: -.02em; margin-bottom: 14px; }
.doc h2 { font: 600 22px/1.2 var(--display); margin: 28px 0 10px; }
.doc p, .doc li { color: var(--ink-2); font-size: 15.5px; line-height: 1.65; }
.doc code { font: 12.5px var(--mono); background: var(--panel-2); padding: 2px 6px; border-radius: 5px; word-break: break-all; }
.doc table.t { margin: 10px 0; }
.addr { font: 12px var(--mono); word-break: break-all; }

/* ---------- toasts + modal ---------- */
.toasts { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 100; }
.toast { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow-lg); font-size: 13.5px; max-width: 360px; animation: tin .25s ease; }
.toast.err { background: #9b2230; } .toast small { display: block; opacity: .75; margin-top: 2px; }
@keyframes tin { from { opacity: 0; transform: translateY(8px); } }
.veil { position: fixed; inset: 0; background: rgba(16,22,36,.45); backdrop-filter: blur(3px); display: none; place-items: center; z-index: 80; padding: 20px; }
.veil.on { display: grid; }
.sheet { background: var(--panel); border-radius: 20px; padding: 24px; width: min(420px, 100%); box-shadow: var(--shadow-lg); }
.sheet h3 { font: 600 22px/1.2 var(--display); margin-bottom: 6px; } .sheet p { color: var(--muted); font-size: 13.5px; margin: 0 0 14px; }
.wl { display: flex; flex-direction: column; gap: 8px; }
.wl button, .wl a { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line-2); background: var(--panel); border-radius: 12px; padding: 11px 14px; font-weight: 600; text-align: left; }
.wl button:hover, .wl a:hover { border-color: var(--ink); }
.wl img { width: 26px; height: 26px; border-radius: 6px; } .wl span { margin-left: auto; font-size: 11.5px; color: var(--dim); font-weight: 500; }
.wl .none { color: var(--muted); font-size: 13.5px; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); background: var(--paper-2); }
.foot-in { max-width: 1320px; margin: 0 auto; padding: 36px 22px; display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.foot-brand { display: flex; gap: 12px; align-items: center; } .foot-brand img { width: 40px; height: 40px; object-fit: cover; border-radius: 50%; }
.foot-brand b { display: block; font: 600 20px/1.1 var(--display); } .foot-brand span { color: var(--muted); font-size: 13px; }
.foot-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.foot-cols h4 { font: 600 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin-bottom: 12px; }
.foot-cols a { display: block; color: var(--muted); font-size: 14px; padding: 3px 0; } .foot-cols a:hover { color: var(--ink); }
.foot-line { max-width: 1320px; margin: 0 auto; padding: 14px 22px 26px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--dim); font-size: 12.5px; border-top: 1px solid var(--line); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .ca-pill { max-width: 190px; } .search { flex-basis: 170px; }
  .grid-2, .wiz { grid-template-columns: minmax(0, 1fr); } .preview { position: static; }
}
@media (max-width: 980px) {
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; background: var(--panel); border-bottom: 1px solid var(--line); padding: 10px 16px; box-shadow: var(--shadow-lg); }
  .nav.open { display: flex; } .nav a { padding: 12px; }
  .burger { display: flex; } .search { display: none; } .launch-btn { display: none; }
  .menu-head { grid-template-columns: minmax(0, 1fr); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; }
  .bento .tile { grid-area: auto !important; } .bento .tile.big { grid-column: 1 / -1 !important; }
  .home-row, .steps4, .calc, .docs { grid-template-columns: minmax(0, 1fr); }
  .docs-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .kinds { grid-template-columns: minmax(0, 1fr); } .form-grid { grid-template-columns: minmax(0, 1fr); }
  .bk-row { grid-template-columns: 70px 70px 40px 1fr 1fr; } .bk-row .hash { display: none; }
  .net-cell:nth-of-type(n+4) { display: none; }
}
@media (max-width: 640px) {
  .top-in { padding: 0 14px; gap: 8px; } .brand span { display: none; } .ca-pill { max-width: 150px; } .ca-link { display: none; }
  .app { padding: 18px 14px 48px; }
  .bento { grid-template-columns: minmax(0, 1fr); } .tile.big .tile-label { font-size: 36px; } .tile.big .tile-ico { width: 130px; height: 130px; }
  .hero { grid-template-columns: auto minmax(0, 1fr); } .hero-side { grid-column: 1 / -1; justify-content: flex-start; }
  .beat { grid-template-columns: minmax(0, 1fr); } .beat img { width: 96px; height: 96px; }
  .slider { grid-template-columns: 110px minmax(0, 1fr) 54px; }
  .net-cell:nth-of-type(n+3) { display: none; } .genesis { grid-template-columns: minmax(0, 1fr); }
  .padnums { grid-template-columns: repeat(2, 1fr); }
  .x-btn { display: none; }
}
