:root {
  --soot: #0f0b09;
  --ash: #17110e;
  --ash-2: #211814;
  --char: #33261f;
  --bone: #f3e9df;
  --smoke: #bba898;
  --smoke-2: #8f7b6c;

  --h1: #5a0f08;
  --h2: #a3170c;
  --h3: #d9330f;
  --h4: #f2661b;
  --h5: #ffa53a;
  --h6: #ffd98a;
  --h7: #fff4dc;
  --molten-ink: #1d0802;
  --molten-ink-2: #4a1606;

  --ramp: linear-gradient(90deg, var(--h1), var(--h2) 18%, var(--h3) 36%, var(--h4) 55%, var(--h5) 72%, var(--h6) 87%, var(--h7));

  --display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--soot);
  color: var(--bone);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--h4); color: var(--molten-ink); }
html { scrollbar-color: var(--char) var(--soot); }
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--soot); }
::-webkit-scrollbar-thumb { background: var(--char); border-radius: 6px; border: 2px solid var(--soot); }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--h5); outline-offset: 3px; border-radius: 4px; }
input, textarea { caret-color: var(--h4); }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  font: 700 1rem/1 var(--body);
  padding: 0.95em 1.4em;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background-color 0.25s, box-shadow 0.35s var(--ease), color 0.25s, border-color 0.25s;
  white-space: nowrap;
}
.btn svg { width: 1.05em; height: 1.05em; flex: none; }
.btn-fire {
  background: var(--h4);
  color: var(--molten-ink);
  box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.7);
}
.btn-fire:hover { background: var(--h5); transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(0, 0, 0, 0.8); }
.btn-fire:active { transform: translateY(0); }
.btn-ghost { color: var(--bone); border-color: var(--char); background: transparent; }
.btn-ghost:hover { border-color: var(--h4); color: var(--h6); }
.btn-ink { background: var(--molten-ink); color: var(--h6); }
.btn-ink:hover { background: #000; transform: translateY(-2px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-sm { padding: 0.7em 1.1em; font-size: 0.9rem; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { background: rgba(15, 11, 9, 0.92); border-color: var(--char); }
.nav { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 6px; text-decoration: none; font: 800 1.3rem/1 var(--display); letter-spacing: -0.02em; }
.brand img { width: 52px; height: 52px; margin: -8px -6px -8px -10px; image-rendering: pixelated; mix-blend-mode: lighten; }
.brand span { display: inline; }
.brand b { color: var(--h4); font-weight: 800; }
.nav-links { display: flex; gap: 26px; margin-left: auto; list-style: none; padding: 0; }
.nav-links a { text-decoration: none; color: var(--smoke); font-weight: 600; font-size: 0.95rem; transition: color 0.2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--bone); }
.nav-cta { display: flex; gap: 10px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--char); color: var(--bone); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; }
.nav-toggle svg { width: 20px; height: 20px; margin: auto; }
.wallet-btn .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--h6); box-shadow: 0 0 0 3px rgba(255, 217, 138, 0.18); }

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: grid; }
  .site-header.open { background: var(--soot); border-color: var(--char); }
  .site-header.open .nav { flex-wrap: wrap; height: auto; padding: 14px 0 22px; row-gap: 18px; }
  .site-header.open .nav-toggle { margin-left: auto; }
  .site-header.open .nav-links { display: flex; flex-direction: column; gap: 4px; width: 100%; margin: 0; order: 3; }
  .site-header.open .nav-links a { display: block; padding: 10px 0; font-size: 1.15rem; color: var(--bone); border-bottom: 1px solid var(--char); }
  .site-header.open .nav-cta { display: flex; width: 100%; order: 4; }
  .site-header.open .nav-cta .btn { flex: 1; justify-content: center; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column;
  padding-top: 72px;
  overflow: hidden;
  isolation: isolate;
}
.hero::after {
  /* furnace mouth */
  content: ""; position: absolute; z-index: -2;
  left: 50%; bottom: -46vh; width: 160vw; height: 80vh; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 217, 138, 0.55), rgba(242, 102, 27, 0.45) 35%, rgba(163, 23, 12, 0.32) 60%, transparent 100%);
  animation: breathe 6s ease-in-out infinite;
}
@keyframes breathe { 50% { opacity: 0.78; transform: translateX(-50%) scaleY(0.94); } }
#embers { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.pyre {
  position: absolute; z-index: 0; pointer-events: none;
  right: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  bottom: clamp(110px, 16vh, 150px);
  width: min(30vw, 440px, calc(60vh * 0.75)); aspect-ratio: 72 / 96;
}
.pyre canvas { width: 100%; height: 100%; image-rendering: pixelated; image-rendering: crisp-edges; }
@media (max-width: 1000px) { .pyre { display: none; } }
.hero-body { position: relative; z-index: 1; flex: 1; display: flex; align-items: center; padding: clamp(28px, 6vh, 80px) 0 32px; }
@media (max-width: 560px) { .cycle li span:last-child { display: none; } .cycle li span:first-child { font-size: 0.8rem; white-space: nowrap; } }
.hero h1 {
  font: 800 clamp(2.9rem, min(8.4vw, 11vh), 6.6rem)/0.9 var(--display);
  letter-spacing: -0.04em;
  margin: 0 0 0.32em;
  max-width: 15ch;
  font-variation-settings: "opsz" 96;
}
.hero h1 .l { display: block; }
.hero h1 .hot { color: var(--h4); }
.hero h1 .white-hot { color: var(--h6); }
.hero-sub { max-width: 34rem; font-size: clamp(1.08rem, 1.5vw, 1.3rem); color: var(--smoke); margin: 0 0 2rem; text-wrap: pretty; }
.hero-sub strong { color: var(--bone); font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.ca-chip {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 28px; padding: 8px 8px 8px 14px;
  border: 1px solid var(--char); border-radius: 999px; background: rgba(23, 17, 14, 0.7);
  font-size: 0.88rem; color: var(--smoke); max-width: 100%;
}
.ca-chip .tick { font: 800 0.95rem var(--display); color: var(--h5); }
.ca-chip .ca-val { color: var(--bone); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ca-chip button { flex: none; border: 0; border-radius: 999px; padding: 6px 12px; font: 700 0.8rem var(--body); background: var(--ash-2); color: var(--bone); cursor: pointer; }
.ca-chip button:hover { background: var(--char); }
.ca-chip button[hidden] { display: none; }

/* the cycle ramp */
.cycle { position: relative; padding-bottom: clamp(24px, 4vh, 44px); }
.cycle-bar { height: 6px; border-radius: 6px; background: var(--ramp); }
.cycle ol { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.cycle li { display: flex; flex-direction: column; gap: 2px; padding-right: 12px; }
.cycle li span:first-child { font: 800 clamp(0.95rem, 1.6vw, 1.25rem)/1.1 var(--display); letter-spacing: 0.01em; text-transform: uppercase; }
.cycle li span:last-child { font-size: 0.86rem; color: var(--smoke); }
.cycle li:nth-child(1) span:first-child { color: #e2513a; }
.cycle li:nth-child(2) span:first-child { color: var(--h4); }
.cycle li:nth-child(3) span:first-child { color: var(--h5); }
.cycle li:nth-child(4) span:first-child { color: var(--h7); }
.cycle .spark {
  position: absolute; bottom: calc(clamp(24px, 4vh, 44px) - 5px); left: 0;
  width: 16px; height: 16px; border-radius: 50%; background: var(--h7);
  box-shadow: 0 0 18px 6px rgba(255, 217, 138, 0.7);
  animation: travel 7s var(--ease) infinite;
}
@keyframes travel {
  0% { left: 0; opacity: 0; }
  8% { opacity: 1; }
  88% { opacity: 1; }
  100% { left: calc(100% - 16px); opacity: 0; }
}

/* ---------- sections ---------- */
section { position: relative; }
.sec { padding: clamp(80px, 12vw, 150px) 0; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 32px 64px; align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
h2 {
  font: 800 clamp(2.3rem, 5.6vw, 4.6rem)/0.95 var(--display);
  letter-spacing: -0.035em; margin: 0; text-wrap: balance;
}
h2 em { font-style: normal; color: var(--h4); }
h3 { font: 700 1.35rem/1.15 var(--display); letter-spacing: -0.015em; margin: 0 0 0.4em; }
.lede { color: var(--smoke); font-size: 1.12rem; margin: 0; max-width: 36rem; text-wrap: pretty; }
@media (max-width: 820px) { .sec-head { grid-template-columns: 1fr; } }

/* ---------- treasury / furnace diagram ---------- */
.furnace {
  border: 1px solid var(--char); border-radius: 28px;
  background: linear-gradient(180deg, var(--ash) 0%, #1a0e09 100%);
  padding: clamp(24px, 4vw, 48px);
  overflow: hidden; position: relative;
}
.flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; position: relative; }
.flow::before {
  content: ""; position: absolute; left: 6%; right: 6%; top: 37px; height: 3px; border-radius: 3px; background: var(--ramp); opacity: 0.9;
}
.node { position: relative; text-align: center; padding: 0 8px; }
.node .ring {
  width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--soot); border: 2px solid currentColor; position: relative; z-index: 1;
}
.node .ring svg { width: 30px; height: 30px; }
.node h3 { font-size: 1.12rem; color: var(--bone); }
.node p { margin: 0; font-size: 0.92rem; color: var(--smoke); line-height: 1.45; }
.node:nth-child(1) { color: #c6402b; }
.node:nth-child(2) { color: var(--h3); }
.node:nth-child(3) { color: var(--h4); }
.node:nth-child(4) { color: var(--h5); }
.node:nth-child(5) { color: var(--h6); }
.node:nth-child(5) .ring { background: var(--h6); color: var(--molten-ink); border-color: var(--h6); }
.rules { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(32px, 4vw, 48px); padding-top: 28px; border-top: 1px dashed var(--char); }
.rule { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--ash-2); font-weight: 700; font-size: 0.88rem; }
.rule svg { width: 16px; height: 16px; color: var(--h5); }
@media (max-width: 820px) {
  .flow { grid-template-columns: 1fr; gap: 26px; }
  .flow::before { left: 37px; right: auto; top: 20px; bottom: 20px; width: 3px; height: auto; background: linear-gradient(180deg, var(--h1), var(--h3) 30%, var(--h4) 55%, var(--h5) 75%, var(--h7)); }
  .node { display: grid; grid-template-columns: 76px 1fr; gap: 0 18px; text-align: left; align-items: center; padding: 0; }
  .node .ring { margin: 0; grid-row: span 2; }
  .node h3 { margin: 0; align-self: end; }
  .node p { align-self: start; }
}

/* ---------- molten stats band ---------- */
.molten { background: var(--h4); color: var(--molten-ink); }
.molten-inner { padding: clamp(56px, 8vw, 96px) 0; }
.gauges { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 2px solid var(--molten-ink); }
.gauge { padding: 22px 20px 4px 0; border-right: 1px solid rgba(29, 8, 2, 0.25); }
.gauge + .gauge { padding-left: 20px; }
.gauge:last-child { border-right: 0; }
.gauge .val { font: 700 clamp(1.8rem, 3.6vw, 3rem)/1 var(--mono); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; display: block; margin-bottom: 10px; overflow-wrap: anywhere; }
.gauge .lab { font-weight: 800; font-size: 0.86rem; text-transform: uppercase; letter-spacing: 0.06em; }
.gauge .src { display: block; font-size: 0.82rem; color: var(--molten-ink-2); margin-top: 4px; font-weight: 600; }
.molten-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.molten-head h2 { color: var(--molten-ink); }
.molten-head p { margin: 0; max-width: 26rem; font-weight: 600; color: var(--molten-ink-2); }
@media (max-width: 980px) {
  .gauges { grid-template-columns: repeat(2, 1fr); }
  .gauge, .gauge + .gauge { padding: 20px 14px 16px 0; border-right: 0; border-bottom: 1px solid rgba(29, 8, 2, 0.25); }
  .gauge:nth-child(even) { padding-left: 14px; border-left: 1px solid rgba(29, 8, 2, 0.25); }
  .gauge:last-child { grid-column: 1 / -1; border-left: 0; padding-left: 0; }
}

/* ---------- coins ---------- */
.tabs { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--ash); border: 1px solid var(--char); }
.tab { border: 0; background: none; color: var(--smoke); font: 700 0.92rem var(--body); padding: 9px 18px; border-radius: 999px; cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.tab[aria-selected="true"] { background: var(--bone); color: var(--soot); }
.coins-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.coin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.empty {
  border: 1px dashed var(--char); border-radius: 24px;
  padding: clamp(40px, 7vw, 80px) 24px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: radial-gradient(60% 80% at 50% 120%, rgba(163, 23, 12, 0.28), transparent 70%);
}
.empty svg { width: 54px; height: 54px; margin-bottom: 10px; opacity: 0.85; }
.empty h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin: 0; }
.empty p { color: var(--smoke); margin: 0 0 18px; max-width: 30rem; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; counter-reset: s; }
.step { padding: 0 clamp(16px, 3vw, 40px) 0 0; position: relative; }
.step + .step { padding-left: clamp(16px, 3vw, 40px); border-left: 1px solid var(--char); }
.step .n { font: 700 0.85rem var(--mono); color: var(--smoke-2); display: block; margin-bottom: 18px; }
.step .heat { height: 4px; border-radius: 4px; margin-bottom: 26px; }
.step:nth-child(1) .heat { background: linear-gradient(90deg, var(--h1), var(--h3)); }
.step:nth-child(2) .heat { background: linear-gradient(90deg, var(--h3), var(--h5)); }
.step:nth-child(3) .heat { background: linear-gradient(90deg, var(--h5), var(--h7)); }
.step h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.step p { color: var(--smoke); margin: 0; }
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .step, .step + .step { padding: 0; border: 0; }
}

/* ---------- receipts ---------- */
.ledger { border: 1px solid var(--char); border-radius: 24px; overflow: hidden; background: var(--ash); }
.ledger-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--char); flex-wrap: wrap; }
.ledger-top strong { font: 700 1rem var(--display); }
.net { display: inline-flex; align-items: center; gap: 8px; font: 600 0.82rem var(--mono); color: var(--smoke); }
.net i { width: 8px; height: 8px; border-radius: 50%; background: #5fd38d; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 620px; }
th, td { text-align: left; padding: 14px 22px; font-size: 0.94rem; }
th { font: 700 0.76rem var(--body); text-transform: uppercase; letter-spacing: 0.08em; color: var(--smoke-2); border-bottom: 1px solid var(--char); }
td { border-bottom: 1px solid var(--char); font-family: var(--mono); font-variant-numeric: tabular-nums; }
tr:last-child td { border-bottom: 0; }
td.none { text-align: center; font-family: var(--body); color: var(--smoke); padding: 44px 22px; }

/* ---------- faq ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px; }
.faq details { border-bottom: 1px solid var(--char); }
.faq details:first-child { border-top: 1px solid var(--char); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center;
  padding: 22px 0; font: 700 clamp(1.08rem, 1.6vw, 1.3rem)/1.3 var(--display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 22px; height: 22px; flex: none; color: var(--h4); transition: transform 0.35s var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq summary:hover { color: var(--h6); }
.faq details p { margin: -6px 0 24px; color: var(--smoke); max-width: 62ch; }
@media (max-width: 820px) { .faq-grid { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- status ---------- */
.status-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--char); }
.status-list li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--char); flex-wrap: wrap; }
.status-list .k { font-weight: 700; }
.pill { display: inline-flex; align-items: center; gap: 8px; font: 600 0.84rem var(--mono); padding: 6px 12px; border-radius: 999px; background: var(--ash-2); color: var(--smoke); }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--smoke-2); }
.pill.ok { color: #9ee6b8; } .pill.ok i { background: #5fd38d; }
.pill.warm { color: var(--h6); } .pill.warm i { background: var(--h5); }
.status-note { margin: 18px 0 0; color: var(--smoke); font-size: 0.95rem; max-width: 60ch; }
.status-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px; }
@media (max-width: 820px) { .status-grid { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- close ---------- */
.close {
  background:
    radial-gradient(110% 140% at 50% 120%, var(--h7) 0%, var(--h6) 22%, var(--h5) 50%, var(--h4) 100%);
  color: var(--molten-ink);
  text-align: center;
  padding: clamp(90px, 14vw, 180px) 0;
  overflow: hidden;
}
.close h2 { font-size: clamp(2.6rem, 8vw, 6.4rem); color: var(--molten-ink); max-width: 14ch; margin: 0 auto 0.35em; }
.close p { font-weight: 700; font-size: clamp(1rem, 1.4vw, 1.2rem); margin: 0 auto 2rem; max-width: 34rem; color: var(--molten-ink-2); }

/* ---------- footer ---------- */
footer { padding: 48px 0 40px; border-top: 1px solid var(--char); }
.foot { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-start; }
.foot p { margin: 8px 0 0; color: var(--smoke); font-size: 0.92rem; max-width: 34rem; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
.foot-links a { color: var(--smoke); text-decoration: none; font-weight: 600; font-size: 0.92rem; }
.foot-links a:hover { color: var(--bone); }
.disclaimer { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--char); font-size: 0.82rem; color: var(--smoke-2); }

/* ---------- wallet dialog ---------- */
dialog.wallet {
  border: 1px solid var(--char); border-radius: 24px; padding: 28px; width: min(420px, calc(100vw - 32px));
  background: var(--ash); color: var(--bone);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
}
dialog.wallet::backdrop { background: rgba(8, 5, 4, 0.72); backdrop-filter: blur(4px); }
dialog.wallet h2 { font: 700 1.5rem/1.15 var(--display); letter-spacing: -0.015em; margin: 0 0 4px; }
dialog.wallet > p { color: var(--smoke); margin: 0 0 20px; font-size: 0.95rem; }
.wallet-list { display: grid; gap: 10px; }
.wallet-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border-radius: 14px; border: 1px solid var(--char); background: var(--soot);
  color: var(--bone); font: 700 1rem var(--body); cursor: pointer; text-decoration: none; transition: border-color 0.2s;
}
.wallet-opt:hover { border-color: var(--h4); }
.wallet-opt small { font: 600 0.78rem var(--mono); color: var(--smoke); }
.wallet-close { position: absolute; top: 14px; right: 14px; background: none; border: 0; color: var(--smoke); width: 36px; height: 36px; border-radius: 10px; cursor: pointer; }
.wallet-close:hover { color: var(--bone); background: var(--ash-2); }
.wallet-close svg { width: 18px; height: 18px; margin: auto; }
.wallet-err { color: #ff9c86; font-size: 0.9rem; margin: 12px 0 0; min-height: 1em; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--bone); color: var(--soot); font-weight: 700; padding: 12px 18px; border-radius: 12px; z-index: 80;
  transition: opacity 0.3s, transform 0.4s var(--ease); max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero h1 .l { animation: rise 1s var(--ease) both; }
  .hero h1 .l:nth-child(2) { animation-delay: 0.08s; }
  .hero h1 .l:nth-child(3) { animation-delay: 0.16s; }
  @keyframes rise { from { opacity: 0.001; transform: translateY(0.25em); filter: blur(8px); } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- launch page ---------- */
.launch-main { padding: 120px 0 100px; }
.launch-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.launch-intro h1 { font: 800 clamp(2.6rem, 6vw, 4.8rem)/0.92 var(--display); letter-spacing: -0.04em; margin: 0 0 0.3em; }
.launch-intro h1 span { color: var(--h4); }
.launch-intro p { color: var(--smoke); margin: 0 0 36px; max-width: 34rem; }
.form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label, .field .label { font-weight: 700; font-size: 0.95rem; display: flex; justify-content: space-between; gap: 8px; }
.field label small, .field .label small { font-weight: 500; color: var(--smoke-2); }
.field input, .field textarea {
  width: 100%; font: 500 1rem var(--body); color: var(--bone);
  background: var(--ash); border: 1px solid var(--char); border-radius: 14px; padding: 14px 16px;
  transition: border-color 0.2s, background-color 0.2s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--smoke-2); }
.field input:hover, .field textarea:hover { border-color: #4a382e; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--h4); background: #1c1410; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #ff7a5c; }
.field .err { color: #ff9c86; font-size: 0.86rem; min-height: 0; margin: 0; }
.field .err:empty { display: none; }
.prefix { position: relative; }
.prefix span { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--h5); font-weight: 800; }
.prefix input { padding-left: 32px; text-transform: uppercase; }
.drop {
  display: flex; align-items: center; gap: 16px; padding: 16px; border: 1px dashed var(--char); border-radius: 14px; background: var(--ash); cursor: pointer;
  transition: border-color 0.2s;
}
.field label.drop { justify-content: flex-start; font-weight: 500; position: relative; }
.drop:hover, .drop.drag { border-color: var(--h4); }
.drop .thumb { width: 72px; height: 72px; border-radius: 14px; background: var(--ash-2); display: grid; place-items: center; flex: none; overflow: hidden; }
.drop .thumb img { width: 100%; height: 100%; object-fit: cover; }
.drop .thumb svg { width: 28px; height: 28px; color: var(--smoke-2); }
.drop strong { display: block; }
.drop span { color: var(--smoke); font-size: 0.88rem; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.fee-lock {
  border-radius: 18px; padding: 18px 20px; background: linear-gradient(135deg, rgba(163, 23, 12, 0.35), rgba(242, 102, 27, 0.18));
  border: 1px solid rgba(242, 102, 27, 0.4); display: flex; gap: 14px; align-items: flex-start;
}
.fee-lock svg { width: 26px; height: 26px; color: var(--h5); flex: none; margin-top: 2px; }
.fee-lock strong { display: block; font-family: var(--display); font-size: 1.08rem; }
.fee-lock p { margin: 2px 0 0; color: var(--smoke); font-size: 0.92rem; }
.submit-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.submit-note { color: var(--smoke); font-size: 0.9rem; margin: 0; }
.form-result { border-radius: 16px; padding: 16px 18px; background: var(--ash-2); border: 1px solid var(--char); color: var(--bone); }
.form-result[hidden] { display: none; }
.form-result strong { color: var(--h6); }

.preview { position: sticky; top: 100px; }
.preview .label { font: 700 0.78rem var(--body); text-transform: uppercase; letter-spacing: 0.08em; color: var(--smoke-2); margin-bottom: 12px; display: block; }
.coin-card {
  border: 1px solid var(--char); border-radius: 24px; background: var(--ash); overflow: hidden;
}
.coin-card .top { display: flex; gap: 16px; align-items: center; padding: 22px; }
.coin-card .img { width: 68px; height: 68px; border-radius: 16px; background: var(--ash-2); flex: none; overflow: hidden; display: grid; place-items: center; }
.coin-card .img img { width: 100%; height: 100%; object-fit: cover; }
.coin-card .img svg { width: 30px; height: 30px; color: var(--smoke-2); }
.coin-card .name { font: 800 1.35rem/1.1 var(--display); overflow-wrap: anywhere; }
.coin-card .tick { color: var(--h5); font-weight: 800; }
.coin-card .desc { padding: 0 22px 20px; color: var(--smoke); font-size: 0.94rem; margin: 0; overflow-wrap: anywhere; }
.coin-card .treasury { border-top: 1px solid var(--char); padding: 16px 22px 20px; display: grid; gap: 10px; }
.coin-card .line { display: flex; justify-content: space-between; gap: 10px; font-size: 0.9rem; }
.coin-card .line span:first-child { color: var(--smoke); }
.coin-card .bar { height: 4px; border-radius: 4px; background: var(--ramp); }
@media (max-width: 900px) {
  .launch-grid { grid-template-columns: 1fr; }
  .preview { position: static; }
}
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
