/* Troupe. Light, airy, glassy. Every loop animates transform or opacity only, and stops with reduced motion.
   No backdrop-filter: panels stay smooth on machines without a GPU. */

:root {
  --text: #292c45;
  --text-2: rgba(41, 44, 69, 0.64);
  --text-3: rgba(41, 44, 69, 0.48);
  --line: rgba(41, 44, 69, 0.09);
  --white: #fff;
  --blue: #71dbf1;
  --shell: #14b8df;
  --light: #e8faff;
  --field: #eefbff;
  --up: #0a9a6e;
  --down: #c2410c;
  --warn: #b45309;
  --glass: rgba(255, 255, 255, 0.8);
  --glass-strong: rgba(255, 255, 255, 0.92);
  --shadow: 0 24px 64px -24px rgba(20, 120, 160, 0.28);
  --shadow-sm: 0 10px 30px -14px rgba(20, 120, 160, 0.3);
  --r-panel: 32px;
  --r-card: 22px;
  --r-field: 14px;
  --header-h: 60px;
  --edge: 20px;
  --container: 1360px;
  --gutter: max(var(--edge), calc((100vw - var(--container)) / 2));
  --top: calc(var(--header-h) + var(--edge) * 2);
  --font: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --panel-padding: clamp(18px, 2.4vw, 32px);
  --lead: clamp(200px, min(28vw, 48vh), 520px);
  --focus-x: calc(var(--gutter) + (100vw - 2 * var(--gutter)) * 0.66);
  --focus-y: 52%;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.modal-open { overflow: hidden; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: linear-gradient(180deg, #dff6fd 0%, #eefbff 38%, #f8fdff 70%, #ffffff 100%) fixed;
  background-color: #eefbff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; }
:focus-visible { outline: 2px solid var(--shell); outline-offset: 2px; border-radius: 8px; }
::selection { background: rgba(113, 219, 241, 0.45); }

[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.muted { color: var(--text-2); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.mono { font-family: var(--mono); font-size: 0.94em; letter-spacing: -0.01em; }
.break { word-break: break-all; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; min-width: 0; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.good { color: var(--up); }
.bad { color: var(--down); }
.warn { color: var(--warn); }
.bad:empty, .warn:empty { display: none; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.row-wrap { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.divider { height: 1px; background: var(--line); margin: 18px 0; }
.link { color: var(--shell); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0; }
.link:hover { text-decoration: underline; }
.noscript { padding: 120px 24px; text-align: center; }

/* ------------------------------------------------------------------ background scene */

#bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.scene { position: absolute; left: var(--focus-x); top: var(--focus-y); width: 0; height: 0; transition: left 0.6s ease, top 0.6s ease; }
.rings { position: absolute; left: 0; top: 0; width: calc(var(--lead) * 6.4); height: calc(var(--lead) * 6.4); max-width: none; transform: translate(-50%, -50%); }
.ring { fill: rgba(255, 255, 255, 0.24); stroke: rgba(255, 255, 255, 0.85); stroke-width: 1.5; }
.ring-0 { fill: rgba(255, 255, 255, 0.12); }
.ring-1 { fill: rgba(255, 255, 255, 0.16); }
.ring-2 { fill: rgba(232, 250, 255, 0.4); }
.ring-3 { fill: rgba(220, 246, 255, 0.5); stroke: rgba(255, 255, 255, 0.95); }
.ring-4 { fill: rgba(255, 255, 255, 0.55); stroke: #fff; stroke-width: 2; }

.blob {
  position: absolute;
  width: calc(var(--s) * var(--lead));
  height: calc(var(--s) * var(--lead));
  left: calc(var(--x) * var(--lead) - var(--s) * var(--lead) / 2);
  top: calc(var(--y) * var(--lead) - var(--s) * var(--lead) / 2);
}
.blob-float { width: 100%; height: 100%; animation: float var(--d, 10s) ease-in-out infinite alternate; animation-delay: calc(var(--i, 0) * -1.3s); }
.blob-lead .blob-float { animation-name: float-lead; }
.blob-svg { width: 100%; height: 100%; overflow: visible; }
.blob-eyes { transform: translate(calc(var(--px, 0) * 7px), calc(var(--py, 0) * 6px)); transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.3, 1); }
.blob-blink { transform-box: fill-box; transform-origin: center; animation: blink 6.3s infinite; animation-delay: var(--blink-delay, 0s); }
.blob-label {
  position: absolute; left: 50%; top: calc(100% + 6px); transform: translateX(-50%);
  white-space: nowrap; font-size: 12px; font-weight: 500; color: var(--text-2);
  background: rgba(255, 255, 255, 0.78); border-radius: 999px; padding: 3px 10px; box-shadow: var(--shadow-sm);
  opacity: 0; transition: opacity 0.4s ease;
}
body[data-scene='home'] .blob-label { opacity: 1; }
.blob-lead .blob-label { top: calc(100% - 4px); font-size: 13px; }
#bg.paused * { animation-play-state: paused !important; }

@keyframes float {
  from { transform: translate3d(0, -5%, 0) rotate(-3deg); }
  to { transform: translate3d(0, 6%, 0) rotate(3deg); }
}
@keyframes float-lead {
  from { transform: translate3d(0, -1.6%, 0) scale(1); }
  to { transform: translate3d(0, 1.6%, 0) scale(1.02); }
}
@keyframes blink {
  0%, 93%, 100% { transform: scaleY(1); }
  95% { transform: scaleY(0.08); }
  97% { transform: scaleY(1); }
}

/* first visit: the troupe pops in one by one */
html:not(.intro-seen) .blob { animation: pop 0.9s cubic-bezier(0.2, 0.9, 0.3, 1.25) both; animation-delay: calc(var(--i, 0) * 110ms + 150ms); }
html:not(.intro-seen) .rings { animation: fade 1.2s ease both; }
@keyframes pop { from { opacity: 0; scale: 0.4; } to { opacity: 1; scale: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* on inner pages the troupe gathers at the top right, smaller and softer */
body[data-scene='page'] { --lead: clamp(150px, 17vw, 300px); --focus-x: calc(100vw - var(--gutter) - var(--lead) * 0.9); --focus-y: calc(var(--top) + var(--lead) * 0.55); }
body[data-scene='page'] .blob-small { opacity: 0.85; transition: opacity 0.5s ease; }
body[data-scene='page'] .blob[data-agent='social'], body[data-scene='page'] .blob[data-agent='content'], body[data-scene='page'] .blob[data-agent='creative'] { opacity: 0; }

/* ------------------------------------------------------------------ header */

#site { position: relative; z-index: 1; min-height: 100vh; }
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 30; padding: var(--edge) var(--gutter) 0; pointer-events: none; }
.header-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.header-bar > *, .header .menu { pointer-events: auto; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.island {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--header-h); border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.9);
  background: var(--glass-strong); box-shadow: var(--shadow-sm); padding: 0 20px; font-weight: 600; font-size: 14px; white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.island:hover { transform: translateY(-1px); }
.island:active { transform: translateY(0) scale(0.98); }
.logo { padding: 0 20px 0 14px; font-size: 17px; letter-spacing: -0.01em; }
.logo-mark { width: 30px; height: 30px; background: url('/favicon.svg') center / contain no-repeat; }
.icon-btn { width: var(--header-h); padding: 0; }
.icon-btn.small { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 18px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.btn-buy { color: #fff; background: linear-gradient(180deg, #3fd3f3 0%, #14b8df 100%); border-color: rgba(255, 255, 255, 0.5); box-shadow: 0 12px 28px -12px rgba(20, 184, 223, 0.8); }
.btn-buy.soon { opacity: 0.92; cursor: default; }
.soon-tag { font-size: 11px; background: rgba(255, 255, 255, 0.28); border-radius: 999px; padding: 2px 7px; }
.btn-wallet { color: #fff; background: #292c45; border-color: #292c45; }
.btn-wallet.connected { background: #fff; color: var(--text); border-color: rgba(255, 255, 255, 0.9); }
.btn-wallet .dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2); }
.btn-wallet .bal { color: var(--text-2); font-weight: 500; }

.menu {
  position: absolute; right: var(--gutter); top: calc(var(--edge) + var(--header-h) + 10px);
  min-width: 220px; padding: 8px; border-radius: 22px; background: #fff; box-shadow: var(--shadow); border: 1px solid var(--line);
  display: flex; flex-direction: column; animation: drop 0.18s ease both;
}
.menu[hidden] { display: none; }
.menu a, .menu button { display: block; text-align: left; padding: 10px 14px; border-radius: 12px; font-weight: 500; background: none; border: 0; }
.menu a:hover, .menu button:hover { background: var(--light); }
.menu a.minor { font-size: 13px; color: var(--text-2); padding: 7px 14px; }
.menu hr { border: 0; height: 1px; background: var(--line); margin: 6px 8px; }
.menu .danger { color: var(--down); }
.wallet-pop { right: calc(var(--gutter) + var(--header-h) + 10px); }
.wallet-pop-head { display: flex; flex-direction: column; padding: 8px 14px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------ buttons, pills, chips */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: 14.5px; white-space: nowrap;
  transition: transform 0.16s ease, background-color 0.16s ease, opacity 0.16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-dark { background: #292c45; color: #fff; box-shadow: 0 14px 30px -16px rgba(41, 44, 69, 0.8); }
.btn-ghost { background: rgba(255, 255, 255, 0.6); border-color: rgba(41, 44, 69, 0.1); color: var(--text); }
.btn-ghost:hover { background: #fff; }
.btn-x { background: #0f1115; color: #fff; }
.btn-x .x-handle { color: rgba(255, 255, 255, 0.6); font-weight: 500; }
.btn-block { width: 100%; }
.btn-lg { height: 54px; font-size: 16px; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn .arrow { transition: transform 0.18s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px;
  background: var(--light); color: var(--text); font-size: 12.5px; font-weight: 500; white-space: nowrap;
}
.pill.tiny { height: 22px; padding: 0 9px; font-size: 11.5px; }
.pill-active { background: rgba(10, 154, 110, 0.1); color: var(--up); }
.pill-link:hover { background: #d6f5ff; }
.pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--shell); }
.pill-live { background: #fff; border: 1px solid var(--line); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--shell); position: relative; }
.live-dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; background: var(--shell); opacity: 0.35; animation: ping 2s ease-out infinite; }
.pill-active .live-dot, .pill-active .live-dot::after { background: var(--up); }
@keyframes ping { from { transform: scale(0.4); opacity: 0.5; } to { transform: scale(1.6); opacity: 0; } }
.st-failed { background: rgba(194, 65, 12, 0.1); color: var(--down); }
.st-partial, .st-running { background: rgba(180, 83, 9, 0.1); color: var(--warn); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip {
  height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(41, 44, 69, 0.1); background: #fff;
  font-size: 13.5px; font-weight: 500; transition: background-color 0.15s ease, border-color 0.15s ease;
}
.chip:hover { border-color: var(--blue); }
.chip.on { background: #292c45; border-color: #292c45; color: #fff; }
.chip:disabled { opacity: 0.4; cursor: not-allowed; }
a.chip { display: inline-flex; align-items: center; height: 30px; font-size: 12.5px; }

.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(232, 250, 255, 0.9); }
.seg button { height: 34px; padding: 0 14px; border-radius: 999px; border: 0; background: transparent; font-size: 13.5px; font-weight: 500; color: var(--text-2); }
.seg button.on { background: #fff; color: var(--text); box-shadow: var(--shadow-sm); }

.copy-btn { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 12px; font-weight: 600; }
.copy-btn.done { background: rgba(10, 154, 110, 0.1); color: var(--up); border-color: transparent; }
.tx-link { color: var(--shell); font-weight: 600; display: inline-flex; gap: 3px; align-items: center; }
.tx-link:hover { text-decoration: underline; }
.tx-link .ext { font-size: 0.8em; }
.sig-row { display: inline-flex; flex-wrap: wrap; gap: 10px; }

.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(20, 184, 223, 0.25); border-top-color: var(--shell); display: inline-block; animation: spin 0.8s linear infinite; vertical-align: -3px; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.progress { height: 8px; border-radius: 999px; background: rgba(20, 184, 223, 0.12); overflow: hidden; }
.progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #71dbf1, #14b8df); transform-origin: left; transition: transform 0.6s ease; }

.avatar { position: relative; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; overflow: hidden; flex: none; background: linear-gradient(135deg, #c9f2fd, #e8faff); }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar-letter { font-weight: 700; color: var(--shell); font-size: 0.9em; }
.mini-blob { display: inline-block; flex: none; }
.mini-blob .blob-svg { width: 100%; height: 100%; }

.chg { font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums; }
.chg.up { color: var(--up); }
.chg.down { color: var(--down); }
.chg.flat { color: var(--text-3); }

/* ------------------------------------------------------------------ panels and pages */

.panel { border-radius: var(--r-panel); padding: var(--panel-padding); }
.glass { background: var(--glass); border: 1px solid rgba(255, 255, 255, 0.85); box-shadow: var(--shadow); }
.kicker { font-size: 12.5px; font-weight: 500; color: var(--text-2); margin-bottom: 4px; }
main { outline: none; }
main.page-in > * { animation: page-in 0.35s ease both; }
@keyframes page-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.page { padding: var(--top) var(--gutter) 32px; display: flex; flex-direction: column; gap: 18px; }
.page.narrow { max-width: calc(860px + 2 * var(--gutter)); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 8px 0 6px; max-width: min(760px, 100%); }
.page-head + * { margin-top: 4px; }
.page-title { font-size: clamp(32px, 4vw, 52px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; margin-top: 2px; }
.page-sub { color: var(--text-2); margin-top: 10px; max-width: 620px; font-size: 16px; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.two-col.wide-left { grid-template-columns: 1.4fr 1fr; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.page-foot { display: flex; gap: 8px; padding-top: 18px; }
.page-foot a { font-size: 13px; color: var(--text-2); padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.6); }
.page-foot a:hover { background: #fff; color: var(--text); }
.loading-block { display: flex; align-items: center; gap: 10px; padding: 24px; }
.error-block { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.empty, .empty-inline { text-align: center; padding: 40px 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty h3 { font-size: 22px; }
.empty p { color: var(--text-2); max-width: 420px; }
.empty-blob { width: 74px; height: 70px; border-radius: 40% 40% 44% 44%; background: radial-gradient(circle at 50% 46%, #14b8df 0 40%, #71dbf1 64%, #e8faff 92%); display: flex; align-items: center; justify-content: center; gap: 9px; box-shadow: 0 16px 40px -12px rgba(20, 184, 223, 0.7); margin-bottom: 6px; }
.empty-blob i { width: 11px; height: 17px; border-radius: 50%; background: #f6fcff; animation: blink 5s infinite; }

/* ------------------------------------------------------------------ home */

.hero {
  min-height: 100svh; padding: calc(var(--top) + 2vh) var(--gutter) 22px;
  display: flex; flex-direction: column; gap: 22px;
}
.hero-copy { max-width: min(730px, 100%); display: flex; flex-direction: column; gap: 18px; }
.hero-title { max-width: 620px; font-size: clamp(38px, 4.7vw, 68px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.02; display: flex; flex-direction: column; }
.hero-title .line { display: block; }
html:not(.intro-seen) .hero-title .line { animation: rise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both; animation-delay: calc(var(--n) * 120ms + 100ms); }
@keyframes rise { from { opacity: 0; transform: translateY(40%); } to { opacity: 1; transform: none; } }
.hero-sub { font-size: clamp(15px, 1.25vw, 17px); color: var(--text-2); max-width: 470px; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }

.ca-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch; margin-top: 4px; }
.x-slot { display: flex; }
.x-slot[hidden] { display: none; }
.x-slot .btn { height: auto; min-height: 58px; border-radius: 20px; }
.ca-box {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; gap: 12px;
  flex: 1 1 400px; min-width: 0; max-width: 520px; min-height: 58px; padding: 9px 9px 9px 18px; border-radius: 20px;
  box-shadow: var(--shadow-sm);
}
.ca-box::before { content: ''; position: absolute; inset: 2px; border-radius: 18px; background: rgba(255, 255, 255, 0.95); z-index: -1; }
.ca-light { position: absolute; inset: 0; z-index: -2; overflow: hidden; border-radius: inherit; background: rgba(113, 219, 241, 0.4); }
.ca-light::before {
  content: ''; position: absolute; left: 50%; top: 50%; width: 140%; aspect-ratio: 1; margin-left: -70%; margin-top: -70%;
  background: conic-gradient(from 0deg, transparent 0 62%, #71dbf1 74%, #7c3aed 82%, #db2777 88%, transparent 94%);
  animation: spin 4.5s linear infinite;
}
.ca-box.just-live .ca-light::before { animation-duration: 1.1s; }
.ca-inner { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ca-label { font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--shell); }
.ca-value { font-size: 13px; font-weight: 500; word-break: break-all; line-height: 1.35; }
.ca-value.soon { font-family: var(--font); font-size: 16px; font-weight: 600; color: var(--text); display: inline-flex; align-items: baseline; }
.dots { display: inline-flex; gap: 3px; margin-left: 4px; }
.dots i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; animation: dot 1.2s ease-in-out infinite; }
.dots i:nth-child(2) { animation-delay: 0.2s; }
.dots i:nth-child(3) { animation-delay: 0.4s; }
@keyframes dot { 0%, 100% { opacity: 0.2; } 50% { opacity: 1; } }
.ca-copy {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 13px; border-radius: 14px; border: 0;
  background: linear-gradient(180deg, #3fd3f3, #14b8df); color: #fff; font-weight: 600; font-size: 13.5px;
}
.ca-copy:disabled { background: var(--light); color: var(--text-3); cursor: default; }
.ca-copy.done { background: var(--up); }
.burst { position: absolute; left: 80%; top: 50%; width: 8px; height: 8px; border-radius: 50%; pointer-events: none; animation: burst 0.7s ease-out forwards; }
@keyframes burst { from { transform: translate(0, 0) scale(1); opacity: 1; } to { transform: translate(var(--tx), var(--ty)) scale(0.2); opacity: 0; } }

.live-coins { width: min(380px, 100%); padding: 18px 14px 12px 18px; border-radius: 26px; margin-top: auto; }
.live-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding-right: 4px; margin-bottom: 10px; }
.live-head h2 { font-size: 17px; }
.live-list { max-height: 188px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; padding-right: 4px; overscroll-behavior: contain; scrollbar-width: thin; }
.live-row { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 14px; }
.live-row:hover { background: rgba(232, 250, 255, 0.9); }
.live-name { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.live-empty { padding: 16px 8px; display: flex; flex-direction: column; gap: 6px; }
.pad { padding: 10px 8px; }
.skeleton .sk-dot { width: 34px; height: 34px; border-radius: 50%; background: var(--light); }
.skeleton .sk-line { height: 12px; border-radius: 6px; background: var(--light); grid-column: span 3; width: 60%; }
.home-foot { display: flex; gap: 8px; }
.chip-row { display: flex; gap: 8px; }
.home-foot .chip { display: inline-flex; align-items: center; height: 30px; font-size: 12.5px; background: rgba(255, 255, 255, 0.7); }

/* ------------------------------------------------------------------ coins */

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 10px; border-radius: 26px; }
.search-wrap { flex: 1 1 240px; min-width: 0; }
.field.search { height: 42px; border-radius: 999px; padding-left: 18px; }
.count-line { padding: 0 6px; }
.coin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.coin-card { display: flex; flex-direction: column; gap: 14px; border-radius: var(--r-card); padding: 18px; transition: transform 0.18s ease; }
.coin-card:hover { transform: translateY(-3px); }
.coin-card-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; }
.coin-card-name { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.coin-card-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.coin-card-progress { display: flex; flex-direction: column; gap: 6px; }
.coin-card-team { display: flex; gap: 8px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stat-label { font-size: 12px; color: var(--text-2); }
.stat-value { font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.more-btn { align-self: center; }

/* ------------------------------------------------------------------ tables, leaderboard */

.table-wrap { overflow-x: auto; padding: 8px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-weight: 500; color: var(--text-2); font-size: 12.5px; padding: 10px 12px; white-space: nowrap; }
.table td { padding: 10px 12px; border-top: 1px solid var(--line); white-space: nowrap; font-variant-numeric: tabular-nums; }
.table .num { text-align: right; }
.table tbody tr { transition: background-color 0.15s ease; }
.table tbody tr[tabindex] { cursor: pointer; }
.table tbody tr:hover { background: rgba(232, 250, 255, 0.7); }
.table tr.failed td { color: var(--text-3); }
.table-coin { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.table-coin > span { display: flex; flex-direction: column; line-height: 1.2; max-width: 200px; }
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.podium:empty { display: none; }
.podium-card { display: flex; flex-direction: column; gap: 10px; border-radius: var(--r-card); position: relative; transition: transform 0.18s ease; }
.podium-card:hover { transform: translateY(-3px); }
.podium-card .pill { align-self: flex-start; }
.rank-badge { position: absolute; right: 18px; top: 16px; font-weight: 700; font-size: 22px; color: var(--shell); }
.podium-coin { display: flex; align-items: center; gap: 12px; min-width: 0; }
.podium-coin > div { min-width: 0; display: flex; flex-direction: column; }
.podium-mcap { font-size: 30px; font-weight: 600; letter-spacing: -0.03em; }

/* ------------------------------------------------------------------ milestones */

.levels { display: flex; gap: 6px; flex-wrap: wrap; justify-content: space-between; border-radius: 26px; padding: 16px 20px; }
.level { display: flex; flex-direction: column; align-items: center; gap: 2px; flex: 1 1 80px; }
.level-dot { width: 12px; height: 12px; border-radius: 50%; background: linear-gradient(180deg, #71dbf1, #14b8df); opacity: calc(1 - var(--i) * 0.1); margin-bottom: 4px; }
.ms-list { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.ms-row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 8px; border-radius: 14px; }
.ms-row:hover { background: rgba(232, 250, 255, 0.8); }
.ms-name { min-width: 0; display: flex; flex-direction: column; }
.ms-level { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }

/* ------------------------------------------------------------------ coin page */

.coin-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.coin-main, .coin-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.coin-side { position: sticky; top: var(--top); }
.coin-head { display: flex; flex-direction: column; gap: 14px; }
.coin-id { display: flex; align-items: center; gap: 14px; min-width: 0; }
.coin-id > div { min-width: 0; }
.coin-symbol { font-size: 30px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.coin-mcap { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.coin-mcap .big { font-size: clamp(40px, 5vw, 56px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.coin-tags { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ca-chip { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 4px 0 12px; background: #fff; border-radius: 999px; font-size: 12.5px; border: 1px solid var(--line); }
.ca-chip .copy-btn { height: 24px; padding: 0 8px; border: 0; background: var(--light); }
.stat-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.stat-tiles.three { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 14px; }
.stat-tiles .stat { background: rgba(255, 255, 255, 0.85); border-radius: 16px; padding: 12px 14px; border: 1px solid rgba(255, 255, 255, 0.9); }
.team-bars { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.bar-card { background: rgba(232, 250, 255, 0.85); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.agent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.agent-chip { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; background: rgba(255, 255, 255, 0.88); border: 1px solid rgba(255, 255, 255, 0.9); min-width: 0; }
.agent-chip > div { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.docs-agents .agent-chip { align-items: flex-start; }
.site-link { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 12px 14px; border-radius: 16px; background: rgba(37, 99, 235, 0.07); }
.site-link:hover { background: rgba(37, 99, 235, 0.12); }
.site-link > span:nth-child(2) { flex: 1; }
.chart-meta { margin-bottom: 8px; }
.chart-wrap { position: relative; height: 200px; border-radius: 16px; background: rgba(255, 255, 255, 0.6); overflow: hidden; touch-action: pan-y; }
.chart { width: 100%; height: 100%; }
.chart.up { color: var(--up); }
.chart.down { color: var(--down); }
.chart-line { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.chart-dot { fill: #fff; stroke: currentColor; stroke-width: 2; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.post { margin: 0; border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; }
.post-media { position: relative; aspect-ratio: 1; background: var(--light); }
.post-media img, .post-media video { width: 100%; height: 100%; object-fit: cover; }
.post.meme img { cursor: zoom-in; }
.post-kind { position: absolute; left: 10px; top: 10px; font-size: 11px; font-weight: 600; background: rgba(255, 255, 255, 0.9); padding: 3px 8px; border-radius: 999px; pointer-events: none; }
.post figcaption { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; }
.lightbox-img { width: 100%; border-radius: 16px; }
.lightbox-cap { margin-top: 12px; }
.coin-info { display: flex; flex-direction: column; gap: 12px; }
.coin-desc { white-space: pre-line; overflow-wrap: anywhere; }
.link-row { display: flex; flex-wrap: wrap; gap: 6px; }
.split { display: flex; flex-direction: column; gap: 4px; }

.trade { display: flex; flex-direction: column; gap: 12px; }
.seg-trade { display: grid; grid-template-columns: 1fr 1fr; border-radius: 16px; }
.seg-trade button { border-radius: 12px; height: 40px; font-weight: 600; }
.seg-trade button.on.buy { background: var(--up); color: #fff; }
.seg-trade button.on.sell { background: var(--down); color: #fff; }
.bal-line { margin-top: -4px; }
.quote-line:empty, .trade-status:empty { display: none; }

/* ------------------------------------------------------------------ forms */

.field {
  width: 100%; min-width: 0; height: 46px; padding: 0 14px; border-radius: var(--r-field); border: 1px solid rgba(41, 44, 69, 0.1);
  background: var(--field); outline: none; transition: border-color 0.15s ease, background-color 0.15s ease;
}
textarea.field { height: auto; padding: 12px 14px; resize: vertical; min-height: 96px; }
.field:focus { border-color: var(--shell); background: #fff; }
.field-sm { width: 110px; flex: none; }
.field-row { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-label { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13px; font-weight: 600; }
.count { font-weight: 400; color: var(--text-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.field-wrap { position: relative; display: flex; align-items: center; }
.field-wrap .field { padding-right: 84px; }
.field-wrap.prefix .field { padding-left: 30px; padding-right: 14px; text-transform: uppercase; }
.field-prefix { position: absolute; left: 14px; color: var(--text-2); font-weight: 600; pointer-events: none; }
.field-unit { position: absolute; right: 14px; color: var(--text-2); font-weight: 600; font-size: 13px; pointer-events: none; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--shell); }
.range { width: 100%; accent-color: var(--shell); height: 28px; }

.launch-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 18px; align-items: start; }
.launch-form { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.launch-side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: var(--top); }
.form-section, .vanity, .upgrade-card { display: flex; flex-direction: column; gap: 14px; }
.upgrade-card { background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(220, 246, 255, 0.9)); }
.upgrade-card .btn { align-self: flex-start; }
.vanity-out:empty { display: none; }
.vanity-found { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 16px; background: rgba(10, 154, 110, 0.08); align-items: flex-start; }
.btn.running { background: var(--down); }

.drop {
  display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: center; padding: 14px; border-radius: 20px;
  border: 1.5px dashed rgba(20, 184, 223, 0.45); background: rgba(232, 250, 255, 0.6); cursor: pointer; transition: background-color 0.15s ease, border-color 0.15s ease;
}
.drop.over { background: #fff; border-color: var(--shell); }
.drop-preview { width: 112px; height: 112px; border-radius: 18px; overflow: hidden; background: #fff; display: flex; align-items: center; justify-content: center; }
.drop-preview img { width: 100%; height: 100%; object-fit: cover; }
.drop-icon { font-size: 28px; color: var(--shell); }
.drop-msg { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }

.style-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.style-card { display: flex; flex-direction: column; gap: 6px; text-align: left; padding: 12px; border-radius: 18px; border: 1.5px solid rgba(41, 44, 69, 0.08); background: #fff; transition: border-color 0.15s ease, transform 0.15s ease; }
.style-card:hover { transform: translateY(-2px); }
.style-card.on { border-color: var(--shell); box-shadow: 0 0 0 3px rgba(20, 184, 223, 0.15); }
.style-swatch { height: 54px; border-radius: 12px; }
.st-soft3d .style-swatch { background: radial-gradient(circle at 40% 35%, #fff 0 8%, #71dbf1 30%, #14b8df 60%, #bdefff 100%); }
.st-minimal .style-swatch { background: linear-gradient(#f97316, #f97316) center / 26px 26px no-repeat, #fff1e6; }
.st-handdrawn .style-swatch { background: repeating-linear-gradient(-35deg, transparent 0 7px, rgba(41, 44, 69, 0.35) 7px 8px), #fffdf6; }
.st-cinematic .style-swatch { background: linear-gradient(180deg, #0f172a, #334155 55%, #f59e0b 56%, #7c2d12); }
.st-comic .style-swatch { background: radial-gradient(circle, #292c45 1.5px, transparent 2px) 0 0 / 8px 8px, #facc15; border: 2px solid #292c45; }

.redirects { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.redirect-row { display: grid; grid-template-columns: minmax(0, 1fr) 110px auto; gap: 8px; align-items: center; width: 100%; }
.pct-wrap { position: relative; display: flex; align-items: center; }
.pct-wrap .field { width: 100%; padding-right: 30px; }

.what-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.what-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 16px; background: rgba(255, 255, 255, 0.85); }
.flow { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.flow li::marker { color: var(--shell); font-weight: 700; }
.preview-card { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 18px; background: #fff; margin-top: 10px; min-width: 0; }
.preview-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; overflow-wrap: anywhere; }
.ready { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 14px; }
.ready-row strong { font-weight: 600; text-align: right; }
.launch-side .panel { display: flex; flex-direction: column; gap: 8px; }
.launch-side .link { margin-top: 6px; justify-content: flex-start; text-align: left; }
.settings h3 { margin-bottom: 6px; }

/* ------------------------------------------------------------------ flywheel */

.next-round { font-size: 14px; color: var(--text-2); }
.countdown { color: var(--text); font-weight: 600; font-size: 16px; }
.score-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.score-tile { background: rgba(255, 255, 255, 0.86); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 2px; }
.score-value { font-size: clamp(24px, 2.6vw, 34px); font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.wheel-section { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.wheel-copy { display: flex; flex-direction: column; gap: 12px; }
.split-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.split-card { padding: 16px; border-radius: 20px; display: flex; flex-direction: column; gap: 4px; }
.split-card.burn { background: rgba(249, 115, 22, 0.09); }
.split-card.ai { background: rgba(20, 184, 223, 0.1); }
.split-pct { font-size: 32px; font-weight: 700; letter-spacing: -0.03em; }
.split-card.burn .split-pct { color: #ea580c; }
.split-card.ai .split-pct { color: var(--shell); }
.wheel { position: relative; width: min(420px, 100%); aspect-ratio: 1; margin: 0 auto; }
.wheel-ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.wheel-track { fill: none; stroke: rgba(20, 184, 223, 0.14); stroke-width: 14; }
.wheel-dash { fill: none; stroke: #71dbf1; stroke-width: 3; stroke-dasharray: 6 10; transform-origin: center; animation: spin 24s linear infinite; }
.wheel-center { position: absolute; inset: 30%; border-radius: 50%; background: #fff; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 10px; }
.wheel-pct { font-size: 34px; font-weight: 700; color: #ea580c; line-height: 1; }
.wheel-node { position: absolute; width: 132px; margin-left: -66px; margin-top: -30px; text-align: center; background: #fff; border-radius: 16px; padding: 8px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; font-size: 13px; }
.wheel-node.n0 { left: 50%; top: 11%; }
.wheel-node.n1 { left: 89%; top: 50%; }
.wheel-node.n2 { left: 50%; top: 89%; }
.wheel-node.n3 { left: 11%; top: 50%; }
.calc { display: flex; flex-direction: column; gap: 14px; }
.calc-label { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.calc-vol { font-size: 22px; }
.calc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.calc-tile { background: rgba(255, 255, 255, 0.86); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 2px; }
.calc-tile strong { font-size: 26px; letter-spacing: -0.02em; }
.calc-tile.burn strong { color: #ea580c; }
.calc-tile.ai strong { color: var(--shell); }
.steps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.steps.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.step { background: rgba(255, 255, 255, 0.86); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.step-n { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 999px; background: var(--light); color: var(--shell); font-weight: 700; font-size: 13px; align-self: flex-start; }
.step-n.big { min-width: 40px; height: 40px; font-size: 16px; }
.check-list { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 16px; }
.check-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.check-row > span:first-child { min-width: 140px; color: var(--text-2); }
.check-row a { color: var(--shell); font-weight: 600; }

/* ------------------------------------------------------------------ team */

.roster { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.roster-item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 8px 14px; border-radius: 22px; background: rgba(255, 255, 255, 0.7); border: 1.5px solid transparent; transition: transform 0.18s ease, border-color 0.18s ease; }
.roster-item:hover { transform: translateY(-3px); }
.roster-item.on { background: #fff; border-color: var(--shell); box-shadow: var(--shadow-sm); }
.roster-item .mini-blob { animation: float 6s ease-in-out infinite alternate; }
.agent-detail { display: flex; flex-direction: column; gap: 14px; }
.agent-detail-head { display: flex; gap: 18px; align-items: center; }
.agent-detail-head h2 { font-size: 30px; }
.recent-list { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; max-height: 520px; overflow-y: auto; }
.recent-row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: flex-start; padding: 8px; border-radius: 14px; }
.recent-row:hover { background: rgba(232, 250, 255, 0.8); }

/* ------------------------------------------------------------------ docs, prose */

.docs-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 18px; align-items: start; }
.docs-nav { position: sticky; top: var(--top); padding: 14px; border-radius: 24px; }
.docs-nav ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.docs-nav a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 12px; font-size: 14px; font-weight: 500; }
.docs-nav a:hover { background: var(--light); }
.docs-body { display: flex; flex-direction: column; gap: 14px; }
.doc-section { display: flex; flex-direction: column; gap: 12px; scroll-margin-top: calc(var(--top) + 10px); }
.doc-head { display: flex; align-items: center; gap: 12px; }
.prose { display: flex; flex-direction: column; gap: 10px; }
.prose h2 { font-size: 19px; margin-top: 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: rgba(41, 44, 69, 0.86); }

/* ------------------------------------------------------------------ modal, toast, wallet list */

.modal-backdrop {
  position: fixed; inset: 0; z-index: 60; background: rgba(41, 44, 69, 0.32); display: flex; align-items: center; justify-content: center;
  padding: 16px; opacity: 0; transition: opacity 0.18s ease;
}
.modal-backdrop.in { opacity: 1; }
.modal-panel {
  width: min(480px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; background: #fff; border-radius: 28px; padding: 22px;
  box-shadow: 0 40px 100px -30px rgba(20, 60, 90, 0.5); transform: translateY(10px) scale(0.98); transition: transform 0.2s ease; outline: none;
  display: flex; flex-direction: column; gap: 14px;
}
.modal-panel.wide { width: min(640px, 100%); }
.modal-backdrop.in .modal-panel { transform: none; }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.modal-close { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--light); font-size: 22px; line-height: 1; flex: none; }
.modal-close[hidden] { display: none; }
.modal-body { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.flow-modal { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.wallet-list { display: flex; flex-direction: column; gap: 8px; }
.wallet-row { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: #fff; text-align: left; font-weight: 600; }
.wallet-row:hover { border-color: var(--shell); }
.wallet-row:disabled { opacity: 0.7; }
.wallet-note { font-size: 12px; font-weight: 500; color: var(--text-2); }
.wallet-ico { width: 36px; height: 36px; border-radius: 10px; }
.wallet-ico.phantom { background: linear-gradient(135deg, #ab9ff2, #534bb1); }
.wallet-ico.solflare { background: linear-gradient(135deg, #fde047, #f97316); }
.wallet-ico.backpack { background: linear-gradient(135deg, #f87171, #dc2626); }
.pay-box { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 20px; background: var(--light); }
.pay-amount { display: flex; align-items: baseline; gap: 8px; }
.pay-amount .big { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
.pay-to { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.breakdown { margin: 0; display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--line); padding-top: 10px; }
.breakdown dd { margin: 0; font-variant-numeric: tabular-nums; }
.tracker { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.t-step { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: flex-start; padding: 8px 0; }
.t-dot { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--light); color: var(--text-3); font-size: 13px; font-weight: 700; }
.t-step.done .t-dot { background: var(--up); color: #fff; }
.t-step.bad .t-dot { background: var(--down); color: #fff; }
.t-step.todo { opacity: 0.55; }
.tracker-note:empty { display: none; }
.tracker-note { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.mine-list { display: flex; flex-direction: column; gap: 6px; }
.mine-row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 8px; border-radius: 14px; background: rgba(232, 250, 255, 0.6); }

#toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: #292c45; color: #fff; padding: 12px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; box-shadow: var(--shadow);
  transition: opacity 0.2s ease, transform 0.2s ease; max-width: calc(100vw - 32px); text-align: center;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.bad { background: var(--down); }

/* ------------------------------------------------------------------ responsive */

@media (max-width: 1180px) {
  .launch-layout, .coin-layout { grid-template-columns: minmax(0, 1fr); }
  .launch-side, .coin-side { position: static; }
  .stat-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .roster { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .style-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  :root { --edge: 14px; --header-h: 52px; --panel-padding: 18px; --r-panel: 26px; }
  .two-col, .two-col.wide-left, .wheel-section, .docs-layout { grid-template-columns: minmax(0, 1fr); }
  .docs-nav { position: static; }
  .score-grid, .steps.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc-grid { grid-template-columns: minmax(0, 1fr); }
  .podium { grid-template-columns: minmax(0, 1fr); }
  .podium-card:nth-child(n + 2) { display: none; }
}

@media (max-width: 760px) {
  :root { --edge: 12px; --lead: clamp(120px, 36vw, 180px); --focus-x: 58%; --focus-y: calc(470px + 20svh); }
  body { font-size: 14.5px; }
  .hero { min-height: auto; padding-bottom: 20px; }
  .hero-copy { gap: 14px; }
  .hero-title { font-size: clamp(34px, 10vw, 44px); }
  .hero-sub { max-width: 92%; }
  .live-coins { width: 100%; margin-top: clamp(230px, 40svh, 360px); }
  .ca-box { flex-basis: 100%; max-width: none; }
  .x-slot { flex: 1 1 100%; }
  .x-slot .btn { width: 100%; min-height: 48px; }
  body[data-scene='home'] .blob-label { opacity: 0; }
  body[data-scene='home'] .blob-lead .blob-label { opacity: 1; }
  body[data-scene='page'] { --lead: 120px; --focus-x: calc(100vw - 70px); --focus-y: 120px; }
  body[data-scene='page'] .blob-small { opacity: 0.6; }
  .header-actions { gap: 6px; }
  .island { padding: 0 14px; font-size: 13px; }
  .logo { padding: 0 14px 0 10px; font-size: 16px; }
  .logo-mark { width: 26px; height: 26px; }
  .hide-sm { display: none; }
  .btn-buy .soon-tag { display: none; }
  .grid-2, .grid-3, .what-list, .team-bars { grid-template-columns: minmax(0, 1fr); }
  .style-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .roster { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-tiles.three { grid-template-columns: minmax(0, 1fr); }
  .drop { grid-template-columns: 84px 1fr; }
  .drop-preview { width: 84px; height: 84px; }
  .redirect-row { grid-template-columns: minmax(0, 1fr) 90px auto; }
  .table-coin > span { max-width: 130px; }
  .wheel-node { width: 108px; margin-left: -54px; font-size: 12px; padding: 6px; }
  .wheel-pct { font-size: 26px; }
  .agent-detail-head { flex-direction: column; align-items: flex-start; }
  .page-head { padding-top: 0; }
}

@media (max-width: 420px) {
  .x-btn { display: none; }
  .island { padding: 0 11px; }
  .logo-word { display: none; }
  .logo { padding: 0 10px; }
  .score-grid, .steps.four { grid-template-columns: minmax(0, 1fr); }
  .roster { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .coin-card-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .blob-eyes { transform: none; }
}
