/* /assets/css/site.css */
/* Void Finance: the stylesheet every site page loads (fonts, tokens, base, buttons, header, explorer, footer, prose, updates and roadmap). Sections only some pages use live beside it: site-hero.css, site-discord.css, site-tape.css. Colours are the bot's card theme (core/theme.py). */

/* ---------------------------------------------------------------- fonts */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/inter-700.woff2") format("woff2"); }

/* --------------------------------------------------------------- tokens */
:root {
  color-scheme: dark;
  --bg: #0A1219;             /* the cards' background, bottom */
  --bg-top: #101C25;         /* ...and top */
  --deep: #060B10;           /* behind the hero emblem and the horizon */
  --panel: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008)), rgba(11, 19, 26, 0.82);
  --panel-solid: #0C151D;
  --border: rgba(186, 230, 253, 0.11);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --white: #FFFFFF;
  --text: #E2E8F0;
  --soft: #CBD5E1;
  --muted: #94A3B8;
  --faint: #718096;          /* the dimmest text; still 4.5:1 on every background */
  --up: #22C55E;             /* price up, as on the cards */
  --down: #EF4444;           /* price down */
  --flat: #94A3B8;
  --open: #4ADE80;           /* a market that's open: the cards' session dot */
  --closed: #FCA5A5;         /* ...and one that's closed: a light red ring */
  --amber: #F5B942;
  --sky: #38BDF8;            /* anything clickable */
  --sky-hover: #7DD3FC;
  --sky-ink: #04121B;        /* text on a sky button */
  --kicker: #BAE6FD;         /* the cards' super-title chip */
  --kicker-line: rgba(125, 211, 252, 0.45);
  --glow-green: rgba(150, 192, 140, 0.34);
  --glow-blue: rgba(53, 147, 197, 0.38);
  --radius: 14px;
  --radius-sm: 10px;
  --tick: rgba(186, 230, 253, 0.45);
  --shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.7), 0 2px 8px rgba(0, 0, 0, 0.35);
  --wrap: 1180px;
  --gutter: 16px;
  --header: 64px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, monospace;
  /* Film grain, drawn once as a tiny SVG. */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; } }

/* ----------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 var(--font);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none;
  background: var(--grain); opacity: 0.045;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; color: var(--white); font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; text-wrap: balance; }
p { margin: 0; }
a { color: var(--sky); text-decoration: none; }
a:hover { color: var(--sky-hover); }
code { font-family: var(--mono); font-size: 0.92em; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(56, 189, 248, 0.35); color: var(--white); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: var(--gutter); top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 10px; background: var(--sky); color: var(--sky-ink); font-weight: 600;
}
.skip:focus { top: 12px; color: var(--sky-ink); }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.section { padding-block: clamp(56px, 7vw, 96px); }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 48px); }
.section-head h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem); letter-spacing: -0.03em; }
/* Big headings: solid horizon white (studio: no gradient text); the emphasised words in sky. */
.hero h1, .section-head h2, .prose h1, .not-found h1 { color: var(--white); }
.hero h1 em { font-style: normal; color: var(--sky); }
/* A hairline between sections, brightest in the middle. */
.ruled { position: relative; }
.ruled::before, .ruled::after { content: ""; position: absolute; top: 0; left: 50%; translate: -50% 0; pointer-events: none; }
.ruled::before { width: min(100% - 2 * var(--gutter), var(--wrap)); height: 1px; background: linear-gradient(90deg, transparent, rgba(186, 230, 253, 0.2) 25%, rgba(186, 230, 253, 0.2) 75%, transparent); }
.ruled::after { width: 220px; height: 1px; background: linear-gradient(90deg, transparent, rgba(186, 230, 253, 0.6), transparent); }
/* Crop marks in a panel's corners. */
.ticks { position: relative; }
.ticks::after {
  content: ""; position: absolute; inset: 10px; z-index: 3; pointer-events: none; opacity: 0.8; transition: opacity 0.3s;
  background:
    linear-gradient(var(--tick) 0 0) 0 0 / 9px 1px no-repeat, linear-gradient(var(--tick) 0 0) 0 0 / 1px 9px no-repeat,
    linear-gradient(var(--tick) 0 0) 100% 0 / 9px 1px no-repeat, linear-gradient(var(--tick) 0 0) 100% 0 / 1px 9px no-repeat,
    linear-gradient(var(--tick) 0 0) 0 100% / 9px 1px no-repeat, linear-gradient(var(--tick) 0 0) 0 100% / 1px 9px no-repeat,
    linear-gradient(var(--tick) 0 0) 100% 100% / 9px 1px no-repeat, linear-gradient(var(--tick) 0 0) 100% 100% / 1px 9px no-repeat;
}
.section-head .lede { margin-top: 16px; }
.lede { color: var(--soft); font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); line-height: 1.55; }

/* The label above a title: monospace, in brackets. */
.kicker {
  display: inline-flex; gap: 0.7em; margin-bottom: 18px;
  color: var(--kicker); font: 500 0.72rem/1.4 var(--mono); letter-spacing: 0.18em; text-transform: uppercase;
}
.kicker::before { content: "["; opacity: 0.5; }
.kicker::after { content: "]"; opacity: 0.5; }
/* site-kicker-plain: the label without its brackets, everywhere (owner: brackets out 100%; docs/design/kicker-brackets). */
html[data-flag-site-kicker-plain] .kicker::before, html[data-flag-site-kicker-plain] .kicker::after { content: none; }

/* -------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border: 1px solid transparent; border-radius: 10px;
  font-weight: 600; font-size: 1rem; line-height: 1.2; white-space: nowrap; cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.25s, transform 0.25s;
}
.btn svg { width: 20px; height: 20px; flex: none; fill: currentColor; }
.btn-primary { background: var(--sky); color: var(--sky-ink); box-shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.6); }
.btn-primary:hover { background: var(--sky-hover); color: var(--sky-ink); transform: translateY(-2px); box-shadow: 0 12px 28px -12px rgba(0, 0, 0, 0.7); }
.btn-ghost { border-color: rgba(56, 189, 248, 0.45); background: rgba(56, 189, 248, 0.06); color: var(--sky); }
.btn-ghost:hover { border-color: var(--sky); background: rgba(56, 189, 248, 0.12); color: var(--sky-hover); transform: translateY(-2px); }
.btn-sm { min-height: 44px; padding: 8px 16px; font-size: 0.92rem; border-radius: 8px; }
.btn-sm svg { width: 18px; height: 18px; }
.btn .arrow { transition: transform 0.25s; }
.btn:hover .arrow { transform: translateX(3px); }

/* Add To Discord: "Coming Soon" and not a link until site.config.js has the invite (see the <head> script). */
.invite-on { display: none; }
.has-invite .invite-on { display: inline; }
.has-invite .invite-off { display: none; }
html:not(.has-invite) [data-invite] {
  border-color: rgba(148, 163, 184, 0.3); background: rgba(148, 163, 184, 0.08); color: var(--muted);
  box-shadow: none; transform: none; cursor: default; pointer-events: none;
}
html:not(.has-invite) [data-invite] svg { opacity: 0.55; }
/* Whole blocks that swap with the invite: .if-invite once site.config.js has it, .if-no-invite until then. */
html:not(.has-invite) .if-invite, .has-invite .if-no-invite { display: none !important; }
/* Support links stay hidden until site.config.js has the support server. */
html:not(.has-support) [data-support] { display: none !important; }

/* --------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 11, 16, 0.72); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px);
}
.nav { display: flex; align-items: center; gap: 12px; height: var(--header); }
.brand { display: flex; align-items: center; margin-right: auto; padding: 9px 0; }
.brand img { width: auto; height: 38px; }
/* The header's logo: the VOID wordmark (the O 1.35x the letters), sized so the letters match the nav's weight. */
.site-header .brand { padding: 0; min-height: 44px; }
.site-header .brand img { height: 42px; }
@media (max-width: 639px) { .site-header .brand img { height: 34px; } }
.nav-links { display: flex; align-items: center; gap: 4px; margin-right: 8px; }
.nav-links a { padding: 10px 14px; border-radius: 8px; color: var(--soft); font-weight: 500; font-size: 0.92rem; transition: color 0.2s, background-color 0.2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--sky); background: rgba(56, 189, 248, 0.08); }
.nav-menu { position: relative; display: none; }
.nav-menu summary {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px;
  border: 1px solid var(--line-strong); color: var(--text); cursor: pointer; list-style: none;
}
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary svg { width: 20px; height: 20px; stroke: currentColor; }
.nav-menu[open] summary { border-color: var(--sky); color: var(--sky); }
.nav-menu-panel {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 210px; padding: 8px;
  border: 1px solid var(--border); border-radius: 14px; background: #0D1720; box-shadow: var(--shadow);
}
.nav-menu-panel a { display: block; padding: 12px 14px; border-radius: 10px; color: var(--text); font-weight: 500; }
.nav-menu-panel a:hover { background: rgba(56, 189, 248, 0.08); color: var(--sky); }
/* Portal: a live dot beside it (still: no glow, no pulse), a button of its own on phones (where the links fold into the menu). */
.live-dot {
  display: inline-block; flex: none; width: 7px; height: 7px; border-radius: 50%;
  background: var(--up);
}
.live-dot.dark { background: var(--sky-ink); }
.nav-links .nav-portal { display: inline-flex; align-items: center; gap: 8px; margin-left: 4px; border: 1px solid rgba(56, 189, 248, 0.35); background: rgba(56, 189, 248, 0.06); color: var(--white); }
.nav-portal-btn { display: none; gap: 8px; color: var(--white); }
html:not(.has-invite) .menu-invite { display: none; }
@media (max-width: 719px) {
  .nav-links { display: none; }
  .nav-menu { display: block; }
  .nav .btn-sm { padding-inline: 12px; }
  .nav-portal-btn { display: inline-flex; }
  .nav .btn-primary.btn-sm { display: none; }
}

/* ---------------------------------------------- shared with the Portal */
.up { color: var(--up); }
.down { color: var(--down); }
.flat { color: var(--flat); }
.cmd-chip {
  display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 6px;
  border: 1px solid rgba(56, 189, 248, 0.3); background: rgba(56, 189, 248, 0.06);
  color: var(--kicker); font: 500 0.72rem/1.3 var(--mono); letter-spacing: 0.02em; white-space: nowrap;
}
a.cmd-chip:hover { border-color: var(--sky); color: var(--sky-hover); }
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 99px;
  border: 1px solid var(--line-strong); color: var(--muted); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.04em; white-space: nowrap;
}
.badge.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--up); }
.badge.warn { border-color: rgba(245, 185, 66, 0.45); color: var(--amber); }
.tile-live {
  display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: rgba(8, 14, 20, 0.6);
}
.tile-live .t-label { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 6px; color: var(--muted); font: 500 0.68rem/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; }
.tile-live .t-delay { color: var(--faint); font-size: 0.58rem; letter-spacing: 0.06em; }
.tile-live .t-delay[hidden] { display: none; }
.tile-live .t-price { overflow: hidden; padding-block: 0.2em; border-radius: 4px; color: var(--white); font-size: 1.05rem; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; white-space: nowrap; text-overflow: ellipsis; }
/* A price that moved (pulse.js): each digit that changed rolls to its new value, green up and red down, then back to
   white. Only the digits change colour: no glow and nothing behind them. */
.odo { display: inline-flex; height: 1.2em; overflow: hidden; line-height: 1.2em; vertical-align: top; -webkit-user-select: none; user-select: none; }
.odo-d { display: inline-block; height: 1.2em; overflow: hidden; }
.odo-s { display: flex; flex-direction: column; transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), color 0.4s; }
.odo-s > span { height: 1.2em; }
.odo-d.is-up .odo-s { color: var(--up); }
.odo-d.is-down .odo-s { color: var(--down); }
.odo-c { white-space: pre; }
.tile-live .t-change { font-size: 0.8rem; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: no-preference) {
  .flash-up { animation: flash-up 1.1s ease-out; }
  .flash-down { animation: flash-down 1.1s ease-out; }
}
/* A number that just changed: its text turns green (up) or red (down), then eases back to its own colour. No box
   behind it, no glow. */
@keyframes flash-up { 0%, 25% { color: var(--up); } }
@keyframes flash-down { 0%, 25% { color: var(--down); } }

/* ------------------------------------------------------------- explorer */
/* The Card Explorer (home.js): a tab per group of cards. In each: one card large beside its headline, its /help line
   and a link to try it, and the group's cards below to pick from. Without JavaScript every group shows. */
.explorer {
  padding: clamp(14px, 2vw, 22px);
  border: 1px solid var(--border); border-radius: 18px; background: var(--panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), var(--shadow);
}
.ex-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(16px, 2vw, 22px); }
.ex-tab {
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 8px 16px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.03); color: var(--soft);
  font-weight: 600; font-size: 0.95rem; cursor: pointer; transition: color 0.2s, background-color 0.2s, border-color 0.2s, box-shadow 0.25s;
}
.ex-tab > span:last-child { min-width: 22px; padding: 1px 7px; border-radius: 99px; background: rgba(255, 255, 255, 0.07); color: var(--muted); font: 500 0.72rem/1.5 var(--mono); text-align: center; }
.ex-tab:hover { border-color: rgba(56, 189, 248, 0.5); color: var(--white); }
.ex-tab[aria-selected="true"] { border-color: var(--sky); background: rgba(56, 189, 248, 0.12); color: var(--white); box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.25), 0 8px 24px -14px rgba(56, 189, 248, 0.8); }
.ex-tab[aria-selected="true"] span { background: rgba(56, 189, 248, 0.2); color: var(--kicker); }
html:not(.js) .ex-tabs { display: none; }

.ex-panel {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "shot info" "list list";
  align-items: center; gap: 20px clamp(20px, 3vw, 40px);
}
.js .ex-panel:not(.is-active) { display: none; }
html:not(.js) .ex-panel + .ex-panel { margin-top: 36px; padding-top: 36px; border-top: 1px solid var(--line); }
.ex-shot { position: relative; grid-area: shot; overflow: hidden; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--bg); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.9); }
.ex-shot img { width: 100%; aspect-ratio: 3 / 2; transition: opacity 0.25s; }
.ex-shot img.is-swapping { opacity: 0.35; }
/* A new card, as six shutter bands sliding in over the old one (home.js). */
.ex-band { position: absolute; inset: 0; background-size: 100% 100%; pointer-events: none; }
.ex-info { grid-area: info; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.ex-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.ex-meta .kicker { margin: 0; }
.badge.auto { border-color: rgba(56, 189, 248, 0.35); color: var(--kicker); }
.badge.auto svg { width: 13px; height: 13px; stroke: currentColor; }
.badge[hidden] { display: none; }
.ex-info h3 { font-size: clamp(1.35rem, 1rem + 1.1vw, 1.9rem); }
.ex-desc { color: var(--soft); }
.ex-try { margin-top: 6px; }
.ex-try code { color: var(--white); font-size: 0.88em; }
/* The group's cards: one row on a wide screen, as many as fit per row below that. */
.ex-list { grid-area: list; display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 10px; }
.ex-item {
  display: flex; flex-direction: column; gap: 8px; width: 100%; height: 100%; padding: 6px 6px 10px; border-radius: 10px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); text-align: left; cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.25s, transform 0.25s;
}
.ex-item img { width: 100%; aspect-ratio: 3 / 2; border-radius: 6px; opacity: 0.65; transition: opacity 0.2s; }
.ex-item > span { display: grid; gap: 2px; min-width: 0; padding-inline: 4px; }
.ex-item b { color: var(--text); font-size: 0.84rem; font-weight: 600; line-height: 1.3; }
.ex-item code { overflow: hidden; color: var(--muted); font-size: 0.72rem; white-space: nowrap; text-overflow: ellipsis; }
.ex-item:hover { border-color: rgba(56, 189, 248, 0.45); transform: translateY(-2px); }
.ex-item:hover img, .ex-item[aria-pressed="true"] img { opacity: 1; }
.ex-item[aria-pressed="true"] { border-color: var(--sky); background: rgba(56, 189, 248, 0.1); box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.25); }
.ex-item[aria-pressed="true"] b { color: var(--white); }
html:not(.js) .ex-item { cursor: default; }

@media (max-width: 999px) {
  .ex-panel { grid-template-columns: minmax(0, 1fr); grid-template-areas: "shot" "info" "list"; }
}
/* Phones: the tabs two by two, and the group's cards in a row that scrolls sideways (inside the panel). */
@media (max-width: 639px) {
  .ex-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ex-tab { justify-content: center; padding-inline: 10px; font-size: 0.9rem; }
  .ex-tab > span:last-child { display: none; }
  .ex-panel { gap: 18px; }
  .ex-list {
    display: flex; gap: 8px; overflow-x: auto; margin-inline: -14px; padding: 2px 14px 6px;
    scroll-snap-type: x mandatory; scroll-padding-inline: 14px; scrollbar-width: none; overscroll-behavior-x: contain;
  }
  .ex-list::-webkit-scrollbar { display: none; }
  .ex-list li { flex: none; width: 136px; scroll-snap-align: start; }
}

/* --------------------------------------------------------------- footer */
.site-footer { padding-block: 48px 0; border-top: 1px solid var(--line); background: var(--deep); }
.footer-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 24px 40px; }
.footer-grid .brand { padding-block: 11px; }
.footer-grid .brand img { height: 34px; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 24px; }
.footer-nav a { padding: 10px 4px; margin-inline: -4px; color: var(--soft); font-size: 0.95rem; }
.footer-nav a:hover { color: var(--sky); }
.footer-x { display: inline-flex; align-items: center; gap: 8px; }
.footer-x svg { width: 15px; height: 15px; flex: none; fill: currentColor; }
.disclaimer { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.88rem; }
.copyright { grid-column: 1 / -1; margin-top: -12px; color: var(--faint); font-size: 0.82rem; }
.site-footer { overflow: hidden; }
.footer-mark { width: min(100% - 2 * var(--gutter), var(--wrap)); height: clamp(70px, 13vw, 180px); margin: 40px auto -40px; overflow: hidden; }
.footer-mark img { width: 100%; height: auto; opacity: 0.07; -webkit-mask-image: linear-gradient(#000 25%, transparent 85%); mask-image: linear-gradient(#000 25%, transparent 85%); }
@media (max-width: 639px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-nav { justify-content: flex-start; }
}

.js-only { display: none; }
.js .js-only { display: flex; }

/* ---------------------------------------------------------------- prose */
.prose-wrap { width: min(100% - 2 * var(--gutter), 760px); margin-inline: auto; padding-block: clamp(40px, 6vw, 72px) clamp(64px, 8vw, 104px); }
.prose h1 { font-size: clamp(2.3rem, 1.5rem + 2.8vw, 3.4rem); letter-spacing: -0.03em; }
.prose .updated { margin-top: 12px; color: var(--muted); font-size: 0.92rem; }
.prose h2 { margin-top: 44px; font-size: 1.4rem; }
.prose p, .prose li { max-width: 36em; color: var(--soft); } /* about 75 characters a line */
.prose p { margin-top: 14px; }
.prose ul { margin-top: 12px; padding-left: 1.25em; list-style: disc; }
.prose li { margin-top: 8px; padding-left: 4px; }
.prose li::marker { color: var(--faint); }
.prose strong { color: var(--white); font-weight: 600; }
.prose a { padding-block: 12px; text-decoration: underline; text-decoration-color: rgba(56, 189, 248, 0.4); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: currentColor; }
.prose .callout { max-width: calc(36em + 42px); margin-top: 28px; padding: 18px 20px; border: 1px solid var(--kicker-line); border-radius: 14px; background: rgba(56, 189, 248, 0.05); }
.prose .callout p { max-width: none; margin: 0; color: var(--text); }

.not-found { display: grid; place-items: center; min-height: calc(100vh - var(--header) - 260px); padding-block: 80px; text-align: center; }
.not-found h1 { font-size: clamp(2.4rem, 1.5rem + 3vw, 3.6rem); }
.not-found p { margin-top: 14px; color: var(--soft); }
.not-found .hero-actions { justify-content: center; }

/* No motion: hover lifts and zooms stay put. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
  .ex-item:hover, .btn:hover { transform: none; }
}

/* ------------------------------------------------------ updates & roadmap */
/* /updates and /roadmap (changes.js): a timeline of what changed, and a board of what's shipped, next and planned.
   Statuses use sky, soft and muted: red and green stay for price moves. */
.cl-wrap { width: min(100% - 2 * var(--gutter), 880px); margin-inline: auto; padding-block: clamp(40px, 6vw, 72px) clamp(64px, 8vw, 104px); }
.cl-wrap.cl-wide { width: min(100% - 2 * var(--gutter), var(--wrap)); }
.cl-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 24px; }
.cl-head .kicker { margin-bottom: 14px; }
.cl-switch { display: flex; gap: 8px; }
.ex-tab[aria-current="page"], .ex-tab[aria-pressed="true"] {
  border-color: var(--sky); background: rgba(56, 189, 248, 0.12); color: var(--white);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.25), 0 8px 24px -14px rgba(56, 189, 248, 0.8);
}
.ex-tab[aria-pressed="true"] span { background: rgba(56, 189, 248, 0.2); color: var(--kicker); }
.cl-lede { max-width: 46em; margin-top: 18px; }
.cl-lede a { color: var(--sky); text-decoration: underline; text-decoration-color: rgba(56, 189, 248, 0.4); text-underline-offset: 3px; }
.cl-lede a:hover { text-decoration-color: currentColor; }
.cl-filters { flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.cl-item[hidden], .cl-day[hidden], .rm-item[hidden] { display: none; }

.cl-list { margin-top: 34px; }
.cl-day { position: relative; padding: 0 0 34px 30px; }
.cl-day::before { content: ""; position: absolute; left: 5px; top: 14px; bottom: 0; width: 1px; background: var(--line-strong); }
.cl-day:last-child { padding-bottom: 0; }
.cl-day:last-child::before { bottom: auto; height: 0; }
.cl-day h2 { position: relative; color: var(--white); font-size: 1.05rem; letter-spacing: -0.01em; }
.cl-day h2::before { content: ""; position: absolute; left: -30px; top: 0.36em; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--sky); background: var(--bg); box-sizing: border-box; }
.cl-day:first-child h2::before, .cl-day.is-first h2::before { background: var(--sky); }
.cl-item { margin-top: 14px; padding: 16px 20px 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); }
.cl-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.cl-item h3 { margin-top: 10px; color: var(--white); font-size: 1.12rem; letter-spacing: -0.01em; }
.cl-item ul { margin-top: 8px; padding-left: 1.2em; list-style: disc; }
.cl-item li, .cl-item p { max-width: 36em; } /* about 75 characters a line */
.cl-item li { margin-top: 6px; color: var(--soft); line-height: 1.55; }
.cl-item li::marker { color: var(--faint); }
.cl-none { margin-top: 24px; color: var(--muted); }

/* The roadmap: one list per status, picked on the track (changes.js). A row's dot is its area's colour, as in the filters.
   Without JavaScript: every list shows. */
.rm-page { --rm-portal: #2DD4BF; --rm-website: #60A5FA; --rm-data: #C084FC; --rm-bot: #FB923C; --rm-accounts: #F472B6; }
.rm-stop, .cl-filters .ex-tab { --c: var(--sky); }
.rm-page [data-area="portal"] { --c: var(--rm-portal); }
.rm-page [data-area="website"] { --c: var(--rm-website); }
.rm-page [data-area="data"] { --c: var(--rm-data); }
.rm-page [data-area="bot"] { --c: var(--rm-bot); }
.rm-page [data-area="accounts"] { --c: var(--rm-accounts); }
.rm-page .cl-filters .ex-tab:not([data-area="all"])::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c); }

/* The track: the four stretches of the road, in order. */
.js .rm-track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 22px; padding: 6px; border: 1px solid var(--line-strong); border-radius: 16px; background: rgba(255, 255, 255, 0.02); }
.rm-leg {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 8px 12px;
  border: 0; border-radius: 11px; background: none; color: var(--muted); font: inherit; cursor: pointer; transition: background-color 0.2s, color 0.2s;
}
.rm-leg b { color: var(--soft); font-weight: 600; font-size: 0.98rem; }
.rm-leg > span { min-width: 26px; padding: 1px 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.07); font-size: 0.78rem; font-weight: 600; text-align: center; }
.rm-leg:hover { background: rgba(255, 255, 255, 0.04); }
.rm-leg[aria-selected="true"] { background: rgba(56, 189, 248, 0.1); box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.4); }
.rm-leg[aria-selected="true"] b { color: var(--white); }
.rm-leg[aria-selected="true"] > span { background: rgba(56, 189, 248, 0.2); color: var(--kicker); }
.rm-leg:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
/* Each status's mark: done, being built, on the list, looking into it. */
.rm-mark { position: relative; flex: none; width: 18px; height: 18px; border-radius: 50%; box-sizing: border-box; }
.rm-mark.shipped { background: var(--soft); }
.rm-mark.shipped::after { content: ""; position: absolute; left: 6px; top: 3.5px; width: 4px; height: 8px; border: solid var(--bg); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.rm-mark.next { background: var(--sky); }
.rm-mark.next::after { content: ""; position: absolute; left: 7px; top: 5px; border: 4px solid transparent; border-left: 6px solid var(--bg); border-right: 0; }
.rm-mark.planned { border: 2px solid var(--sky); }
.rm-mark.exploring { border: 2px dashed var(--muted); }

/* A list: its heading, then a rail of rows (each a dot, the title and one line). */
.rm-road { margin-top: 28px; }
.rm-stage + .rm-stage { margin-top: 40px; }
.js .rm-stage { display: none; }
.js .rm-road[data-show="shipped"] [data-status="shipped"], .js .rm-road[data-show="next"] [data-status="next"],
.js .rm-road[data-show="planned"] [data-status="planned"], .js .rm-road[data-show="exploring"] [data-status="exploring"] { display: block; }
.rm-stage-head h2 { display: flex; align-items: center; gap: 10px; color: var(--white); font-size: 1.2rem; }
.rm-stage-head p { margin-top: 4px; color: var(--muted); font-size: 0.92rem; }
.rm-count { min-width: 28px; padding: 1px 9px; border-radius: 99px; background: rgba(255, 255, 255, 0.07); color: var(--muted); font-size: 0.78rem; font-weight: 600; text-align: center; }
.rm-stops { position: relative; margin: 18px 0 0; padding: 0; list-style: none; }
.rm-stops::before { content: ""; position: absolute; left: 4px; top: 14px; bottom: 14px; width: 1px; background: var(--line-strong); }
.rm-stop { position: relative; display: flex; align-items: baseline; gap: 12px; padding: 0 0 0 28px; }
.rm-stop[hidden] { display: none; }
.rm-dot { position: absolute; left: 0; top: 17px; width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px var(--bg); }
.rm-row, .rm-more { flex: 1; min-width: 0; }
.rm-row, .rm-more summary {
  display: grid; grid-template-columns: minmax(0, 15em) minmax(0, 1fr); align-items: baseline; gap: 2px 18px; padding: 11px 0; list-style: none;
}
.rm-more summary { cursor: pointer; padding-right: 22px; position: relative; }
.rm-more summary::-webkit-details-marker { display: none; }
.rm-more summary::after {
  content: ""; position: absolute; right: 4px; top: 17px; width: 7px; height: 7px; border: solid var(--muted); border-width: 0 2px 2px 0;
  transform: rotate(45deg); transition: transform 0.2s;
}
.rm-more[open] summary::after { transform: rotate(-135deg); top: 20px; }
.rm-more summary:hover b { color: var(--white); }
.rm-more summary:focus-visible { outline: 2px solid var(--c); outline-offset: 2px; border-radius: 6px; }
.rm-area { grid-column: 1 / -1; color: var(--c); font-size: 0.74rem; font-weight: 600; }
.rm-row b, .rm-more summary b { color: var(--text); font-size: 1rem; font-weight: 600; line-height: 1.35; }
.rm-line { color: var(--muted); font-size: 0.92rem; line-height: 1.5; }
.rm-date { flex: none; color: var(--muted); font-size: 0.82rem; white-space: nowrap; }
.rm-more-body { padding: 0 0 12px; }
.rm-more-body ul { padding-left: 1.15em; list-style: disc; }
.rm-more-body li { margin-top: 4px; color: var(--soft); font-size: 0.9rem; line-height: 1.5; }
.rm-more-body li::marker { color: var(--c); }
.rm-note { margin-top: 6px; color: var(--kicker); font-size: 0.85rem; }
.rm-empty { margin-top: 18px; color: var(--muted); }

@media (max-width: 699px) {
  .cl-switch { width: 100%; }
  .cl-switch .ex-tab { flex: 1; justify-content: center; }
  .cl-day { padding-left: 24px; }
  .cl-day h2::before { left: -24px; }
  .cl-item { padding: 14px 16px 16px; }
  .js .rm-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rm-leg { min-height: 46px; }
  .rm-row, .rm-more summary { grid-template-columns: minmax(0, 1fr); }
  .rm-stop { flex-wrap: wrap; gap: 0 12px; padding-left: 24px; }
  .rm-date { order: -1; width: 100%; padding-top: 10px; margin-bottom: -6px; }
}

/* SITE-66: touch hit areas on the home page (44px minimum), same look. Inline links grow by padding, which does not move the text. */
.hero-note a, .bot-soon a, .faq-item p a { padding-block: 13px; }
.footer-nav a { padding-inline: 2px; margin-inline: -2px; }
@media (pointer: coarse) {
  .site-header .brand { padding-block: 5px; }
}

/* site-305 (owner's pick: /commands footer B): a one-line footer under the chat. Hidden unless the flag is on. */
.chat-foot { display: none; }
html[data-flag-site-305] .chat-foot { flex: none; display: flex; gap: 16px; align-items: center; justify-content: center; height: 40px; font-size: 0.75rem; color: var(--muted, #8a8f98); border-top: 1px solid rgba(255,255,255,.08); }
html[data-flag-site-305] .chat-foot a { color: inherit; }
html[data-flag-site-305] .chat-foot a:hover { text-decoration: underline; }

/* site-304 (/commands carries the shared footer, option A): the page scrolls past the chat instead of locking. Hidden unless the flag is on; it is the alternative to site-305's one-line footer, the owner turns on one of the two; if both are on, site-305 (his pick) wins. */
.cmd-footer { display: none; }
html[data-flag-site-304-commands-footer]:not([data-flag-site-305]) .cmd-footer { display: block; }
html[data-flag-site-304-commands-footer]:not([data-flag-site-305]) body.chat-page { height: auto; min-height: 100vh; min-height: 100dvh; overflow: visible; }
html[data-flag-site-304-commands-footer]:not([data-flag-site-305]) .chat-page .chat { flex: none; height: calc(100vh - var(--header)); height: calc(100dvh - var(--header)); }

/* site-648 (lighter header logo, option B): void-app-lite.svg sits beside the others in the header markup; the flag picks it. Void Portal is the default logo. The legacy ones are lazy and display:none, so they are not fetched. */
.logo-std, .logo-lite { display: none; }
html[data-flag-site-648-logos] .logo-portal { display: none; }
html[data-flag-site-648-logos] .logo-lite { display: block; }

/* site-327 (sentence case): both spellings are in the markup; the flag picks which one shows. */
.sc-on { display: none; }
html[data-flag-site-327-sentence-case] .sc-off { display: none; }
html[data-flag-site-327-sentence-case] .sc-on { display: inline; }

/* portal-accounts (Sign in with Discord): text that is true only once the Portal offers sign-in. It carries `hidden`, so
   with the flag off it never shows (nor counts as shown); the flag shows it, and hides the guest-only words. */
html[data-flag-portal-accounts] li[data-acct][hidden] { display: list-item; }
html[data-flag-portal-accounts] span[data-acct][hidden] { display: inline; }
html[data-flag-portal-accounts] :is(h2, ul)[data-acct][hidden] { display: block; }
html[data-flag-portal-accounts] [data-acct-off] { display: none; }
/* account-vault and journal-sync (docs/decisions/2026-10-27-account-data-protection.md): the same, for text true only
   once accounts are sealed, and once the trade journal is kept with the account. */
html[data-flag-account-vault] li[data-vault][hidden] { display: list-item; }
html[data-flag-account-vault] span[data-vault][hidden] { display: inline; }
html[data-flag-account-vault] [data-vault-off] { display: none; }
html[data-flag-account-vault] :is(li, span)[data-acct][data-vault-off] { display: none; } /* outranks the portal-accounts rules above */
html[data-flag-journal-sync] li[data-journal][hidden] { display: list-item; }
html[data-flag-journal-sync] span[data-journal][hidden] { display: inline; }
/* thesis-panel (docs/design/build-thesis/brief.md): true only once theses can be saved. */
html[data-flag-thesis-panel] li[data-thesis][hidden] { display: list-item; }

/* Void Portal is the brand (owner's pick): the header logo is void-portal.svg by default, the same as the footer. */
.logo-portal { display: block; }

/* Updates and Roadmap, touch only: the link in the intro reaches 44px (SITE-483; the tabs already do, site.css:644). Dark: only
   while the flag site-483 is on (flags.js sets html[data-flag-site-483]). */
@media (pointer: coarse) {
  html[data-flag-site-483] .cl-lede a { padding-block: 12px; }
}
/* /assets/css/site-guide.css */
/* Void Finance: the public search pages (/markets, /markets/<view>, /coins/<coin>; tools/seo/pages.mjs,
   docs/design/search-pages/brief.md). Laid over site.css's prose page; only the site's own tokens. */
.guide .crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-bottom: 20px; color: var(--muted); font-size: 0.92rem; }
.guide .crumbs a { padding-block: 12px; color: var(--sky); }
.guide .crumb-sep { color: var(--faint); }
.guide .lede { max-width: 36em; margin-top: 16px; }
.guide-shot { max-width: 100%; margin: 24px 0 0; }
.guide-shot img { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--panel-solid); }
.guide-shot figcaption { margin-top: 8px; color: var(--muted); font-size: 0.88rem; }
.prose .guide-open { margin-top: 18px; }
.prose .guide-open .btn { padding-block: 8px; text-decoration: none; }
.prose .guide-coins { display: flex; flex-wrap: wrap; gap: 0 20px; max-width: none; }
.prose .guide-list { padding-left: 0; list-style: none; }
.prose .guide-list li { display: grid; gap: 2px; margin-top: 12px; padding-left: 0; }
.prose .guide-list a { padding-block: 10px 0; font-weight: 600; }
.prose .guide-list span { color: var(--soft); }
.prose .guide-note { margin-top: 40px; color: var(--muted); font-size: 0.92rem; }
.prose .guide-data { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; max-width: 36em; margin-top: 16px; }
.prose .guide-data dt { color: var(--muted); font-size: 0.92rem; }
.prose .guide-data dd { margin: 0; color: var(--soft); }
@media (max-width: 520px) { .prose .guide-data { grid-template-columns: 1fr; gap: 2px; } .prose .guide-data dd { margin-bottom: 10px; } }
.prose .guide-live { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 18px; }
.prose .guide-live-price { color: var(--white); font-size: 1.4rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.prose .guide-live-move { font-weight: 600; font-variant-numeric: tabular-nums; }
.prose .guide-live-move.up { color: var(--up); }
.prose .guide-live-move.down { color: var(--down); }
.prose .guide-live-at { flex-basis: 100%; color: var(--muted); font-size: 0.88rem; }
.prose .guide-kicker { color: var(--muted); font-size: 0.92rem; }
.prose .guide-sign { margin-top: 24px; color: var(--soft); font-weight: 600; }
.prose .guide-steps { margin-top: 12px; padding-left: 1.5em; list-style: decimal; }
.prose .guide-steps li::marker { color: var(--faint); }
/* /assets/css/fx.css */
/* Void Finance: motion and pointer effects for every page but the Portal (fx.js drives them; the Portal's pages
   load neither file). Nothing here is needed to read or use a page: without JavaScript, or with reduced motion,
   the pages look as site.css draws them. */

:root { --fx-ease: cubic-bezier(0.2, 0.7, 0.2, 1); }

/* --------------------------------------------------------------- presses */
/* A ripple from where a button is pressed, in the button's text colour (fx.js adds the .fx-ink layer). */
.btn, .dc-btn, .chat-cmd, .chat-tool, .nav-menu summary, .nav-links a, .ex-tab, .ex-item, a.cmd-chip, .x-chip, .fx-top { -webkit-tap-highlight-color: transparent; }
.btn, .dc-btn, .chat-cmd, .chat-tool, .nav-menu summary, .nav-links a, .ex-tab, .ex-item, a.cmd-chip, .x-chip { position: relative; isolation: isolate; }
.fx-ink { position: absolute; inset: 0; z-index: -1; overflow: hidden; border-radius: inherit; pointer-events: none; }
.fx-ink i {
  position: absolute; border-radius: 50%; pointer-events: none; opacity: 0.3;
  background: radial-gradient(closest-side, currentColor, transparent);
  transform: translate(-50%, -50%) scale(0); animation: fx-ink 0.65s var(--fx-ease) forwards;
}
@keyframes fx-ink { to { transform: translate(-50%, -50%) scale(1); opacity: 0; } }

/* -------------------------------------------------------------- buttons */
/* They lean toward a mouse (--tx, --ty from fx.js) and sink a little when pressed. */
.btn {
  translate: var(--tx, 0) var(--ty, 0);
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.25s, transform 0.25s, translate 0.35s var(--fx-ease);
}
.btn:active { transform: scale(0.97); transition-duration: 0.2s, 0.2s, 0.2s, 0.25s, 0.08s, 0.35s; }
@media (hover: hover) {
  /* Studio: no sheen across the sky button and no glow under the pointer; hover is the colour change site.css draws. */
  a.cmd-chip:hover { translate: 0 -2px; background: rgba(56, 189, 248, 0.12); box-shadow: 0 8px 18px -10px rgba(0, 0, 0, 0.7); }
}
a.cmd-chip { transition: border-color 0.2s, color 0.2s, background-color 0.2s, translate 0.25s var(--fx-ease), box-shadow 0.25s; }

/* --------------------------------------------------------------- header */
.site-header { transition: background-color 0.3s, box-shadow 0.3s; }
.site-header.is-scrolled { background: rgba(6, 11, 16, 0.86); box-shadow: 0 14px 34px -22px rgba(0, 0, 0, 0.9); }
@media (prefers-reduced-motion: no-preference) {
  .nav-menu[open] .nav-menu-panel { transform-origin: 100% 0; animation: fx-menu 0.22s var(--fx-ease) both; }
  .nav-menu[open] .nav-menu-panel a { animation: fx-up 0.35s var(--fx-ease) both; }
  .nav-menu[open] .nav-menu-panel a:nth-child(2) { animation-delay: 0.03s; }
  .nav-menu[open] .nav-menu-panel a:nth-child(3) { animation-delay: 0.06s; }
  .nav-menu[open] .nav-menu-panel a:nth-child(4) { animation-delay: 0.09s; }
  .nav-menu[open] .nav-menu-panel a:nth-child(5) { animation-delay: 0.12s; }
}
@keyframes fx-menu { from { opacity: 0; transform: translateY(-6px) scale(0.97); } }
@keyframes fx-up { from { opacity: 0; transform: translateY(8px); } }

/* ------------------------------------------------------------- panels */
/* Under a mouse, a panel's edge brightens and its face tints, evenly (fx.js adds .fx-spot; studio: no spotlight
   glow); the Portal window also tilts toward it (--px, --py: -1 to 1). */
.fx-glow { position: relative; isolation: isolate; }
.fx-spot {
  position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.4s;
  background: rgba(125, 211, 252, 0.04);
}
.fx-spot::after {
  content: ""; position: absolute; inset: 0; padding: 1px; border-radius: inherit;
  background: rgba(125, 211, 252, 0.45);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}
.fx-glow.is-hot > .fx-spot { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .fx-tilt.is-tilting { transform: perspective(1200px) rotateX(calc(var(--py, 0) * var(--tilt, 3) * -1deg)) rotateY(calc(var(--px, 0) * var(--tilt, 3) * 1deg)); }
  .promo-window.fx-tilt { transition: transform 0.5s var(--fx-ease); }
}

/* --------------------------------------------------------- scroll reveal */
/* Below the fold, sections rise into view as they're reached (fx.js); the timeline's line draws itself. */
.fx-rv { transition: opacity 0.9s var(--fx-ease) var(--d, 0s), translate 0.9s var(--fx-ease) var(--d, 0s); }
.fx-rv:not(.is-in) { opacity: 0; translate: 0 26px; }
.timeline.fx-draw::before { transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.6s var(--fx-ease) 0.1s; }
.timeline.fx-draw.is-in::before { transform: none; }
@media (max-width: 1099px) {
  .timeline.fx-draw::before { transform: scaleY(0); transform-origin: 50% 0; }
  .timeline.fx-draw.is-in::before { transform: none; }
}
@media print {
  .fx-rv { opacity: 1 !important; translate: none !important; }
  .timeline.fx-draw::before { transform: none !important; }
  .fx-top, .fx-aura { display: none !important; }
}

/* -------------------------------------------------------- /commands */
.chat-cmd-ico { transition: transform 0.25s var(--fx-ease), background-color 0.2s; }
@media (hover: hover) { .chat-cmd:hover .chat-cmd-ico { transform: scale(1.08); background: rgba(113, 172, 243, 0.2); } }

/* -------------------------------------------------------------- the 404 */
/* The void, turning behind the message (hero.js, data-at), and the message coming in. */
.not-found { position: relative; isolation: isolate; }
.not-found .emblem { opacity: 0.55; -webkit-mask-image: radial-gradient(farthest-side, #000 45%, transparent); mask-image: radial-gradient(farthest-side, #000 45%, transparent); }
@media (prefers-reduced-motion: no-preference) {
  .not-found .wrap > * { animation: fx-up 0.8s var(--fx-ease) both; }
  .not-found .wrap > :nth-child(2) { animation-delay: 0.08s; }
  .not-found .wrap > :nth-child(3) { animation-delay: 0.16s; }
  .not-found .wrap > :nth-child(4) { animation-delay: 0.24s; }
}

/* ---------------------------------------------------------- back to top */
/* Long pages: a round button, bottom right, once the page has scrolled; its ring fills as the page goes down. */
.fx-top {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 40;
  display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(8, 15, 21, 0.82); color: var(--kicker); cursor: pointer;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden; transform: translateY(12px) scale(0.9);
  translate: var(--tx, 0) var(--ty, 0);
  transition: opacity 0.3s, visibility 0.3s, transform 0.35s var(--fx-ease), translate 0.35s var(--fx-ease), color 0.2s, box-shadow 0.3s;
}
.fx-top.is-on { opacity: 1; visibility: visible; transform: none; }
.fx-top:active { transform: scale(0.93); }
.fx-top svg { width: 48px; height: 48px; }
.fx-top circle { fill: none; stroke-width: 2; }
.fx-top-track { stroke: rgba(186, 230, 253, 0.14); }
.fx-top-ring { stroke: var(--sky); stroke-linecap: round; stroke-dasharray: 138.2; stroke-dashoffset: 138.2; }
.fx-top path { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.3s var(--fx-ease); }
@media (hover: hover) {
  .fx-top:hover { color: var(--white); box-shadow: 0 14px 34px -12px rgba(0, 0, 0, 0.9); }
  .fx-top:hover path { transform: translateY(-2px); }
}
@media (min-width: 640px) { .fx-top { right: 24px; bottom: 24px; } }
/* Phones: no floating button (it covered text as the page scrolled under it). */
@media (max-width: 639px) { .fx-top { display: none; } }

/* ------------------------------------------------------ the pointer's light */
/* The soft light that trailed a mouse over the page is off (studio: no glow); fx.js still adds its layer. */
.fx-aura { display: none; }

/* --------------------------------------------------------- motion-journey */
/* docs/design/motion-journey/brief.md: UI motion within 300 ms on the T1 curve (P-mo-02), the 404's text there from
   the first frame, and reduced motion stopping keyframe animations too. */
html[data-flag-motion-journey="on"] .fx-ink i { animation-duration: 0.3s; animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1); }
html[data-flag-motion-journey="on"] .fx-rv {
  transition: opacity 240ms cubic-bezier(0.23, 1, 0.32, 1) calc(var(--d, 0ms) * 0.45), translate 240ms cubic-bezier(0.23, 1, 0.32, 1) calc(var(--d, 0ms) * 0.45);
}
html[data-flag-motion-journey="on"] .fx-rv:not(.is-in) { translate: 0 8px; }
html[data-flag-motion-journey="on"] .timeline.fx-draw::before { transition: transform 300ms cubic-bezier(0.23, 1, 0.32, 1); }
@media (prefers-reduced-motion: no-preference) {
  html[data-flag-motion-journey="on"] .nav-menu[open] .nav-menu-panel a { animation-duration: 200ms; }
  html[data-flag-motion-journey="on"] .not-found .wrap > * { animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-flag-motion-journey="on"] *, html[data-flag-motion-journey="on"] *::before, html[data-flag-motion-journey="on"] *::after { animation: none !important; }
}
