/* Feeverage — print palette from the logo and banner: cream paper, process yellow, black.
   Heavy wide grotesque for display, mono for labels, hard offset shadows, crop marks.
   Light is the default; dark keeps the same yellow and swaps paper for night. */
:root {
  --paper: #f4f2e8;
  --sheet: #fbfaf4;
  --ink: #111111;        /* text, borders */
  --shade: #111111;      /* hard offset shadows */
  --solid: #111111;      /* solid black blocks (ticker, table heads) */
  --on-solid: #f4f2e8;
  --yellow: #feea05;
  --on-yellow: #111111;  /* text on yellow, both themes */
  --yellow-soft: #fff6a8;
  --muted: #5b5848;
  --hair: #d6d2bf;
  --up: #0d7a3e;
  --down: #c8321f;
  --tick-up: #5fd38d;
  --tick-down: #ff7a66;
  --f-display: "Archivo", "Arial Black", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --f-body: "Archivo", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", monospace;
  --shadow: 6px 6px 0 var(--shade);
  --shadow-sm: 4px 4px 0 var(--shade);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --paper: #1b1a16;
  --sheet: #24231d;
  --ink: #f1eee2;
  --shade: #000000;
  --solid: #0b0b09;
  --on-solid: #f1eee2;
  --yellow-soft: #3a3714;
  --muted: #aba795;
  --hair: #3b3930;
  --up: #4cc489;
  --down: #ff7a66;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 15.5px/1.55 var(--f-body); -webkit-font-smoothing: antialiased; transition: background .2s, color .2s; }
img { max-width: 100%; }
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 20px; }
a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { background: var(--yellow); color: var(--on-yellow); }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 900; font-stretch: 112%; text-wrap: balance; margin: 0; line-height: 1; }
p { margin: 0; }
.mono, .num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.label { font: 500 11.5px/1.25 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; }
.muted { color: var(--muted); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--yellow); color: var(--on-yellow); }
.pos { color: var(--up); } .neg { color: var(--down); }

/* ---------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 2.5px solid var(--ink); background: var(--yellow); color: var(--on-yellow);
  padding: 11px 18px; font: 900 14px/1 var(--f-display); font-stretch: 112%; text-transform: uppercase; letter-spacing: .02em;
  box-shadow: var(--shadow-sm); cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .08s, box-shadow .08s;
}
.btn:hover { background: var(--yellow); color: var(--on-yellow); transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--shade); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--shade); }
.btn.dark, .btn.dark:hover { background: var(--solid); color: var(--yellow); }
.btn.ghost, .btn.ghost:hover { background: var(--sheet); color: var(--ink); }
.btn.sm { padding: 7px 11px; font-size: 12px; box-shadow: 3px 3px 0 var(--shade); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: var(--shadow-sm); }

/* ---------- header + menu */
header.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: var(--paper); border-bottom: 2.5px solid var(--ink); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 11px; position: relative; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand:hover { background: none; color: var(--ink); }
.brand img { width: 40px; height: 40px; display: block; }
.brand span { font: 900 21px/1 var(--f-display); font-stretch: 120%; letter-spacing: -.01em; }
.menu-btn .burger { width: 18px; height: 12px; position: relative; display: inline-block; border-block: 2.5px solid currentColor; }
.menu-btn .burger::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 2.5px solid currentColor; transform: translateY(-50%); }
.menu-btn[aria-expanded="true"] .burger { border-color: transparent; }
.menu-btn[aria-expanded="true"] .burger::before, .menu-btn[aria-expanded="true"] .burger::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 2.5px solid currentColor; }
.menu-btn[aria-expanded="true"] .burger::before { transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .burger::after { transform: rotate(-45deg); }
.menu {
  position: absolute; right: 20px; top: calc(100% + 10px); width: min(380px, calc(100vw - 32px));
  background: var(--sheet); border: 2.5px solid var(--ink); box-shadow: 8px 8px 0 var(--shade); z-index: 40;
  animation: drop .18s ease-out;
}
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }
.menu .mi { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; padding: 15px 16px; border: 0; border-bottom: 2px solid var(--ink); background: none; text-decoration: none; cursor: pointer; text-align: left; color: var(--ink); }
.menu .mi:hover { background: var(--yellow); color: var(--on-yellow); }
.menu .mi:hover small { color: var(--on-yellow); }
.menu .mi b { font: 900 17px/1 var(--f-display); font-stretch: 112%; text-transform: uppercase; letter-spacing: .02em; }
.menu .mi small { font: 500 11.5px/1.2 var(--f-mono); color: var(--muted); text-align: right; overflow-wrap: anywhere; }
.menu .mi.static { cursor: default; }
.menu .mi.static:hover { background: none; color: var(--ink); }
.menu .mi.static:hover small { color: var(--muted); }
.menu .toggle { display: inline-flex; border: 2px solid var(--ink); }
.menu .toggle button { border: 0; background: var(--paper); color: var(--ink); padding: 7px 11px; font: 700 12px/1 var(--f-mono); letter-spacing: .08em; cursor: pointer; }
.menu .toggle button + button { border-left: 2px solid var(--ink); }
.menu .toggle button[aria-pressed="true"] { background: var(--solid); color: var(--yellow); }
.menu .mi.x { border-bottom: 0; }
.menu .mi.x svg { width: 20px; height: 20px; fill: currentColor; }
.menu .mi.x.off { opacity: .5; pointer-events: none; }

/* ---------- ticker */
.ticker { border-bottom: 2.5px solid var(--ink); background: var(--solid); color: var(--on-solid); overflow: hidden; white-space: nowrap; min-height: 32px; }
.ticker .track { display: inline-flex; padding-block: 8px; animation: tick 36s linear infinite; }
.ticker span.item { display: inline-flex; gap: 10px; padding-inline: 22px; font: 500 12.5px/1 var(--f-mono); letter-spacing: .06em; border-right: 1px solid #3a3a3a; }
.ticker b { color: var(--yellow); font-weight: 700; }
.ticker .up { color: var(--tick-up); } .ticker .down { color: var(--tick-down); }
.ticker span.item .p { display: inline-block; min-width: 7ch; text-align: right; font-variant-numeric: tabular-nums; padding-inline: 2px; }
.ticker span.item.tick-up .p { animation: flashUp .9s ease-out; }
.ticker span.item.tick-down .p { animation: flashDown .9s ease-out; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes flashUp { 0% { color: #111; background: var(--tick-up); } 100% { color: inherit; background: transparent; } }
@keyframes flashDown { 0% { color: #111; background: var(--tick-down); } 100% { color: inherit; background: transparent; } }
.flash-up { animation: flashUpText .9s ease-out; }
.flash-down { animation: flashDownText .9s ease-out; }
@keyframes flashUpText { 0% { background: var(--tick-up); color: #111; } }
@keyframes flashDownText { 0% { background: var(--tick-down); color: #111; } }

/* ---------- hero */
.hero { position: relative; padding-block: 54px 40px; }
.crop { position: absolute; width: 26px; height: 26px; border: 0 solid var(--ink); }
.crop.tl { top: 18px; left: 0; border-top-width: 3px; border-left-width: 3px; }
.crop.tr { top: 18px; right: 0; border-top-width: 3px; border-right-width: 3px; }
.crop.bl { bottom: 4px; left: 0; border-bottom-width: 3px; border-left-width: 3px; }
.crop.br { bottom: 4px; right: 0; border-bottom-width: 3px; border-right-width: 3px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-inline: 18px; }
.wordmark { position: relative; font: 900 clamp(34px, 6.4vw, 94px)/.86 var(--f-display); font-stretch: 118%; letter-spacing: -.035em; text-transform: uppercase; margin: 0 0 8px; padding: 0 0 35px 0; }
.wordmark .layer { display: block; }
.wordmark .layer.echo { position: absolute; inset: 0 auto auto 0; color: transparent; -webkit-text-stroke: 2px var(--ink); pointer-events: none; user-select: none;
  transform: translate(calc(var(--i) * var(--dx, 7px)), calc(var(--i) * var(--dy, 7px))); z-index: calc(10 - var(--i)); transition: transform .5s cubic-bezier(.2, .9, .25, 1.2); }
.wordmark .layer.echo.y { -webkit-text-stroke: 3px var(--yellow); }
.wordmark .layer.top { position: relative; z-index: 20; color: var(--ink); text-shadow: 3px 3px 0 var(--paper); }
.wordmark.folded .layer.echo { transform: translate(0, 0); }
.strip { display: inline-block; background: var(--yellow); color: var(--on-yellow); border: 2.5px solid var(--ink); box-shadow: 9px 9px 0 var(--shade); padding: 12px 20px 11px; font: 900 clamp(18px, 2.6vw, 30px)/1 var(--f-display); font-stretch: 112%; text-transform: uppercase; transform: rotate(-1.6deg); margin-top: 6px; animation: slap .7s .35s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes slap { from { transform: rotate(-8deg) translate(-30px, 18px) scale(.92); box-shadow: 0 0 0 var(--shade); } to { transform: rotate(-1.6deg); box-shadow: 9px 9px 0 var(--shade); } }
.hero-copy { margin-top: 30px; font-size: 18px; max-width: 52ch; }
.hero-copy strong { background: var(--yellow); color: var(--on-yellow); padding-inline: 3px; }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

.fig { display: grid; gap: 12px; }
.fig .bar { display: flex; gap: 4px; height: 30px; }
.fig .bar i { display: block; flex: 0 0 calc((100% - 76px) / 20); background: var(--ink); transform-origin: left center; animation: pop .22s ease-out both; }
.fig .bar i.y { background: var(--yellow); box-shadow: inset 0 0 0 2.5px var(--ink); }
.fig .bar i.ghost { background: transparent; box-shadow: inset 0 0 0 1.5px var(--hair); animation: none; }
@keyframes pop { from { transform: scaleX(0); } }
.ruler { height: 14px; border-top: 2.5px solid var(--ink);
  background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 5%) top left / 100% 7px no-repeat,
              repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 25%) top left / 100% 13px no-repeat; }
.row2 { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.fig-card { border: 2.5px solid var(--ink); background: var(--sheet); box-shadow: var(--shadow); padding: 20px; }
.fig-card .big { font: 900 54px/1 var(--f-display); font-stretch: 118%; }

/* ---------- stats */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); border: 2.5px solid var(--ink); background: var(--sheet); box-shadow: var(--shadow); }
.stat { padding: 18px 18px 20px; border-left: 2.5px solid var(--ink); min-width: 0; display: grid; gap: 10px; align-content: start; }
.stat:first-child { border-left: 0; }
.stat .v { font: 900 clamp(26px, 3vw, 38px)/1 var(--f-display); font-stretch: 112%; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat .s { font: 500 12px/1.3 var(--f-mono); color: var(--muted); }
.stat.hl { background: var(--yellow); color: var(--on-yellow); }
.stat.hl .s { color: var(--on-yellow); opacity: .75; }
.stat .v.pos { color: var(--up); } .stat .v.neg { color: var(--down); }
.stamp { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.lsrow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; margin-top: 18px; }
.lsbar { display: flex; height: 16px; border: 2.5px solid var(--ink); background: var(--paper); }
.lsbar i { display: block; transition: width .6s cubic-bezier(.2,.9,.25,1); }
.lsbar i.l { background: var(--yellow); }
.lsbar i.s { background: var(--ink); }

/* ---------- sections */
section.block { padding-top: 88px; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; padding-bottom: 14px; border-bottom: 2.5px solid var(--ink); }
.sec-head h2, .sec-head h1 { font-size: clamp(36px, 5.6vw, 66px); text-transform: uppercase; letter-spacing: -.015em; }
.sec-head .label { display: block; margin-bottom: 12px; }
.echo-h { text-shadow: 2px 2px 0 var(--paper), 3.5px 3.5px 0 var(--ink), 5.5px 5.5px 0 var(--paper), 7px 7px 0 var(--yellow), 9px 9px 0 var(--paper), 10.5px 10.5px 0 var(--ink); }
.lede { font-size: 18px; max-width: 64ch; margin-bottom: 30px; }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); border: 2.5px solid var(--ink); background: var(--sheet); box-shadow: var(--shadow); }
.step { padding: 22px 20px 24px; border-left: 2.5px solid var(--ink); border-top: 2.5px solid var(--ink); min-width: 0; display: grid; gap: 12px; align-content: start; }
.step:nth-child(3n+1) { border-left: 0; }
.step:nth-child(-n+3) { border-top: 0; }
.step.hl { background: var(--yellow); color: var(--on-yellow); }
.step h3 { font-size: 22px; text-transform: uppercase; }
.step p { font-size: 15px; }
.step ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 14px; }
.step .glyph { width: 46px; height: 46px; border: 2.5px solid currentColor; background: var(--paper); color: var(--ink); display: grid; place-items: center; font: 900 20px/1 var(--f-display); }
.step.hl .glyph { background: var(--solid); color: var(--yellow); border-color: var(--on-yellow); }
.pipe { margin-top: 16px; border: 2.5px solid var(--ink); background: var(--solid); color: var(--on-solid); padding: 14px 18px; display: flex; align-items: center; gap: 14px; overflow: hidden; }
.pipe .lane { position: relative; flex: 1; height: 4px; background: repeating-linear-gradient(90deg, var(--yellow) 0 10px, transparent 10px 18px); background-size: 18px 4px; animation: flow 0.9s linear infinite; }
@keyframes flow { to { background-position: 18px 0; } }
.pipe .node { font: 700 12px/1 var(--f-mono); letter-spacing: .1em; border: 2px solid var(--yellow); color: var(--yellow); padding: 7px 9px; white-space: nowrap; }
.explain { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-top: 28px; align-items: start; }
.explain h3 { font-size: 22px; text-transform: uppercase; margin-bottom: 14px; }
.explain p + p { margin-top: 10px; }
.calc { display: grid; grid-template-columns: 1fr auto; border: 2px solid var(--ink); margin-top: 12px; }
.calc span { padding: 9px 12px; border-bottom: 1.5px solid var(--hair); font-size: 14.5px; }
.calc span:nth-child(even) { text-align: right; font-family: var(--f-mono); font-weight: 600; }
.calc span:nth-last-child(-n+2) { border-bottom: 0; }
.calc .tot { background: var(--yellow); color: var(--on-yellow); font-weight: 800; }
.gloss { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0; border: 2px solid var(--ink); }
.gloss dt, .gloss dd { margin: 0; padding: 10px 12px; border-bottom: 1.5px solid var(--hair); }
.gloss dt { font: 700 11.5px/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; border-right: 1.5px solid var(--hair); white-space: nowrap; }
.gloss dd { font-size: 14.5px; }
.gloss > :nth-last-child(-n+2) { border-bottom: 0; }

/* ---------- forms + panels */
.launch { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.panel { background: var(--sheet); border: 2.5px solid var(--ink); box-shadow: var(--shadow); padding: 22px; min-width: 0; }
fieldset { border: 0; padding: 0; margin: 0 0 24px; display: grid; gap: 14px; min-width: 0; }
legend { padding: 4px 8px; margin-bottom: 14px; background: var(--solid); color: var(--yellow); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label.f { display: grid; gap: 6px; font-size: 13.5px; font-weight: 700; min-width: 0; }
label.f small { color: var(--muted); font-weight: 400; }
.input, input[type=text], input[type=url], input[type=number], input[type=search], textarea {
  width: 100%; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: 0; padding: 10px 12px; font-weight: 500;
}
textarea { min-height: 84px; resize: vertical; }
input:focus, textarea:focus { outline: none; background: var(--yellow-soft); box-shadow: 3px 3px 0 var(--shade); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .6; font-weight: 400; }
.picker { display: flex; flex-wrap: wrap; gap: 8px; }
.picker button, .seg button { border: 2px solid var(--ink); background: var(--paper); color: var(--ink); padding: 9px 13px; cursor: pointer; font: 700 13px/1 var(--f-mono); letter-spacing: .06em; }
.picker button[aria-pressed=true] { background: var(--solid); color: var(--yellow); }
.picker .px { display: block; font-weight: 400; font-size: 10.5px; margin-top: 4px; opacity: .75; }
.seg { display: grid; grid-template-columns: 1fr 1fr; }
.seg button { padding: 12px; font-size: 14px; }
.seg button + button { border-left: 0; }
.seg button[aria-pressed=true] { background: var(--yellow); color: var(--on-yellow); box-shadow: inset 0 0 0 2px var(--ink); }
input[type=range] { width: 100%; accent-color: var(--yellow); height: 28px; }
.lev-read { display: flex; justify-content: space-between; align-items: baseline; }
.lev-read .num { font: 900 36px/1 var(--f-display); font-stretch: 118%; }
.logo-drop { display: flex; gap: 12px; align-items: center; }
.logo-drop .prev { width: 56px; height: 56px; border: 2px solid var(--ink); background: var(--yellow) center/cover no-repeat; flex: none; }
.summary { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 90px); display: grid; gap: 18px; }
.summary h3 { font-size: 26px; text-transform: uppercase; font-stretch: 112%; overflow-wrap: anywhere; }
.kv { display: grid; grid-template-columns: 1fr auto; margin: 0; border: 2px solid var(--ink); }
.kv dt, .kv dd { margin: 0; padding: 9px 12px; border-bottom: 1.5px solid var(--ink); font-size: 14px; }
.kv dd { text-align: right; font-family: var(--f-mono); font-variant-numeric: tabular-nums; font-weight: 500; overflow-wrap: anywhere; }
.kv > :nth-last-child(-n+2) { border-bottom: 0; }
.kv .total { background: var(--yellow); color: var(--on-yellow); font-weight: 800; }
.note { font-size: 13px; color: var(--muted); }
.status { margin-top: 14px; font: 13px/1.5 var(--f-mono); word-break: break-word; min-height: 1em; }
.status.err { color: var(--down); }
.status.ok { color: var(--up); }
.checks { display: grid; gap: 6px; font: 12.5px/1.35 var(--f-mono); }
.checks div { display: flex; gap: 8px; align-items: center; }
.sq { width: 9px; height: 9px; background: var(--yellow); outline: 2px solid var(--ink); flex: none; }
.sq.live { background: var(--up); }
.sq.off { background: var(--down); }
.pill { display: inline-flex; align-items: center; gap: 8px; border: 2px solid var(--ink); padding: 7px 10px; background: var(--sheet); }

/* ---------- token list */
.filters { display: grid; gap: 12px; margin-bottom: 24px; }
.filters .line { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.tabs { display: flex; overflow-x: auto; max-width: 100%; box-shadow: 3px 3px 0 var(--shade); }
.tabs button { border: 2px solid var(--ink); background: var(--sheet); color: var(--ink); padding: 10px 13px; font: 700 12.5px/1 var(--f-mono); letter-spacing: .08em; cursor: pointer; white-space: nowrap; display: inline-flex; gap: 7px; align-items: center; }
.tabs button + button { border-left: 0; }
.tabs button[aria-pressed=true] { background: var(--solid); color: var(--yellow); }
.tabs button .n { font-weight: 400; opacity: .7; }
.tabs.side button[data-side=long][aria-pressed=true] { background: var(--yellow); color: var(--on-yellow); }
.search { min-width: 0; flex: 1 1 240px; max-width: 360px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; }
.card { border: 2.5px solid var(--ink); background: var(--sheet); box-shadow: var(--shadow); display: grid; gap: 12px; padding: 16px; min-width: 0; cursor: pointer; transition: transform .1s, box-shadow .1s; }
.card:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--shade); }
.card .head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.tlogo { width: 48px; height: 48px; border: 2px solid var(--ink); background: var(--yellow); color: var(--on-yellow); object-fit: cover; display: grid; place-items: center; font: 900 20px/1 var(--f-display); }
.card .head b { display: block; font: 900 20px/1.05 var(--f-display); font-stretch: 112%; overflow-wrap: anywhere; }
.card .head b a { text-decoration: none; }
.card .head span { font-size: 12.5px; color: var(--muted); }
.mk { font: 700 11.5px/1 var(--f-mono); border: 2px solid var(--ink); padding: 6px 7px; box-shadow: 2px 2px 0 var(--shade); background: var(--paper); }
.card .strat { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; font: 700 13px/1.2 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; }
.card .strat .side-l { color: var(--up); } .card .strat .side-s { color: var(--down); }
.card .big { font: 900 30px/1 var(--f-display); font-stretch: 112%; font-variant-numeric: tabular-nums; }
.card .sub { font: 500 12px/1.3 var(--f-mono); color: var(--muted); display: flex; justify-content: space-between; gap: 8px; }
.meter { height: 12px; border: 2px solid var(--ink); background: var(--paper); }
.meter i { display: block; height: 100%; background: var(--yellow); border-right: 2px solid var(--ink); transition: width .5s; }
.meter i[style*="width:0"] { border-right: 0; }
.card .foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.iconbtn { display: inline-grid; place-items: center; width: 32px; height: 30px; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); box-shadow: 2px 2px 0 var(--shade); cursor: pointer; text-decoration: none; }
.iconbtn svg { width: 14px; height: 14px; fill: currentColor; }
.iconbtn:hover { background: var(--yellow); color: var(--on-yellow); }
.ca { display: inline-flex; gap: 8px; align-items: center; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); box-shadow: 2px 2px 0 var(--shade); padding: 6px 9px; font: 600 11.5px/1 var(--f-mono); cursor: pointer; }
.ca:hover { background: var(--yellow); color: var(--on-yellow); }
.empty { border: 2.5px dashed var(--ink); padding: 28px; text-align: center; background: var(--sheet); grid-column: 1 / -1; }

/* ---------- token page */
.page-head { padding-block: 40px 0; }
.tok-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; margin-top: 22px; }
.tok-hero .tlogo { width: 84px; height: 84px; box-shadow: var(--shadow-sm); font-size: 34px; }
.tok-hero h1 { font-size: clamp(32px, 5vw, 56px); text-transform: uppercase; overflow-wrap: anywhere; }
.tok-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 26px; align-items: start; margin-top: 28px; }
.mstats { display: grid; grid-template-columns: repeat(3, 1fr); border: 2.5px solid var(--ink); background: var(--sheet); box-shadow: var(--shadow); margin: 0; }
.mstats div { padding: 14px 16px; border-right: 1.5px solid var(--hair); border-bottom: 1.5px solid var(--hair); min-width: 0; }
.mstats div:nth-child(3n) { border-right: 0; }
.mstats dt { font: 500 10.5px/1.2 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.mstats dd { margin: 6px 0 0; font: 700 19px/1.15 var(--f-mono); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.health { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; }
.health svg { width: 130px; height: 76px; overflow: visible; }
.health .word { font: 900 30px/1 var(--f-display); font-stretch: 112%; text-transform: uppercase; }
.desc { white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- footer, notes */
footer.foot { margin-top: 88px; border-top: 2.5px solid var(--ink); }
footer.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; padding-block: 22px 36px; }
footer.foot img { width: 36px; height: 36px; }
.banner-note { margin-top: 18px; border: 2.5px dashed var(--ink); background: var(--yellow); color: var(--on-yellow); padding: 10px 14px; font-size: 13.5px; font-weight: 500; }

/* ---------- docs */
.docs { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 44px; padding-top: 40px; }
.docs aside { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 86px); align-self: start; border: 2.5px solid var(--ink); background: var(--sheet); box-shadow: var(--shadow); }
.docs aside .label { display: block; background: var(--solid); color: var(--yellow); padding: 9px 12px; }
.docs aside a { display: block; padding: 9px 12px; border-top: 1.5px solid var(--hair); text-decoration: none; font-weight: 600; font-size: 14px; }
.docs aside a.on { background: var(--yellow); color: var(--on-yellow); }
.docs article { max-width: 72ch; min-width: 0; }
.docs article h1 { font-size: clamp(40px, 6vw, 72px); text-transform: uppercase; margin-bottom: 18px; }
.docs article h2 { font-size: 30px; text-transform: uppercase; margin: 56px 0 14px; padding-top: 14px; border-top: 2.5px solid var(--ink); }
.docs article h3 { font-size: 19px; margin: 26px 0 8px; font-stretch: 105%; }
.docs article p, .docs article li { font-size: 16.5px; line-height: 1.65; }
.docs article p + p { margin-top: 14px; }
.docs article ul, .docs article ol { padding-left: 22px; display: grid; gap: 6px; margin: 12px 0; }
.docs .lead { font-size: 19px !important; }
.callout { border: 2.5px solid var(--ink); background: var(--yellow); color: var(--on-yellow); padding: 14px 16px; margin: 18px 0; box-shadow: var(--shadow-sm); }
.callout.warn { background: var(--sheet); color: var(--ink); border-style: dashed; }
.tbl { overflow-x: auto; border: 2.5px solid var(--ink); margin: 16px 0; background: var(--sheet); }
.tbl table { border-collapse: collapse; width: 100%; min-width: 520px; }
.tbl th, .tbl td { text-align: left; padding: 10px 12px; border-bottom: 1.5px solid var(--ink); font-size: 14.5px; vertical-align: top; }
.tbl th { background: var(--solid); color: var(--yellow); font: 500 11px/1.2 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; }
.tbl tr:last-child td { border-bottom: 0; }
code { font-family: var(--f-mono); font-size: .9em; background: var(--yellow-soft); padding: 1px 5px; border: 1px solid var(--hair); overflow-wrap: anywhere; }
pre.code { background: var(--solid); color: var(--on-solid); padding: 16px; overflow-x: auto; border: 2.5px solid var(--ink); font: 13px/1.6 var(--f-mono); }
.formula { font: 600 15px/1.6 var(--f-mono); background: var(--sheet); border: 2px solid var(--ink); padding: 12px 14px; overflow-x: auto; }
[data-lang-only] { display: none; }
html[lang="en"] [data-lang-only="en"], html[lang="zh"] [data-lang-only="zh"] { display: block; }

/* ---------- responsive */
@media (max-width: 980px) {
  .hero-grid, .launch, .docs, .tok-grid, .explain { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { border-left: 0; border-top: 2.5px solid var(--ink); }
  .stat:nth-child(even) { border-left: 2.5px solid var(--ink); }
  .stat:nth-child(-n+2) { border-top: 0; }
  .stat:last-child { grid-column: 1 / -1; border-left: 0; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step { border-left: 2.5px solid var(--ink) !important; border-top: 2.5px solid var(--ink) !important; }
  .step:nth-child(odd) { border-left: 0 !important; }
  .step:nth-child(-n+2) { border-top: 0 !important; }
  .summary, .docs aside { position: static; }
  .mstats { grid-template-columns: repeat(2, 1fr); }
  .mstats div:nth-child(3n) { border-right: 1.5px solid var(--hair); }
  .mstats div:nth-child(2n) { border-right: 0; }
  .mstats div:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: 0; }
}
@media (max-width: 560px) {
  .row, .steps { grid-template-columns: 1fr; }
  .step { border-left: 0 !important; border-top: 2.5px solid var(--ink) !important; }
  .step:first-child { border-top: 0 !important; }
  .brand span { font-size: 17px; }
  .pipe .node.mid { display: none; }
  .hero-grid { padding-inline: 4px; }
  .wordmark { --dx: 3.5px !important; --dy: 3.5px !important; padding-bottom: 20px; }
  .wordmark .layer.echo { -webkit-text-stroke-width: 1.5px; }
  .tok-hero { grid-template-columns: auto minmax(0, 1fr); }
  .tok-hero .chipline { grid-column: 1 / -1; }
  .tok-hero .tlogo { width: 60px; height: 60px; }
  .menu { right: 16px; }
  .health svg { width: 100px; height: 60px; }
}
@media (hover: none) { a:hover { background: none; color: var(--ink); } }
html[lang="en"] .docs[data-lang-only="en"], html[lang="zh"] .docs[data-lang-only="zh"] { display: grid; }
@media (max-width: 980px) { html[lang] .docs[data-lang-only] { grid-template-columns: minmax(0, 1fr); } }
.pill .sq { margin-right: 2px; }
.filters > .tabs { justify-self: start; }

html[lang="zh"] .label, html[lang="zh"] .menu .mi b { letter-spacing: .06em; }

/* ---------- header actions + wallet */
.actions { display: flex; gap: 10px; align-items: center; }
#walletBtn { min-width: 0; }
#walletBtn .sq { margin-right: 2px; }
.wallet-menu { width: min(320px, calc(100vw - 32px)); }
.ptable { overflow-x: auto; border: 2.5px solid var(--ink); background: var(--sheet); box-shadow: var(--shadow); }
.ptable table { width: 100%; border-collapse: collapse; min-width: 760px; }
.ptable th, .ptable td { padding: 12px 14px; text-align: left; border-bottom: 1.5px solid var(--hair); white-space: nowrap; }
.ptable th { background: var(--solid); color: var(--yellow); font: 500 11px/1.2 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; }
.ptable td.num, .ptable th.num { text-align: right; font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.ptable tr:last-child td { border-bottom: 0; }
.ptable .tok { display: flex; gap: 10px; align-items: center; }
.ptable .tok .tlogo { width: 34px; height: 34px; font-size: 15px; }
.ptable .tok b { display: block; font: 900 16px/1.1 var(--f-display); font-stretch: 110%; }
.ptable .tok small { color: var(--muted); font-size: 12px; }
.ptable a.btn { padding: 6px 10px; font-size: 11.5px; box-shadow: 2px 2px 0 var(--shade); }
.you { display: grid; grid-template-columns: 1fr 1fr; border: 2px solid var(--ink); }
.you div { padding: 10px 12px; border-bottom: 1.5px solid var(--hair); }
.you div:nth-child(odd) { border-right: 1.5px solid var(--hair); }
.you div:nth-last-child(-n+2) { border-bottom: 0; }
.you dt { font: 500 10.5px/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.you dd { margin: 4px 0 0; font: 700 16px/1.2 var(--f-mono); font-variant-numeric: tabular-nums; }
@media (max-width: 560px) {
  .actions { gap: 8px; }
  .actions .btn { padding: 9px 11px; font-size: 12.5px; }
  .brand span { display: none; }
}
@media (max-width: 980px) { #pstats { grid-template-columns: repeat(2, 1fr) !important; } #pstats .stat:last-child { grid-column: auto; border-left: 2.5px solid var(--ink); } }
#walletBtn { text-transform: none; font-family: var(--f-mono); font-weight: 700; letter-spacing: .02em; }
#walletBtn:not(.ghost) { font-family: var(--f-display); text-transform: uppercase; font-weight: 900; }
.drop { display: flex; gap: 14px; align-items: center; border: 2.5px dashed var(--ink); background: var(--paper); padding: 12px; cursor: pointer; transition: background .15s; }
.drop:hover, .drop.over { background: var(--yellow-soft); }
.drop .prev { width: 64px; height: 64px; border: 2px solid var(--ink); background: var(--yellow) center/cover no-repeat; flex: none; display: grid; place-items: center; font: 900 26px/1 var(--f-display); color: var(--on-yellow); }
.drop .prev::after { content: "+"; }
.drop .prev.has::after { content: ""; }
.drop-text { display: grid; gap: 4px; min-width: 0; }
.drop-text b { font-size: 14px; }
.drop-text small { font: 500 12px/1.3 var(--f-mono); overflow-wrap: anywhere; }
.drop-text small.ok { color: var(--up); } .drop-text small.err { color: var(--down); }
.linkish { justify-self: start; background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 12.5px; }
