/* Orbit: deep night, violet rings, a mint moon. One stylesheet, tokens first. */
@font-face { font-family: 'Sora'; src: url(/fonts/sora.woff2) format('woff2'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'Inter'; src: url(/fonts/inter.woff2) format('woff2'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url(/fonts/jetbrains-mono.woff2) format('woff2'); font-weight: 400 600; font-display: swap; }

:root {
  --bg: #06061a;
  --bg-2: #0c0c26;
  --bg-3: #13133a;
  --panel: rgba(255, 255, 255, .045);
  --panel-2: rgba(255, 255, 255, .07);
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --text: #eeefff;
  --muted: #9a9cc8;
  --faint: #6c6e9c;
  --violet: #9b8cff;
  --violet-2: #7a68ff;
  --violet-glow: rgba(155, 140, 255, .35);
  --mint: #6ff0d2;
  --mint-dim: rgba(111, 240, 210, .14);
  --amber: #ffb65c;
  --amber-dim: rgba(255, 182, 92, .14);
  --danger: #ff7a90;
  --radius: 22px;
  --radius-sm: 14px;
  --display: 'Sora', 'Inter', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --wrap: 1180px;
  --gutter: 24px;
  color-scheme: dark;
}
@media (max-width: 720px) { :root { --gutter: 16px; --radius: 18px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font: 400 15px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
/* the sky: two soft glows, a still starfield and two faint orbit lines. Drawn once, never animated. */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(900px 600px at 12% -10%, rgba(122, 104, 255, .22), transparent 60%),
    radial-gradient(800px 520px at 100% 8%, rgba(111, 240, 210, .07), transparent 60%),
    radial-gradient(1000px 700px at 50% 120%, rgba(122, 104, 255, .12), transparent 60%),
    var(--bg);
}
body::after {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .9;
  background: url(/img/sky.svg) center top / 1600px auto repeat-y;
}
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { color: #fff; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; border-radius: 8px; }
::selection { background: rgba(155, 140, 255, .4); }
.mono { font-family: var(--mono); font-size: .92em; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.mint { color: var(--mint); }
.violet { color: var(--violet); }
.amber { color: var(--amber); }
.danger { color: var(--danger); }
.hidden, [hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
main { min-height: 70vh; }

/* ---------- header: a floating glass bar (the only backdrop-filter on the site) ---------- */
#top { position: sticky; top: 0; z-index: 50; padding: 14px var(--gutter) 0; }
.bar {
  max-width: var(--wrap); margin: 0 auto; height: 60px; display: flex; align-items: center; gap: 16px;
  padding: 0 10px 0 18px; border-radius: 999px; border: 1px solid var(--line-2);
  background: rgba(12, 12, 38, .72); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.still .bar { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(12, 12, 38, .96); }
.brand { display: flex; align-items: center; gap: 10px; font: 600 15px/1 var(--display); letter-spacing: .16em; color: #fff; flex-shrink: 0; }
.brand img { width: 30px; height: 30px; }
.nav { display: flex; gap: 4px; margin: 0 auto; }
.nav a { padding: 8px 14px; border-radius: 999px; color: var(--muted); font-weight: 500; font-size: 14px; transition: color .15s, background .15s; }
.nav a:hover { color: #fff; }
.nav a.on { color: #fff; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px var(--line-2); }
.bar-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .04); color: var(--text); transition: background .15s, border-color .15s;
}
.icon-btn:hover { background: rgba(255, 255, 255, .09); color: #fff; }
.menu-btn { display: none; }
.icon { display: inline-flex; line-height: 0; }
@media (max-width: 860px) {
  .nav { display: none; }
  .menu-btn { display: inline-grid; }
  .bar { justify-content: space-between; }
  .x-link { display: none; }
}
@media (max-width: 360px) { .brand .word { display: none; } }
@media (max-width: 420px) {
  .bar { padding: 0 8px 0 12px; gap: 8px; }
  .btn.wallet { height: 38px; padding: 0 14px; font-size: 13px; }
  .btn.wallet.on { padding: 0 6px 0 10px; }
  .wallet-bal { display: none; }
}
.drawer { position: fixed; inset: 84px var(--gutter) auto; z-index: 60; padding: 10px; border-radius: 20px; border: 1px solid var(--line-2); background: #0e0e2c; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); display: grid; gap: 2px; }
.drawer a { padding: 13px 16px; border-radius: 12px; font-weight: 500; }
.drawer a:hover, .drawer a.on { background: rgba(255, 255, 255, .06); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .05); color: var(--text); font-weight: 600; font-size: 14.5px;
  white-space: nowrap; transition: transform .15s, background .15s, border-color .15s, box-shadow .15s;
}
.btn:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.primary {
  background: linear-gradient(180deg, #ffffff, #e4e0ff); color: #0b0b28; border-color: transparent;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .5) inset, 0 8px 30px var(--violet-glow);
}
.btn.primary:hover { color: #0b0b28; box-shadow: 0 0 0 1px rgba(255, 255, 255, .6) inset, 0 10px 40px rgba(155, 140, 255, .5); }
.btn.mint { background: var(--mint); color: #04201a; border-color: transparent; box-shadow: 0 8px 28px rgba(111, 240, 210, .25); }
.btn.mint:hover { color: #04201a; }
.btn.amber { background: var(--amber); color: #2a1600; border-color: transparent; box-shadow: 0 8px 28px rgba(255, 182, 92, .25); }
.btn.amber:hover { color: #2a1600; }
.btn.sm { height: 36px; padding: 0 14px; font-size: 13px; }
.btn.lg { height: 54px; padding: 0 28px; font-size: 15.5px; }
.btn.wide { width: 100%; }
.btn.wallet { height: 42px; padding: 0 18px; }
.btn.wallet.on { padding: 0 8px 0 14px; gap: 10px; }
.wallet-bal { color: var(--muted); font-weight: 500; font-size: 13px; }
.wallet-chip { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 999px; background: rgba(155, 140, 255, .18); font-family: var(--mono); font-size: 12.5px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--muted); font-size: 13.5px; font-weight: 500; white-space: nowrap; transition: all .15s;
}
.chip:hover { color: #fff; border-color: var(--line-2); }
.chip[aria-pressed="true"], .chip.on { color: #0b0b28; background: #f1efff; border-color: transparent; font-weight: 600; }
.chip .n { font-size: 11.5px; opacity: .7; font-weight: 500; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.seg { display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
.seg button { height: 32px; padding: 0 14px; border-radius: 999px; border: 0; background: transparent; color: var(--muted); font-size: 13.5px; font-weight: 500; }
.seg button:hover { color: #fff; }
.seg button[aria-pressed="true"] { background: #f1efff; color: #0b0b28; font-weight: 600; }

/* ---------- panels ---------- */
.panel { position: relative; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04); }
.panel.pad { padding: 24px; }
@media (max-width: 720px) { .panel.pad { padding: 18px; } }
.panel-title { margin: 0 0 14px; font: 600 16px/1.3 var(--display); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.label { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
.eyebrow { color: var(--violet); font-weight: 600; font-size: 13.5px; margin: 0 0 10px; }
.eyebrow.amber { color: var(--amber); }
.badge { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.badge.grad { background: rgba(111, 240, 210, .14); color: var(--mint); box-shadow: inset 0 0 0 1px rgba(111, 240, 210, .3); }
.badge.curve { background: rgba(155, 140, 255, .14); color: var(--violet); box-shadow: inset 0 0 0 1px rgba(155, 140, 255, .3); }
.badge.builder { background: var(--amber-dim); color: var(--amber); box-shadow: inset 0 0 0 1px rgba(255, 182, 92, .3); }
.badge.light { background: #f1efff; color: #0b0b28; }

/* ---------- headings ---------- */
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -.025em; color: #fff; }
.h-xl { font-size: clamp(42px, 6.4vw, 78px); line-height: 1.02; font-weight: 600; letter-spacing: -.04em; }
.h-lg { font-size: clamp(36px, 5vw, 60px); line-height: 1.04; font-weight: 600; letter-spacing: -.035em; }
.h-md { font-size: clamp(26px, 3.2vw, 34px); line-height: 1.12; font-weight: 600; }
.glow-word { background: linear-gradient(100deg, #c9c0ff 0%, var(--violet) 35%, var(--mint) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(16px, 1.6vw, 18.5px); color: var(--muted); max-width: 33em; margin: 18px 0 0; line-height: 1.55; }
.page-head { padding: 54px 0 28px; }
.page-head .lede { margin-top: 12px; }
@media (max-width: 720px) { .page-head { padding: 34px 0 20px; } }

/* ---------- home ---------- */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 24px; min-height: calc(100vh - 160px); padding: 30px 0 40px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.house-pill {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; padding: 6px 8px 6px 6px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); max-width: 100%; flex-wrap: wrap;
}
.house-pill .coin-dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #fff, #b9afff 45%, #5b4bd8); box-shadow: 0 0 18px var(--violet-glow); }
.house-pill .coin-dot img { width: 26px; height: 26px; }
.house-pill b { font-family: var(--display); font-weight: 600; color: #fff; }
.house-pill .ca { color: var(--muted); font-family: var(--mono); font-size: 12px; padding: 0 8px; border-left: 1px solid var(--line); }
.house-pill .sub { color: var(--muted); font-size: 12.5px; }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 10px 0 18px; }
.stat { padding: 20px 22px; }
.stat .v { font: 600 clamp(24px, 3vw, 32px)/1.1 var(--display); color: #fff; letter-spacing: -.03em; margin-top: 8px; }
.stat .s { font-size: 13px; color: var(--muted); margin-top: 6px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0 0 80px; }
.step { padding: 24px; }
.step .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 600 13px/1 var(--display); background: rgba(155, 140, 255, .16); color: var(--violet); box-shadow: inset 0 0 0 1px rgba(155, 140, 255, .35); }
.step h3 { font-size: 18px; margin: 16px 0 8px; font-weight: 600; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 50px 0 18px; }
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 24px; }
  .hero-art { order: -1; }
}
@media (max-width: 720px) {
  .stats-row, .steps { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1; }
}

/* ---------- the orbit object: a planet (a real asset), a tilted ring, coin moons riding it ---------- */
.orbit { --size: min(470px, 76vw); position: relative; width: var(--size); height: var(--size); margin: 0 auto; }
.orbit-halo { position: absolute; inset: 2%; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .12); box-shadow: inset 0 0 80px rgba(122, 104, 255, .12); }
.orbit-halo::after { content: ''; position: absolute; inset: 14%; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .06); }
.planet {
  position: absolute; left: 50%; top: 50%; width: 42%; height: 42%; transform: translate(-50%, -50%); border-radius: 50%; z-index: 2;
  background: radial-gradient(circle at 34% 28%, #ffffff 0%, #ece9ff 16%, #b6a9ff 46%, #6a57e6 78%, #3b2d9b 100%);
  box-shadow: 0 0 60px rgba(155, 140, 255, .55), 0 0 140px rgba(122, 104, 255, .3), inset -14px -18px 40px rgba(30, 20, 110, .55);
  display: grid; place-items: center; text-align: center; overflow: hidden;
}
.planet-face { transition: opacity .45s ease, transform .45s ease; display: grid; justify-items: center; gap: 2px; }
.planet-face.out { opacity: 0; transform: scale(.92); }
.planet-face .t { font: 700 clamp(22px, 5vw, 34px)/1 var(--display); color: #1a1250; letter-spacing: -.03em; }
.planet-face .n { font-size: clamp(10px, 2vw, 12.5px); font-weight: 600; color: rgba(26, 18, 80, .7); max-width: 9em; line-height: 1.2; }
.planet-face img { width: 40%; height: auto; border-radius: 50%; margin-bottom: 4px; }
.plane { position: absolute; inset: 0; transform: rotate(-18deg) scaleY(.34); }
.plane.back { z-index: 1; clip-path: inset(-30% -30% 50% -30%); }
.plane.front { z-index: 3; clip-path: inset(50% -30% -30% -30%); }
.ring { position: absolute; inset: 4%; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .55); box-shadow: 0 0 22px rgba(155, 140, 255, .55), inset 0 0 22px rgba(155, 140, 255, .35); }
.ring.outer { inset: -6%; border-width: 1px; border-color: rgba(111, 240, 210, .28); box-shadow: none; }
.spin { position: absolute; inset: 4%; animation: orbit-spin var(--t, 22s) linear infinite; animation-delay: var(--d, 0s); }
.spin.outer { inset: -6%; }
.moon {
  position: absolute; left: 50%; top: 0; width: var(--m, 46px); height: var(--m, 46px); margin: calc(var(--m, 46px) / -2) 0 0 calc(var(--m, 46px) / -2);
  animation: orbit-counter var(--t, 22s) linear infinite; animation-delay: var(--d, 0s);
}
.moon span {
  display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; font: 700 11px/1 var(--display); letter-spacing: -.02em;
  background: radial-gradient(circle at 35% 30%, #d9fff5, var(--mint) 55%, #2fb597); color: #053a2e; box-shadow: 0 0 22px rgba(111, 240, 210, .55);
}
.moon.v span { background: radial-gradient(circle at 35% 30%, #fff, #c9c0ff 55%, #7a68ff); color: #1d1460; box-shadow: 0 0 20px rgba(155, 140, 255, .55); }
.moon.a span { background: radial-gradient(circle at 35% 30%, #fff3e0, var(--amber) 55%, #d98420); color: #3a2000; box-shadow: 0 0 20px rgba(255, 182, 92, .45); }
@keyframes orbit-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
/* undo the plane's squash and the spin, so each moon stays round and upright: rotate(-θ) scaleY(1/.34) rotate(18deg) */
@keyframes orbit-counter { from { transform: rotate(0deg) scaleY(2.9412) rotate(18deg); } to { transform: rotate(-360deg) scaleY(2.9412) rotate(18deg); } }
.orbit-caption { text-align: center; color: var(--muted); font-size: 14px; margin-top: 8px; min-height: 22px; }
.orbit-caption b { color: #fff; font-weight: 600; }
.paused .spin, .paused .moon, [data-motion="off"] .spin, [data-motion="off"] .moon { animation-play-state: paused; }
[data-motion="off"] .planet-face { transition: none; }

/* ---------- explore ---------- */
.type-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.type-card { padding: 28px; min-height: 250px; display: flex; flex-direction: column; overflow: hidden; }
.type-card.std { background: linear-gradient(140deg, rgba(122, 104, 255, .28), rgba(122, 104, 255, .06) 60%), var(--panel); border-color: rgba(155, 140, 255, .35); }
.type-card.bld { background: linear-gradient(140deg, rgba(255, 182, 92, .18), rgba(255, 182, 92, .03) 60%), var(--panel); border-color: rgba(255, 182, 92, .28); }
.type-card h2 { font-size: clamp(24px, 2.6vw, 30px); line-height: 1.1; font-weight: 600; max-width: 12em; }
.type-card p { color: var(--muted); max-width: 26em; margin: 10px 0 20px; font-size: 14.5px; }
.type-card .btn { margin-top: auto; align-self: flex-start; }
.type-card .mini-orbit { position: absolute; right: -40px; bottom: -50px; width: 220px; height: 220px; opacity: .9; pointer-events: none; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 26px 0 18px; padding: 12px; border-radius: 24px; border: 1px solid var(--line); background: rgba(255, 255, 255, .025); }
.search { position: relative; flex: 1 1 100%; }
.search .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.input, .search input {
  width: 100%; height: 48px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(5, 5, 22, .55);
  color: var(--text); outline: none; transition: border-color .15s, box-shadow .15s;
}
.search input { padding-left: 44px; border-radius: 999px; }
.input::placeholder, .search input::placeholder { color: var(--faint); }
.input:focus, .search input:focus { border-color: rgba(155, 140, 255, .6); box-shadow: 0 0 0 4px rgba(155, 140, 255, .14); }
textarea.input { height: auto; min-height: 96px; padding: 12px 16px; resize: vertical; line-height: 1.5; }
.input[aria-invalid] { border-color: rgba(255, 122, 144, .6); }
.toolbar .grow { flex: 1; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(2, 1fr); } .type-cards { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }

.coin-card { display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: 20px; border: 1px solid var(--line); background: var(--panel); transition: border-color .15s, transform .15s, background .15s; }
.coin-card:hover { border-color: rgba(155, 140, 255, .45); background: rgba(255, 255, 255, .06); transform: translateY(-2px); }
.coin-top { display: flex; align-items: center; gap: 12px; }
.coin-top .who { min-width: 0; flex: 1; }
.coin-top .tk { font: 600 16px/1.2 var(--display); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.coin-top .nm { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.coin-top .mc { text-align: right; }
.coin-top .mc b { font: 600 17px/1.2 var(--display); color: #fff; display: block; }
.coin-top .mc span { font-size: 11.5px; color: var(--faint); }
.coin-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); }
.coin-pic { border-radius: 14px; object-fit: cover; flex-shrink: 0; background: var(--bg-3); }
.avatar { flex-shrink: 0; display: grid; place-items: center; border-radius: 14px; font: 700 14px/1 var(--display); color: #fff; letter-spacing: -.02em; }
.pl { width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 8.5px; font-weight: 700; color: #fff; overflow: hidden; flex-shrink: 0; letter-spacing: -.02em; }
.pl img { width: 100%; height: 100%; object-fit: cover; }
.pair-picked .pl { width: 30px; height: 30px; font-size: 9.5px; }
.pair { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px 0 4px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); font-size: 12.5px; font-weight: 600; color: #fff; white-space: nowrap; }
.pair .pl { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 8.5px; font-weight: 700; color: #fff; overflow: hidden; }
.pair .pl img { width: 100%; height: 100%; object-fit: cover; }
.prog { flex: 1; }
.prog-bar { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.prog-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--violet-2), var(--mint)); }
.prog-text { font-size: 12px; color: var(--muted); margin-top: 6px; display: flex; justify-content: space-between; gap: 8px; }
.more-row { display: flex; justify-content: center; margin: 26px 0 70px; }

/* ---------- launch ---------- */
.launch-types { display: grid; gap: 16px; margin-bottom: 70px; }
.launch-type { display: grid; grid-template-columns: 1.1fr 1.3fr auto; align-items: center; gap: 24px; padding: 30px 30px; text-align: left; border: 1px solid; cursor: pointer; color: var(--text); width: 100%; overflow: hidden; }
.launch-type.std { background: linear-gradient(120deg, rgba(122, 104, 255, .36), rgba(60, 46, 190, .14) 70%); border-color: rgba(155, 140, 255, .4); }
.launch-type.bld { background: linear-gradient(120deg, rgba(255, 182, 92, .24), rgba(150, 80, 20, .1) 70%); border-color: rgba(255, 182, 92, .35); }
.launch-type:hover { filter: brightness(1.08); }
.launch-type h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 600; margin: 6px 0 8px; }
.launch-type p { margin: 0; color: rgba(238, 239, 255, .78); font-size: 14.5px; max-width: 24em; }
.split-nums { display: flex; flex-wrap: wrap; gap: 14px 26px; }
.split-nums div b { font: 600 24px/1 var(--display); color: #fff; display: block; letter-spacing: -.03em; }
.split-nums div span { font-size: 12px; color: rgba(238, 239, 255, .7); }
.round-go { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .08); }
@media (max-width: 820px) { .launch-type { grid-template-columns: 1fr; gap: 18px; padding: 22px; } .round-go { display: none; } }
.facts { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: 14px; margin: 16px 0 30px; }
.facts b { color: #fff; font-weight: 600; }
.facts span + span::before { content: '•'; margin-right: 18px; color: var(--faint); }

.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; margin-bottom: 80px; }
@media (max-width: 1000px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }
.form-sec { padding: 24px; }
.sec-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.sec-head .n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 600 12.5px/1 var(--display); border: 1px solid var(--line-2); color: var(--text); }
.sec-head h3 { font-size: 18px; font-weight: 600; }
.sec-head .opt { margin-left: auto; font-size: 12.5px; color: var(--faint); }
.sec-note { color: var(--muted); font-size: 14px; margin: -6px 0 16px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fields .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .fields { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; align-content: start; }
.field > label, .field > .flabel { font-size: 13px; font-weight: 600; color: var(--text); }
.field .hint { font-size: 12.5px; color: var(--faint); }
.problem { color: var(--danger); font-size: 12.5px; margin: 0; min-height: 0; }
.problem:empty { display: none; }
.prefixed { position: relative; }
.prefixed > span { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--faint); font-weight: 600; }
.prefixed .input { padding-left: 32px; }
.suffixed { position: relative; }
.suffixed > span { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--faint); font-weight: 600; font-size: 13px; }
.drop { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 16px; border: 1px dashed var(--line-2); background: rgba(5, 5, 22, .4); cursor: pointer; transition: border-color .15s; }
.drop:hover, .drop.over { border-color: rgba(155, 140, 255, .6); }
.drop .thumb { width: 68px; height: 68px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); flex-shrink: 0; overflow: hidden; }
.drop .thumb img { width: 100%; height: 100%; object-fit: cover; }
.drop b { display: block; color: #fff; font-weight: 600; }
.drop small { color: var(--faint); font-size: 12.5px; }
.count { font-size: 12px; color: var(--faint); text-align: right; }
.pair-tools { display: grid; gap: 12px; margin-bottom: 14px; }
.pair-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: 8px; max-height: 380px; overflow-y: auto; overflow-x: hidden; padding: 2px 4px 2px 0; overscroll-behavior: contain; }
.pair-tile { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .025); text-align: left; transition: border-color .12s, background .12s; min-width: 0; }
.pair-tile:hover { border-color: var(--line-2); background: rgba(255, 255, 255, .05); }
.pair-tile[aria-pressed="true"] { border-color: var(--violet); background: rgba(155, 140, 255, .14); box-shadow: 0 0 0 3px rgba(155, 140, 255, .12); }
.pair-tile .pl { grid-row: span 2; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 700; color: #fff; overflow: hidden; }
.pair-tile .pl img { width: 100%; height: 100%; object-fit: cover; }
.pair-tile .tk { font-weight: 700; color: #fff; font-size: 13.5px; display: flex; gap: 6px; align-items: center; min-width: 0; overflow: hidden; white-space: nowrap; }
.pair-tile .tk em { font-style: normal; font-size: 9.5px; letter-spacing: .06em; color: var(--faint); font-weight: 700; text-transform: uppercase; }
.pair-tile .sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pair-tile .fee { color: var(--amber); }
.pair-picked { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 13.5px; color: var(--muted); }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tier { padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, .025); text-align: left; }
.tier b { font: 600 22px/1 var(--display); color: #fff; display: block; }
.tier span { font-size: 12px; color: var(--muted); }
.tier[aria-pressed="true"] { border-color: var(--violet); background: rgba(155, 140, 255, .14); }
.amount-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
@media (max-width: 560px) { .amount-row { grid-template-columns: 1fr; } }
.callout { padding: 14px 16px; border-radius: 14px; background: rgba(155, 140, 255, .08); border: 1px solid rgba(155, 140, 255, .22); color: var(--text); font-size: 13.5px; }
.callout.amber { background: var(--amber-dim); border-color: rgba(255, 182, 92, .3); }
.callout.warn { background: rgba(255, 122, 144, .08); border-color: rgba(255, 122, 144, .3); }
.callout.good { background: var(--mint-dim); border-color: rgba(111, 240, 210, .3); }

.review { position: sticky; top: 92px; padding: 22px; }
.review .who { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.review .who b { font: 600 18px/1.2 var(--display); color: #fff; display: block; }
.kv { display: grid; }
.kv > div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv > div > span:first-child { color: var(--muted); }
.kv > div > span:last-child { color: #fff; font-weight: 600; text-align: right; }
.kv > div:last-child { border-bottom: 0; }
.kv > div > span.mint { color: var(--mint); }
.kv > div > span.amber { color: var(--amber); }
.splits { display: grid; gap: 8px; margin-top: 8px; }
.split-bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; gap: 2px; margin: 12px 0 14px; }
.split-bar span { display: block; height: 100%; }
.split-row { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.split-row i { width: 9px; height: 9px; border-radius: 3px; flex-shrink: 0; }
.split-row b { margin-left: auto; color: #fff; font-weight: 600; }
.fine { color: var(--faint); font-size: 12.5px; line-height: 1.5; }

/* ---------- coin page ---------- */
.coin-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 30px 0 16px; }
.addr-chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 6px 0 14px; border-radius: 999px; border: 1px solid var(--line); font-family: var(--mono); font-size: 12.5px; color: var(--muted); background: rgba(255, 255, 255, .03); }
.addr-chip button { width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .06); color: var(--text); display: grid; place-items: center; }
.coin-head { display: flex; align-items: center; gap: 20px; padding: 26px; flex-wrap: wrap; }
.coin-head .names { flex: 1; min-width: 220px; }
.coin-head h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 600; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.coin-head .nm { color: var(--muted); margin: 2px 0 10px; }
.coin-head .mc { text-align: right; }
.coin-head .mc b { font: 600 clamp(30px, 4.6vw, 46px)/1 var(--display); color: #fff; letter-spacing: -.04em; display: block; margin-top: 4px; }
.coin-head .mc .chg { font-size: 13.5px; font-weight: 600; }
@media (max-width: 640px) { .coin-head .mc { text-align: left; } }
.coin-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; margin: 16px 0; align-items: start; }
.coin-grid > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }
@media (max-width: 980px) { .coin-grid { grid-template-columns: minmax(0, 1fr); } }
.chart-box { padding: 18px 18px 10px; }
.chart-top { display: flex; align-items: start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.chart-top .now b { font: 600 24px/1 var(--display); color: #fff; display: block; text-align: right; }
.chart-top .now span { font-size: 12px; color: var(--faint); }
.chart { position: relative; height: 300px; }
.chart svg { display: block; width: 100%; height: 100%; overflow: hidden; }
.chart .gl { stroke: rgba(255, 255, 255, .06); stroke-width: 1; }
.chart .axis { fill: var(--faint); font: 10px var(--mono); }
.chart .area { fill: url(#cfill); }
.chart .line { fill: none; stroke: var(--violet); stroke-width: 2; vector-effect: non-scaling-stroke; }
.chart .last { stroke: rgba(255, 255, 255, .3); stroke-dasharray: 3 4; }
.chart-empty { display: grid; place-items: center; height: 100%; color: var(--muted); font-size: 14px; text-align: center; }
.big-num { font: 600 26px/1.1 var(--display); color: #fff; letter-spacing: -.03em; }
.mini-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.mini-tiles > div { padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(5, 5, 22, .35); }
.mini-tiles .label { font-size: 10.5px; }
.mini-tiles b { display: block; font: 600 20px/1.15 var(--display); color: #fff; margin-top: 6px; letter-spacing: -.02em; }
.mini-tiles small { color: var(--muted); font-size: 12px; }
.row-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(5, 5, 22, .35); font-size: 13.5px; color: var(--muted); }
.row-link .mono { color: #fff; }
.ok-line { color: var(--mint); font-size: 13.5px; display: flex; align-items: center; gap: 6px; margin: 4px 0 12px; }
.trade-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.trade-links .btn { height: 40px; padding: 0 10px; font-size: 13px; }

table.list { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.list th { text-align: left; font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--faint); font-weight: 600; padding: 0 10px 10px; }
table.list td { padding: 11px 10px; border-top: 1px solid var(--line); white-space: nowrap; }
table.list td.r, table.list th.r { text-align: right; }
table.list tr.me td { background: rgba(155, 140, 255, .08); }
.table-scroll { overflow-x: auto; margin: 0 -10px; padding: 0 10px; }
.side.buy { color: var(--mint); }
.side.sell { color: var(--danger); }
.tx { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); }
.tx:hover { color: #fff; }

/* ---------- analytics ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tiles.small { grid-template-columns: repeat(4, 1fr); margin-top: 14px; }
.tile { padding: 20px; display: flex; flex-direction: column; gap: 8px; min-height: 150px; }
.tile .v { font: 600 clamp(26px, 2.8vw, 34px)/1.05 var(--display); color: #fff; letter-spacing: -.035em; }
.tile .s { font-size: 13px; color: var(--muted); }
.tile a.go { margin-top: auto; color: var(--violet); font-weight: 600; font-size: 13.5px; }
.tiles.small .tile { min-height: 0; flex-direction: row; align-items: center; justify-content: space-between; }
.tiles.small .tile .v { font-size: 22px; }
@media (max-width: 1000px) { .tiles, .tiles.small { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .tiles, .tiles.small { grid-template-columns: 1fr; } }
.jump { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.block { margin-top: 22px; scroll-margin-top: 100px; }
.block .panel-title { margin-bottom: 4px; }
.block .sub { color: var(--muted); font-size: 14px; margin: 0 0 16px; max-width: 46em; }
.countdown { display: inline-flex; gap: 6px; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; background: rgba(111, 240, 210, .1); color: var(--mint); font-size: 12.5px; font-weight: 600; }

/* ---------- docs ---------- */
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; margin-bottom: 90px; }
.toc { position: sticky; top: 100px; align-self: start; display: grid; gap: 2px; }
.toc a { display: flex; gap: 12px; padding: 9px 12px; border-radius: 12px; color: var(--muted); font-size: 14px; }
.toc a span { font-family: var(--mono); font-size: 11.5px; color: var(--faint); padding-top: 2px; }
.toc a:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.doc-sec { padding: 6px 0 40px; border-bottom: 1px solid var(--line); margin-bottom: 40px; scroll-margin-top: 100px; }
.doc-sec:last-child { border-bottom: 0; }
.doc-sec .num { font-family: var(--mono); color: var(--violet); font-size: 13px; }
.doc-sec h2 { font-size: clamp(26px, 3vw, 32px); margin: 6px 0 16px; font-weight: 600; }
.doc-sec h3 { font-size: 18px; margin: 26px 0 8px; font-weight: 600; }
.doc-sec p, .doc-sec li { color: #c9cbef; font-size: 15.5px; line-height: 1.7; max-width: 46em; }
.doc-sec ul { padding-left: 20px; }
.doc-sec li { margin: 6px 0; }
.doc-sec strong { color: #fff; }
.fact-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 22px 0; }
.fact-tiles > div { padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); }
.fact-tiles b { display: block; font: 600 22px/1.1 var(--display); color: #fff; letter-spacing: -.02em; }
.fact-tiles span { font-size: 12.5px; color: var(--muted); }
.fact-tiles.split > div b { color: var(--violet); }
.fact-tiles.split.bld > div b { color: var(--amber); }
.fact-tiles p { margin: 6px 0 0; font-size: 13px; color: var(--muted); line-height: 1.45; }
@media (max-width: 900px) { .docs { grid-template-columns: 1fr; } .toc { position: static; grid-template-columns: repeat(2, 1fr); } .fact-tiles { grid-template-columns: 1fr 1fr; } }
.addr-list { display: grid; gap: 8px; }
.addr-list > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); flex-wrap: wrap; }
.addr-list span { color: var(--muted); font-size: 14px; }
.addr-list a { font-family: var(--mono); font-size: 12.5px; color: #fff; word-break: break-all; }

/* ---------- empty, loading, banners ---------- */
.empty { text-align: center; padding: 60px 20px; border-radius: var(--radius); border: 1px dashed var(--line-2); }
.empty .t { font: 600 20px/1.3 var(--display); color: #fff; margin: 0 0 6px; }
.empty p { color: var(--muted); margin: 0 0 18px; }
.sk { border-radius: 10px; background: linear-gradient(90deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .08), rgba(255, 255, 255, .04)); background-size: 200% 100%; animation: sk 1.4s linear infinite; height: 14px; }
@keyframes sk { to { background-position: -200% 0; } }
.banner { padding: 14px 18px; border-radius: 16px; border: 1px solid rgba(155, 140, 255, .3); background: rgba(155, 140, 255, .1); margin: 18px 0 0; font-size: 14px; }
.banner.good { border-color: rgba(111, 240, 210, .3); background: var(--mint-dim); }

/* ---------- modal, wallet picker, toasts ---------- */
.modal-veil { position: fixed; inset: 0; z-index: 100; background: rgba(3, 3, 14, .72); display: grid; place-items: center; padding: 16px; }
.modal-panel { width: min(460px, 100%); max-height: calc(100vh - 32px); overflow: auto; border-radius: 26px; border: 1px solid var(--line-2); background: linear-gradient(180deg, #14143c, #0b0b26); box-shadow: 0 40px 120px rgba(0, 0, 0, .6), 0 0 0 1px rgba(155, 140, 255, .1); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 20px 20px 0 24px; }
.modal-head h2 { font-size: 19px; font-weight: 600; }
.modal-x { width: 36px; height: 36px; }
.modal-panel.locked .modal-x { visibility: hidden; }
.modal-body { padding: 14px 24px 24px; display: grid; gap: 14px; }
.modal-body p { margin: 0; }
.wallet-list { display: grid; gap: 8px; }
.wallet-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); text-align: left; transition: border-color .15s, background .15s; }
.wallet-row:hover { border-color: rgba(155, 140, 255, .5); background: rgba(155, 140, 255, .08); }
.wallet-row img { border-radius: 8px; }
.wallet-name { font-weight: 600; flex: 1; }
.wallet-tag { font-size: 12px; color: var(--faint); }
.wallet-help { display: grid; gap: 12px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row.end { justify-content: flex-end; }
.menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px; padding: 6px; border-radius: 16px; border: 1px solid var(--line-2); background: #10102f; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); display: grid; z-index: 70; }
.menu-head { padding: 10px 12px; color: var(--muted); font-size: 12.5px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.menu-item { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 10px; border: 0; background: transparent; font-size: 14px; }
.menu-item:hover { background: rgba(255, 255, 255, .06); }
.wallet-box { position: relative; }
.flow-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.flow-steps li { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 14px; }
.flow-steps li.done { color: var(--muted); }
.flow-steps li.now { color: #fff; font-weight: 600; }
.flow-steps li.bad { color: var(--danger); font-weight: 600; }
.flow-mark { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); font-size: 12px; flex-shrink: 0; }
.flow-steps li.done .flow-mark { background: var(--mint); color: #04201a; border-color: transparent; }
.flow-steps li.now .flow-mark { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(155, 140, 255, .18); }
.flow-steps li.now .flow-mark::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--violet); animation: blink 1s ease-in-out infinite; }
.flow-steps li.now .flow-mark { font-size: 0; }
@keyframes blink { 50% { opacity: .3; } }
.big-line { font-size: 16px; }
.big-line b { color: #fff; }
dl.costs { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; font-size: 13.5px; padding: 14px 16px; border-radius: 14px; background: rgba(5, 5, 22, .5); border: 1px solid var(--line); }
dl.costs dt { color: var(--muted); }
dl.costs dd { margin: 0; text-align: right; font-family: var(--mono); color: #fff; font-size: 12.5px; }
.toasts { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 120; display: grid; gap: 8px; width: min(420px, calc(100vw - 32px)); }
.toast { padding: 12px 16px; border-radius: 14px; background: #191948; border: 1px solid var(--line-2); box-shadow: 0 20px 50px rgba(0, 0, 0, .5); font-size: 14px; }
.toast.bad { border-color: rgba(255, 122, 144, .5); }
.toast.good { border-color: rgba(111, 240, 210, .5); }

/* ---------- footer ---------- */
#foot { border-top: 1px solid var(--line); margin-top: 40px; }
.foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 28px var(--gutter); max-width: var(--wrap); margin: 0 auto; flex-wrap: wrap; color: var(--muted); font-size: 13.5px; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot nav a:hover { color: #fff; }
.foot .fine { max-width: 40em; }
.motion-btn { background: none; border: 0; padding: 0; color: var(--muted); font-size: 13.5px; }
.motion-btn:hover { color: #fff; }
