/* SUNK: the liquidity launchpad. Dark only. One accent: sonar aqua. Plus Jakarta Sans for words, JetBrains Mono for
   addresses and numbers. No backdrop blur and no canvas loops, so it stays smooth without a GPU. */
:root {
  --bg: #0d1014;
  --bg-deep: #0a0d10;
  --card: #141920;
  --card-2: #182028;
  --field: #0f1318;
  --line: rgba(255, 255, 255, .075);
  --line-2: rgba(255, 255, 255, .13);
  --text: #eef2f5;
  --muted: #9aa5b1;
  --dim: #6c7783;
  --aqua: #22d3ee;
  --aqua-hi: #4cdcf1;
  --aqua-ink: #03181e;
  --aqua-soft: rgba(34, 211, 238, .09);
  --aqua-line: rgba(34, 211, 238, .38);
  --bad: #fb7185;
  --r: 16px;
  --top-h: 64px;
  --sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font: 400 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
html.modal-open, html.menu-open { overflow: hidden; }
#view { flex: 1 0 auto; outline: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button { font: inherit; color: inherit; }
code, .mono { font-family: var(--mono); }
sub { font-size: .68em; line-height: 0; vertical-align: -.28em; }
::selection { background: rgba(34, 211, 238, .3); }
::placeholder { color: #5a6571; opacity: 1; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.aqua { color: var(--aqua); }
.nowrap { white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 12px; top: 12px; z-index: 300; padding: 8px 12px; border-radius: 8px; background: var(--aqua); color: var(--aqua-ink); font-weight: 700; }
:focus-visible { outline: 2px solid var(--aqua); outline-offset: 2px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 820px; }
.page { padding-top: 48px; padding-bottom: 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } .page { padding-top: 32px; } }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent; background: transparent; color: var(--text); font: 700 14px/1 var(--sans); white-space: nowrap; cursor: pointer; text-decoration: none; transition: background-color .15s, border-color .15s, color .15s; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary { background: var(--aqua); color: var(--aqua-ink); }
.btn-primary:hover { background: var(--aqua-hi); }
.btn-outline { border-color: var(--line-2); background: rgba(255, 255, 255, .02); }
.btn-outline:hover { border-color: var(--aqua-line); background: var(--aqua-soft); }
.btn-outline.is-on { font-family: var(--mono); font-weight: 600; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn-sm svg { width: 14px; height: 14px; }
.btn-block { width: 100%; }
.btn:disabled { cursor: not-allowed; }
.btn-primary:disabled { background: #1b5f6c; color: #bfe9f1; }
.btn-outline:disabled { opacity: .5; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .02); color: var(--text); cursor: pointer; flex: none; transition: border-color .15s, color .15s; }
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn.sm { width: 28px; height: 28px; }
.icon-btn.sm svg { width: 13px; height: 13px; }
.icon-btn:hover { border-color: var(--aqua-line); color: var(--aqua); }
.linkish { padding: 0; border: 0; background: none; cursor: pointer; text-align: left; }
.lnk { display: inline-flex; align-items: center; gap: 4px; color: var(--aqua); font-size: 13px; font-weight: 700; white-space: nowrap; }
.lnk svg { width: 13px; height: 13px; }
.lnk:hover { color: var(--aqua-hi); text-decoration: underline; text-underline-offset: 3px; }
.strong { color: var(--text); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.spin { display: inline-block; width: 16px; height: 16px; flex: none; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- the $SUNK CA bar */
.cabar { background: #0a1b20; border-bottom: 1px solid rgba(34, 211, 238, .2); font-size: 12.5px; }
.cabar-in { max-width: 1200px; margin: 0 auto; padding: 6px 24px; display: flex; align-items: center; justify-content: center; gap: 10px; min-width: 0; }
.cabar-k { color: var(--aqua); font-weight: 800; letter-spacing: .03em; white-space: nowrap; }
.cabar code { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--text); }
.cabar-btn { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid rgba(34, 211, 238, .3); background: transparent; color: var(--aqua); font: 700 12px/1 var(--sans); white-space: nowrap; cursor: pointer; flex: none; }
.cabar-btn svg { width: 13px; height: 13px; }
.cabar-btn:hover { background: var(--aqua-soft); }
@media (max-width: 560px) { .cabar-in { padding: 6px 16px; gap: 8px; } .cabar-btn { width: 28px; padding: 0; justify-content: center; } .cabar-btn span { display: none; } }

/* ---------------------------------------------------------------- header */
.top { position: sticky; top: 0; z-index: 40; background: rgba(13, 16, 20, .96); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1200px; height: var(--top-h); margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.brand i { font-style: normal; color: var(--aqua); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav a { padding: 8px 12px; border-radius: 999px; color: var(--muted); font-size: 14px; font-weight: 600; white-space: nowrap; transition: color .15s, background-color .15s; }
.nav a:hover { color: var(--text); }
.nav a.on { color: var(--text); background: rgba(255, 255, 255, .075); }
.top-right { display: flex; align-items: center; gap: 8px; flex: none; }
.x-btn svg { width: 14px; height: 14px; }
.menu-btn { display: none; }
.mnav { border-top: 1px solid var(--line); background: var(--bg); padding: 4px 24px 18px; max-height: calc(100dvh - var(--top-h)); overflow-y: auto; }
.mnav a:not(.btn) { display: block; padding: 13px 4px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 16px; font-weight: 600; }
.mnav a.on { color: var(--text); }
.mnav a.on::after { content: ''; display: inline-block; width: 6px; height: 6px; margin-left: 10px; border-radius: 50%; background: var(--aqua); vertical-align: middle; }
.mnav-foot { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 16px; }
.mnav-foot svg { width: 14px; height: 14px; }
@media (max-width: 1079px) { .nav { display: none; } .menu-btn { display: inline-grid; } .top-right { margin-left: auto; } }
@media (min-width: 1080px) { .mnav { display: none !important; } }
@media (max-width: 640px) { .top-in { padding: 0 16px; } .mnav { padding: 4px 16px 18px; } }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: radial-gradient(900px 520px at 50% -8%, rgba(34, 211, 238, .11), transparent 70%), linear-gradient(180deg, #0b1a20 0%, #0c151a 48%, var(--bg) 100%); }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-rings { position: absolute; left: 50%; top: 44%; width: 1600px; height: 1600px; transform: translate(-50%, -50%); }
.hero-rings circle { fill: none; stroke: var(--aqua); }
.hero-rings line { stroke: rgba(34, 211, 238, .05); }
.hero-depth { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 180px; }
.hero-depth path { fill: none; stroke: rgba(160, 220, 235, .055); stroke-width: 1; }
.ping { position: absolute; left: 50%; top: 44%; width: 920px; height: 920px; margin: -460px 0 0 -460px; border-radius: 50%; border: 1px solid rgba(34, 211, 238, .4); opacity: 0; transform: scale(.08); animation: ping 9s cubic-bezier(.22, .61, .36, 1) infinite; will-change: transform, opacity; }
.ping.p2 { animation-delay: 4.5s; }
.hero.still .ping { animation-play-state: paused; }
/* no GPU (app.js softwareRenderer) or reduced motion: the static rings only */
.still-art .ping { display: none; }
@media (prefers-reduced-motion: reduce) { .ping { display: none; } }
@keyframes ping { 0% { opacity: 0; transform: scale(.08); } 6% { opacity: .5; } 100% { opacity: 0; transform: scale(1); } }
.hero-in { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 68px; padding-bottom: 60px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.kicker.dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 0 3px rgba(34, 211, 238, .16); }
.hero-brand { display: flex; align-items: center; justify-content: center; gap: clamp(12px, 2vw, 26px); margin: 22px 0 24px; }
.hero-logo { width: clamp(76px, 11.5vw, 152px); height: clamp(76px, 11.5vw, 152px); flex: none; }
.hero-word { font-size: clamp(60px, 12.6vw, 164px); font-weight: 800; letter-spacing: -.05em; line-height: .88; color: #f3f7f9; }
.hero-word span { color: var(--aqua); }
.hero-tag { font-size: clamp(20px, 2.5vw, 27px); font-weight: 800; letter-spacing: -.015em; }
.hero-sub { max-width: 540px; margin-top: 10px; color: var(--muted); font-size: 15.5px; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.hero-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.hero-chips .chip b { color: var(--aqua); font-family: var(--sans); font-weight: 800; }
.hero-chips a.chip:hover { border-color: var(--aqua-line); color: var(--text); }
@media (max-width: 640px) { .hero-in { padding-top: 48px; padding-bottom: 44px; } .hero-sub { font-size: 14.5px; } .hero-cta .btn { flex: 1 1 100%; } }
@media (prefers-reduced-motion: reduce) { .ping { display: none; } }

/* ---------------------------------------------------------------- sections, chips, cards */
.sec { padding-top: 64px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 22px; }
.sec-head > div:first-child { min-width: 0; }
.h2 { font-size: clamp(24px, 3vw, 30px); font-weight: 800; letter-spacing: -.02em; }
.sec-head .kicker { margin-bottom: 8px; }
.sec-sub { margin-top: 4px; color: var(--muted); font-size: 13.5px; }
.sec-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .025); color: var(--muted); font-size: 12.5px; font-weight: 600; white-space: nowrap; transition: border-color .15s, color .15s; }
.chip b { color: var(--text); font-family: var(--mono); font-weight: 600; }
.chip svg { width: 13px; height: 13px; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: var(--aqua-soft); color: var(--aqua); font-size: 11px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.tag svg { width: 11px; height: 11px; }
.tag.mute { background: rgba(255, 255, 255, .06); color: var(--muted); }
.av.burn { border-color: var(--aqua-line); background: var(--aqua-soft); color: var(--aqua); }
.av.burn svg { width: 15px; height: 15px; }
.tag.bad { background: rgba(251, 113, 133, .1); color: var(--bad); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; min-width: 0; }
.card + .card { margin-top: 16px; }
.card-t { font-size: 16px; font-weight: 800; letter-spacing: -.005em; }
.card-s { margin-top: 4px; color: var(--muted); font-size: 13.5px; }
.card-h { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.box { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: rgba(255, 255, 255, .015); min-width: 0; }
.empty { padding: 44px 20px; border: 1px dashed var(--line-2); border-radius: var(--r); text-align: center; color: var(--muted); }
.empty h3 { margin-bottom: 6px; color: var(--text); font-size: 18px; font-weight: 800; }
.empty p + .btn, .empty p + div { margin-top: 18px; }
.empty.sm { padding: 26px 16px; }
.loading { display: grid; place-items: center; padding: 40px; color: var(--muted); }
.k { color: var(--dim); font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.v { margin-top: 3px; font: 600 15px/1.3 var(--mono); }
.prog { height: 5px; border-radius: 5px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.prog i { display: block; height: 100%; border-radius: inherit; background: var(--aqua); }

/* ---------------------------------------------------------------- avatars, addresses, code */
.av { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; overflow: hidden; border-radius: 50%; border: 1px solid var(--line); background: #1b242d; color: var(--muted); font-weight: 800; font-size: 16px; }
.av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.av.sm { width: 30px; height: 30px; font-size: 12px; }
.av.lg { width: 56px; height: 56px; font-size: 20px; }
.av.xl { width: 64px; height: 64px; font-size: 22px; }
.av.house { background: #0e1d23; border-color: var(--aqua-line); }
.av.house img { position: static; width: 72%; height: 72%; }
.addr { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; }
.addr code { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
code.inline { padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, .06); font-size: .88em; overflow-wrap: anywhere; word-break: break-all; }
pre.code { margin: 0; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-deep); color: #d5dee6; font: 500 12.5px/1.7 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
pre.code .c { color: var(--dim); }
pre.code .s { color: #8be3f2; }
pre.code .kw { color: var(--aqua); }

/* ---------------------------------------------------------------- explore: search + coin cards */
.search { display: flex; align-items: center; gap: 8px; width: 290px; max-width: 100%; height: 42px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); transition: border-color .15s, box-shadow .15s; }
.search:focus-within { border-color: var(--aqua); box-shadow: 0 0 0 3px rgba(34, 211, 238, .16); }
.search svg { width: 16px; height: 16px; flex: none; color: var(--dim); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: 500 14px var(--sans); }
.search input::-webkit-search-cancel-button { filter: grayscale(1); }
@media (max-width: 640px) { .sec-tools { width: 100%; } .search { flex: 1 1 180px; width: auto; } }
.coins { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1023px) { .coins { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .coins { grid-template-columns: minmax(0, 1fr); } }
.cc { position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); transition: border-color .15s, background-color .15s; }
.cc:hover { border-color: rgba(34, 211, 238, .3); background: var(--card-2); }
.cc-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.cc-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cc-id { flex: 1; min-width: 0; }
.cc-id b { display: block; overflow: hidden; font-size: 16px; font-weight: 800; white-space: nowrap; text-overflow: ellipsis; }
.cc-id span { display: block; overflow: hidden; color: var(--muted); font-size: 12.5px; white-space: nowrap; text-overflow: ellipsis; }
.cc-act { position: relative; z-index: 2; display: flex; gap: 6px; }
.cc .spark { width: 100%; height: 54px; }
.spark { color: var(--aqua); }
.spark.down { color: #7f8b98; }
.spark-flat { stroke: var(--line-2); stroke-width: 1.2; stroke-dasharray: 3 5; fill: none; }
.cc-stats { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.cc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.lpl { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.lpl span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lpl i { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--dim); }
.lpl.on i { background: var(--aqua); box-shadow: 0 0 0 3px rgba(34, 211, 238, .15); }
.lpl.bad i { background: var(--bad); }
.chg { font: 600 12px var(--mono); color: var(--muted); white-space: nowrap; }
.chg.up { color: var(--aqua); }
.grid-more { display: flex; justify-content: center; margin-top: 18px; }

/* ---------------------------------------------------------------- how it works */
.mech-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 20px; }
@media (max-width: 860px) { .mech-grid { grid-template-columns: minmax(0, 1fr); } }
.mech-steps { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.mech-steps button { display: flex; align-items: flex-start; gap: 14px; width: 100%; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); text-align: left; cursor: pointer; transition: border-color .2s, background-color .2s; }
.mech-steps button:hover { border-color: var(--line-2); }
.mech-steps button.on { border-color: var(--aqua-line); background: linear-gradient(180deg, rgba(34, 211, 238, .08), rgba(34, 211, 238, .02)), var(--card); }
.mech-steps .n { padding-top: 2px; color: var(--dim); font: 600 13px var(--mono); }
.mech-steps .on .n { color: var(--aqua); }
.mech-steps b { display: block; font-size: 15.5px; font-weight: 800; }
.mech-steps small { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; }
.mech-panel { position: relative; display: flex; flex-direction: column; min-height: 330px; overflow: hidden; padding: 28px; border-radius: var(--r); border: 1px solid var(--line); background: radial-gradient(520px 280px at 85% 0%, rgba(34, 211, 238, .1), transparent 70%), var(--card); }
.mech-panel svg.mech-rings { position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; pointer-events: none; }
.mech-rings circle { fill: none; stroke: rgba(34, 211, 238, .08); }
.mech-count { position: relative; color: var(--muted); font: 600 12px var(--mono); letter-spacing: .04em; }
.mech-big { position: relative; margin-top: auto; padding-top: 28px; font-size: clamp(64px, 8.6vw, 112px); font-weight: 800; letter-spacing: -.045em; line-height: 1; }
.mech-big small { margin-left: 6px; color: var(--aqua); font-size: .32em; letter-spacing: 0; }
.mech-cap { position: relative; margin-top: 10px; color: var(--aqua); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.mech-text { position: relative; max-width: 470px; margin-top: 12px; color: var(--muted); }
.mech-bar { position: relative; height: 2px; margin-top: 24px; overflow: hidden; border-radius: 2px; background: var(--line); }
.mech-bar i { display: block; height: 100%; background: var(--aqua); transform: scaleX(0); transform-origin: left center; }
.mech-bar i.run { transform: scaleX(1); transition: transform 6s linear; }
.mech-fade { animation: fadeup .35s ease-out; }
@keyframes fadeup { from { opacity: 0; transform: translateY(6px); } }
@media (max-width: 640px) { .mech-panel { min-height: 280px; padding: 22px; } }
@media (prefers-reduced-motion: reduce) { .mech-bar i.run { transition: none; } .mech-fade { animation: none; } }

/* ---------------------------------------------------------------- record rows */
.totals { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.rows { overflow: hidden; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); }
.rw { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 18px; border-top: 1px solid var(--line); }
.rw:first-child { border-top: 0; }
.rw-main { min-width: 0; }
.rw-main b { font-weight: 800; }
.rw-main .t { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.rw-main .d { margin-top: 2px; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.rw-main .d .mono { color: var(--text); font-size: 12.5px; }
.rw-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.rw-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 14px; }
.rw-time { color: var(--dim); font: 500 12px var(--mono); white-space: nowrap; }
.rows .empty { border: 0; border-radius: 0; }
.more { display: flex; justify-content: center; padding: 14px; border-top: 1px solid var(--line); }
@media (max-width: 640px) { .rw { grid-template-columns: auto minmax(0, 1fr); padding: 14px 16px; } .rw-side { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; } .rw-links { justify-content: flex-start; } }

/* ---------------------------------------------------------------- stats, tables */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stats.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat { min-width: 0; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); }
.stat .v { margin-top: 6px; overflow: hidden; font-size: 20px; white-space: nowrap; text-overflow: ellipsis; }
.stat small { display: block; margin-top: 2px; color: var(--dim); font-size: 12px; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .stats.three { grid-template-columns: minmax(0, 1fr); } .stat .v { font-size: 18px; } }
.tbl-wrap { overflow: hidden; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--dim); font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.tbl td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: middle; }
.tbl tbody tr:first-child td { border-top: 0; }
.tbl tbody tr { transition: background-color .15s; }
.tbl tbody tr.go { cursor: pointer; }
.tbl tbody tr.go:hover { background: rgba(255, 255, 255, .025); }
.tbl .num { text-align: right; font-family: var(--mono); white-space: nowrap; }
.tbl th.num { font-family: var(--sans); }
.tbl .rank { width: 44px; color: var(--dim); font: 500 12px var(--mono); }
.coin-cell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.coin-cell > span:last-child { min-width: 0; }
.coin-cell b { display: block; overflow: hidden; font-weight: 800; white-space: nowrap; text-overflow: ellipsis; }
.coin-cell small { display: block; color: var(--muted); font-size: 12px; }
@media (max-width: 720px) {
  .tbl thead { display: none; }
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 14px; padding: 14px 16px; border-top: 1px solid var(--line); }
  .tbl tbody tr:first-child { border-top: 0; }
  .tbl td { padding: 0; border: 0; text-align: left !important; min-width: 0; }
  .tbl td.full { grid-column: 1 / -1; }
  .tbl td.rank { display: none; }
  .tbl td[data-l]::before { content: attr(data-l); display: block; margin-bottom: 2px; color: var(--dim); font: 700 10.5px/1.4 var(--sans); letter-spacing: .09em; text-transform: uppercase; }
}
.foot-note { margin-top: 14px; color: var(--dim); font-size: 12.5px; }

/* ---------------------------------------------------------------- page heads, docs */
.page-title { margin-top: 8px; font-size: clamp(36px, 5.6vw, 58px); font-weight: 800; letter-spacing: -.04em; line-height: 1.02; }
.page-title.sm { font-size: clamp(30px, 4.2vw, 44px); }
.page-title span { color: var(--aqua); }
.lead { max-width: 640px; margin-top: 14px; color: var(--muted); font-size: 16px; }
.page-head { padding-bottom: 28px; }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 18px; }
.toc a:hover { border-color: var(--aqua-line); color: var(--text); }
.doc-sec { padding: 26px 0; border-top: 1px solid var(--line); scroll-margin-top: 92px; }
.doc-sec h2 { display: flex; align-items: baseline; gap: 12px; font-size: 21px; font-weight: 800; letter-spacing: -.01em; }
.doc-sec h2 span { color: var(--aqua); font: 600 13px var(--mono); }
.doc-sec p { margin-top: 10px; color: var(--muted); line-height: 1.72; }
.doc-sec p b { color: var(--text); font-weight: 700; }
.policy { margin-top: 12px; padding: 20px; border-radius: var(--r); border: 1px solid var(--aqua-line); background: linear-gradient(180deg, rgba(34, 211, 238, .06), rgba(34, 211, 238, .015)); }
.policy h2 { font-size: 19px; font-weight: 800; }
.policy p { margin-top: 8px; color: var(--muted); }
.policy ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); }
.policy li + li { margin-top: 4px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.h3 { margin: 34px 0 12px; font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.olist { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.olist li { display: flex; gap: 12px; color: var(--muted); font-size: 14.5px; }
.olist li::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%; border: 1px solid var(--line-2); color: var(--text); font: 600 12px var(--mono); }
.olist li > span { min-width: 0; padding-top: 2px; }
.olist b { color: var(--text); }
.ep { display: block; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); transition: border-color .15s; }
.ep + .ep { margin-top: 8px; }
.ep:hover { border-color: var(--aqua-line); }
.ep code { display: block; font-size: 13.5px; font-weight: 600; overflow-wrap: anywhere; }
.ep code i { color: var(--aqua); font-style: normal; }
.ep span { display: block; margin-top: 4px; color: var(--muted); font-size: 13.5px; }
.kv { margin: 0; }
.kv > div { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.kv > div:first-child { border-top: 0; padding-top: 0; }
.kv dt { color: var(--muted); flex: none; }
.kv dd { min-width: 0; margin: 0; overflow-wrap: anywhere; font-family: var(--mono); text-align: right; }
.kv dd.txt { font-family: var(--sans); font-weight: 600; }

/* ---------------------------------------------------------------- pumpswap, link */
.ways { display: grid; gap: 10px; }
.way { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .015); }
.way.ours { border-color: var(--aqua-line); background: var(--aqua-soft); }
.way-h { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; }
.way-h b { font-weight: 800; }
.way-h span { color: var(--muted); font: 600 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.way.ours .way-h span { color: var(--aqua); }
.way p { margin-top: 6px; color: var(--muted); font-size: 14px; }
.split2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 640px) { .split2 { grid-template-columns: minmax(0, 1fr); } }
.box .k + p { margin-top: 6px; color: var(--muted); font-size: 14px; }
.sttbl { overflow: hidden; border-radius: 12px; border: 1px solid var(--line); }
.sttbl > div { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 14px; }
.sttbl > div:first-child { border-top: 0; }
.sttbl span:first-child { color: var(--muted); }
.sttbl span:last-child { color: var(--aqua); font-weight: 700; }
.inline-form { display: flex; gap: 8px; }
.inline-form .input { flex: 1; }
@media (max-width: 560px) { .inline-form { flex-direction: column; } .inline-form .input { flex: none; } }
.input { width: 100%; min-width: 0; height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--field); color: var(--text); font: 500 14px var(--sans); outline: none; transition: border-color .15s, box-shadow .15s; }
.input.mono { font: 500 13px var(--mono); }
.input:focus { border-color: var(--aqua); box-shadow: 0 0 0 3px rgba(34, 211, 238, .16); }
.result { margin-top: 14px; padding: 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--field); }
.result .coin-cell { margin-bottom: 12px; }
.result p + p { margin-top: 8px; }
.result .btn-row { margin-top: 14px; }
.addr-card { display: grid; gap: 8px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--field); }
.addr-card + .addr-card { margin-top: 10px; }
.addr-card .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.addr-card b { font-size: 14px; }
.addr-card code { display: block; font-size: 13px; word-break: break-all; color: var(--text); }
.addr-card .acts { display: flex; gap: 6px; }
.ok-box { padding: 16px; border-radius: 12px; border: 1px solid var(--aqua-line); background: var(--aqua-soft); }
.ok-box b { color: var(--aqua); }

/* ---------------------------------------------------------------- coin page */
.back { display: flex; width: fit-content; align-items: center; gap: 6px; margin-bottom: 18px; color: var(--muted); font-size: 14px; font-weight: 600; }
.back svg { width: 15px; height: 15px; }
.back:hover { color: var(--text); }
.coin-head { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 16px; margin-bottom: 20px; }
.coin-head .id { flex: 1 1 220px; min-width: 0; }
@media (max-width: 640px) { .coin-head > .btn { width: 100%; } }
.coin-head h1 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 800; letter-spacing: -.02em; overflow-wrap: anywhere; }
.coin-head .sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 2px; color: var(--muted); font-size: 14px; }
.coin-desc { margin: -6px 0 20px; max-width: 760px; color: var(--muted); font-size: 14.5px; overflow-wrap: anywhere; }
.chart-card { margin-top: 16px; padding: 16px 16px 10px; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--field); }
.seg button { height: 30px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: 700 13px var(--sans); cursor: pointer; }
.seg button.on { background: rgba(255, 255, 255, .09); color: var(--text); }
.chart { position: relative; height: 320px; }
.chart svg { display: block; touch-action: pan-y; }
.chart .grid { stroke: rgba(255, 255, 255, .06); }
.chart .ax { fill: var(--dim); font: 500 11px var(--mono); }
.chart .cross { stroke: rgba(255, 255, 255, .28); stroke-dasharray: 3 3; }
.chart .hdot { fill: var(--aqua); stroke: var(--bg); stroke-width: 2; }
.chart-tip { position: absolute; left: 0; top: 2px; display: flex; gap: 8px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line-2); background: #1a222a; font-size: 12px; white-space: nowrap; pointer-events: none; }
.chart-tip b { font-family: var(--mono); font-weight: 600; }
.chart-tip span { color: var(--muted); }
.chart-empty { display: grid; place-items: center; height: 100%; color: var(--muted); }
@media (max-width: 640px) { .chart { height: 240px; } }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 16px; margin-top: 16px; }
.two > .card + .card { margin-top: 0; }
@media (max-width: 900px) { .two { grid-template-columns: minmax(0, 1fr); } }
.state-line { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; padding: 12px 14px; border-radius: 12px; background: var(--field); border: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }
.state-line .tag { margin-top: 1px; }
.ca-card { margin-top: 16px; }
.ca-card .addr code { font-size: 14px; }

/* ---------------------------------------------------------------- forms + the launch dialog */
.form { display: grid; gap: 16px; }
.field { position: relative; display: grid; gap: 7px; min-width: 0; }
.lbl { font-size: 13.5px; font-weight: 700; }
.lbl em { color: var(--muted); font-style: normal; font-weight: 500; }
.lbl em.req { margin-left: 4px; color: var(--aqua); font-size: 11.5px; font-weight: 700; }
.field input, .field textarea { width: 100%; min-width: 0; height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--field); color: var(--text); font: 500 15px var(--sans); outline: none; transition: border-color .15s, box-shadow .15s; }
.field textarea { height: auto; min-height: 84px; padding: 11px 14px 22px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus { border-color: var(--aqua); box-shadow: 0 0 0 3px rgba(34, 211, 238, .16); }
.count { position: absolute; right: 12px; bottom: 8px; color: var(--dim); font: 500 11px var(--mono); pointer-events: none; }
.amount { display: flex; align-items: center; border-radius: 12px; border: 1px solid var(--line-2); background: var(--field); transition: border-color .15s, box-shadow .15s; }
.amount:focus-within { border-color: var(--aqua); box-shadow: 0 0 0 3px rgba(34, 211, 238, .16); }
.field .amount input { border: 0; background: transparent; box-shadow: none; font-family: var(--mono); }
.amount > span { padding: 0 14px; color: var(--muted); font-size: 13px; font-weight: 700; }
.pairs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pair { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 6px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--field); cursor: pointer; }
.pair b { font-size: 14px; font-weight: 800; }
.pair small { color: var(--muted); font-size: 11px; font-weight: 600; }
.pair.on { border-color: var(--aqua); background: var(--aqua-soft); }
.pair.on small { color: var(--aqua); }
.pair:disabled { cursor: not-allowed; opacity: .6; }
.pair .soon { padding: 1px 7px; border-radius: 999px; background: rgba(255, 255, 255, .07); color: var(--muted); }
.imgpick { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; min-width: 0; }
.imgpick label { cursor: pointer; }
.imgprev { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; min-width: 0; padding: 4px 4px 4px 4px; border-radius: 12px; border: 1px solid var(--line-2); }
.imgprev img { width: 40px; height: 40px; flex: none; border-radius: 9px; object-fit: cover; }
.imgprev .nm { min-width: 0; max-width: 180px; overflow: hidden; color: var(--muted); font-size: 13px; white-space: nowrap; text-overflow: ellipsis; }
.imgprev[hidden], [hidden] { display: none !important; }
.form-err { padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(251, 113, 133, .32); background: rgba(251, 113, 133, .08); color: #fecdd3; font-size: 13.5px; overflow-wrap: anywhere; }
.fine { color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.split-note { margin: -4px 0 16px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.modal-bg { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 24px 16px; background: rgba(5, 7, 9, .8); animation: fade .16s ease-out; overscroll-behavior: contain; }
.modal { position: relative; width: 100%; max-width: 520px; margin: auto 0; padding: 24px; border-radius: 20px; border: 1px solid var(--line-2); background: #12171d; box-shadow: 0 30px 80px rgba(0, 0, 0, .55); outline: none; animation: rise .2s ease-out; }
.modal.modal-sm { max-width: 420px; }
.modal-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.modal-h > div { min-width: 0; }
.modal-h h2 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; overflow-wrap: anywhere; }
.modal-h p { margin-top: 4px; font-size: 14px; }
.modal .wallets { display: grid; gap: 8px; margin: 14px 0; }
.wallets a, .wallets button { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--field); text-align: left; cursor: pointer; }
.wallets a:hover, .wallets button:hover { border-color: var(--aqua-line); }
.wallets svg { width: 14px; height: 14px; color: var(--muted); }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@media (max-width: 520px) { .modal-bg { padding: 10px; } .modal { padding: 20px 16px; border-radius: 16px; } .modal-h h2 { font-size: 21px; } }
@media (prefers-reduced-motion: reduce) { .modal-bg, .modal, .toast { animation: none; } }

/* launch status (dialog and /launch/<id>) */
.ls { display: grid; gap: 16px; }
.ls-coin { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ls-coin > div { min-width: 0; }
.ls-coin b { display: block; font-size: 17px; font-weight: 800; overflow-wrap: anywhere; }
.ls-coin > div > span { display: block; font-size: 13px; }
.ls-state h3 { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 800; }
.ls-state h3 .spin { color: var(--aqua); }
.ls-state p { margin-top: 4px; font-size: 14px; }
.ls-state.warn h3 { color: #fecdd3; }
.ls-pay { display: grid; gap: 8px; }
.ls-links { display: flex; flex-wrap: wrap; gap: 8px; }
.steps { display: grid; margin: 0; padding: 0; overflow: hidden; list-style: none; border-radius: 14px; border: 1px solid var(--line); }
.steps li { display: flex; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line); color: var(--muted); }
.steps li:first-child { border-top: 0; }
.steps .dot { display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 50%; border: 1px solid var(--line-2); font: 600 12px var(--mono); }
.steps .dot svg { width: 13px; height: 13px; }
.steps b { display: block; color: var(--text); font-size: 14px; }
.steps span { font-size: 13px; }
.steps li.done .dot { border-color: var(--aqua); background: var(--aqua); color: var(--aqua-ink); }
.steps li.now { background: var(--aqua-soft); }
.steps li.now .dot { border-color: var(--aqua); color: var(--aqua); }
.ls-proofs { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.ls-proofs a { display: inline-flex; align-items: center; gap: 4px; color: var(--aqua); font-weight: 700; }
.ls-proofs svg { width: 12px; height: 12px; }
.ls-card { margin-top: 24px; }
.ls-card > .empty { border: 0; padding: 24px 8px; }

/* ---------------------------------------------------------------- wallet menu, toasts */
.menu-pop { position: absolute; z-index: 90; min-width: 210px; padding: 6px; border-radius: 14px; border: 1px solid var(--line-2); background: #151b22; box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }
.menu-pop .k { padding: 8px 10px; color: var(--muted); font: 500 12px var(--mono); letter-spacing: 0; text-transform: none; }
.menu-pop button, .menu-pop a { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 10px; background: transparent; color: var(--text); font: 600 14px var(--sans); text-align: left; cursor: pointer; }
.menu-pop button:hover, .menu-pop a:hover { background: rgba(255, 255, 255, .06); }
.menu-pop svg { width: 15px; height: 15px; color: var(--muted); }
.toasts { position: fixed; left: 16px; right: 16px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast { max-width: 100%; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: #1a222a; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); color: var(--text); font-size: 13.5px; font-weight: 600; transition: opacity .35s; animation: rise .2s ease-out; }
.toast.bad { border-color: rgba(251, 113, 133, .45); }
.toast.out { opacity: 0; }

/* ---------------------------------------------------------------- footer */
.foot { margin-top: 88px; border-top: 1px solid var(--line); background: #0a0d10; }
.foot-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr); gap: 32px; padding-top: 40px; padding-bottom: 28px; }
.foot-brand p { max-width: 340px; margin-top: 12px; color: var(--muted); font-size: 13.5px; }
.foot-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.foot-nav div { display: grid; align-content: start; gap: 8px; }
.foot-nav b { margin-bottom: 2px; color: var(--dim); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; }
.foot-nav a, .foot-nav .linkish { color: var(--muted); font-size: 14px; font-weight: 600; }
.foot-nav a:hover, .foot-nav .linkish:hover { color: var(--text); }
.foot-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; padding-top: 16px; padding-bottom: 28px; border-top: 1px solid var(--line); color: var(--dim); font-size: 12.5px; }
@media (max-width: 760px) { .foot-in { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { .foot-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.boot-fail { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 400; display: grid; gap: 6px; padding: 16px; border-radius: 14px; border: 1px solid rgba(251, 113, 133, .4); background: #1a1216; color: #fde2e7; font-size: 14px; }
.boot-fail code { color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
