/* PerpsFamily, on the Marketcap (mcap.family) look: neutral near-black, white pill buttons, one soft accent pair (periwinkle + mint). */
:root {
  --bg: #0a0a0d;
  --bg-side: #0b0b0f;
  --card: #111116;
  --card-2: #17171e;
  --line: rgba(255, 255, 255, 0.065);
  --line-2: rgba(255, 255, 255, 0.12);
  --text: #f3f3f6;
  --muted: #8a8a98;
  --soft: rgba(255, 255, 255, 0.045);
  --hover: rgba(255, 255, 255, 0.055);
  --peri: #b8bbff;
  --mint: #a6f0cd;
  --accent-text: #c3c6ff;
  --solid: #f3f3f6;
  --solid-text: #0a0a0d;
  --feature: #101015;
  --feature-text: #f3f3f6;
  --feature-muted: #9696a6;
  --hint-bg: rgba(184, 187, 255, 0.055);
  --hint-line: rgba(184, 187, 255, 0.17);
  --hint-text: #cdd0ff;
  --live: #9b8cff;
  --up: #5fd8a0;
  --down: #ff7b86;
  --skeleton: rgba(255, 255, 255, 0.05);
  --r: 16px;
  --head: 'Inter Tight', 'Inter', system-ui, sans-serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Inter Tight', 'Inter', system-ui, sans-serif; /* numbers: tabular figures, not a typewriter */
  --code: 'JetBrains Mono', ui-monospace, monospace; /* addresses only */
  color-scheme: dark;
}
:root[data-theme='light'] {
  --bg: #f6f6f8;
  --bg-side: #f6f6f8;
  --card: #ffffff;
  --card-2: #efeff3;
  --line: rgba(14, 14, 22, 0.075);
  --line-2: rgba(14, 14, 22, 0.13);
  --text: #0e0e14;
  --muted: #6c6c7a;
  --soft: rgba(14, 14, 22, 0.035);
  --hover: rgba(14, 14, 22, 0.045);
  --accent-text: #5458d4;
  --live: #6f5ff0;
  --solid: #0e0e14;
  --solid-text: #ffffff;
  --hint-bg: #f2f2ff;
  --hint-line: #dfe0fb;
  --hint-text: #3f42a8;
  --up: #17905a;
  --down: #d23f4c;
  --skeleton: rgba(14, 14, 22, 0.05);
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font: 14px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; }
svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.fill { fill: currentColor; stroke: none; }
.mono { font-family: var(--mono); font-feature-settings: 'tnum'; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.up { color: var(--up); }
.down { color: var(--down); }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--head); font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; }
.ca, .ca-inline, .txs, .rec td a { font-family: var(--code); font-feature-settings: normal; }

/* ticker tape */
.tape { display: flex; align-items: center; height: 36px; background: var(--bg); border-bottom: 1px solid var(--line); overflow: hidden; font-size: 12.5px; }
.tape-tag { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 22px; margin: 0 6px 0 14px; padding: 0 10px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); color: var(--text); font-weight: 500; font-size: 11.5px; }
.tape-tag .live-dot { width: 6px; height: 6px; background: var(--mint); box-shadow: 0 0 8px var(--mint); }
.tape-view { flex: 1; min-width: 0; height: 100%; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
.tape-track { display: flex; width: max-content; height: 100%; animation: tape var(--tape-s, 120s) linear infinite; }
.tape:hover .tape-track { animation-play-state: paused; }
.tape-run { display: flex; align-items: center; }
.tape-item { display: inline-flex; align-items: center; gap: 7px; padding: 0 14px; height: 100%; white-space: nowrap; color: var(--muted); transition: color 0.15s; }
.tape-item:hover { color: var(--text); }
.tape-item img { width: 16px; height: 16px; border-radius: 50%; }
.tape-item b { font-weight: 500; color: var(--text); }
.tape-item .mono { font-size: 12px; }
@keyframes tape { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .tape-track { animation: none; } .tape-view { overflow-x: auto; } }

/* shell */
.shell { display: flex; min-height: calc(100vh - 36px); }
.side { position: sticky; top: 0; height: 100vh; width: 236px; flex: none; display: flex; flex-direction: column; padding: 16px 12px; border-right: 1px solid var(--line); background: var(--bg-side); }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 20px; font-family: var(--head); font-weight: 600; font-size: 16px; letter-spacing: -0.02em; }
.brand img { object-fit: contain; border-radius: 9px; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a { display: flex; align-items: center; gap: 11px; height: 38px; padding: 0 12px; border-radius: 12px; color: var(--muted); transition: background 0.15s, color 0.15s; }
.side-nav a:hover { background: var(--hover); color: var(--text); }
.side-nav a.on { background: var(--card-2); color: var(--text); font-weight: 500; }
:root[data-theme='light'] .side-nav a.on { background: #e9e9ef; }
.side-nav .count { margin-left: auto; font-size: 11px; color: var(--muted); }
.side-nav .ext { margin-left: auto; font-size: 11px; }
.side-label { margin: 18px 10px 6px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.side-ca { margin-top: auto; padding: 12px 10px 4px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.side-ca .k { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.ca { text-align: left; font-size: 12px; padding: 7px 10px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--card); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; transition: border-color 0.15s; }
.ca:hover { border-color: var(--text); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 14px; height: 56px; padding: 0 22px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px); }
.crumbs { display: flex; gap: 8px; font-size: 13px; }
.crumbs .sep { color: var(--line-2); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 12px; color: var(--muted); }
.icon-btn:hover { background: var(--hover); color: var(--text); }
.burger { display: none; width: 34px; height: 34px; border-radius: 12px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.burger span { width: 16px; height: 1.5px; background: var(--text); }
.scrim { display: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 18px; border-radius: 999px; font-weight: 500; font-size: 13.5px; white-space: nowrap; border: 1px solid transparent; transition: 0.15s; cursor: pointer; }
.btn-solid { background: var(--solid); color: var(--solid-text); }
.btn-solid:hover { opacity: 0.88; }
.btn-ghost { border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--text); }
.btn.disabled { opacity: 0.55; pointer-events: none; }

.content { width: min(1000px, 100% - 44px); margin: 24px auto 40px; flex: 1; }
.page { display: flex; flex-direction: column; gap: 14px; animation: fade 0.25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } }

/* feature card */
/* hero: a dark card lit from inside by the two accents, in both themes */
.feature { position: relative; display: grid; grid-template-columns: 1fr 320px; gap: 28px; padding: 34px 34px 32px; border-radius: 22px; color: var(--feature-text); overflow: hidden; isolation: isolate;
  background: radial-gradient(70% 90% at 92% 0%, rgba(184, 187, 255, 0.2), transparent 62%), radial-gradient(55% 80% at 72% 110%, rgba(166, 240, 205, 0.13), transparent 60%), var(--feature);
  border: 1px solid rgba(255, 255, 255, 0.07); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05); }
.feature::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0.5; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px); background-size: 22px 22px; mask-image: radial-gradient(80% 90% at 85% 30%, #000, transparent 75%); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; color: var(--muted); }
.feature .eyebrow { width: fit-content; padding: 5px 12px 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); color: var(--feature-muted); }
.eb-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 8px var(--mint); }
.feature h1 { font-size: clamp(32px, 4.4vw, 50px); margin: 18px 0 14px; letter-spacing: -0.032em; line-height: 1.04; }
.feature h1 .grad { background: linear-gradient(92deg, var(--peri) 10%, var(--mint) 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.feature-sub { max-width: 540px; color: var(--feature-muted); font-size: 14px; line-height: 1.6; }
.feature-stats { display: flex; flex-wrap: wrap; gap: 10px 30px; margin: 24px 0 26px; }
.feature-stats dt { font-size: 12px; color: var(--feature-muted); }
.feature-stats dd { font-family: var(--head); font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.feature-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.btn-invert { background: var(--feature-text); color: var(--feature); }
.btn-invert:hover { opacity: 0.88; }
.btn-dim { border-color: color-mix(in srgb, var(--feature-text) 22%, transparent); color: var(--feature-text); background: color-mix(in srgb, var(--feature-text) 8%, transparent); }
.btn-dim:hover { background: color-mix(in srgb, var(--feature-text) 14%, transparent); }
.link-dim { font-size: 13px; color: var(--feature-muted); }
.link-dim:hover { color: var(--feature-text); }
/* hero art: the list as bubbles sized by market cap */
.feature-art { display: grid; place-items: center; }
.bubbles { position: relative; width: 320px; height: 300px; }
.bubble { position: absolute; border-radius: 50%; overflow: hidden; background: rgba(255, 255, 255, 0.06); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 10px 30px rgba(0, 0, 0, 0.45); animation: drift 7s ease-in-out infinite alternate; transition: transform 0.2s; }
.bubble img { width: 100%; height: 100%; object-fit: cover; }
.bubble:hover { transform: scale(1.06); animation-play-state: paused; z-index: 2; }
@keyframes drift { from { translate: 0 -3px; } to { translate: 0 3px; } }
@media (prefers-reduced-motion: reduce) { .bubble { animation: none; } }

/* hint banner */
.hint { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 18px; border-radius: var(--r); border: 1px solid var(--hint-line); background: var(--hint-bg); color: var(--hint-text); font-size: 13.5px; }
.hint-go { font-weight: 500; white-space: nowrap; }
.hint:hover .hint-go { text-decoration: underline; }

/* panels */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.panel-h { display: flex; align-items: center; gap: 8px; font-weight: 500; margin-bottom: 12px; }
.panel-h .mono { margin-left: auto; font-size: 12px; }
.panel-more { margin-left: auto; font-size: 12.5px; font-weight: 400; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
.now-token { display: flex; align-items: center; gap: 12px; }
.now-token img { width: 44px; height: 44px; border-radius: 50%; background: var(--soft); }
.now-sym { font-family: var(--head); font-size: 22px; font-weight: 700; line-height: 1.1; }
.now-next { margin-left: auto; text-align: right; display: grid; }
.now-next .mono { font-size: 20px; }
.bar { height: 4px; border-radius: 4px; background: var(--soft); margin: 14px 0 8px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--text); transition: width 1s linear; }
.row-between { display: flex; justify-content: space-between; gap: 10px; }
.next-row { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 3px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; }
.pill img { width: 18px; height: 18px; border-radius: 50%; }
.pill em { font-style: normal; color: var(--muted); font-family: var(--mono); font-size: 11px; }
.mini-drops { display: grid; }
.mini-drops .md { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; }
.mini-drops .md:first-child { border-top: 0; padding-top: 0; }
.mini-drops img { width: 22px; height: 22px; border-radius: 50%; }
.mini-drops .md .r { margin-left: auto; text-align: right; }
.empty-note { color: var(--muted); font-size: 13px; padding: 6px 0; }

.section-h { display: flex; align-items: baseline; justify-content: space-between; margin-top: 12px; }
.section-h h2 { font-size: 20px; }
.section-h a { font-size: 13px; }

/* page header */
.page-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 4px; }
.page-h h1 { font-size: 30px; }
.sub { color: var(--muted); max-width: 620px; margin-top: 6px; }
.meta { font-size: 12px; color: var(--muted); text-align: right; }

/* stats strip */
.stats5 { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); border-radius: var(--r); background: var(--card); overflow: hidden; }
.stats5 > div { padding: 14px 16px; border-left: 1px solid var(--line); display: grid; gap: 3px; min-width: 0; }
.stats5 > div:first-child { border-left: 0; }
.stats5 .k { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.stats5 .v { font-size: 17px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stats5 .v.small { font-size: 12.5px; white-space: normal; }

/* pair how-to */
.pair-how { display: grid; grid-template-columns: 1fr 300px; gap: 24px; padding: 20px 22px; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); }
.pair-how h3 { font-size: 20px; margin: 6px 0 12px; }
.pair-how ol { list-style: none; display: grid; gap: 8px; }
.pair-how li { display: flex; gap: 12px; align-items: baseline; }
.pair-how li .mono { color: var(--muted); font-size: 12px; }
.pair-side { display: grid; gap: 10px; align-content: start; }
.ca-box { display: grid; gap: 5px; }

/* toolbar */
.toolbar { scroll-margin-top: 72px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.search { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; width: 280px; max-width: 100%; border: 1px solid var(--line-2); border-radius: 999px; background: var(--card); color: var(--muted); }
.search input { border: 0; outline: 0; background: none; color: var(--text); font: inherit; font-size: 13px; width: 100%; }
.sort { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.sort .muted { margin-right: 6px; }
.sort button { height: 30px; padding: 0 12px; border-radius: 999px; font-size: 12.5px; color: var(--muted); }
.sort button:hover { color: var(--text); }
.sort button.on { background: var(--card); color: var(--text); border: 1px solid var(--line-2); }

/* coin cards */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.coin { display: flex; flex-direction: column; gap: 14px; padding: 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); transition: border-color 0.15s, transform 0.15s; min-width: 0; }
.coin:hover { border-color: var(--line-2); transform: translateY(-1px); }
.coin-h { display: flex; align-items: center; gap: 10px; min-width: 0; }
.coin-h img, .coin-h .fb { width: 38px; height: 38px; border-radius: 50%; background: var(--soft); flex: none; object-fit: cover; }
.coin-h .fb { display: grid; place-items: center; font-weight: 600; color: var(--muted); }
.coin-id { min-width: 0; }
.coin-id b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coin-id span { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag { margin-left: auto; flex: none; font-size: 10.5px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.tag.grad { color: var(--up); border-color: color-mix(in srgb, var(--up) 40%, transparent); }
.coin-m { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.coin-m dt { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.coin-m dd { font-family: var(--mono); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.coin-f { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); padding-top: 10px; border-top: 1px solid var(--line); }
.coin-f a:hover { color: var(--text); }
.coin-f .chg { margin-right: auto; font-family: var(--mono); }
.skel { height: 148px; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); position: relative; overflow: hidden; }
.skel::after { content: ''; position: absolute; inset: 16px; background: linear-gradient(var(--skeleton), var(--skeleton)) 0 0 / 38px 38px no-repeat, linear-gradient(var(--skeleton), var(--skeleton)) 50px 6px / 90px 10px no-repeat, linear-gradient(var(--skeleton), var(--skeleton)) 50px 24px / 60px 8px no-repeat, linear-gradient(var(--skeleton), var(--skeleton)) 0 66px / 80px 10px no-repeat, linear-gradient(var(--skeleton), var(--skeleton)) 0 96px / 120px 8px no-repeat; }
.empty-card { grid-column: 1 / -1; padding: 36px 20px; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--r); color: var(--muted); }
.empty-card b { display: block; color: var(--text); font-size: 15px; margin-bottom: 4px; }

/* long coin names never leave their card */
.now-token > div:not(.now-next) { min-width: 0; flex: 1; }
.now-sym, #nowName, .slot-tok b, .slot-tok span, .mini-drops b, .pill, .tip-h b, .tip-h span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill { display: inline-flex; max-width: 160px; }
.slot-tok > div, .mini-drops .md > div:not(.r), .tip-h > div { min-width: 0; }
.coin-title h1 { white-space: nowrap; }
.tile .sym { max-width: 100%; padding: 0 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* coin page */
.coin { cursor: pointer; }
.back { font-size: 13px; width: fit-content; }
.back:hover { color: var(--text); }
.coin-head { display: flex; align-items: center; gap: 16px; min-width: 0; }
.coin-head img { width: 64px; height: 64px; border-radius: 50%; background: var(--soft); object-fit: cover; flex: none; }
.coin-title { min-width: 0; }
.coin-title h1 { font-size: 30px; overflow: hidden; text-overflow: ellipsis; }
.coin-title .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coin-tags { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.coin-tags .tag { margin-left: 0; }
.tag.live { color: var(--live); border-color: color-mix(in srgb, var(--live) 45%, transparent); }
.coin-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.coin-actions .ca { height: 36px; font-size: 12.5px; }
.chart { height: 460px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.chart iframe { width: 100%; height: 100%; border: 0; display: block; }
.chart .empty-note { display: grid; place-items: center; height: 100%; }
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 28px; }
.info-grid div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13px; min-width: 0; }
.info-grid dt { color: var(--muted); }
.info-grid dd { font-family: var(--mono); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.panel h3 { font-size: 16px; margin: 0 0 10px; }
.panel h3 + .muted { margin: -6px 0 12px; font-size: 13px; }
.panel-block + .panel-block { margin-top: 20px; }
@media (max-width: 860px) {
  .coin-head { flex-wrap: wrap; }
  .coin-tags { margin-left: 0; width: 100%; justify-content: flex-start; }
  .info-grid { grid-template-columns: 1fr; }
  .chart { height: 380px; }
}

.brand-tk { font-size: 11px; color: var(--muted); font-weight: 400; }
.moves { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 28px; }
.move { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; min-width: 0; }
.move:nth-child(-n+2) { border-top: 0; }
.move img, .move .fb { width: 22px; height: 22px; border-radius: 50%; flex: none; background: var(--soft); }
.move b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.move .dir { font-family: var(--mono); font-size: 11px; padding: 1px 7px; border-radius: 999px; flex: none; }
.move .dir.in { color: var(--up); background: color-mix(in srgb, var(--up) 12%, transparent); }
.move .dir.out { color: var(--down); background: color-mix(in srgb, var(--down) 12%, transparent); }
.move .r { margin-left: auto; color: var(--muted); font-size: 12px; white-space: nowrap; }
.move[data-mint] { cursor: pointer; }
@media (max-width: 860px) { .moves { grid-template-columns: 1fr; } .move:nth-child(2) { border-top: 1px solid var(--line); } }

/* the 100 map */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.chip:hover { color: var(--text); }
.chip.on { color: var(--text); border-color: var(--line-2); background: var(--card); }
.map { position: relative; height: min(68vh, 640px); min-height: 420px; border-radius: var(--r); overflow: hidden; background: var(--card); border: 1px solid var(--line); }
.map-loading { display: grid; place-items: center; height: 100%; color: var(--muted); }
.sector { position: absolute; }
.sector-label { position: absolute; left: 8px; top: 3px; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.tile { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; overflow: hidden; border-radius: 10px; background: var(--card-2); cursor: pointer; transition: filter 0.15s; text-align: center; }
.tile:hover { filter: brightness(1.15); }
:root[data-theme='light'] .tile:hover { filter: brightness(0.96); }
.tile .bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.08; filter: blur(14px); }
.tile .logo, .tile .fallback { position: relative; border-radius: 50%; object-fit: cover; }
.tile .fallback { display: grid; place-items: center; background: var(--soft); color: var(--muted); font-weight: 600; }
.tile .sym { position: relative; font-weight: 600; line-height: 1; }
.tile .cap, .tile .chg { position: relative; font-family: var(--mono); color: var(--muted); line-height: 1.1; }
.tile .chg.up { color: var(--up); }
.tile .chg.down { color: var(--down); }
.tile.live { outline: 1.5px solid var(--live); outline-offset: -1.5px; }
.tile .badge { position: absolute; top: 5px; right: 5px; font-size: 9px; font-weight: 600; padding: 1px 5px; border-radius: 4px; background: var(--live); color: #fff; }
.tip { position: fixed; z-index: 50; pointer-events: none; opacity: 0; transition: opacity 0.12s; width: 240px; padding: 12px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line-2); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); font-size: 12.5px; }
.tip.show { opacity: 1; }
.tip-h { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.tip-h img { width: 32px; height: 32px; border-radius: 50%; }
.tip-h span { display: block; color: var(--muted); font-size: 11.5px; }
.tip dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; }
.tip dt { color: var(--muted); }
.tip dd { text-align: right; font-family: var(--mono); }

/* rotation */
.sched { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.slot { padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); display: grid; gap: 10px; }
.slot.now { border-color: var(--live); }
.slot-top { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); font-family: var(--mono); }
.slot.now .slot-top span:first-child { color: var(--live); font-weight: 600; }
.slot-tok { display: flex; gap: 10px; align-items: center; min-width: 0; }
.slot-tok img { width: 30px; height: 30px; border-radius: 50%; }
.slot-tok b { display: block; }
.slot-tok span { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* drops table */
.table-wrap { border: 1px solid var(--line); border-radius: var(--r); overflow-x: auto; background: var(--card); }
table.drops { width: 100%; border-collapse: collapse; font-size: 13px; }
.drops th { text-align: left; font-weight: 500; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.drops td { padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.drops tr:last-child td { border-bottom: 0; }
.drops .r { text-align: right; }
.drops tr.row { cursor: pointer; }
.drops tr.row:hover td { background: var(--hover); }
.drops a { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.tok { display: flex; align-items: center; gap: 8px; }
.tok img { width: 20px; height: 20px; border-radius: 50%; }
.drops .empty { text-align: center; padding: 40px 14px; color: var(--muted); white-space: normal; }
.drops .empty b { display: block; color: var(--text); margin-bottom: 4px; }
.detail td { background: var(--soft); }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; white-space: normal; }
.detail h5 { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 500; margin-bottom: 8px; }
.txs { display: flex; flex-wrap: wrap; gap: 6px 10px; font-family: var(--mono); font-size: 12px; }
.tops div { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; padding: 2px 0; }
.pager { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.pager button { min-width: 32px; height: 32px; border-radius: 12px; border: 1px solid var(--line); font-size: 13px; }
.pager button.on { background: var(--solid); color: var(--solid-text); border-color: var(--solid); }
.pager button:disabled { opacity: 0.4; cursor: default; }
.pager .gap { padding: 0 4px; color: var(--muted); }
.pager .info { margin-left: auto; font-size: 12px; color: var(--muted); }

/* docs */
.thesis { display: flex; gap: 22px; align-items: center; padding: 24px 26px; border-radius: var(--r); background: var(--feature); color: var(--feature-text); }
.thesis img { flex: none; }
.thesis .eyebrow { color: var(--feature-muted); }
.thesis h2 { font-size: clamp(22px, 2.6vw, 28px); margin: 6px 0 8px; }
.thesis p:last-child { color: var(--feature-muted); max-width: 640px; }
@media (max-width: 560px) { .thesis { flex-direction: column; align-items: flex-start; } .thesis img { width: 64px; height: 64px; } }
.doc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.doc-card { padding: 18px; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); }
.doc-card .num { font-size: 12px; color: var(--muted); }
.doc-card h3 { font-size: 17px; margin: 10px 0 8px; }
.doc-card p { color: var(--muted); font-size: 13.5px; }
.flow { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--card); }
.flow > div { padding: 14px 16px; border-left: 1px solid var(--line); }
.flow > div:first-child { border-left: 0; }
.flow .mono { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.flow p { color: var(--muted); font-size: 13px; margin-top: 4px; }
.faq { display: grid; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); overflow: hidden; }
.faq details { border-top: 1px solid var(--line); }
.faq details:first-child { border-top: 0; }
.faq summary { cursor: pointer; padding: 14px 18px; font-weight: 500; list-style: none; display: flex; justify-content: space-between; }
.faq summary::after { content: '+'; color: var(--muted); }
.faq details[open] summary::after { content: '−'; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { padding: 0 18px 16px; color: var(--muted); max-width: 720px; }

/* treasury */
.treasury { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.treasury .ca-box { flex: 1; min-width: 0; }
.treasury .ca { font-size: 13px; }

.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 18px 22px; border-top: 1px solid var(--line); font-size: 12px; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translate(-50%, 10px); padding: 9px 16px; border-radius: 12px; background: var(--solid); color: var(--solid-text); font-size: 13px; opacity: 0; pointer-events: none; transition: 0.2s; z-index: 60; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* responsive */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature { grid-template-columns: 1fr; }
  .feature-art { display: none; }
  .stats5 { grid-template-columns: repeat(3, 1fr); }
  .stats5 > div:nth-child(4) { border-left: 0; }
  .stats5 > div:nth-child(n+4) { border-top: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .side { position: fixed; left: 0; top: 0; z-index: 40; transform: translateX(-100%); transition: transform 0.22s ease; }
  .side.open { transform: none; }
  .scrim { position: fixed; inset: 0; z-index: 30; background: rgba(0, 0, 0, 0.45); }
  .side.open + .scrim { display: block; }
  .burger { display: flex; }
  .top { padding: 0 16px; }
  .content { width: calc(100% - 32px); margin-top: 16px; }
  .split, .pair-how, .doc-grid, .detail-grid { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr 1fr; }
  .flow > div:nth-child(3) { border-left: 0; }
  .flow > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .page-h { flex-direction: column; align-items: flex-start; }
  .meta { text-align: left; }
  .announce { padding: 6px 36px; font-size: 12px; }
  .announce b { display: none; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .stats5 { grid-template-columns: 1fr 1fr; }
  .stats5 > div { border-left: 0 !important; border-top: 1px solid var(--line); }
  .stats5 > div:nth-child(even) { border-left: 1px solid var(--line) !important; }
  .stats5 > div:nth-child(-n+2) { border-top: 0; }
  .feature { padding: 20px; }
  .top-right .btn { padding: 0 12px; }
  .crumbs .muted, .crumbs .sep { display: none; }
  .hint { flex-direction: column; align-items: flex-start; gap: 4px; }
  .map { min-height: 360px; }
  .sort .muted { display: none; }
  .search { width: 100%; }
}
.foot-x:hover { color: var(--text); }

/* drops page */
.drops td .when { display: block; color: var(--text); }
.drops td .when + .small { display: block; font-size: 11px; }
.drops .chev { display: inline-block; margin-left: 4px; color: var(--muted); transition: transform 0.15s; }
.drops tr.row.open .chev { transform: rotate(180deg); }
.drops tr.row.open td { background: var(--hover); }
.detail-wrap { display: grid; gap: 10px; white-space: normal; padding: 4px 0; }
.detail-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: 13px; }
.detail-head .search { margin-left: auto; }
.search.sm { height: 30px; width: 200px; }
.rec-wrap { max-height: 360px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
table.rec { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.rec th { position: sticky; top: 0; background: var(--card); text-align: left; font-weight: 500; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); padding: 8px 12px; border-bottom: 1px solid var(--line); }
.rec td { padding: 7px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.rec tr:last-child td { border-bottom: 0; }
.rec .r { text-align: right; }
.rec a { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.lookup { display: flex; gap: 8px; flex-wrap: wrap; }
.lookup .search { flex: 1; width: auto; min-width: 240px; }
.w-coins { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
#walletBox .panel-h a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 560px) { .detail-head .search { margin-left: 0; width: 100%; } .lookup .btn { width: 100%; } }

/* launch page */
.launch-grid { display: grid; grid-template-columns: 1fr 340px; gap: 14px; align-items: start; }
.launch-form { display: grid; gap: 12px; }
.img-drop { display: grid; place-items: center; text-align: center; height: 150px; border: 1px dashed var(--line-2); border-radius: var(--r); cursor: pointer; color: var(--text); overflow: hidden; background: var(--soft); }
.img-drop:hover { border-color: var(--text); }
.img-drop img { width: 100%; height: 100%; object-fit: contain; }
.row2 { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.field { display: grid; gap: 5px; font-size: 12px; color: var(--muted); }
.field em { font-style: normal; font-size: 11px; }
.field input, .field textarea { font: inherit; font-size: 14px; color: var(--text); background: var(--card); border: 1px solid var(--line-2); border-radius: 12px; padding: 9px 11px; outline: 0; resize: vertical; width: 100%; }
.field input:focus, .field textarea:focus { border-color: var(--text); }
.launch-btn { height: 42px; font-size: 14px; }
.launch-btn:disabled { opacity: 0.6; cursor: wait; }
.launch-status { min-height: 18px; color: var(--muted); }
.launch-status.bad { color: var(--down); }
.launch-how h3 { font-size: 16px; margin-bottom: 12px; }
.launch-how ol { list-style: none; display: grid; gap: 12px; margin-bottom: 14px; }
.launch-how li { display: flex; gap: 10px; font-size: 13px; color: var(--muted); }
.launch-how li b { color: var(--text); font-weight: 600; }
.launch-how li .mono { font-size: 11px; padding-top: 2px; }
@media (max-width: 860px) { .launch-grid { grid-template-columns: 1fr; } .row3 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }

/* trade panel */
.trade { display: grid; gap: 12px; }
.trade-tabs { display: flex; align-items: center; gap: 6px; }
.trade-tabs button, .trade-presets button { height: 30px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.trade-tabs button.on, .trade-presets button.on { color: var(--text); border-color: var(--line-2); background: var(--card-2); }
.trade-tabs .muted { margin-left: auto; }
.trade-row { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.trade-row .field { flex: 1; min-width: 160px; }
.trade-presets { display: flex; gap: 6px; }
#tGo:disabled { opacity: 0.6; cursor: wait; }

/* coin page, otcdesks layout: card with stats, then swap | chart */
.coin-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.coin-card .coin-head { padding: 16px 18px; gap: 14px; }
.coin-card .coin-head img { width: 52px; height: 52px; }
.coin-title-row { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.coin-title-row h1 { font-size: 22px; }
.coin-title-row .muted { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ca-inline { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.ca-inline:hover { color: var(--text); }
.coin-links { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.pill-link { height: 28px; padding: 0 12px; display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; font-size: 12px; }
.pill-link:hover { border-color: var(--text); }
.coin-card .coin-tags { margin: 0; padding: 0 18px 12px; justify-content: flex-start; }
.coin-stats { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); }
.coin-stats > div { padding: 12px 18px; border-left: 1px solid var(--line); display: grid; gap: 2px; min-width: 0; }
.coin-stats > div:first-child { border-left: 0; }
.coin-stats .k { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.coin-stats .v { font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.coin-main { display: grid; grid-template-columns: 300px 1fr; gap: 14px; }
.coin-main:has(#tradeBox[hidden]) { grid-template-columns: 1fr; }
.coin-main .chart { height: 100%; min-height: 420px; }

.swap { display: flex; flex-direction: column; gap: 12px; }
.swap-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 999px; background: var(--soft); }
.swap-tabs button { height: 34px; border-radius: 999px; font-weight: 500; color: var(--muted); }
.swap-tabs button.buy.on { background: color-mix(in srgb, var(--up) 20%, transparent); color: var(--up); }
.swap-tabs button.sell.on { background: color-mix(in srgb, var(--down) 20%, transparent); color: var(--down); }
.swap-box, .swap-receive { border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; }
.swap-label { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.swap-receive .mono { text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--text); }
.swap-input { display: flex; align-items: center; gap: 8px; margin: 6px 0 8px; }
.swap-input input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--text); font: 500 26px var(--mono); }
.swap-input input::-webkit-outer-spin-button, .swap-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.swap-token { flex: none; height: 28px; padding: 0 10px; display: inline-flex; align-items: center; border-radius: 999px; background: var(--card-2); font-size: 12.5px; font-weight: 500; }
.swap-presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.swap-presets button { height: 28px; border: 1px solid var(--line); border-radius: 10px; font-size: 12px; color: var(--muted); }
.swap-presets button:hover { color: var(--text); border-color: var(--line-2); }
.swap-go { height: 42px; width: 100%; }
#tradeBox[data-side='sell'] .swap-go { background: var(--down); color: #fff; }
#tradeBox[data-side='buy'] .swap-go { background: var(--up); color: #fff; }
.swap-go:disabled { opacity: 0.6; cursor: wait; }
.swap-note { margin-top: auto; }
@media (max-width: 860px) {
  .coin-main { grid-template-columns: 1fr; }
  .coin-stats { grid-template-columns: repeat(2, 1fr); }
  .coin-stats > div { border-left: 0; border-top: 1px solid var(--line); }
  .coin-links { margin-left: 0; width: 100%; justify-content: flex-start; }
  .coin-card .coin-head { flex-wrap: wrap; }
}

/* paired page: launched on $COIN / all paired */
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--soft); width: fit-content; }
.seg button { height: 32px; padding: 0 16px; border-radius: 999px; font-size: 13px; color: var(--muted); }
.seg button.on { background: var(--card); color: var(--text); border: 1px solid var(--line-2); }
.seg button .mono { font-size: 11px; color: var(--muted); margin-left: 4px; }

/* Marketcap finish */
.panel { padding: 18px 20px; }
.panel-h { font-family: var(--head); font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.page-h h1 { font-size: 36px; letter-spacing: -0.032em; }
.section-h h2 { font-size: 22px; }
.now-sym { font-weight: 600; letter-spacing: -0.02em; }
.stats5 .v, .coin-stats .v { font-family: var(--head); font-weight: 600; letter-spacing: -0.01em; }
.bar i { background: linear-gradient(90deg, var(--peri), var(--mint)); }
.btn-solid:hover, .btn-invert:hover { opacity: 0.9; }
.coin:hover { border-color: var(--line-2); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25); }
.slot.now { border-color: color-mix(in srgb, var(--peri) 55%, transparent); background: linear-gradient(180deg, rgba(184, 187, 255, 0.07), transparent), var(--card); }
.slot.now .slot-top span:first-child { color: var(--accent-text); }
.tile.live { outline-color: var(--peri); }
.tile .badge { background: var(--peri); color: #0a0a0d; }
.hint b { color: var(--text); font-weight: 600; }
.thesis { border-radius: 22px; border: 1px solid rgba(255, 255, 255, 0.07);
  background: radial-gradient(60% 120% at 100% 0%, rgba(184, 187, 255, 0.16), transparent 60%), radial-gradient(50% 100% at 0% 100%, rgba(166, 240, 205, 0.09), transparent 60%), var(--feature); }
.thesis img { border-radius: 22px; }
.doc-card .num { color: var(--accent-text); }
.flow .mono { color: var(--accent-text); font-weight: 600; }
.ca:hover, .pill-link:hover, .btn-ghost:hover { border-color: var(--line-2); background: var(--hover); }
.field input:focus, .field textarea:focus { border-color: color-mix(in srgb, var(--peri) 60%, transparent); box-shadow: 0 0 0 3px rgba(184, 187, 255, 0.12); }
:root[data-theme='light'] .coin:hover { box-shadow: 0 8px 30px rgba(14, 14, 22, 0.07); }
:root[data-theme='light'] .tile .badge { background: #5458d4; color: #fff; }
@media (max-width: 860px) { .tape-tag { margin-left: 10px; } }
@media (max-width: 560px) { .feature { padding: 24px 20px; border-radius: 18px; } .feature-stats { gap: 12px 22px; } .feature-stats dd { font-size: 18px; } }

/* ===== home v3 layout ===== */
/* numbers strip under the hero */
.kpis { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r); background: var(--card); overflow: hidden; }
.kpis > div { padding: 16px 20px; border-left: 1px solid var(--line); min-width: 0; }
.kpis > div:first-child { border-left: 0; }
.kpis dt { font-size: 12px; color: var(--muted); }
.kpis dd { font-family: var(--head); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpis .kpi-main { background: linear-gradient(135deg, rgba(184, 187, 255, 0.08), rgba(166, 240, 205, 0.05)); }
.kpis .kpi-main dd { font-size: 26px; background: linear-gradient(92deg, var(--peri), var(--mint)); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-theme='light'] .kpis .kpi-main dd { background: none; color: var(--accent-text); }

/* live payout strip: coin | countdown | up next */
.live-strip { display: grid; grid-template-columns: 1.1fr 1fr 1.3fr; padding: 0; }
.live-strip > div { padding: 18px 20px; min-width: 0; display: flex; flex-direction: column; }
.live-strip > div + div { border-left: 1px solid var(--line); }
.ls-label { display: flex; align-items: center; gap: 8px; font-family: var(--head); font-weight: 600; font-size: 15px; margin-bottom: 14px; }
.ls-label .mono { margin-left: auto; font-family: var(--sans); font-size: 12px; font-weight: 500; }
.ls-count { font-family: var(--head); font-size: 40px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; margin: 8px 0 0; }
.live-strip .bar { margin: auto 0 0; }
.live-strip .next-row { margin-top: 12px; }

/* latest payouts + build card */
.split-wide { grid-template-columns: 1.5fr 1fr; }
.build-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: var(--r); overflow: hidden; color: var(--feature-text); border: 1px solid rgba(255, 255, 255, 0.07);
  background: radial-gradient(80% 90% at 100% 0%, rgba(184, 187, 255, 0.22), transparent 60%), radial-gradient(70% 80% at 0% 100%, rgba(166, 240, 205, 0.14), transparent 60%), var(--feature); transition: transform 0.2s, box-shadow 0.2s; }
.build-card:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.3); }
.build-card .eyebrow { color: var(--feature-muted); }
.build-card b { font-family: var(--head); font-size: 22px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; }
.build-card > span:not(.eyebrow):not(.btn) { color: var(--feature-muted); font-size: 13.5px; line-height: 1.55; }
.build-card .btn { margin-top: auto; width: fit-content; }

@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(4, 1fr); }
  .kpis .kpi-main { grid-column: 1 / -1; }
  .kpis > div:nth-child(n+2) { border-top: 1px solid var(--line); }
  .kpis > div:nth-child(2) { border-left: 0; }
  .live-strip { grid-template-columns: 1fr 1fr; }
  .live-strip .ls-next { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 860px) { .split-wide { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpis > div:nth-child(2n) { border-left: 0; }
  .kpis > div:nth-child(2n+1):not(.kpi-main) { border-left: 1px solid var(--line); }
  .live-strip { grid-template-columns: 1fr; }
  .live-strip > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .ls-count { font-size: 34px; }
}

.feature-cta { margin-top: 26px; }
.thesis h2 { letter-spacing: -0.015em; }
.panel-h, .ls-label { letter-spacing: -0.005em; }

/* ===== icon rail (desktop): 72px column of icons, slides open over the page on hover ===== */
.ca-mini { display: none; }
@media (min-width: 861px) {
  body { padding-left: 72px; }
  .content { width: min(1120px, 100% - 56px); }
  .side { position: fixed; left: 0; top: 0; bottom: 0; height: auto; width: 72px; z-index: 40; padding: 14px 12px; overflow: hidden; overflow-y: auto; scrollbar-width: none;
    transition: width 0.26s cubic-bezier(0.3, 0.7, 0.2, 1), box-shadow 0.26s; }
  .side::-webkit-scrollbar { display: none; }
  .side:hover, .side:focus-within { width: 240px; box-shadow: 24px 0 60px rgba(0, 0, 0, 0.5); }
  :root[data-theme='light'] .side:hover, :root[data-theme='light'] .side:focus-within { box-shadow: 24px 0 50px rgba(14, 14, 22, 0.12); }
  .side .lbl { opacity: 0; white-space: nowrap; transition: opacity 0.14s; }
  .side:hover .lbl, .side:focus-within .lbl { opacity: 1; transition-delay: 0.07s; }
  .brand { gap: 12px; padding: 2px 4px 16px; white-space: nowrap; }
  .brand img { width: 40px; height: 40px; border-radius: 12px; flex: none; }
  .side-nav a { position: relative; gap: 16px; height: 44px; padding: 0 14px; white-space: nowrap; }
  .side-nav a svg { width: 18px; height: 18px; }
  .side-nav a.on { background: rgba(184, 187, 255, 0.1); }
  :root[data-theme='light'] .side-nav a.on { background: rgba(84, 88, 212, 0.09); }
  .side-nav a.on::before { content: ''; position: absolute; left: -12px; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--peri); }
  :root[data-theme='light'] .side-nav a.on::before { background: #5458d4; }
  .side-nav a.on svg { color: var(--accent-text); }
  .side-label { position: relative; height: 1px; margin: 14px 6px; }
  .side-label::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); transition: opacity 0.14s; }
  .side-label .lbl { position: absolute; left: 6px; top: -7px; }
  .side:hover .side-label::before, .side:focus-within .side-label::before { opacity: 0; }
  .side-ca { position: relative; padding: 12px 0 2px; }
  .ca-mini { display: grid; place-items: center; position: absolute; left: 0; bottom: 2px; width: 48px; height: 40px; border-radius: 12px; border: 1px solid var(--line-2); color: var(--muted); transition: opacity 0.14s; }
  .ca-mini:hover { color: var(--text); }
  .side:hover .ca-mini, .side:focus-within .ca-mini { opacity: 0; pointer-events: none; }
  .side-ca .k { padding-left: 2px; }
}

/* live dot: violet with a soft glow */
.live-dot { box-shadow: 0 0 10px color-mix(in srgb, var(--live) 70%, transparent); }

/* ===== market v2: bubble field + board ===== */
.mk-field { position: relative; height: min(62vh, 580px); min-height: 380px; border-radius: 22px; overflow: hidden; border: 1px solid var(--line);
  background: radial-gradient(60% 70% at 50% 45%, rgba(184, 187, 255, 0.07), transparent 70%), radial-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px) 0 0 / 24px 24px, var(--card); }
:root[data-theme='light'] .mk-field { background: radial-gradient(60% 70% at 50% 45%, rgba(84, 88, 212, 0.06), transparent 70%), radial-gradient(rgba(14, 14, 22, 0.06) 1px, transparent 1px) 0 0 / 24px 24px, var(--card); }
.mk-field .map-loading { display: grid; place-items: center; height: 100%; color: var(--muted); }
.bub { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 50%; text-align: center; color: var(--text);
  background: radial-gradient(circle at 34% 26%, color-mix(in srgb, var(--tint) 30%, transparent), color-mix(in srgb, var(--tint) 8%, transparent) 72%);
  box-shadow: inset 0 0 0 1.5px var(--tint), 0 12px 34px rgba(0, 0, 0, 0.32); backdrop-filter: blur(2px);
  animation: drift 8s ease-in-out infinite alternate; transition: transform 0.2s, box-shadow 0.2s; }
:root[data-theme='light'] .bub { box-shadow: inset 0 0 0 1.5px var(--tint), 0 10px 26px rgba(14, 14, 22, 0.1); }
.bub:hover { transform: scale(1.06); z-index: 3; animation-play-state: paused; box-shadow: inset 0 0 0 2px var(--tint), 0 0 0 6px color-mix(in srgb, var(--tint) 18%, transparent), 0 16px 40px rgba(0, 0, 0, 0.4); }
.bub img { border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 4px 12px rgba(0, 0, 0, 0.3); flex: none; }
.bub b { font-family: var(--head); font-weight: 600; letter-spacing: -0.01em; line-height: 1; max-width: 84%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bub .c { font-family: var(--mono); font-feature-settings: 'tnum'; font-weight: 600; line-height: 1; }
.bub.live { box-shadow: inset 0 0 0 2px var(--peri), 0 0 0 6px rgba(184, 187, 255, 0.16), 0 12px 34px rgba(0, 0, 0, 0.32); }
.bub .now { position: absolute; top: 9%; font-size: 9.5px; font-weight: 700; letter-spacing: 0.04em; padding: 1px 7px; border-radius: 999px; background: var(--peri); color: #0a0a0d; }
.field-key { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: -4px; }
.field-key span { display: inline-flex; align-items: center; gap: 7px; }
.field-key i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.field-key .k-size { width: 14px; height: 14px; box-shadow: inset 0 0 0 1.5px var(--muted); }
.field-key .k-up { background: rgba(95, 216, 160, 0.35); box-shadow: inset 0 0 0 1.5px #5fd8a0; }
.field-key .k-down { background: rgba(255, 123, 134, 0.35); box-shadow: inset 0 0 0 1.5px #ff7b86; }

.board-panel { padding-bottom: 0; }
.board-panel .panel-h .muted { margin-left: auto; font-family: var(--sans); font-weight: 400; }
.board-wrap { overflow-x: auto; margin: 0 -20px; }
table.board { width: 100%; border-collapse: collapse; font-size: 13px; }
.board th { text-align: left; font-weight: 500; font-size: 11.5px; color: var(--muted); padding: 9px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.board td { padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.board tbody tr:last-child td { border-bottom: 0; }
.board th:first-child, .board td:first-child { padding-left: 20px; }
.board th:last-child, .board td:last-child { padding-right: 20px; }
.board tbody tr { cursor: pointer; }
.board tbody tr:hover td { background: var(--hover); }
.board .r { text-align: right; }
.board .rk { color: var(--muted); width: 40px; }
.board .tok { display: flex; align-items: center; gap: 10px; }
.board .tok img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: none; }
.board .tok b { display: block; font-weight: 600; }
.board .tok span { display: block; max-width: 170px; overflow: hidden; text-overflow: ellipsis; }
.board .vol { display: flex; align-items: center; gap: 10px; }
.vbar { display: inline-block; width: 96px; height: 6px; border-radius: 3px; background: var(--soft); overflow: hidden; flex: none; }
.vbar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--peri), var(--mint)); }
.board tr.live td { background: rgba(184, 187, 255, 0.05); }
.board tr.live td:first-child { box-shadow: inset 3px 0 0 var(--peri); }
.now-tag { color: var(--accent-text); font-weight: 600; }
@media (max-width: 860px) { .board .hide-sm { display: none; } .vbar { width: 52px; } .mk-field { min-height: 340px; } }

/* ===== TradingView chart on coin pages ===== */
.chart { display: flex; flex-direction: column; }
.ch-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.ch-tf button { height: 28px; padding: 0 12px; font-size: 12.5px; }
.ch-box { position: relative; flex: 1; min-height: 360px; }
.ch-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 13px; z-index: 2; pointer-events: none; }
/* board on phones: rank, coin, volume, 1h */
@media (max-width: 560px) { .board th:nth-child(3), .board td:nth-child(3), .board th:nth-child(4), .board td:nth-child(4), .board th:nth-child(7), .board td:nth-child(7), .board th:nth-child(10), .board td:nth-child(10) { display: none; } .board .tok span { max-width: 110px; } }
.feature h1 { text-wrap: balance; }
.feature h1 br { display: none; }
.feature h1 .grad { display: block; text-wrap: balance; }
.live-dot.idle { animation: none; background: var(--muted); box-shadow: none; }
/* nav logo: just the letter M, no tile (user); dark letter on the light theme */
.brand img.mark { border-radius: 0; box-shadow: none; object-fit: contain; }
@media (min-width: 861px) { .brand img.mark { padding: 3px; } }
:root[data-theme="light"] .brand img.mark { filter: invert(1); }

/* ===== live updates: quiet, terminal-like ===== */
@keyframes lvUp { 0%, 20% { color: var(--up); } 100% { color: inherit; } }
@keyframes lvDown { 0%, 20% { color: var(--down); } 100% { color: inherit; } }
.lv-up { animation: lvUp 1.4s ease-out; }
.lv-down { animation: lvDown 1.4s ease-out; }
@keyframes cfUp { 0% { background-color: rgba(95, 216, 160, 0.16); color: var(--up); } 100% { background-color: transparent; } }
@keyframes cfDown { 0% { background-color: rgba(255, 123, 134, 0.16); color: var(--down); } 100% { background-color: transparent; } }
.cf-up { animation: cfUp 1.6s ease-out; }
.cf-down { animation: cfDown 1.6s ease-out; }
.vbar i { transition: width 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }

/* "+$12.40" rising next to a number that grew */
.kpis > div, .stats5 > div { position: relative; }
.lv-delta { position: absolute; right: 16px; top: 14px; font: 600 12px var(--head); color: var(--up); pointer-events: none; animation: lvRise 1.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
@keyframes lvRise { 0% { opacity: 0; transform: translateY(6px); } 15% { opacity: 1; transform: none; } 70% { opacity: 1; } 100% { opacity: 0; transform: translateY(-10px); } }

/* new rows slide in with a faint highlight */
@keyframes lvIn { from { opacity: 0; transform: translateY(-8px); } }
@keyframes lvRowGlow { 0% { background-color: rgba(184, 187, 255, 0.1); } 100% { background-color: transparent; } }
.lv-in { animation: lvIn 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
tr.lv-in td, .md.lv-in { animation: lvRowGlow 2.2s ease-out; }

/* bubbles glide to their new size and place; new ones grow in, leaving ones fade */
.bub { transition: left 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), top 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), width 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), height 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s, scale 0.4s, box-shadow 0.3s, transform 0.2s; }
.bub.lv-pop { animation: lvPop 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.25) both, drift 8s ease-in-out infinite alternate; }
@keyframes lvPop { from { opacity: 0; scale: 0.6; } }
.bub.lv-out { opacity: 0; scale: 0.6; }

/* the payout strip: a soft ring when a payout goes out, the new coin eases in */
.live-strip.lv-ping { animation: lvPing 1.4s ease-out; }
@keyframes lvPing { 0% { box-shadow: 0 0 0 0 rgba(184, 187, 255, 0.4); } 100% { box-shadow: 0 0 0 14px rgba(184, 187, 255, 0); } }
.now-token.lv-swap { animation: lvSwap 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes lvSwap { from { opacity: 0; transform: translateY(10px); filter: blur(4px); } }

/* payout notices, bottom right */
.lv-notices { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: flex; flex-direction: column; gap: 8px; width: min(340px, calc(100vw - 32px)); pointer-events: none; }
.lv-notice { position: relative; pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 18px; border-radius: 14px; color: var(--text);
  background: color-mix(in srgb, var(--card-2) 97%, transparent); border: 1px solid var(--line-2); backdrop-filter: blur(16px); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  animation: lvNotice 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.1) both; transition: opacity 0.35s, transform 0.35s; }
.lv-notice::before { content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: linear-gradient(var(--peri), var(--mint)); }
.lv-notice img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none; }
.lv-notice div { min-width: 0; flex: 1; }
.lv-notice b { display: block; font-weight: 600; font-size: 13.5px; }
.lv-notice span { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-notice em { font-style: normal; font: 600 14px var(--head); color: var(--up); white-space: nowrap; }
.lv-notice.out { opacity: 0; transform: translateX(16px); }
@keyframes lvNotice { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
:root[data-theme='light'] .lv-notice { box-shadow: 0 16px 40px rgba(14, 14, 22, 0.12); }

@media (prefers-reduced-motion: reduce) {
  .lv-up, .lv-down, .cf-up, .cf-down, .lv-in, .lv-notice, .lv-swap, .lv-ping, .lv-delta, .bub, .vbar i { animation: none !important; transition: none !important; }
}

/* ===================================================================== PerpsFamily additions */
/* wallet button and chooser */
.acct { position: relative; }
.acct-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 70; min-width: 220px; padding: 6px; display: grid; gap: 2px; border-radius: 14px; background: var(--card-2); border: 1px solid var(--line-2); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35); }
.acct-menu button { text-align: left; height: 38px; padding: 0 12px; border-radius: 10px; font-size: 13px; display: flex; align-items: center; }
.acct-menu button:hover { background: var(--hover); }
.acct-menu .who { padding: 8px 12px 6px; font-size: 11.5px; color: var(--muted); }
#walletBtn.on { background: var(--card-2); color: var(--text); border-color: var(--line-2); font-family: var(--code); font-size: 12.5px; }

/* hero art: the two sides and the pot between them */
.duel { display: grid; gap: 10px; width: 300px; }
.duel-side { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 14px 16px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.035); }
.duel-side svg { grid-row: span 2; width: 34px; height: 34px; padding: 7px; border-radius: 11px; stroke-width: 2.2; }
.duel-side.up svg { color: #5fd8a0; background: rgba(95, 216, 160, 0.12); }
.duel-side.down svg { color: #ff7b86; background: rgba(255, 123, 134, 0.12); }
.duel-side b { font-family: var(--head); font-size: 18px; letter-spacing: -0.01em; }
.duel-side span { font-size: 12px; color: var(--feature-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.duel-pot { display: grid; justify-items: center; gap: 2px; padding: 16px; border-radius: 18px; text-align: center; border: 1px solid rgba(184, 187, 255, 0.25);
  background: radial-gradient(90% 120% at 50% 0%, rgba(184, 187, 255, 0.18), transparent 70%), rgba(255, 255, 255, 0.03); }
.duel-pot .k { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--feature-muted); }
.duel-pot b { font-family: var(--head); font-size: 26px; letter-spacing: -0.02em; background: linear-gradient(92deg, var(--peri), var(--mint)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.duel-pot span { font-size: 12px; color: var(--feature-muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) { .duel-side.up { animation: drift 7s ease-in-out infinite alternate; } .duel-side.down { animation: drift 7s ease-in-out -3.5s infinite alternate; } }

/* fallback coin icon */
.fb { display: grid; place-items: center; border-radius: 50%; background: var(--soft); color: var(--muted); font-weight: 600; flex: none; }
.now-token { color: inherit; min-width: 0; }
.now-token img, .now-token .fb { width: 44px; height: 44px; object-fit: cover; }

/* UP | DOWN split bar */
.updown { display: grid; gap: 8px; margin-top: auto; }
.ud-bar { display: flex; height: 8px; border-radius: 8px; overflow: hidden; background: var(--soft); }
.ud-bar i { display: block; height: 100%; transition: width 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.ud-bar .u { background: var(--up); }
.ud-bar .d { background: var(--down); }
.ud-bar.empty i { opacity: 0.25; }
.ud-row { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; }
.ud-row .up, .ud-row .down { font-family: var(--mono); font-feature-settings: 'tnum'; font-weight: 500; }
.ud-row .muted { font-family: var(--sans); font-weight: 400; }
.ls-prize { font-family: var(--head); font-size: 30px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; margin: 8px 0 14px; }

/* phase tags */
.tag.entries { color: var(--up); border-color: color-mix(in srgb, var(--up) 40%, transparent); }
.tag.measuring { color: var(--accent-text); border-color: color-mix(in srgb, var(--peri) 45%, transparent); }
.tag.settling { color: var(--live); border-color: color-mix(in srgb, var(--live) 45%, transparent); }
.tag.won { color: var(--up); border-color: color-mix(in srgb, var(--up) 40%, transparent); }
.tag.lost, .tag.void { color: var(--muted); }

/* sample dots: six at the start of the measured time, six at the end */
.dots { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line-2); }
.dots i.on { background: var(--peri); box-shadow: 0 0 6px color-mix(in srgb, var(--peri) 60%, transparent); }
.dots .gap { flex: 1; min-width: 12px; height: 1px; background: var(--line-2); margin: 0 4px; }
.dots span { margin-right: 4px; }

/* rounds page */
.rounds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.round-card { display: flex; flex-direction: column; gap: 14px; padding: 16px 18px; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); cursor: pointer; transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s; min-width: 0; }
.round-card:hover { border-color: var(--line-2); transform: translateY(-1px); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25); }
:root[data-theme='light'] .round-card:hover { box-shadow: 0 8px 30px rgba(14, 14, 22, 0.07); }
.rc-mid { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: end; }
.rc-mid .k { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.rc-mid .k.r { text-align: right; }
.rc-prize { font-family: var(--head); font-size: 26px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; }
.rc-clock { font-family: var(--head); font-size: 20px; font-weight: 600; letter-spacing: -0.02em; text-align: right; font-feature-settings: 'tnum'; }
.rc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.call { font-weight: 500; }
.call.up { color: var(--up); }
.call.down { color: var(--down); }
.pots { display: grid; }
.pot-row { display: grid; grid-template-columns: minmax(0, 1.4fr) 1fr auto; align-items: center; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13px; cursor: pointer; }
.pot-row:first-child { border-top: 0; padding-top: 0; }
.pot-row .tok { min-width: 0; }
.pot-row .tok b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pot-row img, .pot-row .fb { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.pot-row .bar { margin: 0; }
.pot-row .r { text-align: right; white-space: nowrap; }
@media (max-width: 860px) { .rounds { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .pot-row { grid-template-columns: minmax(0, 1fr) auto; } .pot-row .bar { display: none; } }

/* coin page: the round panel */
.round-panel { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; align-items: start; }
.rp-main { display: grid; gap: 16px; min-width: 0; }
.rp-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rp-top .tag { margin-left: 0; }
.rp-top .muted { margin-left: auto; font-size: 12px; }
.rp-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.rp-nums > div { padding: 12px 14px; border-left: 1px solid var(--line); display: grid; gap: 2px; min-width: 0; }
.rp-nums > div:first-child { border-left: 0; }
.rp-nums .k { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.rp-nums .v { font-family: var(--head); font-size: 20px; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-feature-settings: 'tnum'; }
.rp-nums .v.big { font-size: 24px; background: linear-gradient(92deg, var(--peri), var(--mint)); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-theme='light'] .rp-nums .v.big { background: none; color: var(--accent-text); }
.rp-line { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; flex-wrap: wrap; }
.rp-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.rp-steps div { padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); font-size: 11.5px; color: var(--muted); min-width: 0; }
.rp-steps div b { display: block; color: var(--text); font-weight: 500; font-size: 12px; }
.rp-steps div.on { border-color: color-mix(in srgb, var(--peri) 55%, transparent); background: linear-gradient(180deg, rgba(184, 187, 255, 0.08), transparent); }
.rp-steps div.on b { color: var(--accent-text); }
.rp-enter { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.rp-enter .panel-h { margin-bottom: 0; }
.rp-enter .panel-h .muted { margin-left: auto; font-family: var(--sans); font-weight: 400; }
.side-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 999px; background: var(--soft); }
.pick { height: 36px; border-radius: 999px; font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.pick svg { width: 15px; height: 15px; stroke-width: 2.2; }
.pick.up.on { background: color-mix(in srgb, var(--up) 20%, transparent); color: var(--up); }
.pick.down.on { background: color-mix(in srgb, var(--down) 20%, transparent); color: var(--down); }
.pick:disabled { opacity: 0.4; cursor: not-allowed; }
#rpEnter[data-side='0'] #eGo { background: var(--up); color: #fff; }
#rpEnter[data-side='1'] #eGo { background: var(--down); color: #fff; }
#eGo:disabled { opacity: 0.6; cursor: default; }
.mine { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--soft); font-size: 13px; display: grid; gap: 2px; }
.mine b { font-weight: 600; }
.claims { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.claims .row-between { font-size: 13px; align-items: center; }
.claims .btn { height: 34px; }
.rp-empty { display: grid; gap: 12px; }
.rp-empty .bar { margin: 4px 0 0; }
@media (max-width: 960px) { .round-panel { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .rp-nums { grid-template-columns: 1fr 1fr; } .rp-nums > div:nth-child(3) { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); } .rp-steps { grid-template-columns: 1fr 1fr; } }

/* launch form: round length and fee split */
.kind-pick { margin-top: 2px; }
.field > em.muted { font-size: 11.5px; }
.field input[type='range'] { width: 100%; accent-color: var(--peri); padding: 0; border: 0; background: none; height: 24px; }
:root[data-theme='light'] .field input[type='range'] { accent-color: #5458d4; }
.split-read { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--text); }
.split-read b { font-weight: 600; }
.split-read .prize { color: var(--up); }
.launch-btn:disabled { cursor: default; }

/* fees page */
.panel h3 + p.muted { font-size: 13.5px; max-width: 760px; }

/* the brand mark is white on transparent; the light theme inverts it (rule above) */
.brand img.mark { width: 36px; height: 36px; }
.acct-menu a { display: flex; align-items: center; height: 38px; padding: 0 12px; border-radius: 10px; font-size: 13px; }
.acct-menu a:hover { background: var(--hover); }

/* grid children may shrink below their content (the chart canvas, long addresses) */
.coin-main > *, .split > *, .round-panel > * { min-width: 0; }
@media (max-width: 860px) { .coin-main { grid-template-columns: minmax(0, 1fr); } .info-grid dd { white-space: normal; text-align: right; } }
#cInfo .info-grid { grid-template-columns: 1fr; }

/* the brand is the word Perps, no logo (user) */
.brand .wordmark { font-family: var(--head); font-weight: 700; font-size: 24px; letter-spacing: -0.045em; line-height: 40px; color: var(--text); }
@media (min-width: 861px) { .brand { justify-content: center; padding-left: 0; padding-right: 0; } .side:hover .brand, .side:focus-within .brand { justify-content: flex-start; padding-left: 6px; } .brand .wordmark { font-size: 16px; } .side:hover .brand .wordmark, .side:focus-within .brand .wordmark { font-size: 22px; } }
.thesis .wordmark-xl { flex: none; font-family: var(--head); font-weight: 700; font-size: 44px; letter-spacing: -0.05em; line-height: 1; color: var(--feature-text); padding: 0 6px; }
@media (max-width: 560px) { .thesis .wordmark-xl { font-size: 34px; } }

/* ---------------- trade: every coin off the pad, long or short in place ---------------- */
.trade-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 14px; align-items: start; }
.trade-side { display: grid; gap: 14px; position: sticky; top: 16px; min-width: 0; }
.mkt-panel { padding: 14px; min-width: 0; }
.mkt-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.mkt-tools .search { flex: 1 1 220px; }
.mkt-head, .mkt-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.9fr) minmax(0, 0.9fr) minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 12px; align-items: center; }
.mkt-head { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); padding: 0 10px 8px; border-bottom: 1px solid var(--line); }
.mkt-head .r, .mkt-row .r { text-align: right; }
.mkt-list { display: grid; gap: 2px; padding-top: 6px; }
.mkt-row { padding: 10px; border-radius: 12px; cursor: pointer; font-size: 13px; color: inherit; text-decoration: none; }
.mkt-row:hover { background: var(--hover); }
.mkt-row.on { background: var(--soft); box-shadow: inset 0 0 0 1px var(--line-2); }
.mkt-row .tok { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mkt-row .tok img, .mkt-row .tok .fb { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: none; }
.mkt-row .tok div { min-width: 0; display: grid; }
.mkt-row .tok b, .mkt-row .tok span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mkt-row .tok span { font-size: 12px; color: var(--muted); }
.mkt-row .mono { font-variant-numeric: tabular-nums; }
.mini-split { display: grid; gap: 4px; font-size: 11px; color: var(--muted); }
.mini-split .bar2 { height: 6px; border-radius: 3px; overflow: hidden; display: flex; background: var(--soft); }
.mini-split .bar2 i.u { background: var(--up); }
.mini-split .bar2 i.d { background: var(--down); }
.mini-split .bar2.empty i { opacity: 0.25; }
.mkt-row .ph { display: grid; justify-items: end; gap: 2px; font-size: 12px; }
.mkt-row .ph .tag { font-size: 10px; }
.tr-head { display: grid; gap: 12px; min-width: 0; }
.tr-head .coin-h { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tr-head .coin-h img, .tr-head .coin-h .fb { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.tr-head .coin-id { min-width: 0; display: grid; }
.tr-head .coin-id b { font-size: 18px; }
.tr-head .coin-id span { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-head .coin-h .tag { margin-left: auto; }
.tr-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tr-nums .k { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.tr-nums .v { font-family: var(--head); font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tr-nums .v.big { font-size: 24px; }
.tr-head .rp-line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 12px; }
.tr-links { display: flex; gap: 8px; flex-wrap: wrap; font-size: 12px; }
#trBox[data-side='0'] #trGo { background: var(--up); color: #fff; }
#trBox[data-side='1'] #trGo { background: var(--down); color: #fff; }
#trBox #trGo:disabled { background: var(--soft); color: var(--muted); }
#trNeed a { text-decoration: underline; }
@media (max-width: 1100px) { .trade-grid { grid-template-columns: minmax(0, 1fr) 320px; } }
@media (max-width: 960px) { .trade-grid { grid-template-columns: 1fr; } .trade-side { position: static; order: -1; } }
@media (max-width: 640px) {
  .mkt-head, .mkt-row { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 0.9fr); }
  .mkt-head span:nth-child(2), .mkt-row > :nth-child(2), .mkt-head span:nth-child(4), .mkt-row > :nth-child(4) { display: none; }
}
