/* WHEN — engraved figure, Solana light-bars, one star.
   Palette sampled from the brand art: mint at the crown, iris through the neck, orchid at the shoulder. */
:root {
  --void: #000;
  --mint: #2df5b4;
  --sky: #46b9ff;
  --iris: #6a5cff;
  --violet: #9b3dff;
  --orchid: #e431ea;
  --star: #f4f2ff;
  --haze: #a19cc8;
  --dim: #69658c;
  --line: rgba(160, 150, 255, 0.14);
  --line-strong: rgba(160, 150, 255, 0.28);
  --panel: rgba(110, 96, 255, 0.045);
  --panel-solid: #06050c;
  --beam: linear-gradient(100deg, var(--mint) 0%, var(--sky) 28%, var(--iris) 55%, var(--violet) 75%, var(--orchid) 100%);
  --beam-v: linear-gradient(180deg, var(--mint) 0%, var(--iris) 55%, var(--orchid) 100%);
  --buy: var(--mint);
  --sell: #ff5fc8;
  --serif: 'Bodoni Moda', 'Didot', 'Bodoni 72', Georgia, serif;
  --sans: 'Geist', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 9px;
  --wrap: 1240px;
  --header-h: 64px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--void);
  color: var(--star);
  font: 400 15px/1.55 var(--sans);
  font-feature-settings: 'ss01', 'tnum';
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: rgba(155, 61, 255, 0.5); color: #fff; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── The sky: rays from the star, scattered points, one ignition on load ── */
.sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.sky::before {
  content: '';
  position: absolute; inset: -20%;
  background: repeating-conic-gradient(from 0deg at 84% 190px, rgba(150, 140, 255, 0.075) 0deg 0.35deg, transparent 0.35deg 2.6deg);
  mask-image: radial-gradient(ellipse 60% 55% at 84% 190px, #000 0%, rgba(0, 0, 0, 0.35) 45%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 84% 190px, #000 0%, rgba(0, 0, 0, 0.35) 45%, transparent 75%);
}
.sky::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1.2px 1.2px at 12% 22%, #fff 99%, transparent),
    radial-gradient(1px 1px at 31% 64%, #cfc9ff 99%, transparent),
    radial-gradient(1.4px 1.4px at 47% 9%, #fff 99%, transparent),
    radial-gradient(1px 1px at 66% 41%, #b8f8e6 99%, transparent),
    radial-gradient(1px 1px at 88% 72%, #fff 99%, transparent),
    radial-gradient(1.2px 1.2px at 7% 86%, #e9c4ff 99%, transparent),
    radial-gradient(1px 1px at 56% 88%, #fff 99%, transparent),
    radial-gradient(1px 1px at 93% 33%, #fff 99%, transparent),
    radial-gradient(1px 1px at 22% 47%, #fff 99%, transparent);
  opacity: 0.7;
}
.polestar {
  position: absolute; left: 84%; top: 190px;
  width: 260px; height: 260px; margin: -130px 0 0 -130px;
  animation: ignite 2.4s cubic-bezier(0.2, 0.7, 0.1, 1) both;
}
.polestar svg { width: 100%; height: 100%; filter: drop-shadow(0 0 14px rgba(200, 170, 255, 0.9)) drop-shadow(0 0 40px rgba(155, 61, 255, 0.6)); }
/* The board's banner carries its own star; the sky star belongs to every other page. */
body:not(:has(.page-head)) .polestar, body:has(#claim-view[hidden]) .polestar { display: none; }
body:not(:has(.page-head)) .sky::before { opacity: 0.5; }
@media (max-width: 860px) { .polestar { left: 82%; top: 120px; width: 180px; height: 180px; margin: -90px 0 0 -90px; } }
@keyframes ignite {
  0% { opacity: 0; transform: scale(0.2) rotate(-12deg); }
  35% { opacity: 1; transform: scale(1.15) rotate(0); }
  100% { opacity: 0.85; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ── Layout ── */
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
main { padding-block: 28px 80px; }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 0 0 1px var(--line-strong), 0 0 18px rgba(106, 92, 255, 0.35); }
.wordmark {
  font: 500 30px/1 var(--serif);
  letter-spacing: -0.01em;
  background: var(--beam);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  padding-bottom: 3px;
}
.nav { display: flex; gap: 4px; }
.nav a { padding: 8px 12px; border-radius: 999px; color: var(--haze); font-weight: 500; font-size: 14.5px; transition: color 0.15s, background 0.15s; }
.nav a:hover { color: var(--star); background: var(--panel); }
.nav a[aria-current='page'] { color: var(--star); background: rgba(120, 100, 255, 0.12); }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.sol-price { color: var(--haze); font-size: 13.5px; white-space: nowrap; }
.sol-price b { color: var(--star); font-weight: 500; }
.menu-btn { display: none; background: none; border: 1px solid var(--line-strong); border-radius: 10px; width: 40px; height: 40px; cursor: pointer; }

/* ── Tape: live trades and launches ── */
.tape { border-bottom: 1px solid var(--line); background: rgba(0, 0, 0, 0.6); overflow: hidden; height: 38px; }
.tape .wrap { height: 100%; display: flex; align-items: center; gap: 22px; overflow: hidden; mask-image: linear-gradient(90deg, #000 85%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); }
.tape-item { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-size: 13px; color: var(--haze); flex: none; }
.tape-item img { width: 18px; height: 18px; border-radius: 5px; object-fit: cover; }
.tape-item .v-buy { color: var(--buy); }
.tape-item .v-sell { color: var(--sell); }
.tape-item .v-launch { color: var(--star); }
.tape-item b { color: var(--star); font-weight: 500; }
.tape-item.fresh { animation: tapeIn 0.9s ease-out; }
@keyframes tapeIn { 0% { opacity: 0; transform: translateX(-12px); text-shadow: 0 0 12px currentColor; } 100% { opacity: 1; transform: none; } }

/* ── Buttons: light-bars, skewed like the mark ── */
.btn {
  --skew: -16deg;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px;
  transform: skewX(var(--skew));
  border: 1px solid transparent; border-radius: 6px;
  font-weight: 600; font-size: 14.5px; letter-spacing: 0.005em;
  cursor: pointer; white-space: nowrap; user-select: none;
  transition: filter 0.15s, box-shadow 0.2s, background-color 0.15s, opacity 0.15s;
}
.btn > span { display: inline-flex; align-items: center; gap: 8px; transform: skewX(calc(var(--skew) * -1)); }
.btn-beam { background: var(--beam); color: #05030c; box-shadow: 0 0 22px rgba(106, 92, 255, 0.35); }
.btn-beam:hover { filter: brightness(1.08) saturate(1.1); box-shadow: 0 0 34px rgba(155, 61, 255, 0.55); }
.btn-line { background: linear-gradient(#030208, #030208) padding-box, var(--beam) border-box; color: var(--star); }
.btn-line:hover { background: linear-gradient(#0b0918, #0b0918) padding-box, var(--beam) border-box; }
.btn-ghost { background: var(--panel); border-color: var(--line-strong); color: var(--star); }
.btn-ghost:hover { border-color: rgba(160, 150, 255, 0.5); }
.btn-danger { background: rgba(255, 95, 200, 0.1); border-color: rgba(255, 95, 200, 0.5); color: #ffc2ea; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13.5px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-busy { opacity: 0.55; cursor: not-allowed; filter: none; }
.btn.is-busy > span::after { content: ''; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.wallet-btn { min-width: 150px; }
.wallet-wrap { position: relative; }
.wallet-menu { position: absolute; right: 0; top: calc(100% + 10px); min-width: 190px; padding: 6px; border-radius: var(--r-md); background: var(--panel-solid); border: 1px solid var(--line-strong); box-shadow: 0 20px 50px -10px #000; display: flex; flex-direction: column; }
.wallet-menu[hidden] { display: none; }
.wallet-menu a, .wallet-menu button { text-align: left; background: none; border: 0; padding: 9px 12px; border-radius: 8px; cursor: pointer; color: var(--haze); font-size: 14px; }
.wallet-menu a:hover, .wallet-menu button:hover { background: var(--panel); color: var(--star); }

/* ── Progress: a Solana bar filling with light ── */
.bar {
  position: relative; height: 10px;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
  background: rgba(160, 150, 255, 0.12);
}
.bar > i { position: absolute; inset: 0; background: var(--beam); clip-path: inset(0 calc(100% - var(--w, 0%)) 0 0); }
.bar-lg { height: 16px; clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }

/* ── Star: claimed creators glow, unclaimed wait ── */
.star { width: 14px; height: 14px; flex: none; display: inline-block; vertical-align: -2px; }
.star path { fill: none; stroke: var(--dim); stroke-width: 1.4; }
.star.lit path { fill: #fff; stroke: none; }
.star.lit { filter: drop-shadow(0 0 4px rgba(210, 180, 255, 0.95)) drop-shadow(0 0 10px rgba(155, 61, 255, 0.7)); }

/* ── Surfaces ── */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.panel + .panel { margin-top: 14px; }
.panel h3 { margin: 0 0 14px; font: 500 19px/1.2 var(--serif); letter-spacing: -0.005em; }
.hatch { position: relative; isolation: isolate; }
.hatch::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: repeating-linear-gradient(118deg, rgba(200, 190, 255, 0.05) 0 1px, transparent 1px 5px);
  mask-image: linear-gradient(160deg, #000, transparent 70%);
  -webkit-mask-image: linear-gradient(160deg, #000, transparent 70%);
}

/* ── Type ── */
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.015em; margin: 0; }
.display { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.04; }
.display-beam { background: linear-gradient(180deg, #fff 30%, #c9c3ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.1; }
.lede { color: var(--haze); font-size: 17px; line-height: 1.6; max-width: 56ch; }
.muted { color: var(--haze); }
.dim { color: var(--dim); }
.addr { font-family: var(--mono); font-size: 13px; letter-spacing: -0.01em; }
.up { color: var(--buy); }
.down { color: var(--sell); }

/* ── Official token + socials ── */
.socials { display: flex; gap: 4px; }
.socials a { padding: 6px 10px; border-radius: 999px; color: var(--haze); font-size: 13.5px; font-weight: 500; border: 1px solid var(--line); }
.socials a:hover { color: var(--star); border-color: var(--line-strong); }
.socials:empty { display: none; }
.nav-social { display: none; }
.ca-social { color: var(--star); border-color: var(--line-strong); }
.ca-pill { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px 0 5px; border-radius: 999px; cursor: pointer;
  background: linear-gradient(#05040b, #05040b) padding-box, var(--beam) border-box; border: 1px solid transparent; font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.ca-pill img { width: 24px; height: 24px; border-radius: 50%; }
.ca-pill .addr { color: var(--haze); font-weight: 400; font-size: 12.5px; }
.ca-pill:hover { box-shadow: 0 0 18px rgba(106, 92, 255, 0.4); }
.ca-pill[hidden] { display: none; }
.official-ca { margin-top: 26px; }
.ca-plate {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 12px 12px 12px 14px; border-radius: var(--r-md);
  background: linear-gradient(#04030a, #04030a) padding-box, var(--beam) border-box; border: 1px solid transparent;
  box-shadow: 0 0 40px -12px rgba(106, 92, 255, 0.55);
}
.ca-plate img { width: 40px; height: 40px; border-radius: 10px; }
.ca-body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ca-label { font-size: 13px; font-weight: 600; color: var(--star); }
.ca-stats { font-weight: 400; color: var(--haze); margin-left: 6px; }
.ca-addr { color: var(--star); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; user-select: all; }
.ca-soon { color: var(--haze); font-size: 13.5px; }
.ca-plate.is-soon { grid-template-columns: 40px minmax(0, 1fr); background: linear-gradient(#04030a, #04030a) padding-box, linear-gradient(100deg, rgba(45,245,180,.4), rgba(228,49,234,.4)) border-box; box-shadow: none; }
.ca-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; }
.ca-links .dim { font-size: 12.5px; }
#foot-ca .copy { margin-top: 8px; font-size: 12px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }

/* ── Board hero ── */
.hero-banner {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  aspect-ratio: 1280 / 427;
  background: #000 url('/assets/when-banner.jpg') center / cover no-repeat;
  box-shadow: 0 0 0 1px var(--line-strong), 0 30px 80px -30px rgba(155, 61, 255, 0.55), 0 10px 60px -40px rgba(45, 245, 180, 0.6);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 40px; margin-top: 36px; align-items: start; }
.hero-copy .display { max-width: 15ch; text-wrap: balance; }
.hero-copy .lede { margin: 18px 0 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note { margin-top: 22px; color: var(--dim); font-size: 14px; }
.hero-note b { color: var(--haze); font-weight: 500; }

.koth { padding: 18px; }
.koth-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.koth-head h3 { margin: 0; font-style: italic; }
.koth-card { display: grid; grid-template-columns: 92px 1fr; gap: 14px; align-items: center; }
.koth-card img { width: 92px; height: 92px; border-radius: var(--r-md); object-fit: cover; box-shadow: 0 0 0 1px var(--line-strong); }
.koth-mcap { font: 500 26px/1.1 var(--serif); margin: 4px 0 10px; }

/* ── Board toolbar ── */
.board-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: 56px 0 18px; }
.tabs { display: flex; flex-wrap: wrap; gap: 2px; }
.tab { background: none; border: 0; padding: 8px 12px; color: var(--dim); font-weight: 500; cursor: pointer; position: relative; border-radius: 8px; }
.tab:hover { color: var(--haze); }
.tab[aria-selected='true'] { color: var(--star); }
.tab[aria-selected='true']::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--beam); border-radius: 2px; }
.search { position: relative; width: min(340px, 100%); }
.search input { width: 100%; height: 42px; padding: 0 14px 0 38px; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 999px; }
.search svg { position: absolute; left: 13px; top: 12px; width: 18px; height: 18px; stroke: var(--dim); }

/* ── Coin card ── */
.coins { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.coin {
  display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px;
  padding: 14px; border-radius: var(--r-md);
  background: var(--panel); border: 1px solid var(--line);
  transition: border-color 0.15s, background 0.15s;
}
.coin:hover { border-color: rgba(160, 150, 255, 0.4); background: rgba(110, 96, 255, 0.08); }
.coin-art { width: 96px; height: 96px; border-radius: 10px; overflow: hidden; background: #0c0a18; }
.coin-art img { width: 100%; height: 100%; object-fit: cover; }
.coin-body { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.coin-title { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.coin-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.coin-sym { color: var(--haze); font-size: 13px; flex: none; }
.coin-desc { color: var(--dim); font-size: 13px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.coin-stats { display: flex; gap: 12px; font-size: 13px; color: var(--dim); margin-top: auto; white-space: nowrap; }
.coin-stats > span:first-child { color: var(--haze); margin-right: auto; }
.coin-stats b { color: var(--star); font-weight: 500; }
.coin .bar { margin-top: 4px; }
.official { font-size: 11.5px; font-weight: 600; padding: 2px 7px; border-radius: 999px; background: rgba(45, 245, 180, 0.12); color: var(--mint); flex: none; }
.coin.is-new { animation: coinIn 1.2s ease-out; }
@keyframes coinIn { 0% { box-shadow: 0 0 0 1px var(--mint), 0 0 30px rgba(45, 245, 180, 0.5); } 100% { box-shadow: none; } }

.chip { display: inline-flex; align-items: center; gap: 6px; min-width: 0; font-size: 13px; color: var(--haze); }
.chip img, .chip .av { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; flex: none; background: var(--beam-v); }
.chip span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip:hover span { color: var(--star); }

.empty { padding: 56px 20px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--r-lg); color: var(--haze); }
.empty h3 { font: 500 24px var(--serif); color: var(--star); margin: 0 0 8px; }
.empty p { margin: 0 auto 20px; max-width: 46ch; }
.more { display: flex; justify-content: center; margin-top: 26px; }

/* ── Forms ── */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label, .label { font-size: 13.5px; font-weight: 500; color: var(--haze); }
.field small { color: var(--dim); font-size: 12.5px; }
.input, .textarea {
  width: 100%; background: rgba(0, 0, 0, 0.55); border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  padding: 11px 13px; transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus, .textarea:focus { outline: none; border-color: var(--iris); box-shadow: 0 0 0 3px rgba(106, 92, 255, 0.25); }
.textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.prefix { position: relative; }
.prefix > span { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--dim); }
.prefix > .input { padding-left: 30px; }
.suffix { position: relative; }
.suffix > span { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); color: var(--dim); font-size: 13.5px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; }
.quick button { background: var(--panel); border: 1px solid var(--line-strong); border-radius: 999px; padding: 5px 11px; font-size: 13px; cursor: pointer; color: var(--haze); }
.quick button:hover { color: var(--star); border-color: rgba(160, 150, 255, 0.5); }
details.more-fields summary { cursor: pointer; color: var(--haze); font-weight: 500; margin-bottom: 14px; list-style: none; }
details.more-fields summary::-webkit-details-marker { display: none; }
details.more-fields summary::before { content: '+ '; color: var(--mint); }
details.more-fields[open] summary::before { content: '– '; }

.drop {
  aspect-ratio: 1; width: 100%; max-width: 200px; border-radius: var(--r-md);
  border: 1px dashed var(--line-strong); background: rgba(0, 0, 0, 0.5);
  display: grid; place-items: center; text-align: center; cursor: pointer; overflow: hidden; color: var(--dim); font-size: 13px; padding: 10px;
}
.drop:hover, .drop.over { border-color: var(--mint); color: var(--haze); }
.drop img { width: 100%; height: 100%; object-fit: cover; }

/* ── Launch page ── */
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 32px; align-items: start; }
.page-head { margin-bottom: 28px; }
.page-head .lede { margin-top: 12px; }
.form-section { padding: 22px; }
.form-section h3 { display: flex; align-items: baseline; justify-content: space-between; }
.coin-row { display: grid; grid-template-columns: 200px 1fr; gap: 18px; }
.creator-card { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; padding: 12px; border-radius: var(--r-md); border: 1px solid var(--line); background: rgba(0, 0, 0, 0.5); margin-top: 4px; }
.creator-card img, .creator-card .av { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--beam-v); }
.creator-card .who { font-weight: 600; display: flex; align-items: center; gap: 6px; }
.creator-card .meta { color: var(--haze); font-size: 13px; }
.creator-card.bad { border-color: rgba(255, 95, 200, 0.45); }
.creator-card.good { border-color: rgba(45, 245, 180, 0.45); }
.note { font-size: 13px; color: var(--haze); margin-top: 8px; }
.note.bad { color: #ffb3e4; }
.cost { width: 100%; border-collapse: collapse; font-size: 14px; }
.cost td { padding: 7px 0; color: var(--haze); }
.cost td:last-child { text-align: right; color: var(--star); }
.cost tr.total td { border-top: 1px solid var(--line-strong); padding-top: 12px; font-weight: 600; color: var(--star); }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.steps li:first-child { border-top: 0; }
.steps li::before { content: counter(s); font: 500 22px/1 var(--serif); background: var(--beam-v); -webkit-background-clip: text; background-clip: text; color: transparent; }
.steps b { display: block; font-weight: 600; margin-bottom: 2px; }
.steps span { color: var(--haze); font-size: 14px; }
.sticky { position: sticky; top: calc(var(--header-h) + 20px); }

/* ── Token page ── */
.token-head { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-bottom: 22px; }
.token-head > img { width: 72px; height: 72px; border-radius: var(--r-md); object-fit: cover; box-shadow: 0 0 0 1px var(--line-strong); }
.token-head .t-name { font: 500 34px/1.05 var(--serif); }
.token-head .t-sym { color: var(--haze); font-size: 15px; margin-left: 8px; font-family: var(--sans); }
.token-head .t-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 8px; color: var(--haze); font-size: 13.5px; }
.token-mcap { margin-left: auto; text-align: right; }
.token-mcap .big { font: 500 34px/1 var(--serif); }
.token-mcap small { color: var(--haze); display: block; margin-top: 4px; }
.copy { display: inline-flex; align-items: center; gap: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; cursor: pointer; color: var(--haze); }
.copy:hover { color: var(--star); border-color: var(--line-strong); }
.token-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.chart-panel { padding: 0; overflow: hidden; }
.chart-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.tf { display: flex; gap: 2px; }
.tf button { background: none; border: 0; color: var(--dim); padding: 5px 9px; border-radius: 7px; cursor: pointer; font-size: 13px; }
.tf button[aria-pressed='true'] { color: var(--star); background: rgba(120, 100, 255, 0.16); }
#chart { height: 420px; }
.feed-tabs { display: flex; gap: 2px; margin: 18px 0 12px; }
.trade-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.trade-table th { text-align: left; font-weight: 500; color: var(--dim); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.trade-table td { padding: 9px 10px; border-bottom: 1px solid rgba(160, 150, 255, 0.07); white-space: nowrap; }
.trade-table tr.fresh td { animation: rowIn 1.4s ease-out; }
@keyframes rowIn { 0% { background: rgba(106, 92, 255, 0.22); } 100% { background: transparent; } }
.table-scroll { overflow-x: auto; }

.thread { display: flex; flex-direction: column; gap: 10px; }
.post { padding: 12px 14px; border-radius: var(--r-md); background: var(--panel); border: 1px solid var(--line); }
.post-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 13px; color: var(--dim); margin-bottom: 6px; }
.post-head a { color: var(--haze); font-weight: 500; }
.post-head .tag { font-size: 11.5px; padding: 1px 7px; border-radius: 999px; background: rgba(155, 61, 255, 0.16); color: #d8bfff; }
.post-body { white-space: pre-wrap; word-break: break-word; }
.post-body .ref { color: var(--sky); cursor: pointer; }
.post.op { border-color: rgba(160, 150, 255, 0.3); }
.composer { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }

.trade-panel { padding: 16px; }
.side-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.side-switch button {
  height: 42px; border: 1px solid var(--line-strong); background: transparent; color: var(--haze);
  font-weight: 600; cursor: pointer; transform: skewX(-16deg); border-radius: 6px;
}
.side-switch button > span { display: inline-block; transform: skewX(16deg); }
.side-switch button[aria-pressed='true'].buy { background: var(--buy); border-color: var(--buy); color: #001a12; box-shadow: 0 0 20px rgba(45, 245, 180, 0.35); }
.side-switch button[aria-pressed='true'].sell { background: var(--sell); border-color: var(--sell); color: #23001a; box-shadow: 0 0 20px rgba(255, 95, 200, 0.35); }
.bal-line { display: flex; justify-content: space-between; font-size: 13px; color: var(--haze); margin: 10px 0 14px; }
.settings-row { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--haze); margin-bottom: 14px; }
.settings-row input { width: 70px; padding: 6px 8px; }
.curve-meta { display: flex; justify-content: space-between; font-size: 13.5px; margin-bottom: 10px; }
.curve-copy { font-size: 13px; color: var(--haze); margin: 12px 0 0; line-height: 1.5; }
.holders { list-style: none; margin: 0; padding: 0; font-size: 13.5px; }
.holders li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid rgba(160, 150, 255, 0.07); }
.holders li em { font-style: normal; color: var(--dim); font-size: 12px; margin-left: 6px; }
.creator-box { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center; }
.creator-box img, .creator-box .av { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: var(--beam-v); }
.creator-box .who { font-weight: 600; display: flex; align-items: center; gap: 6px; }
.creator-box p { margin: 12px 0 0; font-size: 13.5px; color: var(--haze); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 13.5px; margin-top: 12px; }
.kv dt { color: var(--dim); }
.kv dd { margin: 0; text-align: right; overflow: hidden; text-overflow: ellipsis; }

/* ── Claim + dashboard ── */
.claim-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 26px 0; }
.claim-steps .panel { margin: 0; }
.claim-steps .n { font: 500 30px/1 var(--serif); background: var(--beam-v); -webkit-background-clip: text; background-clip: text; color: transparent; }
.claim-steps h3 { margin: 10px 0 6px; }
.claim-steps p { margin: 0; color: var(--haze); font-size: 14px; }
.claim-box { max-width: 620px; }
.code-plate {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 18px 20px; border-radius: var(--r-md); margin: 14px 0;
  background: linear-gradient(#030208, #030208) padding-box, var(--beam) border-box; border: 1px solid transparent;
}
.code-plate code { font: 500 30px/1 var(--mono); letter-spacing: 0.04em; background: var(--beam); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dash-head { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-bottom: 22px; }
.dash-head img, .dash-head .av { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: var(--beam-v); box-shadow: 0 0 0 1px var(--line-strong), 0 0 30px rgba(155, 61, 255, 0.4); }
.dash-head h1 { font-size: 34px; display: flex; align-items: center; gap: 10px; }
.dash-head .star { width: 22px; height: 22px; }
.dash-head .actions { margin-left: auto; }
.dash-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.dash-grid .panel { margin: 0; }
.metric { font: 500 30px/1.1 var(--serif); margin: 2px 0 4px; }
.metric-sub { color: var(--haze); font-size: 13px; }
.dash-cols { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 14px; margin-top: 14px; align-items: start; }
.mini-coins { list-style: none; margin: 0; padding: 0; }
.mini-coins li { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.mini-coins li:first-child { border-top: 0; }
.mini-coins img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.switch { position: relative; width: 46px; height: 26px; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: rgba(160, 150, 255, 0.2); transition: background 0.15s; }
.switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform 0.15s; }
.switch input:checked + i { background: var(--mint); }
.switch input:checked + i::after { transform: translateX(20px); }
.switch input:focus-visible + i { outline: 2px solid var(--mint); outline-offset: 2px; }
.danger { border-color: rgba(255, 95, 200, 0.3); }
.secret { font: 13px/1.5 var(--mono); word-break: break-all; padding: 12px; border-radius: var(--r-sm); background: #000; border: 1px solid rgba(255, 95, 200, 0.4); filter: blur(5px); transition: filter 0.2s; cursor: pointer; user-select: all; }
.secret.shown { filter: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--haze); margin: 12px 0; }
.check input { margin-top: 3px; accent-color: var(--orchid); }

/* ── Creators directory ── */
.creators { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.creator-tile { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center; padding: 16px; border-radius: var(--r-md); background: var(--panel); border: 1px solid var(--line); }
.creator-tile:hover { border-color: rgba(160, 150, 255, 0.4); }
.creator-tile img, .creator-tile .av { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: var(--beam-v); }
.creator-tile .who { font-weight: 600; display: flex; align-items: center; gap: 6px; }
.creator-tile .meta { font-size: 13px; color: var(--haze); }

/* ── Modal + toast ── */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(6px); padding: 20px; }
.modal[hidden] { display: none; }
.modal-card { width: min(420px, 100%); background: var(--panel-solid); border: 1px solid var(--line-strong); border-radius: var(--r-lg); padding: 22px; box-shadow: 0 30px 90px -20px rgba(155, 61, 255, 0.5); }
.modal-card h3 { margin: 0 0 6px; font: 500 24px var(--serif); }
.modal-card p { margin: 0 0 16px; color: var(--haze); font-size: 14px; }
.wallet-list { display: grid; gap: 8px; }
.wallet-list button { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; border-radius: var(--r-md); border: 1px solid var(--line-strong); background: rgba(0, 0, 0, 0.5); cursor: pointer; font-weight: 500; }
.wallet-list button:hover { border-color: var(--iris); }
.wallet-list small { color: var(--dim); font-weight: 400; }
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 120; display: flex; flex-direction: column; gap: 8px; max-width: min(380px, calc(100% - 36px)); }
.toast { padding: 12px 16px; border-radius: var(--r-md); background: var(--panel-solid); border: 1px solid var(--line-strong); font-size: 14px; box-shadow: 0 14px 40px -10px #000; animation: toastIn 0.25s ease-out; }
.toast.ok { border-color: rgba(45, 245, 180, 0.55); }
.toast.err { border-color: rgba(255, 95, 200, 0.6); }
.toast a { color: var(--sky); text-decoration: underline; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } }

/* ── Footer: the ridge line from the banner ── */
.site-footer { position: relative; margin-top: 40px; padding: 140px 0 34px; color: var(--dim); font-size: 13.5px; overflow: hidden; }
.site-footer .ridge { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 150px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; position: relative; }
.site-footer a:hover { color: var(--star); }
.foot-links { display: flex; gap: 18px; }

/* ── Skeletons ── */
.skel { background: linear-gradient(90deg, rgba(160, 150, 255, 0.06), rgba(160, 150, 255, 0.13), rgba(160, 150, 255, 0.06)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; border-radius: var(--r-md); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ── Responsive ── */
@media (max-width: 1020px) {
  .token-grid { grid-template-columns: 1fr; gap: 14px; }
  /* Interleave columns so the trade panel sits right under the chart */
  .token-grid > div, .token-grid > aside { display: contents; }
  .token-grid .panel { margin: 0; }
  .token-grid .chart-panel { order: 1; }
  .token-grid .trade-panel { order: 2; }
  #curve-panel { order: 3; }
  .token-grid .feed-tabs { order: 4; margin: 8px 0 0; }
  #feed-thread, #feed-trades { order: 5; }
  #creator-panel { order: 6; }
  #info-panel { order: 7; }
  #holders-panel { order: 8; }
  .split, .dash-cols { grid-template-columns: 1fr; }
  .sticky { position: static; }
}
@media (max-width: 1120px) {
  .socials { display: none; }
}
@media (max-width: 860px) {
  .nav.open .nav-social { display: block; color: var(--star); }
  .nav a:not(.nav-social) + .nav-social { border-top: 1px solid var(--line); border-radius: 0; margin-top: 6px; padding-top: 16px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; padding: 10px 20px 16px; background: #030208; border-bottom: 1px solid var(--line-strong); box-shadow: 0 30px 60px -10px #000; }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .menu-btn { display: grid; place-items: center; }
  .sol-price { display: none; }
  .ca-pill .addr { display: none; }
  .claim-steps, .dash-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 28px); }
  .ca-pill { display: none; }
  .ca-plate { grid-template-columns: 32px minmax(0, 1fr) auto; gap: 10px; }
  .ca-plate img { width: 32px; height: 32px; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: 100%; }
  .tab { flex: none; }
  .site-header .wrap { gap: 12px; }
  .wordmark { font-size: 26px; }
  .wallet-btn { min-width: 0; padding: 0 14px; }
  .coin-row { grid-template-columns: 1fr; }
  .drop { max-width: 160px; }
  .row-2 { grid-template-columns: 1fr; }
  .coins { grid-template-columns: 1fr; }
  .coin { grid-template-columns: 76px minmax(0, 1fr); }
  .coin-art { width: 76px; height: 76px; }
  .token-mcap { margin-left: 0; text-align: left; width: 100%; }
  #chart { height: 320px; }
  .code-plate code { font-size: 22px; }
  .hero-banner { border-radius: 14px; }
}
