/* Wick: candlelight. Soot-brown dark, wax ivory text, one flame amber; condensed display type with a serif italic for the warm words. Phone first (360px up); wider screens get columns. */

@font-face {
  font-family: "Bricolage";
  src: url("/static/fonts/bricolage.woff2") format("woff2-variations"), url("/static/fonts/bricolage.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/static/fonts/inter.woff2") format("woff2-variations"), url("/static/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/static/fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/static/fonts/jetbrains-mono.woff2") format("woff2-variations"), url("/static/fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --bg: #0F0C0A;
  --bg-2: #15110E;
  --panel: #1A1511;
  --panel-2: #221C17;
  --panel-3: #2B241E;
  --line: rgba(255, 238, 214, .07);
  --line-2: rgba(255, 238, 214, .13);
  --ink: #F4ECDF;
  --ink-2: #CDBFAB;
  --muted: #978872;
  --accent: #F5A524;
  --accent-2: #FFC25A;
  --accent-ink: #1C1205;
  --accent-soft: rgba(245, 165, 36, .12);
  --accent-glow: rgba(245, 165, 36, .35);
  --live: #5FD39A;
  --danger: #F47A62;
  --danger-soft: rgba(255, 116, 104, .12);
  --hold: #EFE4D0;
  --keep: #6E6052;
  --r: 22px;
  --r-s: 14px;
  --r-xs: 10px;
  --display: "Bricolage", "Arial Narrow", ui-sans-serif, system-ui, sans-serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --tabbar: 68px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 90% 55% at 50% -12%, rgba(245, 165, 36, .16), transparent 62%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(255, 120, 40, .07), transparent 70%),
    var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 var(--sans);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--tabbar) + env(safe-area-inset-bottom));
}
a { color: inherit; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
p { margin: 0 0 .9em; }
h1, h2, h3 { margin: 0; }
code, .mono { font-family: var(--mono); font-size: .9em; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { left: 12px; }

/* ---------- Type ---------- */
.display {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 78%;
  font-size: clamp(48px, 14.5vw, 108px);
  line-height: .9;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.display-s {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 80%;
  font-size: clamp(40px, 11vw, 72px);
  line-height: .95;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}
.h2 { font-family: var(--display); font-weight: 750; font-stretch: 85%; font-size: clamp(28px, 7vw, 40px); line-height: 1; letter-spacing: -.015em; }
.h3 { font-family: var(--display); font-weight: 700; font-stretch: 90%; font-size: 22px; line-height: 1.1; display: flex; align-items: center; gap: 8px; }
.h3 .icon { color: var(--accent); }
.accent-text { color: var(--accent); }
.lede { color: var(--ink-2); font-size: 17px; line-height: 1.55; max-width: 36em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 16px;
}
.eyebrow .icon { width: 16px; height: 16px; color: var(--accent); }
.label { display: flex; align-items: center; gap: 6px; font: 600 12px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.small { font-size: 14px; }
.muted { color: var(--muted); }
.fine { font-size: 13px; color: var(--muted); text-align: center; margin: 10px 0 0; }
.center { text-align: center; }
.ok-text { color: var(--live); }
.big-num { font-family: var(--display); font-weight: 800; font-stretch: 75%; font-size: 88px; line-height: .9; color: var(--accent); margin: 4px 0 12px; }
.ticker {
  font-family: var(--mono); font-weight: 700; font-size: 13px; letter-spacing: .02em;
  color: var(--accent); background: var(--accent-soft); padding: 3px 8px; border-radius: 999px; white-space: nowrap;
}
.ticker.big { font-size: 15px; padding: 5px 12px; }
.icon { width: 20px; height: 20px; flex: none; }

/* Live dot */
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); display: inline-block; flex: none; }
.dot.live { background: var(--live); box-shadow: 0 0 0 0 rgba(95, 211, 154, .6); animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(95, 211, 154, .55); } 70% { box-shadow: 0 0 0 9px rgba(95, 211, 154, 0); } 100% { box-shadow: 0 0 0 0 rgba(95, 211, 154, 0); } }

/* ---------- Header, footer, tab bar ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(15, 12, 10, .74); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1180px; margin: 0 auto; padding: 12px 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 0 0 1px var(--line-2), 0 6px 22px rgba(245, 165, 36, .18); }
.mark-flame { transform-origin: 32px 28px; animation: flicker 3.2s ease-in-out infinite; }
@keyframes flicker { 0%, 100% { transform: scale(1, 1); } 35% { transform: scale(.97, 1.05); } 60% { transform: scale(1.02, .97); } }
.wordmark { font-family: var(--display); font-weight: 800; font-stretch: 80%; font-size: 26px; letter-spacing: -.02em; line-height: 1; }
.brand.small .logo-mark { width: 28px; height: 28px; border-radius: 8px; }
.brand.small .wordmark { font-size: 22px; }

.nav { display: none; }
.nav a { text-decoration: none; color: var(--ink-2); font-weight: 550; font-size: 15px; padding: 8px 14px; border-radius: 999px; transition: color .15s, background .15s; }
.nav a:hover { color: var(--ink); background: var(--panel-2); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--panel-2); }
.nav a.nav-cta { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.nav a.nav-cta:hover { background: var(--accent-2); }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(4, 1fr);
  height: calc(var(--tabbar) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: rgba(21, 17, 14, .9); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-top: 1px solid var(--line);
}
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-decoration: none; color: var(--muted); font-size: 11.5px; font-weight: 600; }
.tabbar a .icon { width: 22px; height: 22px; }
.tabbar a[aria-current="page"] { color: var(--accent); }

.foot { border-top: 1px solid var(--line); margin-top: 72px; }
.foot-in { max-width: 1180px; margin: 0 auto; padding: 28px 18px 32px; display: grid; gap: 12px; }
.risk { color: var(--muted); font-size: 14px; margin: 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: 18px; margin: 0; font-size: 14px; }
.foot-links a { color: var(--ink-2); text-decoration: none; }
.foot-links a:hover { color: var(--accent); }

main { max-width: 1180px; margin: 0 auto; padding: 0 18px; }

/* ---------- Buttons, chips, fields ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--panel-2); color: var(--ink);
  font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .15s var(--ease), background .15s, border-color .15s, box-shadow .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--panel-3); border-color: rgba(255, 238, 214, .2); }
.btn:active { transform: scale(.97); }
.btn .icon { width: 18px; height: 18px; }
.btn.primary { background: var(--accent); border-color: transparent; color: var(--accent-ink); font-weight: 700; box-shadow: 0 8px 28px -8px var(--accent-glow); }
.btn.primary:hover { background: var(--accent-2); box-shadow: 0 10px 34px -6px var(--accent-glow); }
.btn.big { min-height: 58px; font-size: 18px; width: 100%; border-radius: 18px; }
.btn.big .icon { width: 22px; height: 22px; }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--danger); border-color: rgba(255, 116, 104, .3); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.btn.busy { position: relative; color: transparent !important; }
.btn.busy::after { content: ""; position: absolute; width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--accent-ink); border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.icon-btn { width: 46px; padding: 0; flex: none; }
.icon-btn.copied { background: var(--live); color: #06140D; border-color: transparent; }
.copied:not(.icon-btn) { border-color: var(--live); color: var(--live); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--ink-2); text-decoration: none;
  padding: 7px 12px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line);
}
.chip .icon { width: 15px; height: 15px; }
a.chip:hover { border-color: var(--line-2); color: var(--ink); }
.chip.on { color: var(--accent); background: var(--accent-soft); border-color: rgba(245, 165, 36, .25); }
.chip.accent { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }

.row { display: flex; align-items: center; }
.gap { gap: 10px; }
.wrap { flex-wrap: wrap; }
.stack { display: grid; gap: 16px; }

.form { display: grid; gap: 18px; }
.field { display: grid; gap: 0; min-width: 0; }
.field .label { margin-bottom: 8px; }
.opt { font-style: normal; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--muted); opacity: .8; }
input, textarea, select {
  width: 100%; font: 500 16px/1.4 var(--sans); color: var(--ink);
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r-s);
  padding: 13px 14px; transition: border-color .15s, box-shadow .15s, background .15s;
}
textarea { resize: vertical; min-height: 92px; }
input::placeholder, textarea::placeholder { color: #6A5D50; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); background: #120E0B; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); }
.err { color: var(--danger); font-size: 13.5px; font-weight: 500; }
.err:empty { display: none; }
.field .err { margin-top: 6px; }
.count { color: var(--muted); font-size: 12px; text-align: right; margin-top: 4px; }
.field-row { display: grid; grid-template-columns: 1fr; gap: 18px; }
.ticker-input { position: relative; display: block; }
.ticker-input b { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--accent); font-family: var(--mono); font-weight: 700; }
.ticker-input input { padding-left: 30px; font-family: var(--mono); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); cursor: pointer; }
.check input { width: 22px; height: 22px; flex: none; margin: 1px 0 0; padding: 0; accent-color: var(--accent); border-radius: 6px; }

.drop {
  position: relative; display: flex; align-items: center; gap: 14px; min-height: 92px; padding: 14px;
  border: 1.5px dashed var(--line-2); border-radius: var(--r-s); background: var(--bg-2); cursor: pointer;
  color: var(--muted); font-size: 14px; transition: border-color .15s, background .15s;
}
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop b { color: var(--ink); font-size: 15px; }
.drop-icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: var(--panel-2); color: var(--accent); flex: none; }
.drop-thumb { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; flex: none; }
.drop:has(.drop-thumb) .drop-icon { display: none; }

details.fold { border: 1px solid var(--line); border-radius: var(--r-s); background: var(--bg-2); }
details.fold > summary { list-style: none; cursor: pointer; padding: 14px 16px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::after { content: "+"; margin-left: auto; color: var(--accent); font-size: 20px; font-weight: 500; line-height: 1; transition: transform .2s var(--ease); }
details.fold[open] > summary::after { transform: rotate(45deg); }
details.fold > :not(summary) { margin: 0 16px 16px; }
details.fold.links > .field + .field { margin-top: 14px; }

.notice { background: var(--accent-soft); border: 1px solid rgba(245, 165, 36, .25); color: var(--accent-2); padding: 14px 16px; border-radius: var(--r-s); font-weight: 500; }
.empty { color: var(--muted); padding: 18px 0; grid-column: 1 / -1; }

/* ---------- Panels ---------- */
.panel, .card {
  background: linear-gradient(180deg, rgba(255, 238, 214, .025), transparent 40%), var(--panel);
  border: 1px solid var(--line); border-radius: var(--r); padding: 20px;
}
.section-head .muted { display: none; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.more-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); text-decoration: none; font-weight: 600; font-size: 15px; }
.more-link .icon { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.more-link:hover .icon { transform: translateX(3px); }

/* ---------- Launch page ---------- */
.facts { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li { border: 1px solid var(--line); background: rgba(255, 238, 214, .03); border-radius: 999px; padding: 7px 13px; display: flex; align-items: baseline; gap: 6px; }
.facts b { font-family: var(--display); font-weight: 800; font-stretch: 80%; font-size: 17px; line-height: 1.05; color: var(--accent); }
.facts span { font-size: 13px; color: var(--ink-2); line-height: 1.3; }
.launch-grid { display: grid; gap: 14px; }

.preview {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 14px;
  border-radius: var(--r); border: 1px solid var(--line-2);
  background: radial-gradient(120% 120% at 0% 0%, rgba(245, 165, 36, .14), transparent 55%), var(--panel);
  overflow: hidden;
}
.preview-img { width: 84px; height: 84px; border-radius: 18px; background: var(--panel-2); display: grid; place-items: center; overflow: hidden; flex: none; border: 1px solid var(--line); }
.preview-img img { width: 100%; height: 100%; object-fit: cover; }
.preview-ph { color: var(--muted); }
.preview-ph .icon { width: 30px; height: 30px; }
.preview-body { min-width: 0; }
.preview-body p { margin: 0 0 6px; }
.preview-name { font-family: var(--display); font-weight: 800; font-stretch: 85%; font-size: 22px; line-height: 1.05; overflow-wrap: anywhere; }
.preview-desc { color: var(--ink-2); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.preview-links { display: flex; gap: 6px; flex-wrap: wrap; }
.preview-links span { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--panel-3); color: var(--ink-2); }
.preview-links:empty { display: none; }
.preview-foot { display: none; }

.launch-btn .icon { animation: flicker 2.4s ease-in-out infinite; }

.result { grid-column: 1 / -1; display: grid; gap: 14px; padding: 24px 20px; border-radius: var(--r); border: 1px solid rgba(245, 165, 36, .3);
  background: radial-gradient(90% 70% at 50% 0%, rgba(245, 165, 36, .18), transparent 70%), var(--panel); animation: rise .6s var(--ease) both; }
.result[hidden] { display: none; }
.result-head { display: grid; justify-items: center; text-align: center; gap: 12px; margin-bottom: 6px; }
.result-head .eyebrow { margin: 6px 0 0; }
.result-img { width: 120px; height: 120px; border-radius: 30px; overflow: hidden; box-shadow: 0 0 0 1px var(--line-2), 0 18px 60px -10px var(--accent-glow); animation: pop .7s var(--ease) both .1s; }
.result-img img { width: 100%; height: 100%; object-fit: cover; }
@keyframes pop { from { transform: scale(.6) rotate(-8deg); opacity: 0; } to { transform: none; opacity: 1; } }
.keep-code { border: 1px solid var(--line); background: var(--bg-2); border-radius: var(--r-s); padding: 16px; display: grid; gap: 4px; }
.keep-code .small { color: var(--ink-2); margin: 8px 0 10px; }

.ca-bar { display: flex; align-items: center; gap: 8px; }
.ca-bar code { flex: 1; min-width: 0; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r-s); padding: 13px 14px; font-size: 13.5px; overflow-wrap: anywhere; line-height: 1.4; color: var(--ink); }
.ca-bar.big code { font-size: 15px; padding: 15px 16px; }
.ca-bar.big .icon-btn { width: 54px; min-height: 54px; background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.ca-bar.big .icon-btn.copied { background: var(--live); }

/* Feed + coin cards */
.band { margin-top: 64px; }
.feed { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.coin-card {
  display: flex; flex-direction: column; text-decoration: none; border-radius: var(--r); overflow: hidden;
  background: var(--panel); border: 1px solid var(--line);
  transition: transform .25s var(--ease), border-color .2s, box-shadow .25s;
  animation: rise .55s var(--ease) both;
}
.coin-card:hover { transform: translateY(-3px); border-color: rgba(245, 165, 36, .35); box-shadow: 0 16px 40px -18px var(--accent-glow); }
.coin-card:nth-child(2) { animation-delay: .04s; } .coin-card:nth-child(3) { animation-delay: .08s; } .coin-card:nth-child(4) { animation-delay: .12s; }
.coin-card:nth-child(5) { animation-delay: .16s; } .coin-card:nth-child(6) { animation-delay: .2s; } .coin-card:nth-child(n+7) { animation-delay: .24s; }
.coin-card.new { animation: drop-in .7s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes drop-in { from { opacity: 0; transform: translateY(-14px) scale(.96); box-shadow: 0 0 0 2px var(--accent); } to { opacity: 1; transform: none; } }
.cc-img { aspect-ratio: 1; background: var(--panel-2); overflow: hidden; }
.cc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.coin-card:hover .cc-img img { transform: scale(1.04); }
.cc-body { display: grid; gap: 6px; padding: 12px; }
.cc-top { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.cc-name { font-family: var(--display); font-weight: 750; font-stretch: 85%; font-size: 19px; line-height: 1.05; overflow-wrap: anywhere; color: var(--ink); }
.cc-desc { color: var(--muted); font-size: 13px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cc-meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.cc-meta .chip { padding: 3px 8px; font-size: 11.5px; }
.cc-meta .chip .icon { width: 12px; height: 12px; }
.counter { color: var(--muted); text-align: center; margin-top: 20px; font-size: 14px; }
.counter b { color: var(--ink); font-family: var(--display); font-stretch: 85%; font-size: 18px; }

.steps { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; counter-reset: s; }
.steps li { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 20px 18px; }
.steps h3 { font-family: var(--display); font-weight: 750; font-stretch: 85%; font-size: 24px; margin: 14px 0 6px; }
.steps p { color: var(--ink-2); margin: 0; }
.step-n { font-family: var(--display); font-weight: 800; font-stretch: 75%; font-size: 15px; color: var(--accent-ink); background: var(--accent); width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; }

.ap-modes, .mode-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ap-modes li, .mode-list li { display: grid; gap: 2px; padding: 14px 16px; border-radius: var(--r-s); background: var(--bg-2); border: 1px solid var(--line); }
.mode-list { margin-bottom: 18px; }
.ap-modes b, .mode-list b { font-weight: 650; }
.ap-modes span, .mode-list span { color: var(--muted); font-size: 14px; }

/* ---------- Page heads ---------- */
.page-head { padding: 30px 0 22px; }
.page-head .lede { margin-top: 14px; }
.center-head { text-align: center; display: grid; justify-items: center; padding: 60px 0; }
.search { position: relative; display: flex; gap: 8px; margin-top: 18px; max-width: 560px; }
.search > .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 18px; height: 18px; pointer-events: none; }
.search input { padding-left: 42px; border-radius: 999px; }
.search .btn { flex: none; }

/* ---------- Coin page ---------- */
.coin-layout { display: grid; gap: 16px; padding-top: 24px; }
.coin-hero { display: grid; gap: 18px; }
.coin-art { position: relative; width: min(78%, 300px); margin: 0 auto; }
.coin-art::before { content: ""; position: absolute; inset: 10% 8% -6%; background: var(--accent); filter: blur(60px); opacity: .22; border-radius: 50%; z-index: -1; }
.coin-img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 32px; border: 1px solid var(--line-2); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8); }
.coin-id { display: grid; gap: 12px; justify-items: start; }
.coin-id .eyebrow { margin: 0; }
.coin-desc { color: var(--ink-2); font-size: 17px; margin: 0; max-width: 40em; }
.ca-block { display: grid; gap: 12px; padding: 18px; border-radius: var(--r); border: 1px solid rgba(245, 165, 36, .22);
  background: linear-gradient(180deg, rgba(245, 165, 36, .07), transparent 70%), var(--panel); }
.ca-block .label { margin: 0; }

.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-s); padding: 14px 16px; }
.stat dt { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.stat dd { margin: 4px 0 0; font-family: var(--display); font-weight: 750; font-stretch: 85%; font-size: 24px; line-height: 1.1; }

.split { display: grid; gap: 12px; margin-bottom: 12px; }
.split-bar { width: 100%; height: 14px; border-radius: 999px; overflow: hidden; background: var(--panel-3); display: block; }
.seg-buy { fill: var(--accent); background: var(--accent); }
.seg-hold { fill: var(--hold); background: var(--hold); }
.seg-keep { fill: var(--keep); background: var(--keep); }
.split-legend { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--ink-2); }
.split-legend li { display: flex; align-items: center; gap: 8px; }
.split-legend b { color: var(--ink); }
i.seg-buy, i.seg-hold, i.seg-keep { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: none; }

.ledger { list-style: none; padding: 0; margin: 0; }
.ledger li { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.ledger li:first-child { border-top: 0; padding-top: 0; }
.l-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--panel-2); color: var(--ink-2); }
.l-icon .icon { width: 18px; height: 18px; }
.k-buyback .l-icon, .k-burn .l-icon, .k-launch .l-icon { color: var(--accent); background: var(--accent-soft); }
.k-holder_reward .l-icon { color: var(--hold); }
.l-main { display: grid; min-width: 0; }
.l-kind { font-weight: 600; }
.l-time { font-size: 13px; color: var(--muted); }
.l-side { display: grid; justify-items: end; text-align: right; gap: 2px; }
.l-amt { font-weight: 600; font-variant-numeric: tabular-nums; font-size: 14.5px; display: grid; justify-items: end; white-space: nowrap; }
.l-amt small { font-weight: 500; color: var(--muted); font-size: 12.5px; }
.tx { font-family: var(--mono); font-size: 12px; color: var(--muted); }
a.tx:hover { color: var(--accent); }

.money p { color: var(--ink-2); }
.money .h3 { margin-bottom: 12px; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0; }
.kv div { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-s); padding: 12px 14px; }
.kv dt { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.kv dd { margin: 2px 0 0; font-weight: 650; }

/* ---------- My coins ---------- */
.empty-state { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 40px 20px; border: 1px dashed var(--line-2); border-radius: var(--r); color: var(--muted); }
.empty-state[hidden] { display: none; }
.empty-icon { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: var(--panel-2); color: var(--accent); margin-bottom: 6px; }
.empty-icon .icon { width: 28px; height: 28px; }
.mine-card { display: grid; gap: 18px; animation: rise .5s var(--ease) both; }
.mine-head { display: flex; align-items: center; gap: 14px; }
.mine-head img { width: 64px; height: 64px; border-radius: 18px; object-fit: cover; border: 1px solid var(--line-2); flex: none; }
.mine-head > div { flex: 1; min-width: 0; }
.mine-title { font-family: var(--display); font-weight: 800; font-stretch: 85%; font-size: 24px; line-height: 1.05; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; overflow-wrap: anywhere; }
.mine-sub { margin: 4px 0 0; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; }
.mini-stats div { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-xs); padding: 10px 12px; }
.mini-stats dt { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.mini-stats dd { margin: 2px 0 0; font-weight: 650; font-size: 14px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.modes { display: grid; gap: 8px; }
.modes legend { padding: 0; }
.mode-opt { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; border-radius: var(--r-s); border: 1px solid var(--line-2); background: var(--bg-2); cursor: pointer; transition: border-color .15s, background .15s; }
.mode-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mode-opt::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; margin-top: 2px; transition: border .15s; }
.mode-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.mode-opt:has(input:checked)::before { border: 5px solid var(--accent); }
.mode-opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.mode-opt span { display: grid; gap: 2px; }
.mode-opt b { font-weight: 650; }
.mode-opt small { color: var(--muted); font-size: 13.5px; }
.smart-split { display: grid; gap: 12px; }
.smart-split[hidden], .limits[hidden], .holders-only[hidden] { display: none; }
.sum { margin-left: auto; font-family: var(--mono); text-transform: none; letter-spacing: 0; }
.sum.good { color: var(--live); }
.sum.bad { color: var(--danger); }
.mine-card .notice { margin: 0; }
.add-code { margin-top: 16px; }

/* ---------- How it works ---------- */
.steps.big { margin: 0 0 16px; }
.flow-panel p, .panel p { color: var(--ink-2); }
.panel .h2 { margin-bottom: 14px; }
section.panel + section.panel { margin-top: 16px; }
.flow { display: grid; gap: 8px; margin-top: 18px; }
.flow-step { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 14px; border-radius: var(--r-s); background: var(--bg-2); border: 1px solid var(--line); }
.flow-step b { grid-column: 2; }
.flow-step > span:not(.flow-icon) { grid-column: 2; color: var(--muted); font-size: 13.5px; }
.flow-icon { grid-row: 1 / 3; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--panel-2); color: var(--accent); }
.flow-step.fee { border-color: rgba(245, 165, 36, .35); background: var(--accent-soft); }
.flow-arrow { display: grid; place-items: center; color: var(--muted); transform: rotate(90deg); height: 18px; }
.flow-arrow .icon { width: 16px; height: 16px; }

/* ---------- Admin (shares the look) ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0; }
.stats div { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-s); padding: 12px 14px; }
.stats dt { font-size: 12.5px; color: var(--muted); }
.stats dd { margin: 2px 0 0; font-weight: 650; overflow-wrap: anywhere; }
.copy-row { display: flex; gap: 8px; align-items: center; }
.copy-row code { flex: 1; min-width: 0; overflow-wrap: anywhere; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r-s); padding: 12px 14px; }
.field.inline { display: grid; gap: 6px; }
.plain { list-style: none; padding: 0; margin: 0; }
.admin-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.audit { font-family: var(--mono); font-size: 12px; color: var(--ink-2); padding-left: 18px; max-height: 420px; overflow: auto; }
.audit li { padding: 3px 0; overflow-wrap: anywhere; }
#admin-panel, #admin-login { display: grid; gap: 16px; }
#admin-panel[hidden], #admin-login[hidden] { display: none; }
#admin-panel h2 { font-family: var(--display); font-weight: 750; font-stretch: 85%; font-size: 24px; margin-bottom: 12px; }
#admin-panel .check { margin-bottom: 10px; }
.mode-line { font-family: var(--mono); font-size: 13px; color: var(--accent); }

/* ---------- Wider screens ---------- */
@media (min-width: 420px) {
  .field-row { grid-template-columns: 1fr 150px; }
}
@media (min-width: 640px) {
  .section-head .muted { display: inline; }
  .feed { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .panel, .card { padding: 26px; }
  .flow { grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: stretch; }
  .flow-step { grid-template-columns: 1fr; grid-template-rows: auto; row-gap: 4px; align-content: start; }
  .flow-step b, .flow-step > span:not(.flow-icon) { grid-column: 1; }
  .flow-icon { grid-row: auto; margin-bottom: 8px; }
  .flow-arrow { transform: none; height: auto; }
}
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .tabbar { display: none; }
  .nav { display: flex; gap: 4px; align-items: center; }
  .top-in { padding: 14px 28px; }
  main, .foot-in { padding-left: 28px; padding-right: 28px; }
  .foot-in { grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; }

  .facts li { padding: 9px 15px; }
  .facts b { font-size: 19px; }
  #launch-form { padding: 28px; border-radius: 28px; box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .9); }
  .preview { flex-direction: row; padding: 18px; max-width: 520px; transform: rotate(-1.2deg); box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(245, 165, 36, .12); }
  .preview-img { width: 120px; height: 120px; border-radius: 22px; }
  .preview-name { font-size: 28px; }
  .preview-foot { display: flex; align-items: center; gap: 8px; position: absolute; top: 14px; right: 16px; margin: 0; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
  .result { padding: 36px; }

  .feed { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .band { margin-top: 96px; }

  .coin-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 32px; row-gap: 16px; padding-top: 40px; align-items: start; }
  .coin-hero { grid-column: 1 / -1; grid-template-columns: 300px 1fr; gap: 36px; align-items: center; }
  .coin-art { width: 100%; }
  .coin-layout > .notice, .coin-layout > .ca-block, .coin-layout > .stats-grid { grid-column: 1 / -1; }
  .ca-block { grid-template-columns: 1fr auto; align-items: end; }
  .ca-block .label { grid-column: 1 / -1; }
  .coin-layout > .panel { margin-top: 0 !important; }
  .coin-layout > .money { grid-column: 1 / -1; }
  .display-s { font-size: 76px; }

  .mine-card { padding: 28px; }
  .modes { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: repeat(4, 1fr); }
  .page-head { padding: 52px 0 28px; }
}
@media (min-width: 1100px) {
  .coin-hero { grid-template-columns: 340px 1fr; }
}

/* ===================== v3 components ===================== */
:root {
  --burn: #FF6A3D;
  --fee: #978872;
  --kept: #857563;
  --up: #5FD39A;
  --down: #F47A62;
}

/* ---------- Stepper (launch wizard) ---------- */
.stepper { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; counter-reset: st; }
.stepper li { display: grid; gap: 7px; font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.stepper li::before { content: ""; height: 4px; border-radius: 999px; background: var(--panel-3); transition: background .3s var(--ease); }
.stepper li.done::before { background: rgba(245, 165, 36, .55); }
.stepper li.now::before { background: var(--accent); box-shadow: 0 0 14px var(--accent-glow); }
.stepper li.now { color: var(--ink); }
.step-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.step-title { font-family: var(--display); font-weight: 800; font-stretch: 82%; font-size: 30px; line-height: 1; letter-spacing: -.015em; }
.step-count { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.step-sub { color: var(--ink-2); font-size: 15px; margin: 0 0 4px; }
.wizard-nav { display: flex; gap: 10px; }
.wizard-nav .btn { flex: 1; }
.wizard-nav .btn.back { flex: 0 0 auto; }

/* Compact preview on phones, above the step */
.mini-preview { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-s); background: var(--bg-2); border: 1px solid var(--line); }
.mini-preview .mp-img { width: 44px; height: 44px; border-radius: 12px; overflow: hidden; background: var(--panel-2); flex: none; display: grid; place-items: center; color: var(--muted); }
.mini-preview .mp-img img { width: 100%; height: 100%; object-fit: cover; }
.mini-preview b { font-family: var(--display); font-weight: 800; font-stretch: 85%; font-size: 18px; line-height: 1.05; display: block; }

/* Segmented control */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; gap: 4px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 999px; }
.seg button, .seg a, .seg label { appearance: none; border: 0; background: transparent; color: var(--ink-2); font: 600 14px/1 var(--sans); padding: 11px 12px; border-radius: 999px; cursor: pointer; text-align: center; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: background .2s, color .2s; }
.seg [aria-pressed="true"], .seg [aria-selected="true"], .seg [aria-current="page"], .seg label:has(input:checked) { background: var(--panel-3); color: var(--ink); box-shadow: 0 1px 0 rgba(255, 238, 214, .06) inset; }
.seg label input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg .icon { width: 16px; height: 16px; }

/* ---------- Cropper ---------- */
.cropper { display: grid; gap: 12px; }
.crop-frame { position: relative; aspect-ratio: 1; width: 100%; max-width: 420px; margin: 0 auto; border-radius: 26px; overflow: hidden; background: #000; touch-action: none; cursor: grab; border: 1px solid var(--line-2); }
.crop-frame:active { cursor: grabbing; }
.crop-frame canvas, .crop-frame img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.crop-frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background-image: linear-gradient(to right, rgba(255, 238, 214, .18) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 238, 214, .18) 1px, transparent 1px);
  background-size: 33.333% 33.333%; background-position: -1px -1px; box-shadow: inset 0 0 0 1px rgba(255, 238, 214, .12); opacity: .9; }
.crop-hint { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 2; font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; backdrop-filter: blur(6px); pointer-events: none; white-space: nowrap; }
.zoom { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.zoom .icon { width: 18px; height: 18px; }

/* Range inputs */
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; padding: 0; border: 0; background: transparent; box-shadow: none; --fill: var(--accent); --v: 50%; }
input[type="range"]:focus { box-shadow: none; background: transparent; }
input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 999px; background: linear-gradient(to right, var(--fill) var(--v), var(--panel-3) var(--v)); }
input[type="range"]::-moz-range-track { height: 8px; border-radius: 999px; background: var(--panel-3); }
input[type="range"]::-moz-range-progress { height: 8px; border-radius: 999px; background: var(--fill); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -9px; border-radius: 50%; background: var(--ink); border: 4px solid var(--fill); box-shadow: 0 4px 14px rgba(0,0,0,.5); transition: transform .15s var(--ease); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--ink); border: 4px solid var(--fill); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.12); }
input[type="range"]:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Templates */
.templates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tpl { position: relative; aspect-ratio: 1; border-radius: 18px; overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--panel-2); cursor: pointer; transition: transform .2s var(--ease), border-color .2s; }
.tpl img, .tpl canvas { width: 100%; height: 100%; display: block; object-fit: cover; }
.tpl:hover { transform: translateY(-2px); }
.tpl[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.tpl[aria-pressed="true"]::after { content: ""; position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A1203' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center / 14px no-repeat; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line-2); padding: 0; cursor: pointer; }
.swatch[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent); }

/* ---------- Presets (flywheel) ---------- */
.presets { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.preset { position: relative; display: grid; gap: 4px; align-content: start; padding: 14px; border-radius: var(--r-s); border: 1px solid var(--line-2); background: var(--bg-2); cursor: pointer; transition: border-color .2s, background .2s, transform .2s var(--ease); min-height: 104px; }
.preset input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.preset:hover { border-color: rgba(255, 238, 214, .22); }
.preset:has(input:checked) { border-color: var(--accent); background: radial-gradient(120% 100% at 0% 0%, rgba(245, 165, 36, .16), transparent 60%), var(--bg-2); }
.preset:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.preset .p-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--panel-2); color: var(--accent); margin-bottom: 4px; }
.preset .p-icon .icon { width: 18px; height: 18px; }
.preset b { font-weight: 700; font-size: 15px; }
.preset small { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.preset .p-bar { height: 5px; border-radius: 999px; overflow: hidden; display: flex; margin-top: 6px; background: var(--panel-3); }
.preset .p-bar i { display: block; height: 100%; }
.preset.wide { grid-column: 1 / -1; min-height: 0; }

/* Split sliders */
.sliders { display: grid; gap: 16px; }
.slider-row { display: grid; gap: 4px; }
.slider-row .sr-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.slider-row .sr-top span { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14.5px; }
.slider-row .sr-top output { font-family: var(--mono); font-weight: 700; font-size: 15px; color: var(--ink); font-variant-numeric: tabular-nums; }
.slider-row small { color: var(--muted); font-size: 12.5px; }
.slider-row.buy input[type="range"] { --fill: var(--accent); }
.slider-row.holders input[type="range"] { --fill: var(--hold); }
.slider-row.keep input[type="range"] { --fill: var(--kept); }
.slider-row.burn input[type="range"] { --fill: var(--burn); }
.slider-row.cap input[type="range"] { --fill: var(--ink-2); }
i.sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: none; }
.sw-buy { background: var(--accent); } .sw-burn { background: var(--burn); } .sw-holders { background: var(--hold); } .sw-keep { background: var(--kept); } .sw-fee { background: var(--fee); }
.chips-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-pick label { position: relative; }
.chips-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips-pick span { display: inline-flex; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg-2); font-weight: 600; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.chips-pick input:checked + span { background: var(--ink); color: var(--bg); border-color: transparent; }
.chips-pick input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Flow diagram ---------- */
.flow-card { position: relative; border-radius: var(--r); border: 1px solid var(--line); background: radial-gradient(90% 90% at 0% 50%, rgba(245, 165, 36, .08), transparent 60%), var(--bg-2); padding: 14px 12px 10px; overflow: hidden; }
.flow-svg { width: 100%; height: auto; display: block; overflow: visible; }
.flow-svg .rib { fill: none; stroke-linecap: butt; opacity: .34; transition: stroke-width .45s var(--ease), opacity .3s; }
.flow-svg .pulse { fill: none; stroke-linecap: round; stroke-dasharray: 2 16; opacity: .9; animation: flow 1.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -18; } }
.flow-svg .node { rx: 8; }
.flow-svg text { font-family: var(--sans); fill: var(--ink); font-size: 12px; font-weight: 600; }
.flow-svg text.amt { font-family: var(--mono); font-weight: 700; font-size: 11px; fill: var(--ink-2); }
.flow-svg text.big { font-family: var(--display); font-weight: 800; font-stretch: 85%; font-size: 15px; }
.c-buy { stroke: var(--accent); fill: var(--accent); } .c-burn { stroke: var(--burn); fill: var(--burn); } .c-holders { stroke: var(--hold); fill: var(--hold); }
.c-keep { stroke: var(--kept); fill: var(--kept); } .c-fee { stroke: var(--fee); fill: var(--fee); } .c-src { stroke: var(--accent); fill: var(--accent); }
.flow-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 8px 2px 0; font-size: 12.5px; color: var(--muted); }
.flow-legend span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Next run ---------- */
.next-run { border-radius: var(--r); border: 1px solid rgba(245, 165, 36, .24); background: linear-gradient(180deg, rgba(245, 165, 36, .07), transparent 70%), var(--panel); padding: 16px; display: grid; gap: 12px; }
.next-run .nr-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.next-run .nr-head b { font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.next-run .nr-head .icon { color: var(--accent); width: 18px; height: 18px; }
.countdown { font-family: var(--mono); font-weight: 700; font-size: 13px; color: var(--accent); background: var(--accent-soft); padding: 4px 10px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.plan { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.plan li { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px dashed var(--line-2); font-size: 14.5px; }
.plan li:first-child { border-top: 0; }
.plan li b { font-family: var(--mono); font-size: 13.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.plan .pi { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--panel-2); }
.plan .pi .icon { width: 14px; height: 14px; }
.plan .k-claim .pi { color: var(--live); } .plan .k-fee .pi { color: var(--fee); } .plan .k-buy .pi { color: var(--accent); }
.plan .k-burn .pi { color: var(--burn); } .plan .k-holders .pi { color: var(--hold); } .plan .k-keep .pi { color: var(--kept); }
.plan .k-skip { color: var(--muted); }
.nr-foot { font-size: 12.5px; color: var(--muted); margin: 0; }

/* ---------- Coin page v3 ---------- */
.coin-top { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center; padding-top: 18px; }
.coin-top .art { width: 76px; height: 76px; border-radius: 22px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 14px 40px -14px var(--accent-glow); }
.coin-top .art img { width: 100%; height: 100%; object-fit: cover; }
.coin-top h1 { font-family: var(--display); font-weight: 800; font-stretch: 80%; font-size: 34px; line-height: .95; letter-spacing: -.02em; overflow-wrap: anywhere; }
.coin-top .sub { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 18px 0 2px; }
.price-big { font-family: var(--display); font-weight: 800; font-stretch: 78%; font-size: 46px; line-height: .9; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.price-unit { font-size: 15px; color: var(--muted); font-weight: 600; }
.chg { font-family: var(--mono); font-weight: 700; font-size: 14px; padding: 4px 9px; border-radius: 999px; }
.chg.up { color: var(--up); background: rgba(95, 211, 154, .12); } .chg.down { color: var(--down); background: var(--danger-soft); } .chg.flat { color: var(--muted); background: var(--panel-2); }
.price-meta { color: var(--muted); font-size: 13.5px; margin: 0; }
.price-meta b { color: var(--ink-2); font-weight: 600; }

.chart-card { border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); padding: 12px 12px 10px; }
.chart-wrap { position: relative; height: 190px; }
.chart-svg { width: 100%; height: 100%; display: block; overflow: visible; }
.chart-svg .area { fill: url(#chartFill); }
.chart-svg .line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.chart-svg .grid { stroke: rgba(255, 238, 214, .06); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-svg .buy-mark { fill: var(--accent); stroke: var(--panel); stroke-width: 2; }
.chart-dot { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent-glow); animation: dotpulse 2s infinite; pointer-events: none; }
@keyframes dotpulse { 0% { box-shadow: 0 0 0 0 rgba(245, 165, 36, .6); } 70% { box-shadow: 0 0 0 10px rgba(245, 165, 36, 0); } 100% { box-shadow: 0 0 0 0 rgba(245, 165, 36, 0); } }
.chart-tip { position: absolute; top: 4px; transform: translateX(-50%); font-family: var(--mono); font-size: 11.5px; font-weight: 700; padding: 4px 8px; border-radius: 8px; background: var(--panel-3); color: var(--ink); pointer-events: none; white-space: nowrap; }
.chart-x { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(255, 238, 214, .25); pointer-events: none; }
.chart-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.ranges { display: flex; gap: 4px; }
.ranges button { appearance: none; border: 0; background: transparent; color: var(--muted); font: 700 12.5px/1 var(--mono); padding: 8px 10px; border-radius: 9px; cursor: pointer; }
.ranges button[aria-pressed="true"] { background: var(--panel-3); color: var(--ink); }
.chart-empty { height: 100%; display: grid; place-items: center; text-align: center; color: var(--muted); font-size: 14px; }

.grad { display: grid; gap: 8px; }
.grad-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 14px; }
.grad-top b { font-weight: 700; }
.grad-top span { font-family: var(--mono); font-weight: 700; color: var(--accent); }
.grad-bar { height: 12px; border-radius: 999px; background: var(--panel-3); overflow: hidden; position: relative; }
.grad-bar i { position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); border-radius: inherit; background: linear-gradient(90deg, #FF8A3D, var(--accent) 70%, #FFE08A); box-shadow: 0 0 18px var(--accent-glow); transition: width 1s var(--ease); }
.grad-bar i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 238, 214, .35), transparent); background-size: 60px 100%; animation: sheen 2.4s linear infinite; }
@keyframes sheen { from { background-position: -60px 0; } to { background-position: 200% 0; } }
.grad small { color: var(--muted); font-size: 12.5px; }
.grad.small .grad-bar { height: 6px; }

.share-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.share-row .btn { flex-direction: column; gap: 6px; min-height: 66px; padding: 8px 4px; border-radius: var(--r-s); font-size: 12.5px; }
.share-row .btn .icon { width: 20px; height: 20px; }

.counters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.counters div { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-s); padding: 12px 14px; }
.counters dt { font-size: 12px; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.counters dd { margin: 4px 0 0; font-family: var(--display); font-weight: 800; font-stretch: 82%; font-size: 24px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.counters dd small { font-family: var(--sans); font-size: 12px; font-weight: 600; color: var(--muted); margin-left: 3px; }

.holders { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.holders li { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; font-size: 13.5px; }
.holders .rank { font-family: var(--mono); color: var(--muted); font-size: 12px; text-align: right; }
.holders .who { display: grid; gap: 5px; min-width: 0; }
.holders .who code { font-size: 12.5px; color: var(--ink-2); }
.holders .bar { height: 5px; border-radius: 999px; background: var(--panel-3); overflow: hidden; }
.holders .bar i { display: block; height: 100%; width: var(--p, 0%); background: var(--hold); border-radius: inherit; opacity: .8; }
.holders .share { font-family: var(--mono); font-weight: 700; font-size: 13px; }
.tag { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 2px 6px; border-radius: 6px; margin-left: 6px; font-family: var(--sans); }

/* Timeline grouped by run */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline > li { position: relative; padding: 0 0 18px 30px; }
.timeline > li::before { content: ""; position: absolute; left: 9px; top: 22px; bottom: -2px; width: 2px; background: var(--line-2); }
.timeline > li:last-child::before { display: none; }
.timeline .t-dot { position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-2); border: 2px solid var(--accent); }
.timeline .t-dot .icon { width: 11px; height: 11px; color: var(--accent); }
.timeline .t-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.timeline .t-head b { font-weight: 700; }
.timeline .t-head time { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.t-steps { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.t-steps li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); flex-wrap: wrap; }
.t-steps li b { font-family: var(--mono); font-size: 13px; color: var(--ink); font-weight: 700; }
.t-steps .tx { margin-left: auto; }

/* ---------- Ticker ---------- */
.ticker-band { margin: 18px -18px 0; border-block: 1px solid var(--line); background: rgba(255, 238, 214, .015); overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: flex; gap: 28px; width: max-content; padding: 11px 0; animation: marquee 48s linear infinite; }
.ticker-band:hover .ticker-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.tk { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); white-space: nowrap; text-decoration: none; }
.tk img { width: 22px; height: 22px; border-radius: 7px; object-fit: cover; }
.tk b { color: var(--ink); font-weight: 650; }
.tk .k { font-weight: 700; }
.tk .k.buy { color: var(--accent); } .tk .k.burn { color: var(--burn); } .tk .k.new { color: var(--live); } .tk .k.holders { color: var(--hold); }

/* ---------- Explore v3 ---------- */
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -18px; padding: 0 18px 2px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; display: inline-flex; align-items: center; gap: 7px; text-decoration: none; padding: 10px 15px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); font-weight: 600; font-size: 14px; background: var(--bg-2); }
.tabs a .icon { width: 16px; height: 16px; }
.tabs a[aria-current="page"] { background: var(--ink); color: var(--bg); border-color: transparent; }
.filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.filters .chip { cursor: pointer; }
.filters .chip[aria-pressed="true"] { color: var(--accent); background: var(--accent-soft); border-color: rgba(245, 165, 36, .3); }

.rows { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.coin-row { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--panel); text-decoration: none; transition: border-color .2s, transform .2s var(--ease); animation: rise .5s var(--ease) both; }
.coin-row:hover { border-color: rgba(245, 165, 36, .3); transform: translateY(-1px); }
.coin-row .cr-img { width: 52px; height: 52px; border-radius: 14px; overflow: hidden; background: var(--panel-2); }
.coin-row .cr-img img { width: 100%; height: 100%; object-fit: cover; }
.coin-row .cr-mid { min-width: 0; display: grid; gap: 5px; }
.coin-row .cr-name { display: flex; align-items: center; gap: 7px; min-width: 0; }
.coin-row .cr-name strong { font-family: var(--display); font-weight: 750; font-stretch: 85%; font-size: 18px; line-height: 1.05; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.coin-row .ticker { font-size: 11.5px; padding: 2px 7px; }
.coin-row .cr-sub { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.coin-row .cr-sub .chip { padding: 2px 7px; font-size: 11px; }
.coin-row .cr-sub .chip .icon { width: 11px; height: 11px; }
.coin-row .cr-right { text-align: right; display: grid; gap: 3px; justify-items: end; }
.coin-row .cr-right b { font-family: var(--mono); font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.coin-row .cr-right .chg { font-size: 11.5px; padding: 2px 7px; }
.mini-grad { width: 64px; height: 4px; border-radius: 999px; background: var(--panel-3); overflow: hidden; }
.mini-grad i { display: block; height: 100%; width: var(--p, 0%); background: var(--accent); border-radius: inherit; }
.rank-n { font-family: var(--display); font-weight: 800; font-stretch: 75%; font-size: 22px; color: var(--muted); width: 26px; text-align: center; }
.coin-row.ranked { grid-template-columns: 26px 44px 1fr auto; }
.coin-row.ranked .cr-img { width: 44px; height: 44px; border-radius: 12px; }

.board-totals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.board-totals div { padding: 12px; border-radius: var(--r-s); background: var(--panel); border: 1px solid var(--line); }
.board-totals dt { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.board-totals dd { margin: 3px 0 0; font-family: var(--display); font-weight: 800; font-stretch: 82%; font-size: 20px; line-height: 1.05; }

/* ---------- Skeletons, states ---------- */
.skel { position: relative; overflow: hidden; background: var(--panel-2); border-radius: 10px; color: transparent !important; }
.skel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 238, 214, .06), transparent); animation: shimmer 1.4s infinite; }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.state { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 26px 16px; color: var(--muted); font-size: 14px; }
.state .icon { width: 26px; height: 26px; color: var(--accent); }

/* ---------- Dashboard ---------- */
.dash-head { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding-top: 18px; }
.dash-head img { width: 56px; height: 56px; border-radius: 16px; object-fit: cover; border: 1px solid var(--line-2); }
.dash-head h1 { font-family: var(--display); font-weight: 800; font-stretch: 82%; font-size: 28px; line-height: 1; }
.dash-head p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.switch { position: relative; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch i { width: 46px; height: 28px; border-radius: 999px; background: var(--panel-3); position: relative; transition: background .2s; flex: none; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); transition: transform .25s var(--ease); }
.switch input:checked + i { background: var(--live); }
.switch input:checked + i::after { transform: translateX(18px); }
.switch input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }
.since { border-radius: var(--r-s); border: 1px solid rgba(95, 211, 154, .25); background: rgba(95, 211, 154, .06); padding: 12px 14px; display: grid; gap: 6px; }
.since b { font-size: 13px; color: var(--live); display: inline-flex; align-items: center; gap: 6px; }
.since ul { margin: 0; padding-left: 18px; font-size: 14px; color: var(--ink-2); }
.withdraw .big-amt { font-family: var(--display); font-weight: 800; font-stretch: 80%; font-size: 40px; line-height: 1; }
.dash-tabs { position: sticky; top: 61px; z-index: 5; background: rgba(11,10,14,.85); backdrop-filter: blur(10px); padding: 10px 0; margin: 10px 0; }

/* ---------- v3: page glue ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
fieldset.step { display: grid; gap: 16px; animation: rise .4s var(--ease) both; }
fieldset.step[hidden] { display: none; }
legend.step-head { display: flex; width: 100%; padding: 0; float: left; }
legend.step-head + * { clear: both; }
.wizard { gap: 16px; }
.wizard .label .icon { width: 14px; height: 14px; }
.small-btn { min-height: 38px; font-size: 14px; justify-self: center; }
.src-upload, .src-template { display: grid; gap: 12px; }
.src-upload[hidden], .src-template[hidden] { display: none; }
.preview-fly:empty { display: none; }
.preview-fly { margin: 0; }
.mini-preview .mp-img .icon { width: 20px; height: 20px; }
.mini-preview .mp-img:has(img:not([hidden])) .icon { display: none; }
.mini-preview .ticker { margin-top: 4px; display: inline-block; }
.fee-table dl { margin: 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r-s); overflow: hidden; }
.fee-table dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; background: var(--bg-2); border-top: 1px solid var(--line); }
.fee-table dl > div:first-child { border-top: 0; }
.fee-table dt { color: var(--ink-2); font-size: 14px; }
.fee-table dd { margin: 0; text-align: right; display: grid; }
.fee-table dd b { font-weight: 700; font-size: 14px; }
.fee-table dd small { color: var(--muted); font-size: 12px; }
.p-bar i { width: 0; }

.cc-mcap { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cc-mcap b { font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--ink); }
.cc-mcap .chg { font-size: 11px; padding: 2px 6px; }
.coin-card .mini-grad { width: 100%; }
.tk-dup { display: contents; }
.ticker-band { margin-top: 28px; }
.ap-visual { display: grid; gap: 12px; }
.ap-modes li { grid-template-columns: 34px 1fr; column-gap: 12px; align-items: center; }
.ap-modes li .p-icon { grid-row: 1 / 3; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--panel-2); color: var(--accent); }
.ap-modes li .p-icon .icon { width: 18px; height: 18px; }
.ap-modes li b, .ap-modes li > span:not(.p-icon) { grid-column: 2; }

.page-head.compact { padding-bottom: 4px; }
.explore-controls { margin-top: 16px; }
.rows > li { list-style: none; }
.coin-row .cr-right small { color: var(--muted); font-size: 11.5px; }
.boards { display: grid; gap: 16px; }
.board .h3 { margin-bottom: 14px; }
.state p { margin: 0 0 6px; max-width: 30em; }

/* Coin page */
.coin-v3 { display: grid; gap: 14px; }
.coin-v3 .coin-top .eyebrow { margin: 0 0 6px; }
.coin-v3 > .coin-desc { margin: 2px 0 0; font-size: 16px; }
.coin-cols, .coin-main, .coin-side { display: grid; gap: 14px; align-content: start; min-width: 0; }
.market .price-row { margin-top: 4px; }
.chart-skel { position: absolute; inset: 0; border-radius: 14px; }
.flow-cap { margin: -6px 0 12px; }
.flywheel-panel .next-run { margin-top: 12px; }
.flywheel-panel > .small:last-child { margin: 14px 0 0; }
.flywheel-panel > .small a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
.flywheel-panel > .small .icon { width: 15px; height: 15px; }
.skel-line { display: block !important; padding: 8px 0 !important; border: 0 !important; }
.skel-line .skel { display: block; height: 18px; }
.coin-v3 .ca-block { gap: 12px; }
.counters dd small { white-space: nowrap; }

dialog.sheet { border: 1px solid var(--line-2); background: var(--panel); color: var(--ink); border-radius: var(--r); padding: 0; width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 40px); box-shadow: 0 40px 120px -20px rgba(0,0,0,.9); }
dialog.sheet::backdrop { background: rgba(8,6,5,.74); backdrop-filter: blur(4px); }
dialog.sheet[open] { animation: rise .35s var(--ease) both; }
.sheet-in { display: grid; gap: 14px; padding: 16px 18px 20px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.qr { background: #F4ECDF; border-radius: 18px; padding: 14px; width: min(320px, 100%); margin: 0 auto; }
.qr svg { display: block; width: 100%; height: auto; }
#share-card { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-2); }

/* Dashboard */
.unlock { margin-top: 16px; }
#dash { display: grid; gap: 14px; margin-top: 14px; }
#dash[hidden] { display: none; }
.tab-panel[hidden] { display: none; }
.dash-tabs { margin: 0; }
.custom-split[hidden] { display: none; }
.holders-only[hidden] { display: none; }
.schedule .label { margin-bottom: 10px; }
.withdraw { display: grid; gap: 14px; }
.withdraw .big-amt { margin: 0; }
.withdraw-form .field-row { grid-template-columns: 1fr auto; align-items: end; }
.withdraw-form .field-row .btn { min-height: 50px; }
.mine-rows { margin-bottom: 16px; }
.mine-rows .cr-right b { font-family: var(--sans); font-size: 13px; }

/* How it works */
.explainer { display: grid; gap: 16px; }
.explainer .h2 { margin-bottom: 0; }
.ex-out { grid-template-columns: repeat(2, 1fr); margin: 0; }
.ex-out dd { font-family: var(--mono); }
.faq { display: grid; gap: 8px; }
.faq details p { color: var(--ink-2); }

/* Status */
.status-list { list-style: none; padding: 0; margin: 0; }
.st-row { display: grid; grid-template-columns: 14px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.st-row:first-child { border-top: 0; padding-top: 0; }
.st-row:last-child { padding-bottom: 0; }
.st-name { display: grid; gap: 2px; }
.st-name small { color: var(--muted); font-size: 13px; }
.st-dot { width: 12px; height: 12px; border-radius: 50%; }
.st-dot.ok { background: var(--live); box-shadow: 0 0 12px rgba(95, 211, 154, .6); }
.st-dot.warn { background: var(--accent); }
.st-dot.bad { background: var(--danger); }
.st-word { font-weight: 700; font-size: 13.5px; }
.st-word.ok { color: var(--live); } .st-word.warn { color: var(--accent); } .st-word.bad { color: var(--danger); }

@media (min-width: 640px) {
  .templates { grid-template-columns: repeat(6, 1fr); }
  .presets { grid-template-columns: repeat(3, 1fr); }
  .counters { grid-template-columns: repeat(4, 1fr); }
  .ex-out { grid-template-columns: repeat(4, 1fr); }
  .ticker-band { margin-left: -28px; margin-right: -28px; }
}
@media (min-width: 900px) {
  .mini-preview { display: none; }
  .wizard .templates { grid-template-columns: repeat(3, 1fr); }
  .coin-cols { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: 24px; align-items: start; }
  .coin-v3 { padding-top: 28px; }
  .coin-top { grid-template-columns: 120px 1fr; gap: 22px; }
  .coin-top .art { width: 120px; height: 120px; border-radius: 30px; }
  .coin-top h1 { font-size: 56px; }
  .chart-wrap { height: 280px; }
  .boards { grid-template-columns: repeat(3, 1fr); align-items: start; }
  .board .coin-row.ranked { grid-template-columns: 22px 40px 1fr auto; gap: 10px; }
  #manage { max-width: 760px; margin: 0 auto; }
  .explainer .presets { grid-template-columns: repeat(4, 1fr); }
  .dash-tabs { top: 69px; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; overflow-x: auto; width: auto; }
  .tk-dup { display: none; }
}

.explore-controls + .rows, .explore-controls + .state { margin-top: 14px; }
#explore-feed + p, .rows + p.center { margin-top: 22px; }
@media (max-width: 899px) {
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ===================== Candlelight (design pass, 2026-10-19) =====================
   One idea everywhere: a wick that gets lit. The hero chart climbs into a real candle,
   the wizard's progress is a burning fuse, launching lifts the coin off a flame, empty
   states show an unlit candle. Motion is transform/opacity only and off for reduced motion. */
:root { --ease-out: cubic-bezier(.22, 1, .36, 1); --serif: "Instrument Serif", Georgia, "Times New Roman", serif; }
body {
  background:
    radial-gradient(ellipse 70% 42% at 88% -6%, rgba(245, 165, 36, .14), transparent 66%),
    radial-gradient(ellipse 80% 50% at 0% 0%, rgba(120, 70, 30, .10), transparent 70%),
    var(--bg);
}
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; font-stretch: 100%; letter-spacing: -.01em; color: var(--accent); }
.display .serif { display: block; text-wrap: balance; font-size: 1.04em; line-height: .95; padding-bottom: .04em; }
.h2 .serif { font-size: 1.1em; }

@keyframes grow { from { transform: scaleY(0); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes ignite { 0% { transform: scale(.1, .1); opacity: 0; } 60% { transform: scale(1.1, 1.25); opacity: 1; } 100% { transform: none; opacity: 1; } }
@keyframes glow-in { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes breathe { 0%, 100% { opacity: 1; transform: none; } 50% { opacity: .78; transform: scale(.94); } }
.facts li { background: rgba(255, 238, 214, .025); }

/* ---------- Fuse stepper ---------- */
.fuse-wrap { position: relative; margin: 0 0 18px; }
.fuse-wrap .stepper { margin: 0; }
.fuse-wrap .stepper li::before { visibility: hidden; }
.fuse { position: absolute; left: 0; right: 0; top: 0; height: 4px; border-radius: 999px; background: repeating-linear-gradient(90deg, var(--panel-3) 0 8px, transparent 8px 11px); }
.fuse-lit { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, #8A4A16, var(--accent) 80%, #FFD978); transform-origin: 0 50%; transform: scaleX(var(--k, .125)); transition: transform .6s var(--ease-out); }
.spark-run { position: absolute; inset: 0; transform: translateX(calc(var(--k, .125) * 100%)); transition: transform .6s var(--ease-out); pointer-events: none; }
.spark { position: absolute; left: -6px; top: -4px; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle, #FFF4D8 0 25%, var(--accent) 45%, rgba(245, 165, 36, 0) 72%); animation: spark 1.1s ease-in-out infinite; }
@keyframes spark { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: .75; } }
.stepper li { padding-top: 11px; transition: color .3s; }
.stepper li.done { color: var(--ink-2); }
fieldset.step:not([hidden]) { animation: step-in .45s var(--ease-out) both; }
@keyframes step-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }

/* ---------- Launch moment ---------- */
.liftoff { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; pointer-events: none; background: radial-gradient(circle at 50% 52%, rgba(245, 165, 36, .32), rgba(255, 110, 40, .08) 32%, transparent 55%), rgba(10, 8, 6, .86); animation: fade-in .25s ease-out both; overflow: hidden; }
.liftoff.out { animation: fade-out .35s ease-in both; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
.lo-rocket { position: relative; display: grid; justify-items: center; animation: lift 1.5s cubic-bezier(.5, 0, .3, 1) both; }
.lo-art { width: 132px; height: 132px; border-radius: 34px; overflow: hidden; background: var(--panel-2); box-shadow: 0 0 0 5px var(--hold), 0 30px 80px -10px rgba(245, 165, 36, .55); }
.lo-art img { width: 100%; height: 100%; object-fit: cover; }
.lo-flame { width: 40px; height: 90px; margin-top: 8px; transform: rotate(180deg); }
.lo-flame .lo-out { fill: var(--accent); }
.lo-flame .lo-in { fill: #FFF1CC; }
.lo-flame path { transform-box: fill-box; transform-origin: 50% 100%; animation: thrust .16s ease-in-out infinite alternate; }
@keyframes thrust { to { transform: scale(.86, 1.14); } }
@keyframes lift {
  0% { transform: translateY(70px) scale(.7); opacity: 0; }
  22% { transform: translateY(40px) scale(1); opacity: 1; }
  38% { transform: translate(-2px, 42px); } 46% { transform: translate(2px, 40px); } 54% { transform: translate(-1px, 41px); }
  100% { transform: translateY(-75vh) scale(.9); opacity: 1; }
}

.result { border-color: rgba(245, 165, 36, .22); }
.result-card {
  position: relative; display: grid; justify-items: center; gap: 10px; width: min(100%, 320px); padding: 26px 20px 22px; overflow: hidden;
  border-radius: 28px; background: radial-gradient(90% 70% at 50% 0%, rgba(245, 165, 36, .2), transparent 70%), var(--panel-2);
  box-shadow: 0 0 0 1px rgba(255, 238, 214, .12), 0 30px 70px -30px rgba(0, 0, 0, .9);
  animation: land .8s var(--ease-out) both;
}
.result-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 244, 216, .14) 50%, transparent 65%); transform: translateX(-100%); animation: foil 1.4s ease-out .5s both; pointer-events: none; }
@keyframes land { from { opacity: 0; transform: translateY(-60px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes foil { to { transform: translateX(100%); } }
.result-card .result-img { box-shadow: 0 0 0 4px var(--hold), 0 18px 60px -10px var(--accent-glow); }
.result-card .display-s { font-size: clamp(32px, 9vw, 52px); text-align: center; }
.result-card .eyebrow { margin: 4px 0 0; }

/* ---------- Scroll reveals ---------- */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease-out) var(--d, 0ms), transform .8s var(--ease-out) var(--d, 0ms); }
.rv.in { opacity: 1; transform: none; }
.page-head > *, .coin-top > *, .dash-head > * { animation: rise .6s var(--ease-out) both; }
.page-head > :nth-child(2), .coin-top > :nth-child(2) { animation-delay: .07s; }
.page-head > :nth-child(3) { animation-delay: .14s; } .page-head > :nth-child(4) { animation-delay: .2s; }

/* ---------- Empty states: an unlit candle ---------- */
.unlit { width: 64px; height: 72px; color: var(--muted); margin: 0 auto 4px; }
.unlit .u-smoke { opacity: .45; stroke-dasharray: 3 3; animation: smoke 3.4s linear infinite; }
@keyframes smoke { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -24; } }
.state, .empty-state { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 34px 20px; border: 1px dashed var(--line-2); border-radius: var(--r); color: var(--ink-2); background: rgba(255, 238, 214, .015); }
.state p, .empty-state p { margin: 0; max-width: 30em; }
.feed > .state { grid-column: 1 / -1; }

/* ---------- Controls: small, honest feedback ---------- */
.btn.primary { position: relative; overflow: hidden; }
.btn.primary::before { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255, 250, 235, .35) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease-out); pointer-events: none; }
.btn.primary:hover::before { transform: translateX(120%); }
.coin-row:active, .coin-card:active, .preset:active { transform: scale(.985); }
.icon-x, .btn .icon-x, .chip .icon-x { width: 15px; height: 15px; }

/* Tab bar: the current tab gets a small flame-coloured bar that slides in. */
.tabbar a { position: relative; transition: color .2s; }
.tabbar a::before { content: ""; position: absolute; top: 0; left: 50%; width: 28px; height: 3px; margin-left: -14px; border-radius: 0 0 4px 4px; background: var(--accent); transform: scaleX(0); transition: transform .3s var(--ease-out); }
.tabbar a[aria-current="page"]::before { transform: scaleX(1); }
.tabbar a .icon { transition: transform .15s; }
.tabbar a:active .icon { transform: scale(.88); }

/* ---------- Coin page: the coin as a card ---------- */
.coin-top { position: relative; padding: 18px; margin-top: 16px; border-radius: 26px; overflow: hidden;
  background: radial-gradient(80% 120% at 0% 0%, rgba(245, 165, 36, .16), transparent 60%), var(--panel);
  box-shadow: 0 0 0 1px var(--line-2), 0 30px 70px -40px rgba(0, 0, 0, .9); }
.coin-top::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 40%, rgba(255, 244, 216, .08) 50%, transparent 60%); transform: translateX(-100%); animation: foil 1.6s ease-out .3s both; pointer-events: none; }
.coin-top .art { box-shadow: 0 0 0 3px var(--hold), 0 14px 40px -14px var(--accent-glow); border: 0; }

dialog.sheet[open] { animation: sheet-up .35s var(--ease-out) both; }
@keyframes sheet-up { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }

@media (min-width: 900px) {
  .coin-top { padding: 24px; }
  .result-card { width: 380px; }
}
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; }
}

/* ===================== Flywheel hero + four colours (design pass, 2026-11-06) =====================
   The flywheel is the hero: a lit candle whose wax pays out as real flow bands. The four flow colours
   (burn red, buyback amber, holders cream, kept grey) carry through the page; the flame takes the colour
   of the flywheel you pick. A candle under the header burns along as you scroll. */
:root {
  --fl-1: #FF7A2E; --fl-2: #FFB21E; --fl-3: #FFD978; --fl-glow: rgba(245, 165, 36, .42); --fl-tint: rgba(245, 165, 36, .10);
}
[data-fly="burn"] { --fl-1: #D92E1C; --fl-2: #FF5A3C; --fl-3: #FFAE7A; --fl-glow: rgba(255, 90, 60, .46); --fl-tint: rgba(255, 90, 60, .11); }
[data-fly="holders"] { --fl-1: #E3BE7E; --fl-2: #F7EBD3; --fl-3: #FFFFFF; --fl-glow: rgba(244, 236, 223, .32); --fl-tint: rgba(244, 236, 223, .07); }
[data-fly="keep"] { --fl-1: #6E6052; --fl-2: #B3A38E; --fl-3: #EDE3D2; --fl-glow: rgba(170, 150, 130, .24); --fl-tint: rgba(170, 150, 130, .07); }

.fly-hero { position: relative; padding-top: 26px; display: grid; gap: 18px; }
.fly-hero::before { content: ""; position: absolute; inset: -40px -18px auto; height: 520px; pointer-events: none; z-index: -1;
  background: radial-gradient(60% 50% at 18% 62%, var(--fl-tint), transparent 70%); transition: background .6s; }
.fh-copy .display { font-size: clamp(42px, 12.4vw, 104px); }
.fh-copy .lede { margin-top: 14px; font-size: 16px; max-width: 46ch; }
.fh-copy > * { animation: rise .7s var(--ease-out) both; }
.fh-copy > h1 { animation-delay: .08s; } .fh-copy > .lede { animation-delay: .16s; }
.fh-stage { display: grid; gap: 10px; animation: rise .8s var(--ease-out) .22s both; }
.fh-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.fh-chip { min-width: 0; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  font: 600 14px/1 var(--sans); color: var(--ink-2); background: rgba(255, 238, 214, .03); border: 1px solid var(--line-2);
  transition: color .2s, background-color .2s, border-color .2s, transform .15s; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.fh-chip i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 18%, transparent); }
.fh-chip:active { transform: scale(.97); }
.fh-chip[aria-pressed="true"] { color: var(--ink); border-color: color-mix(in srgb, var(--c) 55%, transparent); background: color-mix(in srgb, var(--c) 13%, transparent); }
.fh-chip:focus-visible { outline: 2px solid var(--c); outline-offset: 2px; }
.fw-burn { --c: var(--burn); } .fw-holders { --c: var(--hold); } .fw-keep { --c: var(--kept); } .fw-balanced, .fw-buyback { --c: var(--accent); }
.hero-flow { aspect-ratio: 340 / 236; height: auto; }
.hero-flow .rib { opacity: .42; }
.hero-flow text { font-size: 12.5px; }
.hero-flow .fs1 { stop-color: var(--fl-1); } .hero-flow .fs2 { stop-color: var(--fl-2); } .hero-flow .fs3 { stop-color: var(--fl-3); }
.hero-flow .gs1 { stop-color: var(--fl-glow); } .hero-flow .gs2 { stop-color: var(--fl-glow); stop-opacity: 0; }
.hero-flow .hf-flame { transform-box: fill-box; transform-origin: 50% 100%; animation: ignite .55s var(--ease-out) both; }
.hero-flow .fl-out, .hero-flow .fl-in { transform-box: fill-box; transform-origin: 50% 100%; animation: flicker 2.6s ease-in-out .6s infinite; }
.hero-flow .fl-in { fill: #FFF6DE; animation-duration: 1.9s; }
.hero-flow .hf-glow { transform-box: fill-box; transform-origin: 50% 50%; animation: breathe 4s ease-in-out infinite; }
.fh-cap { margin: 0; font-size: 13.5px; color: var(--muted); }
.fly-hero .facts { margin: 0; }
.fh-side { display: grid; gap: 14px; margin-top: 4px; }
.facts li { gap: 8px; align-items: center; }
.facts li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }
.facts li b { color: var(--ink); }
.f-buy { --c: var(--accent); } .f-holders { --c: var(--hold); } .f-burn { --c: var(--burn); }
.fh-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 2px 0 0; }
.fh-cta .btn.primary { flex: 1 1 200px; justify-content: center; }

/* Chips for a coin's flywheel take its colour. */
.chip.on.fw-burn, .chip.on.fw-holders, .chip.on.fw-keep { color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); border-color: color-mix(in srgb, var(--c) 28%, transparent); }

/* The wizard section */
.light { margin-top: 56px; display: grid; gap: 14px; scroll-margin-top: 72px; }
.light-head .eyebrow { color: var(--accent); }
.light-head .h2 { margin-top: 6px; }

/* Four colours: what a flywheel can do */
.colors .lede { margin: 12px 0 18px; font-size: 16px; max-width: 60ch; }
.hues { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hues li { position: relative; display: grid; align-content: start; gap: 4px; padding: 18px 14px 14px; border-radius: var(--r-s); background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; min-width: 0; }
.hue-band { position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--c); }
.hue-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent); transform: translateX(-100%); animation: band-run 3.2s ease-in-out infinite; }
.hues li:nth-child(2) .hue-band::after { animation-delay: .4s; } .hues li:nth-child(3) .hue-band::after { animation-delay: .8s; } .hues li:nth-child(4) .hue-band::after { animation-delay: 1.2s; }
@keyframes band-run { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }
.hues b { font-family: var(--display); font-weight: 800; font-stretch: 85%; font-size: 20px; color: var(--c); line-height: 1.1; }
.hue-keep b { color: var(--ink-2); }
.hues span { color: var(--muted); font-size: 13.5px; line-height: 1.4; }
.hues em { font-style: normal; font-family: var(--mono); font-size: 12.5px; color: var(--ink); margin-top: 6px; }
.hue-burn { --c: var(--burn); } .hue-buy { --c: var(--accent); } .hue-holders { --c: var(--hold); } .hue-keep { --c: var(--kept); }

/* The scroll candle: a strip of wax under the header that burns away as you read. */
@media (max-width: 899px) { .light .preview-wrap { display: none; } }
.burn-meter { position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; pointer-events: none; --p: 0; }
.bm-wax { position: absolute; inset: 0; transform-origin: 100% 50%; transform: scaleX(calc(1 - var(--p)));
  background: linear-gradient(180deg, rgba(247, 238, 221, .5), rgba(185, 165, 134, .32)); }
.bm-run { position: absolute; inset: 0 6px; transform: translateX(calc(var(--p) * 100%)); }
.bm-run::before { content: ""; position: absolute; right: 100%; top: 0; width: 64px; height: 3px; background: linear-gradient(90deg, transparent, var(--fl-1)); opacity: .8; }
.bm-flame { position: absolute; left: -5px; top: -12px; width: 10px; height: 15px; border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  background: radial-gradient(circle at 50% 72%, #FFF6DE 0 18%, var(--fl-3) 30%, var(--fl-2) 55%, var(--fl-1) 80%);
  box-shadow: 0 0 12px 2px var(--fl-glow); transform-origin: 50% 100%; animation: flicker 2.2s ease-in-out infinite; }
.burn-meter[hidden] { display: none; }

@media (min-width: 420px) {
  .fh-pick { display: flex; flex-wrap: wrap; }
}
@media (min-width: 640px) {
  .hues { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 900px) {
  .fly-hero { padding-top: 52px; gap: 26px; }
  .fh-copy .display { font-size: clamp(56px, 6.2vw, 84px); }
  .fh-copy .display .serif { display: inline; }
  .fh-copy .lede { font-size: 18px; max-width: 56ch; }
  .fh-stage { grid-template-columns: 180px minmax(0, 1fr) 280px; grid-template-rows: auto 1fr; column-gap: 36px; row-gap: 14px; align-items: start;
    padding: 30px 32px; border-radius: 30px; border: 1px solid var(--line); background: radial-gradient(50% 90% at 30% 60%, var(--fl-tint), transparent 70%), rgba(255, 238, 214, .015); }
  .fh-pick { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; }
  .fh-chip { justify-content: flex-start; min-height: 46px; font-size: 15px; }
  .hero-flow { grid-column: 2; grid-row: 1 / span 2; width: 100%; max-width: 560px; justify-self: center; }
  .fh-cap { grid-column: 1; grid-row: 2; }
  .fh-side { grid-column: 3; grid-row: 1 / span 2; align-self: center; margin: 0; }
  .fly-hero .facts { flex-direction: column; align-items: flex-start; }
  .fh-cta { flex-direction: column; align-items: stretch; }
  .fh-cta .btn.primary { flex: none; }
  .fh-stage { grid-template-columns: 180px minmax(0, 1fr) 300px; }
  .light { margin-top: 96px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); column-gap: 48px; align-items: start; }
  .light > .light-head, .light > .notice, .light > .result { grid-column: 1 / -1; }
  .light .launch-grid { display: contents; }
  .light .preview-wrap { grid-column: 1; position: sticky; top: 100px; }
  .light #launch-form { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
  .bm-flame, .hue-band::after { animation: none; }
}
