:root {
  --hi: #fdf28d;
  --hi-2: #f1e57a;
  --cream: #f8f5ea;
  --paper: #fffdf6;
  --ink: #0e0e0d;
  --ink-2: #1a1a17;
  --ink-3: #26261f;
  --line-d: #33332b;
  --line-l: rgba(14, 14, 13, .14);
  --mute-l: #5d5b50;
  --mute-d: #a8a693;
  --up: #3ecf8e;
  --down: #ec5a4f;
  --display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --gut: clamp(16px, 4.2vw, 60px);
  --r: 28px;
  --acc: var(--ink);      /* primary buttons */
  --acc-fg: var(--hi);
  --bg: color-mix(in srgb, var(--hi) 16%, #fbf9f1); /* page background */
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 500 17px/1.55 var(--display);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }
::selection { background: var(--ink); color: var(--hi); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.dark :focus-visible { outline-color: var(--hi); }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--hi); padding: 10px 16px; border-radius: 999px; }
.skip:focus { left: 8px; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 800; margin: 0; letter-spacing: -.055em; line-height: .9; }
h1 { font-size: clamp(56px, 11.5vw, 184px); }
h2 { font-size: clamp(44px, 7.4vw, 112px); }
h3 { font-size: clamp(30px, 3.6vw, 52px); letter-spacing: -.045em; line-height: .95; }
.label {
  font: 500 12.5px/1.2 var(--mono);
  letter-spacing: .18em;
  text-transform: uppercase;
}
.label.dot::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: currentColor; margin-right: 12px; vertical-align: 1px; }
.lede { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; font-weight: 500; max-width: 38ch; }
.mono { font-family: var(--mono); }
.muted { color: var(--mute-l); }
.dark .muted { color: var(--mute-d); }
.yel { color: var(--hi); }
.under { text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .12em; }

/* ---------- chrome: progress, header ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; background: transparent; }
.progress i { display: block; height: 100%; width: 0; background: var(--ink); transition: width .1s linear; }

.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 18px var(--gut);
  transition: background .25s, box-shadow .25s;
}
.dark-top .top:not(.solid) { color: var(--paper); }
.dark-top .top:not(.solid) .logo-mark { filter: none; }
.dark-top .top:not(.solid):not(.menu-open) .x-link { color: var(--paper); }
.dark-top .top.menu-open { color: var(--ink); }
.dark-top .top.menu-open .logo-mark { filter: brightness(0); }
.dark-top .top:not(.solid):not(.menu-open) .menu-btn { background: var(--paper); color: var(--ink); }
.dark-top .top:not(.solid) .x-link:hover { background: rgba(255, 255, 255, .1); }
.top.solid { background: color-mix(in srgb, var(--hi-2) 88%, transparent); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line-l); }
.brand { display: flex; align-items: center; gap: 6px; text-decoration: none; margin-right: auto; }
.brand b { font: 800 27px/1 var(--display); letter-spacing: -.06em; }
.brand { gap: 10px; }
.logo-mark { width: auto; height: 30px; filter: brightness(0); }
.foot .logo-mark { height: 46px; filter: none; }
.x-link { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--ink); margin-right: 6px; }
.x-link svg { width: 19px; height: 19px; }
.x-link:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { text-decoration: none; font-weight: 600; font-size: 16px; }
.nav a:hover, .nav a.on { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 0;
  background: var(--acc); color: var(--acc-fg);
  font: 700 16px/1 var(--display); letter-spacing: -.01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s cubic-bezier(.3, 1.6, .5, 1), background .2s;
}
.pill:hover { transform: translateY(-2px) scale(1.02); }
.pill:active { transform: scale(.97); }
.pill.big { padding: 22px 38px; font-size: 21px; }
.pill.light { background: var(--hi); color: var(--ink); }
.pill.line { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.pill.full { width: 100%; padding: 18px; font-size: 18px; }
.pill:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.pill.warn { background: var(--down); color: var(--paper); }
.tag { display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1.2px currentColor; font: 500 12.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; }

.menu-btn { display: none; background: var(--ink); color: var(--hi); border: 0; border-radius: 999px; width: 46px; height: 46px; cursor: pointer; }
.menu-btn svg { width: 20px; height: 20px; }
@media (max-width: 860px) {
  .top { gap: 10px; }
  .nav {
    position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; gap: 8px;
    background: var(--hi); transform: translateY(-100%); visibility: hidden; transition: transform .45s cubic-bezier(.7, 0, .2, 1), visibility 0s .45s;
  }
  .nav.open { transform: none; visibility: visible; transition: transform .45s cubic-bezier(.7, 0, .2, 1); }
  .top.menu-open { backdrop-filter: none; }
  .nav a { font: 800 clamp(44px, 13vw, 72px)/1.05 var(--display); letter-spacing: -.05em; }
  .menu-btn { display: grid; place-items: center; }
  #walletBtn { padding: 12px 16px; font-size: 14px; }
}


/* ---------- bands ---------- */
main:focus { outline: none; }
.band { position: relative; padding: clamp(96px, 12vw, 170px) var(--gut); }
.band.y { background: var(--hi); }
.band.c { background: var(--cream); }
.band.dark { background: var(--ink); color: var(--paper); }
.band.round { border-radius: var(--r) var(--r) 0 0; margin-top: calc(-1 * var(--r)); }
.wrap { max-width: 1320px; margin: 0 auto; }
.page { padding: 130px var(--gut) 120px; min-height: 80vh; }
.page-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 44px; }
.page-head h2 { font-size: clamp(34px, 4.2vw, 56px); }
.split-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: end; }
.split-head .lede { justify-self: end; }
@media (max-width: 860px) { .split-head { grid-template-columns: 1fr; } .split-head .lede { justify-self: start; } }

/* ---------- hero ---------- */
.hero { min-height: 100svh; display: flex; align-items: center; padding-top: 120px; padding-bottom: 80px; overflow: hidden; }
.hero .wrap { width: 100%; display: grid; grid-template-columns: 1.35fr 1fr; gap: 24px; align-items: center; }
.hero h1 .swap { display: inline-block; position: relative; }
.hero h1 .swap b { font-weight: 800; }
.hero h1 { font-size: clamp(56px, 8.2vw, 138px); }
.hero .label { margin-bottom: 26px; min-height: 1.2em; }
.hero .lede { margin: 34px 0 38px; }
.hero .row { display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: 1fr; } }



/* ---------- marquee ---------- */
.marquee { background: var(--ink); color: var(--hi); overflow: hidden; padding: 22px 0; position: relative; z-index: 2; }
.marquee .track { display: flex; width: max-content; animation: marq 60s linear infinite; }
.marquee span { font: 800 clamp(26px, 3vw, 40px)/1 var(--display); letter-spacing: -.04em; padding: 0 22px; white-space: nowrap; }
.marquee span.star { color: var(--paper); padding: 0; opacity: .7; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes marq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee .track { animation: none; } }

/* ---------- what ---------- */
.chips-row { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 26px; }
.chips-row span::before { content: "◆"; margin-right: 10px; font-size: 10px; vertical-align: 2px; }

/* ---------- steps ---------- */
.step { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; padding: 70px 0; border-top: 1px solid var(--line-d); position: relative; }
.step:first-of-type { border-top: 0; }
.step .ticks { display: flex; gap: 10px; align-items: center; font: 500 12px var(--mono); color: var(--mute-d); margin-bottom: 26px; }
.step .ticks b { color: var(--hi); font-weight: 500; }
.step .ticks i { display: block; height: 1.5px; width: 16px; background: currentColor; opacity: .6; }
.step .ticks i.on { width: 36px; background: var(--hi); opacity: 1; }
.step .label { color: var(--mute-d); margin-bottom: 18px; }
.step p { color: var(--mute-d); max-width: 44ch; margin: 22px 0; font-size: 18px; }
.step ul { list-style: none; padding: 0; margin: 0 0 28px; font: 14px/2 var(--mono); color: var(--hi); }
.step ul li::before { content: "→ "; }
.step .num { position: absolute; right: 0; bottom: -10px; font: 800 clamp(160px, 22vw, 320px)/1 var(--display); letter-spacing: -.08em; color: rgba(253, 242, 141, .04); pointer-events: none; z-index: 0; }
.step > * { position: relative; z-index: 1; }
@media (max-width: 860px) { .step { grid-template-columns: 1fr; padding: 50px 0; } }

.screen { background: var(--ink-2); border: 1px solid var(--line-d); border-radius: 26px; padding: 26px; min-height: 300px; display: flex; flex-direction: column; gap: 16px; }
.screen .cap { font: 12px var(--mono); color: var(--mute-d); }
.screen .box { border: 2px solid var(--hi); border-radius: 12px; padding: 12px 16px; font: 15px var(--mono); color: var(--hi); display: flex; justify-content: space-between; }
.screen .box.fill { background: var(--hi); color: var(--ink); font-weight: 500; }
.screen .chipline { display: flex; gap: 8px; flex-wrap: wrap; }
.screen .chipline span { background: var(--ink-3); padding: 6px 10px; border-radius: 8px; font: 12px var(--mono); color: var(--mute-d); }
.screen .chipline span.ok { color: var(--up); background: rgba(62, 207, 142, .1); }
.screen svg { width: 100%; height: auto; flex: 1; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stats b { display: block; font: 800 clamp(58px, 7vw, 108px)/.9 var(--display); letter-spacing: -.06em; color: var(--hi); }
.stats span { display: block; margin-top: 16px; font: 500 12.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute-d); }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr 1fr; row-gap: 48px; } }

/* ---------- cta ---------- */
.cta .wrap { display: block; }
.cta h2 { font-size: clamp(64px, 11vw, 176px); margin-bottom: 36px; }
.facts-row { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 30px 70px; margin-top: 70px; }
.facts-row .label { color: var(--mute-l); margin-bottom: 8px; }
.facts-row b { display: block; font-size: 21px; letter-spacing: -.02em; }
.facts-row small { color: var(--mute-l); font-size: 16px; }
@media (max-width: 960px) { .facts-row { grid-template-columns: 1fr; } }

/* ---------- filters & asset cards ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chip { border: 0; box-shadow: inset 0 0 0 1.5px var(--ink); background: transparent; padding: 9px 16px; border-radius: 999px; cursor: pointer; font: 600 15px var(--display); }
.chip.on, .chip:hover { background: var(--ink); color: var(--hi); }
.search { border: 0; box-shadow: inset 0 0 0 1.5px var(--ink); background: var(--paper); padding: 10px 18px; border-radius: 999px; min-width: 220px; font: 500 15px var(--mono); }
.search:focus { outline: none; box-shadow: inset 0 0 0 2.5px var(--ink); }
.toolbar { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 44px 0 26px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.asset {
  display: flex; flex-direction: column; gap: 4px; min-height: 176px; padding: 22px;
  background: var(--paper); border-radius: 22px; text-decoration: none; box-shadow: inset 0 0 0 1.5px var(--ink);
  transition: transform .25s cubic-bezier(.3, 1.5, .5, 1), background .2s, color .2s;
}
.asset:hover { background: var(--ink); color: var(--hi); transform: translateY(-4px) rotate(-.6deg); }
.asset .grp { font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; opacity: .6; }
.asset .sym { font: 800 42px/1 var(--display); letter-spacing: -.05em; margin-top: 10px; }
.asset .nm { font-size: 15px; flex: 1; opacity: .75; }
.asset .go { font: 500 13px var(--mono); }

/* ---------- coin cards ---------- */
.coins { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.coin {
  display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 18px; border-radius: 22px;
  background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink); text-decoration: none;
  transition: transform .25s cubic-bezier(.3, 1.5, .5, 1);
}
.coin:hover { transform: translateY(-4px); }
.dark .coin { background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-d); }
.dark .coin:hover { box-shadow: inset 0 0 0 1.5px var(--hi); }
.logo { width: 64px; height: 64px; border-radius: 16px; background: var(--hi); color: var(--ink); object-fit: cover; display: grid; place-items: center; font: 800 22px var(--display); letter-spacing: -.04em; overflow: hidden; }
.logo.big { width: 110px; height: 110px; border-radius: 28px; font-size: 38px; }
.coin .t { font-weight: 800; font-size: 20px; letter-spacing: -.03em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coin .s { font: 13px var(--mono); opacity: .65; }
.bar { height: 8px; border-radius: 999px; background: rgba(14, 14, 13, .1); margin-top: 12px; overflow: hidden; }
.dark .bar { background: var(--ink-3); }
.bar i { display: block; height: 100%; border-radius: inherit; background: var(--ink); }
.dark .bar i { background: var(--hi); }
.coin .meta { display: flex; justify-content: space-between; font: 12px var(--mono); opacity: .65; margin-top: 8px; gap: 8px; }

/* ---------- panels & forms (inner pages) ---------- */
.split { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; } }
.panel { background: var(--ink); color: var(--paper); border-radius: var(--r); padding: clamp(22px, 3vw, 36px); }
.panel.light { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.panel.yellow { background: var(--hi); color: var(--ink); }
.panel + .panel { margin-top: 20px; }
.panel h3 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute-d); }
.field input:not([type=range]), .field textarea, .field select {
  background: var(--ink-2); border: 1.5px solid var(--line-d); padding: 14px 16px; border-radius: 16px; width: 100%; color: var(--paper);
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--hi); outline: none; }
.field textarea { resize: vertical; min-height: 96px; }
.field input[type=range] { accent-color: var(--hi); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .two { grid-template-columns: 1fr; } }
details.more { border-top: 1px solid var(--line-d); padding: 16px 0 2px; margin-bottom: 14px; }
details.more summary { cursor: pointer; font: 500 13px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--hi); list-style: none; }
details.more summary::before { content: "+ "; }
details.more[open] summary::before { content: "– "; }
details.more > :not(summary) { margin-top: 14px; }
.hint { font-size: 14px; color: var(--mute-d); }

.pairpick { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 20px; background: var(--hi); color: var(--ink); margin-bottom: 22px; }
.pairpick .sym { font: 800 34px/1 var(--display); letter-spacing: -.05em; }
.pairpick .nm { flex: 1; font-weight: 600; }
.pairpick a { font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; }

.facts { width: 100%; border-collapse: collapse; font-size: 15px; }
.facts td { padding: 12px 0; border-bottom: 1px dashed currentColor; border-color: rgba(128, 128, 110, .35); vertical-align: top; }
.facts td:first-child { font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; opacity: .7; padding-top: 15px; }
.facts td:last-child { text-align: right; font-family: var(--mono); }
.facts tr:last-child td { border-bottom: 0; }

.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--ink-2); border-radius: 999px; padding: 5px; margin-bottom: 22px; }
.tabs button { background: none; border: 0; padding: 12px; cursor: pointer; border-radius: 999px; font-weight: 700; color: var(--mute-d); }
.tabs button.on { background: var(--hi); color: var(--ink); }
.amount { position: relative; }
.amount input:not([type=range]) { font: 500 26px var(--mono); padding-right: 100px; }
.amount .unit { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font: 13px var(--mono); color: var(--mute-d); }
.maxlink { background: none; border: 0; color: var(--hi); cursor: pointer; font: 12px var(--mono); padding: 0; text-decoration: none; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.receipt { font: 13px var(--mono); color: var(--mute-d); border-top: 1px dashed var(--line-d); padding-top: 14px; margin: 4px 0 20px; }
.receipt div { display: flex; justify-content: space-between; padding: 4px 0; gap: 10px; }
.receipt .big { color: var(--hi); font-size: 16px; }

.notice { padding: 18px 22px; border-radius: 20px; background: var(--hi); font-size: 16px; }
.notice.bad { background: var(--down); color: var(--paper); }
.notice.good { background: var(--up); color: #fff; }
.notice.good a { color: inherit; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 36px 0 20px; }
.stat-grid div { background: var(--hi); border-radius: 22px; padding: 22px; }
.stat-grid b { display: block; font: 800 clamp(28px, 3.2vw, 44px)/1 var(--display); letter-spacing: -.05em; overflow-wrap: anywhere; }
.stat-grid span { display: block; margin-top: 10px; font: 500 11.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
@media (max-width: 760px) { .stat-grid { grid-template-columns: 1fr 1fr; } }

.coin-head { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.coin-head h1 { font-size: clamp(36px, 5vw, 68px); overflow-wrap: anywhere; }
.coin-head h1 small { font-size: .42em; letter-spacing: -.03em; opacity: .45; }
.links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.links a { text-decoration: none; }

.steps-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 50px 0 80px; padding: 0; list-style: none; }
.steps-list li { background: var(--ink); color: var(--paper); border-radius: var(--r); padding: 30px; }
.steps-list .label { color: var(--hi); display: block; margin-bottom: 40px; }
.steps-list h3 { margin-bottom: 14px; }
.steps-list p { color: var(--mute-d); margin: 0; }
@media (max-width: 860px) { .steps-list { grid-template-columns: 1fr; } }
.prose { max-width: 70ch; font-size: 18px; }
.prose h3 { font-size: clamp(30px, 3.4vw, 46px); margin: 60px 0 16px; }
.prose p { margin: 0 0 16px; }
.prose strong { background: var(--hi); padding: 0 4px; border-radius: 4px; }
code { font-family: var(--mono); font-size: .88em; background: rgba(128, 128, 110, .18); padding: 2px 6px; border-radius: 6px; }

.skeleton { border-radius: 22px; min-height: 120px; background: linear-gradient(90deg, rgba(14,14,13,.06), rgba(14,14,13,.12), rgba(14,14,13,.06)); background-size: 200% 100%; animation: sk 1.3s infinite; }
.dark .skeleton { background-image: linear-gradient(90deg, var(--ink-2), var(--ink-3), var(--ink-2)); }
@keyframes sk { to { background-position: -200% 0; } }
.empty { padding: 50px 24px; text-align: center; border-radius: var(--r); box-shadow: inset 0 0 0 1.5px currentColor; }

/* ---------- reveal ---------- */
.rv { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .9s cubic-bezier(.2, .8, .2, 1); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; } }

/* ---------- footer & toasts ---------- */
.foot { background: var(--ink); color: var(--mute-d); padding: 70px var(--gut) 40px; border-radius: var(--r) var(--r) 0 0; margin-top: calc(-1 * var(--r)); position: relative; }
.foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot .brand b { color: var(--hi); font-size: 44px; }
.foot p { max-width: 52ch; font-size: 15px; margin: 18px 0 0; }
.foot .label { color: var(--paper); margin-bottom: 16px; display: block; }
.foot nav a { display: block; text-decoration: none; color: var(--paper); font-weight: 600; padding: 4px 0; }
.foot nav a:hover { color: var(--hi); }
.foot .fine { grid-column: 1 / -1; border-top: 1px solid var(--line-d); padding-top: 24px; font: 12px var(--mono); letter-spacing: .08em; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 760px) { .foot .wrap { grid-template-columns: 1fr; } }

.toasts { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 80; width: min(460px, calc(100vw - 32px)); }
.toast { background: var(--ink); color: var(--paper); border-radius: 18px; padding: 14px 18px; font-size: 15px; word-break: break-word; box-shadow: 0 16px 40px rgba(0,0,0,.25); animation: pop .35s cubic-bezier(.3, 1.6, .5, 1); }
.toast::before { content: "●"; margin-right: 10px; color: var(--hi); }
.toast.bad::before { color: var(--down); }
.toast.good::before { color: var(--up); }
.toast a { color: var(--hi); }
@keyframes pop { from { transform: translateY(20px) scale(.9); opacity: 0; } }

/* ---------- theme transitions ---------- */
.band.y, .top.solid, .intro, .pill, .notice, .stat-grid div, .pairpick, .panel.yellow, .logo, .bar i, .tabs button.on { transition: background-color .6s ease, color .3s; }
.band.c { background: var(--bg); transition: background-color .6s ease; }
body { background: var(--bg); }

/* ---------- hero canvas + ring ---------- */
.hero-canvas { width: 100%; aspect-ratio: 1; max-height: 78vh; justify-self: center; touch-action: pan-y; }
@media (max-width: 960px) { .hero-canvas { order: -1; width: min(420px, 90vw); margin: -30px auto -20px; } }
.swap { white-space: nowrap; margin-left: .12em; }
.ring { position: absolute; left: -6%; top: -8%; width: 114%; height: 120%; overflow: visible; pointer-events: none; }
.ring path { fill: none; stroke: var(--acc); stroke-width: 5; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1400; stroke-dashoffset: 1400; }
.ring.draw path { animation: ring 1s cubic-bezier(.6, 0, .2, 1) .15s forwards; }
@keyframes ring { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .ring path { stroke-dashoffset: 0; } }

.intro-open .top { visibility: hidden; }
.intro-open body { overflow: hidden; }
html.intro-open { overflow: hidden; }

/* ---------- intro ---------- */
.intro {
  position: fixed; inset: 0; z-index: 90; background: var(--hi); color: var(--ink);
  display: grid; grid-template-rows: auto 1fr auto auto; padding: 22px var(--gut) 20px; overflow: hidden;
}
.intro.leaving { animation: introOut .9s cubic-bezier(.7, 0, .2, 1) forwards; }
@keyframes introOut { to { clip-path: circle(0% at 50% 50%); } }
.intro { clip-path: circle(150% at 50% 50%); }
.intro-top { display: flex; justify-content: space-between; align-items: center; }
.intro-top .brand { margin: 0; }
.intro-status { display: flex; gap: 14px; align-items: center; }
.intro-status .tag { background: none; border: 0; cursor: pointer; color: inherit; opacity: .7; }
.live { display: inline-flex; align-items: center; gap: 8px; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.intro-mid { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 0; }
.intro-h { font-size: clamp(44px, 6.4vw, 104px); margin: 16px 0 0; }
.intro-canvas { width: min(46vh, 80vw); height: min(46vh, 80vw); margin: 2vh 0 1vh; touch-action: pan-y; }
.intro-name { font: 700 clamp(18px, 1.8vw, 24px)/1 var(--mono); letter-spacing: .4em; text-transform: uppercase; margin-left: .4em; }
.intro-line { font-size: 14px; margin-top: 10px; letter-spacing: .06em; min-height: 1.4em; }
.dock {
  justify-self: center; display: flex; align-items: center; gap: 10px; margin-top: 14px;
  background: var(--ink); padding: 10px; border-radius: 999px; box-shadow: 0 20px 50px rgba(0, 0, 0, .22); max-width: 100%;
}
.dock button { border: 0; cursor: pointer; flex: none; }
.dock-arrow { width: 44px; height: 44px; border-radius: 50%; background: var(--hi); color: var(--ink); font: 700 26px/1 var(--display); padding-bottom: 3px; }
.dock-icons { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.dock-icons::-webkit-scrollbar { display: none; }
.dock-icon { width: 46px; height: 46px; border-radius: 50%; padding: 0; background: var(--c); opacity: .55; transition: transform .25s cubic-bezier(.3, 1.6, .5, 1), opacity .2s; display: grid; place-items: center; }
.dock-icon canvas { width: 40px; height: 40px; }
.dock-icon:hover { opacity: .85; }
.dock-icon.on { opacity: 1; transform: scale(1.12); box-shadow: 0 0 0 3px var(--ink), 0 0 0 5px var(--c); }
.dock-sep { width: 1px; height: 36px; background: #3a3a33; flex: none; }
.dock-go { background: var(--hi) !important; color: var(--ink); border-radius: 999px; padding: 14px 24px; font: 700 17px/1 var(--display); white-space: nowrap; }
.dock-go:hover { filter: brightness(1.05); }
.intro-foot { display: flex; justify-content: center; position: relative; margin-top: 16px; }
.intro-foot button { background: none; border: 0; cursor: pointer; color: inherit; text-decoration-thickness: 1px; }
.intro-keys { position: absolute; right: 0; top: 0; opacity: .7; }
.intro > * { min-width: 0; }
.intro-line { max-width: 90vw; }
@media (max-width: 700px) {
  .intro { padding-top: 16px; }
  .intro-h { font-size: clamp(34px, 10.5vw, 56px); }
  .intro-status .tag { display: none; }
  .intro-status .live { font-size: 10.5px; letter-spacing: .1em; }
  .dock { gap: 6px; padding: 7px; width: 100%; }
  .dock-icons { flex: 1 1 auto; min-width: 0; }
  .dock-arrow { display: none; }
  .dock-icon { width: 38px; height: 38px; }
  .dock-icon canvas { width: 32px; height: 32px; }
  .dock-go { padding: 12px 16px; font-size: 15px; }
  .intro-keys, .dock-sep { display: none; }
}

/* ---------- circle reveal ---------- */
[data-reveal-circle] { will-change: clip-path; }

/* ---------- asset logos ---------- */
.asset-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.aicon {
  width: 48px; height: 48px; border-radius: 14px; flex: none; overflow: hidden;
  display: grid; place-items: center; background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink);
  font: 800 17px var(--display); letter-spacing: -.04em; transition: transform .3s cubic-bezier(.3, 1.6, .5, 1);
}
.aicon img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.aicon.dark { background: var(--ink); }
.aicon.none { background: var(--hi); }
.asset:hover .aicon { transform: rotate(-6deg) scale(1.08); box-shadow: inset 0 0 0 1.5px var(--hi); }
.asset .sym { margin-top: 14px; }
.pairpick .aicon { width: 44px; height: 44px; border-radius: 12px; }

/* ---------- image drop zone ---------- */
.drop {
  display: flex; align-items: center; gap: 16px; padding: 14px; border-radius: 18px; cursor: pointer;
  border: 1.5px dashed var(--line-d); background: var(--ink-2); transition: border-color .2s, background .2s;
}
.drop:hover, .drop.over { border-color: var(--hi); background: var(--ink-3); }
.drop.busy { opacity: .6; pointer-events: none; }
.drop-prev { width: 64px; height: 64px; border-radius: 14px; flex: none; background: var(--ink-3); overflow: hidden; display: grid; place-items: center; }
.drop-prev:empty::after { content: "+"; font: 800 28px var(--display); color: var(--hi); }
.drop-prev img { width: 100%; height: 100%; object-fit: cover; }
.drop-txt { font-size: 15px; line-height: 1.4; }
.drop + input { margin-top: 10px; }

/* ---------- pay with ETH / asset ---------- */
.paywith { display: inline-flex; align-items: center; gap: 6px; }
.paywith button { border: 0; border-radius: 999px; padding: 6px 12px; cursor: pointer; font: 600 13px var(--mono); background: var(--ink-3); color: var(--mute-d); }
.paywith button.on { background: var(--hi); color: var(--ink); }
.paywith .hint { margin-right: 4px; }

/* ---------- contracts page ---------- */
.contract-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 22px 0; border-bottom: 1px dashed rgba(128, 128, 110, .35); flex-wrap: wrap; }
.contract-row:first-child { padding-top: 0; }
.contract-row:last-child { border-bottom: 0; padding-bottom: 0; }
.contract-row > div { flex: 1 1 380px; min-width: 0; }
.addr { background: var(--ink); color: var(--hi); border: 0; border-radius: 12px; padding: 10px 14px; font-size: 13px; cursor: pointer; word-break: break-all; max-width: 100%; text-align: left; }
.addr:hover { filter: brightness(1.15); }
.tag.verify { background: transparent; }
.tag.verify.ok { background: var(--up); color: var(--ink); box-shadow: none; }

/* ---------- trades feed ---------- */
.trades { display: flex; flex-direction: column; gap: 8px; }
.trade {
  display: grid; grid-template-columns: 70px 56px minmax(0, 1.4fr) minmax(0, 1.2fr) 110px 44px; align-items: center; gap: 14px;
  padding: 12px 16px; border-radius: 18px; background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-d);
}
.trade.new { animation: tradeIn .9s ease; }
@keyframes tradeIn { from { background: color-mix(in srgb, var(--hi) 35%, var(--ink-2)); transform: translateY(-6px); } }
.trade .when { font-size: 12px; color: var(--mute-d); }
.trade .side { font: 700 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 5px 0; border-radius: 999px; text-align: center; }
.trade.buy .side { background: rgba(62, 207, 142, .15); color: var(--up); }
.trade.sell .side { background: rgba(236, 90, 79, .15); color: var(--down); }
.who-coin { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.who-coin .logo { width: 36px; height: 36px; border-radius: 10px; font-size: 14px; flex: none; }
.who-coin span, .trade .amt { display: flex; flex-direction: column; min-width: 0; }
.who-coin b, .trade .amt b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who-coin small, .trade .amt small { font: 11.5px var(--mono); color: var(--mute-d); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trade .trader, .trade .txl { font-size: 12px; color: var(--hi); text-decoration: none; }
.trades.compact .trade { grid-template-columns: 64px 50px minmax(0, 1fr) 100px 40px; background: transparent; box-shadow: none; border-bottom: 1px dashed rgba(128, 128, 110, .35); border-radius: 0; padding: 10px 0; }
.trades.compact .when, .trades.compact .amt small { color: var(--mute-l); }
.trades.compact .trader, .trades.compact .txl { color: var(--ink); }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--up); margin-right: 10px; animation: pulse 1.6s infinite; }
.label.dot:has(.live-dot)::before { display: none; }
@media (max-width: 760px) {
  .trade { grid-template-columns: 56px 48px minmax(0, 1fr); row-gap: 6px; }
  .trade .amt { grid-column: 2 / -1; }
  .trade .trader, .trade .txl { display: none; }
  .trades.compact .trade { grid-template-columns: 56px 48px minmax(0, 1fr); }
}

/* ---------- verify ---------- */
.verify-form { display: flex; gap: 12px; flex-wrap: wrap; }
.verify-form .search { flex: 1 1 420px; font-size: 16px; padding: 16px 22px; }
.verify-head { display: flex; align-items: center; gap: 22px; margin: 34px 0 20px; flex-wrap: wrap; }
.verify-head h3 { font-size: clamp(30px, 4vw, 48px); }
.verify-sum { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.verify-sum b { font: 600 13px var(--mono); padding: 8px 14px; border-radius: 999px; }
.verify-sum .ok { background: var(--up); color: var(--ink); }
.verify-sum .warn { background: var(--hi); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.verify-sum .bad { background: var(--down); color: var(--paper); }
.checks { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.check { display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 18px 20px; border-radius: 20px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink); }
.check .ci { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font: 800 17px var(--display); }
.check.pass .ci { background: var(--up); color: var(--ink); }
.check.warn .ci { background: var(--hi); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.check.fail .ci { background: var(--down); color: var(--paper); }
.check.info .ci { background: var(--ink); color: var(--hi); font-family: var(--mono); }
.check b { font-size: 18px; letter-spacing: -.01em; }
.check p { margin: 4px 0 8px; color: var(--mute-l); font-size: 15px; }
.check code { font-size: 12px; }
.check.fail { box-shadow: inset 0 0 0 2px var(--down); }

/* ---------- home: live numbers, facts, unit link ---------- */
.livebar { background: var(--ink); color: var(--paper); padding: 34px var(--gut); position: relative; z-index: 2; }
.livebar-grid { display: grid; grid-template-columns: 1fr 1fr 1.6fr 1fr; gap: 24px 40px; }
.livebar-grid > div { min-width: 0; }
.livebar-grid span { display: block; font-size: 14px; opacity: .6; margin-bottom: 8px; }
.livebar-grid b { display: block; font: 700 clamp(22px, 2.2vw, 30px)/1.15 var(--display); letter-spacing: -.03em; overflow-wrap: anywhere; }
.livebar-grid #lvLast { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.3; }
.livebar-grid b small { font: 400 13px var(--mono); opacity: .6; letter-spacing: 0; }
.livebar-grid b a { color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; }
@media (max-width: 860px) { .livebar-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .livebar-grid { grid-template-columns: 1fr; } }
.facts3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 48px; margin-top: 48px; }
.facts3 h3 { font-size: 22px; letter-spacing: -.02em; margin: 0 0 10px; }
.facts3 p { margin: 0; font-size: 16px; line-height: 1.55; opacity: .8; }
@media (max-width: 860px) { .facts3 { grid-template-columns: 1fr; } }
.unit-link { display: inline-block; margin-top: 18px; background: none; border: 0; padding: 0; font-family: inherit; font-size: 14px; font-weight: 500; color: inherit; opacity: .6; border-bottom: 1px solid currentColor; cursor: pointer; }
.unit-link:hover { opacity: 1; }
