/* Rallyfee · quiet, abstract, ink on paper */
:root {
  --paper: #f5f3ef;
  --card: #fbfaf8;
  --soft: #ebe8e2;
  --ink: #1c1c20;
  --ink-2: #57575f;
  --ink-3: #65656e;
  --line: #e0ddd6;
  --line-2: #cfcbc2;
  --dem: #3565c9;
  --rep: #c8453c;
  --ind: #7d63c4;
  --other: #8b8b93;
  --good: #2f7a57;
  --bad: #b8433a;
  --wait: #80560b;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --r: 8px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --paper: #141416; --card: #1a1a1d; --soft: #232327; --ink: #ececee; --ink-2: #a9a9b1; --ink-3: #8e8e96;
  --line: #29292e; --line-2: #37373d; --dem: #6f95ea; --rep: #e47b73; --ind: #a891e6; --other: #85858d;
  --good: #6cc39a; --bad: #e47b73; --wait: #d6a64a; color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #141416; --card: #1a1a1d; --soft: #232327; --ink: #ececee; --ink-2: #a9a9b1; --ink-3: #8e8e96;
    --line: #29292e; --line-2: #37373d; --dem: #6f95ea; --rep: #e47b73; --ind: #a891e6; --other: #85858d;
    --good: #6cc39a; --bad: #e47b73; --wait: #d6a64a; color-scheme: dark;
  }
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding-inline: 24px; }

/* ---------- ticker ---------- */
.ticker { display: flex; align-items: stretch; height: 34px; overflow: hidden; font-size: 13px; background: var(--ink); color: var(--paper); }
:root[data-theme="dark"] .ticker { background: var(--soft); color: var(--ink); border-bottom: 1px solid var(--line); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ticker { background: var(--soft); color: var(--ink); border-bottom: 1px solid var(--line); } }
.ticker-label { flex: none; display: flex; align-items: center; gap: 8px; padding: 0 16px; border: 0; border-right: 1px solid color-mix(in srgb, currentColor 18%, transparent); background: none; color: inherit; font-size: 13px; letter-spacing: .02em; }
.ticker-label:hover span { text-decoration: underline; text-underline-offset: 3px; }
.ticker-label[aria-pressed="true"] i { animation: none; border-radius: 1px; box-shadow: 3px 0 0 currentColor; background: currentColor; width: 2px; margin-right: 3px; }
.ticker-label i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.6s ease-in-out infinite; }
.ticker-viewport { flex: 1; overflow: hidden; position: relative; mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
.ticker-track { display: flex; align-items: center; height: 100%; width: max-content; animation: crawl 110s linear infinite; }
.ticker-set { display: flex; gap: 28px; align-items: center; padding-left: 28px; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track, .ticker.paused .ticker-track { animation-play-state: paused; }
.ticker-track a { white-space: nowrap; opacity: .72; transition: opacity .15s ease; }
.ticker-track a:hover { opacity: 1; }
.ticker-track b { font-weight: 600; }
.ticker-track .sep { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .35; flex: none; }
@keyframes crawl { to { transform: translateX(-50%); } }
@keyframes pulse { 50% { transform: scale(.55); opacity: .4; } }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 40; background: var(--paper); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; gap: 28px; height: 62px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 26px; line-height: 1; }
.logo small { display: none; }
.logo-mark { width: 22px; height: 22px; position: relative; flex: none; }
.logo-mark::before, .logo-mark::after { content: ""; position: absolute; width: 14px; height: 14px; border-radius: 50%; }
.logo-mark::before { left: 0; top: 4px; border: 1.5px solid var(--ink); }
.logo-mark::after { right: 0; top: 4px; background: var(--ink); }
.mainnav { display: flex; gap: 22px; }
.mainnav a { color: var(--ink-2); padding: 6px 0; position: relative; transition: color .15s ease; }
.mainnav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.mainnav a:hover { color: var(--ink); }
.mainnav a:hover::after, .mainnav a[aria-current="page"]::after { transform: scaleX(1); }
.mainnav a[aria-current="page"] { color: var(--ink); }
.head-tools { display: flex; gap: 6px; align-items: center; margin-left: auto; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: var(--r); background: none; position: relative; color: var(--ink-2); transition: background .15s ease, color .15s ease; }
.icon-btn svg { transition: transform .3s ease; }
#theme-btn:hover svg { transform: rotate(180deg); }
.icon-btn:hover { background: var(--soft); color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn .count { position: absolute; top: 2px; right: 0; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--ink); color: var(--paper); font-size: 10px; font-weight: 600; display: grid; place-items: center; }
.menu-toggle { display: none; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.05; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: clamp(40px, 6vw, 64px); }
h2 { font-size: clamp(26px, 3vw, 32px); }
h3 { font-size: 21px; }
.kicker { font-size: 13px; color: var(--ink-3); letter-spacing: .02em; }
.lede { font-size: 18px; color: var(--ink-2); max-width: 58ch; margin: 12px 0 0; }

/* ---------- layout ---------- */
main { min-height: 60vh; }
.page { display: flex; flex-direction: column; gap: 56px; padding-block: 40px 96px; animation: rise .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

/* reveal: a left-to-right wipe as rows scroll into view */
.reveal { clip-path: inset(0 100% 0 0); transition: clip-path .7s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { clip-path: inset(0 0 0 0); }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.pad { padding: 22px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.sec-head .more { color: var(--ink-2); font-size: 15px; }
.sec-head .more:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.page-head { display: flex; flex-direction: column; gap: 4px; }

/* ---------- search ---------- */
.searchbar { position: relative; max-width: 560px; }
.searchbar input { width: 100%; height: 50px; padding: 0 16px 0 46px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--card); font-size: 17px; outline: none; }
.searchbar input:focus { border-color: var(--ink); }
.searchbar > svg { position: absolute; left: 15px; top: 15px; width: 20px; height: 20px; color: var(--ink-3); pointer-events: none; }
.searchbar .hint { display: none; }
.searchbar.compact { max-width: none; }
.searchbar.compact input { height: 42px; font-size: 16px; padding-left: 40px; }
.searchbar.compact > svg { left: 13px; top: 11px; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r); padding: 6px; max-height: 70vh; overflow: auto; box-shadow: 0 12px 32px -16px rgba(0, 0, 0, .25); }
.suggest a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 6px; }
.suggest a[aria-selected="true"], .suggest a:hover { background: var(--soft); }
.suggest .empty { padding: 14px; color: var(--ink-2); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--card); color: var(--ink); font-size: 15px; font-weight: 500; white-space: nowrap; transition: background .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.btn:hover { border-color: var(--ink); transform: translateY(-1px); box-shadow: 0 6px 16px -10px rgba(0, 0, 0, .35); }
.btn:active { transform: none; box-shadow: none; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-primary, .btn-amber { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-primary:hover, .btn-amber:hover { background: var(--ink-2); border-color: var(--ink-2); }
.btn-quiet { border-color: transparent; background: none; color: var(--ink-2); }
.btn-quiet:hover { border-color: var(--line-2); color: var(--ink); }
.btn-sm { min-height: 30px; padding: 0 10px; font-size: 14px; }
.btn-lg { min-height: 48px; padding: 0 22px; font-size: 16px; }
.btn[aria-pressed="true"] { background: var(--soft); border-color: var(--ink); color: var(--ink); }
.btn .num { color: var(--ink-3); font-size: 13px; }
.btn svg { flex: none; }
.linkish { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- party + labels ---------- */
.party-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.party-tag::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--other); flex: none; }
.party-tag.D::before { background: var(--dem); }
.party-tag.R::before { background: var(--rep); }
.party-tag.I::before { background: var(--ind); }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 1px 9px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--ink-2); white-space: nowrap; }
a.badge:hover { border-color: var(--ink); color: var(--ink); }
.badge.declared { border-color: var(--ink); color: var(--ink); }
.badge.exploratory, .badge.potential { border-style: dashed; }
.badge.review { border-color: transparent; background: var(--soft); color: var(--wait); }
.badge.record { border-color: transparent; background: var(--soft); }

.face { position: relative; width: 44px; height: 44px; flex: none; border-radius: 50%; overflow: hidden; background: var(--soft); display: grid; place-items: center; font-weight: 600; color: var(--ink-3); font-size: 15px; }
.face img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.face.lg { width: 60px; height: 60px; font-size: 19px; }

/* ---------- home ---------- */
.intro { display: flex; flex-direction: column; gap: 22px; }
.intro .searchbar { margin-top: 6px; }
.tabs { display: inline-flex; gap: 18px; }
.tabs button { background: none; border: 0; padding: 4px 0; color: var(--ink-3); border-bottom: 1.5px solid transparent; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.board { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 48px; }
.board-col > header { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.board-col > header h3 { display: flex; align-items: center; gap: 9px; }
.board-col > header h3::before { content: ""; width: 11px; height: 11px; border-radius: 50%; background: var(--other); }
.board-col.D > header h3::before { background: var(--dem); }
.board-col.R > header h3::before { background: var(--rep); }
.board-col > header span { font-size: 13px; color: var(--ink-3); }
.race-row { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.race-row .who { min-width: 0; }
.race-row .who b { display: block; font-weight: 600; }
.race-row .who a:hover b { text-decoration: underline; text-underline-offset: 3px; }
.race-row .sub { font-size: 14px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.race-row .side { display: flex; align-items: center; gap: 10px; }
.race-row .money { font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.race-row .meter { height: 2px; background: var(--line); margin-top: 7px; border-radius: 1px; overflow: hidden; }
.race-row .meter i { display: block; height: 100%; width: 0; background: var(--ink-3); transition: width 1.1s cubic-bezier(.2, .8, .2, 1); }
.board-col.D .race-row .meter i { background: var(--dem); }
.board-col.R .race-row .meter i { background: var(--rep); }
.race-empty { padding: 18px 0; color: var(--ink-3); }
.plain-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.plain-links a { color: var(--ink-2); }
.plain-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.plain-links b { font-weight: 500; color: var(--ink); }

.focus { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 26px 18px; }
.focus a { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.focus .face { margin-bottom: 6px; }
.focus .face { width: 96px; height: 96px; font-size: 26px; transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s ease; }
.focus a:hover .face { transform: translateY(-4px) scale(1.04); box-shadow: 0 14px 24px -14px rgba(0, 0, 0, .45); }
.focus b { font-weight: 600; line-height: 1.25; }
.focus span { font-size: 13px; color: var(--ink-3); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.polls { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 48px; }
.bars { display: flex; flex-direction: column; gap: 9px; padding-top: 12px; }
.bars .bar { display: grid; grid-template-columns: 150px 1fr 48px; gap: 12px; align-items: center; font-size: 14px; }
.bars .bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bars .track { height: 6px; background: var(--soft); border-radius: 3px; overflow: hidden; }
.bars .fill { height: 100%; width: 0; background: var(--ink); border-radius: 3px; transition: width 1s cubic-bezier(.2, .8, .2, 1); }
.D .bars .fill { background: var(--dem); }
.R .bars .fill { background: var(--rep); }
.bars b { font-weight: 500; text-align: right; }
.poll-note { font-size: 13px; color: var(--ink-3); margin-top: 10px; }

/* ---------- people list ---------- */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0 32px; }
.person { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.person .face { width: 52px; height: 52px; transition: transform .2s ease; }
.person:hover .face, .token-row:hover .art { transform: scale(1.06); }
.person b { display: block; font-weight: 600; line-height: 1.3; }
.person:hover b { text-decoration: underline; text-underline-offset: 3px; }
.person .role { font-size: 14px; color: var(--ink-2); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.person .meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 3px; font-size: 13px; color: var(--ink-3); }
.person .meta .party-tag { font-size: 13px; }

.filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.filters .searchbar { grid-column: 1 / -1; }
.filters select { width: 100%; }
.toggles { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
select, .field-input, textarea { min-height: 42px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--card); padding: 0 12px; outline: none; }
textarea { padding: 10px 12px; min-height: 110px; resize: vertical; }
select:focus, .field-input:focus, textarea:focus { border-color: var(--ink); }
.chiprow { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 32px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line-2); background: none; font-size: 14px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip small { font-size: 12px; color: var(--ink-3); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip[aria-pressed="true"] small { color: inherit; opacity: .7; }
.filterbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.showing { font-size: 14px; color: var(--ink-3); }
.load-more { display: flex; justify-content: center; margin-top: 24px; }

/* ---------- profile ---------- */
.profile-top { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; }
.portrait { margin: 0; }
.portrait .img { aspect-ratio: 4 / 5; position: relative; border-radius: 12px; overflow: hidden; background: var(--soft); display: grid; place-items: center; font-family: var(--serif); font-size: 72px; color: var(--ink-3); }
.portrait .img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.portrait .cap { padding-top: 8px; font-size: 12px; color: var(--ink-3); }
.portrait .cap a { text-decoration: underline; }
.headline { display: flex; flex-direction: column; gap: 16px; }
.headline .role { font-size: 19px; color: var(--ink-2); margin-top: -6px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px 24px; margin: 0; padding-top: 16px; border-top: 1px solid var(--line); }
.facts div { display: flex; flex-direction: column; }
.facts dt { font-size: 13px; color: var(--ink-3); }
.facts dd { margin: 0; font-family: var(--serif); font-size: 30px; line-height: 1.15; }
.facts small { font-size: 13px; color: var(--ink-2); }
.links { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; }
.links a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.links a:hover { color: var(--ink); text-decoration-color: var(--ink); }
.note { padding: 14px 16px; border-left: 2px solid var(--ink); background: var(--card); font-size: 15px; }
.stack { display: flex; flex-direction: column; gap: 56px; }

.record { display: flex; flex-direction: column; }
.record article { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); }
.record article:first-child { border-top: 0; padding-top: 0; }
.rtype { font-size: 14px; font-weight: 600; color: var(--bad); }
.rtype.good { color: var(--good); }
.record p { margin: 4px 0; }
.record .outcome { color: var(--ink-2); font-size: 15px; }
.record .src { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; margin-top: 4px; }
.record .src a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.gallery figure { margin: 0; }
.gallery .ph { position: relative; aspect-ratio: 1; background: var(--soft); border-radius: 10px; overflow: hidden; }
.gallery .ph img { transition: transform .35s ease; }
.gallery figure:hover .ph img { transform: scale(1.05); }
.gallery .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery .ph .badge { position: absolute; left: 6px; top: 6px; background: var(--card); }
.gallery figcaption { padding-top: 8px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.gallery .acts { display: flex; gap: 6px; }
.gallery .acts button { flex: 1; min-height: 28px; border: 1px solid var(--line-2); border-radius: 6px; background: none; font-size: 12px; }
.gallery .acts button:hover { border-color: var(--ink); }
.gallery .acts button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- tokens ---------- */
.token-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0 32px; }
.token-row { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.token-row .art { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; background: var(--soft); transition: transform .2s ease; }
.token-row .art img { width: 100%; height: 100%; object-fit: cover; }
.token-row b { font-weight: 600; }
.token-row:hover b { text-decoration: underline; text-underline-offset: 3px; }
.token-row .sub { font-size: 14px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.token-row .n { text-align: right; font-size: 13px; color: var(--ink-3); }
.token-row .n b { display: block; font-size: 16px; color: var(--ink); }

.head-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.views { display: inline-flex; gap: 18px; }
.views a { color: var(--ink-3); padding: 4px 0; position: relative; }
.views a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.views a:hover { color: var(--ink); }
.views a:hover::after, .views a[aria-current="page"]::after { transform: scaleX(1); }
.views a[aria-current="page"] { color: var(--ink); }
.rise-list { display: flex; flex-direction: column; }
.rise-row { display: grid; grid-template-columns: 28px 56px minmax(0, 1fr) 60px 150px; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.rise-row .rank { color: var(--ink-3); font-family: var(--serif); font-size: 24px; text-align: center; }
.rise-row .art { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; background: var(--soft); transition: transform .2s ease; }
.rise-row .art img { width: 100%; height: 100%; object-fit: cover; }
.rise-row:hover .art { transform: scale(1.06); }
.rise-row:hover .who b { text-decoration: underline; text-underline-offset: 3px; }
.rise-row .who { display: flex; flex-direction: column; min-width: 0; }
.rise-row .who b { font-weight: 600; }
.rise-row .sub { font-size: 14px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rise-row .pace { font-size: 13px; color: var(--ink-3); }
.rise-row .gain { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.rise-row .gain b { color: var(--ink); font-weight: 600; }
.up { color: var(--good); font-weight: 600; font-size: 15px; }
.spark rect { fill: var(--good); transform-box: fill-box; transform-origin: bottom; transform: scaleY(0); transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.spark rect.zero { fill: var(--line-2); }
.reveal.in .spark rect { transform: scaleY(1); }
.launch-grid { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }
.form { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field .lab { display: flex; justify-content: space-between; font-weight: 500; font-size: 15px; }
.field .lab small { color: var(--ink-3); font-weight: 400; font-size: 13px; }
.field .help { font-size: 13px; color: var(--ink-3); }
.pair { display: grid; grid-template-columns: 1fr 180px; gap: 14px; }
.dollar { position: relative; }
.dollar span { position: absolute; left: 12px; top: 9px; color: var(--ink-3); }
.dollar .field-input { width: 100%; padding-left: 26px; text-transform: uppercase; }
.upload { display: flex; gap: 16px; align-items: center; }
.upload .field { align-items: flex-start; }
.upload .drop { width: 112px; height: 112px; flex: none; border: 1px dashed var(--line-2); border-radius: 10px; display: grid; place-items: center; text-align: center; color: var(--ink-3); position: relative; overflow: hidden; background: var(--card); font-size: 13px; cursor: pointer; }
.upload .drop svg { display: block; margin: 0 auto 4px; }
.upload .drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.upload .drop.dragging { border-color: var(--ink); background: var(--soft); }
.preview { position: sticky; top: 86px; display: flex; flex-direction: column; gap: 12px; }
.preview .art { aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--soft); position: relative; display: grid; place-items: center; }
.preview .art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.preview .art .ph { font-family: var(--serif); font-size: 64px; color: var(--ink-3); }
.preview .body { display: flex; flex-direction: column; gap: 8px; }
.picker { position: relative; }
.picker .field-input { width: 100%; }
.options { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r); padding: 6px; max-height: 300px; overflow: auto; box-shadow: 0 12px 32px -16px rgba(0, 0, 0, .25); }
.options button { width: 100%; display: flex; gap: 10px; align-items: center; background: none; border: 0; padding: 8px; border-radius: 6px; text-align: left; }
.options button:hover, .options button[aria-selected="true"] { background: var(--soft); }
.picked { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
a.picked:hover { border-color: var(--ink); }
.picked .t { flex: 1; min-width: 0; }
.error { color: var(--bad); font-weight: 500; min-height: 1.4em; margin: 0; }


/* ---------- real coins ---------- */
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13px; }
.chg { font-weight: 600; white-space: nowrap; }
.chg.up { color: var(--good); }
.chg.down { color: var(--bad); }
.chg.flat { color: var(--ink-3); }
.chg small { font-weight: 400; color: var(--ink-3); font-size: 12px; }
.token-row .n .chg { font-size: 15px; }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--good); margin-right: 7px; vertical-align: 1px; animation: pulse 1.6s ease-in-out infinite; }
.live-dot.stale { background: var(--wait); animation: none; }
.coin-panel { display: flex; flex-direction: column; gap: 18px; padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); max-width: 760px; }
.coin-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; }
.coin-head .kicker { color: var(--ink-2); }
.coin-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
.coin-price .big { font-family: var(--serif); font-size: clamp(40px, 6vw, 56px); line-height: 1; }
.coin-price .chg { font-size: 20px; }
.coin-facts { padding-top: 14px; }
.coin-notice { margin: 0; padding: 12px 14px; border-left: 2px solid var(--ink); background: var(--paper); font-size: 14px; }
.coin-warn { margin: 0; padding: 10px 14px; border-radius: 10px; background: var(--soft); color: var(--wait); font-size: 14px; font-weight: 500; }
.coin-address { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13px; }
.coin-address .btn { max-width: 100%; }
.coin-address .mono { overflow-wrap: anywhere; white-space: normal; text-align: left; }
.flags { margin: 6px 0 0; padding: 12px 14px 12px 32px; background: var(--soft); border-radius: 10px; font-size: 14px; color: var(--ink-2); display: flex; flex-direction: column; gap: 4px; }
.flags li::marker { color: var(--wait); }
.disclaimer { font-size: 13px; margin: 0; }
.launchpads { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.launchpad { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 8px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--card); transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.launchpad:hover { border-color: var(--ink); transform: translateY(-1px); box-shadow: 0 6px 16px -10px rgba(0, 0, 0, .35); }
.launchpad b { font-weight: 600; font-size: 15px; }
.launchpad span { grid-column: 1; font-size: 12px; color: var(--ink-3); }
.launchpad svg { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--ink-3); }
.coin-step { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 16px; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.coin-step legend { padding: 0 6px; font-weight: 500; font-size: 15px; }
.coin-step legend small { color: var(--ink-3); font-weight: 400; font-size: 13px; }
.coin-pair { grid-template-columns: 170px 1fr; }
.steps-list { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 14px; color: var(--ink-2); }
.steps-list b { color: var(--ink); font-weight: 600; }
.steps-list .btn, .steps-list a.btn { margin-top: 6px; }
.copyrow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.coin-manage { max-width: 760px; border-top: 1px solid var(--line); padding-top: 14px; }
.coin-manage[open] { display: flex; flex-direction: column; gap: 14px; }
.coin-manage summary { cursor: pointer; font-family: var(--serif); font-size: 24px; list-style: none; }
.coin-manage summary::-webkit-details-marker { display: none; }
.coin-manage summary::after { content: " +"; color: var(--ink-3); }
.coin-manage[open] summary::after { content: " −"; }
.rise-row.price { grid-template-columns: 28px 56px minmax(0, 1fr) 120px 150px; }
.rise-row .move { height: 6px; background: var(--soft); border-radius: 3px; overflow: hidden; }
.rise-row .move i { display: block; height: 100%; width: 0; background: var(--good); border-radius: 3px; transition: width 1s cubic-bezier(.2, .8, .2, 1); }

/* ---------- legal pages ---------- */
.legal-page { gap: 40px; }
.legal-page section { max-width: 68ch; }
.legal-page h2 { font-size: clamp(22px, 2.4vw, 26px); }
.legal { margin: 0 0 12px; color: var(--ink-2); }
.legal:last-child { margin-bottom: 0; }
.unset { background: var(--soft); color: var(--bad); padding: 0 4px; border-radius: 4px; font-weight: 500; }

/* ---------- about, money ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: step; }
.steps > div { border-top: 1px solid var(--ink); padding-top: 14px; }
.steps > div::before { counter-increment: step; content: counter(step); font-family: var(--serif); font-size: 34px; line-height: 1; }
.steps h3 { margin: 10px 0 6px; }
.steps p { margin: 0; color: var(--ink-2); }
.pairs { display: grid; grid-template-columns: 150px 1fr; gap: 10px 24px; margin: 0; }
.pairs dt { color: var(--ink-3); font-size: 15px; }
.pairs dd { margin: 0; }
.pool { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.pool .bars .bar { grid-template-columns: 130px 1fr 96px; }
input[type="range"] { width: 100%; accent-color: var(--ink); }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-weight: 500; font-size: 13px; color: var(--ink-3); white-space: nowrap; }
td.r, th.r { text-align: right; white-space: nowrap; }
td a:hover b { text-decoration: underline; text-underline-offset: 3px; }
.totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px 24px; margin: 0; }
.totals dt { font-size: 13px; color: var(--ink-3); }
.totals dd { margin: 0; font-family: var(--serif); font-size: 34px; line-height: 1.15; }
.totals small { display: block; font-family: var(--sans); font-size: 13px; color: var(--ink-2); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }

.empty { padding: 32px; text-align: center; color: var(--ink-2); display: flex; flex-direction: column; gap: 12px; align-items: center; }
.empty h3 { color: var(--ink); }
.notice { padding: 14px 16px; border-left: 2px solid var(--ink); background: var(--card); font-size: 15px; }
.site-foot { border-top: 1px solid var(--line); padding-block: 28px 48px; color: var(--ink-3); font-size: 14px; }
.site-foot .row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px 32px; }
.site-foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-foot nav a { color: var(--ink-2); }
.site-foot nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 70; background: var(--ink); color: var(--paper); padding: 11px 18px; border-radius: var(--r); font-size: 15px; animation: toast-in .25s ease; }
@keyframes toast-in { from { transform: translate(-50%, 16px); opacity: 0; } }
dialog[open] { animation: rise .22s cubic-bezier(.2, .8, .2, 1); }
dialog { border: 1px solid var(--line-2); border-radius: 14px; padding: 0; background: var(--card); color: var(--ink); width: min(460px, calc(100% - 32px)); box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .4); }
dialog::backdrop { background: rgba(20, 20, 22, .45); }
dialog form { padding: 24px; display: flex; flex-direction: column; gap: 14px; }

@media (max-width: 900px) {
  .two-col, .launch-grid, .pool, .polls { grid-template-columns: 1fr; }
  .preview { position: static; max-width: 320px; }
  .filters { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .menu-toggle { display: grid; }
  .mainnav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 4px 24px 12px; visibility: hidden; opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s; }
  .mainnav.open { visibility: visible; opacity: 1; transform: none; pointer-events: auto; transition: opacity .18s ease, transform .18s ease; }
  .mainnav a::after { display: none; }
  .mainnav a { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .mainnav a[aria-current="page"] { font-weight: 600; }
  .board, .steps { grid-template-columns: 1fr; }
  .profile-top { grid-template-columns: 1fr; gap: 24px; }
  .portrait { max-width: 220px; }
  .pair { grid-template-columns: 1fr; }
  .record article { grid-template-columns: 1fr; gap: 4px; }
  .pairs { grid-template-columns: 1fr; gap: 2px; }
  .pairs dd { margin-bottom: 10px; }
}
@media (max-width: 520px) {
  .ticker-label { padding: 0 12px; }
  .wrap { padding-inline: 16px; }
  .page { gap: 44px; padding-block: 28px 72px; }
  .people, .token-list { grid-template-columns: 1fr; }
  .rise-row { grid-template-columns: 22px 48px minmax(0, 1fr) auto; gap: 12px; }
  .rise-row .art { width: 48px; height: 48px; }
  .rise-row .spark { display: none; }
  .rise-row.price { grid-template-columns: 22px 48px minmax(0, 1fr) auto; }
  .rise-row .move { display: none; }
  .coin-pair { grid-template-columns: 1fr; }
  .coin-panel { padding: 18px; }
  .filters { grid-template-columns: 1fr; }
  .race-row { grid-template-columns: 40px 1fr; }
  .race-row .face { width: 40px; height: 40px; }
  .race-row .side { grid-column: 2; }
  .focus { grid-template-columns: repeat(3, 1fr); gap: 20px 10px; }
  .focus .face { width: 76px; height: 76px; }
  .bars .bar, .pool .bars .bar { grid-template-columns: 110px 1fr 72px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { clip-path: none; }
  .spark rect { transform: none; }
  .ticker-viewport { overflow-x: auto; }
}
