:root {
  --bg: #0a0a0c;
  --bg2: #0e0e11;
  --panel: #121216;
  --panel2: #17171c;
  --line: rgba(255, 255, 255, 0.075);
  --line2: rgba(255, 255, 255, 0.13);
  --text: #ecebf1;
  --muted: #8d8c97;
  --dim: #5c5b66;
  --sol-a: #9945ff;
  --sol-b: #14f195;
  --sol-grad: linear-gradient(100deg, #9945ff 0%, #3fa8d8 55%, #14f195 100%);
  --up: #14f195;
  --down: #ff5d6e;
  --burn: #ff8a3d;
  --r-card: 14px;
  --r-btn: 10px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --side: 236px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font: 14px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
.mono { font-family: var(--mono); }
::selection { background: rgba(20, 241, 149, 0.3); }

#bgfield {
  position: fixed; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0; opacity: 0.55;
}

/* ---------- sidebar ---------- */
.side {
  position: fixed; inset: 0 auto 0 0; width: var(--side);
  padding: 18px 14px; display: flex; flex-direction: column; gap: 10px;
  border-right: 1px solid var(--line);
  background: rgba(10, 10, 12, 0.92);
  backdrop-filter: blur(10px);
  z-index: 30; overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 14px; }
.brand-mark {
  font: 700 15px var(--mono); letter-spacing: -0.04em;
  background: var(--sol-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-word { font: 500 19px var(--sans); letter-spacing: -0.03em; color: #cfced8; }
.brand-word b { font-weight: 800; color: var(--text); }
.brand-word.small { font-size: 14px; }
.nav { display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; }
.nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: var(--r-btn);
  color: #c9c8d2; font-weight: 500;
  transition: background-color 160ms ease, color 160ms ease;
}
.nav a i { font-size: 16px; color: var(--muted); }
.nav a.active {
  background: linear-gradient(180deg, #2b2b33, #1c1c22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 0 1px var(--line);
  color: #fff;
}
.nav a.active i { color: var(--sol-b); }
@media (hover: hover) and (pointer: fine) {
  .nav a:not(.active):hover { background: rgba(255, 255, 255, 0.04); color: #fff; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: var(--r-btn);
  border: 0; cursor: pointer; font-weight: 600; white-space: nowrap;
  transition: transform 140ms var(--ease-out), background-color 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}
.btn:active { transform: scale(0.97); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, canvas:focus-visible {
  outline: 2px solid var(--sol-b); outline-offset: 2px;
}
.btn-block { width: 100%; }
.btn-lg { height: 50px; padding: 0 24px; font-size: 15px; }
.btn-light {
  background: linear-gradient(180deg, #ffffff, #c9c9d1);
  color: #0b0b0e;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.12), 0 6px 20px rgba(255, 255, 255, 0.06);
}
.btn-dark {
  background: linear-gradient(180deg, #1d1d23, #141418);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 0 1px var(--line2);
}
.btn-sol { background: var(--sol-grad); color: #07070a; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.15); }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; transform: none; }
@media (hover: hover) and (pointer: fine) {
  .btn-light:hover { background: linear-gradient(180deg, #ffffff, #dcdce2); }
  .btn-dark:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.24); }
}

.house-card, .master-card {
  border-radius: var(--r-card); padding: 12px;
  background: linear-gradient(180deg, #16161b, #111115);
  box-shadow: inset 0 0 0 1px var(--line2);
}
.house-card { margin-top: 12px; box-shadow: inset 0 0 0 1px rgba(20, 241, 149, 0.22); }
.hc-row { display: flex; align-items: center; gap: 10px; }
.hc-sym { font-weight: 800; font-size: 16px; background: var(--sol-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hc-sub { color: var(--muted); font-size: 11px; line-height: 1.2; }
.hc-row .ph-arrow-up-right { margin-left: auto; color: var(--muted); }
.hc-stats { display: flex; justify-content: space-between; margin: 10px 0 8px; font-size: 13px; }
.hc-ca {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%;
  font: 11px var(--mono); color: var(--muted);
  padding: 6px 9px; border-radius: 8px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); cursor: pointer;
}
.mw-top { display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.mw-top span:first-child { display: flex; align-items: center; gap: 6px; }
.mw-bar { font: 11px/1 var(--mono); color: var(--sol-b); letter-spacing: -0.5px; margin: 10px 0 6px; white-space: nowrap; overflow: hidden; }
.mw-foot { display: flex; justify-content: space-between; font: 11px var(--mono); color: var(--dim); }
.side-foot { margin-top: auto; padding: 14px 8px 4px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.side-foot a { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }

.coin-ava {
  width: 30px; height: 30px; border-radius: 50%; flex: none; overflow: hidden;
  background: #0b0b0e; box-shadow: inset 0 0 0 1px var(--line2);
  display: grid; place-items: center;
}
.coin-ava canvas { width: 100%; height: 100%; }

/* ---------- top bar ---------- */
.main { margin-left: var(--side); position: relative; z-index: 1; min-height: 100dvh; display: flex; flex-direction: column; }
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  display: flex; align-items: center; gap: 12px;
  padding: 10px clamp(16px, 2.4vw, 28px);
  background: rgba(10, 10, 12, 0.82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.icon-btn {
  width: 40px; height: 40px; border-radius: var(--r-btn); border: 0; cursor: pointer;
  display: grid; place-items: center; font-size: 18px;
  background: var(--panel); box-shadow: inset 0 0 0 1px var(--line2);
}
.icon-btn.menu-btn { display: none; }
.search {
  flex: 1; max-width: 320px; display: flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 12px; border-radius: var(--r-btn);
  background: var(--panel); box-shadow: inset 0 0 0 1px var(--line);
  color: var(--muted);
}
.search input { flex: 1; min-width: 0; border: 0; background: none; color: var(--text); font: 13px var(--sans); outline: none; }
.search input::placeholder { color: #75747f; }
.top-pills { margin-left: auto; display: flex; gap: 8px; min-width: 0; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 5px;
  border-radius: 999px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line2);
  font-size: 13px; white-space: nowrap;
}
.pill .coin-ava { width: 26px; height: 26px; }
.pill-house { box-shadow: inset 0 0 0 1px rgba(20, 241, 149, 0.28); }
.pill-house b { background: var(--sol-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.chg { font: 600 12px var(--mono); padding: 2px 6px; border-radius: 6px; }
.chg.up { color: var(--up); background: rgba(20, 241, 149, 0.1); }
.chg.down { color: var(--down); background: rgba(255, 93, 110, 0.1); }
.chg.flat { color: var(--muted); background: rgba(255, 255, 255, 0.05); }
.pill-ticker { max-width: 260px; overflow: hidden; }
.pill-ticker .t-sym { font-family: var(--mono); color: #cfced8; }
.pill-ticker .t-lbl { color: var(--muted); }

#view { flex: 1; padding: 0 clamp(16px, 2.4vw, 28px) 40px; outline: none; }
.foot {
  display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center;
  padding: 22px clamp(16px, 2.4vw, 28px) calc(22px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line); color: var(--muted); font-size: 12px;
}
.demo-note { display: inline-flex; gap: 6px; align-items: center; color: #b9a2ff; }
.foot span:last-child { margin-left: auto; }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(16px, 3vw, 40px); align-items: center;
  padding-top: clamp(24px, 4vw, 48px);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px;
  border-radius: 999px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line2);
  font: 600 11px var(--mono); letter-spacing: 0.04em; color: #c9c8d2; text-transform: uppercase;
}
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sol-b); box-shadow: 0 0 0 0 rgba(20, 241, 149, 0.6); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(20, 241, 149, 0); } 100% { box-shadow: 0 0 0 0 rgba(20, 241, 149, 0); } }
.hero h1 {
  font: 800 clamp(34px, 4.2vw, 64px)/1 var(--sans); letter-spacing: -0.045em;
  margin: 20px 0 18px;
}
.hero h1 .l1, .hero h1 .l2 { white-space: nowrap; }
.hero h1 .l2 { color: #9a99a5; }
.hero h1 .scr { font-family: var(--mono); font-weight: 700; letter-spacing: -0.06em; }
.lede { font-size: 16px; line-height: 1.75; color: #b6b5c0; max-width: 60ch; margin: 0; }
.lede b { color: var(--text); }
.lede .hl-sol { font-weight: 700; background: var(--sol-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede .hl-burn { color: var(--burn); font-weight: 700; }
.lede .hl-up { color: var(--up); font-weight: 700; }
.lede .chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px 1px 3px; margin: 0 2px;
  border-radius: 999px; background: var(--panel2); box-shadow: inset 0 0 0 1px var(--line2);
  font: 600 13px var(--sans); color: var(--text); vertical-align: 1px;
}
.lede .chip .coin-ava { width: 18px; height: 18px; }
.feat-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 26px; }
.feat {
  display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px;
  border-radius: 999px; font-size: 13px; font-weight: 500; color: #d7d6df;
  background: var(--panel); box-shadow: inset 0 0 0 1px var(--line2);
}
.feat i { font-size: 14px; color: var(--muted); }
.feat.hot { box-shadow: inset 0 0 0 1px rgba(153, 69, 255, 0.45); }
.feat.hot i { color: #b98bff; }
.feat.burn i { color: var(--burn); }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

.stage {
  position: relative; aspect-ratio: 1.2 / 1; width: 100%;
  border-radius: 22px;
  background:
    radial-gradient(60% 50% at 50% 55%, rgba(153, 69, 255, 0.08), transparent 70%),
    radial-gradient(40% 30% at 70% 40%, rgba(20, 241, 149, 0.05), transparent 70%);
}
.stage canvas.ascii { position: absolute; inset: 0; display: block; touch-action: manipulation; }
.stage-tag {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 11px; border-radius: 999px; pointer-events: none;
  background: rgba(18, 18, 22, 0.86); box-shadow: inset 0 0 0 1px var(--line2);
  font: 600 12px var(--mono); color: #dedde6; backdrop-filter: blur(6px);
  animation: drift 6s ease-in-out infinite;
}
.stage-tag .dot { width: 6px; height: 6px; border-radius: 50%; }
.stage-tag.t1 { left: 4%; top: 12%; }
.stage-tag.t2 { right: 3%; top: 22%; animation-delay: -2s; }
.stage-tag.t3 { right: 8%; bottom: 24%; animation-delay: -4s; }
@keyframes drift { 50% { translate: 0 -8px; } }
.stage-hint {
  position: absolute; left: 50%; bottom: 2%; translate: -50% 0;
  font: 600 11px var(--mono); letter-spacing: 0.16em; color: var(--dim); text-transform: uppercase; pointer-events: none;
}

.flyer {
  display: flex; align-items: center; gap: 12px; margin: 10px auto 0; width: min(330px, 100%);
  padding: 12px 14px; border-radius: var(--r-card); position: relative;
  background: linear-gradient(180deg, #17171c, #111115); box-shadow: inset 0 0 0 1px var(--line2);
}
.flyer .tag {
  position: absolute; top: -11px; left: 12px; height: 22px; padding: 0 9px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 5px;
  background: #e9e9ee; color: #0b0b0e; font: 700 10px var(--mono); letter-spacing: 0.06em;
}
.flyer .coin-ava { width: 42px; height: 42px; border-radius: 10px; }
.flyer .f-name { font-weight: 700; }
.flyer .f-name small { font: 500 11px var(--mono); color: var(--muted); margin-left: 4px; }
.flyer .f-mc { font: 700 16px var(--mono); }
.pair-badge {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px;
  font: 600 11px var(--mono); color: #d2d1da; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--line2);
}
.pair-badge.house { color: var(--sol-b); box-shadow: inset 0 0 0 1px rgba(20, 241, 149, 0.35); }

/* ---------- stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
  margin: 36px 0 8px; padding-top: 22px; border-top: 1px solid var(--line);
}
.stat { display: flex; align-items: center; gap: 12px; min-width: 0; }
.stat .ic {
  width: 40px; height: 40px; flex: none; border-radius: 11px; display: grid; place-items: center;
  background: var(--panel); box-shadow: inset 0 0 0 1px var(--line2); color: #cfced8; font-size: 17px;
}
.stat .ic.burn { color: var(--burn); }
.stat b { display: block; font: 700 clamp(18px, 2vw, 24px)/1.1 var(--mono); letter-spacing: -0.03em; }
.stat span { font-size: 12px; color: var(--muted); }

/* ---------- section heads ---------- */
.sec-head { display: flex; align-items: center; gap: 10px; margin: 44px 0 16px; }
.sec-head h2 { font: 800 24px var(--sans); letter-spacing: -0.03em; margin: 0; }
.sec-head .count { font: 600 11px var(--mono); color: var(--muted); padding: 2px 8px; border-radius: 999px; background: var(--panel); }
.sec-head .aside { margin-left: auto; color: var(--muted); font-size: 12px; }
.sec-head i { font-size: 20px; color: var(--burn); }

/* ---------- trending marquee ---------- */
.trend-wrap { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.trend-track { display: flex; gap: 12px; width: max-content; animation: slide 70s linear infinite; }
.trend-wrap:hover .trend-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.tcard {
  width: 210px; flex: none; border-radius: var(--r-card); overflow: hidden;
  background: var(--panel); box-shadow: inset 0 0 0 1px var(--line2);
  transition: transform 200ms var(--ease-out);
}
.tcard .art { position: relative; aspect-ratio: 1.15; background: #08080a; }
.tcard .art canvas { width: 100%; height: 100%; display: block; }
.tcard .rank {
  position: absolute; top: 8px; left: 8px; height: 22px; padding: 0 7px; border-radius: 7px;
  display: inline-flex; align-items: center; font: 700 11px var(--mono);
  background: rgba(10, 10, 12, 0.8); box-shadow: inset 0 0 0 1px var(--line2);
}
.tcard .body { padding: 10px 12px 12px; }
.tcard .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tcard .sym { font: 600 12px var(--mono); color: var(--muted); }
.tcard .mc { font: 700 15px var(--mono); }
.spark { font: 13px/1 var(--mono); letter-spacing: -1px; white-space: nowrap; overflow: hidden; }
.spark.up { color: var(--up); }
.spark.down { color: var(--down); }
@media (hover: hover) and (pointer: fine) { .tcard:hover { transform: translateY(-3px); } }

/* ---------- board ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tab {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px;
  border-radius: 999px; border: 0; cursor: pointer; font-size: 13px; font-weight: 500;
  background: var(--panel); color: #c9c8d2; box-shadow: inset 0 0 0 1px var(--line2);
  transition: background-color 160ms ease, color 160ms ease, transform 140ms var(--ease-out);
}
.tab:active { transform: scale(0.97); }
.tab i { font-size: 14px; color: var(--muted); }
.tab.on { background: #ececf1; color: #0b0b0e; }
.tab.on i { color: #0b0b0e; }
.board { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 12px; }
.ccard {
  display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 14px; padding: 10px;
  border-radius: var(--r-card); background: linear-gradient(180deg, #15151a, #111115);
  box-shadow: inset 0 0 0 1px var(--line2);
  transition: box-shadow 180ms ease, transform 200ms var(--ease-out);
  animation: rise 420ms var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 40ms);
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@media (hover: hover) and (pointer: fine) { .ccard:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22); } }
.ccard .art { position: relative; border-radius: 10px; overflow: hidden; background: #08080a; aspect-ratio: 1 / 1.08; align-self: start; }
.ccard .art canvas { width: 100%; height: 100%; display: block; }
.ccard .meta { display: flex; align-items: center; gap: 6px; font: 12px var(--mono); color: var(--muted); }
.ccard .meta i { font-size: 13px; }
.ccard .meta .pair-badge { margin-left: auto; }
.ccard h3 { margin: 4px 0 4px; font: 700 17px var(--sans); letter-spacing: -0.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ccard h3 small { font: 500 11px var(--mono); color: var(--muted); margin-left: 4px; }
.ccard .mid { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.ccard .lbl { font: 600 10px var(--mono); letter-spacing: 0.08em; color: var(--dim); }
.ccard .mc { font: 700 20px/1.1 var(--mono); letter-spacing: -0.03em; }
.ccard .ath { font: 11px var(--mono); color: var(--dim); }
.ccard .desc { margin: 6px 0 8px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ccard .foot-row { display: flex; align-items: center; gap: 10px; }
.prog { flex: 1; font: 11px/1 var(--mono); color: var(--dim); white-space: nowrap; overflow: hidden; letter-spacing: -0.5px; }
.prog b { font-weight: 400; color: #e6e6ec; }
.burned { display: inline-flex; align-items: center; gap: 3px; font: 600 11px var(--mono); color: var(--burn); }
.empty {
  padding: 40px 20px; text-align: center; color: var(--muted); border-radius: var(--r-card);
  box-shadow: inset 0 0 0 1px var(--line); font-family: var(--mono); white-space: pre; overflow-x: auto;
}

/* ---------- create ---------- */
.steps { display: flex; align-items: center; gap: 12px; margin: 28px 0 18px; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 500; }
.step .n {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font: 600 12px var(--mono); box-shadow: inset 0 0 0 1px var(--line2);
}
.step.on { color: var(--text); }
.step.on .n { background: #ececf1; color: #0b0b0e; box-shadow: none; }
.step.done .n { background: rgba(20, 241, 149, 0.14); color: var(--sol-b); box-shadow: none; }
.step-line { width: 56px; height: 1px; background: var(--line2); }
.page-title { font: 800 clamp(30px, 3.6vw, 44px)/1.05 var(--sans); letter-spacing: -0.04em; margin: 0 0 10px; }
.page-sub { color: #aaa9b4; max-width: 62ch; margin: 0 0 22px; line-height: 1.65; }
.create-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 20px; align-items: start; }
.panel { border-radius: 18px; padding: 18px; background: linear-gradient(180deg, #141418, #101013); box-shadow: inset 0 0 0 1px var(--line2); }
.drop {
  display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; align-items: center;
  padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.02); box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow 160ms ease, background-color 160ms ease;
}
.drop.over { box-shadow: inset 0 0 0 1px var(--sol-b); background: rgba(20, 241, 149, 0.04); }
.drop .thumb {
  width: 96px; height: 96px; border-radius: 12px; display: grid; place-items: center; overflow: hidden;
  background: #0a0a0d; box-shadow: inset 0 0 0 1px var(--line2); color: var(--muted); font-size: 22px; cursor: pointer;
}
.drop .thumb canvas { width: 100%; height: 100%; }
.drop h4 { margin: 0 0 4px; font-size: 15px; }
.drop p { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.5; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; color: #d8d7e0; }
.field label small { font: 11px var(--mono); color: var(--dim); font-weight: 400; }
.field input, .field textarea {
  width: 100%; border: 0; border-radius: 11px; padding: 12px 13px;
  background: #0d0d10; color: var(--text); font: 14px var(--sans);
  box-shadow: inset 0 0 0 1px var(--line2); transition: box-shadow 160ms ease;
}
.field input::placeholder, .field textarea::placeholder { color: #6f6e79; }
.field input:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 1px rgba(20, 241, 149, 0.6); }
.field textarea { min-height: 84px; resize: vertical; }
.field .err { font-size: 12px; color: var(--down); min-height: 0; }
.ticker-in { position: relative; }
.ticker-in span { position: absolute; left: 13px; top: 50%; translate: 0 -50%; font: 600 14px var(--mono); color: var(--muted); }
.ticker-in input { padding-left: 26px; font-family: var(--mono); text-transform: uppercase; }
.links-head { grid-column: 1 / -1; display: flex; justify-content: space-between; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); font: 600 11px var(--mono); letter-spacing: 0.08em; color: var(--dim); }
.links-head small { letter-spacing: 0; font-weight: 400; }
.fields.links { grid-template-columns: repeat(3, 1fr); margin-top: 10px; }
.cost-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.cost-row b { color: var(--sol-b); font-family: var(--mono); }
.preview-label { font: 600 11px var(--mono); letter-spacing: 0.08em; color: var(--dim); margin: 0 0 10px; }
.wizard-nav { display: flex; gap: 10px; justify-content: space-between; margin-top: 18px; }
.pair-list { display: grid; gap: 10px; }
.pair-opt {
  display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px; cursor: pointer;
  background: rgba(255, 255, 255, 0.02); box-shadow: inset 0 0 0 1px var(--line2); border: 0; text-align: left; width: 100%;
  transition: box-shadow 160ms ease, background-color 160ms ease, transform 140ms var(--ease-out);
}
.pair-opt:active { transform: scale(0.99); }
.pair-opt.on { box-shadow: inset 0 0 0 1.5px var(--sol-b); background: rgba(20, 241, 149, 0.04); }
.pair-opt .coin-ava { width: 40px; height: 40px; }
.pair-opt b { display: block; font-size: 15px; }
.pair-opt span { font-size: 12px; color: var(--muted); }
.pair-opt .check { margin-left: auto; font-size: 20px; color: var(--sol-b); opacity: 0; transition: opacity 160ms ease; }
.pair-opt.on .check { opacity: 1; }

/* ---------- ascii panels (shield chart, launch console) ---------- */
pre.ascii-out {
  margin: 0; padding: 16px; border-radius: 14px; overflow-x: auto;
  background: #08080a; box-shadow: inset 0 0 0 1px var(--line2);
  font: 12px/1.35 var(--mono); color: #cfced8;
}
pre.ascii-out .g { color: var(--sol-b); }
pre.ascii-out .p { color: #b98bff; }
pre.ascii-out .o { color: var(--burn); }
pre.ascii-out .d { color: var(--dim); }
.console-big { font-size: 13px; min-height: 280px; }

/* ---------- how ---------- */
.how-block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; align-items: center; padding: 34px 0; border-top: 1px solid var(--line); }
.how-block:first-of-type { border-top: 0; }
.how-block h2 { font: 800 clamp(24px, 2.6vw, 32px)/1.1 var(--sans); letter-spacing: -0.035em; margin: 0 0 10px; }
.how-block p { margin: 0; color: #aaa9b4; line-height: 1.7; max-width: 52ch; }
.how-block.flip > :first-child { order: 2; }
.split-bars { display: grid; gap: 10px; }
.split-bars .row { display: grid; grid-template-columns: 150px 1fr 48px; gap: 12px; align-items: center; font: 12px var(--mono); }
.split-bars .bar { white-space: nowrap; overflow: hidden; letter-spacing: -1px; }
.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rule { padding: 16px; border-radius: var(--r-card); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line2); }
.rule i { font-size: 20px; color: var(--sol-b); }
.rule b { display: block; margin: 8px 0 4px; }
.rule span { font-size: 13px; color: var(--muted); }

/* ---------- live + burns lists ---------- */
.list { display: grid; gap: 8px; }
.lrow {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto; gap: 14px; align-items: center;
  padding: 10px 14px; border-radius: 12px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line);
}
.lrow .coin-ava { width: 40px; height: 40px; border-radius: 10px; }
.lrow b { display: block; }
.lrow small { color: var(--muted); font: 12px var(--mono); }
.lrow .big { font: 700 15px var(--mono); text-align: right; }
.lrow .burnv { color: var(--burn); }
.countdown { font: 700 18px var(--mono); background: var(--sol-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- toast + drawer ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  translate: -50% 0; padding: 11px 16px; border-radius: 12px;
  background: #ececf1; color: #0b0b0e; font-weight: 600; font-size: 13px;
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.toast.show { opacity: 1; transform: translateY(0); }
.scrim { position: fixed; inset: 0; z-index: 25; background: rgba(0, 0, 0, 0.55); opacity: 0; pointer-events: none; transition: opacity 220ms ease; }
.scrim.show { opacity: 1; pointer-events: auto; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .hero { grid-template-columns: 1fr; }
  .stage { max-width: 640px; margin: 0 auto; width: 100%; }
  .create-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  :root { --side: 0px; }
  .side { width: 270px; transform: translateX(-100%); transition: transform 260ms var(--ease-out); }
  .side.open { transform: translateX(0); }
  .icon-btn.menu-btn { display: grid; }
  .top-pills .pill-ticker { display: none; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
  .how-block, .how-block.flip { grid-template-columns: 1fr; }
  .how-block.flip > :first-child { order: 0; }
}
@media (max-width: 600px) {
  .search { max-width: none; }
  .pill-house .chg { display: none; }
  .ccard { grid-template-columns: 92px minmax(0, 1fr); gap: 12px; }
  .ccard .mc { font-size: 17px; }
  .fields, .fields.links { grid-template-columns: 1fr; }
  .drop { grid-template-columns: 72px 1fr; }
  .drop .thumb { width: 72px; height: 72px; }
  .drop .btn { grid-column: 1 / -1; }
  .rules { grid-template-columns: 1fr; }
  .split-bars .row { grid-template-columns: 100px 1fr 40px; }
  .foot span:last-child { margin-left: 0; }
  .lrow { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .lrow .hide-sm { display: none; }
  .stage-tag.t2 { top: 8%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .trend-wrap { overflow-x: auto; }
}

/* ---------- coin page ---------- */
a.ccard { color: inherit; }
a.lrow { color: inherit; transition: box-shadow 160ms ease; }
@media (hover: hover) and (pointer: fine) { a.lrow:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); } }
.back { display: inline-flex; align-items: center; gap: 6px; margin: 24px 0 14px; color: var(--muted); font-size: 13px; }
.coin-head { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; }
.coin-art { width: 108px; height: 108px; flex: none; border-radius: 18px; overflow: hidden; background: #08080a; box-shadow: inset 0 0 0 1px var(--line2); }
.coin-art canvas { width: 100%; height: 100%; display: block; }
.coin-head h1 { margin: 0 0 8px; font: 800 clamp(28px, 3.4vw, 40px)/1 var(--sans); letter-spacing: -0.04em; }
.coin-head h1 small { font: 500 15px var(--mono); color: var(--muted); letter-spacing: 0; margin-left: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }
.meta-line { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; color: var(--muted); }
.chip-link {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--panel); box-shadow: inset 0 0 0 1px var(--line2); font-size: 12px; font-weight: 600; color: #d7d6df;
}
.chip-link.mono { font: 500 12px var(--mono); }
.coin-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.coin-grid > section { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; }
.coin-grid > aside { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; position: sticky; top: calc(76px + env(safe-area-inset-top, 0px)); }
.chart-card { padding: 16px 16px 10px; }
.chart-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.lbl { font: 600 10px var(--mono); letter-spacing: 0.08em; color: var(--dim); text-transform: uppercase; }
.big-mc { font: 800 30px/1.1 var(--mono); letter-spacing: -0.04em; display: flex; align-items: center; gap: 10px; }
.tf { display: flex; gap: 4px; padding: 3px; border-radius: 10px; background: #0b0b0e; box-shadow: inset 0 0 0 1px var(--line); }
.tf button, .quick button, .seg button {
  border: 0; cursor: pointer; height: 30px; padding: 0 12px; border-radius: 8px; background: transparent; color: var(--muted);
  font: 600 12px var(--mono); transition: background-color 160ms ease, color 160ms ease, transform 140ms var(--ease-out);
}
.tf button:active, .quick button:active, .seg button:active { transform: scale(0.96); }
.tf button.on, .quick button.on { background: #ececf1; color: #0b0b0e; }
canvas.chart { width: 100%; height: 340px; display: block; }
.coin-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.coin-stats > div { padding: 12px 14px; border-radius: var(--r-card); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.coin-stats b { display: block; font: 700 17px var(--mono); }
.coin-stats span { font-size: 12px; color: var(--muted); }
.curve .row, .two .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.prog.big { font-size: 14px; letter-spacing: -1px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mini-list { display: grid; gap: 6px; font-size: 12px; }
.mrow { display: grid; grid-template-columns: 52px 1fr auto auto; gap: 8px; align-items: center; font-family: var(--mono); }
.mrow .up { color: var(--up); } .mrow .down { color: var(--down); }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.burnv { color: var(--burn); }
.trade .seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: #0b0b0e; box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 14px; }
.trade .seg button { height: 36px; font-size: 13px; text-transform: capitalize; }
.trade .seg button.on.buy { background: rgba(20, 241, 149, 0.14); color: var(--up); }
.trade .seg button.on.sell { background: rgba(255, 93, 110, 0.14); color: var(--down); }
.amt { display: flex; align-items: center; gap: 8px; margin-top: 6px; padding: 0 12px; height: 48px; border-radius: 12px; background: #0d0d10; box-shadow: inset 0 0 0 1px var(--line2); }
.amt:focus-within { box-shadow: inset 0 0 0 1px rgba(20, 241, 149, 0.6); }
.amt input { flex: 1; min-width: 0; border: 0; background: none; color: var(--text); font: 700 20px var(--mono); outline: none; }
.amt span { font: 600 13px var(--mono); color: var(--muted); }
.quick { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.quick button { background: var(--panel2); box-shadow: inset 0 0 0 1px var(--line); color: #cfced8; }
.out { font-size: 20px; font-weight: 700; margin-top: 4px; }
.fee-row { font-size: 12px; color: var(--muted); margin-top: 4px; min-height: 16px; }
.fee-row .o { color: var(--burn); }
.trade-msg { font-size: 13px; margin: 10px 0 0; min-height: 18px; }
.trade-msg a, .trade a { color: var(--sol-b); }
.about p { color: #aaa9b4; font-size: 13px; line-height: 1.6; margin: 8px 0 12px; }
.kv { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; padding: 6px 0; border-top: 1px solid var(--line); }
.kv span:first-child { color: var(--muted); }
@media (max-width: 1100px) { .coin-grid { grid-template-columns: minmax(0, 1fr); } .coin-grid > aside { position: static; } }
@media (max-width: 600px) {
  .coin-head { align-items: flex-start; }
  .coin-art { width: 76px; height: 76px; }
  .coin-stats { grid-template-columns: 1fr 1fr; }
  .two { grid-template-columns: 1fr; }
  canvas.chart { height: 260px; }
}
.ts { margin-top: 14px; min-height: 65px; }
.notice { display: flex; align-items: center; gap: 10px; margin-top: 24px; padding: 12px 14px; border-radius: 12px; background: rgba(153, 69, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(153, 69, 255, 0.35); color: #d9ccff; font-size: 14px; }
.notice i { font-size: 18px; }

/* ---------- CA card (sidebar) ---------- */
.ca-card {
  margin-top: 6px; padding: 12px; border-radius: var(--r-card);
  background: linear-gradient(#141418, #141418) padding-box, var(--sol-grad) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 8px 28px rgba(153, 69, 255, 0.14);
}
.ca-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ca-top b { font-size: 15px; background: var(--sol-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ca-tag { font: 800 11px var(--mono); letter-spacing: 0.08em; padding: 3px 7px; border-radius: 6px; background: var(--sol-grad); color: #07070a; }
.ca-addr {
  display: block; width: 100%; text-align: left; cursor: pointer; border: 0; margin-bottom: 8px;
  padding: 8px 9px; border-radius: 8px; background: #0b0b0e; color: #e9e9ee;
  font-size: 12px; line-height: 1.45; word-break: break-all; box-shadow: inset 0 0 0 1px var(--line2);
}
.ca-copy { height: 38px; }
.ca-copy.done { background: #14f195; }
.ca-soon { font-size: 13px; color: #cfced8; line-height: 1.5; }
.ca-soon a { color: var(--sol-b); }
