/* Sigma AI — main stylesheet
   1. Theme  2. Base  3. App shell  4. Controls  5. Shared components
   6. Home  7. Explore  8. Jackpot  9. Analytics  10. Launch  11. Token
   12. Overlays  13. Responsive
   Motion lives in animations.css, single-purpose helpers in utilities.css. */

/* ---------- 1. Theme ---------- */
:root {
  color-scheme: dark;
  --bg: #0e0e10;
  --surface: #151517;
  --surface-2: #1a1a1d;
  --surface-3: #202024;
  --surface-4: #29292e;
  --line: #232327;
  --line-2: #2e2e33;
  --line-3: #3d3d43;
  --text: #ededef;
  --text-2: #a4a4ac;
  --text-3: #8a8a93;
  --text-4: #5b5b63;
  --accent: #e9e9ec;
  --accent-hover: #ffffff;
  --accent-ink: #0e0e10;
  --accent-soft: rgba(255, 255, 255, .06);
  --ring: rgba(236, 236, 239, .5);
  --pulse: 237, 237, 239;
  --up: #ededef;
  --down: #8f8f98;
  --danger: #f0a8a8;
  --overlay: rgba(6, 6, 8, .66);
  --topbar-bg: rgba(14, 14, 16, .8);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 12px 32px rgba(0, 0, 0, .38);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, .55);

  /* hero scene */
  --hero-1: #2c2c31;
  --hero-2: #18181b;
  --hero-3: #0c0c0e;
  --hero-line: rgba(255, 255, 255, .13);
  --hero-dot: rgba(255, 255, 255, .1);
  --hero-node: #f4f4f5;
  --hero-beam: rgba(255, 255, 255, .075);
  --hero-shade: 12, 12, 14;
  --coin-1: #45454c;
  --coin-2: #1b1b1f;
  --coin-edge: rgba(255, 255, 255, .22);
  --coin-ink: #f4f4f5;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --sidebar-w: 232px;
  --topbar-h: 64px;
  --page-max: 1200px;
  --gutter: 32px;
  --font: 'Geist', 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --glyph: 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(.2, .75, .25, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f4f5;
  --surface: #ffffff;
  --surface-2: #fafafa;
  --surface-3: #f1f1f3;
  --surface-4: #e6e6e9;
  --line: #e5e5e8;
  --line-2: #dadade;
  --line-3: #c6c6cc;
  --text: #17171a;
  --text-2: #52525b;
  --text-3: #686871;
  --text-4: #a1a1aa;
  --accent: #17171a;
  --accent-hover: #000000;
  --accent-ink: #fafafa;
  --accent-soft: rgba(0, 0, 0, .045);
  --ring: rgba(23, 23, 26, .4);
  --pulse: 23, 23, 26;
  --up: #17171a;
  --down: #71717a;
  --danger: #b42318;
  --overlay: rgba(24, 24, 27, .38);
  --topbar-bg: rgba(244, 244, 245, .82);
  --shadow-sm: 0 1px 2px rgba(16, 16, 20, .06);
  --shadow: 0 12px 32px rgba(16, 16, 20, .08);
  --shadow-lg: 0 24px 64px rgba(16, 16, 20, .16);

  --hero-1: #ffffff;
  --hero-2: #ededf0;
  --hero-3: #dcdce1;
  --hero-line: rgba(0, 0, 0, .13);
  --hero-dot: rgba(0, 0, 0, .09);
  --hero-node: #17171a;
  --hero-beam: rgba(255, 255, 255, .75);
  --hero-shade: 244, 244, 245;
  --coin-1: #ffffff;
  --coin-2: #cfcfd5;
  --coin-edge: rgba(0, 0, 0, .14);
  --coin-ink: #17171a;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 14px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.2; letter-spacing: -.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { display: block; }
table { border-spacing: 0; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
::selection { background: var(--text); color: var(--bg); }

.i {
  width: 18px; height: 18px; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
.glyph { font-family: var(--glyph); }

.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 300;
  padding: 10px 14px; border-radius: 10px;
  background: var(--accent); color: var(--accent-ink); font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- 3. App shell ---------- */
.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100dvh;
}

.sidebar {
  position: sticky; top: 0; z-index: 40;
  height: 100vh; height: 100dvh;
  display: flex; flex-direction: column;
  background: var(--bg);
  border-right: 1px solid var(--line);
  overflow-y: auto;
  scrollbar-width: none;
}
.sidebar::-webkit-scrollbar { display: none; }
.sb-head { display: flex; align-items: center; gap: 10px; padding: 18px 20px 26px; min-height: var(--topbar-h); }
.sb-nav { display: flex; flex-direction: column; gap: 2px; padding: 0 12px; }
.sb-link {
  display: flex; align-items: center; gap: 12px;
  height: 40px; padding: 0 12px; border-radius: 10px;
  color: var(--text-2); font-weight: 500;
  transition: background .15s, color .15s;
}
.sb-link:hover { background: var(--accent-soft); color: var(--text); }
.sb-link[aria-current="page"] { background: var(--surface-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.sb-link .live-dot { margin-left: auto; }
.sb-spacer { flex: 1; min-height: 20px; }

.sb-pot {
  display: grid; gap: 8px;
  margin: 0 12px 12px; padding: 12px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface);
  transition: border-color .2s, background .2s;
}
.sb-pot:hover { border-color: var(--line-3); background: var(--surface-2); }
.sb-pot-top { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--text-2); }
.sb-pot-label { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; }
.sb-pot-pct { font-family: var(--mono); font-size: 11.5px; color: var(--text-3); }
.sb-pot-val { font-family: var(--mono); font-size: 17px; font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.sb-pot-val small { font-size: 11px; color: var(--text-3); margin-left: 2px; }

.sb-foot { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 18px; border-top: 1px solid var(--line); }
.sb-mini {
  display: flex; align-items: center; gap: 10px;
  height: 34px; padding: 0 12px; border-radius: 8px;
  color: var(--text-3); font-size: 13px;
  transition: color .15s, background .15s;
}
.sb-mini .i { width: 16px; height: 16px; }
.sb-mini:hover { color: var(--text); background: var(--accent-soft); }

.nav-scrim { display: none; }

.app-main { min-width: 0; display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0; z-index: 30;
  height: var(--topbar-h);
  display: flex; align-items: center; gap: 12px;
  padding: 0 var(--gutter);
  background: var(--topbar-bg);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.demo-banner {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 7px var(--gutter);
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  color: var(--text-2); font-size: 12.5px; line-height: 1.4; text-align: center;
}
.demo-banner .i { width: 15px; height: 15px; color: var(--text-3); }
.demo-banner b { color: var(--text); font-weight: 600; }
.topbar .burger, .topbar .brand-top, .topbar .search-toggle, .topbar .search-close { display: none; }

.page {
  flex: 1;
  width: 100%;
  max-width: calc(var(--page-max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 28px var(--gutter) 64px;
  outline: none;
}

/* Brand */
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -.02em; }
.logo-mark { width: 30px; height: 30px; }
.logo-bg { fill: var(--accent); }
.logo-ink { stroke: var(--accent-ink); }
.brand-name b { font-weight: 600; color: var(--text-3); margin-left: 4px; }
.demo-tag {
  font-size: 9.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: 2px 6px; border-radius: 5px;
  border: 1px dashed var(--line-3); color: var(--text-3);
  cursor: help;
}

/* Search */
.search { position: relative; width: min(440px, 100%); }
.search-field {
  display: flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 8px 0 12px;
  border: 1px solid var(--line-2); border-radius: 10px;
  background: var(--surface);
  color: var(--text-3);
  cursor: text;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.search-field:focus-within { border-color: var(--line-3); background: var(--surface-2); box-shadow: 0 0 0 3px var(--accent-soft); }
.search-field input { flex: 1; min-width: 0; width: 100%; height: 100%; border: 0; outline: 0; background: none; color: var(--text); }
.search-field input::placeholder { color: var(--text-3); }
.kbd {
  display: inline-grid; place-items: center;
  min-width: 22px; height: 22px; padding: 0 6px;
  font: 500 11px/1 var(--mono); color: var(--text-3);
  border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px;
  background: var(--surface-2);
}
.search-pop {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 60;
  padding: 6px;
  max-height: min(440px, 70vh); overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line-2); border-radius: 14px;
  box-shadow: var(--shadow-lg);
}
.search-pop[hidden] { display: none; }
.sr-group { padding: 8px 10px 6px; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.sr-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; }
.sr-item .art { width: 30px; height: 30px; border-radius: 8px; }
.sr-item[aria-selected="true"] { background: var(--surface-3); }
.sr-name { font-weight: 500; }
.sr-name mark { background: none; color: inherit; text-decoration: underline; text-decoration-color: var(--text-3); text-underline-offset: 3px; }
.sr-ticker { display: block; font: 12px var(--mono); color: var(--text-3); }
.sr-mc { margin-left: auto; font: 12px var(--mono); color: var(--text-2); }
.sr-empty { padding: 18px 12px 14px; color: var(--text-2); font-size: 13px; }
.sr-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 4px; padding: 10px 10px 6px;
  border-top: 1px solid var(--line);
  font-size: 12px; color: var(--text-3);
}
.sr-foot a { color: var(--text-2); display: inline-flex; align-items: center; gap: 4px; }
.sr-foot a:hover { color: var(--text); }

/* Wallet */
.wallet { position: relative; }
.wallet-chip { padding: 0 12px 0 6px; gap: 9px; }
.wallet-chip .idn { width: 28px; height: 28px; border-radius: 7px; }
.wallet-chip .mono { font-size: 13px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.ft-in {
  width: 100%; max-width: calc(var(--page-max) + 2 * var(--gutter));
  margin: 0 auto; padding: 22px var(--gutter) 28px;
  display: flex; align-items: center; flex-wrap: wrap; gap: 14px 20px;
  font-size: 12.5px; color: var(--text-3);
}
.ft-in .brand { font-size: 15px; color: var(--text); }
.ft-in .logo-mark { width: 24px; height: 24px; }
.ft-links { margin-left: auto; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.ft-links a:hover { color: var(--text); }
.ft-legal { flex-basis: 100%; font-size: 12px; line-height: 1.6; color: var(--text-3); }

/* Page loader (first visit of a session) */
.loader { display: none; }
.first-visit .loader {
  position: fixed; inset: 0; z-index: 400;
  display: grid; place-items: center;
  background: var(--bg);
}
.loader.is-done { opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility 0s .4s; }
.loader-inner { display: grid; justify-items: center; gap: 20px; }
.loader-mark { width: 52px; height: 52px; }
.loader-bar { width: 148px; height: 3px; border-radius: 99px; background: var(--surface-4); overflow: hidden; }
.loader-bar span { display: block; height: 100%; background: var(--text); border-radius: inherit; transform-origin: left; }

/* ---------- 4. Controls ---------- */
.btn {
  --h: 40px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 16px;
  border: 1px solid transparent; border-radius: 10px;
  font-size: 13.5px; font-weight: 600; white-space: nowrap;
  cursor: pointer; user-select: none;
  transition: background .15s, border-color .15s, color .15s, box-shadow .2s, transform .15s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn .i { width: 16px; height: 16px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 6px 22px rgba(0, 0, 0, .18); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-outline { background: var(--surface); border-color: var(--line-2); color: var(--text); }
.btn-outline:hover { background: var(--surface-3); border-color: var(--line-3); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--accent-soft); color: var(--text); }
.btn-sm { --h: 32px; padding: 0 12px; font-size: 12.5px; border-radius: 8px; }
.btn-lg { --h: 48px; padding: 0 22px; font-size: 14.5px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; box-shadow: none; }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translate(2px, -2px); }
.btn.is-loading { pointer-events: none; }
.btn .spin-sm { width: 14px; height: 14px; border-width: 2px; }

.icon-btn {
  width: 40px; height: 40px; flex-shrink: 0;
  display: inline-grid; place-items: center;
  border: 1px solid var(--line-2); border-radius: 10px;
  background: var(--surface); color: var(--text-2);
  transition: color .15s, background .15s, border-color .15s, transform .15s var(--ease);
}
.icon-btn:hover { color: var(--text); background: var(--surface-3); }
.icon-btn:active { transform: scale(.94); }
.icon-btn.sm { width: 32px; height: 32px; border-radius: 8px; }
.icon-btn.sm .i { width: 16px; height: 16px; }
.icon-btn.bare { border-color: transparent; background: none; }
.icon-btn.bare:hover { background: var(--accent-soft); }

.link-quiet { display: inline-flex; align-items: center; gap: 4px; color: var(--text-2); font-size: 13px; transition: color .15s; }
button.link-quiet { padding: 0; border: 0; background: none; }
.link-quiet .i { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.link-quiet:hover { color: var(--text); }
.link-quiet:hover .i { transform: translateX(2px); }
.link-quiet:hover .i.arrow { transform: translate(2px, -2px); }

.segmented {
  position: relative;
  display: inline-flex; gap: 2px; padding: 3px;
  border: 1px solid var(--line-2); border-radius: 11px;
  background: var(--surface);
}
.segmented button {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 30px; padding: 0 12px;
  border: 0; border-radius: 8px; background: none;
  color: var(--text-3); font-size: 13px; font-weight: 500; white-space: nowrap;
  transition: color .2s;
}
.segmented button:hover { color: var(--text-2); }
.segmented button[aria-selected="true"] { color: var(--text); }
.segmented:not(.has-ind) button[aria-selected="true"] { background: var(--surface-4); }
.seg-ind {
  position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 0;
  border-radius: 8px;
  background: var(--surface-4);
  box-shadow: inset 0 0 0 1px var(--line-3);
  transition: transform .35s var(--ease), width .35s var(--ease);
}
.soon { font-size: 10px; font-weight: 600; padding: 1px 5px; border-radius: 4px; background: var(--surface-3); color: var(--text-3); }

.field {
  display: flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 12px;
  border: 1px solid var(--line-2); border-radius: 10px;
  background: var(--surface); color: var(--text-3);
  transition: border-color .15s, box-shadow .15s;
}
.field:focus-within { border-color: var(--line-3); box-shadow: 0 0 0 3px var(--accent-soft); }
.field input { flex: 1; min-width: 0; width: 100%; height: 100%; border: 0; outline: 0; background: none; color: var(--text); }
.field input::placeholder { color: var(--text-3); }
.field .i { width: 16px; height: 16px; }

.select { position: relative; display: inline-flex; }
.select select {
  appearance: none; -webkit-appearance: none;
  height: 38px; padding: 0 36px 0 12px;
  border: 1px solid var(--line-2); border-radius: 10px;
  background: var(--surface); color: var(--text);
  cursor: pointer;
}
.select select:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.select option { background: var(--surface); color: var(--text); }
.select .i { position: absolute; right: 11px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); pointer-events: none; color: var(--text-3); }

/* ---------- 5. Shared components ---------- */
.card { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.card-pad { padding: 20px; }
.section { margin-top: 40px; }
.section-head { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 14px; margin-bottom: 14px; }
.section-head h2 { font-size: 20px; letter-spacing: -.025em; }
.section-head p { color: var(--text-2); font-size: 13px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px 24px; margin-bottom: 24px; }
.page-head h1 { font-size: clamp(26px, 3.2vw, 34px); letter-spacing: -.035em; }
.page-head p { margin-top: 8px; max-width: 62ch; color: var(--text-2); font-size: 14.5px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  height: 22px; padding: 0 8px;
  border: 1px solid var(--line-2); border-radius: 6px;
  background: var(--surface-3); color: var(--text-2);
  font-size: 11.5px; font-weight: 500; white-space: nowrap;
}
.badge .i { width: 12px; height: 12px; stroke-width: 2.2; }
.badge-solid { background: var(--accent); border-color: transparent; color: var(--accent-ink); }

.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text); flex-shrink: 0; }

.bar { position: relative; height: 6px; border-radius: 99px; background: var(--surface-4); overflow: hidden; }
.bar > span {
  position: absolute; inset: 0 auto 0 0;
  width: var(--p, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--text-3), var(--text));
  transition: width .9s var(--ease);
}
.bar-thin { height: 4px; }

.art { display: block; overflow: hidden; border-radius: 10px; background: var(--surface-3); flex-shrink: 0; }
.art svg, .art img { width: 100%; height: 100%; object-fit: cover; }
.idn { display: block; overflow: hidden; border-radius: 8px; flex-shrink: 0; }
.idn svg { width: 100%; height: 100%; }

.up { color: var(--up); }
.down { color: var(--down); }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th {
  padding: 10px 16px; text-align: left; white-space: nowrap;
  font-size: 12px; font-weight: 500; color: var(--text-3);
  border-bottom: 1px solid var(--line);
}
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: var(--surface-2); }
.table .num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.who { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 12.5px; }
.who .idn { width: 24px; height: 24px; border-radius: 6px; }

/* Token card */
.token-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.token-card {
  position: relative;
  display: flex; flex-direction: column; gap: 14px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px;
  transition: border-color .2s, background .2s, box-shadow .25s, transform .25s var(--ease);
}
.token-card:hover { border-color: var(--line-3); background: var(--surface-2); box-shadow: var(--shadow); transform: translateY(-2px); }
.tc-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tc-top .art { width: 52px; height: 52px; border-radius: 12px; transition: transform .35s var(--ease); }
.token-card:hover .tc-top .art { transform: scale(1.05) rotate(-2deg); }
.tc-id { flex: 1; min-width: 0; }
.tc-name { display: flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 600; }
.tc-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-name .i { width: 14px; height: 14px; color: var(--text-2); stroke-width: 2; }
.tc-sub { display: flex; gap: 8px; margin-top: 2px; font: 12px var(--mono); color: var(--text-3); }
.tc-change { align-self: flex-start; font: 500 12.5px var(--mono); }
.tc-stats { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--text-3); }
.tc-stats b { color: var(--text); font-family: var(--mono); font-weight: 500; margin-left: 4px; }
.tc-pot { display: grid; gap: 7px; }

/* Skeleton card */
.sk-card { display: flex; flex-direction: column; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.sk-row { display: flex; align-items: center; gap: 12px; }

/* Winners */
.winners { padding: 6px; }
.win-row { display: flex; align-items: center; gap: 11px; padding: 10px; border-radius: 10px; transition: background .15s; }
.win-row:hover { background: var(--surface-2); }
.win-row + .win-row { margin-top: 2px; }
.win-row .idn { width: 34px; height: 34px; border-radius: 9px; }
.win-addr { font: 13px var(--mono); }
.win-meta { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 12px; color: var(--text-3); }
.win-amt { margin-left: auto; text-align: right; font: 500 13px var(--mono); }
.win-amt small { display: block; margin-top: 2px; font: 11.5px var(--font); color: var(--text-3); }
.rank {
  display: inline-grid; place-items: center;
  width: 18px; height: 18px; border-radius: 5px;
  background: var(--surface-4); color: var(--text-2);
  font: 600 10.5px var(--mono);
}

/* Empty state */
.empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 36px 20px; text-align: center; }
.empty-ic { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; background: var(--surface-3); border: 1px solid var(--line-2); color: var(--text-2); }
.empty h3 { font-size: 15px; letter-spacing: -.01em; }
.empty p { max-width: 38ch; color: var(--text-2); font-size: 13px; }
.empty .btn, .empty .link-quiet { margin-top: 4px; }
.token-grid > .empty { grid-column: 1 / -1; border: 1px dashed var(--line-2); border-radius: 14px; }

/* Charts */
.chart { position: relative; height: 220px; }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.chart .grid-line { stroke: var(--line); stroke-dasharray: 2 4; }
.chart .axis { fill: var(--text-3); font: 10.5px var(--mono); }
.chart .line { fill: none; stroke: var(--text); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.chart .area-top { stop-color: var(--text); stop-opacity: .16; }
.chart .area-bottom { stop-color: var(--text); stop-opacity: 0; }
.chart .bar-rect { fill: var(--surface-4); transition: fill .15s; }
.chart .bar-rect.is-hot { fill: var(--text-2); }
.chart .cursor { stroke: var(--line-3); stroke-dasharray: 3 3; }
.chart .dot { fill: var(--text); stroke: var(--surface); stroke-width: 2.5; }
.chart-tip {
  position: absolute; left: 0; top: 0; z-index: 2;
  padding: 7px 10px; border-radius: 9px;
  background: var(--surface-4); border: 1px solid var(--line-3);
  box-shadow: var(--shadow);
  font: 500 12.5px var(--mono); white-space: nowrap;
  pointer-events: none; opacity: 0;
  transform: translate(-50%, calc(-100% - 12px));
  transition: opacity .12s;
}
.chart-tip.show { opacity: 1; }
.chart-tip small { display: block; font: 11px var(--font); color: var(--text-3); }

/* ---------- 6. Home ---------- */
.pot-hero {
  position: relative; isolation: isolate;
  display: grid; place-items: center;
  min-height: 430px; overflow: hidden;
  background: var(--hero-3);
  border: 1px solid var(--line-2); border-radius: 18px;
}
.pot-hero.compact { min-height: 360px; }
.pot-art { position: absolute; inset: 0; z-index: -2; }
.pot-art svg { width: 100%; height: 100%; }
.pot-shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 40% 44% at 50% 50%, rgba(var(--hero-shade), .74), transparent 72%),
    linear-gradient(180deg, rgba(var(--hero-shade), 0) 45%, rgba(var(--hero-shade), .88) 100%);
}
.ps-s1 { stop-color: var(--hero-1); }
.ps-s2 { stop-color: var(--hero-2); }
.ps-s3 { stop-color: var(--hero-3); }
.ps-dot { fill: var(--hero-dot); }
.ps-beam-a { stop-color: var(--hero-beam); }
.ps-beam-b { stop-color: var(--hero-beam); stop-opacity: 0; }
.ps-ring { fill: none; stroke: var(--hero-line); stroke-width: 1.2; }
.ps-ring-dash { stroke-dasharray: 3 14; stroke-width: 1.6; }
.ps-node { fill: var(--hero-node); }
.ps-coin-1 { stop-color: var(--coin-1); }
.ps-coin-2 { stop-color: var(--coin-2); }
.ps-coin-edge { fill: none; stroke: var(--coin-edge); stroke-width: 1.5; }
.ps-coin-ink { fill: var(--coin-ink); font-family: var(--glyph); font-weight: 600; }
.ps-layer { transition: transform .6s var(--ease); }

.pot-center { position: relative; display: flex; flex-direction: column; align-items: center; padding: 44px 20px; text-align: center; }
.pot-label { display: inline-flex; align-items: center; gap: 9px; font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--text-2); }
.pot-amount { position: relative; display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.pot-value {
  font-size: clamp(50px, 7.6vw, 82px); font-weight: 600;
  line-height: 1; letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
  display: inline-block;
}
.unit-chip {
  padding: 4px 8px; border-radius: 7px;
  border: 1px solid var(--line-3); background: var(--accent-soft);
  font: 500 12px var(--mono); letter-spacing: .04em; color: var(--text-2);
}
.pot-delta { position: absolute; right: -6px; top: -18px; font: 500 12px var(--mono); color: var(--text-2); pointer-events: none; opacity: 0; }
.pot-divider { width: min(320px, 70%); height: 1px; margin: 22px 0 12px; background: linear-gradient(90deg, transparent, var(--line-3) 30%, var(--line-3) 70%, transparent); }
.pot-target { font-size: 12.5px; color: var(--text-2); }
.pot-target strong { color: var(--text); font-weight: 600; }
.pot-progress { width: min(260px, 70%); margin-top: 12px; }
.pot-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 26px; }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.feature-card {
  position: relative;
  display: flex; flex-direction: column;
  height: 236px; overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: 16px;
  transition: border-color .2s, box-shadow .25s, transform .25s var(--ease);
}
.feature-card:hover { border-color: var(--line-3); box-shadow: var(--shadow); transform: translateY(-2px); }
.feature-scene { position: relative; flex: 1; overflow: hidden; }
.feature-label {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px 14px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  font-size: 14px; font-weight: 600;
}
.feature-label small { display: block; margin-top: 1px; font-size: 12px; font-weight: 400; color: var(--text-3); }
.arrow-chip {
  width: 30px; height: 30px; flex-shrink: 0;
  display: grid; place-items: center;
  border: 1px solid var(--line-2); border-radius: 9px;
  color: var(--text-2);
  transition: background .2s, color .2s, border-color .2s;
}
.arrow-chip .i { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.feature-card:hover .arrow-chip { background: var(--accent); border-color: transparent; color: var(--accent-ink); }
.feature-card:hover .arrow-chip .i { transform: translate(1px, -1px); }

/* Explore scene: drifting token lanes */
.scene-explore {
  background: radial-gradient(120% 90% at 50% 0%, var(--surface-3), var(--surface) 70%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 86%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 86%, transparent 100%);
}
.lanes { position: absolute; top: -40%; bottom: -40%; left: -12%; right: -12%; display: flex; justify-content: center; gap: 10px; transform: rotate(-9deg); }
.lane { display: flex; flex-direction: column; gap: 10px; width: 108px; flex-shrink: 0; }
.lane-tile { padding: 6px 6px 8px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: 0 6px 16px rgba(0, 0, 0, .22); }
.lane-tile .art { width: 100%; height: auto; aspect-ratio: 1; border-radius: 7px; }
.lane-tile b { display: block; margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 600; }
.lane-tile small { display: block; font: 10px var(--mono); color: var(--text-3); }

/* Draw scene: wallet reel */
.scene-draw { background: radial-gradient(90% 80% at 50% 35%, var(--surface-3), var(--surface) 72%); }
.reel {
  position: absolute; left: 0; right: 0; top: 30px; height: 104px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
}
.reel-track { position: absolute; left: 0; top: 10px; display: flex; gap: 8px; will-change: transform; }
.reel-tile {
  width: 70px; height: 84px; flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  border-radius: 11px;
  background: var(--surface-2); border: 1px solid var(--line-2);
  transition: transform .4s var(--spring), border-color .3s, background .3s, box-shadow .3s;
}
.reel-tile .idn { width: 36px; height: 36px; border-radius: 9px; }
.reel-tile small { font: 9.5px var(--mono); color: var(--text-3); }
.reel-tile.is-win { transform: scale(1.1); border-color: var(--text-2); background: var(--surface-4); box-shadow: 0 0 0 4px var(--accent-soft), 0 12px 28px rgba(0, 0, 0, .35); }
.reel-tile.is-win small { color: var(--text); }
.reel-pointer {
  position: absolute; left: 50%; top: 22px; z-index: 2;
  width: 0; height: 0; transform: translateX(-50%);
  border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 8px solid var(--text);
}
.reel-result {
  position: absolute; left: 50%; bottom: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 99px;
  background: var(--accent); color: var(--accent-ink);
  font-size: 11.5px; font-weight: 600; white-space: nowrap;
  opacity: 0; transform: translate(-50%, 8px) scale(.94);
  transition: opacity .3s, transform .45s var(--spring);
}
.reel-result .i { width: 13px; height: 13px; stroke-width: 2.2; }
.reel-result.show { opacity: 1; transform: translate(-50%, 0) scale(1); }

/* Launch scene: floating form sheet */
.scene-launch { display: grid; place-items: center; background: radial-gradient(90% 80% at 62% 28%, var(--surface-3), var(--surface) 72%); }
.orbit { position: absolute; left: 50%; top: 50%; width: 250px; height: 250px; margin: -125px 0 0 -125px; border-radius: 50%; border: 1px solid var(--line-2); }
.orbit::before { content: ""; position: absolute; inset: 34px; border-radius: 50%; border: 1px dashed var(--line-2); }
.orbit::after { content: ""; position: absolute; top: -4px; left: calc(50% - 4px); width: 8px; height: 8px; border-radius: 50%; background: var(--text); box-shadow: 0 0 14px var(--text-3); }
.sheet {
  position: relative;
  width: 212px; padding: 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--surface-3), var(--surface-2));
  border: 1px solid var(--line-3);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .3);
  transform: rotate(-4deg);
}
.sheet-head { display: flex; align-items: center; gap: 9px; padding-bottom: 9px; border-bottom: 1px solid var(--line-2); }
.sheet-avatar { position: relative; width: 32px; height: 32px; border-radius: 8px; border: 1px dashed var(--line-3); overflow: hidden; flex-shrink: 0; }
.sheet-avatar .art { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; }
.sheet small { display: block; font-size: 9.5px; color: var(--text-3); line-height: 1.3; }
.sheet-title { display: block; height: 17px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.sheet-check {
  margin-left: auto; width: 20px; height: 20px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 50%; background: var(--accent); color: var(--accent-ink);
}
.sheet-check .i { width: 12px; height: 12px; stroke-width: 3; }
.sheet-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.sheet-row .val { display: inline-flex; align-items: center; height: 16px; font: 11.5px var(--mono); }
.typed { display: inline-block; overflow: hidden; white-space: nowrap; width: calc(var(--n, 6) * 1ch); }
.caret { display: inline-block; width: 1.5px; height: 12px; margin-left: 1px; background: currentColor; visibility: hidden; }
.sheet-progress { height: 4px; margin-top: 10px; border-radius: 99px; background: var(--surface-4); overflow: hidden; }
.sheet-progress span { display: block; height: 100%; border-radius: inherit; background: var(--text); transform-origin: left; }

/* Market */
.market { display: grid; grid-template-columns: minmax(0, 1fr) 312px; gap: 24px; align-items: start; margin-top: 36px; }
.market-aside { display: grid; gap: 12px; }
.market .section-head .link-quiet { margin-left: auto; }
.cta-card { display: grid; gap: 10px; padding: 18px; background: radial-gradient(120% 120% at 100% 0%, var(--surface-3), var(--surface) 70%); }
.cta-card h3 { font-size: 15px; }
.cta-card p { font-size: 13px; color: var(--text-2); }
.cta-card .btn { justify-self: start; margin-top: 4px; }

/* ---------- 7. Explore ---------- */
.scroller-wrap { position: relative; }
.scroller { display: flex; gap: 10px; overflow-x: auto; padding: 2px; scroll-snap-type: x proximity; scrollbar-width: none; overscroll-behavior-x: contain; }
.scroller::-webkit-scrollbar { display: none; }
.trend-chip {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 8px;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px;
  scroll-snap-align: start;
  transition: border-color .2s, background .2s;
}
.trend-chip:hover { border-color: var(--line-3); background: var(--surface-2); }
.trend-chip .art { width: 38px; height: 38px; border-radius: 9px; }
.trend-chip b { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; }
.trend-chip small { display: block; font: 11.5px var(--mono); color: var(--text-3); white-space: nowrap; }
.trend-no { font: 500 11px var(--mono); color: var(--text-3); width: 16px; text-align: center; }
.toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.toolbar .field { flex: 1 1 220px; max-width: 340px; }
.toolbar .select { margin-left: auto; }
.result-count { margin-bottom: 12px; font-size: 12.5px; color: var(--text-3); }
.load-more { display: flex; justify-content: center; margin-top: 20px; }

/* ---------- 8. Jackpot ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pot-type { display: grid; gap: 14px; padding: 20px; }
.pot-type header { display: flex; align-items: center; gap: 12px; }
.pot-type h3 { font-size: 16px; }
.pot-type p { color: var(--text-2); font-size: 13px; }
.ic-box { width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center; border-radius: 11px; background: var(--surface-3); border: 1px solid var(--line-2); color: var(--text); }
.ic-box.glyph { font-size: 19px; font-weight: 600; }
.kv { margin: 0; }
.kv > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13px; }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; text-align: right; font-weight: 500; }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.step { position: relative; padding: 18px; }
.step-no { font: 500 12px var(--mono); color: var(--text-3); }
.step .ic-box { margin-top: 14px; }
.step h3 { margin: 14px 0 6px; font-size: 15px; }
.step p { color: var(--text-2); font-size: 13px; }

.prize-list { display: grid; gap: 14px; }
.prize-row { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; gap: 12px; font-size: 13px; }
.prize-row .bar { height: 8px; }
.prize-row .amt { font-family: var(--mono); font-size: 12.5px; color: var(--text-2); text-align: right; }
.fine { font-size: 12px; color: var(--text-3); line-height: 1.6; }

.bullets { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.bullets li { position: relative; padding-left: 20px; color: var(--text-2); font-size: 13px; }
.bullets li::before { content: ""; position: absolute; left: 4px; top: 8px; width: 6px; height: 6px; border-radius: 2px; background: var(--text-3); }
.bullets b { color: var(--text); font-weight: 600; }

.draw-stage { position: relative; height: 150px; margin: 4px -20px 0; overflow: hidden; }
.draw-stage .reel { top: 26px; height: 112px; }
.draw-stage .reel-pointer { top: 18px; }
.draw-results { display: grid; gap: 6px; margin-top: 8px; min-height: 132px; }
.draw-result { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; }
.draw-result .idn { width: 26px; height: 26px; border-radius: 7px; }
.draw-result .mono { font-size: 12.5px; }
.draw-result .amt { margin-left: auto; font-family: var(--mono); }
.draw-placeholder { display: flex; align-items: center; justify-content: center; height: 42px; border: 1px dashed var(--line-2); border-radius: 10px; color: var(--text-3); font-size: 12.5px; }

/* ---------- 9. Analytics ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpi { padding: 16px 18px; }
.kpi small { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-3); }
.kpi small .i { width: 15px; height: 15px; }
.kpi b { display: block; margin-top: 10px; font-size: 26px; font-weight: 600; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.kpi b .unit { margin-left: 5px; font: 500 12px var(--mono); letter-spacing: 0; color: var(--text-3); }
.kpi p { margin-top: 6px; font-size: 12px; color: var(--text-3); }
.chart-card { padding: 18px 18px 10px; }
.chart-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.chart-head h3 { font-size: 14px; }
.chart-head .total { font: 12.5px var(--mono); color: var(--text-2); }
.split { display: flex; gap: 3px; height: 12px; border-radius: 99px; overflow: hidden; }
.split span { display: block; background: var(--text); transition: flex-grow .6s var(--ease); }
.split span + span { background: var(--text-3); }
.split span + span + span { background: var(--surface-4); }
.legend { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 14px; font-size: 13px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); }
.legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--text); }
.legend span + span i { background: var(--text-3); }
.legend b { color: var(--text); font-family: var(--mono); font-weight: 500; }
.contract-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; padding: 14px 18px; border-top: 1px solid var(--line); font-size: 13px; }
.contract-row:first-child { border-top: 0; }
.contract-row .name { min-width: 160px; font-weight: 500; }
.contract-row .addr { font: 12.5px var(--mono); color: var(--text-2); }
.contract-row .actions { margin-left: auto; display: flex; gap: 6px; }

/* ---------- 10. Launch ---------- */
.launch-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.launch-side { position: sticky; top: calc(var(--topbar-h) + 20px); display: grid; gap: 12px; }
.form { padding: 4px 22px 22px; }
.fieldset { display: grid; gap: 14px; margin: 0; padding: 20px 0; border: 0; border-bottom: 1px solid var(--line); min-width: 0; }
.legend-title { display: flex; align-items: baseline; gap: 8px; padding: 0; font-size: 14px; font-weight: 600; }
.legend-title small { font-size: 12px; font-weight: 400; color: var(--text-3); }
.form-row { display: grid; gap: 7px; min-width: 0; }
.form-row.two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.label { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 12.5px; font-weight: 500; color: var(--text-2); }
.label .opt, .label .count { font-weight: 400; color: var(--text-3); }
.label .count { font: 11.5px var(--mono); }
.input, .textarea {
  width: 100%; height: 42px; padding: 0 12px;
  border: 1px solid var(--line-2); border-radius: 10px;
  background: var(--surface-2); color: var(--text);
  outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.textarea { height: auto; min-height: 96px; padding: 10px 12px; line-height: 1.5; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:focus, .textarea:focus { border-color: var(--line-3); background: var(--surface); box-shadow: 0 0 0 3px var(--accent-soft); }
.input-wrap { position: relative; }
.input-wrap .input { padding-left: 28px; }
.input-wrap .pre { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-family: var(--mono); color: var(--text-3); pointer-events: none; }
.input-wrap .suf { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font: 12px var(--mono); color: var(--text-3); pointer-events: none; }
.input-wrap.has-suf .input { padding-left: 12px; padding-right: 52px; }
.input.mono { font-family: var(--mono); }
[aria-invalid="true"] { border-color: var(--danger) !important; }
.hint { font-size: 12px; color: var(--text-3); }
.error { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--danger); }
.error .i { width: 14px; height: 14px; }
.error:empty { display: none; }

.dropzone {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  padding: 14px;
  border: 1.5px dashed var(--line-3); border-radius: 12px;
  background: var(--surface-2);
  transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.is-drag { border-color: var(--text-3); background: var(--surface-3); }
.dropzone:focus-within { box-shadow: 0 0 0 3px var(--accent-soft); border-color: var(--text-3); }
.dropzone input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.dz-thumb { width: 64px; height: 64px; flex-shrink: 0; display: grid; place-items: center; overflow: hidden; border-radius: 12px; background: var(--surface-4); color: var(--text-3); }
.dz-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dz-text b { display: block; font-size: 13.5px; font-weight: 600; }
.dz-text span { font-size: 12px; color: var(--text-3); }
.dz-clear { position: relative; z-index: 1; margin-left: auto; }

.form-foot { display: grid; gap: 12px; padding-top: 20px; }
.summary { display: grid; gap: 8px; }
.summary-line { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--text-2); }
.summary-line b { font-family: var(--mono); font-weight: 500; color: var(--text); text-align: right; }
.side-title { padding: 14px 16px 0; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.preview-slot { padding: 12px; }
.preview-slot .token-card { pointer-events: none; }

.success { display: grid; justify-items: center; gap: 12px; padding: 10px 0 4px; text-align: center; }
.success .art { width: 84px; height: 84px; border-radius: 20px; }
.success h3 { font-size: 18px; }
.success p { color: var(--text-2); font-size: 13px; max-width: 34ch; }
.confirming { display: grid; justify-items: center; gap: 14px; padding: 18px 0 8px; text-align: center; }
.confirming p { color: var(--text-2); font-size: 13px; }

/* ---------- 11. Token ---------- */
.crumbs { display: flex; align-items: center; gap: 6px; margin-bottom: 18px; font-size: 13px; color: var(--text-3); }
.crumbs a:hover { color: var(--text); }
.crumbs .i { width: 14px; height: 14px; }
.token-head { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.token-head > .art { width: 68px; height: 68px; border-radius: 18px; }
.token-head h1 { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 26px; letter-spacing: -.03em; }
.ticker-pill { padding: 3px 8px; border: 1px solid var(--line-2); border-radius: 7px; font: 500 13px var(--mono); letter-spacing: 0; color: var(--text-2); }
.token-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin-top: 8px; font-size: 12.5px; color: var(--text-3); }
.addr-btn {
  display: inline-flex; align-items: center; gap: 7px;
  height: 26px; padding: 0 9px;
  border: 1px solid var(--line-2); border-radius: 7px;
  background: var(--surface); color: var(--text-2);
  font: 12px var(--mono);
  transition: color .15s, background .15s;
}
.addr-btn .i { width: 13px; height: 13px; }
.addr-btn:hover { color: var(--text); background: var(--surface-3); }
.head-actions { margin-left: auto; display: flex; gap: 8px; }
.stat-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 22px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.stat { padding: 14px 16px; border-left: 1px solid var(--line); min-width: 0; }
.stat:first-child { border-left: 0; }
.stat small { font-size: 12px; color: var(--text-3); }
.stat b { display: block; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 17px var(--mono); letter-spacing: -.02em; }
.stat b .sub { margin-left: 6px; font-size: 12px; font-weight: 500; }
.token-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; margin-top: 16px; }
.token-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }
.token-side { position: sticky; top: calc(var(--topbar-h) + 16px); display: grid; gap: 12px; }
.card-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 16px 18px 0; }
.card-head h2 { font-size: 15px; }
.price-now { display: flex; align-items: baseline; gap: 10px; padding: 8px 18px 0; }
.price-now b { font: 600 24px var(--mono); letter-spacing: -.03em; }
.price-now span { font: 500 13px var(--mono); }
.chart-pad { padding: 8px 18px 12px; }
.trade { display: grid; gap: 14px; padding: 16px; }
.trade .segmented { display: flex; }
.trade .segmented button { flex: 1; }
.amount-field {
  display: flex; align-items: center; gap: 10px;
  height: 54px; padding: 0 12px 0 14px;
  border: 1px solid var(--line-2); border-radius: 12px;
  background: var(--surface-2);
  transition: border-color .15s, box-shadow .15s;
}
.amount-field:focus-within { border-color: var(--line-3); box-shadow: 0 0 0 3px var(--accent-soft); }
.amount-field input { flex: 1; min-width: 0; width: 100%; border: 0; outline: 0; background: none; font: 500 20px var(--mono); color: var(--text); }
.trade > * { min-width: 0; }
.amount-field input::placeholder { color: var(--text-4); }
.amount-field .cur { padding: 4px 8px; border-radius: 7px; background: var(--surface-4); font: 500 12px var(--mono); color: var(--text-2); }
.quick { display: flex; gap: 6px; }
.quick button {
  flex: 1; height: 30px;
  border: 1px solid var(--line-2); border-radius: 8px;
  background: var(--surface); color: var(--text-2);
  font: 12px var(--mono);
  transition: color .15s, background .15s;
}
.quick button:hover { color: var(--text); background: var(--surface-3); }
.est { display: grid; gap: 6px; font-size: 12.5px; color: var(--text-3); }
.est div { display: flex; justify-content: space-between; gap: 10px; }
.est b { font-family: var(--mono); font-weight: 500; color: var(--text); }
.about { padding: 18px; display: grid; gap: 12px; }
.about p { color: var(--text-2); font-size: 13.5px; }
.links { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- 12. Overlays ---------- */
.modal-root { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; background: var(--overlay); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal {
  position: relative;
  width: min(440px, 100%);
  max-height: calc(100dvh - 32px); overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line-2); border-radius: 18px;
  box-shadow: var(--shadow-lg);
}
.modal.lg { width: min(620px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 14px 0 20px; }
.modal-head h2 { font-size: 16px; }
.modal-body { padding: 14px 20px 20px; }
.modal-root.is-locked .modal-head [data-close] { visibility: hidden; }

.wallet-list { display: grid; gap: 8px; }
.wallet-opt {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 12px; text-align: left;
  border: 1px solid var(--line-2); border-radius: 12px;
  background: var(--surface-2);
  transition: border-color .15s, background .15s;
}
.wallet-opt:hover:not([disabled]) { border-color: var(--line-3); background: var(--surface-3); }
.wallet-opt[disabled] { opacity: .55; cursor: not-allowed; }
.wallet-opt img, .wallet-ic { width: 34px; height: 34px; flex-shrink: 0; border-radius: 9px; }
.wallet-ic { display: grid; place-items: center; background: var(--surface-4); color: var(--text-2); }
.wallet-opt b { display: block; font-size: 14px; font-weight: 600; }
.wallet-opt small { font-size: 12px; color: var(--text-3); }
.wallet-opt > .i { margin-left: auto; color: var(--text-3); }

.menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 70;
  min-width: 232px; padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line-2); border-radius: 14px;
  box-shadow: var(--shadow-lg);
}
.menu[hidden] { display: none; }
.menu-head { display: flex; align-items: center; gap: 10px; padding: 8px 10px 12px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.menu-head .idn { width: 32px; height: 32px; }
.menu-head small { display: block; font-size: 11.5px; color: var(--text-3); }
.menu-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%; height: 36px; padding: 0 10px;
  border: 0; border-radius: 8px; background: none;
  color: var(--text-2); font-size: 13px; text-align: left;
}
.menu-item .i { width: 16px; height: 16px; }
.menu-item:hover, .menu-item:focus-visible { background: var(--surface-3); color: var(--text); outline: none; }

.toasts {
  position: fixed; right: 16px; bottom: 16px; z-index: 120;
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
  width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: flex; align-items: flex-start; gap: 10px;
  width: 100%; padding: 12px 10px 12px 14px;
  background: var(--surface-3);
  border: 1px solid var(--line-3); border-radius: 12px;
  box-shadow: var(--shadow-lg);
  font-size: 13px;
}
.toast > .i { margin-top: 1px; color: var(--text-2); }
.toast b { display: block; font-weight: 600; }
.toast p { margin-top: 2px; font-size: 12.5px; color: var(--text-2); }
.toast .icon-btn { margin: -4px 0 -4px auto; }

.confetti { position: fixed; inset: 0; z-index: 150; overflow: hidden; pointer-events: none; }
.confetti i { position: absolute; top: -16px; left: var(--x); width: var(--w); height: var(--h); border-radius: 2px; background: var(--c); }

.spinner { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--surface-4); border-top-color: var(--text); }

/* ---------- 13. Responsive ---------- */
@media (max-width: 1180px) {
  .market { grid-template-columns: minmax(0, 1fr); }
  .market-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .launch-layout, .token-layout { grid-template-columns: minmax(0, 1fr); }
  .launch-side, .token-side { position: static; }
  .launch-side { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .token-side { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}

@media (max-width: 1023px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; z-index: 90;
    width: min(290px, 86vw); height: 100%;
    transform: translateX(-100%); visibility: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform .3s var(--ease), visibility 0s .3s;
  }
  .nav-open .sidebar { transform: none; visibility: visible; transition: transform .3s var(--ease); }
  .nav-scrim {
    display: block; position: fixed; inset: 0; z-index: 80;
    background: var(--overlay);
    opacity: 0; pointer-events: none;
    transition: opacity .3s;
  }
  .nav-open .nav-scrim { opacity: 1; pointer-events: auto; }
  .topbar .burger { display: inline-grid; }
  .topbar .brand-top { display: inline-flex; }
  .brand-top .brand-name { display: none; }
  .topbar { gap: 10px; }
}

@media (max-width: 760px) {
  :root { --gutter: 16px; --topbar-h: 60px; }
  .page { padding-top: 18px; }
  .topbar .search { display: none; }
  .topbar .search-toggle { display: inline-grid; }
  .topbar.is-searching .search {
    display: block; position: absolute; left: 12px; right: 12px; top: 10px;
    width: auto; z-index: 5;
  }
  .topbar.is-searching .search-field { padding-right: 4px; }
  .topbar.is-searching .search-close { display: inline-grid; }
  .topbar.is-searching .search-field .kbd { display: none; }
  .btn-create { display: none; }
  .features { grid-template-columns: minmax(0, 1fr); }
  .feature-card { height: 216px; }
  .pot-hero { min-height: 380px; border-radius: 16px; }
  .pot-hero.compact { min-height: 330px; }
  .grid-2, .market-aside, .launch-side, .token-side { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .token-grid { grid-template-columns: minmax(0, 1fr); }
  .form { padding: 0 16px 18px; }
  .form-row.two { grid-template-columns: minmax(0, 1fr); }
  .toolbar .field { max-width: none; }
  .toolbar .select { margin-left: 0; }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { border-left: 0; border-top: 1px solid var(--line); }
  .stat:nth-child(-n+2) { border-top: 0; }
  .stat:nth-child(even) { border-left: 1px solid var(--line); }
  .stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .head-actions { margin-left: 0; width: 100%; }
  .contract-row .actions { margin-left: 0; }
  .ft-links { margin-left: 0; }
}

@media (max-width: 420px) {
  .wallet .btn-primary span { display: none; }
  .wallet .btn-primary { width: 40px; padding: 0; }
  .kpis { grid-template-columns: minmax(0, 1fr); }
  .pot-value { font-size: 46px; }
}
