/* Void Finance: one stylesheet for every page. 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 */
  --panel: rgba(15, 23, 34, 0.72);
  --panel-solid: #0E1821;
  --border: #1E2D3D;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --white: #FFFFFF;
  --text: #E2E8F0;
  --soft: #CBD5E1;
  --muted: #94A3B8;
  --faint: #64748B;
  --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: 20px;
  --radius-sm: 12px;
  --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;
}
@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;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; color: var(--white); font-weight: 700; 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); }
.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 chip above a title, as on the cards (MARKET SNAPSHOT, SECTOR RANKING...). */
.kicker {
  display: inline-block; margin-bottom: 18px; padding: 5px 10px 4px;
  border: 1px solid var(--kicker-line); border-radius: 6px; background: rgba(56, 189, 248, 0.06);
  color: var(--kicker); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; line-height: 1.4; text-transform: uppercase;
}

/* -------------------------------------------------------------- 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: 12px;
  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 28px -10px rgba(56, 189, 248, 0.7); }
.btn-primary:hover { background: var(--sky-hover); color: var(--sky-ink); transform: translateY(-2px); box-shadow: 0 14px 34px -12px rgba(56, 189, 248, 0.8); }
.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: 40px; padding: 8px 16px; font-size: 0.92rem; border-radius: 10px; }
.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; }
/* 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(10, 18, 25, 0.78); 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: 6px 0; }
.brand img { width: auto; height: 26px; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-right: 8px; }
.nav-links a { padding: 8px 14px; border-radius: 10px; color: var(--text); font-weight: 500; font-size: 0.95rem; 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); }
@media (max-width: 719px) {
  .nav-links { display: none; }
  .nav-menu { display: block; }
  .nav .btn-sm { padding-inline: 12px; }
}

/* ----------------------------------------------------------------- hero */
.hero {
  position: relative; isolation: isolate; overflow: clip;
  padding-block: clamp(40px, 6vw, 72px) clamp(56px, 7vw, 88px);
  background:
    radial-gradient(60% 70% at -6% -8%, var(--glow-green), transparent 70%),
    radial-gradient(55% 75% at 106% -10%, var(--glow-blue), transparent 70%),
    linear-gradient(var(--bg-top), var(--bg));
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(24px, 4vw, 64px); }
.hero h1 { font-size: clamp(2.75rem, 1.2rem + 4.6vw, 4.75rem); line-height: 1.02; letter-spacing: -0.035em; }
.hero .lede { max-width: 30em; margin-top: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Three cards fanned from a point below them: Crypto in front, the heatmaps behind. */
.fan { position: relative; width: 100%; max-width: 660px; margin-inline: auto; aspect-ratio: 1.3; }
.fan::before {
  content: ""; position: absolute; inset: 8% 4% 2%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side at 35% 45%, rgba(150, 192, 140, 0.45), transparent),
              radial-gradient(closest-side at 70% 55%, rgba(53, 147, 197, 0.55), transparent);
  filter: blur(40px);
}
.fan-card {
  position: absolute; left: 10%; top: 7%; width: 80%; margin: 0; padding: 0; border: 0; background: none;
  cursor: zoom-in; transform-origin: 50% 190%;
  transition: translate 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.fan-card .frame {
  display: block; overflow: hidden; border-radius: 14px;
  border: 1px solid var(--line-strong); box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.85), 0 4px 14px rgba(0, 0, 0, 0.4);
}
.fan-card img { width: 100%; aspect-ratio: 3 / 2; }
.fan-card.is-front { z-index: 3; rotate: -2deg; left: 15%; top: 26%; }
.fan-card.is-left { z-index: 1; rotate: -10deg; }
.fan-card.is-right { z-index: 2; rotate: 9deg; }
.fan-card:hover { translate: 0 -8px; }
.fan-dots { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .fan-card { animation: fan-in 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
  .fan-card.is-left { animation-delay: 0.1s; }
  .fan-card.is-right { animation-delay: 0.25s; }
  .fan-card.is-front { animation-delay: 0.4s; }
}
@keyframes fan-in { from { opacity: 0; translate: 0 28px; } }

@media (max-width: 899px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { max-width: 640px; }
}
/* Phones: the three cards become a swipeable row, each cropped to its data so the text stays readable. */
@media (max-width: 639px) {
  .hero { padding-bottom: 48px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .fan {
    display: flex; gap: 12px; aspect-ratio: auto; width: auto; max-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding: 8px var(--gutter) 4px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    scrollbar-width: none; overscroll-behavior-x: contain;
  }
  .fan::-webkit-scrollbar { display: none; }
  .fan::before { inset: 10% 0; }
  .fan-card, .fan-card.is-front, .fan-card.is-left, .fan-card.is-right {
    position: relative; left: auto; top: auto; flex: 0 0 88%; width: auto; rotate: none; scroll-snap-align: center;
  }
  .fan-card:hover { translate: none; }
  .fan-card .frame { aspect-ratio: 4 / 3; }
  .fan-card img {
    width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: var(--focus, 0 0);
    transform: scale(var(--zoom, 1.5)); transform-origin: var(--focus, 0 0);
  }
  .fan-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
  .fan-dots button {
    width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: rgba(148, 163, 184, 0.4);
    cursor: pointer; transition: width 0.25s, background-color 0.25s;
  }
  .fan-dots button[aria-current="true"] { width: 22px; background: var(--sky); }
}

/* -------------------------------------------------------------- marquee */
.marquee { display: grid; gap: 16px; padding-block: 8px clamp(8px, 2vw, 24px); }
.marquee-row {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee-track { display: flex; gap: 16px; width: max-content; padding-block: 10px; }
.mq-card {
  flex: none; width: clamp(220px, 22vw, 320px); margin: 0; padding: 0; border: 0; background: none; cursor: zoom-in;
  transition: translate 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.mq-card .frame {
  display: block; overflow: hidden; border-radius: 12px; border: 1px solid var(--line);
  box-shadow: 0 12px 30px -14px rgba(0, 0, 0, 0.8); transition: border-color 0.3s;
}
.mq-card img { width: 100%; aspect-ratio: 3 / 2; }
.mq-card:hover { translate: 0 -6px; }
.mq-card:hover .frame { border-color: rgba(56, 189, 248, 0.55); }
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: marquee var(--duration, 90s) linear infinite; }
  .marquee-row.is-reverse .marquee-track { animation-direction: reverse; }
  .marquee-row:hover .marquee-track, .marquee-row:focus-within .marquee-track { animation-play-state: paused; }
}
@keyframes marquee { to { transform: translateX(calc(-50% - 8px)); } }
/* No motion: each row is a plain row you can scroll, without the copy that makes the loop. */
@media (prefers-reduced-motion: reduce) {
  .marquee-row { overflow-x: auto; scrollbar-width: thin; }
  .marquee-track [aria-hidden="true"] { display: none; }
  .marquee-track { padding-inline: var(--gutter); }
}
@media (max-width: 639px) {
  .mq-card img { transform: scale(1.35); transform-origin: 0 0; }
}

/* ---------------------------------------------------------------- bento */
.bento { display: grid; gap: 16px; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: 320px; }
.tile {
  position: relative; display: flex; flex-direction: column; overflow: hidden; isolation: isolate;
  min-height: 0; margin: 0; padding: 0; text-align: left; cursor: zoom-in;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(22, 36, 48, 0.9), rgba(12, 20, 28, 0.95));
  color: inherit;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.3s, box-shadow 0.35s;
}
.tile::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(70% 60% at 0% 0%, rgba(150, 192, 140, 0.14), transparent 70%);
}
.tile:hover { transform: translateY(-4px); border-color: rgba(56, 189, 248, 0.5); box-shadow: var(--shadow); color: inherit; }
.tile-text { padding: 22px 24px 0; }
.tile .kicker { margin-bottom: 12px; font-size: 0.66rem; }
.tile h3 { font-size: clamp(1.15rem, 1rem + 0.45vw, 1.45rem); max-width: 22em; }
.tile-img {
  position: relative; flex: 1; min-height: 0; margin: 18px 0 0 24px; overflow: hidden;
  border: 1px solid var(--line-strong); border-right: 0; border-bottom: 0; border-top-left-radius: 12px;
  background: var(--panel-solid);
}
.tile-img img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 0 0);
  transform-origin: var(--pos, 0 0); transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.tile:hover .tile-img img { transform: scale(1.03); }
.t-liq { grid-column: span 4; grid-row: span 2; }
.t-liq h3 { font-size: clamp(1.4rem, 1rem + 1.2vw, 2.1rem); }
.t-cat, .t-fund, .t-more { grid-column: span 2; }
.t-cal, .t-movers { grid-column: span 3; }
.t-rsi { grid-column: span 4; }
.t-liq { --pos: 100% 0; }
.t-fund { --pos: 0 0; }
.t-cal { --pos: 0 0; }
.t-movers { --pos: 100% 0; }
.t-rsi { --pos: 0 30%; }

/* "And More Cards": three more cards fanned, linking to /commands. */
.t-more { cursor: pointer; justify-content: space-between; }
.t-more .more-stack { position: relative; flex: 1; min-height: 0; margin: 8px 24px 0; }
.t-more .more-stack img {
  position: absolute; left: 50%; bottom: -14%; width: 72%; aspect-ratio: 3 / 2; border-radius: 10px;
  border: 1px solid var(--line-strong); box-shadow: 0 16px 36px -14px rgba(0, 0, 0, 0.85);
  translate: -50% 0; transform-origin: 50% 150%; transition: rotate 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.t-more .more-stack img:nth-child(1) { rotate: -12deg; }
.t-more .more-stack img:nth-child(2) { rotate: 10deg; }
.t-more .more-stack img:nth-child(3) { rotate: -1deg; }
.t-more:hover .more-stack img:nth-child(1) { rotate: -17deg; }
.t-more:hover .more-stack img:nth-child(2) { rotate: 15deg; }
.more-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--sky); font-weight: 600; }
.t-more:hover .more-link { color: var(--sky-hover); }

@media (max-width: 999px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 300px; }
  .t-liq { grid-column: span 2; grid-row: span 2; }
  .t-cat, .t-fund, .t-rsi, .t-more { grid-column: span 1; }
  .t-cal, .t-movers { grid-column: span 2; }
}
@media (max-width: 639px) {
  .bento { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
  .tile, .t-liq, .t-cat, .t-fund, .t-cal, .t-movers, .t-rsi, .t-more { grid-column: auto; grid-row: auto; }
  .tile-text { padding: 20px 20px 0; }
  .tile-img { flex: none; height: 230px; margin-left: 20px; }
  .t-liq .tile-img { height: 300px; }
  .tile-img img { transform: scale(var(--zoom, 1)); }
  .tile:hover .tile-img img { transform: scale(var(--zoom, 1)); }
  .t-liq { --zoom: 1.2; --pos: 75% 0; }
  .t-fund { --zoom: 1.2; }
  .t-rsi { --zoom: 1.7; }
  .t-movers { --zoom: 1.2; --pos: 0 0; }
  .t-more .more-stack { height: 170px; flex: none; }
}

/* ------------------------------------------------------------- automate */
.automate { background: linear-gradient(var(--bg), #0C1720 40%, var(--bg)); }
.steps { display: grid; gap: 16px; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); counter-reset: step; }
.step {
  display: flex; flex-direction: column; gap: 22px; padding: 26px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel);
}
.step-n {
  display: inline-grid; place-items: center; width: 34px; height: 34px; margin-bottom: 14px;
  border-radius: 10px; border: 1px solid var(--kicker-line); background: rgba(56, 189, 248, 0.08);
  color: var(--kicker); font-weight: 700; font-size: 0.95rem; font-variant-numeric: tabular-nums;
}
.step h3 { font-size: 1.3rem; }
.step p { margin-top: 8px; color: var(--soft); }
.step p code { padding: 2px 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.07); color: var(--white); }
.shot { display: flex; flex: 1; align-items: center; justify-content: center; min-height: 0; }
.shot img {
  border-radius: 10px; border: 1px solid var(--line-strong);
  box-shadow: 0 24px 50px -22px rgba(0, 0, 0, 0.9);
}
.s1 .shot img { width: 296px; }
.s3 { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 32px; }
.s3 .shot img { width: 847px; max-width: 100%; }

.day { margin-top: clamp(56px, 7vw, 88px); }
.day-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 32px; margin-bottom: 28px; }
.day-head h3 { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem); }
.day-head p { max-width: 34em; color: var(--muted); font-size: 0.95rem; }
/* One line through the day, a dot per post. */
.timeline { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0 20px; padding-top: 34px; }
.timeline::before {
  content: ""; position: absolute; left: 4px; right: 0; top: 4px; height: 1px;
  background: linear-gradient(90deg, rgba(186, 230, 253, 0.5), rgba(186, 230, 253, 0.3) 80%, rgba(186, 230, 253, 0));
}
.stop { position: relative; display: flex; flex-direction: column; min-width: 0; }
.stop::before {
  content: ""; position: absolute; left: 0; top: -34px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--kicker); box-shadow: 0 0 0 4px rgba(186, 230, 253, 0.14);
}
.stop time { color: var(--white); font-size: 1.65rem; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stop .zone { margin-top: 4px; color: var(--kicker); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.stop strong { margin-top: 16px; color: var(--white); font-size: 0.98rem; font-weight: 600; line-height: 1.3; }
.stop .more { margin-top: 6px; color: var(--muted); font-size: 0.82rem; line-height: 1.45; }
.stop .days {
  align-self: flex-start; margin-top: 14px; 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;
}

@media (max-width: 1099px) {
  .timeline { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0 0 0 30px; }
  .timeline::before { left: 4px; right: auto; top: 12px; bottom: 12px; width: 1px; height: auto; background: linear-gradient(rgba(186, 230, 253, 0.5), rgba(186, 230, 253, 0.15)); }
  .stop {
    display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; align-items: baseline; gap: 2px 16px;
    padding: 14px 0; border-top: 1px solid var(--line);
  }
  .stop:first-child { border-top: 0; }
  .stop::before { left: -30px; top: 23px; }
  .stop time { grid-row: 1; grid-column: 1; font-size: 1.35rem; }
  .stop .zone { grid-row: 2; grid-column: 1; margin: 0; }
  .stop strong { grid-row: 1; grid-column: 2; margin: 0; font-size: 1rem; }
  .stop .more { grid-row: 2; grid-column: 2; margin: 0; }
  .stop .days { grid-row: 1; grid-column: 3; justify-self: start; margin: 0; }
}
@media (max-width: 899px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .s3 { grid-template-columns: minmax(0, 1fr); gap: 22px; }
}
/* Phones: the Discord screenshots are shown at a readable size, cropped to the part that matters. */
@media (max-width: 639px) {
  .step { padding: 20px; }
  .shot { display: block; overflow: hidden; border-radius: 10px; border: 1px solid var(--line-strong); }
  .shot img { max-width: none; border: 0; border-radius: 0; box-shadow: none; }
  .s1 .shot { width: fit-content; max-width: 100%; }
  .s2 .shot img { width: 640px; }
  .s3 .shot { height: 200px; position: relative; }
  .s3 .shot img { position: absolute; left: 0; bottom: 0; width: 700px; max-width: none; }
  .stop { grid-template-columns: 84px minmax(0, 1fr); column-gap: 12px; }
  .stop time { font-size: 1.25rem; }
  .stop .days { grid-row: 3; grid-column: 2; margin-top: 8px; }
}

/* ---------------------------------------------------------------- stats */
.stats { border-block: 1px solid var(--line); background: linear-gradient(90deg, rgba(150, 192, 140, 0.06), rgba(53, 147, 197, 0.08)); }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: clamp(28px, 4vw, 44px) 12px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong { color: var(--white); font-size: clamp(2.3rem, 1.5rem + 2.6vw, 3.6rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: clamp(0.85rem, 0.8rem + 0.2vw, 1rem); font-weight: 500; }
@media (max-width: 639px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

/* ------------------------------------------------------------------ cta */
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; align-items: center; gap: 28px; padding: clamp(48px, 7vw, 88px) 24px;
  border: 1px solid var(--border); border-radius: 28px; text-align: center;
  background:
    radial-gradient(45% 60% at 0% 0%, rgba(150, 192, 140, 0.42), transparent 70%),
    radial-gradient(45% 60% at 100% 100%, rgba(150, 192, 140, 0.36), transparent 70%),
    radial-gradient(45% 60% at 100% 0%, rgba(53, 147, 197, 0.45), transparent 70%),
    radial-gradient(45% 60% at 0% 100%, rgba(53, 147, 197, 0.42), transparent 70%),
    linear-gradient(var(--bg-top), var(--bg));
}
.cta img { width: clamp(150px, 20vw, 220px); height: auto; }
.cta h2 { max-width: 16em; font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.1rem); }

/* --------------------------------------------------------------- footer */
.site-footer { padding-block: 48px 40px; border-top: 1px solid var(--line); background: #080F15; }
.footer-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 24px 40px; }
.footer-grid .brand img { height: 22px; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 24px; }
.footer-nav a { color: var(--soft); font-size: 0.95rem; }
.footer-nav a:hover { color: var(--sky); }
.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; }
@media (max-width: 639px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-nav { justify-content: flex-start; }
}

/* ------------------------------------------------------ commands page */
.page-head { padding-block: clamp(40px, 6vw, 72px) 28px; background: radial-gradient(50% 90% at -5% -20%, var(--glow-green), transparent 70%), radial-gradient(45% 90% at 105% -20%, var(--glow-blue), transparent 70%), linear-gradient(var(--bg-top), var(--bg)); }
.page-head h1 { font-size: clamp(2.5rem, 1.4rem + 3.6vw, 4rem); letter-spacing: -0.03em; }
.page-head .lede { max-width: 38em; margin-top: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.chip {
  min-height: 40px; padding: 8px 16px; border-radius: 99px; cursor: pointer;
  border: 1px solid rgba(56, 189, 248, 0.35); background: rgba(56, 189, 248, 0.05); color: var(--sky);
  font-weight: 600; font-size: 0.92rem; transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.chip:hover { border-color: var(--sky); background: rgba(56, 189, 248, 0.12); }
.chip[aria-pressed="true"] { border-color: var(--sky); background: var(--sky); color: var(--sky-ink); }
.chip .count { margin-left: 6px; opacity: 0.7; font-variant-numeric: tabular-nums; }
.js-only { display: none; }
.js .js-only { display: flex; }

.gallery { display: grid; gap: 28px 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); padding-block: 20px clamp(64px, 8vw, 104px); }
.g-item[hidden] { display: none; }
.g-open { display: block; width: 100%; margin: 0; padding: 0; border: 0; background: none; text-align: left; cursor: zoom-in; }
.g-frame {
  display: block; position: relative; overflow: hidden; aspect-ratio: 3 / 2; border-radius: 14px;
  border: 1px solid var(--border); box-shadow: 0 16px 36px -18px rgba(0, 0, 0, 0.85);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.3s, box-shadow 0.35s;
}
.g-frame img { width: 100%; height: 100%; object-fit: cover; }
.g-open:hover .g-frame { transform: translateY(-4px); border-color: rgba(56, 189, 248, 0.55); box-shadow: var(--shadow); }
.g-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 14px; }
.g-meta code { color: var(--sky); font-size: 0.95rem; font-weight: 600; }
.g-meta span { color: var(--white); font-weight: 600; }
.g-open:hover .g-meta code { color: var(--sky-hover); }
.g-tag { margin-left: auto; padding: 2px 8px; border-radius: 99px; border: 1px solid var(--line-strong); color: var(--muted); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
@media (max-width: 639px) {
  .g-frame img { transform: scale(var(--zoom, 1.9)); transform-origin: var(--focus, 0 0); }
}

/* /help has no card: its answer, drawn like the Discord embed it is. */
.embed {
  display: flex; flex-direction: column; height: 100%; padding: 16px 18px 14px 20px; overflow: hidden; text-align: left;
  border-left: 4px solid var(--sky); background: #111A22; color: var(--text); font-size: 0.8rem; line-height: 1.55;
}
.embed-title { color: var(--white); font-weight: 700; font-size: 0.95rem; margin-bottom: 8px; }
.embed-lines { display: grid; gap: 1px; }
.embed-lines code { color: var(--white); font-weight: 600; font-size: 0.95em; padding: 1px 5px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); margin-right: 6px; }
.embed-field { margin-top: 10px; color: var(--white); font-weight: 700; }
.embed-foot { margin-top: 12px; color: var(--muted); font-size: 0.72rem; }
.embed-menu { margin-top: 12px; padding: 9px 12px; border-radius: 8px; background: #0B1117; border: 1px solid var(--line-strong); color: var(--muted); font-size: 0.78rem; }
.g-frame .embed { -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }

/* ------------------------------------------------------------- lightbox */
.lightbox {
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: transparent; color: var(--text); overflow: hidden;
}
.lightbox::backdrop { background: rgba(4, 9, 13, 0.9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lb-stage { display: flex; justify-content: center; width: 100%; padding: 64px 84px 0; touch-action: pan-y pinch-zoom; }
.lb-media { display: flex; justify-content: center; max-width: 1400px; }
.lb-media img {
  width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 230px); max-height: calc(100dvh - 230px);
  border-radius: 12px; border: 1px solid var(--line-strong); box-shadow: 0 40px 100px -30px #000; background: var(--bg-top);
}
.lb-media .embed { width: min(560px, 100%); height: auto; max-height: calc(100dvh - 230px); overflow: auto; border-radius: 8px; font-size: 0.88rem; }
.lb-caption { width: min(100% - 2 * var(--gutter), 900px); padding: 18px 0 20px; text-align: center; }
.lb-caption h2 { display: inline; font-size: 1.15rem; letter-spacing: -0.01em; }
.lb-caption code { margin-right: 10px; color: var(--kicker); font-size: 1.05rem; font-weight: 600; }
.lb-caption p { max-width: 46em; margin: 8px auto 0; color: var(--soft); font-size: 0.95rem; }
.lb-full { display: inline-block; margin-top: 10px; font-size: 0.88rem; font-weight: 600; }
.lb-full[hidden] { display: none; }
.lb-btn {
  position: absolute; z-index: 2; display: grid; place-items: center; width: 46px; height: 46px; padding: 0;
  border: 1px solid var(--line-strong); border-radius: 50%; background: rgba(14, 24, 33, 0.85); color: var(--white); cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}
.lb-btn:hover { border-color: var(--sky); color: var(--sky); }
.lb-btn[hidden] { display: none; }
.lb-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lb-close { top: 14px; right: 16px; }
.lb-prev { left: 16px; top: 50%; translate: 0 -50%; }
.lb-next { right: 16px; top: 50%; translate: 0 -50%; }
.lb-count { position: absolute; top: 26px; left: 50%; translate: -50% 0; margin: 0; color: var(--muted); font-size: 0.85rem; font-variant-numeric: tabular-nums; }
@media (max-width: 639px) {
  .lb-stage { padding: 64px 8px 0; }
  .lb-media img { max-height: calc(100dvh - 330px); }
  .lb-prev, .lb-next { top: auto; bottom: 16px; translate: none; }
  .lb-caption { padding-bottom: 76px; }
  .lb-caption p { font-size: 0.9rem; }
}
body.lb-open { overflow: hidden; }

/* ---------------------------------------------------------------- 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 { color: var(--soft); }
.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 { 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 { 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 { 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; }
  .tile:hover, .btn:hover, .g-open:hover .g-frame { transform: none; }
  .fan-card:hover, .mq-card:hover { translate: none; }
}
