:root {
  --bg: #0d0f0f;
  --bg-2: #141717;
  --card: #181c1c;
  --card-2: #1f2424;
  --line: #262c2c;
  --line-2: #323a3a;
  --text: #f2f5f4;
  --muted: #8b9693;
  --dim: #5d6764;
  --mint: #7ff5d4;
  --mint-2: #34d3a6;
  --mint-ink: #04241b;
  --red: #ff6b74;
  --green: #4ee39a;
  --amber: #ffc861;
  --accent-text: #7ff5d4;
  --glass: rgba(13, 15, 15, .86);
  --glass-pop: rgba(20, 23, 23, .94);
  --shadow: rgba(0, 0, 0, .5);
  --warn-ink: #ffb3b8;
  --fee-rest: #3a4a46;
  --chart-grid: rgba(255, 255, 255, .035);
  --r: 18px;
  --r-sm: 12px;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  color-scheme: dark;
}

/* light theme: picked in the header, or the system setting when nothing is picked */
:root[data-theme="light"] {
  --bg: #f5f7f6;
  --bg-2: #eef2f0;
  --card: #ffffff;
  --card-2: #eef3f1;
  --line: #e1e7e4;
  --line-2: #cfd8d4;
  --text: #0e1615;
  --muted: #5c6a66;
  --dim: #8d9894;
  --mint: #5fe8c2;
  --mint-2: #16b98b;
  --mint-ink: #032a1f;
  --red: #dc3d4a;
  --green: #0e9a5a;
  --amber: #b27512;
  --accent-text: #0b8f6a;
  --glass: rgba(245, 247, 246, .86);
  --glass-pop: rgba(255, 255, 255, .95);
  --shadow: rgba(16, 32, 28, .14);
  --warn-ink: #b4232f;
  --fee-rest: #cdd9d5;
  --chart-grid: rgba(0, 0, 0, .05);
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f5f7f6;
    --bg-2: #eef2f0;
    --card: #ffffff;
    --card-2: #eef3f1;
    --line: #e1e7e4;
    --line-2: #cfd8d4;
    --text: #0e1615;
    --muted: #5c6a66;
    --dim: #8d9894;
    --mint: #5fe8c2;
    --mint-2: #16b98b;
    --mint-ink: #032a1f;
    --red: #dc3d4a;
    --green: #0e9a5a;
    --amber: #b27512;
    --accent-text: #0b8f6a;
    --glass: rgba(245, 247, 246, .86);
    --glass-pop: rgba(255, 255, 255, .95);
    --shadow: rgba(16, 32, 28, .14);
    --warn-ink: #b4232f;
    --fee-rest: #cdd9d5;
    --chart-grid: rgba(0, 0, 0, .05);
    color-scheme: light;
  }
}
body, .top, .card, .rail-card, .panel, .chart-box, .lt, .curve-card { transition: background-color .25s ease, border-color .25s ease, color .25s ease; }

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.45 Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, textarea { font: inherit; color: inherit; }
.num { font-variant-numeric: tabular-nums; }
.up { color: var(--green); }
.down { color: var(--red); }
.muted { color: var(--muted); }

/* ───── header ───── */
.top {
  position: sticky; top: 0; z-index: 30;
  background: var(--glass);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.top-in {
  max-width: 1280px; margin: 0 auto; padding: 12px 20px;
  display: grid; grid-template-columns: 1fr minmax(0, 420px) 1fr; align-items: center; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 18px; letter-spacing: -.02em; }
.search {
  position: relative; display: flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 12px; border-radius: 999px;
  background: var(--bg-2); border: 1px solid var(--line); color: var(--muted);
}
.search:focus-within { border-color: var(--line-2); }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font-size: 16px; }
.search input::-webkit-search-cancel-button { display: none; }
.search kbd {
  font: 600 11px var(--mono); color: var(--dim);
  border: 1px solid var(--line-2); border-radius: 6px; padding: 1px 6px;
}
.search-results {
  position: absolute; top: 46px; left: 0; right: 0;
  background: var(--card); border: 1px solid var(--line-2); border-radius: 14px;
  padding: 6px; box-shadow: 0 20px 60px var(--shadow);
}
.search-results a { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; color: var(--text); }
.search-results a:hover, .search-results a.sel { background: var(--card-2); }
.search-results .empty { padding: 10px; color: var(--muted); font-size: 14px; }
.top-actions { display: flex; justify-content: flex-end; gap: 8px; }
.btn {
  height: 38px; padding: 0 16px; border-radius: 12px; font-weight: 600; font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  transition: transform .08s ease, background .15s ease, opacity .15s ease;
}
.btn:active { transform: scale(.97); }
.btn-launch { background: linear-gradient(180deg, var(--mint), var(--mint-2)); color: var(--mint-ink); }
.btn-ghost { background: var(--card-2); }
.btn-ghost:hover { background: var(--line-2); }

/* live tape */
.tape {
  display: flex; gap: 8px; overflow: hidden; padding: 0 20px 10px;
  max-width: 1280px; margin: 0 auto;
  mask-image: linear-gradient(90deg, #000 85%, transparent);
}
.tape-item {
  flex: none; display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; padding: 4px 10px 4px 4px; border-radius: 999px;
  background: var(--bg-2); border: 1px solid var(--line); white-space: nowrap;
  animation: tapeIn .35s ease;
}
.tape-item.flash-buy { border-color: rgba(78, 227, 154, .5); }
.tape-item.flash-sell { border-color: rgba(255, 107, 116, .45); }
.tape-item b { font-weight: 600; }
@keyframes tapeIn { from { transform: translateX(-24px); opacity: 0; } to { transform: none; opacity: 1; } }

main { max-width: 1280px; margin: 0 auto; padding: 0 20px 60px; }

/* ───── coin art ───── */
.art {
  position: relative; overflow: hidden; flex: none;
  display: grid; place-items: center;
  font-weight: 800; letter-spacing: -.04em; color: rgba(255,255,255,.62);
  background-size: cover; background-position: center;
}
.art.round { border-radius: 50%; }
.art-xs { width: 22px; height: 22px; font-size: 8px; }
.art-sm { width: 34px; height: 34px; font-size: 11px; border-radius: 10px; }
.art-lg { width: 64px; height: 64px; font-size: 20px; }

/* ───── home ───── */
.hero {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 40px 0 28px;
}
.hero h1 {
  margin: 0; font-size: clamp(26px, 4vw, 40px); line-height: 1.08; letter-spacing: -.035em; font-weight: 700;
  max-width: 640px;
}
.hero h1 em { font-style: normal; color: var(--accent-text); }
.hero p { margin: 12px 0 0; color: var(--muted); max-width: 560px; }
.hero-cta { display: flex; gap: 10px; }
.hero-cta .btn { height: 46px; padding: 0 22px; font-size: 15px; border-radius: 14px; }
.pulse-line { font-size: 13.5px; color: var(--muted); margin-top: 14px; }
.pulse-line b { color: var(--text); font-weight: 600; }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-right: 6px; box-shadow: 0 0 0 0 rgba(78,227,154,.6); animation: ping 1.6s infinite; vertical-align: 1px; }
@keyframes ping { 70% { box-shadow: 0 0 0 7px rgba(78,227,154,0); } 100% { box-shadow: 0 0 0 0 rgba(78,227,154,0); } }

.section-h { display: flex; align-items: center; justify-content: space-between; margin: 26px 0 14px; gap: 12px; }
.section-h h2 { margin: 0; font-size: 18px; letter-spacing: -.01em; font-weight: 600; }

/* near graduation rail */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr); gap: 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.rail::-webkit-scrollbar { display: none; }
.rail-card {
  display: flex; gap: 12px; padding: 10px; border-radius: var(--r);
  background: var(--card); border: 1px solid var(--line); min-width: 0;
  transition: border-color .15s ease, transform .15s ease;
}
.rail-card:hover { border-color: var(--line-2); transform: translateY(-1px); }
.rail-card .art { width: 86px; height: 86px; border-radius: 12px; font-size: 22px; }
.rail-card .meta { min-width: 0; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.rail-card .name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail-card .mc { font-weight: 700; font-size: 17px; }

.bar { height: 6px; border-radius: 99px; background: var(--card-2); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--mint-2), var(--mint)); transition: width .4s ease; }
.bar.done i { background: linear-gradient(90deg, #ffd37a, #ffb347); }

/* living bonding bars: a light sweep runs through the fill and sparks fly off the leading edge */
.card .bar, .rail-card .bar, .curve-card .bar { overflow: visible; }
.card .bar i, .rail-card .bar i, .curve-card .bar i {
  position: relative;
  background: linear-gradient(90deg, var(--mint-2), var(--mint) 70%, #d9fff4);
  box-shadow: 0 0 10px rgba(127, 245, 212, .45);
}
.card .bar i::before, .rail-card .bar i::before, .curve-card .bar i::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(100deg, transparent 0 35%, rgba(255,255,255,.75) 50%, transparent 65% 100%) 0 0 / 220% 100% no-repeat;
  animation: sweep 2.2s linear infinite;
}
/* the spark: a hot tip plus six embers thrown up and back */
.card .bar:not(.done) i::after, .rail-card .bar:not(.done) i::after, .curve-card .bar:not(.done) i::after {
  content: ""; position: absolute; right: -2px; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px 2px rgba(127,245,212,.9), 0 0 0 0 #fff, 0 0 0 0 var(--mint), 0 0 0 0 #fff, 0 0 0 0 var(--mint), 0 0 0 0 #fff, 0 0 0 0 var(--mint);
  animation: embers 1.4s ease-out infinite;
}
.card:nth-child(3n+1) .bar i::after { animation-delay: -.5s; }
.card:nth-child(3n+2) .bar i::after { animation-delay: -.95s; }
.card.bump .bar i::after, .curve-card.bump .bar i::after { animation: burst .7s ease-out; }
.card.bump .bar i, .curve-card.bump .bar i { animation: flare .7s ease-out; }
@keyframes sweep { from { background-position: 160% 0; } to { background-position: -60% 0; } }
@keyframes embers {
  0% { opacity: 1; box-shadow: 0 0 6px 2px rgba(127,245,212,.9), 0 0 0 -.5px #fff, 0 0 0 -.5px var(--mint), 0 0 0 -.5px #fff, 0 0 0 -.5px var(--mint), 0 0 0 -.5px #fff, 0 0 0 -.5px var(--mint); }
  100% { opacity: .9; box-shadow: 0 0 8px 3px rgba(127,245,212,.55), 10px -11px 0 -1px rgba(255,255,255,0), 5px 12px 0 -1px rgba(127,245,212,0), -8px -13px 0 -1px rgba(255,255,255,0), 14px 2px 0 -1px rgba(127,245,212,0), -4px 13px 0 -1px rgba(255,255,255,0), 7px -16px 0 -1.5px rgba(127,245,212,0); }
}
@keyframes burst {
  0% { box-shadow: 0 0 10px 4px rgba(127,245,212,1), 0 0 0 0 #fff, 0 0 0 0 var(--mint), 0 0 0 0 #fff, 0 0 0 0 var(--mint), 0 0 0 0 #fff, 0 0 0 0 var(--mint); }
  100% { box-shadow: 0 0 6px 2px rgba(127,245,212,.9), 12px -12px 0 -.5px rgba(255,255,255,0), 8px 13px 0 -.5px rgba(127,245,212,0), -10px -15px 0 -.5px rgba(255,255,255,0), 17px 2px 0 -.5px rgba(127,245,212,0), -6px 15px 0 -.5px rgba(255,255,255,0), 10px -18px 0 -1px rgba(127,245,212,0); }
}
@keyframes flare { 0% { box-shadow: 0 0 18px rgba(127,245,212,.95); filter: brightness(1.35); } 100% { box-shadow: 0 0 10px rgba(127,245,212,.45); filter: none; } }
@media (prefers-reduced-motion: reduce) {
  .bar i::before, .bar i::after, .card.bump .bar i { animation: none !important; }
}
.bar-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.bar-row .bar { flex: 1; }

/* filters */
.filters { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 30px 0 14px; }
.pills { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.pills::-webkit-scrollbar { display: none; }
.pill {
  height: 34px; padding: 0 14px; border-radius: 999px; font-size: 13.5px; font-weight: 500;
  color: var(--muted); background: transparent; border: 1px solid transparent; white-space: nowrap;
}
.pill:hover { color: var(--text); }
.pill.on { color: var(--text); background: var(--card-2); border-color: var(--line-2); }
.count { font-size: 13px; color: var(--muted); }

/* coin grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.card {
  display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden;
  background: var(--card); border: 1px solid var(--line);
  transition: border-color .15s ease, transform .15s ease;
  position: relative;
}
.card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.card .art { width: 100%; aspect-ratio: 1 / .78; font-size: 44px; }
.card .badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  font: 600 11px var(--mono); padding: 3px 7px; border-radius: 7px;
  background: rgba(0,0,0,.45); backdrop-filter: blur(6px); color: #fff;
}
.card .grad-badge {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 7px;
  background: rgba(255, 200, 97, .92); color: #2b1c00;
}
.card .body { padding: 12px 12px 13px; display: flex; flex-direction: column; gap: 7px; }
.card .row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.card .name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.card .tick { font-size: 12px; color: var(--muted); flex: none; }
.card .mc { font-weight: 700; font-size: 16px; }
.card .chg { font-size: 12.5px; font-weight: 600; }
.card.bump { animation: bump .6s ease; }
@keyframes bump { 0% { box-shadow: 0 0 0 0 rgba(127,245,212,.55); } 100% { box-shadow: 0 0 0 10px rgba(127,245,212,0); } }
.card.bump-sell { animation: bumpS .6s ease; }
@keyframes bumpS { 0% { box-shadow: 0 0 0 0 rgba(255,107,116,.45); } 100% { box-shadow: 0 0 0 10px rgba(255,107,116,0); } }

/* ───── coin page ───── */
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; margin: 24px 0 18px; }
.back:hover { color: var(--text); }
.coin-head { display: flex; align-items: center; gap: 16px; min-width: 0; }
.coin-head h1 { margin: 0; font-size: clamp(24px, 3.4vw, 34px); letter-spacing: -.03em; line-height: 1.1; overflow-wrap: anywhere; }
.coin-sub { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; font-size: 13.5px; color: var(--muted); }
.addr { font-family: var(--mono); font-size: 12.5px; display: inline-flex; align-items: center; gap: 5px; }
.addr button { color: var(--dim); padding: 2px; }
.addr button:hover { color: var(--text); }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 8px; background: var(--card-2); color: var(--text); font-size: 12.5px; font-weight: 500; }
.tag.curve { color: var(--accent-text); }
.tag.grad { color: var(--amber); }

.stats { display: flex; gap: 0; margin: 26px 0 22px; overflow-x: auto; scrollbar-width: none; }
.stats::-webkit-scrollbar { display: none; }
.stat { flex: 1 0 auto; padding: 0 22px; border-left: 1px solid var(--line); min-width: 0; }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat .k { font-size: 13px; color: var(--muted); }
.stat .v { font-size: 22px; font-weight: 600; letter-spacing: -.02em; margin-top: 3px; white-space: nowrap; }
.stat .s { font-size: 12px; font-weight: 600; margin-left: 6px; }
.stat .v small { font-size: 12px; font-weight: 600; }

.coin-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.chart-box { border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2); overflow: hidden; }
.chart-tools { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ohlc { font: 500 12px var(--mono); color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }
.ohlc b { font-weight: 600; }
.seg { display: inline-flex; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; }
.seg button { height: 26px; padding: 0 10px; border-radius: 7px; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.seg button.on { background: var(--card-2); color: var(--text); }
#chart { height: 420px; }

.tabs { display: flex; gap: 4px; margin: 22px 0 10px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { padding: 10px 12px; font-size: 14px; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button.on { color: var(--text); border-color: var(--mint); }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; color: var(--dim); font-weight: 500; font-size: 12px; padding: 8px 10px; }
.table td { padding: 9px 10px; border-top: 1px solid var(--line); white-space: nowrap; }
.table td.r, .table th.r { text-align: right; }
.table tr.new td { animation: rowIn .9s ease; }
@keyframes rowIn { from { background: rgba(127,245,212,.10); } to { background: transparent; } }
.table .who { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.table-wrap { overflow-x: auto; }
.side-pill { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 6px; }
.side-pill.b { background: rgba(78,227,154,.12); color: var(--green); }
.side-pill.s { background: rgba(255,107,116,.12); color: var(--red); }

/* trade panel */
.panel { position: sticky; top: 118px; display: flex; flex-direction: column; gap: 10px; }
.trade { border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2); padding: 8px; }
.bs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 3px; border-radius: 13px; background: var(--card); margin-bottom: 8px; }
.bs button { height: 38px; border-radius: 10px; font-weight: 600; color: var(--muted); }
.bs button.on.buy { background: rgba(78, 227, 154, .14); color: var(--green); }
.bs button.on.sell { background: rgba(255, 107, 116, .13); color: var(--red); }
.amount { background: var(--card); border-radius: 14px; padding: 14px; border: 1px solid transparent; }
.amount:focus-within { border-color: var(--line-2); }
.amount .lbl { font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; }
.amount .in { display: flex; align-items: center; gap: 10px; margin: 6px 0 4px; }
.amount input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font-size: 34px; font-weight: 600; letter-spacing: -.03em; padding: 0; }
.amount input::placeholder { color: var(--dim); }
.unit { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px 5px 5px; border-radius: 999px; background: var(--card-2); font-weight: 600; font-size: 14px; flex: none; }
.hype-dot { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #c6fff0, #3fd6aa 60%, #0f6e57); display: inline-block; }
.amount .sub { font-size: 13px; color: var(--muted); }
.quick { display: flex; gap: 6px; margin-top: 10px; }
.quick button { flex: 1; height: 30px; border-radius: 9px; background: var(--card-2); font-size: 12.5px; font-weight: 600; color: var(--muted); }
.quick button:hover { color: var(--text); background: var(--line-2); }
.receipt { padding: 12px 6px 4px; font-size: 13.5px; display: grid; gap: 7px; }
.receipt div { display: flex; justify-content: space-between; gap: 10px; }
.receipt span:first-child { color: var(--muted); }
.warn { margin: 8px 4px 0; padding: 9px 11px; border-radius: 10px; font-size: 13px; background: rgba(255,107,116,.1); color: var(--warn-ink); border: 1px solid rgba(255,107,116,.25); }
.go { width: 100%; height: 52px; margin-top: 10px; border-radius: 14px; font-weight: 700; font-size: 16px; }
.go.buy { background: linear-gradient(180deg, var(--mint), var(--mint-2)); color: var(--mint-ink); }
.go.sell { background: var(--red); color: #2a0306; }
.go:disabled { opacity: .45; cursor: not-allowed; }

.curve-card { border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2); padding: 14px; }
.curve-card h3 { margin: 0 0 4px; font-size: 14px; font-weight: 600; }
.curve-card p { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.curve-card .big { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.curve-card .bar { height: 8px; margin: 10px 0 6px; }
.fees { display: grid; grid-template-columns: 70fr 30fr; height: 8px; border-radius: 99px; overflow: hidden; margin: 10px 0 6px; }
.fees i:first-child { background: var(--mint-2); }
.fees i:last-child { background: var(--fee-rest); }
.fee-legend { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); }

.about { color: var(--muted); font-size: 14px; max-width: 70ch; }
.about.links a { color: var(--accent-text); font-weight: 500; }
.about.links a:hover { text-decoration: underline; }
.holders .bar { width: 120px; display: inline-block; vertical-align: middle; margin-right: 8px; }

/* mobile trade bar */
.m-bar { display: none; }

/* ───── launch page ───── */
.launch { max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.launch h1 { font-size: clamp(26px, 4vw, 36px); letter-spacing: -.03em; margin: 30px 0 6px; }
.launch .lead { color: var(--muted); margin: 0 0 22px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; color: var(--muted); font-weight: 500; }
.field input, .field textarea {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; outline: 0; font-size: 16px; width: 100%;
}
.field input:focus, .field textarea:focus { border-color: var(--line-2); }
.field textarea { min-height: 96px; resize: vertical; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.drop {
  display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px;
  border: 1px dashed var(--line-2); background: var(--bg-2); cursor: pointer;
}
.drop:hover { border-color: var(--mint-2); }
.drop .art { width: 64px; height: 64px; border-radius: 14px; font-size: 20px; }
.drop b { display: block; font-weight: 600; }
.drop small { color: var(--muted); }
.preview { position: sticky; top: 118px; margin-top: 30px; }
.preview .card { pointer-events: none; }
.preview-note { font-size: 13px; color: var(--muted); margin: 12px 2px 0; }
.first-buy .amount input { font-size: 26px; }
.terms { font-size: 13px; color: var(--muted); margin: 14px 0 0; line-height: 1.55; }
.terms b { color: var(--text); font-weight: 600; }

/* footer, toast */
.foot {
  max-width: 1280px; margin: 0 auto; padding: 22px 20px 40px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12.5px; color: var(--dim);
}
.foot .dot { opacity: .6; }
.demo-tag { margin-left: auto; padding: 3px 9px; border-radius: 7px; background: rgba(255,200,97,.12); color: var(--amber); font-weight: 600; }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60;
  background: var(--card-2); border: 1px solid var(--line-2); padding: 12px 16px; border-radius: 14px;
  font-size: 14px; box-shadow: 0 20px 50px var(--shadow); max-width: calc(100vw - 32px);
}
.toast.ok { border-color: rgba(78,227,154,.45); }

/* ───── live trades popup ───── */
.lt {
  position: fixed; left: 20px; bottom: 20px; z-index: 50; width: 340px;
  background: var(--glass-pop); backdrop-filter: blur(14px);
  border: 1px solid var(--line-2); border-radius: var(--r);
  box-shadow: 0 18px 50px var(--shadow);
  animation: ltIn .3s ease;
}
.lt[hidden], .lt-reopen[hidden] { display: none; }
@keyframes ltIn { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
.lt-head { display: flex; align-items: center; gap: 2px; padding: 8px 8px 8px 14px; }
.lt.folded .lt-head { padding-top: 7px; padding-bottom: 7px; }
.lt-title { flex: 1; display: flex; align-items: center; font-weight: 600; font-size: 14px; color: var(--text); text-align: left; min-width: 0; }
.lt-badge {
  margin-left: 8px; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 99px;
  display: inline-grid; place-items: center; font: 600 11.5px var(--mono);
  background: var(--card-2); color: var(--muted); transition: background .2s, color .2s;
}
.lt-badge.hot { background: var(--mint); color: var(--mint-ink); }
.lt-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; color: var(--muted); }
.lt-icon:hover { background: var(--card-2); color: var(--text); }
#lt-fold svg { transition: transform .2s; }
.lt.folded #lt-fold svg { transform: rotate(180deg); }
.lt-list { border-top: 1px solid var(--line); max-height: min(250px, 38vh); overflow-y: auto; padding: 4px; overscroll-behavior: contain; }
.lt.folded .lt-list { display: none; }
.lt-row {
  display: grid; grid-template-columns: 15px 34px 20px minmax(0, 1fr) auto 26px; align-items: center; gap: 8px;
  padding: 7px 8px; border-radius: 10px; color: var(--text); font-size: 13px;
  animation: tapeIn .35s ease;
}
.lt-row:hover { background: var(--card-2); }
.lt-row.buy .lt-arrow, .lt-row.buy .lt-side { color: var(--green); }
.lt-row.sell .lt-arrow, .lt-row.sell .lt-side { color: var(--red); }
.lt-row.new .lt-arrow, .lt-row.new .lt-side { color: var(--accent-text); }
.lt-side { font: 700 11px var(--mono); letter-spacing: .02em; }
.lt-row .art-xs { width: 20px; height: 20px; font-size: 7px; }
.lt-tk { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lt-amt { font: 500 12.5px var(--mono); text-align: right; white-space: nowrap; }
.lt-amt i { display: block; font-style: normal; font-size: 11px; color: var(--muted); }
.lt-ago { font-size: 11.5px; text-align: right; }
.lt-reopen {
  position: fixed; left: 20px; bottom: 20px; z-index: 50; height: 38px; padding: 0 14px;
  display: inline-flex; align-items: center; border-radius: 99px; font-weight: 600; font-size: 13.5px; color: var(--text);
  background: var(--glass-pop); border: 1px solid var(--line-2); box-shadow: 0 10px 30px var(--shadow);
}
.lt-reopen:hover { border-color: var(--mint-2); }

/* ───── responsive ───── */
@media (max-width: 1020px) {
  .coin-layout { grid-template-columns: minmax(0, 1fr) 320px; }
  .launch { grid-template-columns: 1fr; }
  .preview { position: static; margin-top: 0; max-width: 260px; }
}
@media (max-width: 860px) {
  .top-in { grid-template-columns: auto minmax(0, 1fr) auto; padding: 10px 16px; gap: 10px; }
  .brand span { display: none; }
  .search kbd { display: none; }
  .tape { padding: 0 16px 9px; }
  main { padding: 0 16px 90px; }
  .coin-layout { grid-template-columns: minmax(0, 1fr); }
  .panel { position: static; }
  #chart { height: 320px; }
  .m-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--glass); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
  }
  .m-bar button { height: 46px; border-radius: 13px; font-weight: 700; }
  .m-bar .b { background: linear-gradient(180deg, var(--mint), var(--mint-2)); color: var(--mint-ink); }
  .m-bar .s { background: var(--card-2); color: var(--red); }
  .foot { padding-bottom: 90px; }
  .lt { left: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); width: min(380px, calc(100% - 24px)); }
  .lt.folded { left: auto; right: 12px; width: auto; }
  .lt.folded .lt-head { padding-left: 12px; }
  .lt-reopen { left: auto; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); }
  body:has(.m-bar) .lt, body:has(.m-bar) .lt-reopen { bottom: calc(78px + env(safe-area-inset-bottom)); }
}
@media (max-width: 560px) {
  .top-actions .btn-launch { display: none; }
  .btn { padding: 0 13px; }
  .hero { padding: 26px 0 18px; }
  .hero-cta { width: 100%; }
  .hero-cta .btn { flex: 1; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card .art { font-size: 34px; }
  .card .body { padding: 10px; }
  .card .mc { font-size: 15px; }
  .rail { grid-auto-columns: 82%; }
  .stats { flex-wrap: wrap; gap: 14px 0; }
  .stat { flex: 1 0 50%; padding: 0 0 0 14px; border-left: 1px solid var(--line); }
  .stat:nth-child(odd) { padding-left: 0; border-left: 0; }
  .stat .v { font-size: 19px; }
  .art-lg { width: 52px; height: 52px; font-size: 16px; }
  .two { grid-template-columns: 1fr; gap: 0; }
  .amount input { font-size: 30px; }
  .holders .bar { width: 60px; }
  .demo-tag { margin-left: 0; }
}

/* theme toggle */
.theme-btn { width: 38px; padding: 0; display: inline-grid; place-items: center; }
.theme-btn .sun, :root[data-theme="light"] .theme-btn .moon { display: none; }
:root[data-theme="light"] .theme-btn .sun { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .theme-btn .moon { display: none; }
  :root:not([data-theme]) .theme-btn .sun { display: block; }
}

/* launch type + creator tax */
.type-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.type-pick button {
  display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 14px; border-radius: var(--r-sm);
  background: var(--card); border: 1px solid var(--line);
}
.type-pick button b { font-size: 15px; color: var(--text); }
.type-pick button span { font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.type-pick button:hover { border-color: var(--line-2); }
.type-pick button.on { border-color: var(--mint-2); box-shadow: inset 0 0 0 1px var(--mint-2); }
.field input.range { padding: 0; height: 24px; border: 0; background: none; accent-color: var(--mint-2); }
.field label b { color: var(--text); }
.hint { font-size: 12.5px; color: var(--muted); }
[hidden] { display: none !important; }

/* crowd launch */
.card .grad-badge.crowd { background: var(--mint); color: var(--mint-ink); }
.crowd-meter .curve-card { margin-top: 0; }
.crowd-how { margin-top: 16px; }
.skip { display: block; width: 100%; margin-top: 10px; padding: 4px; font-size: 12.5px; color: var(--muted); text-decoration: underline; }
.skip:hover { color: var(--text); }
#curve-card .go { margin-top: 12px; }
@media (max-width: 560px) {
  .type-pick { grid-template-columns: 1fr; }
}

/* live */
.grid-empty { grid-column: 1 / -1; padding: 42px 16px; text-align: center; color: var(--muted); }
.demo-tag.off { color: var(--red); }
