/* Launchpad UI. Every colour is a variable: base tokens come from css/tokens.css (generated from brand.js), and
   the shades below are mixed from them, so each palette only defines its base colours.
   Boostr's own layout: a left sidebar, a top bar, then the page in a centred, fluid column.
   The site is calm and static: no star field, no space backdrops, no scroll reveals, no live ticker and no motion,
   except the coin riding the orbit scene in the home hero card (moved by js/pages/home.js). Hover and press states are
   colour changes only. Inter for the UI; JetBrains Mono for numbers, tickers in data and addresses. */
:root {
  --bg-2: color-mix(in srgb, var(--bg) 55%, var(--surface));
  --surface-2: color-mix(in srgb, var(--surface) 93%, var(--text));
  --surface-3: color-mix(in srgb, var(--surface) 86%, var(--text));
  --line-2: color-mix(in srgb, var(--line) 80%, var(--text));
  --text-2: color-mix(in srgb, var(--text) 74%, var(--muted));
  --grid: color-mix(in srgb, var(--text) 7%, transparent);
  --accent-soft: color-mix(in srgb, var(--accent) 13%, transparent);
  --accent-line: color-mix(in srgb, var(--accent) 38%, transparent);
  --accent-glow: color-mix(in srgb, var(--accent) 45%, transparent);
  --second-soft: color-mix(in srgb, var(--second) 12%, transparent);
  --second-line: color-mix(in srgb, var(--second) 34%, transparent);
  --up-soft: color-mix(in srgb, var(--up) 13%, transparent);
  --down-soft: color-mix(in srgb, var(--down) 13%, transparent);
  --shadow: 0 18px 50px rgb(0 0 0 / var(--shadow-a));
  --r: 14px; --r-sm: 9px; --side: 232px;
  /* the page column: centred in the space right of the sidebar, fluid gutters */
  --wrap: 1560px; --gut: clamp(16px, 2vw, 32px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--text); font: 400 14px/1.45 var(--font-ui); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; }
::selection { background: var(--accent); color: var(--on-accent); }
.mono, .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.up { color: var(--up); } .down { color: var(--down); } .muted { color: var(--muted); } .faint { color: var(--muted); }
.acc { color: var(--accent); }
sub.z { font-size: .7em; vertical-align: -.28em; line-height: 0; margin: 0 .5px; color: var(--muted); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.plain { font: 500 12px var(--font-ui); color: var(--muted); margin-left: 6px; letter-spacing: 0; }

/* ---------- shell: sidebar ---------- */
.app { --sw: var(--side); display: flex; min-height: 100vh; background: linear-gradient(90deg, var(--bg-2) calc(var(--sw) - 1px), var(--line) calc(var(--sw) - 1px) var(--sw), transparent var(--sw)); }
.app.mini { --sw: 70px; }
.side { position: sticky; top: 0; height: 100vh; width: var(--side); min-width: 0; flex: none; display: flex; flex-direction: column; background: var(--bg-2); border-right: 1px solid var(--line); padding: 18px 12px 14px; z-index: 30; overflow-y: auto; scrollbar-width: none; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 22px; font: 800 19px var(--font-ui); letter-spacing: -.035em; }
.mark { width: 28px; height: 28px; color: var(--text); --mark-flame: var(--accent); flex: none; }
.navs { display: flex; flex-direction: column; gap: 2px; }
.nav { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 10px; border-radius: var(--r-sm); color: var(--muted); font-weight: 500; transition: background-color .15s, color .15s; white-space: nowrap; }
.nav:hover { background: var(--surface); color: var(--text); }
.nav.on { background: var(--surface-2); color: var(--text); box-shadow: inset 2px 0 0 var(--accent); }
.nav .ic { width: 18px; height: 18px; flex: none; }
.nav > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.nav-tag { margin-left: auto; flex: none; font: 700 8.5px/1.5 var(--font-ui); font-style: normal; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); border: 1px solid var(--accent-line); border-radius: 5px; padding: 0 4px; }
.ic { width: 16px; height: 16px; flex: none; }
.side-cta { margin-top: 18px; padding: 0 4px; }
.side-cta .btn { width: 100%; }
.side-foot { margin-top: auto; padding-top: 16px; display: flex; align-items: center; justify-content: space-between; padding-inline: 4px; }
.net { display: inline-flex; align-items: center; gap: 7px; font: 500 11.5px var(--font-ui); color: var(--muted); white-space: nowrap; min-width: 0; }
.net i { width: 7px; height: 7px; border-radius: 50%; background: var(--second); box-shadow: 0 0 0 3px var(--second-soft); }
.side-x { margin-left: auto; margin-right: 2px; width: 26px; height: 26px; flex: none; border-radius: 8px; display: grid; place-items: center; color: var(--muted); transition: color .15s, background-color .15s; }
.side-x:hover { color: var(--text); background: var(--surface); }
.xi { width: 14px; height: 14px; flex: none; }
.collapse { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); transition: color .15s, background-color .15s; }
.collapse:hover { background: var(--surface); color: var(--text); }
.collapse svg { width: 16px; height: 16px; }
.app.mini .side { width: 70px; }
.app.mini .brand span, .app.mini .nav span, .app.mini .nav-tag, .app.mini .net, .app.mini .side-cta { display: none; }
.app.mini .collapse svg { transform: rotate(180deg); }
.app.mini .side-foot { justify-content: center; }
.app.mini .side-x { display: none; }

/* ---------- shell: top bar ---------- */
.col { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; height: 62px; padding: 0 20px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.menu, .top-brand { display: none; }
.search { position: relative; flex: 1; min-width: 0; max-width: 380px; display: flex; align-items: center; gap: 9px; height: 38px; padding: 0 10px 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--muted); transition: border-color .15s; }
.search:focus-within { border-color: var(--line-2); }
.search input { flex: 1; min-width: 0; width: 0; background: none; border: 0; outline: 0; color: var(--text); }
.search input::placeholder { color: var(--muted); }
.search kbd { font: 500 11px var(--font-mono); color: var(--muted); border: 1px solid var(--line-2); border-radius: 5px; padding: 1px 6px; }
.search-pop { position: absolute; top: 44px; left: 0; right: 0; min-width: 300px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; padding: 6px; box-shadow: var(--shadow); z-index: 40; }
.search-pop a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--text); font-size: 13.5px; }
.search-pop a:hover, .search-pop a.sel { background: var(--surface-2); }
.search-pop .empty { padding: 10px; color: var(--muted); }
.chips { display: flex; gap: 6px; margin-left: auto; }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; font-size: 12.5px; white-space: nowrap; }
.chip-k { font: 600 11px var(--font-ui); letter-spacing: .02em; color: var(--muted); }
.chip b { font: 500 12.5px var(--font-mono); font-variant-numeric: tabular-nums; color: var(--text); }
.chip b span { font-size: 11px; margin-left: 3px; }
.seg { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--line); border-radius: 9px; flex: none; }
.seg button { height: 26px; padding: 0 10px; border-radius: 6px; font: 600 12px var(--font-ui); color: var(--muted); transition: background-color .15s, color .15s; }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--surface-3); color: var(--text); }
.preview-tag { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px; border-radius: 999px; font: 600 11.5px var(--font-ui); letter-spacing: .01em; color: var(--second); background: var(--second-soft); border: 1px solid var(--second-line); flex: none; white-space: nowrap; transition: border-color .15s; }
.preview-tag:hover { border-color: var(--line-2); }
.preview-tag i { width: 6px; height: 6px; border-radius: 50%; background: var(--second); }
.preview-tag .sm, .btn .sm { display: none; }

/* ---------- page, footer ---------- */
.main { flex: 1; width: 100%; min-width: 0; max-width: var(--wrap); margin-inline: auto; padding: 22px var(--gut) 44px; }
.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }
.foot-in { display: flex; align-items: center; gap: 12px 22px; flex-wrap: wrap; max-width: var(--wrap); margin-inline: auto; padding: 18px var(--gut) 26px; }
.foot-brand { display: flex; align-items: center; gap: 8px; }
.foot-brand .mark { width: 18px; height: 18px; }
.foot-brand b { color: var(--text); font-weight: 700; }
.foot-links { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-left: auto; }
.foot-links a { transition: color .15s; }
.foot-links a:hover { color: var(--text); }
.foot-x { display: inline-flex; align-items: center; gap: 6px; }
.foot-note { font-size: 12px; flex-basis: 100%; }

/* ---------- buttons, inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 10px; font-family: var(--font-ui); font-weight: 650; font-size: 13.5px; white-space: nowrap; transition: filter .15s, background-color .15s, border-color .15s, color .15s; flex: none; }
.btn-accent { background: var(--accent-fill); color: var(--on-accent); }
.btn-accent:hover:not(:disabled) { filter: brightness(1.07); }
.btn-accent:active:not(:disabled) { filter: brightness(.94); }
.btn-second { background: var(--second); color: var(--on-second); }
.btn-second:hover { filter: brightness(1.06); }
.btn-second.connected { background: var(--surface-2); color: var(--text); border: 1px solid var(--line-2); font-family: var(--font-mono); font-weight: 500; font-size: 12.5px; }
.dot-on { width: 7px; height: 7px; border-radius: 50%; background: var(--up); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--text); }
.btn-ghost:hover:not(:disabled) { background: var(--surface-2); border-color: color-mix(in srgb, var(--line-2) 60%, var(--text)); }
.btn-ghost:active:not(:disabled) { background: var(--surface-3); }
.btn-up { background: var(--up); color: var(--on-up); }
.btn-down { background: var(--down); color: var(--on-down); }
.btn-up:hover, .btn-down:hover { filter: brightness(1.06); }
.btn-lg { height: 48px; font-size: 15px; width: 100%; border-radius: 12px; }
.btn-sm { height: 30px; padding: 0 11px; font-size: 12.5px; border-radius: 8px; }
.btn:disabled { opacity: .5; cursor: not-allowed; filter: none; }
.field { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg-2); transition: border-color .15s; }
.field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field input, .field textarea { flex: 1; min-width: 0; width: 0; background: none; border: 0; outline: 0; font: 500 15px var(--font-ui); color: var(--text); }
.field input.mono { font-family: var(--font-mono); }
.field textarea { padding: 11px 0; resize: vertical; min-height: 84px; line-height: 1.5; font-size: 14px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .8; }
.field .unit { color: var(--muted); font: 500 13px var(--font-mono); white-space: nowrap; }
.field .pre { color: var(--muted); font: 600 15px var(--font-mono); }
.field.area { align-items: flex-start; }
.lbl { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 500; color: var(--text-2); margin: 16px 0 7px; }
.lbl b, .lbl small { font: 500 12px var(--font-ui); font-variant-numeric: tabular-nums; color: var(--muted); }
.quick { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.quick button { height: 28px; padding: 0 10px; border-radius: 7px; border: 1px solid var(--line-2); font: 500 12px var(--font-mono); color: var(--text-2); transition: border-color .15s, color .15s; }
.quick button:hover { border-color: var(--accent-line); color: var(--text); }

/* ---------- common blocks ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.card-h h2, .card-h h3 { font-size: 15px; font-weight: 700; letter-spacing: -.02em; }
.card-b { padding: 16px; }
.eyebrow { font: 600 11.5px var(--font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px 20px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head .eyebrow { color: var(--accent); }
.page-head h1 { font-size: 27px; font-weight: 800; letter-spacing: -.04em; line-height: 1.15; margin-top: 2px; }
.page-head p { color: var(--muted); margin-top: 6px; max-width: 720px; line-height: 1.55; font-size: 14.5px; }
.page-head p b { color: var(--text-2); font-weight: 600; }
.page-head-side { display: flex; gap: 8px; align-items: center; }
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; white-space: nowrap; height: 34px; padding: 0 12px; border-radius: 8px; font-weight: 600; font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 7px; transition: color .15s, background-color .15s; }
.tab:hover { color: var(--text); }
.tab.on { color: var(--text); background: var(--surface-3); box-shadow: inset 0 -2px 0 var(--accent); }
.tab .n { font: 500 11.5px var(--font-ui); font-variant-numeric: tabular-nums; color: var(--muted); }
.utabs { display: flex; gap: 20px; border-bottom: 1px solid var(--line); padding: 0 16px; overflow-x: auto; scrollbar-width: none; }
.utab { height: 44px; color: var(--muted); font-weight: 600; font-size: 13.5px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: color .15s; }
.utab:hover { color: var(--text); }
.utab.on { color: var(--text); border-color: var(--accent); }
.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 6px; font: 600 11.5px var(--font-ui); font-variant-numeric: tabular-nums; letter-spacing: 0; color: var(--text-2); border: 1px solid var(--line-2); white-space: nowrap; }
.badge .og { width: 12px; height: 12px; flex: none; }
.badge.phase.curve { color: var(--text); border-color: var(--line-2); background: var(--surface-2); }
.badge.phase.curve .climb { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 6px var(--accent); }
.badge.phase.grad { color: var(--on-second); background: var(--second); border-color: var(--second); }
.badge.acc { color: var(--text); border-color: var(--accent-line); background: var(--accent-soft); }
.badge.ex { color: var(--second); border-color: var(--second-line); background: var(--second-soft); }
.badge.up { color: var(--up); border-color: color-mix(in srgb, var(--up) 35%, transparent); }
.badge.rw svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.4; flex: none; }
.badge.rw-creator { color: var(--text-2); }
.badge.rw-holders { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.art { display: inline-block; flex: none; border-radius: 12px; overflow: hidden; background: var(--surface-3); position: relative; }
.art.round { border-radius: 50%; }
.art svg, .art img { width: 100%; height: 100%; display: block; object-fit: cover; }
.art-brand { background: var(--accent); color: var(--on-accent); display: inline-grid; place-items: center; }
.art-brand .mark { color: var(--on-accent); --mark-flame: var(--second); width: 62%; height: 62%; }

/* progress to orbit (static): the climb is a gold bar with a coin at its head; full bars are in orbit */
.prog { height: 7px; border-radius: 99px; background: var(--surface-3); position: relative; }
.prog i { display: block; height: 100%; border-radius: inherit; position: relative; background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 6%, transparent), color-mix(in srgb, var(--accent) 52%, transparent) 58%, var(--accent)); }
.prog i::after { content: ''; position: absolute; right: -4px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent), 0 0 12px var(--accent-glow); }
.prog.done { background: color-mix(in srgb, var(--second) 12%, transparent); }
.prog.done i { background: linear-gradient(90deg, color-mix(in srgb, var(--second) 14%, transparent), color-mix(in srgb, var(--second) 62%, transparent)); }
.prog.done i::after { width: 7px; height: 7px; margin-top: -3.5px; right: 5px; background: var(--second); box-shadow: 0 0 0 3px color-mix(in srgb, var(--second) 16%, transparent); }
.prog.plain i { background: var(--accent); }
.prog.plain i::after { display: none; }
.stat small { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 4px; }
.stat b { font: 600 15px var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 13px; color: var(--muted); }
.kv b { color: var(--text); font: 500 13px var(--font-mono); text-align: right; }
.kv.total { border-top: 1px dashed var(--line-2); margin-top: 4px; padding-top: 9px; }
.kv.total span { color: var(--text); font-weight: 600; }
.note { display: flex; gap: 10px; padding: 12px 14px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.note b { color: var(--text); font-weight: 600; }
.empty-state { padding: 46px 20px; text-align: center; color: var(--muted); }
.empty-state h3 { color: var(--text); font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.empty-state .btn { margin-top: 16px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; font-size: 13.5px; color: var(--accent); }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 3px; }

/* fee split bar (launch, coin, how) */
.split-bar { display: flex; gap: 3px; height: 12px; }
.split-bar i { display: block; height: 100%; border-radius: 4px; }
.split-bar .s-creator { background: var(--accent); }
.split-bar .s-buyback { background: var(--second); }
.split-bar .s-treasury { background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line-2); }
.split-bar .s-raydium, .sw.s-raydium { background: repeating-linear-gradient(135deg, var(--line-2) 0 2px, transparent 2px 5px); box-shadow: inset 0 0 0 1px var(--line-2); }
.split-legend { display: grid; gap: 8px; margin-top: 12px; }
.split-legend div { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--text-2); }
.split-legend div b { font: 600 13px var(--font-mono); color: var(--text); width: 50px; flex: none; }
.sw { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.sw.s-creator { background: var(--accent); } .sw.s-buyback { background: var(--second); } .sw.s-treasury { background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line-2); } .sw.s-harvest { background: transparent; box-shadow: inset 0 0 0 2px var(--accent); }

/* ---------- home: the hero card ----------
   The card sits in the page column, full width of it. .hero-box is a size container, so the hero scales with the
   column (the sidebar takes part of the viewport) rather than with the viewport. */
.hero-box { container: hero / inline-size; }
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); min-height: clamp(420px, 35cqi, 540px); margin-bottom: 92px; border-radius: 30px; border: 1px solid var(--line); background: radial-gradient(70% 90% at 100% 0%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 70%), var(--surface); }
.hero-copy { position: relative; z-index: 2; align-self: center; padding: clamp(36px, 4.9cqi, 80px); }
.hero h1 { font-size: clamp(42px, 5.2cqi, 84px); font-weight: 800; letter-spacing: -.055em; line-height: .96; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-copy p { margin: 22px 0 34px; max-width: 27em; font-size: 18px; line-height: 1.5; color: var(--text-2); }
.btn-hero { height: 54px; padding: 0 28px; font-size: 16px; border-radius: 14px; }
/* the orbit scene: the SVG stretches to the art box; the edges fade so the coin glides in and out */
.hero-art { position: absolute; top: 0; right: 0; bottom: 0; left: 30%; overflow: hidden; border-radius: 0 30px 30px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 26%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 26%, #000 93%, transparent); }
.hl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hl-planet { stroke: var(--line-2); stroke-width: 1.2; }
.hl-orbit { fill: none; stroke: var(--accent); stroke-opacity: .32; stroke-width: 1.4; }
.hl-line { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; }
.hl-glow { fill: none; stroke: var(--accent); stroke-width: 14; stroke-linecap: round; opacity: .28; filter: blur(9px); }
.hl-sat { fill: var(--text); }
.hl-coin { filter: drop-shadow(0 0 14px var(--accent-glow)); }
.hl-coin-ring { fill: none; stroke: var(--accent); stroke-opacity: .25; stroke-width: 6; }
.hl-coin-mark rect, .hl-coin-mark path { fill: var(--on-accent); }
.hl-coin-mark circle { stroke: var(--on-accent); }
/* the featured $BOOSTR card, overlapping the hero's bottom-right corner */
.feature { position: absolute; z-index: 3; right: clamp(20px, 3.6cqi, 56px); bottom: -56px; width: 320px; padding: 20px 22px; border-radius: 22px; background: var(--surface-2); border-color: var(--line-2); box-shadow: 0 30px 70px -24px rgb(0 0 0 / .85); transition: border-color .15s; }
.feature:hover { border-color: var(--accent-line); }
.ft-top { display: flex; align-items: center; gap: 12px; }
.ft-top .art-brand .mark { --mark-flame: var(--on-accent); width: 60%; height: 60%; }
.ft-id { min-width: 0; }
.ft-id b { display: block; font: 700 16px var(--font-ui); letter-spacing: -.01em; }
.ft-id span { display: block; font-size: 13.5px; color: var(--muted); }
.feature .ft-top .badge { margin-left: auto; height: 26px; padding: 0 10px; border: 0; border-radius: 999px; font: 600 12.5px var(--font-ui); letter-spacing: -.005em; color: var(--text); background: var(--second-soft); }
.ft-mc { margin-top: 18px; }
.ft-mc small { display: block; font-size: 13px; color: var(--muted); }
.ft-mc div { display: flex; align-items: baseline; gap: 10px; margin-top: 2px; }
.ft-mc b { font: 750 30px/1.1 var(--font-ui); letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.ft-mc span { font: 650 14.5px var(--font-ui); font-variant-numeric: tabular-nums; }
/* a narrow column: copy on top, the scene under it, the featured card in the flow */
@container hero (max-width: 820px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; margin-bottom: 26px; }
  .hero-copy { padding: 40px 40px 8px; }
  .hero h1 { font-size: clamp(42px, 8cqi, 64px); }
  .hero-art { position: relative; left: auto; height: 240px; border-radius: 0 0 30px 30px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 14%, #000 94%, transparent); }
  .feature { position: relative; right: auto; bottom: auto; width: auto; margin: -36px 20px 20px; }
}
@container hero (max-width: 560px) {
  .hero { border-radius: 24px; }
  .hero-copy { padding: 30px 22px 4px; }
  .hero h1 { font-size: 48px; }
  .hero-copy p { font-size: 16.5px; margin: 16px 0 26px; }
  .btn-hero { width: 100%; }
  .hero-art { height: 200px; border-radius: 0 0 24px 24px; }
  .feature { margin: -22px 14px 14px; padding: 16px 18px; }
  .ft-mc b { font-size: 26px; }
}

/* ---------- home: the feed ---------- */
.feed-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.feed-bar .search { max-width: 300px; flex: 1 1 220px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.more-row { display: flex; justify-content: center; margin-top: 16px; }
.coin-card { position: relative; display: flex; flex-direction: column; gap: 11px; padding: 14px; min-width: 0; transition: border-color .15s, background-color .15s; }
a.coin-card:hover { border-color: var(--line-2); background: var(--surface-2); }
.cc-top { display: flex; gap: 12px; min-width: 0; }
.cc-id { min-width: 0; flex: 1; }
.cc-name { display: flex; align-items: baseline; gap: 7px; min-width: 0; }
.cc-name b { font-weight: 700; font-size: 15px; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-name span { font: 600 12px var(--font-ui); letter-spacing: .02em; color: var(--muted); flex: none; }
.cc-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 4px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cc-meta .mono { font-size: 11.5px; }
.cc-meta .you { color: var(--accent); }
.cc-desc { font-size: 12.5px; color: var(--muted); margin-top: 6px; line-height: 1.45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.cc-nums { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: auto; }
.cc-nums .stat b { font-size: 16px; }
.cc-nums .stat b small { display: inline; font-size: 11.5px; margin-left: 5px; }
.cc-prog .row { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 7px; gap: 8px; align-items: center; }
.cc-prog .row b { font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--text); font-weight: 600; letter-spacing: -.02em; }
.cc-prog .row .badge { margin: -3px 0; }

/* ---------- coin page ---------- */
.coin-grid { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: 14px; align-items: start; }
.coin-l, .coin-r { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; }
.coin-r { position: sticky; top: 76px; }
.coin-head { padding: 16px 18px; display: grid; gap: 16px; }
.ch-top { display: flex; align-items: center; gap: 14px; min-width: 0; }
.ch-id { min-width: 0; flex: 1; }
.ch-id h1 { font-size: 22px; font-weight: 800; letter-spacing: -.035em; display: flex; align-items: baseline; gap: 6px 9px; flex-wrap: wrap; line-height: 1.15; }
.ch-id h1 .tk { font: 600 14px var(--font-ui); color: var(--muted); letter-spacing: .01em; }
.ch-id h1 .badge { align-self: center; }
.ch-sub { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.ch-sub .mono { font-size: 12px; }
.ch-sub a, .ch-sub button.link { color: var(--text-2); }
.ch-sub a:hover, .ch-sub button.link:hover { color: var(--text); }
.socials { display: flex; gap: 6px; flex-wrap: wrap; }
.soc { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line-2); font-size: 12.5px; color: var(--text-2); transition: background-color .15s, color .15s; }
.soc:hover { color: var(--text); background: var(--surface-2); }
.soc svg { width: 13px; height: 13px; }
.ch-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.chart-card { overflow: hidden; }
.chart-card .chart-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.chart-bar .seg button { height: 24px; padding: 0 8px; }
.ohlc { font: 500 11.5px var(--font-mono); color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 10px 14px 0; min-height: 27px; }
.ohlc b { color: var(--text-2); font-weight: 500; }
.chart-box { position: relative; height: 420px; }
.chart-box canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.panel { padding: 14px 16px 16px; }
.side-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 11px; background: var(--bg-2); border: 1px solid var(--line); }
.side-toggle button { height: 38px; border-radius: 8px; font-weight: 700; color: var(--muted); transition: background-color .15s, color .15s; }
.side-toggle button:hover { color: var(--text); }
.side-toggle button.on.buy { background: var(--up); color: var(--on-up); }
.side-toggle button.on.sell { background: var(--down); color: var(--on-down); }
.side-toggle button.on.plain { background: var(--surface-3); color: var(--text); }
.bal { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; font-variant-numeric: tabular-nums; color: var(--muted); margin-top: 6px; }
.slip-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.slip-row button { height: 28px; padding: 0 9px; border-radius: 7px; border: 1px solid var(--line-2); font: 500 12px var(--font-mono); color: var(--muted); transition: border-color .15s, color .15s; }
.slip-row button.on { color: var(--text); border-color: var(--accent); background: var(--accent-soft); }
.slip-row input { width: 64px; height: 28px; border-radius: 7px; border: 1px solid var(--line-2); background: var(--bg-2); padding: 0 8px; font: 500 12px var(--font-mono); outline: 0; }
.slip-row input:focus { border-color: var(--accent); }
.quote { margin: 14px 0; padding: 10px 12px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); }
.quote .kv { padding: 4px 0; font-size: 12.5px; }
.quote .kv b { font-size: 12.5px; }
.quote .fee-line { margin-top: 6px; padding-top: 8px; border-top: 1px dashed var(--line-2); font-size: 12px; color: var(--muted); line-height: 1.6; }
.quote .fee-line b { color: var(--text-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.quote .warn { color: var(--down); }
.grad-card { padding: 16px; }
.grad-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.grad-top h3 { font-size: 14px; font-weight: 700; }
.grad-nums { display: flex; justify-content: space-between; gap: 8px; margin-top: 9px; font: 500 12px var(--font-mono); color: var(--muted); }
.grad-nums b { color: var(--text); }
.grad-card p { font-size: 12.5px; color: var(--muted); line-height: 1.55; margin-top: 12px; }
.hr-card .card-b { display: grid; gap: 12px; }
.hr-top { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hr-top > div { padding: 11px 12px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); min-width: 0; }
.hr-top small { display: block; font-size: 11.5px; color: var(--muted); }
.hr-top b { display: block; font: 600 17px var(--font-mono); margin: 4px 0 2px; letter-spacing: -.02em; }
.hr-top span { display: block; font-size: 11.5px; color: var(--muted); }
.hr-next b { color: var(--accent); font-variant-numeric: tabular-nums; }
.hr-build { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--muted); }
.hr-build b { font: 500 13px var(--font-mono); color: var(--text); }
.hr-rule { font-size: 12px; color: var(--muted); line-height: 1.55; }
.hr-you { padding: 10px 12px; border-radius: 10px; border: 1px dashed var(--accent-line); background: var(--accent-soft); }
.hr-you .kv { font-size: 12.5px; padding: 4px 0; }
.hr-you p { font-size: 12px; margin-top: 4px; line-height: 1.5; }
.hr-you-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 13px; }
.hr-connect { width: 100%; }
.fees-card .card-b { display: grid; gap: 14px; }
.fee-phase { display: grid; gap: 8px; }
.fp-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 12.5px; }
.fp-h b { font-weight: 700; }
.fp-h span { font-size: 11.5px; font-variant-numeric: tabular-nums; color: var(--muted); text-align: right; }
.fee-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fee-tile { padding: 11px 12px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); min-width: 0; }
.fee-tile small { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); }
.fee-tile b { display: block; font: 600 15px var(--font-mono); margin-top: 5px; letter-spacing: -.02em; }
.fee-tile span { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.fees-note { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); line-height: 1.5; }
.harvest-box { padding: 12px; border-radius: 10px; border: 1px dashed var(--accent-line); background: var(--accent-soft); }
.harvest-box .hb-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.harvest-box .hb-top b { font-size: 13px; }
.harvest-box p { font-size: 12px; color: var(--text-2); line-height: 1.5; margin-top: 8px; }
.hsteps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.hsteps span { text-align: center; padding: 6px 4px; border-radius: 7px; font: 600 11px var(--font-ui); color: var(--muted); border: 1px solid var(--line-2); background: var(--surface); }
.hsteps span.on { color: var(--on-accent); background: var(--accent-fill); border-color: var(--accent-fill); }
.hsteps span.done { color: var(--text); border-color: var(--accent-line); }
.list-card { overflow: hidden; }
.list-card .rows { max-height: 560px; overflow-y: auto; }
.trow { display: grid; grid-template-columns: 62px 1.2fr 64px 1fr 1fr 1fr; gap: 10px; align-items: center; padding: 9px 16px; border-bottom: 1px solid var(--line); font: 500 12.5px var(--font-mono); }
.trow.head { font: 600 11.5px var(--font-ui); color: var(--muted); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.trow > :nth-child(n+4) { text-align: right; }
.trow .who { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trow .who.dev { color: var(--accent); }
.side-pill { display: inline-flex; justify-content: center; width: 44px; height: 20px; align-items: center; border-radius: 5px; font: 650 11px var(--font-ui); }
.side-pill.buy { color: var(--up); background: var(--up-soft); } .side-pill.sell { color: var(--down); background: var(--down-soft); }
.hrow { display: grid; grid-template-columns: 28px minmax(0, 1fr) 110px 74px; gap: 10px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line); font: 500 12.5px var(--font-mono); }
.hrow.head { font: 600 11.5px var(--font-ui); color: var(--muted); position: sticky; top: 0; background: var(--surface); z-index: 1; padding-top: 9px; padding-bottom: 9px; }
.hrow .rk { color: var(--muted); }
.hrow .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 7px; min-width: 0; }
.hrow .nm .badge { flex: none; }
.hrow .bar { height: 6px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.hrow .bar i { display: block; height: 100%; background: var(--text-2); border-radius: inherit; }
.hrow .bar i.sys { background: var(--second); }
.hrow > :last-child { text-align: right; }
.about { padding: 16px; font-size: 13.5px; color: var(--text-2); line-height: 1.6; }
.about .kv { font-size: 12.5px; }

/* ---------- launch ---------- */
.launch-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 14px; align-items: start; }
.launch-grid[data-rw="creator"] .only-holders, .launch-grid[data-rw="holders"] .only-creator { display: none; }
.launch-r { position: sticky; top: 76px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; }
.form-card { padding: 20px; }
.form-card h2 { font-size: 16px; font-weight: 700; letter-spacing: -.02em; }
.form-row { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 18px; align-items: start; }
.form-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 12px; }
.form-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 10px; }
.drop { display: grid; place-items: center; text-align: center; gap: 6px; aspect-ratio: 1; width: 100%; border-radius: 16px; border: 1.5px dashed var(--line-2); background: var(--bg-2); cursor: pointer; color: var(--muted); font-size: 12px; padding: 10px; position: relative; overflow: hidden; transition: border-color .15s, color .15s; }
.drop:hover, .drop.over { border-color: var(--accent); color: var(--text); }
.drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.drop svg { width: 26px; height: 26px; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.err { color: var(--down); font-size: 12px; margin-top: 6px; }
.rw-pick { border: 0; margin: 0; padding: 0; min-width: 0; }
.rw-pick legend { width: 100%; padding: 0; float: left; }
.rw-pick legend + * { clear: both; }
.rw-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rw-opt { position: relative; cursor: pointer; display: block; }
.rw-opt input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.rw-box { display: grid; grid-template-columns: 18px minmax(0, 1fr); align-content: start; gap: 4px 10px; height: 100%; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg-2); transition: border-color .15s, background-color .15s; }
.rw-box b { font-size: 14px; font-weight: 700; }
.rw-box > span:last-child { grid-column: 2; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.rw-dot { grid-row: span 2; width: 16px; height: 16px; margin-top: 1px; border-radius: 50%; border: 1.5px solid var(--line-2); position: relative; }
.rw-dot::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--accent); display: none; }
.rw-opt:hover .rw-box { border-color: var(--accent-line); }
.rw-opt input:checked + .rw-box { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 10%, transparent); }
.rw-opt input:checked + .rw-box .rw-dot { border-color: var(--accent); }
.rw-opt input:checked + .rw-box .rw-dot::after { display: block; }
.rw-opt input:checked + .rw-box > span:last-child { color: var(--text-2); }
.rw-opt input:focus-visible + .rw-box { outline: 2px solid var(--accent); outline-offset: 2px; }
.dev-quote { margin-top: 10px; }
.launch-note { font-size: 12px; color: var(--muted); margin-top: 10px; text-align: center; }
.disclose { padding: 18px; }
.disclose h3 { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.disclose ul { list-style: none; display: grid; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.disclose li { display: flex; gap: 10px; font-size: 12.5px; color: var(--text-2); line-height: 1.5; }
.disclose li b { color: var(--text); }
.disclose li .sw { margin-top: 4px; }
.disclose .link-arrow { margin-top: 14px; }
.alloc { display: grid; gap: 6px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line-2); }
.preview-card { overflow: hidden; }
.preview-card .coin-card { border: 0; background: none; padding: 16px; }
.preview-card .coin-card:hover { background: none; }

/* ---------- stake / creator ---------- */
.sum-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.sum-cards .card { padding: 16px 18px; min-width: 0; }
.tile small { display: block; font-size: 12px; color: var(--muted); line-height: 1.3; }
.tile b { display: block; font: 700 21px var(--font-mono); letter-spacing: -.04em; margin: 7px 0 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.tile span { display: block; font-size: 12px; color: var(--muted); line-height: 1.45; font-variant-numeric: tabular-nums; }
.stake-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 14px; align-items: start; margin-bottom: 14px; }
.stake-grid > .card { min-width: 0; overflow: hidden; }
.stake-aside { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; }
.claim-bar { display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: var(--muted); }
.claim-bar b { color: var(--text); font: 600 12.5px var(--font-mono); }
.burns-card { overflow: hidden; }
.hv-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.6fr) 1fr 1fr 96px; gap: 14px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); font: 500 12.5px var(--font-mono); }
.hv-row.head { font: 600 11.5px var(--font-ui); color: var(--muted); padding-top: 10px; padding-bottom: 10px; }
.hv-row > :nth-child(n+3) { text-align: right; }
.coin-cell { display: flex; align-items: center; gap: 10px; min-width: 0; font-family: var(--font-ui); }
.coin-cell > div { min-width: 0; }
.coin-cell b { display: block; font-weight: 700; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .15s; }
.coin-cell span { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.coin-cell:hover b { color: var(--accent); }
.stream .prog { height: 6px; }
.stream .row { display: flex; justify-content: space-between; gap: 8px; font: 500 12px var(--font-ui); font-variant-numeric: tabular-nums; color: var(--muted); margin-bottom: 6px; }
.stream .row b { color: var(--text); font-weight: 600; }
.small-k { display: block; font: 500 11.5px var(--font-ui); font-variant-numeric: tabular-nums; color: var(--muted); margin-top: 2px; }
.bb-row { display: grid; grid-template-columns: 60px 1fr 1fr; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); font: 500 12.5px var(--font-mono); align-items: center; }
.bb-row.head { font: 600 11.5px var(--font-ui); color: var(--muted); }
.bb-row:last-child { border-bottom: 0; }
.bb-row > :nth-child(n+2) { text-align: right; }
.supply-bar { display: flex; height: 10px; border-radius: 6px; overflow: hidden; gap: 2px; margin: 10px 0 12px; }
.supply-bar i { display: block; height: 100%; }
#supply .grad-top h3 { font-size: 14px; font-weight: 700; }
.cr-row { display: grid; grid-template-columns: minmax(0, 1.6fr) 150px repeat(4, minmax(0, 1fr)) 92px; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); font: 500 12.5px var(--font-mono); }
.cr-row.head { font: 600 11.5px var(--font-ui); color: var(--muted); }
.cr-row:last-child { border-bottom: 0; }
.cr-row > :nth-child(n+3) { text-align: right; }
.cr-row .faint, .hc-row .faint { font-family: var(--font-ui); }
#ccoins { overflow: hidden; }
.hc-card { margin-top: 14px; overflow: hidden; }
.hc-row { display: grid; grid-template-columns: minmax(0, 1.6fr) 150px 150px minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); font: 500 12.5px var(--font-mono); }
.hc-row:last-child { border-bottom: 0; }
.hc-row.head { font: 600 11.5px var(--font-ui); color: var(--muted); }
.hc-row > :nth-child(n+4) { text-align: right; }
.hc-note { padding: 12px 16px 16px; font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.page-note { margin-top: 14px; }
.cell-k { display: none; }

/* ---------- how it works ---------- */
.engine { margin: 0; position: relative; min-width: 0; }
.engine-stage { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.engine-poster, .engine-poster img, .engine-frame { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.engine-poster img { object-fit: cover; }
.engine-frame { border: 0; background: var(--bg); }
.engine-ui { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; pointer-events: none; background: linear-gradient(180deg, transparent 35%, rgb(0 0 0 / .5)); }
.engine-ui > * { pointer-events: auto; }
.engine.live .engine-ui { display: none; }
.engine-play { height: 48px; padding: 0 24px; font-size: 15px; border-radius: 999px; box-shadow: 0 14px 40px -12px var(--accent-glow); }
.engine-play svg { width: 13px; height: 13px; }
.engine-tag { padding: 8px 14px; border-radius: 999px; background: color-mix(in srgb, var(--bg) 75%, transparent); font-weight: 600; font-size: 13px; color: var(--muted); }
.engine figcaption { margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.engine-wide { margin-bottom: 14px; }
.words { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); overflow: hidden; margin-bottom: 14px; }
.words div { padding: 14px 16px; border-right: 1px solid var(--line); min-width: 0; }
.words div:last-child { border-right: 0; }
.words b { display: block; font-size: 14px; font-weight: 700; letter-spacing: -.02em; }
.words em { display: block; font: 600 11.5px var(--font-ui); font-style: normal; color: var(--accent); margin: 2px 0 6px; }
.words span { display: block; font-size: 12px; color: var(--muted); line-height: 1.45; }
.how-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 14px; align-items: stretch; margin-bottom: 14px; }
.wheel-card { padding: 18px 12px; display: flex; flex-direction: column; justify-content: center; background: radial-gradient(60% 60% at 50% 48%, var(--accent-soft), transparent 70%), var(--surface); }
.wheel-svg { width: 100%; height: auto; display: block; max-width: 640px; margin: 0 auto; }
.wheel-svg .node rect { fill: var(--surface-2); stroke: var(--line-2); }
.wheel-svg .node.hot rect { fill: color-mix(in srgb, var(--accent) 14%, var(--surface)); stroke: var(--accent-line); }
.wheel-svg .node.sec rect { fill: color-mix(in srgb, var(--second) 13%, var(--surface)); stroke: var(--second-line); }
.wheel-svg .nb { fill: var(--surface-3); }
.wheel-svg .node.hot .nb { fill: var(--accent-fill); }
.wheel-svg .node.sec .nb { fill: var(--second); }
.wheel-svg .nn { font: 700 11px var(--font-mono); fill: var(--text); }
.wheel-svg .node.hot .nn { fill: var(--on-accent); }
.wheel-svg .node.sec .nn { fill: var(--on-second); }
.wheel-svg text { fill: var(--text); font-family: var(--font-ui); }
.wheel-svg .t1 { font-size: 15px; font-weight: 700; letter-spacing: -.02em; }
.wheel-svg .t2 { font-size: 12px; fill: var(--muted); letter-spacing: -.01em; }
.wheel-svg .ring { fill: none; stroke: var(--line-2); stroke-width: 2; stroke-dasharray: 3 6; }
.wheel-svg .arc { fill: none; stroke: var(--accent); stroke-width: 2.2; }
.wheel-svg .arc.sec { stroke: var(--second); }
.wheel-svg .arrow { fill: var(--accent); }
.wheel-svg .arrow.sec { fill: var(--second); }
.wheel-svg .hub { fill: var(--accent); }
.wheel-svg .hub-orbit { fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-opacity: .6; }
.wheel-svg .hub-t { font-size: 15px; font-weight: 800; fill: var(--text); letter-spacing: -.02em; }
.how-steps { list-style: none; display: grid; gap: 10px; }
.how-step { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding: 14px 16px; transition: border-color .15s; }
.how-step:hover { border-color: var(--line-2); }
.how-step i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--surface-3); font: 700 12px var(--font-mono); font-style: normal; color: var(--text); }
.how-step h3 { font-size: 14.5px; font-weight: 700; letter-spacing: -.02em; }
.how-step p { font-size: 13px; color: var(--muted); line-height: 1.6; margin-top: 4px; }
.how-step p b { color: var(--text-2); font-weight: 600; }
.doc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.doc-card { padding: 18px; min-width: 0; }
.doc-card h2 { font-size: 15px; font-weight: 700; letter-spacing: -.02em; margin: 6px 0 8px; line-height: 1.35; }
.doc-card p, .doc-card li { font-size: 13px; color: var(--muted); line-height: 1.65; }
.doc-card p + p, .doc-card ul + p, .doc-card table + p, .doc-card .split-legend + p { margin-top: 10px; }
.doc-card ul { padding-left: 16px; margin-top: 8px; display: grid; gap: 4px; }
.doc-card b { color: var(--text-2); }
.doc-card .split-bar { margin-top: 12px; }
.doc-card table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 12.5px; }
.doc-card td { padding: 7px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.doc-card td:last-child { text-align: right; font-family: var(--font-mono); color: var(--text); padding-left: 12px; white-space: nowrap; }
.faq { padding-bottom: 4px; }
.faq details { border-bottom: 1px solid var(--line); padding: 0 18px; }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; list-style: none; padding: 15px 0; font-weight: 600; font-size: 14px; display: flex; justify-content: space-between; gap: 16px; transition: color .15s; }
.faq summary:hover { color: var(--accent); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 500 18px var(--font-ui); color: var(--muted); line-height: 1; }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { color: var(--muted); font-size: 13.5px; line-height: 1.65; padding: 0 0 16px; max-width: 780px; }

/* ---------- 404 ---------- */
.lost { display: grid; place-items: center; min-height: 440px; padding: 80px 24px; text-align: center; }
.lost-copy { max-width: 480px; }
.lost-code { font: 600 13px var(--font-mono); color: var(--accent); }
.lost-copy h1 { font-size: 30px; font-weight: 800; letter-spacing: -.04em; line-height: 1.12; margin: 10px 0 8px; }
.lost-copy p { color: var(--text-2); }
.lost-copy .btn { margin-top: 18px; }

/* ---------- modal, toast (no motion: they simply appear) ---------- */
.modal-bg { position: fixed; inset: 0; z-index: 60; background: var(--scrim); display: grid; place-items: center; padding: 16px; }
.modal { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px; padding: 20px; box-shadow: var(--shadow); }
.modal-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.modal-h h3 { font-size: 17px; font-weight: 700; }
.x { width: 30px; height: 30px; border-radius: 8px; color: var(--muted); font-size: 20px; line-height: 1; }
.x:hover { background: var(--surface-3); color: var(--text); }
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 80; display: grid; gap: 8px; }
.toast { display: flex; gap: 10px; align-items: flex-start; max-width: 390px; padding: 12px 14px 12px 16px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--line-2); border-left: 3px solid var(--second); font-size: 13px; color: var(--text); box-shadow: var(--shadow); line-height: 1.45; }
.toast b { display: block; font-weight: 700; margin-bottom: 2px; }
.toast .og { width: 22px; height: 22px; flex: none; color: var(--accent); margin-top: 1px; }
.toast.out { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1320px) {
  .chips .chip:first-child { display: none; }
  .ch-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .chips { display: none; }
  .seg#ccy { margin-left: auto; }
}
@media (max-width: 1180px) {
  .coin-grid, .launch-grid, .stake-grid, .how-grid { grid-template-columns: 1fr; }
  .coin-r, .launch-r { position: static; }
  .doc-grid { grid-template-columns: 1fr 1fr; }
  .words { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .words div:nth-child(3) { border-right: 0; }
  .words div:nth-child(n+4) { border-top: 1px solid var(--line); }
  .sum-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* coin page: trade panel right after the chart on one column */
  .coin-grid { display: flex; flex-direction: column; }
  .coin-l, .coin-r { display: contents; }
  .coin-head { order: 1; } .chart-card { order: 2; } .panel { order: 3; } .grad-card { order: 4; } .hr-card { order: 5; } .fees-card { order: 6; } .list-card { order: 7; } .about-card { order: 8; }
}
@media (max-width: 860px) {
  .app { background: none; }
  .side { position: fixed; left: 0; transform: translateX(-100%); width: 250px; visibility: hidden; }
  .app.open .side { transform: none; visibility: visible; box-shadow: 20px 0 60px rgb(0 0 0 / var(--shadow-a)); }
  .app.mini .side { width: 250px; }
  .app.mini .brand span, .app.mini .nav span, .app.mini .nav-tag, .app.mini .net, .app.mini .side-cta { display: revert; }
  .app.mini .side-x { display: grid; }
  .app.mini .side-foot { justify-content: space-between; }
  .collapse { display: none; }
  .menu, .top-brand { display: flex; align-items: center; }
  .menu { width: 36px; height: 36px; border-radius: 9px; color: var(--text-2); justify-content: center; flex: none; } .menu svg { width: 20px; height: 20px; }
  .top-brand { gap: 7px; font-weight: 800; letter-spacing: -.035em; font-size: 16px; flex: none; }
  .top-brand .mark { width: 24px; height: 24px; }
  .top { padding: 0 12px 0 8px; gap: 8px; height: 58px; }
  .top .top-search, .chips, .seg#ccy { display: none; }
  .preview-tag { margin-left: auto; }
  .main { padding: 16px 16px 36px; }
  .foot-in { padding: 18px 16px 24px; }
  .foot-links { margin-left: 0; }
  .form-row { grid-template-columns: 1fr; }
  .drop { max-width: 160px; }
  .doc-grid { grid-template-columns: 1fr; }
  .hv-row { grid-template-columns: minmax(0, 1fr) 96px; gap: 10px 12px; }
  .hv-row.head { display: none; }
  .hv-row .stream { grid-column: 1 / -1; order: 3; }
  .hv-row > :nth-child(3), .hv-row > :nth-child(4) { text-align: left; order: 4; }
  .hv-row > :nth-child(5) { order: 2; }
  .hv-row .cell-k { display: block; margin: 0 0 2px; }
  .cr-row, .hc-row { grid-template-columns: 1fr 1fr; gap: 10px 12px; }
  .cr-row.head, .hc-row.head { display: none; }
  .cr-row > :first-child, .hc-row > :first-child { grid-column: 1 / -1; }
  .cr-row > :nth-child(n+2), .hc-row > :nth-child(n+2) { text-align: left; }
  .cr-row .cell-k, .hc-row .cell-k { display: block; font: 500 11px var(--font-ui); color: var(--muted); margin-bottom: 2px; }
  .cr-row > :last-child { grid-column: 1 / -1; }
  .cr-row > :last-child .btn { width: 100%; }
}
@media (max-width: 640px) {
  .preview-tag .lg, .btn .lg { display: none; }
  .preview-tag .sm, .btn .sm { display: inline; }
  .feed-bar .search { max-width: none; flex-basis: 100%; }
  .cards { grid-template-columns: 1fr; }
  .page-head h1 { font-size: 23px; }
  .ch-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ch-id h1 { font-size: 19px; }
  .chart-box { height: 300px; }
  .trow { grid-template-columns: 44px minmax(0, 1fr) 48px 1fr 1fr; gap: 8px; padding: 9px 12px; font-size: 11.5px; }
  .trow > :nth-child(6) { display: none; }
  .side-pill { width: 38px; }
  .hrow { grid-template-columns: 22px minmax(0, 1fr) 64px 58px; padding: 10px 12px; gap: 8px; font-size: 11.5px; }
  .form-card { padding: 16px; }
  .form-2, .form-3, .rw-opts { grid-template-columns: 1fr; }
  .form-2 { row-gap: 14px; } .form-3 { row-gap: 8px; }
  .engine-stage { aspect-ratio: 4 / 5; }
  .wheel-card { padding: 8px 2px; }
  .words { grid-template-columns: 1fr 1fr; }
  .words div { border-right: 1px solid var(--line) !important; border-top: 1px solid var(--line); }
  .words div:nth-child(-n+2) { border-top: 0; }
  .words div:nth-child(2n) { border-right: 0 !important; }
  .sum-cards { gap: 8px; }
  .sum-cards .card { padding: 13px 14px; }
  .sum-cards .tile b { font-size: 17px; }
  .hr-top { grid-template-columns: 1fr; }
  .lost { min-height: 380px; padding: 56px 20px; }
  .lost-copy h1 { font-size: 25px; }
  .toasts { left: 16px; right: 16px; bottom: 16px; }
  .toast { max-width: none; }
  .foot-in { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
