/* gumball fund · a candy shop after hours */

:root {
  --bg: #140f26;
  --bg-2: #1b1336;
  --ink: #f6f1ff;
  --ink-2: #c9bfe6;
  --muted: #9c90c2;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --card: rgba(36, 26, 66, 0.72);
  --card-2: rgba(48, 35, 86, 0.8);
  --field: rgba(14, 9, 30, 0.6);

  --pink: #ff5f9e;
  --pink-2: #ff3d86;
  --cherry: #ff4f6d;
  --lemon: #ffd23f;
  --blue: #5aa9ff;
  --mint: #43e0b0;
  --bubble: #ff7ac6;

  --burn: #ff6a4d;
  --fly: #5aa9ff;
  --drop: #ffd23f;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.65);
  --display: 'Fredoka', ui-rounded, system-ui, sans-serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1200px 600px at 50% -200px, rgba(255, 95, 158, 0.16), transparent 70%),
    radial-gradient(900px 500px at 100% 30%, rgba(90, 169, 255, 0.08), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  background-attachment: fixed;
  color: var(--ink);
  font: 15px/1.55 var(--sans);
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
code { font-family: var(--mono); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }

#sky { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
header, main, footer, .announce { position: relative; z-index: 1; }
main { flex: 1 0 auto; }
.top { position: sticky; }

.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.wrap.narrow { width: min(720px, 100% - 32px); }
.center { text-align: center; }
.stack > * + * { margin-top: 18px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }

/* ───────────── header ───────────── */
.top { position: sticky; top: 0; z-index: 20; background: rgba(20, 15, 38, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.top-in { width: min(1080px, 100% - 32px); margin-inline: auto; height: 62px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { filter: drop-shadow(0 4px 10px rgba(255, 79, 109, 0.35)); transition: transform 0.3s cubic-bezier(.3, 1.6, .5, 1); }
.brand:hover img { transform: rotate(-10deg) scale(1.08); }
.wordmark { font: 600 21px/1 var(--display); letter-spacing: -0.01em; }
.wordmark b { color: var(--pink); font-weight: 700; }
.brand.small .wordmark { font-size: 15px; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--ink-2); position: relative; transition: color 0.2s, background 0.2s; }
.nav a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.nav a.active { color: var(--ink); }
.nav a.active::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--pink); }
.nav-x { display: inline-flex; align-items: center; }
.nav-x .ic { width: 16px; height: 16px; }
#nav-login.signed { font-family: var(--mono); font-size: 12.5px; background: rgba(255, 95, 158, 0.12); color: var(--ink); }

/* candy-striped awning under the header */
.awning {
  position: absolute; left: 0; right: 0; top: 100%;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='14'%3E%3Cpath d='M0 0h24v2a12 12 0 0 1-24 0z' fill='%23ff5f9e'/%3E%3Cpath d='M24 0h24v2a12 12 0 0 1-24 0z' fill='%23fff0f6'/%3E%3C/svg%3E") repeat-x 0 0 / 48px 14px;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.35));
  pointer-events: none;
}

.announce { text-align: center; padding: 8px 16px; font-weight: 600; font-size: 13.5px; background: rgba(255, 210, 63, 0.12); color: var(--lemon); }

/* ───────────── buttons & chips ───────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 20px; border-radius: 14px; border: 1px solid transparent;
  font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s, border-color 0.2s, opacity 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(2px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn .ic { width: 17px; height: 17px; }
.btn-primary {
  color: #2a0d1c;
  background:
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.22) 0 10px, transparent 10px 20px),
    linear-gradient(180deg, #ff8fbd, var(--pink-2));
  background-size: 28px 28px, 100% 100%;
  box-shadow: 0 5px 0 #b51e5a, 0 14px 30px -10px rgba(255, 61, 134, 0.7);
  animation: candy 1.6s linear infinite paused;
}
.btn-primary:hover { animation-play-state: running; box-shadow: 0 5px 0 #b51e5a, 0 16px 36px -8px rgba(255, 61, 134, 0.85); }
.btn-primary:active { box-shadow: 0 2px 0 #b51e5a, 0 8px 18px -8px rgba(255, 61, 134, 0.7); }
@keyframes candy { to { background-position: 28px 0, 0 0; } }
.btn-ghost { color: var(--ink); background: rgba(255, 255, 255, 0.05); border-color: var(--line-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.26); }
.btn.sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn.wide { width: 100%; }
.btn-copy { height: auto; min-height: 52px; align-self: stretch; padding: 0 18px; color: #2b2100; background: linear-gradient(180deg, #ffe17a, var(--lemon)); box-shadow: 0 4px 0 #b8901a; border-radius: 12px; }
.btn-copy:active { box-shadow: 0 1px 0 #b8901a; }
.btn-copy.copied { background: linear-gradient(180deg, #7ff0cc, var(--mint)); box-shadow: 0 4px 0 #1f9c76; }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--mc, var(--pink)); background: color-mix(in srgb, var(--mc, var(--pink)) 14%, transparent); border: 1px solid color-mix(in srgb, var(--mc, var(--pink)) 35%, transparent); white-space: nowrap; }
.chip.soft { color: var(--ink-2); background: rgba(255, 255, 255, 0.05); border-color: var(--line-2); }
.chip-link { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; text-decoration: none; color: var(--ink-2); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-2); transition: background 0.2s, color 0.2s, transform 0.2s; }
.chip-link:hover { color: var(--ink); background: rgba(255, 255, 255, 0.1); transform: translateY(-1px); }
.chip-link .ic { width: 14px; height: 14px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font: 700 11px/1.5 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line-2); }
.pill.live { color: var(--mint); border-color: rgba(67, 224, 176, 0.45); background: rgba(67, 224, 176, 0.1); }
.pill.live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(67, 224, 176, 0.6); animation: ping 1.8s infinite; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 700 11.5px/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.eyebrow .ic { width: 14px; height: 14px; color: var(--pink); }
.kicker { display: inline-block; margin-top: 34px; padding: 5px 12px; border-radius: 999px; font: 700 11px/1.4 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--lemon); background: rgba(255, 210, 63, 0.08); border: 1px solid rgba(255, 210, 63, 0.25); }

/* ───────────── cards ───────────── */
.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

/* ───────────── hero ───────────── */
.hero { text-align: center; padding: 36px 0 10px; }
.machine { position: relative; display: block; margin: 0 auto; width: 150px; height: 180px; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.machine-svg { width: 100%; height: 100%; overflow: visible; animation: idle 3.4s ease-in-out infinite; transform-origin: 50% 100%; }
.machine:hover .machine-svg { animation-duration: 1.6s; }
.machine.crank .machine-svg { animation: crank 0.6s cubic-bezier(.3, 1.6, .5, 1); }
.machine.crank .crank { animation: spin 0.6s ease-in-out; }
.crank { transform-origin: 100px 200px; }
.balls { animation: jiggle 3.4s ease-in-out infinite; transform-origin: 100px 120px; }
.drop-ball { position: absolute; left: 76%; top: 86%; width: 18px; height: 18px; border-radius: 50%; opacity: 0; background: radial-gradient(circle at 35% 30%, #fff 0 18%, var(--ball, var(--lemon)) 20%); pointer-events: none; }
.drop-ball.go { animation: dropball 1.1s cubic-bezier(.35, 0, .6, 1) forwards; }
@keyframes idle { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-6px) rotate(-1.5deg); } }
@keyframes jiggle { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(2px) rotate(1deg); } }
@keyframes crank { 0% { transform: scale(1); } 30% { transform: scale(1.08, 0.94); } 60% { transform: scale(0.96, 1.05); } 100% { transform: scale(1); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes dropball {
  0% { opacity: 1; transform: translate(0, 0); }
  40% { transform: translate(26px, 30px); }
  70% { transform: translate(52px, 6px); }
  100% { opacity: 0; transform: translate(90px, 34px); }
}

.hero-title { margin: 10px 0 0; font: 700 clamp(44px, 9vw, 78px)/1 var(--display); letter-spacing: -0.02em; }
.bounce { display: inline-flex; gap: 0.01em; }
.bounce span { display: inline-block; animation: hop 2.8s cubic-bezier(.3, 1.4, .5, 1) infinite; animation-delay: calc(var(--i) * 0.07s); text-shadow: 0 6px 0 rgba(0, 0, 0, 0.25); }
.bounce span.g { color: var(--pink); }
.bounce .gap { width: 0.28em; }
@keyframes hop { 0%, 60%, 100% { transform: translateY(0); } 70% { transform: translateY(-10px); } 80% { transform: translateY(0); } }
.lede { max-width: 620px; margin: 16px auto 0; font-size: 17px; color: var(--ink-2); }
.lede.left { margin-left: 0; text-align: left; }
.lede b { font-weight: 700; }
.t-brand { color: var(--pink); }
.t-burn { color: var(--burn); }
.t-fly { color: var(--fly); }
.t-drop { color: var(--drop); }
.cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.ca-row { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 16px; max-width: 860px; margin: 36px auto 0; text-align: left; }
.ca-card { padding: 18px; }
.ca-card.pop { animation: pop 0.6s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes pop { 40% { transform: scale(1.03); } }
.ca-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.ca-field { display: flex; gap: 10px; align-items: stretch; }
.ca-field code {
  flex: 1; min-width: 0; display: flex; align-items: center; padding: 12px 14px; border-radius: 12px;
  background: var(--field); border: 1px solid var(--line-2); font-size: 14px; font-weight: 600;
  word-break: break-all; line-height: 1.45; user-select: all; color: var(--ink);
}
.ca-field code.soon { color: var(--muted); font-style: italic; user-select: none; }
.ca-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.x-card { display: flex; align-items: center; gap: 14px; padding: 18px; text-decoration: none; transition: transform 0.2s, border-color 0.2s; }
.x-card:hover { transform: translateY(-3px); border-color: var(--line-2); }
.x-tile { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: #000; color: #fff; border: 1px solid rgba(255, 255, 255, 0.18); flex: none; }
.x-tile .ic { width: 22px; height: 22px; }
.x-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.x-text b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.x-arrow { color: var(--blue); width: 18px; height: 18px; transition: transform 0.2s; }
.x-card:hover .x-arrow { transform: translate(2px, -2px); }

/* ───────────── scene + marquee ───────────── */
.scene { margin-top: 30px; height: 170px; overflow: hidden; }
.scene svg { width: 100%; height: 100%; display: block; }
.rollers circle { animation: roll 6s ease-in-out infinite; }
.rollers circle:nth-child(2n) { animation-delay: -2s; }
.rollers circle:nth-child(3n) { animation-delay: -4s; }
@keyframes roll { 50% { transform: translateX(14px); } }
.marquee {
  overflow: hidden; padding: 11px 0; margin-top: -8px;
  background: repeating-linear-gradient(-45deg, #ff5f9e 0 18px, #ff76ad 18px 36px);
  transform: rotate(-1.2deg); box-shadow: 0 10px 30px -10px rgba(255, 61, 134, 0.6);
  position: relative; z-index: 2;
}
.marquee-track { display: flex; align-items: center; gap: 22px; width: max-content; animation: marquee 32s linear infinite; }
.marquee span { font: 700 18px/1 var(--display); color: #fff; white-space: nowrap; text-shadow: 0 2px 0 rgba(160, 20, 80, 0.45); }
.marquee i { width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0 18%, var(--lemon) 22%); flex: none; }
.marquee i:nth-of-type(3n+2) { background: radial-gradient(circle at 35% 30%, #fff 0 18%, var(--blue) 22%); }
.marquee i:nth-of-type(3n) { background: radial-gradient(circle at 35% 30%, #fff 0 18%, var(--mint) 22%); }
@keyframes marquee { to { transform: translateX(-33.333%); } }

/* ───────────── market ───────────── */
.stack { padding: 42px 0 20px; }
.market { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 22px; flex-wrap: wrap; }
.market-id { display: flex; align-items: center; gap: 14px; }
.market-avatar { width: 48px; height: 48px; border-radius: 14px; background: rgba(255, 255, 255, 0.06); padding: 4px; }
.market-tk { font: 700 20px/1.1 var(--display); }
.market-name { color: var(--muted); font-size: 13px; }
.stats { display: flex; gap: 34px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.stat span { font: 700 10.5px/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.stat b { font: 600 20px/1.1 var(--display); font-variant-numeric: tabular-nums; }
.market-meta { padding: 0 6px; }
.market-meta p { margin: 4px 0 0; }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--mint); }
.live.off { color: var(--muted); }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(67, 224, 176, 0.6); animation: ping 1.8s infinite; }
.live.off .live-dot, .live-dot.off { background: var(--muted); animation: none; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(67, 224, 176, 0.55); } 80%, 100% { box-shadow: 0 0 0 8px rgba(67, 224, 176, 0); } }
.mono-line { margin-top: 6px; font-size: 13px; color: var(--muted); }
.mono-line code { color: var(--ink-2); word-break: break-all; }

/* ───────────── lists ───────────── */
.list-card { padding: 6px; }
.list-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px 10px; }
.meta { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.meta.link { color: var(--pink); font-weight: 600; text-decoration: none; }
.list { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; animation: rowin 0.45s cubic-bezier(.2, .9, .3, 1.2) both; animation-delay: calc(var(--i, 0) * 0.04s); text-decoration: none; }
a.row:hover, .row.clickable:hover { background: rgba(255, 255, 255, 0.04); }
.row + .row { box-shadow: inset 0 1px 0 var(--line); }
@keyframes rowin { from { opacity: 0; transform: translateY(6px); } }
.avatar { width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center; overflow: hidden; font: 700 17px/1 var(--display); color: #fff; background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.75) 0 12%, var(--av, var(--pink)) 16%); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.18); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.big { width: 58px; height: 58px; font-size: 22px; border-radius: 16px; }
.avatar.mode { border-radius: 12px; background: color-mix(in srgb, var(--mc) 16%, transparent); color: var(--mc); box-shadow: none; border: 1px solid color-mix(in srgb, var(--mc) 35%, transparent); }
.avatar.mode .ic { width: 20px; height: 20px; }
.row-main { flex: 1; min-width: 0; }
.row-title { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk { color: var(--muted); font-weight: 600; font-size: 13px; margin-left: 4px; }
.row-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.row-side { text-align: right; font-size: 12.5px; color: var(--muted); white-space: nowrap; line-height: 1.7; }
.row-side a { color: var(--ink-2); text-decoration: none; }
.row-side a:hover { color: var(--pink); }
.amt { display: block; font: 600 15px/1.3 var(--display); color: var(--ink); }
.badge { display: inline-flex; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; border: 1px solid var(--line-2); color: var(--ink-2); }
.badge.pending { color: var(--lemon); border-color: rgba(255, 210, 63, 0.4); }
.badge.approved, .badge.launching { color: var(--blue); border-color: rgba(90, 169, 255, 0.45); }
.badge.live { color: var(--mint); border-color: rgba(67, 224, 176, 0.45); }
.badge.rejected, .badge.failed { color: var(--cherry); border-color: rgba(255, 79, 109, 0.45); }
.badge.paused { color: var(--muted); }
.empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 34px 16px; color: var(--ink-2); text-align: center; }
.empty .ic { width: 28px; height: 28px; color: var(--pink); margin-bottom: 4px; animation: idle 3s ease-in-out infinite; }
.empty small { color: var(--muted); }

/* ───────────── leaderboard ───────────── */
.board { padding-top: 26px; scroll-margin-top: 90px; }
.board-bar { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.seg { position: relative; display: inline-flex; padding: 4px; border-radius: 12px; background: var(--field); border: 1px solid var(--line); }
.seg button { position: relative; z-index: 1; border: 0; background: none; padding: 7px 14px; border-radius: 9px; font-weight: 700; font-size: 13px; color: var(--muted); cursor: pointer; transition: color 0.2s; }
.seg button.on { color: var(--ink); }
.seg-ind { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 9px; background: rgba(255, 95, 158, 0.22); border: 1px solid rgba(255, 95, 158, 0.45); transition: transform 0.3s cubic-bezier(.3, 1.3, .5, 1), width 0.3s; }
.board-title { margin: 22px 0 2px; font: 700 13px/1.3 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; }
.mode-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.mode-card { padding: 16px 16px 18px; min-height: 140px; overflow: hidden; transition: transform 0.25s ease, border-color 0.25s; border-top: 3px solid var(--mc); }
.mode-card:hover { border-color: color-mix(in srgb, var(--mc) 45%, transparent); }
.mode-card-head { display: flex; justify-content: space-between; align-items: center; }
.mode-name { display: inline-flex; align-items: center; gap: 8px; font: 600 16px/1.2 var(--display); color: var(--mc); }
.rank { font: 700 11px/1 var(--sans); padding: 4px 8px; border-radius: 999px; color: var(--mc); background: color-mix(in srgb, var(--mc) 14%, transparent); }
.top-body { margin-top: 14px; }
.top-empty { margin: 18px 0 0; text-align: center; color: var(--muted); }
.top-name { font-weight: 700; }
.top-val { margin-top: 6px; font: 700 26px/1.1 var(--display); font-variant-numeric: tabular-nums; }
.top-sub { margin-top: 4px; color: var(--muted); font-size: 12.5px; }
.glow { position: absolute; left: 50%; bottom: -34px; width: 70%; height: 50px; transform: translateX(-50%); border-radius: 50%; background: var(--mc); filter: blur(26px); opacity: 0.22; pointer-events: none; }
.mode-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 12px; }
.mode-tabs button { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); color: var(--ink-2); font-weight: 600; font-size: 13.5px; cursor: pointer; transition: all 0.2s; }
.mode-tabs button .ic { color: var(--mc); }
.mode-tabs button.on { color: var(--mc); border-color: color-mix(in srgb, var(--mc) 55%, transparent); background: color-mix(in srgb, var(--mc) 12%, transparent); }
.foot-note { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 12.5px; margin-top: 14px; }
.foot-note .ic { color: var(--pink); }

/* ───────────── launch form ───────────── */
.page-title { margin: 12px 0 0; font: 700 clamp(34px, 6vw, 48px)/1.05 var(--display); letter-spacing: -0.015em; }
.page-title.small { font-size: 30px; }
.form { margin: 24px 0 40px; padding: 20px; overflow: hidden; }
.form > * + * { margin-top: 16px; }
.preview { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 16px; background: var(--field); border: 1px solid var(--line); }
.pv-main { flex: 1; min-width: 0; }
.pv-name { font: 600 19px/1.2 var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-tk { font-weight: 700; color: var(--lemon); font-size: 13px; }
.pv-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.bump { animation: pop 0.45s cubic-bezier(.3, 1.6, .5, 1); }
.drop { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 16px; border: 1.5px dashed var(--line-2); cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.drop:hover, .drop.over { border-color: var(--pink); background: rgba(255, 95, 158, 0.06); }
.drop input { display: none; }
.drop b { display: block; }
.drop small { color: var(--muted); }
.thumb { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--field); overflow: hidden; color: var(--muted); flex: none; }
.thumb .ic { width: 22px; height: 22px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { font-weight: 600; font-size: 13.5px; color: var(--ink-2); display: flex; justify-content: space-between; }
.field em { font-style: normal; color: var(--muted); font-weight: 500; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--field);
  outline: none; transition: border-color 0.2s, box-shadow 0.2s; resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(201, 191, 230, 0.4); }
.field input:focus, .field textarea:focus { border-color: var(--pink); box-shadow: 0 0 0 4px rgba(255, 95, 158, 0.16); }
.invalid { animation: shake 0.4s; border-color: var(--cherry) !important; }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices button { display: inline-flex; align-items: center; gap: 7px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--field); font-weight: 600; font-size: 13.5px; cursor: pointer; color: var(--ink-2); transition: all 0.2s; }
.choices button .ic { color: var(--mc, var(--pink)); }
.choices button[aria-checked='true'] { color: var(--ink); border-color: var(--mc, var(--pink)); background: color-mix(in srgb, var(--mc, var(--pink)) 16%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--mc, var(--pink)) 18%, transparent); }
.choices.pair button { flex: 1; justify-content: center; }
.help { margin: 4px 0 0; color: var(--muted); font-size: 13px; min-height: 2.8em; }
.help.swap { animation: rowin 0.35s ease; }
.note { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 210, 63, 0.06); border: 1px solid rgba(255, 210, 63, 0.18); color: var(--ink-2); font-size: 13px; margin: 0; }
.note .ic { color: var(--lemon); margin-top: 3px; }
.error { color: var(--cherry); font-weight: 600; font-size: 13.5px; min-height: 1.2em; margin: 0; }
.foot { text-align: center; color: var(--muted); font-size: 12.5px; transition: color 0.3s; margin: 10px 0 0; }
.foot.saved { color: var(--mint); }
.success { position: absolute; inset: 0; margin: 0 !important; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 24px; background: rgba(20, 15, 38, 0.94); backdrop-filter: blur(6px); animation: rowin 0.4s ease; }
.success h3 { margin: 8px 0 0; font: 700 28px/1.1 var(--display); }
.success p { color: var(--ink-2); max-width: 380px; }
.success a { color: var(--pink); }
.success-ring { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; background: rgba(67, 224, 176, 0.14); border: 2px solid var(--mint); color: var(--mint); animation: pop 0.6s cubic-bezier(.3, 1.6, .5, 1); }
.success-ring .ic { width: 34px; height: 34px; stroke-width: 3; }

/* ───────────── login ───────────── */
.login { margin: 40px 0 18px; padding: 28px; }
.login-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: rgba(171, 159, 242, 0.16); color: #ab9ff2; }
.login-icon .ic { width: 28px; height: 28px; }
.login .btn { margin-top: 18px; }
.who { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 12px; border-radius: 14px; background: var(--field); border: 1px solid var(--line); flex-wrap: wrap; }
.who code { flex: 1; min-width: 0; word-break: break-all; font-size: 13px; }
.who .btn { margin-top: 0; }
.who-avatar { width: 36px; height: 36px; border-radius: 50%; flex: none; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid rgba(0, 0, 0, 0.25); border-top-color: currentColor; animation: spin 0.7s linear infinite; }

/* ───────────── token page ───────────── */
.token-head { display: flex; align-items: center; gap: 16px; margin-top: 36px; }
.token-head .avatar { width: 72px; height: 72px; border-radius: 20px; font-size: 28px; }
.token-head h1 { margin: 0; font: 700 34px/1.1 var(--display); }
.token-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.kv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.kv .card { padding: 14px 16px; }
.kv span { display: block; font: 700 10.5px/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.kv b { display: block; margin-top: 8px; font: 600 22px/1.1 var(--display); }
.addr-card { margin-top: 12px; padding: 14px 16px; }
.addr-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; flex-wrap: wrap; }
.addr-line + .addr-line { border-top: 1px solid var(--line); }
.addr-line span { color: var(--muted); font-size: 13px; }
.addr-line a { font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); word-break: break-all; text-decoration: none; }
.addr-line a:hover { color: var(--pink); }
.token-desc { color: var(--ink-2); margin-top: 14px; }

.lost { margin: 60px auto 0; width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; font: 700 44px/1 var(--display); color: #fff; background: radial-gradient(circle at 35% 30%, #fff 0 12%, var(--pink) 16%); animation: idle 3s ease-in-out infinite; }

/* ───────────── footer ───────────── */
.footer { margin-top: 30px; padding: 22px 0 34px; border-top: 1px solid var(--line); background: rgba(10, 7, 22, 0.4); }
.foot-in { display: flex; align-items: center; justify-content: space-between; gap: 10px 18px; flex-wrap: wrap; font-size: 12.5px; }

/* ───────────── toasts + confetti ───────────── */
.toasts { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; width: min(420px, 100% - 32px); }
.toast { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 14px; background: #2a1d4d; border: 1px solid var(--line-2); box-shadow: var(--shadow); font-weight: 600; font-size: 14px; animation: toastin 0.4s cubic-bezier(.3, 1.5, .5, 1); }
.toast .ic { color: var(--mint); width: 18px; height: 18px; }
.toast.err .ic { color: var(--cherry); }
.toast.out { animation: toastout 0.3s ease forwards; }
@keyframes toastin { from { opacity: 0; transform: translateY(14px) scale(0.96); } }
@keyframes toastout { to { opacity: 0; transform: translateY(10px); } }
.confetti { position: fixed; z-index: 70; width: 10px; height: 10px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle at 35% 30%, #fff 0 18%, var(--c) 22%); }

/* ───────────── reveal + view transitions ───────────── */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.2, .9, .3, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.view-in { animation: viewin 0.45s ease both; }
@keyframes viewin { from { opacity: 0; transform: translateY(8px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ───────────── responsive ───────────── */
@media (max-width: 820px) {
  .ca-row { grid-template-columns: 1fr; }
  .mode-cards { grid-template-columns: 1fr; }
  .mode-card { min-height: 0; }
  .stats { gap: 22px; width: 100%; justify-content: space-between; }
  .stat { align-items: flex-start; }
  .kv { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 14.5px; }
  .top-in { height: 56px; }
  .wordmark { font-size: 18px; }
  .nav a { padding: 8px 9px; }
  .hero { padding-top: 22px; }
  .machine { width: 124px; height: 150px; }
  .lede { font-size: 15.5px; }
  .cta .btn { flex: 1 1 100%; }
  .ca-field { flex-direction: column; }
  .btn-copy { min-height: 46px; }
  .grid2 { grid-template-columns: 1fr; }
  .row { gap: 10px; padding: 11px 10px; }
  .row-side { font-size: 11.5px; }
  .avatar { width: 36px; height: 36px; font-size: 15px; }
  .stat b { font-size: 17px; }
  .market { padding: 16px; }
  .preview { flex-wrap: wrap; }
  .pv-side { flex-direction: row; width: 100%; align-items: center; }
  .foot-in { flex-direction: column; align-items: flex-start; }
  .scene { height: 120px; }
  .kv { grid-template-columns: 1fr; }
}
