/* ==========================================================================
   Vaul — night theme
   Black canvas, one violet ribbon: the palette is sampled from the Vaul mark
   (pale lilac #f4f1ff → lavender #a99bff → electric violet #5b3bf5).
   ========================================================================== */

:root {
  color-scheme: dark;
  --bg: #000000;
  --bg-2: #06050b;
  --surface: #0b0a12;
  --surface-2: #12101d;
  --surface-3: #1a1729;
  --line: #1e1b2e;
  --line-2: #2c2843;
  --ink: #f4f1ff;
  --ink-2: #cfc9ea;
  --muted: #8b85ab;
  --lilac: #f4f1ff;
  --lavender: #a99bff;
  --accent: #7b5cff;
  --violet: #5b3bf5;
  --good: #3ee6a8;
  --warn: #ffb547;
  --radius: 10px;
  --radius-sm: 6px;
  --ribbon: linear-gradient(100deg, #f4f1ff 0%, #b8acff 38%, #7b5cff 72%, #5b3bf5 100%);
  --ribbon-v: linear-gradient(180deg, #c9bfff 0%, #7b5cff 100%);
  --glow: 0 0 0 1px rgba(123, 92, 255, 0.45), 0 12px 40px -12px rgba(91, 59, 245, 0.55);
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0; min-height: 100vh;
  background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
/* faint blueprint grid + one violet bloom, fixed behind everything */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 85% -10%, rgba(91, 59, 245, 0.28), transparent 70%),
    radial-gradient(40% 40% at -5% 40%, rgba(169, 155, 255, 0.07), transparent 70%),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 64px 64px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
}
::selection { background: var(--accent); color: #fff; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, .page-title, .sub { font-family: var(--display); font-weight: 700; letter-spacing: -0.03em; }
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- text helpers */
.ribbon, h1 em, .page-title em {
  font-style: normal; background: var(--ribbon);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.muted { color: var(--muted); margin: 0; }
.muted a, .table a, .addresses a, .docs a { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.muted a:hover, .table a:hover { text-decoration-color: var(--lavender); }
.mono { font-family: var(--mono); font-size: 13px; }
.small { font-size: 12.5px !important; line-height: 1.5; }
.hint { font-size: 12.5px; color: var(--muted); margin: 14px 0; }
.empty { color: var(--muted); grid-column: 1 / -1; }
.notice { margin: 12px 0; font-size: 14px; }

/* ---------------------------------------------------------------- header */
.nav {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 20px;
  padding: 0 clamp(16px, 3vw, 32px); height: 64px;
  padding-top: env(safe-area-inset-top);
  background: rgba(0, 0, 0, 0.82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { order: -1; display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: -0.04em; color: var(--ink); flex: none; }
.brand img { width: 32px; height: 32px; display: block; border-radius: 8px; box-shadow: 0 0 0 1px var(--line-2); }
.brand span { line-height: 1; }
.burger {
  display: none; margin-left: auto; width: 40px; height: 40px; place-items: center; cursor: pointer;
  background: transparent; color: var(--ink); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
}
.burger svg { width: 18px; height: 18px; }
.burger:hover { border-color: var(--lavender); }

.nav-links { flex: 1; display: flex; align-items: center; gap: 2px; font-size: 14px; color: var(--muted); min-width: 0; }
.nav-links > a { padding: 8px 11px; border-radius: var(--radius-sm); position: relative; white-space: nowrap; }
.nav-links > a:hover { color: var(--ink); }
.nav-links > a.active { color: var(--ink); }
.nav-links > a.active::after {
  content: ""; position: absolute; left: 11px; right: 11px; bottom: -13px; height: 2px; background: var(--ribbon); border-radius: 2px;
}
.nav-search { order: 9; margin-left: auto; }
.nav-search input {
  font: inherit; font-size: 13px; width: 200px; padding: 8px 12px 8px 32px; color: var(--ink);
  background: var(--surface) no-repeat 11px 50% / 14px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b85ab' stroke-width='2.5'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E");
  border: 1px solid var(--line-2); border-radius: var(--radius-sm);
}
.menu-foot { order: 10; display: flex; align-items: center; gap: 8px; margin-left: 10px; }
.menu-foot .x-link { display: none; }
.menu-btn { gap: 8px; white-space: nowrap; }
.menu-btn svg { width: 16px; height: 16px; flex: none; }
.x-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; color: var(--ink-2); }
.x-link svg { width: 18px; height: 18px; flex: none; }
.x-link:hover { color: var(--ink); }

@media (max-width: 1240px) {
  .burger { display: grid; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px clamp(16px, 3vw, 32px) 18px;
    background: var(--bg-2); border-bottom: 1px solid var(--line-2);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7); font-size: 16px;
    max-height: calc(100vh - 64px); overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links > a { padding: 13px 4px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav-links > a.active { color: var(--lavender); }
  .nav-links > a.active::after { display: none; }
  .nav-search { order: -1; margin: 0 0 8px; }
  .nav-search input { width: 100%; font-size: 15px; padding-top: 11px; padding-bottom: 11px; }
  .menu-foot { flex-direction: column; align-items: stretch; margin: 16px 0 0; gap: 10px; }
  .menu-foot .x-link { display: inline-flex; padding: 4px 0 8px; font-size: 15px; }
  .menu-btn { width: 100%; padding: 13px 16px; font-size: 15px; }
}

/* ---------------------------------------------------------------- buttons */
.btn {
  font: inherit; font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: -0.01em;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 16px; border-radius: var(--radius-sm); cursor: pointer;
  border: 1px solid var(--line-2); transition: background .15s, border-color .15s, box-shadow .15s, color .15s;
}
.btn-dark {
  color: #0a0716; border-color: transparent;
  background: linear-gradient(100deg, #ece8ff 0%, #a99bff 55%, #7b5cff 100%);
}
.btn-dark:hover { box-shadow: var(--glow); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { border-color: var(--lavender); background: rgba(123, 92, 255, 0.08); }
.btn-lg { padding: 14px 24px; font-size: 16px; }
.btn-sm { padding: 5px 11px; font-size: 12px; }
.btn.wide { width: 100%; margin-top: 14px; }
.full { width: 100%; }
.btn:disabled { opacity: .55; cursor: progress; }

/* ---------------------------------------------------------------- tags, dots, chips */
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2);
  padding: 6px 12px 6px 10px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface);
}
.dot { width: 7px; height: 7px; border-radius: 2px; background: var(--good); box-shadow: 0 0 10px var(--good); flex: none; }
.dot.d1 { background: var(--lilac); box-shadow: none; }
.dot.d2 { background: var(--accent); box-shadow: none; }
.dot.d3 { background: var(--line-2); box-shadow: none; }

.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.chip {
  font: inherit; font-size: 13px; display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: var(--radius-sm); border: 1px solid var(--line-2);
  background: var(--surface); color: var(--ink-2); cursor: pointer;
}
.chip:hover { border-color: var(--lavender); color: var(--ink); }
.chip small { color: var(--muted); margin-left: 2px; }
.chip.active { background: rgba(123, 92, 255, 0.16); border-color: var(--accent); color: var(--ink); }
.chip.active small { color: var(--lavender); }
.chip .chain-icon { width: 18px; height: 18px; }

.pill-chain {
  display: inline-flex; align-items: center; gap: 5px; vertical-align: middle; font-style: normal;
  font-size: 11px; padding: 2px 8px; border: 1px solid var(--line-2); border-radius: 4px; color: var(--ink-2); background: var(--surface);
}
.chain-icon { width: 16px; height: 16px; border-radius: 50%; object-fit: cover; flex: none; background: #fff; }

.tabs { display: flex; gap: 0; border: 1px solid var(--line-2); border-radius: var(--radius-sm); overflow: hidden; }
.tab {
  font: inherit; font-size: 13px; border: 0; background: transparent; color: var(--muted);
  padding: 8px 14px; cursor: pointer; border-right: 1px solid var(--line-2);
}
.tab:last-child { border-right: 0; }
.tab:hover { color: var(--ink); }
.tab.active { background: var(--ink); color: #08061a; font-weight: 600; }

/* ---------------------------------------------------------------- home hero */
.hero {
  max-width: 1200px; margin: 0 auto; padding: clamp(24px, 5vw, 64px) clamp(16px, 3vw, 32px) 32px;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); column-gap: 48px; align-items: center;
  overflow-x: clip;
}
.hero > :not(.stage) { grid-column: 1; }
.hero > .stage { grid-column: 2; grid-row: 1 / span 4; }
.hero .pill { justify-self: start; }
h1 { font-size: clamp(40px, 6.6vw, 78px); line-height: 0.98; letter-spacing: -0.05em; margin: 22px 0 20px; text-wrap: balance; }
.lead { font-size: clamp(16px, 1.6vw, 18px); color: var(--muted); max-width: 540px; margin: 0; line-height: 1.6; }
/* hero headline: one block, the word "vault" carries the ribbon and a hand-drawn swoosh under it */
.hero-title { font-weight: 600; letter-spacing: -0.055em; max-width: 12ch; margin: 0 0 28px; }
.hero-title em { position: relative; display: inline-block; font-weight: 700; padding-right: .04em; }
.hero-title em::after {
  content: ""; position: absolute; left: -2%; right: -4%; bottom: -0.12em; height: .22em; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%23f4f1ff'/%3E%3Cstop offset='.5' stop-color='%23a99bff'/%3E%3Cstop offset='1' stop-color='%235b3bf5'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M2 14 C 50 4, 120 2, 198 8' fill='none' stroke='url(%23g)' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.hero .lead { border-left: 2px solid var(--accent); padding-left: 18px; }
.cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 40px; max-width: 540px;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  background: var(--surface);
}
.stats div { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-right: 1px solid var(--line-2); min-width: 0; }
.stats div:last-child { border-right: 0; }
.stats b { font-family: var(--display); font-size: 28px; letter-spacing: -0.04em; }
.stats span { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

/* hero stage: the top-floor collection of every chain, fanned out flat */
.stage { position: relative; aspect-ratio: 10 / 6.6; width: 100%; }
.stage::before {
  content: ""; position: absolute; inset: 5% 0 15%; z-index: 0; pointer-events: none;
  background: radial-gradient(closest-side, rgba(91, 59, 245, 0.35), transparent);
}
.card3d {
  position: absolute; top: 14%; width: 26%; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--line-2); z-index: 1;
  box-shadow: 0 30px 60px -18px rgba(0, 0, 0, 0.95);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.card3d img { width: 100%; height: 100%; object-fit: cover; display: block; }
.c-l2 { left: 0; top: 24%; transform: rotate(-10deg); z-index: 1; }
.c-l1 { left: 14.5%; top: 14%; transform: rotate(-5deg); z-index: 2; }
.c-r1 { right: 14.5%; top: 14%; transform: rotate(5deg); z-index: 2; }
.c-r2 { right: 0; top: 24%; transform: rotate(10deg); z-index: 1; }
.c-mid { left: 33%; top: 2%; width: 34%; z-index: 3; border-color: transparent; box-shadow: var(--glow), 0 40px 80px -20px rgba(0, 0, 0, 0.95); }
.c-l2 img, .c-l1 img, .c-r1 img, .c-r2 img { filter: brightness(.82); }
.stage:hover .c-l2 { transform: rotate(-13deg) translateX(-8px); }
.stage:hover .c-l1 { transform: rotate(-7deg) translateX(-4px); }
.stage:hover .c-r1 { transform: rotate(7deg) translateX(4px); }
.stage:hover .c-r2 { transform: rotate(13deg) translateX(8px); }
.holo {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit; padding: 1.5px; background: var(--ribbon);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.c-label {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; flex-direction: column; gap: 2px;
  padding: 28px 10px 9px; font-size: 11px; font-weight: 600; color: var(--ink);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.92));
}
.c-name { display: flex; align-items: center; gap: 5px; min-width: 0; }
.c-name > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-name .chain-icon { width: 14px; height: 14px; }
.c-label b { font-family: var(--mono); font-weight: 500; color: var(--lavender); white-space: nowrap; }
/* side cards are partly covered: chain + floor only, on the visible edge */
.card3d:not(.c-mid) .c-label { flex-direction: row; align-items: center; gap: 4px; font-size: 10px; padding: 22px 8px 8px; }
.card3d:not(.c-mid) .c-name > span { display: none; }
.c-r1 .c-label, .c-r2 .c-label { justify-content: flex-end; }
.c-mid .c-label { gap: 3px; padding: 34px 14px 12px; font-size: 14px; }
.c-mid .c-label b { font-size: 13px; }
.c-mid .c-name .chain-icon { width: 16px; height: 16px; }
.stage .tag {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 4; white-space: nowrap;
  display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--ink-2);
  padding: 9px 14px; border-radius: var(--radius-sm); background: rgba(11, 10, 18, 0.92);
  border: 1px solid var(--line-2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.stage .tag b { color: var(--ink); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero > .stage { grid-column: 1; grid-row: auto; margin-top: 40px; max-width: 560px; justify-self: center; }
  .stats { max-width: none; }
}
@media (max-width: 520px) {
  .stage { aspect-ratio: 10 / 7.4; }
  .card3d:not(.c-mid) .c-label { font-size: 8.5px; padding: 18px 5px 6px; }
  .card3d:not(.c-mid) .c-name .chain-icon { width: 11px; height: 11px; }
  .c-mid .c-label { font-size: 11.5px; padding: 26px 10px 9px; }
  .c-mid .c-label b { font-size: 11px; }
  .stage .tag { font-size: 11px; padding: 8px 10px; }
  .stats div { padding: 12px; }
  .stats b { font-size: 21px; }
  .stats span { font-size: 9.5px; }
}

/* ---------------------------------------------------------------- rules ticker */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg-2); padding: 0; margin-top: 48px; }
/* Two identical groups slide left by exactly one group width, so the loop has no seam.
   The rules are static HTML, so the strip shows even before (or without) the page script. */
.track { display: flex; width: max-content; animation: marquee 45s linear infinite; will-change: transform; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.rules-group { display: flex; flex: none; }
@media (hover: hover) { .marquee:hover .track { animation-play-state: paused; } }
.rule {
  display: flex; align-items: baseline; gap: 12px; padding: 16px 28px; border-right: 1px solid var(--line); white-space: nowrap; flex: none;
}
.rule small { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--lavender); }
.rule span { font-size: 14px; color: var(--ink-2); }
@keyframes marquee { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
@media (prefers-reduced-motion: reduce) {
  .track { animation: none; }
  .marquee { overflow-x: auto; scrollbar-width: none; }
  .marquee::-webkit-scrollbar { display: none; }
  .rules-group[aria-hidden] { display: none; }
}
@media (max-width: 520px) { .rule { padding: 13px 20px; gap: 10px; } .rule span { font-size: 13px; } }

/* ---------------------------------------------------------------- sections */
.section { max-width: 1200px; margin: 0 auto; padding: clamp(56px, 8vw, 96px) clamp(16px, 3vw, 32px) 0; }
h2 { font-size: clamp(26px, 3.6vw, 36px); margin: 0 0 24px; }
.row-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.row-head h2 { margin: 0; }
.row-head h2::before {
  content: ""; display: block; width: 28px; height: 3px; border-radius: 2px; background: var(--ribbon); margin-bottom: 14px;
}
.more { text-align: center; margin-top: 28px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin: 10px 0 8px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); line-height: 1.6; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.num { font-family: var(--mono); font-size: 12px; color: var(--lavender); }

/* coin cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.coin, a.coin {
  display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: border-color .15s, transform .15s;
}
.coin:hover { border-color: var(--accent); transform: translateY(-2px); }
.coin .art { aspect-ratio: 16 / 9; display: grid; place-items: center; font-family: var(--display); font-size: 40px; font-weight: 700; color: #fff; border-bottom: 1px solid var(--line); }
.coin .art.has-img img { aspect-ratio: 16 / 9; }
.coin .body { padding: 16px; }
.coin h4 { margin: 0; font-size: 17px; display: flex; justify-content: space-between; gap: 8px; }
.coin h4 small { font-family: var(--mono); color: var(--lavender); font-weight: 400; font-size: 12px; }
.coin .meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.coin .meta b { color: var(--ink); }
.coin .meta .collects b { margin-left: 0; }
.coin .pill-chain { display: inline-flex; margin-top: 6px; }
.bar { height: 4px; border-radius: 2px; background: var(--surface-3); margin-top: 14px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--ribbon); }

.has-img { padding: 0; overflow: hidden; background: var(--surface-2); }
.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.collects { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.collects .col-logo { border-radius: 4px; }
.col-logo { border-radius: 6px; object-fit: cover; flex: none; background: var(--surface-3); display: inline-grid; place-items: center; }
.col-logo-fallback { color: #fff; font-weight: 700; font-size: 14px; }

/* top floors rail */
.top-nfts .muted { font-size: 13.5px; margin-top: 6px; max-width: 520px; }
.rail-nav { display: flex; gap: 6px; }
.rail-btn {
  width: 40px; height: 40px; border-radius: var(--radius-sm); font: inherit; font-size: 16px; cursor: pointer;
  color: var(--ink); background: transparent; border: 1px solid var(--line-2);
}
.rail-btn:hover { border-color: var(--lavender); background: rgba(123, 92, 255, 0.1); }
.rail {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 clamp(16px, 3vw, 32px);
  padding: 4px clamp(16px, 3vw, 32px) 20px; margin: 0 calc(-1 * clamp(16px, 3vw, 32px)); scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.profile {
  flex: 0 0 264px; scroll-snap-align: start; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); transition: border-color .15s;
}
.profile:hover { border-color: var(--accent); }
.p-img { position: relative; aspect-ratio: 1; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.p-img > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.p-rank {
  position: absolute; left: 10px; bottom: 10px; font-family: var(--display); font-weight: 700; font-size: 34px; line-height: 1;
  letter-spacing: -0.04em; color: #fff; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.8);
}
.p-img::after {
  content: ""; position: absolute; inset: auto 0 0; height: 45%; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.6));
}
.p-rank { z-index: 1; }
.p-img .pill-chain { position: absolute; right: 10px; top: 10px; background: rgba(0, 0, 0, 0.75); border-color: var(--line-2); padding: 3px 8px; }
.p-img .pill-chain .chain-icon { width: 14px; height: 14px; }
.p-body { padding: 14px 16px 16px; }
.p-body h3 { margin: 0; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-floor { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; }
.p-floor b { font-family: var(--display); font-size: 22px; letter-spacing: -0.03em; color: var(--lavender); }
.p-floor span { font-size: 12.5px; color: var(--muted); }
.profile dl { display: grid; grid-template-columns: repeat(3, 1fr); margin: 12px 0 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.profile dl div { padding: 7px 8px; border-right: 1px solid var(--line); min-width: 0; }
.profile dl div:last-child { border-right: 0; }
.profile dt { font-family: var(--mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.profile dd { margin: 2px 0 0; font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-actions { display: flex; gap: 6px; }
.p-actions .btn { flex: 1; padding: 9px; font-size: 13px; white-space: nowrap; }
@media (max-width: 520px) { .profile { flex-basis: 78%; } .rail-nav { display: none; } }

/* faq */
.faq details { border-bottom: 1px solid var(--line); padding: 18px 2px; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font-family: var(--display); font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--lavender); font-family: var(--mono); font-size: 18px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--muted); line-height: 1.65; margin: 12px 0 0; }

/* ---------------------------------------------------------------- footer */
.footer {
  max-width: 1200px; margin: 96px auto 0; padding: 36px clamp(16px, 3vw, 32px) 40px;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 40px; align-items: start;
}
.footer > div, .footer p { min-width: 0; }
.footer .brand { margin-bottom: 12px; }
.footer p { color: var(--muted); max-width: 420px; margin: 0; font-size: 14px; }
.foot-links { display: grid; grid-template-columns: repeat(2, auto); gap: 8px 32px; font-size: 14px; color: var(--muted); }
.foot-links a:hover { color: var(--ink); }
.footer small { grid-column: 1 / -1; color: var(--muted); font-family: var(--mono); font-size: 11px; padding-top: 18px; border-top: 1px solid var(--line); }
@media (max-width: 760px) { .footer { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- dialogs, forms, toast */
dialog {
  border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg-2); color: var(--ink);
  padding: 24px; width: min(440px, calc(100% - 32px)); box-shadow: var(--glow);
}
dialog::backdrop { background: rgb(0 0 0 / .7); backdrop-filter: blur(4px); }
.dlg-head { display: flex; justify-content: space-between; align-items: center; }
.dlg-head h3 { margin: 0; }
.x { background: none; border: 0; font-size: 18px; color: var(--muted); cursor: pointer; }
.x:hover { color: var(--ink); }
label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); margin-top: 16px; }
input, select, textarea, .wizard textarea {
  font: inherit; font-size: 15px; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 11px 12px;
}
input::placeholder, textarea::placeholder { color: #5f5a7d; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(123, 92, 255, 0.25); }
.search { width: 100%; margin: 20px 0; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 120px); z-index: 60; opacity: 0; pointer-events: none;
  width: max-content; max-width: min(560px, calc(100vw - 32px)); overflow-wrap: anywhere; text-align: center; line-height: 1.45;
  background: var(--surface-2); color: var(--ink); padding: 12px 18px; border-radius: var(--radius-sm); font-size: 14px;
  border: 1px solid var(--line-2); border-left: 3px solid var(--accent); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  transition: transform .3s, opacity .3s;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.banner {
  background: repeating-linear-gradient(-45deg, #120e24 0 12px, #0d0a1a 12px 24px); color: var(--lavender);
  border-bottom: 1px solid var(--line-2); text-align: center; font-family: var(--mono); font-size: 12px; padding: 8px 16px;
}

/* ---------------------------------------------------------------- inner pages */
.page { max-width: 1200px; margin: 0 auto; padding: clamp(32px, 6vw, 64px) clamp(16px, 3vw, 32px) 0; }
.page-title { font-size: clamp(32px, 5vw, 50px); line-height: 1.02; margin: 0 0 12px; letter-spacing: -0.045em; }
.lead-left { color: var(--muted); max-width: 680px; line-height: 1.65; margin: 0 0 28px; font-size: 16px; }
.sub { font-size: 20px; margin: 40px 0 14px; letter-spacing: -0.02em; }
.cta-left { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 16px 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.kpi { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; }
.kpi span { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.kpi b { font-family: var(--display); font-size: 24px; letter-spacing: -0.03em; }
@media (max-width: 760px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .kpi { padding: 14px; } .kpi b { font-size: 20px; } }
.coin-main .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 700px) { .coin-main .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 500; background: var(--bg-2); }
.table tbody tr:hover td { background: rgba(123, 92, 255, 0.05); }
.table tr:last-child td { border-bottom: 0; }
.table .empty { text-align: center; padding: 28px; }
.table a.btn { text-decoration: none; }
.list-tools { display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; }
.list-tools input { max-width: 420px; }

.addresses { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; font-size: 14px; }
.addresses dt { color: var(--muted); }
.addresses dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 760px) { .addresses { grid-template-columns: 1fr; gap: 2px 0; } .addresses dd { margin-bottom: 10px; } }
#mine { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
#mine h3 { margin: 0; }
#mine .table-wrap { width: 100%; }
.admin .card { margin-bottom: 14px; }
.admin .card h3 { margin: 0 0 8px; }
.steps-log { font-size: 13px; color: var(--muted); padding-left: 18px; }
.steps-log a { text-decoration: underline; }
.snippet { font-family: var(--mono); font-size: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.toc { display: flex; gap: 6px; flex-wrap: wrap; }
.toc a { font-size: 13px; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); }
.docs section { margin-top: 40px; max-width: 760px; }
.docs h2 { font-size: 24px; margin-bottom: 12px; }
.docs p, .docs li { line-height: 1.7; color: var(--ink-2); }
.docs code { font-family: var(--mono); font-size: 13px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; }

/* ---------------------------------------------------------------- launch wizard */
.wizard { max-width: 780px; }
.stepper { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
@media (min-width: 720px) { .stepper { grid-template-columns: repeat(4, 1fr); } }
.stepper li {
  display: flex; gap: 10px; align-items: center; padding: 14px; cursor: pointer; position: relative;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0;
}
.stepper li::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: transparent; }
.stepper li b {
  width: 26px; height: 26px; border-radius: 4px; display: grid; place-items: center; flex: none;
  font-family: var(--mono); font-size: 12px; font-weight: 500; border: 1px solid var(--line-2); color: var(--muted);
}
.stepper li span { display: flex; flex-direction: column; font-family: var(--display); font-weight: 600; font-size: 14px; }
.stepper li small { font-family: var(--body); font-weight: 400; color: var(--muted); font-size: 12px; }
.stepper li.active { background: rgba(123, 92, 255, 0.08); }
.stepper li.active::after { background: var(--ribbon); }
.stepper li.active b { background: var(--accent); color: #fff; border-color: var(--accent); }
.stepper li.done b { background: transparent; color: transparent; border-color: var(--good); position: relative; }
.stepper li.done b::after { content: "✓"; color: var(--good); position: absolute; }
.wizard .card { margin-bottom: 12px; }
.wizard .card h3 { margin: 0 0 6px; font-size: 20px; }
.wizard textarea { resize: vertical; }
.more-links { margin-top: 16px; }
.more-links summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--lavender); }
.wizard-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 4px; }
.wizard-nav #next { margin-left: auto; }

.preview { padding: 0; overflow: hidden; }
.pv-head { display: flex; gap: 14px; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.pv-head img, .badge-fallback { width: 56px; height: 56px; border-radius: var(--radius); object-fit: cover; flex: none; border: 1px solid var(--line-2); }
.badge-fallback { display: grid; place-items: center; line-height: 1; color: #fff; font-family: var(--display); font-weight: 700; font-size: 24px; background: var(--accent); }
.pv-head div:not(.badge-fallback) { display: flex; flex-direction: column; }
.pv-head b { font-family: var(--display); font-size: 18px; }
.pv-head .mono { color: var(--lavender); }
.pv-rows { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; margin: 0; padding: 16px 20px; border-bottom: 1px solid var(--line); font-size: 14px; }
.pv-rows dt { color: var(--muted); }
.pv-rows dd { margin: 0; text-align: right; font-weight: 500; }
.pv-rows .chain-icon { vertical-align: -3px; margin-left: 4px; }
.split { padding: 16px 20px; }
.split-head { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.bar3 { display: flex; height: 6px; gap: 2px; margin: 12px 0; }
.bar3 i { border-radius: 2px; }
.bar3 i:nth-child(1) { background: var(--lilac); }
.bar3 i:nth-child(2) { background: var(--accent); }
.bar3 i:nth-child(3) { background: var(--line-2); }
.split ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14px; }
.split li { display: flex; align-items: center; gap: 10px; }
.split li b { margin-left: auto; font-family: var(--mono); font-weight: 500; }

.col-list { display: grid; gap: 6px; max-height: 460px; overflow-y: auto; padding-right: 2px; }
.col {
  font: inherit; color: var(--ink); text-align: left; display: flex; gap: 12px; align-items: center; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); cursor: pointer;
}
.col:hover { border-color: var(--line-2); background: var(--surface-2); }
.col.selected { border-color: var(--accent); background: rgba(123, 92, 255, 0.1); }
.col-avatar { width: 44px; height: 44px; border-radius: var(--radius-sm); display: grid; place-items: center; color: #fff; font-weight: 700; flex: none; }
.col-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.col-main small { color: var(--muted); }
.col-meta { font-size: 12px; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.radio { margin-left: auto; width: 18px; height: 18px; border-radius: 4px; border: 1.5px solid var(--line-2); flex: none; }
.col.selected .radio { border: 5px solid var(--accent); background: #fff; }

.options { display: grid; gap: 8px; margin-top: 12px; }
.option {
  flex-direction: row; align-items: flex-start; gap: 12px; padding: 14px 16px; margin: 0; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); color: var(--ink);
}
.option input { margin-top: 3px; accent-color: var(--accent); }
.option span { display: flex; flex-direction: column; gap: 4px; }
.option small { color: var(--muted); font-size: 13px; line-height: 1.5; }
.option:has(input:checked) { border-color: var(--accent); background: rgba(123, 92, 255, 0.08); }
.tax { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 18px; }
.tax-head { display: flex; justify-content: space-between; align-items: baseline; }
.tax-head b { font-family: var(--mono); font-size: 26px; color: var(--lavender); }
.tax input[type=range] { width: 100%; accent-color: var(--accent); margin: 12px 0 4px; padding: 0; border: 0; background: none; box-shadow: none; }
.tax-scale { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); font-family: var(--mono); }
.summary { display: grid; grid-template-columns: max-content 1fr; gap: 0; margin: 12px 0; font-size: 14px; }
.summary dt, .summary dd { padding: 12px 0; border-bottom: 1px solid var(--line); margin: 0; }
.summary dt { color: var(--muted); }
.summary dd { text-align: right; font-weight: 500; }
.summary small { color: var(--muted); font-weight: 400; }
.fee-box { background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 16px; }
.fee-box div { display: flex; justify-content: space-between; font-size: 15px; }
.fee-box b { font-family: var(--mono); color: var(--lavender); }
.facts { padding-left: 18px; line-height: 1.6; font-size: 14px; color: var(--ink-2); }
.facts li { margin-bottom: 8px; }
.facts li::marker { color: var(--accent); }
.dest { display: flex; gap: 6px; }
.dest input { min-width: 180px; padding: 8px 10px; font-size: 13px; }

.field { margin-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 13px; color: var(--muted); }
.upload {
  flex-direction: row; align-items: center; gap: 14px; margin: 0; cursor: pointer; padding: 12px;
  border: 1px dashed var(--line-2); border-radius: var(--radius-sm); background: var(--bg); transition: border-color .15s;
}
.upload:hover { border-color: var(--accent); }
.upload.busy { opacity: .6; pointer-events: none; }
.upload-thumb {
  width: 64px; height: 64px; border-radius: var(--radius-sm); flex: none; overflow: hidden;
  display: grid; place-items: center; font-size: 26px; color: var(--lavender); background: var(--surface-2); border: 1px solid var(--line);
}
.upload-thumb img { width: 100%; height: 100%; object-fit: cover; }
.upload-text { display: flex; flex-direction: column; gap: 3px; }
.upload-text b { color: var(--ink); font-size: 15px; }
.upload-text small { font-size: 12px; }

/* ---------------------------------------------------------------- coin page */
.coin-hero { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.ch-top { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.ch-id { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.ch-id .page-title { margin: 0; overflow-wrap: anywhere; }
.coin-badge { width: 104px; height: 104px; border-radius: var(--radius); display: grid; place-items: center; color: #fff; font-family: var(--display); font-weight: 700; font-size: 22px; flex: none; border: 1px solid var(--line-2); overflow: hidden; }
.coin-hero .coin-badge { box-shadow: var(--glow); border-color: transparent; }
.coin-head { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.ticker { font-size: 13px; padding: 3px 9px; border-radius: 4px; color: #0a0716; background: var(--ribbon); font-weight: 500; }
.ch-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.meta-chip {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2);
  padding: 4px 10px 4px 4px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface);
}
.meta-chip.plain { padding-left: 10px; color: var(--muted); }
.meta-chip b { color: var(--ink); }
.coin-desc { margin: 0; line-height: 1.6; max-width: 680px; color: var(--ink-2); }
.token-line {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%; align-self: flex-start;
  padding: 5px 5px 5px 0; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--bg);
}
.tl-label { font-family: var(--mono); font-size: 11px; color: var(--lavender); padding: 4px 10px; border-right: 1px solid var(--line-2); }
.token-line .mono { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy {
  font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; flex: none;
  border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink); border-radius: 4px; padding: 4px 10px;
}
.copy:hover { border-color: var(--lavender); }
.ch-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.coin-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
@media (max-width: 960px) { .coin-grid { grid-template-columns: 1fr; } }
.coin-main .sub:first-of-type { margin-top: 28px; }
.chart-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.chart-card iframe { display: block; width: 100%; height: 440px; border: 0; }
@media (max-width: 600px) { .chart-card iframe { height: 340px; } }
.video-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #000; margin-bottom: 16px; aspect-ratio: 16 / 9; }
.video-card iframe { display: block; width: 100%; height: 100%; border: 0; }
.video-edit { margin-bottom: 16px; }
.video-edit summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--lavender); }
.video-form { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.video-form input { flex: 1 1 220px; min-width: 0; }
.video-edit .muted { margin: 8px 0 0; }

.coin-side { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 84px; }
@media (max-width: 960px) { .coin-side { position: static; } }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.side-card h3 { margin: 0 0 12px; font-family: var(--mono); font-weight: 500; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.side-card .big { font-family: var(--display); font-size: 32px; font-weight: 700; letter-spacing: -0.04em; margin: 0 0 8px; }
.side-card .big small { font-size: 14px; color: var(--lavender); font-weight: 500; }
.stat-list { display: flex; flex-direction: column; }
.stat-list > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.stat-list > div:last-child { border-bottom: 0; }
.stat-list span { color: var(--muted); }
.split-bar { height: 6px; border-radius: 2px; background: var(--surface-3); overflow: hidden; margin: 12px 0 8px; }
.split-bar i { display: block; height: 100%; background: var(--ribbon); }
.addr-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.addr-row:last-child { border-bottom: 0; }
.addr-row span { color: var(--muted); }
.addr-row a { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.addr-row .copy { padding: 2px 8px; }

/* ---------------------------------------------------------------- activity feed */
.feed-chips { margin: 0 0 12px; }
.feed { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.feed-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.feed-row:last-child { border-bottom: 0; }
.feed-row:hover { background: rgba(123, 92, 255, 0.04); }
.feed-icon { width: 36px; height: 36px; border-radius: var(--radius-sm); display: grid; place-items: center; font-size: 15px; background: var(--bg); border: 1px solid var(--line-2); color: var(--ink); }
.k-fees .feed-icon { color: var(--good); border-color: rgba(62, 230, 168, 0.35); }
.k-nft .feed-icon { color: var(--lavender); border-color: rgba(169, 155, 255, 0.4); }
.k-vault .feed-icon { color: #7aa8ff; border-color: rgba(122, 168, 255, 0.35); }
.k-raffle .feed-icon { color: var(--warn); border-color: rgba(255, 181, 71, 0.35); }
.feed-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.feed-main b { font-size: 14px; }
.feed-main span { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.feed-main a { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.feed-coin { font-family: var(--mono); font-size: 12px; font-weight: 500; margin-left: 4px; color: var(--lavender); }
.feed-side { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 12px; font-family: var(--mono); }
.feed-side small { color: var(--muted); }
@media (max-width: 520px) {
  .feed-row { grid-template-columns: 30px minmax(0, 1fr); }
  .feed-icon { width: 30px; height: 30px; }
  .feed-side { grid-column: 2; flex-direction: row; gap: 10px; align-items: center; }
}

/* ---------------------------------------------------------------- gallery */
.nft-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-top: 18px; }
.nft { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .15s; }
a.nft:hover { border-color: var(--accent); }
.nft-img { aspect-ratio: 1; display: grid; place-items: center; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.nft-img img { width: 100%; height: 100%; object-fit: cover; }
.nft-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.nft-body b { font-size: 14px; }
.nft-body .muted { display: flex; align-items: center; gap: 5px; }
.nft-status { align-self: flex-start; font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; padding: 2px 7px; border-radius: 4px; border: 1px solid currentColor; }
.s-in { color: var(--good); }
.s-given { color: var(--lavender); }
.s-burned { color: var(--warn); }

/* ================================================================ docs (Vaul handbook) */
.vd { max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 32px); }

/* hero: text left, live fee diagram right */
.vd-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; padding: clamp(28px, 5vw, 64px) 0 36px; }
.vd-kicker { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--lavender); margin: 0 0 14px; }
.vd-title { font-size: clamp(36px, 5.6vw, 64px); line-height: 1; letter-spacing: -0.05em; margin: 0 0 18px; font-weight: 600; }
.vd-title em { font-weight: 700; }
.vd-lead { color: var(--muted); font-size: 16.5px; line-height: 1.65; margin: 0; max-width: 560px; }
.vd-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 28px 0 0; border-top: 1px solid var(--line); }
.vd-facts div { padding: 14px 12px 0 0; }
.vd-facts dt { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.vd-facts dd { margin: 4px 0 0; font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -0.03em; }

.vd-diagram { position: relative; margin: 0; aspect-ratio: 320 / 260; border: 1px solid var(--line-2); border-radius: var(--radius); background:
  radial-gradient(70% 60% at 70% 50%, rgba(91, 59, 245, 0.18), transparent 70%), var(--bg-2); overflow: hidden; }
.vd-diagram figcaption { position: absolute; left: 14px; top: 12px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.vd-diagram svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.vd-pipe-line { fill: none; stroke-linecap: round; opacity: .95; }
/* small bright dashes travelling along each pipe */
.vd-spark { fill: none; stroke: rgba(255, 255, 255, 0.85); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 2 26; animation: vdFlow 1.4s linear infinite; }
@keyframes vdFlow { to { stroke-dashoffset: -28; } }
@media (prefers-reduced-motion: reduce) { .vd-spark { display: none; } }
.vd-node { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 6px 9px; border-radius: var(--radius-sm); background: rgba(0, 0, 0, 0.86); border: 1px solid var(--line-2); white-space: nowrap; }
.vd-node b { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--ink); }
.vd-node span { font-size: 10px; color: var(--muted); }
.n-fee { left: 21.9%; top: 15.4%; } .n-router { left: 71.9%; top: 50%; } .n-pons { left: 71.9%; top: 78.8%; }
.n-vault { left: 88%; top: 35.4%; border-color: rgba(169, 155, 255, 0.5); } .n-vault b { color: var(--lavender); }
.n-tre { left: 88%; top: 64.6%; }

/* sticky chapter bar */
.vd-bar {
  position: sticky; top: 64px; z-index: 20; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
  margin: 0 calc(-1 * clamp(16px, 3vw, 32px)); padding: 10px clamp(16px, 3vw, 32px);
  background: rgba(0, 0, 0, 0.88); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-block: 1px solid var(--line);
}
.vd-bar::-webkit-scrollbar { display: none; }
.vd-bar a { flex: none; font-size: 13.5px; color: var(--muted); padding: 7px 12px; border-radius: var(--radius-sm); border: 1px solid transparent; }
.vd-bar a:hover { color: var(--ink); }
.vd-bar a.on { color: var(--ink); border-color: var(--line-2); background: var(--surface-2); box-shadow: inset 0 -2px 0 var(--accent); }

/* chapters */
.vd-body { max-width: 820px; margin: 0 auto; }
.vd-ch { padding: 56px 0 8px; scroll-margin-top: 130px; }
.vd-ch + .vd-ch { border-top: 1px solid var(--line); margin-top: 40px; }
.vd-ch > header { margin-bottom: 18px; }
.vd-ch > header span { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--lavender); }
.vd-ch > header span::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--ribbon); }
.vd-ch > header h2 { font-size: clamp(26px, 3.6vw, 36px); line-height: 1.1; letter-spacing: -0.04em; margin: 10px 0 0; }
.vd-ch p, .vd-ch li { color: var(--ink-2); line-height: 1.75; font-size: 16px; }
.vd-ch p { margin: 0 0 16px; }
.vd-ch a { color: var(--lavender); text-decoration: underline; text-decoration-color: rgba(169, 155, 255, 0.4); text-underline-offset: 3px; }
.vd-ch code { font-family: var(--mono); font-size: 13px; color: var(--lilac); background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; }
.vd-ch h3 { font-size: 17px; margin: 0 0 8px; letter-spacing: -0.02em; }
.vd-h3 { margin-top: 32px !important; }
.vd-small { font-size: 13.5px !important; color: var(--muted) !important; }

/* basics: vertical pipeline */
.vd-pipe { list-style: none; margin: 24px 0; padding: 0; position: relative; }
.vd-pipe::before { content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px; background: linear-gradient(180deg, var(--lilac), var(--violet)); opacity: .5; }
.vd-pipe li { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 10px 0; }
.vd-pipe i { width: 44px; height: 44px; border-radius: var(--radius); display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line-2); color: var(--lavender); z-index: 1; }
.vd-pipe svg, .vd-policies svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vd-pipe b { font-family: var(--display); font-size: 17px; display: block; margin-top: 2px; }
.vd-pipe p { margin: 2px 0 0; font-size: 15px; color: var(--muted); }
.vd-quote { margin: 28px 0 0; padding: 22px 24px; border-radius: var(--radius); font-family: var(--display); font-size: clamp(19px, 2.4vw, 23px); line-height: 1.35; letter-spacing: -0.02em; color: var(--ink);
  background: linear-gradient(135deg, rgba(123, 92, 255, 0.16), rgba(123, 92, 255, 0.02)); border: 1px solid rgba(123, 92, 255, 0.3); }

/* launch: 4 cards */
.vd-grid4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 20px 0; }
.vd-grid4 article { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.vd-grid4 small { font-family: var(--mono); font-size: 11px; color: var(--lavender); }
.vd-grid4 b { display: block; font-family: var(--display); font-size: 17px; margin: 6px 0 4px; }
.vd-grid4 p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }

.vd-note { margin: 18px 0; padding: 14px 16px; border-radius: var(--radius-sm); font-size: 14.5px; line-height: 1.6; color: var(--ink-2);
  border: 1px solid rgba(123, 92, 255, 0.3); background: rgba(123, 92, 255, 0.07); }
.vd-note b { color: var(--ink); }
.vd-note.warn { border-color: rgba(255, 181, 71, 0.35); background: rgba(255, 181, 71, 0.06); }
.vd-note.warn b { color: var(--warn); }

/* money */
.vd-split { margin: 22px 0; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.vd-split-bar { display: flex; gap: 3px; height: 44px; margin-bottom: 12px; }
.vd-split-bar i { width: var(--w); display: flex; align-items: center; padding: 0 12px; font-style: normal; font-size: 12.5px; font-weight: 600; border-radius: 6px; white-space: nowrap; overflow: hidden; }
.vd-split-bar i:nth-child(1) { background: var(--ribbon); color: #0a0716; }
.vd-split-bar i:nth-child(2) { background: var(--violet); color: #fff; }
.vd-split-bar i:nth-child(3) { background: var(--surface-3); color: var(--ink-2); }
.vd-split .vd-small { margin: 0; }
.vd-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.vd-two > div { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.vd-two p { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--muted); }

/* vault rules + policies */
.vd-rules { list-style: none; margin: 18px 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.vd-rules li { position: relative; padding: 13px 16px 13px 46px; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.6; }
.vd-rules li:last-child { border-bottom: 0; }
.vd-rules li::before { content: ""; position: absolute; left: 16px; top: 16px; width: 16px; height: 16px; border-radius: 4px;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5'/%3E%3C/svg%3E") center / 14px no-repeat; }
.vd-policies { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 12px 0 20px; }
.vd-policies article { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.vd-policies i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: var(--radius-sm); color: var(--lavender); background: rgba(123, 92, 255, 0.12); }
.vd-policies b { display: block; font-family: var(--display); font-size: 17px; margin: 12px 0 4px; }
.vd-policies p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }

/* numbered steps (giveaways, chains) */
.vd-steps { list-style: none; counter-reset: s; margin: 18px 0; padding: 0; display: grid; gap: 8px; }
.vd-steps li { counter-increment: s; position: relative; padding: 14px 16px 14px 58px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.vd-steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 16px; top: 14px; font-family: var(--mono); font-size: 13px; color: var(--lavender); }
.vd-steps b { font-family: var(--display); font-size: 16px; }
.vd-steps p { margin: 4px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--muted); }

/* keeper: can / cannot */
.vd-cando ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.vd-cando li { position: relative; padding-left: 24px; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.vd-cando li::before { position: absolute; left: 0; top: 0; font-family: var(--mono); font-weight: 500; }
.vd-cando .yes h3 { color: var(--good); } .vd-cando .yes li::before { content: "+"; color: var(--good); }
.vd-cando .no h3 { color: var(--warn); } .vd-cando .no li::before { content: "×"; color: var(--warn); }
.vd-list { margin: 10px 0; padding-left: 20px; }
.vd-list li { margin-bottom: 6px; }
.vd-list li::marker { color: var(--accent); }

/* contracts */
.vd-addrs { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.vd-addr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.vd-addr:last-child { border-bottom: 0; }
.vd-addr-name b { display: block; font-family: var(--display); font-size: 15px; }
.vd-addr-name small { color: var(--muted); font-size: 12.5px; }
.vd-addr-val { display: inline-flex; align-items: center; gap: 8px; }
.vd-addr-val a { color: var(--ink) !important; text-decoration-color: var(--line-2) !important; }

/* risks + glossary */
.vd-risks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.vd-risks li { padding: 12px 16px 12px 44px; position: relative; border-radius: var(--radius-sm); border: 1px solid rgba(255, 181, 71, 0.22); background: rgba(255, 181, 71, 0.04); font-size: 15px; line-height: 1.6; }
.vd-risks li::before { content: "!"; position: absolute; left: 16px; top: 13px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #000; background: var(--warn); }
.vd-gloss { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 12px 0 0; }
.vd-gloss div { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.vd-gloss dt { font-family: var(--display); font-weight: 700; font-size: 14.5px; }
.vd-gloss dd { margin: 3px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--muted); }

@media (max-width: 900px) {
  .vd-hero { grid-template-columns: 1fr; gap: 28px; }
  .vd-diagram { max-width: 520px; }
}
@media (max-width: 640px) {
  .vd-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vd-facts div:nth-child(n+3) { padding-top: 12px; }
  .vd-grid4, .vd-two, .vd-policies, .vd-gloss { grid-template-columns: 1fr; }
  .vd-addr { grid-template-columns: 1fr; }
  .vd-split-bar i { padding: 0 8px; font-size: 11px; }
  .vd-node { padding: 4px 6px; } .vd-node b { font-size: 10.5px; } .vd-node span { font-size: 9px; }
  .vd-ch { padding-top: 44px; }
}
