/* Hallmark · genre: editorial (technical manual) × market app · design-system: design.md · designed-as-app
 * macrostructures: Ecosystem Index (/) · Index-First (/explore) · Split Studio (/t, /launch)
 * theme: studied-DNA (manual refs) + component DNA (launchpad ref) · paper: oklch(91% 0.003 90) · accent: oklch(72% 0.19 48)
 * display: Archivo condensed 650 · body: Archivo 400 · mono: IBM Plex Mono · axes: light / display-condensed / warm
 * nav: N5 floating segmented pill · footer: Ft4 dense colophon · enrichment: speech bubbles + patterned avatars (CSS)
 * pre-emit critique: P4 H5 E4 S5 R4 V4 · context: user-provided references
 */
@import url("/tokens.css");

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--color-paper); color: var(--color-ink);
  font-family: var(--font-body); font-variation-settings: "wdth" var(--wdth-body);
  font-weight: var(--weight-body); font-size: var(--text-base); line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: 2px; text-decoration-thickness: 1px; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; font-variation-settings: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: var(--weight-display); font-style: normal; font-variation-settings: "wdth" var(--wdth-condensed); line-height: var(--leading-tight); overflow-wrap: anywhere; min-width: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.mono { font-family: var(--font-mono); font-size: var(--text-sm); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.caps { font-family: var(--font-display); font-variation-settings: "wdth" var(--wdth-condensed); font-weight: var(--weight-strong); text-transform: uppercase; letter-spacing: var(--tracking-caps); }
.muted { color: var(--color-muted); }
.up { color: var(--color-up); }
.down { color: var(--color-down); }
.page { max-width: 84rem; margin: 0 auto; padding: 0 var(--page-gutter); }

/* ── top bar: wordmark · segmented pill nav · launch ───────────────── */
.topbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--space-sm); max-width: 84rem; margin: 0 auto; padding: var(--space-xs) var(--page-gutter); }
.wordmark { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-family: var(--font-display); font-variation-settings: "wdth" 62; font-weight: 700; font-size: var(--text-lg); letter-spacing: -0.01em; line-height: 1; }
.wordmark svg { width: 26px; height: 26px; flex: none; }
.wordmark svg .bubble { fill: var(--color-accent); }
.wordmark svg .ink { fill: var(--color-ink); }
.segnav { display: inline-flex; gap: 2px; padding: 4px; background: var(--color-sheet); border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius-pill); }
.segnav a { text-decoration: none; padding: 7px var(--space-sm); border-radius: var(--radius-pill); font-weight: var(--weight-strong); font-variation-settings: "wdth" var(--wdth-condensed); white-space: nowrap; transition: background-color var(--dur-micro) var(--ease-out); }
.segnav a:hover { background: var(--color-sheet-2); }
.segnav a[aria-current="page"] { background: var(--color-accent); color: var(--color-accent-ink); }
.topbar .right { justify-self: end; display: flex; gap: var(--space-2xs); align-items: center; }
.livepill { display: inline-flex; align-items: center; gap: 6px; padding: 6px var(--space-xs); border-radius: var(--radius-pill); background: var(--color-sheet); border: var(--rule-hair) solid var(--color-rule-2); font-family: var(--font-mono); font-size: var(--text-xs); white-space: nowrap; }
@media (max-width: 44rem) {
  .topbar { grid-template-columns: auto 1fr; }
  .topbar .segnav { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; justify-content: space-between; }
  .topbar .segnav a { flex: 1; text-align: center; }
}

/* live dot */
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--color-rule); flex: none; }
.dot.on { background: var(--color-accent); box-shadow: 0 0 0 3px var(--color-accent-soft); animation: pulse 1.6s var(--ease-in-out) infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px transparent; } }

/* ── ticker ────────────────────────────────────────────────────────── */
.ticker { border-block: var(--rule-hair) solid var(--color-rule-2); background: var(--color-sheet); overflow: hidden; }
.ticker-track { display: flex; gap: var(--space-lg); width: max-content; padding: 6px 0; animation: ticker var(--dur-ticker) linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker a { display: inline-flex; gap: 6px; align-items: center; text-decoration: none; font-family: var(--font-mono); font-size: var(--text-xs); white-space: nowrap; }
.ticker a b { font-weight: 500; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation-duration: calc(var(--dur-ticker) * 2); } }

/* ── buttons & pills ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2xs);
  border: var(--rule-hair) solid var(--color-ink); background: transparent; color: var(--color-ink);
  padding: 9px var(--space-md); border-radius: var(--radius-pill); cursor: pointer; text-decoration: none; white-space: nowrap;
  font-family: var(--font-display); font-variation-settings: "wdth" var(--wdth-condensed); font-weight: var(--weight-strong); font-size: var(--text-base);
  transition: background-color var(--dur-micro) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}
.btn:hover { background: var(--color-sheet-2); }
.btn:active { transform: translateY(1px); }
.btn.solid { background: var(--color-ink); color: var(--color-sheet); }
.btn.solid:hover { background: var(--color-band); }
.btn.accent { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); }
.btn.accent:hover { background: var(--color-accent-2); border-color: var(--color-accent-2); }
.btn.sm { padding: 6px var(--space-sm); font-size: var(--text-sm); }
.btn:disabled, .btn[aria-busy="true"] { opacity: .5; cursor: progress; transform: none; }
@media (pointer: coarse) { .btn { min-height: 42px; } }

.chips { display: flex; flex-wrap: wrap; gap: var(--space-2xs); }
.chip { display: inline-flex; align-items: center; gap: 6px; border: var(--rule-hair) solid var(--color-rule-2); background: var(--color-sheet); border-radius: var(--radius-pill); padding: 6px var(--space-xs) 6px var(--space-sm); cursor: pointer; white-space: nowrap; font-weight: var(--weight-strong); font-variation-settings: "wdth" var(--wdth-condensed); transition: background-color var(--dur-micro) var(--ease-out); }
.chip:hover { background: var(--color-sheet-2); }
.chip .n { font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 400; background: var(--color-sheet-2); border-radius: var(--radius-pill); padding: 0 7px; }
.chip[aria-pressed="true"] { background: var(--color-ink); color: var(--color-sheet); border-color: var(--color-ink); }
.chip[aria-pressed="true"] .n { background: var(--color-accent); color: var(--color-accent-ink); }

.select { position: relative; display: inline-grid; background: var(--color-sheet); border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius-input); padding: 4px 34px 4px var(--space-sm); }
.select small { font-size: var(--text-xs); color: var(--color-muted); text-transform: uppercase; font-variation-settings: "wdth" var(--wdth-condensed); letter-spacing: 0.04em; line-height: 1.2; }
.select select { all: unset; cursor: pointer; font-weight: var(--weight-strong); font-variation-settings: "wdth" var(--wdth-condensed); line-height: 1.3; }
.select::after { content: ""; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.select:focus-within { outline: 2px solid var(--color-focus); outline-offset: 2px; }

.toggle { display: inline-flex; padding: 3px; gap: 2px; background: var(--color-sheet); border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius-input); }
.toggle button { all: unset; cursor: pointer; display: grid; place-items: center; width: 30px; height: 26px; border-radius: 9px; }
.toggle button svg { width: 15px; height: 15px; }
.toggle button[aria-pressed="true"] { background: var(--color-accent-soft); color: var(--color-ink); }
.toggle button:focus-visible { outline: 2px solid var(--color-focus); }

.search { display: flex; align-items: center; gap: var(--space-2xs); background: var(--color-sheet); border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius-pill); padding: 0 var(--space-sm); }
.search svg { width: 16px; height: 16px; color: var(--color-muted); flex: none; }
.search input { all: unset; flex: 1; padding: 10px 0; min-width: 0; }
.search:focus-within { outline: 2px solid var(--color-focus); outline-offset: 2px; }

/* ── panels: dark band head + sheet, rounded ───────────────────────── */
.panel { background: var(--color-sheet); border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius-panel); overflow: hidden; }
.band { display: flex; gap: var(--space-sm); align-items: center; background: var(--color-band); color: var(--color-band-ink); padding: 7px var(--space-sm); font-size: var(--text-sm); border-radius: var(--radius-panel) var(--radius-panel) 0 0; }
.band .code { font-family: var(--font-mono); font-size: var(--text-xs); opacity: .7; }
.band .right { margin-left: auto; display: flex; gap: var(--space-sm); align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.band a { color: var(--color-band-ink); white-space: nowrap; }
.band button.linkish { all: unset; cursor: pointer; white-space: nowrap; }
.band button.linkish:hover, .band button.linkish[aria-pressed="true"] { text-decoration: underline; }
.sheet { background: var(--color-sheet); padding: var(--space-2xs) var(--space-xs) var(--space-xs); border: var(--rule-hair) solid var(--color-rule-2); border-top: 0; border-radius: 0 0 var(--radius-panel) var(--radius-panel); }

/* ── avatars: token image, or a patterned plate with initials ──────── */
.av { flex: none; position: relative; width: 36px; height: 36px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--color-sheet-2); border: var(--rule-hair) solid var(--color-ink); }
.av img { width: 100%; height: 100%; object-fit: cover; }
.av span { position: relative; z-index: 1; font-family: var(--font-display); font-variation-settings: "wdth" 62; font-weight: 700; font-size: 12px; background: var(--color-sheet); border-radius: 4px; padding: 0 3px; line-height: 1.25; }
.av.p0 { background: repeating-linear-gradient(45deg, var(--color-ink) 0 3px, var(--color-sheet) 3px 7px); }
.av.p1 { background: radial-gradient(var(--color-ink) 1.3px, var(--color-sheet) 1.6px) 0 0 / 6px 6px; }
.av.p2 { background: repeating-linear-gradient(0deg, var(--color-accent) 0 4px, var(--color-sheet) 4px 8px); }
.av.p3 { background: conic-gradient(var(--color-ink) 25%, var(--color-sheet) 0 50%, var(--color-ink) 0 75%, var(--color-sheet) 0) 0 0 / 10px 10px; }
.av.p4 { background: repeating-linear-gradient(-45deg, var(--color-accent) 0 3px, var(--color-sheet) 3px 7px); }
.av.l { width: 56px; height: 56px; }
.av.l span { font-size: 15px; }
.av.s { width: 26px; height: 26px; }
.av.s span { font-size: 9px; padding: 0 2px; }
.grad { display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; border-radius: 50%; background: var(--color-ink); color: var(--color-sheet); font-family: var(--font-mono); font-size: 9px; font-weight: 500; flex: none; }

/* speech bubble — the brand's one decorative device */
.say { position: relative; display: inline-flex; max-width: 100%; min-width: 0; background: var(--color-sheet-2); border-radius: 12px; padding: 4px 10px; font-size: var(--text-sm); line-height: 1.3; white-space: nowrap; }
.say > span { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.say::before { content: ""; position: absolute; left: -4px; top: 9px; width: 9px; height: 9px; background: inherit; transform: rotate(45deg); border-radius: 1px; }
.say.shout { background: var(--color-accent-soft); font-family: var(--font-display); font-variation-settings: "wdth" var(--wdth-condensed); font-weight: var(--weight-display); }
.say.empty { color: var(--color-muted); }

/* ── token table ───────────────────────────────────────────────────── */
.tbl { width: 100%; }
.tr { display: grid; align-items: center; gap: var(--space-sm); grid-template-columns: minmax(0, 1fr) auto; padding: 9px var(--space-sm); border-top: var(--rule-hair) solid var(--color-rule-2); text-decoration: none; transition: background-color var(--dur-micro) var(--ease-out); }
.tbl > .tr:first-child { border-top: 0; }
a.tr:hover { background: var(--color-accent-soft); }
.tr .rank, .tr .c-say, .tr .c-vol, .tr .c-spark { display: none; }
.tr .rank { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-muted); }
.tr .tok { display: flex; gap: var(--space-xs); align-items: center; min-width: 0; }
.tr .tok .txt { min-width: 0; display: grid; }
.tr .name { font-family: var(--font-display); font-variation-settings: "wdth" var(--wdth-condensed); font-weight: var(--weight-strong); font-size: var(--text-md); line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; gap: 6px; align-items: center; }
.tr .meta { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr .num { text-align: right; white-space: nowrap; font-family: var(--font-mono); font-size: var(--text-sm); }
.tr .stack { display: grid; justify-items: end; }
.tr.head { color: var(--color-muted); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.04em; padding-block: 8px; border-top: 0; font-variation-settings: "wdth" var(--wdth-condensed); }
.tr.head .num { font-family: var(--font-body); font-size: var(--text-xs); }
.tr.head:hover { background: none; }
.tr .c-spark svg { width: 88px; height: 26px; display: block; margin-left: auto; overflow: visible; }
.spark-line { fill: none; stroke-width: 1.4; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.spark-up { stroke: var(--color-up); }
.spark-down { stroke: var(--color-down); }
.spark-flat { stroke: var(--color-rule); }
.empty { padding: var(--space-lg) var(--space-sm); color: var(--color-muted); }
@media (min-width: 62rem) {
  .tbl.wide .tr { grid-template-columns: 2rem minmax(0, 2fr) minmax(0, 2.2fr) minmax(0, 0.9fr) minmax(0, 0.7fr) minmax(0, 0.8fr) 6.5rem; }
  .tbl.wide .tr .rank, .tbl.wide .tr .c-say, .tbl.wide .tr .c-vol, .tbl.wide .tr .c-spark { display: block; }
  .tbl.wide .tr .stack { display: contents; }
}

/* grid view */
.cards { display: grid; gap: var(--space-xs); grid-template-columns: repeat(auto-fill, minmax(min(16rem, 100%), 1fr)); padding: var(--space-xs); }
.card { display: grid; gap: var(--space-xs); padding: var(--space-sm); background: var(--color-sheet); border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius-panel); text-decoration: none; transition: border-color var(--dur-micro) var(--ease-out); }
.card:hover { border-color: var(--color-ink); }
.card .top { display: flex; gap: var(--space-xs); align-items: center; min-width: 0; }
.card .nums { display: flex; justify-content: space-between; align-items: end; gap: var(--space-xs); font-family: var(--font-mono); font-size: var(--text-sm); }
.card .nums svg { width: 96px; height: 28px; overflow: visible; }

/* ── forms ─────────────────────────────────────────────────────────── */
.field { display: block; margin-top: var(--space-md); }
.field > .label { display: block; font-size: var(--text-sm); font-weight: var(--weight-strong); margin-bottom: 6px; }
.field > .hint { display: block; color: var(--color-muted); font-size: var(--text-xs); margin-top: 6px; max-width: 60ch; }
.input { width: 100%; background: var(--color-sheet); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-input); padding: 10px var(--space-sm); color: var(--color-ink); transition: border-color var(--dur-micro) var(--ease-out); }
.input::placeholder { color: var(--color-muted); }
.input:hover { border-color: var(--color-muted); }
.input:focus { outline: 2px solid var(--color-focus); outline-offset: 1px; border-color: var(--color-ink); }
.input[aria-invalid="true"] { border-color: var(--color-down); }
textarea.input { min-height: 5.5rem; resize: vertical; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.err { min-height: 1.4em; font-size: var(--text-sm); color: var(--color-down); }

/* ── live feed lines ───────────────────────────────────────────────── */
.feed-line { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-xs); padding: var(--space-xs) var(--space-2xs); border-top: var(--rule-hair) solid var(--color-rule-2); text-decoration: none; }
.feed-line:first-child { border-top: 0; }
a.feed-line:hover { background: var(--color-sheet-2); }
.feed-line .t { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-muted); padding-top: 3px; }
.feed-line .who { display: flex; gap: var(--space-2xs); align-items: baseline; flex-wrap: wrap; font-size: var(--text-sm); }
.feed-line .who b { font-family: var(--font-display); font-variation-settings: "wdth" var(--wdth-condensed); font-weight: var(--weight-strong); text-transform: uppercase; }
.feed-line p { font-size: var(--text-md); line-height: 1.3; margin-top: 2px; max-width: 60ch; }
.feed-line.shout p { font-family: var(--font-display); font-variation-settings: "wdth" var(--wdth-condensed); font-weight: var(--weight-display); }
.nfa { font-size: var(--text-xs); color: var(--color-muted); padding: var(--space-2xs) var(--space-2xs) 0; }

/* ── footer ────────────────────────────────────────────────────────── */
.colophon { max-width: 84rem; margin: 0 auto; display: grid; gap: var(--space-2xs); grid-template-columns: minmax(0, 1fr); padding: var(--space-xl) var(--page-gutter) var(--space-md); font-size: var(--text-xs); color: var(--color-muted); }
@media (min-width: 52rem) { .colophon { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.colophon b { color: var(--color-ink); font-weight: var(--weight-strong); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0ms !important; } .dot.on { animation: none; } }

/* ---- live stage: the character is always on air ---- */
.av.xl { width: 100%; height: 100%; border-radius: 22%; border-width: 2px; }
.av.xl span { font-size: clamp(14px, 3vw, 22px); padding: 0 6px; border-radius: 6px; color: var(--color-ink); position: absolute; bottom: 9%; }
.stage-face { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.stage-face ellipse { fill: var(--color-ink); stroke: var(--color-sheet); stroke-width: 3; paint-order: stroke; }
.stage-face .eyes { transform-origin: 50% 40%; transform-box: view-box; }
.stage { position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; aspect-ratio: 9 / 16; width: min(100%, calc(82dvh * 9 / 16)); margin-inline: auto; overflow: hidden; border-radius: 12px; margin: var(--space-2xs) 0;
  background: radial-gradient(60% 55% at 50% 58%, color-mix(in oklch, var(--color-accent) 26%, transparent), transparent 70%), radial-gradient(oklch(100% 0 0 / 0.07) 1px, transparent 1.4px) 0 0 / 14px 14px, var(--stage-bg); color: #fff; }

.stage-top { display: flex; justify-content: space-between; align-items: center; padding: var(--space-2xs) var(--space-xs); position: relative; z-index: 2; font-size: var(--text-xs); }
.stage-live { display: inline-flex; align-items: center; gap: 6px; background: var(--color-accent); color: var(--color-accent-ink); font-family: var(--font-display); font-variation-settings: "wdth" var(--wdth-condensed); font-weight: var(--weight-display); letter-spacing: .04em; padding: 2px 9px; border-radius: var(--radius-pill); }
.stage-live .dot { background: var(--color-accent-ink); }
.stage-center { position: relative; display: grid; place-items: center; min-height: 0; }
.stage-media { position: relative; width: 86%; max-height: 82%; aspect-ratio: 1; transform-origin: 50% 100%; will-change: transform; }
.stage { grid-template-columns: minmax(0, 1fr); }
.stage-puppet { width: 100%; height: 100%; }
.stage-puppet .av.xl { box-shadow: 0 10px 30px oklch(0% 0 0 / 0.35); }
.stage-floor { position: absolute; bottom: 4%; left: 50%; width: 46%; height: 7%; margin-left: -23%; border-radius: 50%; background: oklch(0% 0 0 / 0.45); filter: blur(6px); transform-origin: 50% 50%; z-index: -1; }
.stage-bottom { position: relative; z-index: 2; display: grid; justify-items: center; gap: var(--space-2xs); padding: 0 var(--space-xs) var(--space-xs); min-height: 3.2rem; align-content: end; }
.stage-cap { max-width: 92%; background: var(--color-sheet); color: var(--color-ink); border-radius: 12px; padding: 6px 12px; font-size: var(--text-base); line-height: 1.3; text-align: center; opacity: 0; transform: translateY(6px); transition: opacity var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out); overflow-wrap: anywhere; }
.stage-cap.on { opacity: 1; transform: none; }
.stage-cap.shout { background: var(--color-accent-soft); font-family: var(--font-display); font-variation-settings: "wdth" var(--wdth-condensed); font-weight: var(--weight-display); }
.stage-cap:empty { display: none; }
.stage-tap { padding-block: 6px; }
.stage.talking .stage-tap { opacity: .85; }
.stage-top { gap: var(--space-2xs); }
.stage-mcap { background: oklch(100% 0 0 / 0.08); border-radius: var(--radius-pill); padding: 2px 10px; white-space: nowrap; }
.stage-mcap:empty { display: none; }
.stage-coming { position: absolute; z-index: 3; top: 2.6rem; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; background: var(--color-sheet); color: var(--color-ink); border-radius: var(--radius-pill); padding: 5px 14px 5px 10px; font-size: var(--text-sm); font-weight: var(--weight-strong); box-shadow: 0 6px 20px oklch(0% 0 0 / 0.3); }
.stage-coming[hidden] { display: none; }
.stage-coming .spin { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--color-accent); border-right-color: transparent; animation: spin 900ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .stage-coming .spin { animation: none; } }
.stage-mcap .up { color: oklch(78% 0.15 150); } .stage-mcap .down { color: oklch(72% 0.17 25); }
.stage-watch { white-space: nowrap; }
.stage-pose { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; filter: drop-shadow(0 10px 24px oklch(0% 0 0 / 0.4)); }
.stage.has-kit .stage-media { height: 92%; }
.stage-clip { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; border-radius: 18px; opacity: 0; transition: opacity 420ms ease-in-out; will-change: opacity; }
.stage.has-motion .stage-media { height: 100%; aspect-ratio: 1; }
.stage.has-motion .stage-floor { display: none; }
/* offline: asleep, dimmed, a meter to the threshold */
.stage.is-offline .stage-live { background: oklch(100% 0 0 / 0.14); color: #fff; }
.stage.is-offline .stage-live .dot { background: var(--color-rule); animation: none; }
.stage.is-offline .stage-media { filter: grayscale(.7) brightness(.7); }
.stage-zzz { position: absolute; right: 26%; top: 14%; font-family: var(--font-mono); font-size: var(--text-md); color: #fff; opacity: 0; letter-spacing: .3em; }
.stage.is-offline .stage-zzz { opacity: .8; animation: zzz 3s var(--ease-in-out) infinite; }
@keyframes zzz { 0% { transform: translateY(6px); opacity: 0; } 30% { opacity: .8; } 100% { transform: translateY(-14px); opacity: 0; } }
.stage-offline { display: grid; justify-items: center; gap: 6px; text-align: center; font-size: var(--text-sm); max-width: 92%; }
.stage-offline b { font-family: var(--font-display); font-variation-settings: "wdth" var(--wdth-condensed); font-weight: var(--weight-display); text-transform: uppercase; font-size: var(--text-md); }
.stage-offline .meter { width: min(16rem, 100%); height: 6px; border-radius: 3px; background: oklch(100% 0 0 / 0.15); overflow: hidden; }
.stage-offline .meter i { display: block; height: 100%; background: var(--color-accent); border-radius: 3px; }
/* effects */
.stage-fx { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.fx-chip { position: absolute; bottom: 8%; font-family: var(--font-mono); font-weight: 500; font-size: var(--text-sm); padding: 2px 8px; border-radius: var(--radius-pill); animation: rise 2.2s var(--ease-out) forwards; }
.fx-chip.buy { background: oklch(78% 0.15 150); color: oklch(15% 0.02 262); }
.fx-chip.sell { background: oklch(70% 0.17 25); color: oklch(15% 0.02 262); }
@keyframes rise { from { transform: translateY(0); opacity: 0; } 12% { opacity: 1; } to { transform: translateY(-180px); opacity: 0; } }
.fx-confetti { position: absolute; top: 55%; width: 8px; height: 12px; background: var(--color-accent); border-radius: 2px; animation: pop-confetti 1.6s var(--ease-out) forwards; }
.fx-confetti.ink { background: #fff; }
@keyframes pop-confetti { to { transform: translate(var(--dx), var(--dy)) rotate(var(--r)); opacity: 0; } }
.fx-banner { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%) rotate(-6deg); background: var(--color-accent); color: var(--color-accent-ink); font-family: var(--font-display); font-variation-settings: "wdth" var(--wdth-condensed); font-weight: 700; font-size: clamp(1.75rem, 6vw, 3rem); padding: 4px 18px; border-radius: 10px; animation: banner 3.5s var(--ease-out) forwards; }
@keyframes banner { 0% { transform: translate(-50%, -50%) rotate(-6deg) scale(.4); opacity: 0; } 12% { transform: translate(-50%, -50%) rotate(-6deg) scale(1.08); opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; } }
.stage.shake { animation: shake 420ms var(--ease-out); }
@keyframes shake { 20% { transform: translate(-4px, 2px); } 40% { transform: translate(4px, -2px); } 60% { transform: translate(-3px, 1px); } 80% { transform: translate(2px, 0); } }
.stage.flash::after, .stage.redflash::after { content: ""; position: absolute; inset: 0; pointer-events: none; animation: flash 700ms var(--ease-out) forwards; background: radial-gradient(circle at 50% 60%, color-mix(in oklch, var(--color-accent) 55%, transparent), transparent 70%); }
.stage.redflash::after { background: radial-gradient(circle at 50% 60%, oklch(60% 0.2 25 / 0.45), transparent 70%); }
@keyframes flash { from { opacity: 1; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .stage.shake, .fx-chip, .fx-confetti, .fx-banner, .stage-zzz { animation: none !important; } }
@media (prefers-reduced-motion: reduce) { .stage-cap { transition: none; } }

/* stage backgrounds, chosen at launch */
.stage[data-bg="neon"] { background: radial-gradient(70% 60% at 50% 65%, oklch(55% 0.25 300 / .55), transparent 70%), linear-gradient(oklch(100% 0 0 / .05) 1px, transparent 1px) 0 0 / 100% 22px, linear-gradient(90deg, oklch(100% 0 0 / .05) 1px, transparent 1px) 0 0 / 22px 100%, oklch(18% 0.06 290); }
.stage[data-bg="sunset"] { background: radial-gradient(60% 45% at 50% 80%, oklch(80% 0.16 70 / .7), transparent 70%), linear-gradient(oklch(45% 0.16 20), oklch(25% 0.08 300)); }
.stage[data-bg="space"] { background: radial-gradient(1px 1px at 20% 30%, #fff, transparent), radial-gradient(1px 1px at 70% 20%, #fff, transparent), radial-gradient(1.5px 1.5px at 85% 60%, #fff, transparent), radial-gradient(1px 1px at 35% 75%, #fff, transparent), radial-gradient(1px 1px at 55% 45%, #fff, transparent), radial-gradient(60% 60% at 50% 60%, oklch(40% 0.12 260 / .6), transparent 70%), oklch(12% 0.03 270); }
.stage[data-bg="pond"] { background: radial-gradient(60% 50% at 50% 65%, oklch(70% 0.15 150 / .45), transparent 70%), linear-gradient(oklch(35% 0.08 170), oklch(18% 0.05 190)); }
.stage[data-bg="terminal"] { background: repeating-linear-gradient(0deg, oklch(100% 0 0 / .035) 0 1px, transparent 1px 4px), radial-gradient(60% 55% at 50% 60%, oklch(65% 0.18 145 / .35), transparent 70%), oklch(13% 0.02 150); }
.stage-3d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stage.has-3d .stage-media { height: 100%; width: 100%; aspect-ratio: auto; }
.stage.has-3d .stage-floor, .stage.has-3d .stage-zzz { display: none; }
.stage.has-3d.is-offline .stage-media { filter: grayscale(.5) brightness(.75); }

/* templated characters (4:3 shot with its own background) fill the whole stage like a real stream */
.stage.has-kit .stage-center, .stage.has-motion .stage-center { position: absolute; inset: 0; z-index: 0; }
.stage.has-kit .stage-media, .stage.has-motion .stage-media { position: absolute; inset: 0; height: 100%; width: 100%; aspect-ratio: auto; transform: none !important; }
.stage.has-kit .stage-pose { object-fit: contain; filter: none; }
.stage.has-motion .stage-clip { border-radius: 0; }
.stage.has-kit .stage-floor, .stage.has-motion .stage-floor { display: none; }
.stage.has-kit .stage-top, .stage.has-motion .stage-top, .stage.has-kit .stage-bottom, .stage.has-motion .stage-bottom { z-index: 2; }
.stage.has-kit .stage-top, .stage.has-motion .stage-top { background: linear-gradient(oklch(0% 0 0 / .45), transparent); }
.stage.has-kit .stage-bottom, .stage.has-motion .stage-bottom { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(transparent, oklch(0% 0 0 / .45)); padding-top: var(--space-md); }

.stage-right { display: inline-flex; align-items: center; gap: var(--space-2xs); }
.stage-music { all: unset; cursor: pointer; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: oklch(100% 0 0 / 0.12); color: #fff; font-size: 14px; }
.stage-music[aria-pressed="true"] { background: var(--color-accent); color: var(--color-accent-ink); }
.stage-music:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* stream alerts, top-left under the LIVE row */
.stage-alerts { position: absolute; z-index: 4; top: 2.6rem; left: var(--space-xs); display: grid; gap: 6px; pointer-events: none; max-width: min(22rem, 70%); }
.stage-alert { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 7px 12px 7px 8px; border-radius: 12px; background: oklch(16% 0.03 262 / 0.82); color: #fff; backdrop-filter: blur(6px); box-shadow: 0 8px 24px oklch(0% 0 0 / 0.35); text-decoration: none; transform: translateX(-110%); opacity: 0; transition: transform 380ms var(--ease-out), opacity 380ms var(--ease-out); border-left: 3px solid var(--color-accent); }
.stage-alert.in { transform: none; opacity: 1; }
.stage-alert.out { transform: translateX(-30%); opacity: 0; }
.stage-alert .ic { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-style: normal; font-weight: 700; background: var(--color-accent); color: var(--color-accent-ink); }
.stage-alert .tx { display: grid; min-width: 0; }
.stage-alert b { font-family: var(--font-display); font-variation-settings: "wdth" var(--wdth-condensed); font-weight: var(--weight-display); font-size: var(--text-base); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stage-alert small { font-size: var(--text-xs); opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stage-alert.buy { border-left-color: oklch(78% 0.15 150); } .stage-alert.buy .ic { background: oklch(78% 0.15 150); }
.stage-alert.sell { border-left-color: oklch(70% 0.17 25); } .stage-alert.sell .ic { background: oklch(70% 0.17 25); }
.stage-alert.holders .ic, .stage-alert.buyback .ic, .stage-alert.graduated .ic { background: #fff; color: oklch(15% 0.02 262); }
.stage-coming:not([hidden]) ~ .stage-alerts { top: 5rem; }
@media (prefers-reduced-motion: reduce) { .stage-alert { transition: none; transform: none; } }
@media (max-width: 30rem) { .stage-alert { padding: 5px 10px 5px 6px; gap: 8px; } .stage-alert .ic { width: 22px; height: 22px; font-size: 12px; } .stage-alert b { font-size: var(--text-sm); } .stage-alert small { display: none; } }

/* the whole character, never cropped: the video is contained, its own picture blurred fills the sides */
.stage-backdrop { position: absolute; inset: -40px; z-index: 0; background-size: cover; background-position: center; filter: blur(28px) brightness(.55) saturate(1.2); opacity: 0; transition: opacity 400ms; pointer-events: none; }
.stage.has-motion .stage-backdrop, .stage.has-kit .stage-backdrop { opacity: 1; }
.stage.has-motion .stage-center { z-index: 1; }

/* vertical stream: on wide screens the stage sits beside the feed, like a live app */
.live-split { display: grid; gap: var(--space-xs); align-items: start; }
@media (min-width: 48rem) { .live-split { grid-template-columns: auto minmax(0, 1fr); } .live-split .stage { width: min(26rem, calc(78dvh * 9 / 16)); margin: var(--space-2xs) 0; } }

/* ════════════ "Sticker" theme: neo-brutalist on black ════════════
 * cream outlines (--line), hard offset shadows, blue base, yellow / pink / green stickers */
body { background: var(--c-black) radial-gradient(#ffffff14 1.2px, transparent 1.4px) 0 0 / 22px 22px; font-size: var(--text-base); }
::selection { background: var(--c-yellow); color: var(--c-black); }
* { scrollbar-color: #555 transparent; scrollbar-width: thin; }
.page { max-width: 86rem; padding-inline: var(--page-gutter); }
h1, h2, h3, .caps { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.01em; text-transform: none; font-variation-settings: normal; }
.mono { font-family: var(--font-mono); }
a:hover { color: var(--c-yellow); }

/* header: logo sticker, pill nav, launch button, then the yellow tape */
.site-head { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--c-black) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding-bottom: 10px; }
.topbar { max-width: 86rem; padding: 14px var(--page-gutter) 12px; grid-template-columns: auto 1fr auto; gap: var(--space-sm); }
.topbar .segnav { justify-self: center; }
.wordmark { gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 30px; letter-spacing: -0.02em; font-variation-settings: normal; color: var(--c-cream); }
.wordmark:hover { color: var(--c-cream); }
.wordmark .logo { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px 12px 12px 4px; background: var(--c-blue); border: var(--line) solid var(--c-cream); box-shadow: 3px 3px 0 var(--c-cream); transition: transform var(--dur-short) var(--ease-pop); }
.wordmark:hover .logo { transform: rotate(-8deg) scale(1.06); }
.wordmark .logo svg { width: 22px; height: 22px; }
.segnav { background: none; border: 0; padding: 0; gap: 8px; }
.segnav a { border: 2px solid var(--c-cream); color: var(--c-cream); padding: 6px 16px; font-weight: 700; font-variation-settings: normal; transition: transform var(--dur-micro), box-shadow var(--dur-micro), background-color var(--dur-micro); }
.segnav a:hover { background: var(--c-sheet, #1E1E1E); color: var(--c-cream); transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--c-blue); }
.segnav a[aria-current="page"] { background: var(--c-cream); color: var(--c-black); box-shadow: none; transform: none; }
.topbar .right { gap: 10px; }
.livepill { background: none; border: 2px solid var(--c-green); color: var(--c-cream); padding: 6px 12px; }
.livepill .dot.on { background: var(--c-green); box-shadow: 0 0 0 3px #3ddc8440; }
@media (max-width: 44rem) {
  .site-head { position: relative; }
  .topbar { grid-template-columns: auto 1fr; }
  .topbar .segnav { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; }
  .topbar .segnav a { flex: 1; text-align: center; }
  .topbar .launch-btn { display: none; }
}

.ticker { background: var(--c-yellow); color: var(--c-black); border-block: var(--line) solid var(--c-black); transform: rotate(-0.6deg); margin: 2px -14px 0; scrollbar-width: none; }
.ticker::-webkit-scrollbar { display: none; }
.ticker-track { gap: 26px; padding: 8px 0; }
.ticker a { gap: 7px; font-family: var(--font-display); font-weight: 800; font-size: 17px; color: var(--c-black); letter-spacing: -0.01em; }
.ticker a::before { content: "✶"; font-size: 17px; margin-right: 4px; }
.ticker a:hover { color: var(--c-blue); }
.ticker a b { font-weight: 800; }
.ticker .up, .ticker .down, .ticker .muted { font-family: var(--font-mono); font-size: 13px; font-weight: 600; }
.ticker .up { color: var(--color-up-on-light); } .ticker .down { color: var(--color-down-on-light); } .ticker .muted { color: #555; }
.ticker .av.s { width: 22px; height: 22px; border: 2px solid var(--c-black); }
.ticker .av.s span { font-size: 6.5px; padding: 0 1px; }

/* buttons: pills with an outline and a hard shadow that "presses" */
.btn { border: var(--line) solid var(--c-cream); color: var(--c-cream); background: transparent; font-family: var(--font-body); font-weight: 700; font-variation-settings: normal; min-height: 40px; transition: transform var(--dur-micro) var(--ease-out), box-shadow var(--dur-micro) var(--ease-out), background-color var(--dur-micro); }
.btn:hover { background: #1E1E1E; transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--c-cream); }
.btn:active { transform: translate(2px, 2px); box-shadow: none; }
.btn.accent { background: var(--c-blue); color: var(--c-cream); border-color: var(--c-cream); box-shadow: 3px 3px 0 var(--c-cream); }
.btn.accent:hover { background: var(--c-blue); box-shadow: 5px 5px 0 var(--c-cream); }
.btn.solid { background: var(--c-cream); color: var(--c-black); border-color: var(--c-black); box-shadow: 3px 3px 0 var(--c-blue); }
.btn.solid:hover { background: var(--c-cream); box-shadow: 5px 5px 0 var(--c-blue); }
.btn.pink { background: var(--c-pink); color: var(--c-black); border-color: var(--c-black); box-shadow: 4px 4px 0 var(--c-cream); }
.btn.pink:hover { background: var(--c-pink); color: var(--c-black); box-shadow: 6px 6px 0 var(--c-cream); }
.btn.yellow { background: var(--c-yellow); color: var(--c-black); border-color: var(--c-black); box-shadow: 4px 4px 0 var(--c-cream); }
.btn.sm { min-height: 34px; padding: 5px 14px; font-size: var(--text-sm); }
.btn:active.accent, .btn:active.pink, .btn:active.solid, .btn:active.yellow { box-shadow: none; }

/* cards: every panel is a sticker */
.panel, section:has(> .band + .sheet), .card { background: var(--color-sheet); border: var(--line) solid var(--c-cream); border-radius: var(--radius-panel); box-shadow: var(--shadow) var(--c-blue); }
section:has(> .band + .sheet) { overflow: hidden; }
.shadow-pink { box-shadow: var(--shadow) var(--c-pink) !important; }
.shadow-yellow { box-shadow: var(--shadow) var(--c-yellow) !important; }
.shadow-cream { box-shadow: var(--shadow) var(--c-cream) !important; }
.shadow-green { box-shadow: var(--shadow) var(--c-green) !important; }
.band { background: transparent; color: var(--c-cream); border: 0; border-radius: 0; padding: 12px var(--space-sm) 4px; font-size: var(--text-sm); }
.band .code { display: none; }
.band .caps, .band h2 { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem !important; color: var(--c-cream); text-transform: none; letter-spacing: -0.01em; }
.band a { color: var(--c-cream); }
.sheet { background: transparent; border: 0; border-radius: 0; padding: var(--space-2xs) var(--space-sm) var(--space-sm); }
.av { border: 2px solid var(--c-cream); background: #1E1E1E; }
.av span { background: var(--c-cream); color: var(--c-black); font-family: var(--font-display); font-weight: 800; font-variation-settings: normal; }
.av.p0 { background: repeating-linear-gradient(45deg, var(--c-blue) 0 3px, var(--c-cream) 3px 7px); }
.av.p1 { background: radial-gradient(var(--c-black) 1.3px, var(--c-yellow) 1.6px) 0 0 / 6px 6px; }
.av.p2 { background: repeating-linear-gradient(0deg, var(--c-pink) 0 4px, var(--c-black) 4px 8px); }
.av.p3 { background: conic-gradient(var(--c-black) 25%, var(--c-green) 0 50%, var(--c-black) 0 75%, var(--c-green) 0) 0 0 / 10px 10px; }
.av.p4 { background: repeating-linear-gradient(-45deg, var(--c-yellow) 0 3px, var(--c-blue) 3px 7px); }
.grad { background: var(--c-yellow); color: var(--c-black); border: 1.5px solid var(--c-black); }
.dot.on { background: var(--c-green); box-shadow: 0 0 0 3px #3ddc8440; }

/* controls */
.chip { border: 2px solid var(--c-cream); background: transparent; color: var(--c-cream); font-weight: 700; font-variation-settings: normal; transition: transform var(--dur-micro), box-shadow var(--dur-micro); }
.chip:hover { background: #1E1E1E; transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--c-blue); }
.chip .n { background: #2A2A2A; color: var(--c-cream); }
.chip[aria-pressed="true"] { background: var(--c-cream); color: var(--c-black); border-color: var(--c-cream); transform: none; box-shadow: none; }
.chip[aria-pressed="true"] .n { background: var(--c-blue); color: var(--c-cream); }
.search, .select, .toggle { background: var(--color-sheet); border: 2px solid var(--c-cream); border-radius: var(--radius-input); }
.search:focus-within, .select:focus-within { outline: 3px solid var(--c-yellow); outline-offset: 2px; }
.input { background: var(--color-sheet); border: 2px solid var(--c-cream); border-radius: var(--radius-input); color: var(--c-cream); }
.input:hover { border-color: var(--c-yellow); }
.input:focus { outline: 3px solid var(--c-yellow); outline-offset: 1px; border-color: var(--c-cream); }
.select small { color: var(--color-muted); }
.toggle button[aria-pressed="true"] { background: var(--c-cream); color: var(--c-black); }
.field > .label { font-weight: 700; }

/* token table */
.tbl { background: var(--color-sheet); }
.tr { border-top: 1.5px dashed #ffffff26; padding-block: 9px; }
.tr.head { color: var(--color-muted); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; }
a.tr { transition: background-color var(--dur-micro); }
a.tr:hover { background: #1E1E1E; }
a.tr:hover .name { color: var(--c-yellow); }
.tr .name { font-family: var(--font-display); font-weight: 800; font-variation-settings: normal; font-size: 1.0625rem; }
.card { display: grid; text-decoration: none; transition: transform var(--dur-short) var(--ease-pop), box-shadow var(--dur-short) var(--ease-pop); }
.card:hover { transform: translate(-3px, -3px) rotate(-0.4deg); box-shadow: 9px 9px 0 var(--c-blue); border-color: var(--c-cream); }
.cards .card:nth-child(4n+2) { box-shadow: var(--shadow) var(--c-pink); } .cards .card:nth-child(4n+3) { box-shadow: var(--shadow) var(--c-yellow); } .cards .card:nth-child(4n+4) { box-shadow: var(--shadow) var(--c-green); }

/* speech bubbles: cream with a black outline; shouts are blue */
.say { background: var(--c-cream); color: var(--c-black); border: 2px solid var(--c-black); border-radius: 14px 14px 14px 4px; padding: 5px 11px; font-weight: 500; }
.say::before { display: none; }
.say.shout { background: var(--c-blue); color: var(--c-cream); font-family: var(--font-display); font-weight: 800; font-variation-settings: normal; box-shadow: none; }
.say.empty { background: transparent; color: var(--color-muted); border-color: #444; }
.colophon { color: var(--color-muted); border-top: 1.5px dashed #ffffff26; margin-top: var(--space-xl); }
.colophon b { color: var(--c-cream); }
.nfa { color: var(--color-muted); }
.empty { color: var(--color-muted); }

/* ── the stage ─────────────────────────────────────────────────────── */
.stage { border: var(--line) solid var(--c-cream); border-radius: 16px; background: var(--stage-bg); color: var(--c-cream); }
.stage-live { background: var(--c-red); color: var(--c-cream); border: 2px solid var(--c-black); font-family: var(--font-display); font-weight: 800; font-variation-settings: normal; letter-spacing: 0.02em; transform: rotate(-4deg); box-shadow: 2px 2px 0 var(--c-black); padding: 3px 11px; }
.stage-live .dot { background: var(--c-cream); }
.stage.is-offline .stage-live { background: #2A2A2A; color: var(--c-cream); border-color: var(--c-cream); transform: none; box-shadow: none; }
.stage-mcap, .stage-watch { background: #0b0b0bcc; border: 2px solid var(--c-cream); border-radius: 999px; padding: 2px 10px; }
.stage-watch:empty, .stage-mcap:empty { display: none; }
.stage-cap { background: var(--c-cream); color: var(--c-black); border: var(--line) solid var(--c-black); border-radius: 14px; font-weight: 700; box-shadow: 3px 3px 0 var(--c-blue); backdrop-filter: none; }
.stage-cap.shout { background: var(--c-blue); color: var(--c-cream); border-color: var(--c-black); box-shadow: 3px 3px 0 var(--c-cream); font-family: var(--font-display); font-weight: 800; }
.stage-music { border: 2px solid var(--c-cream); background: #0b0b0bcc; }
.stage-music[aria-pressed="true"] { background: var(--c-yellow); color: var(--c-black); border-color: var(--c-black); }
.stage-coming { background: var(--c-yellow); color: var(--c-black); border: var(--line) solid var(--c-black); box-shadow: 3px 3px 0 var(--c-black); transform: translateX(-50%) rotate(-2deg); }
.stage-coming .spin { border-color: var(--c-black); border-right-color: transparent; }
.stage-offline .meter { border: 2px solid var(--c-cream); height: 10px; border-radius: 999px; }
.stage-offline .meter i { background: var(--c-yellow); border-radius: 0; }
.stage-alert { background: var(--c-yellow); color: var(--c-black); border: var(--line) solid var(--c-black); border-left: var(--line) solid var(--c-black); border-radius: 12px; box-shadow: 3px 3px 0 var(--c-black); backdrop-filter: none; }
.stage-alert.in { transform: rotate(-2deg); }
.stage-alert .ic { background: var(--c-cream); color: var(--c-black); border: 2px solid var(--c-black); }
.stage-alert small { opacity: 0.85; }
.stage-alert.buy { background: var(--c-green); } .stage-alert.sell { background: var(--c-red); color: var(--c-cream); }
.stage-alert.holders { background: var(--c-blue); color: var(--c-cream); } .stage-alert.buyback { background: var(--c-pink); }
.stage-alert.live, .stage-alert.graduated { background: var(--c-cream); }
.stage-alert.buy .ic, .stage-alert.sell .ic, .stage-alert.holders .ic, .stage-alert.buyback .ic, .stage-alert.graduated .ic { background: var(--c-cream); color: var(--c-black); }
.fx-chip { border: 2px solid var(--c-black); box-shadow: 2px 2px 0 var(--c-black); }
.fx-chip.buy { background: var(--c-green); color: var(--c-black); } .fx-chip.sell { background: var(--c-red); color: var(--c-cream); }
.fx-confetti { background: var(--c-yellow); border: 1.5px solid var(--c-black); }
.fx-confetti:nth-child(3n) { background: var(--c-pink); } .fx-confetti:nth-child(3n+1) { background: var(--c-blue); }
.fx-confetti.ink { background: var(--c-cream); }
.fx-banner { background: var(--c-yellow); color: var(--c-black); border: var(--line) solid var(--c-black); box-shadow: 5px 5px 0 var(--c-black); font-family: var(--font-display); font-weight: 800; }

/* ── site-wide toasts: stickers that pop in ─────────────────────────── */
.toasts { position: fixed; z-index: 80; right: max(var(--page-gutter), env(safe-area-inset-right)); bottom: max(var(--page-gutter), env(safe-area-inset-bottom)); display: grid; gap: 12px; width: min(23rem, calc(100vw - 2 * var(--page-gutter))); pointer-events: none; }
.toast { pointer-events: auto; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 14px 12px 10px; border-radius: 16px; text-decoration: none; color: var(--c-black);
  background: var(--k, var(--c-yellow)); border: var(--line) solid var(--c-black); box-shadow: 5px 5px 0 var(--c-cream); position: relative; overflow: hidden;
  transform: translateX(calc(100% + 3rem)) rotate(6deg); opacity: 0; transition: transform 560ms var(--ease-pop), opacity 300ms var(--ease-out); }
.toast:hover { color: var(--c-black); }
.toast.in { transform: rotate(var(--tilt, 1.5deg)); opacity: 1; }
.toast:nth-child(2n).in { --tilt: -1.2deg; }
.toast.out { transform: translateY(20px) rotate(4deg); opacity: 0; }
.toast::after { content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: var(--c-black); transform-origin: left; animation: toast-life var(--life, 6s) linear forwards; }
@keyframes toast-life { to { transform: scaleX(0); } }
.toast .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 19px; background: var(--c-cream); border: 2px solid var(--c-black); }
.toast .tx { display: grid; min-width: 0; }
.toast b { font-family: var(--font-display); font-weight: 800; font-size: 1.0625rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast small { font-size: var(--text-xs); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .85; }
.toast .av { width: 30px; height: 30px; border-color: var(--c-black); }
.toast.burn { --k: var(--c-pink); } .toast.airdrop { --k: var(--c-green); } .toast.claim { --k: var(--c-yellow); } .toast.whale { --k: var(--c-blue); color: var(--c-cream); } .toast.creator { --k: var(--c-cream); }
.toast.whale:hover { color: var(--c-cream); }
@media (max-width: 40rem) { .toasts { left: var(--page-gutter); right: var(--page-gutter); width: auto; } .toast:nth-child(n+3) { display: none; } }

.trail { position: fixed; inset: 0; z-index: 90; pointer-events: none; }

/* ── wallet: header button, menu, picker modal ─────────────────────── */
.wbtn-box { position: relative; display: inline-flex; }
.wbtn.on { gap: 8px; font-family: var(--font-mono); font-size: var(--text-xs); }
.wdot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--c-cream); background: conic-gradient(hsl(var(--h) 90% 60%), hsl(calc(var(--h) + 120) 90% 60%), hsl(calc(var(--h) + 240) 90% 60%), hsl(var(--h) 90% 60%)); }
.wmenu { position: absolute; right: 0; top: calc(100% + 10px); z-index: 60; min-width: 13rem; display: grid; background: var(--color-sheet); border: var(--line) solid var(--c-cream); border-radius: 14px; box-shadow: 5px 5px 0 var(--c-blue); overflow: hidden; }
.wmenu a, .wmenu button { all: unset; box-sizing: border-box; cursor: pointer; padding: 10px 14px; font-weight: 700; font-size: var(--text-sm); color: var(--c-cream); }
.wmenu a + a, .wmenu a + button { border-top: 1.5px dashed #ffffff26; }
.wmenu a:hover, .wmenu button:hover, .wmenu a:focus-visible, .wmenu button:focus-visible { background: var(--c-yellow); color: var(--c-black); }
.wmodal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: var(--page-gutter); background: #000a; backdrop-filter: blur(4px); animation: wfade 160ms ease-out; }
@keyframes wfade { from { opacity: 0; } }
.wmodal-card { width: min(26rem, 100%); background: var(--color-sheet); border: var(--line) solid var(--c-cream); border-radius: 18px; box-shadow: 7px 7px 0 var(--c-pink); padding: var(--space-md); display: grid; gap: var(--space-xs); animation: wpop 320ms var(--ease-pop); }
@keyframes wpop { from { transform: scale(.92) rotate(-1.5deg); opacity: 0; } }
.wmodal-head { display: flex; justify-content: space-between; align-items: center; }
.wmodal-head h2 { font-size: 1.5rem; }
.wmodal-x { all: unset; cursor: pointer; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--c-cream); font-size: 1.25rem; line-height: 1; }
.wmodal-x:hover, .wmodal-x:focus-visible { background: var(--c-yellow); color: var(--c-black); border-color: var(--c-black); }
.wpick-list { display: grid; gap: 10px; margin-top: 4px; }
.wpick { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 14px; border: 2px solid var(--c-cream); border-radius: 14px; transition: transform var(--dur-micro), box-shadow var(--dur-micro); }
.wpick:hover, .wpick:focus-visible { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--c-yellow); }
.wpick[aria-busy="true"] { opacity: .6; cursor: progress; }
.wpick img, .wpick-ic { width: 32px; height: 32px; border-radius: 8px; background: #222; }
.wpick b { font-family: var(--font-display); font-weight: 800; font-size: 1.0625rem; }
.wpick .mono { font-size: 11px; color: var(--c-green); }
.wpick-none { display: grid; gap: 8px; padding: 12px; border: 2px dashed var(--c-cream); border-radius: 14px; }
.wpick-none p { color: var(--color-muted); font-size: var(--text-sm); }
.wpick-none .row { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 44rem) { .topbar .right { gap: 6px; } .livepill { display: none; } }
.wordmark .logo-img { width: 42px; height: 42px; display: block; transition: transform var(--dur-short) var(--ease-pop); }
.wordmark:hover .logo-img { transform: rotate(-8deg) scale(1.06); }
.colophon { display: grid; gap: var(--space-xs); grid-template-columns: minmax(0, 1fr) !important; }
.colophon .disclaimer { color: var(--c-cream); font-weight: 700; font-size: var(--text-sm); }
.colophon .foot-row { display: flex; justify-content: space-between; align-items: center; gap: var(--space-sm); flex-wrap: wrap; }
.foot-x { display: grid; place-items: center; width: 40px; height: 40px; border: 2px solid var(--c-cream); border-radius: 12px; color: var(--c-cream); transition: transform var(--dur-micro), box-shadow var(--dur-micro); }
.foot-x:hover { color: var(--c-cream); transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--c-blue); }
.foot-x svg { width: 18px; height: 18px; }

/* ── phones ─────────────────────────────────────────────────────────── */
.ticker:empty { display: none; }
@media (max-width: 44rem) {
  .topbar { padding-inline: 14px; gap: 10px 12px; }
  .topbar .segnav { gap: 6px; }
  .topbar .segnav a { padding: 6px 8px; font-size: 14px; min-width: 0; }
  .wordmark { font-size: 26px; }
  .wordmark .logo-img { width: 36px; height: 36px; }
  .band { flex-wrap: wrap; row-gap: 8px; }
  .band .right { flex-wrap: nowrap; }
}
@media (max-width: 30rem) { .segnav .long { display: none; } }

/* footer: the $REZO contract address, copyable */
.foot-ca { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: var(--text-sm); min-width: 0; }
.foot-ca a { font-weight: 700; }
.ca-copy { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-width: 0; border: 2px solid var(--c-cream); border-radius: 999px; padding: 3px 4px 3px 12px; }
.ca-copy code { font-family: var(--font-mono); font-size: var(--text-xs); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; color: var(--c-cream); }
.ca-copy .ca-act { background: var(--c-yellow); color: var(--c-black); border-radius: 999px; padding: 1px 10px; font-weight: 700; font-size: var(--text-xs); flex: none; }
.ca-copy:hover .ca-act { background: var(--c-pink); }
.ca-copy:focus-visible { outline: 3px solid var(--c-yellow); outline-offset: 2px; }
/* the $REZO nav link: hidden on phones (the footer links to it) */
@media (max-width: 40rem) { .segnav .nav-rezo { display: none; } }
/* while the character is being made: no sleeping "z z z" */
.stage.is-coming .stage-zzz { display: none; }
/* token page: the contract address under the name */
.ca-row { margin-top: 8px; display: flex; min-width: 0; }
.ca-row .ca-copy { max-width: 100%; }
.ca-copy .ca-lbl { font-weight: 800; font-size: var(--text-xs); color: var(--color-muted); flex: none; }
.foot-tg .foot-toggle { all: unset; cursor: pointer; font-size: var(--text-xs); color: var(--color-muted); }
.foot-tg .foot-toggle:hover { color: var(--c-cream); text-decoration: underline; }
.foot-tg .foot-toggle:focus-visible { outline: 3px solid var(--c-yellow); outline-offset: 2px; border-radius: 4px; }
