/* Frosted — memecoin staking UI. Plain HTML + CSS. Accent colours are set at
   runtime from the token artwork / contract address (see app.js). */

:root {
  --bg: #0b0e16;
  --bg-2: #10141f;
  --fg: #f3f5fa;
  --muted: #9aa3b8;
  --border: rgba(226, 232, 240, 0.14);
  --card: rgba(28, 34, 50, 0.6);
  --sol: #14f195;
  --accent: #f0883e;
  --accent-soft: rgba(240, 136, 62, 0.18);
  --accent-faint: rgba(240, 136, 62, 0.07);
  --accent-line: rgba(240, 136, 62, 0.34);
  --ink: #12141a;
  --radius: 14px;
  --shadow-accent: 0 18px 70px var(--accent-soft);
}

* { box-sizing: border-box; border-color: var(--border); margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 118px; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.locked { overflow: hidden; }
h1, h2, h3, .display { font-family: "Sora", system-ui, sans-serif; letter-spacing: -0.02em; line-height: 1.05; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; }
.eyebrow { font-family: "JetBrains Mono", monospace; font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); }
.muted { color: var(--muted); }
.sol { color: var(--sol); }
.accent { color: var(--accent); }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
section { position: relative; }
.section { padding: 96px 0; }
.line-top { border-top: 1px solid var(--border); }
.line-bottom { border-bottom: 1px solid var(--border); }
.tint { background: rgba(20, 25, 40, 0.45); }
.deep { background: #0a0c14; }

.grid-bg {
  background-image: linear-gradient(rgba(226, 232, 240, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(226, 232, 240, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}
.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 72% 38%, var(--accent-soft), transparent 32%),
    radial-gradient(circle at 18% 74%, rgba(20, 241, 149, 0.07), transparent 30%),
    linear-gradient(180deg, var(--accent-faint), transparent 60%);
}
.stage > * { position: relative; }

.glass {
  background: linear-gradient(145deg, rgba(38, 45, 66, 0.78), rgba(16, 20, 32, 0.62));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 30px 90px rgba(4, 6, 12, 0.45);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: 22px;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: "Sora", sans-serif; font-weight: 600; font-size: 15px;
  padding: 15px 26px; border-radius: 12px; border: 1px solid transparent; gap: 0;
  cursor: pointer; transition: transform 0.18s ease, filter 0.18s ease, background 0.18s ease;
}
button.btn {
  appearance: none;
  -webkit-appearance: none;
  color: inherit;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-stake {
  background: var(--accent);
  background-image: linear-gradient(115deg, var(--accent) 35%, rgba(255,255,255,.42) 50%, var(--accent) 65%);
  background-size: 220% 100%;
  background-position: 100% 0;
  color: var(--ink);
  box-shadow: var(--shadow-accent);
  transition: transform 0.18s ease, filter 0.18s ease, background-position 0.55s ease;
}
.btn-stake:hover { background-position: 0 0; }
.btn-glass { background: rgba(255, 255, 255, 0.06); color: var(--fg); border-color: var(--border); backdrop-filter: blur(18px); }
.btn-glass:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--accent-line); }
.btn-sm { padding: 10px 16px; font-size: 13px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; }

.pill {
  display: inline-flex; align-items: center; gap: 0;
  border: 1px solid var(--accent-line); background: var(--accent-soft);
  color: var(--accent); border-radius: 999px; padding: 7px 14px;
  font-size: 12px; font-weight: 600; backdrop-filter: blur(18px);
}
.dot { margin-right: 8px; width: 7px; height: 7px; border-radius: 999px; background: var(--accent); animation: pulse 1.8s ease-in-out infinite; }
.chip {
  display: inline-flex; align-items: center; gap: 0; border: 1px solid var(--border);
  background: rgba(10, 12, 20, 0.6); border-radius: 999px; padding: 6px 12px;
  font-family: "JetBrains Mono", monospace; font-size: 10px; text-transform: uppercase; color: var(--muted);
}

/* Ticker */
.ticker { overflow: hidden; background: var(--accent); color: var(--ink); }
.ticker-track { display: flex; width: max-content; white-space: nowrap; animation: marquee 22s linear infinite; }
.ticker-track span { display: flex; align-items: center; gap: 24px; padding: 10px 30px; font-family: "JetBrains Mono", monospace; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.ticker:hover .ticker-track { animation-play-state: paused; }

/* Sticky frosted chrome */
.site-head {
  position: sticky; top: 0; z-index: 60;
  background: rgba(11, 14, 22, 0.78);
  backdrop-filter: blur(22px) saturate(1.25);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}
.site-head .ticker { background: var(--accent); }

/* Nav */
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-family: "Sora", sans-serif; font-weight: 600; }
.brand .mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--accent); color: var(--ink); font-weight: 700; box-shadow: var(--shadow-accent); }
.nav-links { display: none; gap: 30px; font-size: 14px; color: var(--muted); }
.nav-links a { position: relative; padding: 4px 0; }
.nav-links a:hover { color: var(--fg); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform 0.2s ease;
}
.nav-links a:hover::after { transform: scaleX(1); }
@media (min-width: 900px) { .nav-links { display: flex; } }

/* Hero */
.hero { display: grid; gap: 48px; padding: 40px 0 80px; align-items: center; }
@media (min-width: 1024px) { .hero { grid-template-columns: 0.9fr 1.1fr; min-height: 660px; } }
.hero h1 { font-size: clamp(44px, 7vw, 88px); font-weight: 700; margin-top: 26px; max-width: 12ch; }
.hero h1 .tok { color: var(--accent); text-shadow: 0 0 34px var(--accent-soft); }
.hero p.lead { margin-top: 26px; max-width: 34rem; font-size: 19px; color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 38px; padding-top: 24px; border-top: 1px solid var(--border); max-width: 34rem; }
.hero-stats b { display: block; font-family: "Sora", sans-serif; font-size: 22px; font-variant-numeric: tabular-nums; }
.hero-stats span { font-size: 12px; color: var(--muted); }

.glow { position: absolute; border-radius: 999px; pointer-events: none; filter: blur(110px); }
.glow-a { left: -12rem; top: 6rem; width: 34rem; height: 34rem; background: var(--accent-soft); }
.glow-b { right: -10rem; bottom: 0; width: 28rem; height: 28rem; background: var(--accent-faint); }
.beam { position: absolute; inset-inline: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: 0.6; }

/* Token showcase */
.showcase { padding: 22px; }
.showcase-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.showcase-head h2 { font-size: 20px; margin-top: 6px; }
.art {
  position: relative; display: grid; place-items: center; min-height: 340px;
  margin: 20px 0; border: 1px solid var(--border); border-radius: 18px;
  background: rgba(24, 30, 46, 0.5); overflow: hidden;
}
.art .orbit { position: absolute; width: 280px; height: 280px; border: 1px dashed var(--accent-line); border-radius: 999px; animation: orbit 12s linear infinite; }
.art .halo { position: absolute; width: 240px; height: 240px; border-radius: 999px; background: var(--accent-soft); filter: blur(50px); }
.art img.token { position: relative; width: 270px; height: 270px; object-fit: contain; animation: float 5s ease-in-out infinite; filter: drop-shadow(0 30px 45px var(--accent-soft)); }
.art .caption { position: absolute; bottom: 14px; }
.mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border-radius: 12px; overflow: hidden; }
.mini > div { background: rgba(26, 32, 48, 0.9); padding: 14px; }
.mini p { font-family: "JetBrains Mono", monospace; font-size: 9px; text-transform: uppercase; color: var(--muted); }
.mini b { display: block; margin-top: 4px; font-size: 14px; font-variant-numeric: tabular-nums; }

/* Section heads */
.sec-head { display: flex; flex-direction: column; gap: 18px; justify-content: space-between; }
@media (min-width: 820px) { .sec-head { flex-direction: row; align-items: flex-end; } }
.sec-head h2 { font-size: clamp(30px, 4vw, 48px); font-weight: 700; margin-top: 12px; max-width: 20ch; }
.sec-head p { max-width: 28rem; color: var(--muted); }

/* PnL receipts */
.receipt-rail { display: flex; width: max-content; gap: 20px; margin-top: 46px; animation: marquee 46s linear infinite; }
.receipt-rail:hover { animation-play-state: paused; }
.receipt-rail .group { display: flex; gap: 20px; }
.receipt { position: relative; width: 380px; flex: none; overflow: hidden; border: 1px solid var(--accent-line); border-radius: 18px; background: #10141f; }
.receipt .shard { position: absolute; right: -30px; top: 0; height: 100%; width: 55%; object-fit: cover; opacity: 0.7; }
.receipt .veil { position: absolute; inset: 0; background: linear-gradient(90deg, #0d1018 50%, rgba(13, 16, 24, 0.72)); }
.receipt .body { position: relative; padding: 24px; }
.receipt .row-top { display: flex; justify-content: space-between; font-family: "JetBrains Mono", monospace; font-size: 10px; text-transform: uppercase; color: var(--muted); }
.receipt .who { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.receipt .who img { width: 40px; height: 40px; border-radius: 999px; object-fit: cover; }
.receipt .who b { font-family: "Sora", sans-serif; font-size: 18px; }
.receipt .payout { display: inline-flex; margin-top: 16px; padding: 8px 16px; border-radius: 8px; background: var(--sol); color: #06301f; font-family: "Sora", sans-serif; font-size: 28px; font-weight: 700; }
.receipt dl { margin-top: 18px; display: grid; gap: 6px; font-size: 14px; }
.receipt dl div { display: flex; justify-content: space-between; gap: 24px; }
.receipt dt { color: var(--muted); }
.receipt dd { font-weight: 600; }
.receipt .handle { margin-top: 22px; font-family: "Sora", sans-serif; font-weight: 600; color: var(--muted); }

/* Cards */
.cards { display: grid; gap: 16px; margin-top: 46px; }
@media (min-width: 880px) { .cards.three { grid-template-columns: repeat(3, 1fr); } }
.card { padding: 26px; }
.glass.card:hover, .glass.value:hover, .glass.stat:hover, .glass.showcase:hover {
  transform: translateY(-4px);
  border-color: var(--accent-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 28px 80px var(--accent-soft);
}
.card .top { display: flex; align-items: center; justify-content: space-between; color: var(--accent); }
.card .top svg { width: 22px; height: 22px; }
.card h3 { margin-top: 42px; font-size: 20px; }
.card p { margin-top: 12px; font-size: 14px; color: var(--muted); }

.split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) { .split { grid-template-columns: 0.72fr 1.28fr; } }
.benefits { margin-top: 30px; display: grid; gap: 16px; font-size: 15px; }
.benefits div { display: flex; align-items: center; gap: 12px; }
.benefits i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-style: normal; font-size: 12px; }

.value-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 46px; }
@media (min-width: 1024px) { .value-grid { grid-template-columns: repeat(4, 1fr); } }
.value { padding: 24px; min-height: 172px; }
.value p.k { font-family: "JetBrains Mono", monospace; font-size: 9px; text-transform: uppercase; color: var(--muted); }
.value b { display: block; margin-top: 18px; font-family: "Sora", sans-serif; font-size: 30px; color: var(--accent); }
.value p.d { margin-top: 10px; font-size: 12px; color: var(--muted); }

/* Community post */
.post { overflow: hidden; border: 1px solid var(--border); border-radius: 18px; background: rgba(11, 14, 22, 0.92); backdrop-filter: blur(18px); box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45); }
.post .pinned { display: flex; align-items: center; gap: 8px; padding: 12px 20px; border-bottom: 1px solid var(--border); font-size: 14px; color: var(--muted); }
.post .inner { padding: 22px; }
.post header { display: flex; align-items: flex-start; gap: 12px; }
.post header img { width: 48px; height: 48px; border-radius: 999px; object-fit: cover; border: 1px solid var(--accent-line); background: #1a1f2e; }
.post header .name { display: flex; align-items: center; gap: 4px; font-weight: 700; }
.post header .handle { font-size: 14px; color: var(--muted); font-weight: 400; }
.post header .comm { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--accent); margin-top: 2px; }
.post .copy { margin-top: 16px; font-size: 15px; line-height: 1.7; }
.post .tags { color: var(--accent); }
.banner { position: relative; margin-top: 16px; aspect-ratio: 1200 / 630; overflow: hidden; border: 1px solid var(--accent-line); border-radius: 14px; background: #151a28; }
.banner .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.banner .blurred { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.25); opacity: 0.35; filter: blur(40px); }
.banner .fade { position: absolute; inset: 0; background: linear-gradient(90deg, #0b0e16, rgba(11, 14, 22, 0.8), rgba(11, 14, 22, 0.2)); }
.banner .fade2 { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11, 14, 22, 0.8), transparent 60%); }
.banner .mascot { position: absolute; bottom: 0; right: 4%; height: 92%; width: 47%; object-fit: contain; -webkit-mask-image: linear-gradient(to top, transparent, #000 18%); mask-image: linear-gradient(to top, transparent, #000 18%); }
.banner .txt { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; height: 100%; max-width: 62%; padding: 6%; }
.banner .txt h3 { margin-top: 8px; font-size: clamp(20px, 3vw, 38px); font-weight: 700; }
.banner .txt .sub { margin-top: 8px; font-size: clamp(12px, 1.3vw, 16px); color: var(--muted); }
.banner .txt .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.post .meta { display: flex; justify-content: space-between; margin-top: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border); font-size: 12px; color: var(--muted); }
.post .metrics { display: grid; grid-template-columns: repeat(5, 1fr); padding-top: 16px; color: var(--muted); font-size: 12px; }
.post .metrics span { display: flex; align-items: center; gap: 0; }
.post .metrics svg { width: 16px; height: 16px; }

/* Market + activity */
.stat-grid { display: grid; gap: 16px; margin-top: 40px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1024px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } .stat-grid.three { grid-template-columns: repeat(3, 1fr); } }
.stat { padding: 20px; border-radius: 18px; }
.stat p { font-family: "JetBrains Mono", monospace; font-size: 9px; text-transform: uppercase; color: var(--muted); }
.stat b { display: block; margin-top: 12px; font-family: "Sora", sans-serif; font-size: 24px; }
.chart-shell { margin-top: 24px; overflow: hidden; border-radius: 22px; border: 1px solid var(--accent-line); }
.chart-shell iframe { width: 100%; height: 520px; border: 0; display: block; }
.chart-empty { display: grid; place-items: center; height: 340px; padding: 24px; text-align: center; color: var(--muted); font-size: 14px; }
.chart-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; margin-top: 18px; font-size: 13px; color: var(--muted); }

.txn-shell { margin-top: 24px; overflow: hidden; border-radius: 22px; }
.txn-head, .txn {
  display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center;
  padding: 15px 22px; border-bottom: 1px solid var(--border);
}
.txn-head { font-family: "JetBrains Mono", monospace; font-size: 10px; text-transform: uppercase; color: var(--muted); }
.txn:last-child { border-bottom: 0; }
.txn:hover { background: var(--accent-faint); }
.txn .sig { font-family: "JetBrains Mono", monospace; font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.badge { border-radius: 999px; padding: 4px 10px; font-family: "JetBrains Mono", monospace; font-size: 9px; text-transform: uppercase; background: rgba(20, 241, 149, 0.15); color: var(--sol); }
.badge.fail { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.txn .age { font-family: "JetBrains Mono", monospace; font-size: 10px; color: var(--muted); }
.empty { padding: 40px 22px; text-align: center; color: var(--muted); font-size: 14px; }

/* Final CTA + footer */
.final { max-width: 960px; margin: 0 auto; padding: 62px 24px; text-align: center; display: grid; justify-items: center; gap: 22px; }
.final img { width: 96px; height: 96px; object-fit: contain; animation: float 5s ease-in-out infinite; }
.final h2 { font-size: clamp(30px, 4vw, 48px); font-weight: 700; max-width: 20ch; }
.final p { max-width: 34rem; color: var(--muted); }
footer { border-top: 1px solid var(--border); background: rgba(20, 25, 40, 0.5); padding: 34px 0; }
footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 12px; color: var(--muted); }
footer .brandline { font-family: "Sora", sans-serif; font-size: 17px; font-weight: 600; color: var(--fg); }

/* Welcome overlay */
.overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; overflow-y: auto; padding: 30px 16px; background: rgba(11, 14, 22, 0.55); backdrop-filter: blur(18px); }
.overlay[hidden] { display: none; }
.welcome { position: relative; width: 100%; max-width: 940px; overflow: hidden; border-radius: 24px; border: 1px solid var(--accent-line); box-shadow: 0 40px 140px var(--accent-soft); animation: rise 620ms cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.welcome .close { position: absolute; right: 16px; top: 16px; z-index: 5; width: 40px; height: 40px; border-radius: 999px; padding: 0; }
.welcome .grid { display: grid; gap: 30px; padding: 28px; align-items: center; }
@media (min-width: 1024px) { .welcome .grid { grid-template-columns: 1.05fr 0.95fr; padding: 54px; } }
.welcome h2 { margin-top: 24px; font-size: clamp(30px, 5vw, 56px); font-weight: 700; max-width: 11ch; }
.welcome h2 .tok { color: var(--accent); }
.welcome p.lead { margin-top: 18px; max-width: 32rem; color: var(--muted); }
.welcome .mini { margin-top: 26px; }
.welcome .art-box { position: relative; aspect-ratio: 1; max-width: 380px; margin: 0 auto; border: 1px solid var(--accent-line); border-radius: 24px; background: rgba(24, 30, 46, 0.5); overflow: hidden; }
.welcome .art-box .halo { position: absolute; inset: 18%; border-radius: 999px; background: var(--accent-soft); filter: blur(50px); }
.welcome .art-box .orbit { position: absolute; inset: 14%; border: 1px dashed var(--accent-line); border-radius: 999px; animation: orbit 12s linear infinite; }
.welcome .art-box img { position: absolute; inset: 12%; width: 76%; height: 76%; object-fit: contain; animation: float 5s ease-in-out infinite; }
.welcome .art-box .foot { position: absolute; inset-inline: 16px; bottom: 16px; display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border: 1px solid var(--border); border-radius: 12px; background: rgba(11, 14, 22, 0.6); backdrop-filter: blur(18px); }
.welcome .art-box .foot b { font-size: 14px; }

/* Claim page */
.back-link {
  display: inline-flex; align-items: center; gap: 8px; margin: 22px 0 8px;
  font-family: "JetBrains Mono", monospace; font-size: 10px; text-transform: uppercase;
  color: var(--muted); letter-spacing: 0.08em;
}
.back-link:hover { color: var(--accent); }
.claim-hero { display: grid; gap: 40px; align-items: center; padding: 28px 0 48px; }
@media (min-width: 1024px) { .claim-hero { grid-template-columns: 1.1fr 0.9fr; } }
.claim-hero h1 { margin-top: 16px; font-size: clamp(40px, 6.5vw, 72px); font-weight: 700; }
.claim-art { position: relative; display: grid; place-items: center; min-height: 260px; padding: 24px 0 48px; border: 1px solid var(--accent-line); background: var(--accent-faint); border-radius: 20px; overflow: hidden; }
.claim-art::before { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 999px; background: var(--accent-soft); filter: blur(40px); }
.claim-art img { position: relative; width: 220px; height: 220px; object-fit: contain; animation: float 5s ease-in-out infinite; }
.panels { display: grid; margin-top: 8px; border: 1px solid var(--border); border-radius: 22px; overflow: hidden; background: rgba(16, 20, 32, 0.55); }
@media (min-width: 1024px) { .panels { grid-template-columns: 1fr 1fr 1.2fr; } }
.panel { padding: 26px; background: transparent; }
@media (min-width: 1024px) { .panel { border-right: 1px solid var(--border); } .panel:last-child { border-right: 0; } }
@media (max-width: 1023px) { .panel { border-bottom: 1px solid var(--border); } .panel:last-child { border-bottom: 0; } }
.panel.featured { background: linear-gradient(180deg, var(--accent-soft), rgba(16, 20, 32, 0.35)); box-shadow: inset 0 0 80px var(--accent-faint); }
.panel > p.k { font-family: "JetBrains Mono", monospace; font-size: 10px; text-transform: uppercase; color: var(--muted); }
.panel .wallet { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.panel .wallet i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--accent-line); background: var(--accent-soft); color: var(--accent); font-style: normal; }
.steps { margin-top: 20px; display: grid; gap: 22px; font-size: 14px; }
.steps div { display: flex; align-items: center; gap: 0; }
.steps i { margin-right: 12px; }
.steps i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 999px; background: var(--accent); color: var(--ink); font-style: normal; font-size: 12px; }
.steps em { margin-left: auto; font-style: normal; font-family: "JetBrains Mono", monospace; font-size: 9px; color: var(--accent); }
.alloc { margin-top: 18px; font-family: "Sora", sans-serif; font-size: 54px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.alloc span { font-size: 22px; }
.kv { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 10px; }
.kv span { color: var(--muted); }
.notice { display: flex; gap: 12px; padding: 18px 20px; margin: 16px 0 0; border: 1px solid var(--border); border-radius: 16px; font-size: 14px; color: var(--muted); background: rgba(16, 20, 32, 0.45); }

@keyframes float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-12px) rotate(2deg); } }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes pulse { 50% { opacity: 0.35; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(0.975); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
}


/* ------------------------------------------------------------ token search */
.ca-search {
  display: flex; align-items: center; gap: 8px;
  min-width: 0; flex: 1 1 240px; max-width: 340px;
  padding: 5px 6px 5px 12px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  background: rgba(12, 16, 26, 0.6);
  backdrop-filter: blur(18px);
}
.ca-search .ico { color: var(--accent); font-size: 15px; line-height: 1; }
.ca-search input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  color: var(--fg); font-family: inherit; font-size: 13px; padding: 5px 0;
}
.ca-search input::placeholder { color: var(--muted); }
.ca-search button {
  border: 0; cursor: pointer; border-radius: 999px;
  background: var(--accent); color: var(--ink);
  font-family: inherit; font-weight: 700; font-size: 12px; padding: 7px 14px;
}
.ca-search button[disabled] { opacity: 0.6; cursor: default; }
.ca-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-faint);
}
.post .pinned { flex-wrap: wrap; gap: 10px; }
@media (max-width: 700px) { .nav .ca-search { order: 3; flex-basis: 100%; max-width: none; } }

/* -------------------------------------------- welcome dialog: two states */
.overlay [data-if="no-ca"] { display: none; }
.overlay.no-ca [data-if="ca"] { display: none !important; }
.overlay.no-ca [data-if="no-ca"] { display: revert; }
.overlay.no-ca h2[data-if="no-ca"] { display: block; }
.overlay.no-ca .pill[data-if="no-ca"] { display: inline-flex; }

.welcome .ca-search.big {
  max-width: none; width: 100%; margin: 22px 0 4px;
  padding: 7px 8px 7px 16px;
  background: rgba(9, 12, 20, 0.72);
  box-shadow: 0 0 0 4px var(--accent-faint);
}
.welcome .ca-search.big input { font-size: 14px; padding: 9px 0; }
.welcome .ca-search.big button { padding: 10px 20px; font-size: 13px; }
.overlay:not(.no-ca) .welcome .ca-search.big { display: none; }



/* ------------------------------------------------------- brand + responsive */
.brand .mark-img { width: 36px; height: 36px; object-fit: contain; filter: drop-shadow(0 0 16px var(--accent-soft)); }
.brandline { display: inline-flex; align-items: center; gap: 8px; }
.mark-img.sm { width: 24px; height: 24px; object-fit: contain; }

img, iframe, canvas, video { max-width: 100%; }

@media (max-width: 700px) {
  .nav {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 14px 0;
  }
  .brand { font-size: 16px; grid-column: 1; grid-row: 1; }
  .nav > .btn { grid-column: 2; grid-row: 1; }
  .nav .ca-search {
    grid-column: 1 / -1;
    grid-row: 2;
    order: unset;
    flex-basis: auto;
    max-width: none;
  }
  .hero { padding: 24px 0 56px; gap: 32px; }
  .hero h1 { max-width: 100%; }
  .hero-stats { gap: 10px; }
  .hero-stats b { font-size: 18px; }
  .cta-row { width: 100%; }
  .cta-row .btn { flex: 1 1 auto; justify-content: center; }
  .welcome .grid { padding: 22px; gap: 26px; }
  .art-box img { width: 62%; }
  .txn { grid-template-columns: minmax(0,1fr) auto; row-gap: 6px; }
  .txn .age { grid-column: 2; }
  section { padding-left: 0; padding-right: 0; }
  .value, .card, .stat { padding: 18px; }
  iframe { height: 380px !important; }
}
@media (max-width: 420px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
}

/* ---- final alignment / overflow guards (all devices) ---- */
html { overflow-x: clip; }
body { max-width: 100%; }
.ticker, .marquee, .receipts, .rail-wrap, .pnl { overflow-x: hidden; }
.glow { pointer-events: none; }
img, svg, iframe, video { max-width: 100%; }


/* ------------------------------------------------------------- boot loader */
.boot { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 38%, var(--accent-faint), transparent 60%), #0a0d14;
  transition: opacity 520ms ease, visibility 520ms; }
.boot.done { opacity: 0; visibility: hidden; }
.boot-inner { position: relative; display: grid; justify-items: center; gap: 18px; padding: 24px; }
.boot-ring { position: absolute; top: -26px; width: 128px; height: 128px; border-radius: 999px;
  border: 1px solid var(--accent-line); border-top-color: var(--accent); animation: orbit 1.1s linear infinite; }
.boot-mark { width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 0 26px var(--accent-soft)); animation: float 3.4s ease-in-out infinite; }
.boot-label { margin-top: 22px; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--muted); font-family: "JetBrains Mono", monospace; }
.boot-bar { display: block; width: 190px; max-width: 60vw; height: 3px; border-radius: 999px; background: rgba(255,255,255,0.08); overflow: hidden; }
.boot-bar i { display: block; height: 100%; width: 40%; border-radius: 999px; background: var(--accent); animation: bootbar 1.15s ease-in-out infinite; }
@keyframes bootbar { 0% { transform: translateX(-110%); } 100% { transform: translateX(280%); } }
body.booting { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .boot-ring, .boot-mark, .boot-bar i { animation: none; } }

::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
html { scrollbar-color: var(--accent) #07090f; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #07090f; }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 999px; }

body::after {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 70;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.post .pin-ico { color: var(--accent); }
.final { position: relative; overflow: hidden; }
.final::before {
  content: "";
  position: absolute;
  width: 320px; height: 320px; border-radius: 999px;
  background: var(--accent-soft); filter: blur(70px);
  top: -120px; pointer-events: none;
}
.final > * { position: relative; }
[data-epoch] { font-variant-numeric: tabular-nums; }
.txn { transition: background 0.18s ease; }
.welcome .close:hover { background: rgba(255,255,255,0.12); }
