/* ROUTED: colours lifted from the logo: warm black, cream router plastic, LED green. Inter + JetBrains Mono.
   Every colour is a token below. Dark is the default; light is the router's own plastic. */
:root {
  --bg: #eeede8; --bg-2: #e4e3dc; --card: #f8f7f3; --input: #fff;
  --ink: #0e0e0d; --forest: #15803d; --muted: #5f5d56; --faint: #8f8c83;
  --line: rgba(14, 14, 13, 0.1); --line-2: rgba(14, 14, 13, 0.18);
  --mint: #bbf7d0; --wire: rgba(21, 128, 61, 0.35); --led: #22c55e; --ring: rgba(34, 197, 94, 0.2); --warn: #b5562f;
  --btn: #0e0e0d; --btn-ink: #ede6d6; --btn-hover: #2a2a27; --tile: #0e0e0d; --dot: transparent; --sdot: rgba(14, 14, 13, 0.12);
  --top-bg: rgba(238, 237, 232, 0.86); --c-when: #15803d;
  --ok-bg: #e6f6ec; --err-bg: #fbf1ec; --err-ink: #7a3a1f; --err-line: rgba(181, 86, 47, 0.3);
  --cta-bg: #0e0e0d; --cta-ink: #ede6d6; --cta-sub: #9a968c; --cta-btn: #3ee06c; --cta-btn-ink: #07140b;
  --toast: #0e0e0d; --toast-ink: #ede6d6;
  --a-buyback: #0e0e0d; --a-liquidity: #22c55e; --a-swap: #84cc16; --a-creator: #d99a1e; --a-holders: #8b7cf6;
  --shadow: 0 1px 0 rgba(14, 14, 13, 0.04), 0 10px 30px -18px rgba(14, 14, 13, 0.25);
  --r: 16px; --r-sm: 10px;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0c0c0b; --bg-2: #181816; --card: #131312; --input: #0a0a09;
  --ink: #ede6d6; --forest: #3ee06c; --muted: #9a968c; --faint: #6b685f;
  --line: rgba(237, 230, 214, 0.08); --line-2: rgba(237, 230, 214, 0.15);
  --mint: #3ee06c; --wire: rgba(62, 224, 108, 0.3); --led: #3ee06c; --ring: rgba(62, 224, 108, 0.18); --warn: #f08a6b;
  --btn: #3ee06c; --btn-ink: #07140b; --btn-hover: #6ef095; --tile: #0a0a09; --dot: transparent; --sdot: rgba(237, 230, 214, 0.08);
  --top-bg: rgba(12, 12, 11, 0.82); --c-when: #3ee06c;
  --ok-bg: rgba(62, 224, 108, 0.09); --err-bg: rgba(240, 138, 107, 0.1); --err-ink: #f4a68e; --err-line: rgba(240, 138, 107, 0.3);
  --cta-bg: #ede6d6; --cta-ink: #0c0c0b; --cta-sub: #5f5d56; --cta-btn: #0c0c0b; --cta-btn-ink: #ede6d6;
  --toast: #22221f; --toast-ink: #ede6d6;
  --a-buyback: #ede6d6; --a-liquidity: #3ee06c; --a-swap: #bef264; --a-creator: #f2b84b; --a-holders: #a99bf7;
  --shadow: 0 1px 0 rgba(0, 0, 0, 0.3), 0 12px 32px -20px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased; min-height: 100vh;
  
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.1; font-weight: 600; }
p { margin: 0; }
.mono { font-family: var(--mono); font-feature-settings: "zero" 1; }
.muted { color: var(--muted); }
.hide { display: none !important; }
:focus-visible { outline: 2px solid var(--led); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--mint); }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.pg { padding: 36px 0 72px; }
#view { outline: none; }
.page-in { animation: pageIn 0.38s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(6px); } }
[data-fade] { opacity: 0; transform: translateY(10px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
[data-fade].is-in { opacity: 1; transform: none; }

/* ---------- LED ---------- */
.led { display: inline-block; width: 7px; height: 7px; border-radius: 2px; background: var(--line-2); flex: none; transition: background 0.25s, box-shadow 0.25s; }
.led.on { background: var(--led); box-shadow: 0 0 0 3px var(--ring); }

/* ---------- top ---------- */
.top { position: sticky; top: 0; z-index: 40; background: var(--top-bg); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
body.scrolled .top { border-bottom-color: var(--line); }
.top-in { width: min(1160px, 100% - 32px); margin-inline: auto; height: 56px; display: flex; align-items: center; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 650; letter-spacing: -0.02em; font-size: 16px; }
.brand .logo { border-radius: 7px; }
.nav { display: flex; gap: 2px; margin-inline: auto; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.nav a { white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 7px; font-size: 13.5px; color: var(--muted); transition: color 0.15s, background 0.15s; }
.nav a:hover { color: var(--ink); background: var(--bg-2); }
.nav a.on { color: var(--ink); background: var(--bg-2); }
.nav a.on .led { background: var(--led); box-shadow: 0 0 0 3px var(--ring); }
.top-end { display: flex; align-items: center; gap: 8px; }
.socials { display: inline-flex; gap: 4px; }
.ib { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; color: var(--ink); border: 1px solid var(--line); background: var(--card); transition: border-color 0.15s, transform 0.15s; }
.ib:hover { border-color: var(--line-2); transform: translateY(-1px); }
.ib img { border-radius: 4px; }
.status-line { border-top: 1px solid var(--line); height: 32px; display: flex; align-items: center; gap: 10px; width: min(1160px, 100% - 32px); margin-inline: auto; font-size: 12.5px; overflow: hidden; white-space: nowrap; }
.st-k { font-family: var(--mono); font-weight: 500; }
.st-v { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.st-b { border: 0; background: none; padding: 0; cursor: pointer; color: var(--forest); font-size: 12.5px; font-weight: 500; }
.st-b:hover { text-decoration: underline; text-underline-offset: 3px; }
.st-b:first-of-type { margin-left: auto; }

/* ---------- buttons, chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--btn); background: var(--btn); color: var(--btn-ink); font-weight: 600; font-size: 14px; cursor: pointer; transition: transform 0.15s, background 0.15s, box-shadow 0.15s; white-space: nowrap; }
.btn:hover { background: var(--btn-hover); border-color: var(--btn-hover); transform: translateY(-1px); box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.45); }
.btn:active { transform: none; }
.btn:disabled { background: var(--bg-2); border-color: var(--line-2); color: var(--faint); cursor: not-allowed; transform: none; box-shadow: none; }
.btn.ghost { background: var(--card); color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { background: var(--bg-2); }
.btn.sm { height: 32px; padding: 0 14px; font-size: 13px; border-radius: 999px; }
.btn.block { width: 100%; height: 44px; }
.wallet.on { background: var(--card); color: var(--ink); border-color: var(--line-2); font-family: var(--mono); font-size: 12.5px; }
.wallet.on::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--led); }
.link { border: 0; background: none; padding: 0; cursor: pointer; color: var(--forest); font-size: 13.5px; font-weight: 500; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { height: 30px; padding: 0 12px; display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); font-size: 13px; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.chip:hover { background: var(--bg-2); }
.chip.on { border-color: var(--btn); background: var(--btn); color: var(--btn-ink); }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row.sm { gap: 6px; }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 6px; border: 1px solid var(--line); background: var(--bg); font-size: 11.5px; color: var(--forest); }

/* ---------- panels ---------- */
.panel { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.pad { padding: 18px; }
.k { display: inline-block; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.ph { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.fine { font-size: 12.5px; color: var(--muted); line-height: 1.5; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1fr 1.08fr; gap: 48px; align-items: center; padding: 64px 0 40px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--forest); padding: 5px 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--card); }
.hero h1 { margin-top: 18px; font-size: clamp(36px, 4.6vw, 54px); letter-spacing: -0.035em; line-height: 1.02; }
.hero h1 span { color: var(--forest); }
.lede { margin: 16px 0 24px; font-size: 16.5px; color: var(--muted); max-width: 470px; }
.lede.sm { font-size: 15.5px; max-width: 620px; margin-bottom: 8px; }
.mini { display: flex; gap: 0; margin: 30px 0 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); width: fit-content; }
.mini div { padding: 10px 16px; border-left: 1px solid var(--line); }
.mini div:first-child { border-left: 0; }
.mini dt { font-size: 11.5px; color: var(--muted); }
.mini dd { margin: 2px 0 0; font-size: 17px; font-weight: 500; }

/* console */
.console { overflow: hidden; }
.con-bar { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-bottom: 1px solid var(--line); background: var(--bg); }
.dots3 { display: inline-flex; gap: 5px; padding-left: 4px; }
.dots3 i { width: 8px; height: 8px; border-radius: 2px; background: var(--line-2); }
.dots3 i:first-child { background: var(--led); }
.tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.tab { border: 0; background: none; height: 26px; padding: 0 10px; border-radius: 6px; font-size: 12.5px; color: var(--muted); cursor: pointer; white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab.on { background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.con-body { padding: 10px 14px 6px; min-height: 236px; display: grid; align-items: center; transition: opacity 0.16s; }
.con-body.swap { opacity: 0; }
.console .code { margin: 0; border-radius: 0; border: 0; border-top: 1px solid var(--line); }
.con-use { position: absolute; right: 12px; bottom: 10px; font-size: 12.5px; font-weight: 500; color: var(--forest); padding: 4px 8px; border-radius: 6px; background: var(--card); border: 1px solid var(--line); transition: transform 0.15s; }
.con-use:hover { transform: translateX(2px); }

/* schematic */
.schem { width: 100%; height: auto; display: block; font-family: var(--sans); }
.schem .dots circle { fill: var(--sdot); }
.schem .wire { fill: none; stroke: var(--wire); stroke-linecap: round; }
.schem .wire.src { stroke: var(--forest); stroke-dasharray: 4 5; }
.schem .pill { fill: var(--card); stroke: var(--line-2); }
.schem text { font-size: 12.5px; fill: var(--ink); font-weight: 500; }
.schem text.k { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.08em; fill: var(--muted); font-weight: 400; }
.schem text.pct { font-family: var(--mono); font-weight: 500; fill: var(--forest); }
.schem text.cond { font-family: var(--mono); font-size: 10.5px; fill: var(--forest); font-weight: 400; }
.schem .core > rect { fill: var(--tile); stroke: var(--line-2); }
.schem .pkt-src { fill: var(--forest); }
.schem .out { transition: transform 0.3s; }
@media (prefers-reduced-motion: reduce) { .schem .pkt { display: none; } }

/* code */
.code { margin: 0; padding: 14px 16px; font: 12.5px/1.7 var(--mono); background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm); overflow-x: auto; color: var(--ink); white-space: pre; }
.c-kw { color: var(--forest); font-weight: 500; }
.c-when { color: var(--c-when); }
.c-out { color: var(--ink); }

/* ---------- sections ---------- */
.sec { padding: 44px 0 0; }
.sec-h { margin-bottom: 18px; display: grid; gap: 8px; }
.sec-h h2 { font-size: clamp(22px, 2.4vw, 28px); }
.sec-h p { color: var(--muted); max-width: 640px; }
.sec-h.split { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.sec-h.split > div { display: grid; gap: 8px; }
.h-pg { font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.03em; }

.ports { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r); background: var(--card); overflow: hidden; }
.port { padding: 18px; border-left: 1px solid var(--line); transition: background 0.2s; }
.port:first-child { border-left: 0; }
.port:hover { background: var(--bg); }
.port-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.port h3 { font-size: 16px; margin-bottom: 6px; }
.port p { font-size: 13.5px; color: var(--muted); }

.steps3 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; counter-reset: s; }
.steps3 li { padding: 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); display: grid; gap: 8px; align-content: start; }
.steps3 .num { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 6px; background: var(--btn); color: var(--btn-ink); font-size: 12px; }
.steps3 h3 { font-size: 15.5px; margin-top: 6px; }
.steps3 p { font-size: 13.5px; color: var(--muted); }
.steps3 code { justify-self: start; margin-top: 4px; font: 12px var(--mono); color: var(--forest); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; }

.cta { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 26px; background: var(--cta-bg); color: var(--cta-ink); border-color: var(--line); flex-wrap: wrap; }
.cta h2 { font-size: 22px; }
.cta p { color: var(--cta-sub); font-size: 14px; margin-top: 4px; }
.cta .btn { background: var(--cta-btn); color: var(--cta-btn-ink); border-color: var(--cta-btn); }
.cta .btn:hover { opacity: 0.9; }

/* ---------- table ---------- */
.table { overflow: hidden; }
.trow { display: grid; grid-template-columns: minmax(180px, 1.6fr) 1.1fr 1fr 0.8fr 0.6fr 0.6fr; gap: 14px; align-items: center; padding: 11px 16px; border-top: 1px solid var(--line); font-size: 13.5px; transition: background 0.15s; }
.trow:first-child { border-top: 0; }
a.trow:hover { background: var(--bg); }
.trow.th { font-size: 11.5px; color: var(--muted); font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.05em; padding-block: 9px; background: var(--bg); }
.tc-coin { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tc-coin b { font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-when { font-size: 12px; color: var(--forest); }
.tc-id, .tc-mc { font-size: 12.5px; }
.tc-age { font-size: 12.5px; }
.av { width: 30px; height: 30px; border-radius: 7px; background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; flex: none; }
.av img { width: 100%; height: 100%; object-fit: cover; }
.av.lg { width: 64px; height: 64px; border-radius: 12px; }
.sbar { display: flex; height: 8px; border-radius: 3px; overflow: hidden; gap: 2px; }
.sbar i { display: block; min-width: 3px; }
.empty { display: grid; justify-items: center; gap: 8px; padding: 26px 20px; text-align: center; color: var(--muted); font-size: 14px; }
.empty b { color: var(--ink); font-weight: 600; }
.more { display: flex; justify-content: center; margin-top: 16px; }
.search { display: flex; gap: 6px; }
.search input { height: 32px; width: 240px; padding: 0 11px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--card); font-size: 13.5px; }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; font-size: 13px; }
.field > span:first-child { font-weight: 500; display: flex; justify-content: space-between; gap: 8px; }
.field em { font-style: normal; color: var(--faint); font-weight: 400; font-size: 12px; }
.field input, .field textarea, .field select, .out-row select, .out-row input, .mint-in { width: 100%; height: 38px; padding: 0 11px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--input); font-size: 14px; transition: border-color 0.15s, box-shadow 0.15s; }
.field textarea { height: auto; padding: 9px 11px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus, .out-row select:focus, .out-row input:focus, .mint-in:focus, .search input:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px var(--ring); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tick-in, .unit-in, .pct-in { position: relative; display: block; }
.tick-in i { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--muted); font-family: var(--mono); }
.tick-in input { padding-left: 24px; font-family: var(--mono); text-transform: uppercase; }
.unit-in i, .pct-in i { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--muted); font-size: 12.5px; pointer-events: none; }
.unit-in input { padding-right: 60px; font-family: var(--mono); }
.drop { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px dashed var(--line-2); border-radius: 9px; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.drop:hover, .drop.over { border-color: var(--forest); background: var(--bg); }
.drop.has { border-style: solid; }
.drop .th { width: 44px; height: 44px; border-radius: 8px; background: var(--bg-2); display: grid; place-items: center; font-size: 20px; color: var(--muted); overflow: hidden; flex: none; }
.drop .th img { width: 100%; height: 100%; object-fit: cover; }
.drop b { display: block; font-weight: 500; font-size: 13.5px; }
.drop small { color: var(--muted); font-size: 12px; }
.status { padding: 10px 12px; border-radius: 8px; font-size: 13px; border: 1px solid var(--line); background: var(--bg); }
.status.err { border-color: var(--err-line); background: var(--err-bg); color: var(--err-ink); }
.status.ok { border-color: var(--ring); background: var(--ok-bg); color: var(--forest); }

/* ---------- builder ---------- */
.bld { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 20px; align-items: start; }
.bld-l { display: grid; gap: 12px; }
.step { padding: 18px; display: grid; gap: 14px; }
.step header { display: flex; align-items: baseline; gap: 10px; }
.step .num { font-size: 11.5px; color: var(--muted); }
.step h2 { font-size: 16px; }
.step small { margin-left: auto; color: var(--faint); font-size: 12px; }
.seg { display: grid; grid-template-columns: repeat(4, 1fr); padding: 3px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--bg); gap: 2px; }
.seg-b { height: 32px; border: 0; border-radius: 7px; background: none; font-size: 13px; color: var(--muted); cursor: pointer; transition: background 0.15s, color 0.15s; }
.seg-b:hover { color: var(--ink); }
.seg-b.on { background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px var(--line-2), 0 2px 6px -3px rgba(0, 0, 0, 0.3); font-weight: 500; }
.outs { display: grid; gap: 8px; }
.out-row { display: grid; grid-template-columns: 10px 170px 1fr 78px 30px; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); animation: pageIn 0.25s both; }
.out-row .sw, .sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.out-row select { height: 32px; padding: 0 8px; font-size: 13px; }
.out-row .pct-in input { height: 32px; padding: 0 22px 0 8px; font-family: var(--mono); font-size: 13px; }
.out-row .x { width: 30px; height: 30px; border-radius: 7px; border: 1px solid var(--line); background: var(--card); cursor: pointer; color: var(--muted); font-size: 16px; line-height: 1; }
.out-row .x:hover:not(:disabled) { color: var(--warn); border-color: var(--line-2); }
.out-row .x:disabled { opacity: 0.35; cursor: not-allowed; }
.out-row .mint-in { grid-column: 2 / -1; height: 32px; font-size: 12.5px; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px; background: var(--line-2); border: 0; padding: 0; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 5px; background: var(--forest); border: 3px solid var(--card); box-shadow: 0 0 0 1px var(--line-2); cursor: pointer; }
input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 4px; background: var(--forest); border: 3px solid var(--card); cursor: pointer; }
.outs-foot { display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.total { margin-left: auto; font-size: 12.5px; padding: 3px 8px; border-radius: 6px; background: var(--ok-bg); color: var(--forest); }
.total.bad { background: var(--err-bg); color: var(--warn); }
.bld-r { position: sticky; top: 104px; }
.preview { padding: 16px; display: grid; gap: 12px; }
.pv-h { display: flex; align-items: center; gap: 10px; }
.pv-h .av { width: 38px; height: 38px; border-radius: 9px; }
.pv-h b { display: block; font-weight: 600; font-size: 14.5px; }
.pv-h .mono { font-size: 12px; }
.pv-h .tag { margin-left: auto; }
.pv-schem { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 6px 4px; background: var(--bg); min-height: 120px; }
.check { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--muted); }
.check span { display: inline-flex; align-items: center; gap: 6px; }
.check span.ok { color: var(--ink); }

/* ---------- coin ---------- */
.coin-h { display: flex; gap: 16px; align-items: center; margin-bottom: 22px; flex-wrap: wrap; }
.coin-h > div { display: grid; gap: 6px; }
.coin-h .share { margin-left: auto; }
.coin-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; align-items: start; }
.col { display: grid; gap: 14px; }
.col .code + .fine { margin-top: 10px; word-break: break-all; }
.about { margin-top: 8px; color: var(--muted); }
.facts { list-style: none; margin: 10px 0 0; padding: 0; display: grid; }
.facts li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.facts li:first-child { border-top: 0; }
.facts span { color: var(--muted); }
.facts b { font-weight: 500; }
.facts a { color: var(--forest); }
.facts a:hover { text-decoration: underline; }
.sim { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 6px; }
.sim li { display: grid; grid-template-columns: 10px 1fr auto; gap: 10px; align-items: center; font-size: 13.5px; padding: 7px 10px; border-radius: 7px; background: var(--bg); }
.sim i { width: 10px; height: 10px; border-radius: 3px; }
.sim b { font-weight: 500; font-size: 12.5px; }
.pad .field { margin-top: 10px; }

/* ---------- spec ---------- */
.doc { display: grid; grid-template-columns: 180px minmax(0, 720px); gap: 48px; }
.toc { position: sticky; top: 112px; align-self: start; display: grid; gap: 2px; }
.toc .k { margin-bottom: 8px; }
.toc a { font-size: 13.5px; color: var(--muted); padding: 4px 0 4px 10px; border-left: 1px solid var(--line); }
.toc a:hover { color: var(--ink); border-left-color: var(--forest); }
.doc article > .k { margin-bottom: 8px; }
.doc-s { padding-top: 30px; display: grid; gap: 12px; scroll-margin-top: 110px; }
.doc-s h2 { font-size: 19px; }
.doc-s p, .doc-s li { color: var(--muted); font-size: 14.5px; }
.doc-s code, .plain code { font: 12.5px var(--mono); color: var(--forest); }
.dtable { border: 1px solid var(--line); border-radius: var(--r); background: var(--card); overflow: hidden; }
.dtable > div { display: grid; grid-template-columns: 190px 130px 1fr; gap: 14px; padding: 11px 14px; border-top: 1px solid var(--line); font-size: 13.5px; align-items: baseline; }
.dtable > div:first-child { border-top: 0; }
.dtable code { display: inline-flex; align-items: center; gap: 7px; }
.dtable b { font-weight: 500; }
.dtable span { color: var(--muted); }
.plain { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.doc .row { margin-top: 30px; }

/* ---------- footer, toasts ---------- */
.foot { margin-top: 72px; border-top: 1px solid var(--line); background: var(--card); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 28px; padding: 34px 0 26px; }
.foot-brand p { margin: 12px 0 14px; color: var(--muted); font-size: 13.5px; max-width: 340px; }
.foot-col { display: grid; gap: 7px; align-content: start; font-size: 13.5px; color: var(--muted); }
.foot-col a:hover { color: var(--ink); }
.foot-col .k { margin-bottom: 4px; }
.foot-base { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0 22px; border-top: 1px solid var(--line); font-size: 12px; color: var(--faint); flex-wrap: wrap; }
.toasts { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 90; display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { padding: 9px 14px; border-radius: 9px; background: var(--toast); color: var(--toast-ink); font-size: 13.5px; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6); animation: pageIn 0.25s both; max-width: min(520px, 92vw); }
.toast.err { background: #7a3a1f; color: #fff; }
.toast.out { opacity: 0; transform: translateY(6px); transition: 0.4s; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; }
  .bld, .coin-grid { grid-template-columns: 1fr; }
  .bld-r { position: static; }
  .ports { grid-template-columns: 1fr 1fr; }
  .port:nth-child(3) { border-left: 0; }
  .port:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .doc { grid-template-columns: 1fr; gap: 0; }
  .toc { display: none; }
  .trow { grid-template-columns: minmax(150px, 1.5fr) 1fr 1fr 0.6fr; }
  .tc-id, .tc-age { display: none; }
  .trow.th span:nth-child(4), .trow.th span:nth-child(6) { display: none; }
}
@media (max-width: 720px) {
  .top { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
  .con-body { min-height: 0; }
  .seg { grid-template-columns: 1fr 1fr; }
  .brand b { display: none; }
  .top-end { margin-left: auto; }
  .nav { position: fixed; bottom: 12px; left: 50%; transform: translateX(-50%); margin: 0; box-shadow: var(--shadow); z-index: 50; }
  .nav a { padding: 6px 9px; font-size: 12.5px; }
  .socials .ib:nth-child(n + 3) { display: none; }
  .steps3 { grid-template-columns: 1fr; }
  .fields { grid-template-columns: 1fr; }
  .mini { width: 100%; }
  .mini div { flex: 1; padding: 9px 10px; }
  .out-row { grid-template-columns: 10px 1fr 70px 30px; }
  .out-row input[type="range"] { grid-column: 2 / -1; grid-row: 2; }
  .out-row .mint-in { grid-row: 3; }
  .trow { grid-template-columns: 1fr auto; }
  .tc-when, .tc-split { display: none; }
  .trow.th { display: none; }
  .dtable > div { grid-template-columns: 1fr; gap: 3px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .foot { padding-bottom: 60px; }
  .status-line .st-b:not(:first-of-type) { display: none; }
  .search input { width: 100%; }
  .search { width: 100%; }
}
@media (max-width: 420px) { .nav a .led { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } [data-fade] { opacity: 1; transform: none; } }

/* release polish: footer sits at the bottom on short pages, the coin page schematic stays compact */
#view { min-height: calc(100vh - 89px); display: flex; flex-direction: column; }
#view > .page-in { flex: 1; }
.col .schem { max-width: 560px; margin-inline: auto; }

/* theme switch; the logo tile follows the theme */
.logo .tile { fill: var(--tile); }
:root[data-theme="dark"] .logo .tile { stroke: rgba(255, 255, 255, 0.14); stroke-width: 24; }
.theme-b { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; transition: border-color 0.15s, transform 0.15s; }
.theme-b:hover { border-color: var(--line-2); transform: translateY(-1px); }
.theme-b .sun { display: none; }
:root[data-theme="dark"] .theme-b .sun { display: block; }
:root[data-theme="dark"] .theme-b .moon { display: none; }

/* ==========================================================================
   ROUTED additions: brand mark, home (hero, router story, cards), buy box, agent
   ========================================================================== */
.mark { display: block; object-fit: contain; }
.brand b { letter-spacing: 0.02em; font-weight: 800; }
.btn.lg { height: 48px; padding: 0 24px; font-size: 15px; }
.row.c { justify-content: center; }

/* hero: narrow centred column, one word as a sticker */
.hero2 { width: min(820px, 100% - 32px); margin: 0 auto; padding: 84px 0 36px; text-align: center; display: grid; justify-items: center; gap: 22px; }
.hero2 .eyebrow { border-radius: 999px; }
.hero2 h1 { font-size: clamp(44px, 8vw, 92px); line-height: 0.98; letter-spacing: -0.045em; font-weight: 800; }
.stk { display: inline-block; padding: 0 0.18em 0.04em; margin: 0 0.04em; border-radius: 0.22em; background: var(--led); color: #07140b; transform: rotate(-2.5deg); box-shadow: 0 0.06em 0 rgba(0, 0, 0, 0.25); transition: transform 0.3s cubic-bezier(0.3, 1.6, 0.5, 1); }
.stk:hover { transform: rotate(1.5deg) scale(1.03); }
.hero2 .lede { margin: 0; max-width: 600px; font-size: 17px; }
.nudge { margin-top: 18px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); padding: 6px 12px; border: 1px dashed var(--line-2); border-radius: 999px; animation: bob 2.2s ease-in-out infinite; }
.nudge:hover { color: var(--ink); border-color: var(--led); }
@keyframes bob { 50% { transform: translateY(5px); } }

/* the story: a tall section, a sticky stage */
.story { position: relative; height: 420vh; }
.stage { position: sticky; top: 89px; height: calc(100vh - 89px); min-height: 560px; display: grid; grid-template-rows: auto auto auto 1fr; justify-items: center; align-content: start; padding-top: 3vh; overflow: hidden; }
.beat-h { position: relative; width: min(640px, 100% - 32px); text-align: center; min-height: 118px; }
.beat-h .k { display: block; margin-bottom: 8px; color: var(--forest); }
.beat { position: absolute; inset: 26px 0 auto; opacity: 0; transform: translateY(10px); transition: opacity 0.35s, transform 0.35s; pointer-events: none; }
.beat.on { opacity: 1; transform: none; }
.beat h2 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 800; letter-spacing: -0.035em; }
.beat p { margin-top: 8px; color: var(--muted); font-size: 15.5px; }
.rt { position: relative; width: clamp(220px, calc((100vh - 540px) * 1.39), min(480px, 78vw)); aspect-ratio: 760 / 546; margin-top: 4px; }
.rt img { position: absolute; inset: 0; width: 100%; height: 100%; user-select: none; -webkit-user-drag: none; }
.rt-led { opacity: 0; transition: opacity 0.25s; }
.rt-led.on { opacity: 1; animation: blink 2.4s steps(1) infinite; }
@keyframes blink { 92% { opacity: 1; } 95% { opacity: 0.45; } }
.pkt-in { position: absolute; left: 50%; top: 0; padding: 5px 10px; border-radius: 999px; background: var(--led); color: #07140b; font-size: 12px; font-weight: 600; opacity: 0; transform: translate(-50%, -60%); box-shadow: 0 0 0 6px var(--ring); }
.flow { position: relative; width: min(560px, 90vw); height: 120px; margin-top: -2px; opacity: 0.18; transition: opacity 0.4s; }
.flow.on { opacity: 1; }
.flow svg { width: 100%; height: 100px; overflow: visible; }
.flow path { fill: none; stroke: var(--wire); stroke-width: 2; stroke-dasharray: 5 6; vector-effect: non-scaling-stroke; }
.flow circle { fill: var(--led); opacity: 0; filter: drop-shadow(0 0 6px var(--led)); }
.dest { position: absolute; top: 96px; transform: translateX(-50%); display: inline-flex; align-items: baseline; gap: 6px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); font-size: 12.5px; white-space: nowrap; transition: background 0.25s, border-color 0.25s, transform 0.25s; }
.dest small { color: var(--muted); font-family: var(--mono); }
.dest.hit { border-color: var(--led); transform: translateX(-50%) scale(1.06); }
.dest.main.hit { background: var(--led); color: #07140b; }
.dest.main.hit small { color: #07140b; }
.bcards { position: relative; width: min(380px, 100% - 32px); min-height: 150px; margin-top: 18px; }
.bcard { position: absolute; inset: 0 0 auto; opacity: 0; transform: translateY(12px) scale(0.98); transition: opacity 0.35s, transform 0.35s; pointer-events: none; }
.bcard.on { opacity: 1; transform: none; }
.bcard > * { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.bc-coin { display: flex; align-items: center; gap: 12px; padding: 14px; }
.bc-coin b { display: block; }
.bc-coin .mono { font-size: 12px; color: var(--muted); }
.bc-coin .tag { margin-left: auto; }
.bc-av { width: 44px; height: 44px; border-radius: 12px; background: conic-gradient(from 200deg, var(--led), var(--a-creator), var(--a-holders), var(--led)); }
.bc-code { margin: 0; }
.bc-chat { display: grid; gap: 8px; padding: 14px; }
.bub { max-width: 88%; padding: 8px 12px; border-radius: 14px; font-size: 13.5px; }
.bub.them { justify-self: end; background: var(--bg-2); border-bottom-right-radius: 4px; }
.bub.me { background: var(--ok-bg); border: 1px solid var(--ring); border-bottom-left-radius: 4px; }
.bub.me b { display: block; font-size: 11.5px; color: var(--forest); }
.bc-buy { display: grid; gap: 10px; padding: 14px; }
.bc-buy > div { display: flex; justify-content: space-between; align-items: baseline; }
.bc-buy b { font-size: 20px; }
.bc-buy small { color: var(--muted); font-size: 11.5px; }
.story.static { height: auto; }
.story.static .stage { position: static; height: auto; padding-bottom: 40px; }
.story.static .beat, .story.static .bcard { position: static; opacity: 1; transform: none; margin-bottom: 16px; }
.story.static .beat-h, .story.static .bcards { min-height: 0; }

.stats3 { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--r); background: var(--card); overflow: hidden; }
.stats3 > div { padding: 20px 22px; border-left: 1px solid var(--line); display: grid; gap: 6px; }
.stats3 > div:first-child { border-left: 0; }
.stats3 b { font-size: clamp(26px, 3vw, 34px); font-weight: 500; letter-spacing: -0.02em; }

.lcs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.lc { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); transition: transform 0.2s, border-color 0.2s; }
.lc:hover { transform: translateY(-3px); border-color: var(--line-2); }
.lc-img { aspect-ratio: 1; border-radius: 12px; background: var(--bg-2); overflow: hidden; }
.lc-img img { width: 100%; height: 100%; object-fit: cover; }
.lc-b { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.lc-b b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-f { display: flex; justify-content: space-between; font-size: 12.5px; }
.lc-f b { color: var(--ink); font-weight: 500; }
.cta h2 { max-width: 560px; }

/* ---------- coin page: buy box, ecosystem, agent chat ---------- */
.buy { display: grid; gap: 12px; }
.buy-in { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
.buy-legs { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.buy-legs li { display: grid; grid-template-columns: 10px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--bg); font-size: 13.5px; }
.buy-legs i { width: 10px; height: 10px; border-radius: 3px; }
.buy-legs b { font-weight: 500; font-size: 12.5px; }
.eco { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.eco a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; font-size: 13.5px; }
.eco a:hover { background: var(--bg); }
.eco .av { width: 28px; height: 28px; }
.chat { display: grid; gap: 10px; }
.chat-log { display: grid; gap: 8px; max-height: 340px; overflow-y: auto; padding: 4px 2px; align-content: start; }
.chat-in { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.chat-in input { height: 40px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--input); font-size: 14px; }
.chat-in input:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px var(--ring); }
.agent-h { display: flex; align-items: center; gap: 10px; }
.ag { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--led); color: #07140b; font-weight: 800; flex: none; }
.agent-h b { display: block; }
.agent-h small { color: var(--muted); font-size: 12px; }
.agent-h .tag { margin-left: auto; }
.qchips { display: flex; flex-wrap: wrap; gap: 6px; }
.bub.typing { color: var(--muted); }
.trades { list-style: none; margin: 10px 0 0; padding: 0; display: grid; }
.trades li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; }
.trades li:first-child { border-top: 0; }
.trades a { color: var(--forest); }
.agent-card { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); font-size: 13px; }
.agent-card .ag { width: 30px; height: 30px; border-radius: 9px; }
.agent-card small { display: block; color: var(--muted); font-size: 12px; }

@media (max-width: 980px) { .lcs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) {
  .hero2 { padding-top: 48px; }
  .beat-h { min-height: 150px; }
  .stats3 { grid-template-columns: 1fr; }
  .stats3 > div { border-left: 0; border-top: 1px solid var(--line); }
  .stats3 > div:first-child { border-top: 0; }
  .lcs { grid-template-columns: 1fr 1fr; gap: 8px; }
  .dest { font-size: 11px; padding: 4px 8px; }
}
@media (min-width: 1100px) { .bcards { position: absolute; right: max(24px, calc(50% - 600px)); top: 44%; width: 320px; margin: 0; } }
@media (max-width: 1099px) and (max-height: 760px) { .bcards { display: none; } }
