/* Stellar website: the ONE shared stylesheet (tokens, fonts, layout, components).
   Other pages (e.g. the player profiles) can link it and reuse the :root tokens below.
   Dark launcher look: colours from stellar_app/theme.py. No inline styles anywhere, so every page
   also works under the server's strict CSP (default-src 'self'). */

/* ---------- Fonts (self-hosted, OFL; licences in ../fonts) ---------- */
@font-face {
  font-family: "Chakra Petch";
  src: url("../fonts/chakra-petch-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Chakra Petch";
  src: url("../fonts/chakra-petch-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Chakra Petch";
  src: url("../fonts/chakra-petch-latin-600-italic.woff2") format("woff2");
  font-weight: 600; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Chakra Petch";
  src: url("../fonts/chakra-petch-latin-700-italic.woff2") format("woff2");
  font-weight: 700; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;
  --bg: #090c13;
  --bg-deep: #06080d;
  --surface: #10121c;
  --raised: #171a26;
  --hover: #201a32;
  --line: #202333;
  --line-strong: #34324a;
  --text: #f6f6fa;
  --muted: #bbc1dd;
  --dim: #9699b5;
  --faint: #8f93ad;
  --accent: #9633ff;
  --accent-bright: #ac34ff;
  --accent-light: #c797ff;
  --btn-a: #9140ff;
  --btn-b: #7827fb;
  --focus: #dbc0ff;
  --discord: #5865f2;

  --ok: #19d785;
  --warn: #ffb547;
  --info: #79b2ff;
  --bad: #ff6b86;
  --idle: #6d7190;

  --font-display: "Chakra Petch", "Bahnschrift", "Arial Narrow", system-ui, sans-serif;
  --font-ui: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;

  --container: 1220px;
  --gutter: clamp(16px, 4.2vw, 40px);
  --radius: 18px;
  --radius-sm: 12px;
  --header-h: 68px;
  --section-y: clamp(72px, 9vw, 120px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --glow: 0 18px 50px -18px rgba(150, 51, 255, .65);
  /* The full-bleed hero art is never rendered wider than its file (img/hero.webp, 1672 px).
     A bigger source later: replace img/hero.webp + img/hero-1200.webp and raise this. */
  --hero-art-max: 1672px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
/* Owner 10-16: no highlighting / copying of the page text or dragging the art. Fields people type in
   and the download's SHA-256 (for anyone checking the file) stay selectable. */
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
input, textarea, [contenteditable="true"], .sha-line code { -webkit-user-select: text; user-select: text; }
img { -webkit-user-drag: none; user-drag: none; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent-light); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #e2cbff; }
strong, b { color: var(--text); font-weight: 650; }
code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, "SFMono-Regular", Menlo, monospace;
  font-size: .9em;
  color: var(--text);
  background: rgba(150, 51, 255, .12);
  border: 1px solid rgba(199, 151, 255, .18);
  padding: .08em .4em;
  border-radius: 6px;
  overflow-wrap: anywhere;
}
h1, h2, h3, h4 { color: var(--text); margin: 0; line-height: 1.1; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
::selection { background: rgba(150, 51, 255, .5); color: #fff; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.visually-hidden {
  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-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--text); color: var(--bg); font-weight: 700;
  padding: 10px 16px; border-radius: 10px; text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 12px; color: var(--bg); }
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.ico { width: 1.25em; height: 1.25em; flex: none; }
.ico-sm { width: 1em; height: 1em; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s;
}
.site-header::before {
  content: "";
  position: absolute; inset: 0 0 -28px 0;
  background: linear-gradient(180deg, rgba(6, 8, 13, .72), rgba(6, 8, 13, 0));
  pointer-events: none;
  transition: opacity .3s;
}
/* Condenses on scroll with transforms only: the bar slides up 8px, its content comes down 4px. */
.site-header { transition: background-color .35s, border-color .35s, transform .45s var(--ease-out); }
.site-header.is-scrolled {
  transform: translateY(-8px);
  background: rgba(9, 12, 19, .84);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: rgba(52, 50, 74, .6);
  box-shadow: 0 12px 30px -18px rgba(0, 0, 0, .9);
}
.site-header.is-scrolled::before { opacity: 0; }
.header-inner { position: relative; height: 100%; display: flex; align-items: center; gap: 28px; transition: transform .45s var(--ease-out); }
.site-header.is-scrolled .header-inner { transform: translateY(4px); }
.brand { display: inline-flex; align-items: center; flex: none; padding: 6px 0; border-radius: 8px; }
.brand img { height: 30px; width: auto; filter: drop-shadow(0 0 14px rgba(150, 51, 255, .45)); transform-origin: left center; transition: transform .45s var(--ease-out), filter .3s; }
.site-header.is-scrolled .brand img { transform: scale(.9); }
/* home: hidden until the hero wordmark scrolls away (js/site.js adds .show-brand) */
.home .site-header .brand { opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .35s var(--ease-out), transform .35s var(--ease-out), visibility 0s .35s; }
.home .site-header.show-brand .brand { opacity: 1; visibility: visible; transform: none; transition: opacity .35s var(--ease-out), transform .35s var(--ease-out), visibility 0s; }
@media (prefers-reduced-motion: reduce) { .home .site-header .brand { transition: none; } }
.brand:hover img { filter: drop-shadow(0 0 20px rgba(172, 52, 255, .8)); }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  white-space: nowrap;
  position: relative;
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 550;
  padding: 8px 13px;
  border-radius: 9px;
  transition: color .2s, background-color .2s;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute; left: 13px; right: 13px; bottom: 1px; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  box-shadow: 0 0 12px rgba(172, 52, 255, .9);
}
.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-link {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 10px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(16, 18, 28, .5);
  transition: color .2s, border-color .2s, background-color .2s;
}
.icon-link:hover { color: #fff; border-color: rgba(88, 101, 242, .7); background: rgba(88, 101, 242, .18); }
/* Subtle "Sign in" (the player portal on play.stellarclient.net); Download stays the primary button. */
.nav-signin {
  display: inline-flex; align-items: center; gap: 7px;
  height: 40px; padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(16, 18, 28, .5);
  color: var(--muted);
  font-size: 14.5px; font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s, border-color .2s, background-color .2s;
}
.nav-signin:hover { color: var(--text); border-color: rgba(199, 151, 255, .5); background: rgba(32, 26, 50, .7); }
.nav-signin .ico-sm { color: var(--accent-light); }

/* Mobile menu: a native <details>, so it works without JavaScript. */
.menu { display: none; margin-left: auto; }
.menu > summary {
  list-style: none;
  display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(16, 18, 28, .6);
  color: var(--text);
  font-weight: 600; font-size: 15px;
  cursor: pointer;
  user-select: none;
}
.menu > summary::-webkit-details-marker { display: none; }
.menu-bars { position: relative; width: 18px; height: 12px; }
.menu-bars::before, .menu-bars::after, .menu-bars span {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px;
  background: currentColor; transition: transform .25s var(--ease-out), opacity .2s;
}
.menu-bars::before { top: 0; }
.menu-bars span { top: 5px; }
.menu-bars::after { bottom: 0; }
.menu[open] .menu-bars::before { transform: translateY(5px) rotate(45deg); }
.menu[open] .menu-bars span { opacity: 0; }
.menu[open] .menu-bars::after { transform: translateY(-5px) rotate(-45deg); }
.menu-panel {
  position: absolute;
  left: 0; right: 0; top: calc(100% + 8px);
  margin-inline: var(--gutter);
  padding: 10px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: rgba(13, 16, 25, .97);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(150, 51, 255, .08);
  display: grid;
  gap: 2px;
  animation: menu-in .28s var(--ease-out);
}
.menu-panel a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 14px;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}
.menu-panel a:hover, .menu-panel a[aria-current="page"] { background: var(--hover); }
.menu-panel a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); }
.menu-panel .menu-sep { height: 1px; background: var(--line); margin: 6px 4px; }
.menu-panel .btn { margin-top: 6px; justify-content: center; }
.menu-panel > * { animation: menu-link .45s var(--ease-out) both; }
.menu-panel > :nth-child(2) { animation-delay: .03s; }
.menu-panel > :nth-child(3) { animation-delay: .06s; }
.menu-panel > :nth-child(4) { animation-delay: .09s; }
.menu-panel > :nth-child(5) { animation-delay: .12s; }
.menu-panel > :nth-child(6) { animation-delay: .15s; }
.menu-panel > :nth-child(7) { animation-delay: .18s; }
.menu-panel > :nth-child(8) { animation-delay: .21s; }
.menu-panel > :nth-child(9) { animation-delay: .24s; }
.menu-panel > :nth-child(10) { animation-delay: .27s; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px) scale(.97); } }
@keyframes menu-link { from { opacity: 0; transform: translateX(-10px); } }

/* ---------- Buttons ---------- */
.btn {
  --h: 48px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h);
  padding: 0 20px;
  border-radius: 11px;
  border: 1px solid transparent;
  font: 600 16px/1.1 var(--font-ui);
  letter-spacing: .005em;
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
  isolation: isolate;
  overflow: hidden;
  transition: transform .2s var(--ease-out), box-shadow .25s, background-color .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.btn:hover { color: #fff; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-lg { --h: 56px; padding: 0 26px; font-size: 17px; border-radius: 13px; }
.btn-sm { --h: 40px; padding: 0 16px; font-size: 14.5px; border-radius: 10px; }
.btn-primary {
  color: #fff;
  background: linear-gradient(115deg, var(--btn-a), var(--btn-b));
  box-shadow: var(--glow), inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 -1px 0 rgba(0, 0, 0, .25);
}
.btn-primary::after {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, .32) 45%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease-out);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 60px -18px rgba(172, 52, 255, .9), inset 0 1px 0 rgba(255, 255, 255, .32);
}
.btn-primary:hover::after { transform: translateX(120%); }
.btn-secondary {
  background: rgba(16, 18, 28, .62);
  border-color: var(--line-strong);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover { transform: translateY(-2px); border-color: rgba(199, 151, 255, .55); background: rgba(32, 26, 50, .8); box-shadow: 0 16px 40px -20px rgba(150, 51, 255, .8); }
.btn-discord .ico { color: #aab2ff; transition: color .2s; }
.btn-discord:hover { border-color: rgba(88, 101, 242, .8); background: rgba(88, 101, 242, .2); }
.btn-discord:hover .ico { color: #fff; }
/* A button that's off (owner 10-18: the download buttons stay grey until the download opens): grey, no glow,
   no hover; it has no href, so it can't be clicked or tabbed to either. */
.btn[aria-disabled="true"], .btn[aria-disabled="true"]:hover, .btn[aria-disabled="true"]:active {
  cursor: not-allowed;
  color: #8b8f9e;
  background: #23252d;
  border-color: #32353f;
  box-shadow: none;
  transform: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.btn[aria-disabled="true"]::after { display: none; }
.btn[aria-disabled="true"] .ico, .btn[aria-disabled="true"] .ico-sm { opacity: .7; }

/* "Download for Windows" + its quiet meta line (version · OS · size · update note).
   The line stays hidden until /download/latest.json answers. */
.dl-stack { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.dl-stack.center { align-items: center; }
.dl-meta-line { margin: 0; font-size: 12.5px; line-height: 1.4; color: var(--faint); letter-spacing: .01em; padding-left: 2px; }
.dl-meta-line .sep { opacity: .55; margin: 0 .35em; }
.hero-actions .dl-stack, .cta-actions .dl-stack { position: relative; }
.hero-actions .dl-meta-line, .cta-actions .dl-meta-line { position: absolute; top: calc(100% + 10px); left: 0; white-space: nowrap; }
.cta-actions .dl-meta-line { left: 50%; transform: translateX(-50%); }

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent-light);
}
.text-link .ico-sm { transition: transform .25s var(--ease-out); }
.text-link:hover .ico-sm { transform: translateX(4px); }

/* ---------- Small parts ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(199, 151, 255, .28);
  background: linear-gradient(90deg, rgba(150, 51, 255, .2), rgba(150, 51, 255, .06));
  color: #e6d6ff;
  font: 600 13px/1 var(--font-ui);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.chip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-light); animation: ping 2.4s infinite; }
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(199, 151, 255, .55); }
  70%, 100% { box-shadow: 0 0 0 9px rgba(199, 151, 255, 0); }
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 16px;
  font: 700 13px/1 var(--font-display);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent-light);
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-light));
  box-shadow: 0 0 10px rgba(199, 151, 255, .8);
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: rgba(9, 12, 19, .6);
  color: var(--text);
  font-size: 13.5px; font-weight: 600; line-height: 1.2;
}
.h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1;
  letter-spacing: .004em;
  background: linear-gradient(180deg, #ffffff 30%, #d9c2ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: .08em;
  text-wrap: balance;
}
.lede { font-size: clamp(17px, 1.6vw, 19.5px); color: var(--muted); max-width: 640px; }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: var(--section-y); }
.section-head { display: grid; margin-bottom: clamp(36px, 5vw, 56px); max-width: 760px; }
.section-head .h2 { margin-bottom: 18px; }
.section-head .lede:last-child { margin-bottom: 0; }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head.center .lede { margin-inline: auto; }
.section-head-row {
  display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.section-head-row .section-head { margin-bottom: 0; }
.glow-top::before {
  content: "";
  position: absolute; left: 50%; top: 0;
  width: min(1100px, 100%); height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(199, 151, 255, .35), transparent);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(660px, 100svh, 940px);
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: 96px;
  isolation: isolate;
  overflow: hidden;
  background: var(--bg);
}
/* What shows beside the art on screens wider than the art: the art's own edge colours
   (dark navy on the left, the nebula purple on the right), so there is no hard edge. */
.hero-bg {
  position: absolute; inset: 0; z-index: -3; pointer-events: none;
  background:
    radial-gradient(900px 640px at 100% 48%, rgba(81, 22, 131, .85), rgba(52, 16, 92, .45) 45%, transparent 75%),
    radial-gradient(700px 520px at 0% 50%, rgba(25, 11, 52, .9), transparent 70%),
    var(--bg);
}
/* Full-bleed hero art (img/hero.webp): always edge to edge (owner 10-16: no side bands on wide screens;
   a wider file can replace img/hero.webp to keep it razor-sharp past 1672 px). */
.hero-media {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 100%;
  z-index: -2;
  pointer-events: none;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 72% 30%;
  animation: hero-in 1.8s var(--ease-out) both;
}
@keyframes hero-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } }
.hero-media::after {
  /* soft fades into #090c13: bottom (into the page), left (behind the text), a touch under the header */
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(0deg, var(--bg) 0%, rgba(9, 12, 19, .7) 12%, rgba(9, 12, 19, 0) 34%),
    linear-gradient(90deg, rgba(9, 12, 19, .82) 0%, rgba(9, 12, 19, .45) 28%, rgba(9, 12, 19, 0) 52%),
    linear-gradient(180deg, rgba(9, 12, 19, .55) 0%, rgba(9, 12, 19, 0) 16%);
}
/* Starfield: drawn by js/site.js on a canvas (twinkle, slow drift, the odd shooting star) over the dark
   left side only; paused off-screen and in background tabs, one still frame with reduced motion. */
.hero-stars {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.6s ease;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 34%, transparent 58%);
  mask-image: linear-gradient(90deg, #000 0%, #000 34%, transparent 58%);
}
.hero-stars.is-on { opacity: 1; }
.hero-inner { position: relative; }
.hero-copy { max-width: 620px; }
.hero-copy > * { animation: rise .9s var(--ease-out) both; }
.hero-copy > :nth-child(1) { animation-delay: .1s; }
.hero-copy > :nth-child(2) { animation-delay: .18s; }
.hero-copy > :nth-child(3) { animation-delay: .3s; }
.hero-copy > :nth-child(4) { animation-delay: .38s; }
.hero-copy > :nth-child(5) { animation-delay: .46s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.hero-wordmark { margin: 26px 0 26px -1.2%; width: min(560px, 100%); }
.hero-wordmark img {
  width: 100%;
  filter: drop-shadow(0 0 26px rgba(150, 51, 255, .55)) drop-shadow(0 10px 30px rgba(0, 0, 0, .6));
  animation: mark-glow 6s ease-in-out 1.4s infinite;
}
@keyframes mark-glow {
  50% { filter: drop-shadow(0 0 40px rgba(172, 52, 255, .8)) drop-shadow(0 10px 30px rgba(0, 0, 0, .6)); }
}
.hero-pitch {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.04;
  color: var(--text);
  margin: 0 0 14px;
  letter-spacing: .01em;
}
.hero-pitch em { font-style: inherit; color: var(--accent-light); text-shadow: 0 0 24px rgba(172, 52, 255, .6); }
.hero-sub { font-size: clamp(17px, 1.5vw, 19px); max-width: 520px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 14px; margin-bottom: 46px; }

@keyframes float { 50% { transform: translateY(-8px); } }

/* ---------- Server list (home panel, status page, join guide) ---------- */
.server-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 460px);
  margin-top: -54px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background: rgba(13, 15, 24, .8);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.prose .server-panel { margin-top: 6px; width: min(100%, 520px); }
.prose .servers { padding: 0; margin: 0; }
.prose .server-row { margin: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 2px 4px 12px; }
.panel-title { font: 700 13px/1 var(--font-display); letter-spacing: .2em; text-transform: uppercase; color: var(--text); }
.panel-head .text-link { font-size: 14px; }
.servers { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.server-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 9px 14px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(9, 12, 19, .55);
  font-size: 14.5px;
}
.server-row .name { color: var(--text); font-weight: 650; display: flex; align-items: center; gap: 9px; min-width: 0; }
.server-row .short {
  font: 700 italic 11.5px/1 var(--font-display); letter-spacing: .06em;
  color: var(--accent-light);
  padding: 4px 6px; border-radius: 6px;
  background: rgba(150, 51, 255, .16); border: 1px solid rgba(199, 151, 255, .28);
}
.server-row .info { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; }
.server-row .players { color: var(--muted); font-variant-numeric: tabular-nums; }
.server-row.is-live { border-color: rgba(199, 151, 255, .22); background: linear-gradient(90deg, rgba(150, 51, 255, .12), rgba(9, 12, 19, .55) 70%); }
.server-row.is-off { opacity: .4; }
.server-row.is-off .dot { --c: var(--idle) !important; box-shadow: none !important; }
.server-row.is-off .dot::after { display: none; }
.server-row.is-off .name { color: var(--muted); font-weight: 550; }
.servers.pick .server-row { min-height: 58px; padding: 10px 12px 10px 16px; }
.mock-play {
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 15px; border-radius: 9px;
  color: #fff; font-weight: 700; font-size: 13.5px;
  background: linear-gradient(115deg, var(--btn-a), var(--btn-b));
  box-shadow: 0 6px 18px -6px rgba(150, 51, 255, .9);
}
.mock-play .ico { width: 12px; height: 12px; }
a.mock-play { text-decoration: none; transition: filter .2s, box-shadow .2s, transform .2s; }
a.mock-play:hover { filter: brightness(1.12); box-shadow: 0 8px 24px -6px rgba(172, 52, 255, 1); }
a.mock-play:active { transform: translateY(1px); }
a.mock-play:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 2px; }

.dot {
  --c: var(--idle);
  position: relative;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--c);
  flex: none;
}
.dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--c); opacity: 0; }
/* Public status words: operational (green) / maintenance (amber) / offline (red); "down" = no fresh
   status on the live site (grey "Offline"); "unknown" = preview only (grey "Status"). */
[data-state="operational"] .dot { --c: var(--ok); box-shadow: 0 0 10px var(--c); }
[data-state="maintenance"] .dot { --c: var(--warn); box-shadow: 0 0 10px var(--c); }
[data-state="offline"] .dot { --c: var(--bad); box-shadow: 0 0 10px var(--c); }
[data-state="operational"] .dot::after { animation: ring 2.2s var(--ease-out) infinite; }
[data-state="maintenance"] .dot, [data-state="unknown"] .dot { animation: dot-breathe 2.4s ease-in-out infinite; }
@keyframes ring { from { opacity: .7; transform: scale(.6); } to { opacity: 0; transform: scale(1.6); } }
@keyframes dot-breathe { 50% { opacity: .45; } }
.state-text { color: var(--text); font-weight: 650; }
[data-state="operational"] .state-text { color: #7ff0bd; }
[data-state="maintenance"] .state-text { color: #ffd08a; }
[data-state="offline"] .state-text { color: #ffa3b4; }
[data-state="down"] .state-text, [data-state="unknown"] .state-text { color: var(--muted); font-weight: 550; }

/* The one simple status on the home page: dot + word, links to /status */
.status-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 14px 9px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(13, 15, 24, .7);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  text-decoration: none;
  font-size: 14.5px;
  transition: border-color .25s, transform .25s var(--ease-out);
}
.status-pill:hover { border-color: rgba(199, 151, 255, .5); transform: translateY(-1px); }
.status-pill .ico-sm { color: var(--dim); transition: transform .25s var(--ease-out), color .2s; }
.status-pill:hover .ico-sm { color: var(--accent-light); transform: translateX(3px); }
[data-state="operational"].status-pill { border-color: rgba(25, 215, 133, .35); }
[data-state="maintenance"].status-pill { border-color: rgba(255, 181, 71, .35); }
[data-state="offline"].status-pill { border-color: rgba(255, 107, 134, .35); }
.demo-badge {
  display: inline-flex; align-items: center;
  padding: 3px 7px; border-radius: 6px;
  background: rgba(255, 181, 71, .14); color: #ffd08a;
  border: 1px solid rgba(255, 181, 71, .35);
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}

/* ---------- Cards / features ---------- */
.card {
  --mx: 50%; --my: 0%;
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    radial-gradient(600px circle at var(--mx) var(--my), rgba(150, 51, 255, .1), transparent 40%),
    linear-gradient(180deg, rgba(23, 26, 38, .92), rgba(14, 16, 25, .92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 24px 48px -32px rgba(0, 0, 0, .9);
  overflow: hidden;
  isolation: isolate;
  transition: border-color .3s, transform .4s var(--ease-out), box-shadow .3s;
}
.card:hover { border-color: rgba(199, 151, 255, .3); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 30px 60px -30px rgba(150, 51, 255, .35); }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.span-12 { grid-column: span 12; }
.span-7 { grid-column: span 7; }
.span-6 { grid-column: span 6; }
.span-5 { grid-column: span 5; }
.feature { padding: 30px; display: flex; flex-direction: column; min-height: 300px; }
.feature:hover { transform: translateY(-3px); }
.feature h3 {
  font-family: var(--font-display);
  font-style: italic; font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(24px, 2.4vw, 30px);
  letter-spacing: .01em;
  margin-bottom: 10px;
  text-wrap: balance;
}
.feature p { font-size: 16px; margin: 0; max-width: 520px; text-wrap: pretty; }
.feature-art { margin-bottom: 24px; }
.feature-body { margin-top: auto; }
.feature-kicker { font: 700 12.5px/1 var(--font-display); letter-spacing: .2em; text-transform: uppercase; color: var(--accent-light); margin-bottom: 12px; }

/* The Neighborhood: wide card, art on the right (never wider than 908 css px: the 2x file is 1817 px) */
.feature-wide {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  min-height: 420px;
  padding: 0;
}
.feature-wide .feature-body { padding: clamp(28px, 4vw, 48px); align-self: end; position: relative; z-index: 1; }
.feature-wide h3 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1; margin-bottom: 14px; }
.feature-wide p { font-size: 17.5px; margin-bottom: 22px; color: #d3d7ec; }
.feature-media { position: relative; overflow: hidden; }
.feature-media::after {
  /* keeps the Got Next logo readable on busy art */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px 220px at 100% 100%, rgba(9, 12, 19, .75), transparent 70%);
}
.feature-media .art {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 60%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .35) 16%, rgba(0, 0, 0, .8) 32%, #000 46%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .35) 16%, rgba(0, 0, 0, .8) 32%, #000 46%);
}
/* Parallax-lite: js/site.js sets --px/--py (-0.5 .. 0.5) on the card under the pointer. */
.feature-media .art, .feature-bg img {
  transform: translate3d(calc(var(--px, 0) * -14px), calc(var(--py, 0) * -10px), 0) scale(1.03);
  transition: transform .9s var(--ease-out);
  will-change: transform;
}
/* Background art for the Stage / Squads cards (img/feature-stage.webp, img/feature-squads.webp). */
.feature-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.feature-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 75% 35%; }
.feature-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(14, 16, 25, .96) 12%, rgba(14, 16, 25, .55) 50%, rgba(14, 16, 25, .15) 85%),
    linear-gradient(90deg, rgba(14, 16, 25, .75), rgba(14, 16, 25, 0) 65%);
}
.feature-stage, .feature-squads { min-height: 340px; }
.feature-stage {
  background:
    radial-gradient(600px circle at var(--mx) var(--my), rgba(150, 51, 255, .1), transparent 40%),
    radial-gradient(520px 300px at 85% 10%, rgba(150, 51, 255, .22), transparent 70%),
    linear-gradient(180deg, rgba(23, 26, 38, .92), rgba(14, 16, 25, .92));
}
.feature-squads {
  background:
    radial-gradient(600px circle at var(--mx) var(--my), rgba(150, 51, 255, .1), transparent 40%),
    radial-gradient(420px 280px at 90% 0%, rgba(120, 39, 251, .22), transparent 70%),
    linear-gradient(180deg, rgba(23, 26, 38, .92), rgba(14, 16, 25, .92));
}

/* Real 2K21 UI logos on the cards (img/game/*, shown at half their pixel size or less) */
.media-logo {
  position: absolute; right: 26px; bottom: 24px; z-index: 1;
  width: 128px;
  filter: drop-shadow(0 0 14px rgba(150, 200, 255, .55));
  animation: float 6s ease-in-out infinite;
}
.feature-stage .stage-word {
  position: absolute; right: -8px; top: -22px; z-index: -1;
  font: 700 italic 200px/1 var(--font-display);
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(199, 151, 255, .2);
  letter-spacing: -.02em;
  pointer-events: none;
  transition: transform .9s var(--ease-out), -webkit-text-stroke-color .4s;
  transform: translate3d(calc(var(--px, 0) * 12px), calc(var(--py, 0) * 8px), 0);
}
.feature-stage:hover .stage-word { -webkit-text-stroke-color: rgba(199, 151, 255, .38); }
.logo-squad { width: 128px; filter: drop-shadow(0 0 14px rgba(150, 200, 255, .5)); }
.feature-stage .feature-body p, .feature-squads .feature-body p { color: #d3d7ec; }

/* Stage: win streak */
.streak { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.streak-pip {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 10px;
  font: 700 italic 14px/1 var(--font-display);
  color: #d9c8ff;
  border: 1px solid rgba(199, 151, 255, .25);
  background: rgba(150, 51, 255, .12);
}
.streak-pip.fire {
  width: auto; padding: 0 13px 0 11px; gap: 6px; display: inline-flex;
  color: #fff;
  border-color: rgba(255, 160, 80, .55);
  background: linear-gradient(135deg, #ff8a3d, #ff3d7f 60%, #9633ff);
  box-shadow: 0 0 26px rgba(255, 110, 70, .55);
}
.streak-pip.fire .ico { width: 18px; height: 18px; animation: flicker 1.6s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes flicker { 25% { transform: scale(1.08) rotate(-4deg); } 50% { transform: scale(.96); } 75% { transform: scale(1.06) rotate(3deg); } }

/* Build: real badge icons + the MyREP ladder (Rookie -> Legend) */
.build-art { display: grid; gap: 18px; }
.badge-row { display: flex; gap: 10px; flex-wrap: wrap; }
.badge-row img {
  width: 60px; height: 60px;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .6));
  transition: transform .5s var(--ease-out), filter .3s;
}
.feature:hover .badge-row img { transform: translateY(-6px); filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .6)) drop-shadow(0 0 12px rgba(255, 196, 80, .35)); }
.feature:hover .badge-row img:nth-child(2) { transition-delay: .04s; }
.feature:hover .badge-row img:nth-child(3) { transition-delay: .08s; }
.feature:hover .badge-row img:nth-child(4) { transition-delay: .12s; }
.feature:hover .badge-row img:nth-child(5) { transition-delay: .16s; }
.rep-ladder { position: relative; display: flex; align-items: center; justify-content: space-between; max-width: 340px; }
.rep-ladder::before {
  content: ""; position: absolute; left: 20px; right: 20px; top: 50%; height: 2px; z-index: -1;
  background: linear-gradient(90deg, rgba(150, 120, 90, .5), rgba(199, 151, 255, .7), rgba(255, 210, 120, .8));
}
.rep-ladder img { width: 40px; height: 40px; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .7)); }
.rep-ladder img:last-child { width: 52px; height: 52px; filter: drop-shadow(0 0 14px rgba(255, 200, 90, .55)); }

/* Events: the real Double Rep logo, top right */
.feature-events .feature-art { position: absolute; right: 22px; top: 18px; margin: 0; }
.event-logo { width: 176px; transform: rotate(-4deg); filter: drop-shadow(0 16px 30px rgba(0, 0, 0, .7)); transition: transform .6s var(--ease-out); }
.feature-events:hover .event-logo { transform: rotate(-1deg) scale(1.03); }
.feature-events .feature-body { max-width: 62%; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.step { padding: 26px 24px 24px; display: flex; flex-direction: column; min-height: 100%; }
.step-num {
  font: 700 italic 54px/1 var(--font-display);
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(199, 151, 255, .6);
  margin-bottom: 18px;
  letter-spacing: .02em;
}
.step:hover .step-num { -webkit-text-stroke-color: var(--accent-light); text-shadow: 0 0 30px rgba(172, 52, 255, .5); }
.step h3 { font-family: var(--font-display); font-style: italic; font-weight: 700; text-transform: uppercase; font-size: 22px; letter-spacing: .01em; margin-bottom: 10px; }
.step p { font-size: 15.5px; margin-bottom: 22px; }
.step-mock { margin-top: auto; }
.mock {
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, #0f111b, #0b0d15);
  padding: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
  font-size: 13.5px;
}
.mock-file { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; white-space: nowrap; font-size: 13px; }
.mock-file img { width: 26px; height: auto; }
.mock-file .size { margin-left: auto; color: var(--dim); font-weight: 500; font-size: 12.5px; }
.mock-progress { height: 5px; border-radius: 3px; background: #22253a; margin-top: 10px; overflow: hidden; }
.mock-progress span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--btn-b), var(--accent-light)); transform-origin: left; transform: scaleX(0); }
.is-visible .mock-progress span, .no-reveal .mock-progress span { animation: fill 1.6s var(--ease-out) .3s forwards; }
@keyframes fill { to { transform: scaleX(1); } }
.mock-discord {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  height: 44px; border-radius: 10px;
  background: var(--discord); color: #fff; font-weight: 650; font-size: 14px;
  box-shadow: 0 10px 24px -10px rgba(88, 101, 242, .9);
}
.mock-discord .ico { width: 20px; height: 20px; }
.mock-row { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; }
.mock-row .check { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(25, 215, 133, .16); color: var(--ok); border: 1px solid rgba(25, 215, 133, .4); flex: none; }
.mock-row .check .ico { width: 14px; height: 14px; }
.mock-row small { display: block; color: var(--dim); font-weight: 500; font-size: 12.5px; }
.mock-server { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 650; white-space: nowrap; }
.mock-server .mock-play { margin-left: auto; }

/* ---------- Requirements (two lines, on purpose) ---------- */
.req { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.req .section-head { margin-bottom: 0; }
.req-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.req-item { padding: 26px; display: grid; gap: 18px; align-content: start; }
.req-item .ri {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  color: var(--accent-light);
  background: linear-gradient(145deg, rgba(150, 51, 255, .28), rgba(150, 51, 255, .06));
  border: 1px solid rgba(199, 151, 255, .25);
}
.req-item .ri .ico { width: 26px; height: 26px; }
.req-item b { font-size: 19px; line-height: 1.3; font-weight: 700; }
.req-item b small { display: block; margin-top: 8px; font-size: 14.5px; font-weight: 500; color: var(--muted); }

/* ---------- Plans: Stellar (free) and Stellar+ ---------- */
.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 920px;
  margin-inline: auto;
  align-items: stretch;
}
.plan { padding: clamp(26px, 3.4vw, 38px); display: flex; flex-direction: column; }
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.plan-name {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-style: italic; font-weight: 700;
  font-size: 26px; text-transform: uppercase; letter-spacing: .01em;
  color: var(--text);
}
.plan-name img { width: 30px; height: auto; filter: drop-shadow(0 0 10px rgba(172, 52, 255, .7)); }
.plan-tag {
  padding: 5px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #e6d6ff; border: 1px solid rgba(199, 151, 255, .4); background: rgba(150, 51, 255, .18);
}
.plan-price { display: flex; align-items: baseline; gap: 8px; margin: 0 0 6px; }
.plan-price b {
  font-family: var(--font-display); font-style: italic; font-weight: 700;
  font-size: clamp(46px, 5vw, 60px); line-height: 1;
  color: var(--text);
  padding-right: .06em;
}
.plan-price span { color: var(--dim); font-size: 15px; font-weight: 600; }
.plan-sub { color: var(--muted); font-size: 15.5px; margin: 0 0 24px; }
.plan-list { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 12px; }
.plan-list li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; color: var(--text); font-size: 16px; line-height: 1.45; }
.plan-list .tick {
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--accent-light);
  background: rgba(150, 51, 255, .14);
  border: 1px solid rgba(199, 151, 255, .3);
}
.plan-list .tick .ico { width: 13px; height: 13px; }
.plan-list .soon { color: var(--muted); }
.plan-cta { margin-top: auto; display: grid; gap: 12px; }
.plan-cta .btn { width: 100%; }
/* Until a store exists the Stellar+ button is a clearly inactive "Stellar+ is coming" (no link). */
.btn-soon, .btn-soon:disabled {
  cursor: default;
  color: #e6d6ff;
  background: rgba(150, 51, 255, .14);
  border: 1px dashed rgba(199, 151, 255, .55);
  box-shadow: none;
  transform: none;
  opacity: 1;
}
.btn-soon .ico { color: var(--accent-light); }
.plan-note { margin: 0; font-size: 13.5px; color: var(--faint); text-align: center; }
.plan-note a { color: var(--accent-light); white-space: nowrap; }
/* Stellar+: the highlighted card (gradient border + accent glow) */
.plan-plus {
  border: 1px solid transparent;
  background:
    radial-gradient(500px 260px at 85% 0%, rgba(150, 51, 255, .28), transparent 70%) padding-box,
    linear-gradient(180deg, rgba(30, 22, 52, .96), rgba(16, 14, 28, .96)) padding-box,
    linear-gradient(150deg, rgba(220, 192, 255, .9), rgba(150, 51, 255, .7) 35%, rgba(120, 39, 251, .25) 70%, rgba(199, 151, 255, .6)) border-box;
  box-shadow: 0 0 0 1px rgba(150, 51, 255, .2), 0 40px 90px -36px rgba(150, 51, 255, .85), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.plan-plus:hover { box-shadow: 0 0 0 1px rgba(172, 52, 255, .35), 0 46px 100px -34px rgba(172, 52, 255, .95), inset 0 1px 0 rgba(255, 255, 255, .1); }
.plan-plus .plan-list .tick { color: #fff; background: linear-gradient(135deg, var(--btn-a), var(--btn-b)); border-color: transparent; box-shadow: 0 0 12px rgba(150, 51, 255, .6); }
.plans-foot { text-align: center; margin: 28px auto 0; color: var(--dim); font-size: 15px; max-width: 640px; }

/* ---------- 404 ---------- */
.notfound { min-height: 72vh; display: flex; align-items: center; border-bottom: 0; }
.notfound-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
@media (max-width: 560px) { .notfound-actions { flex-direction: column; } .notfound-actions .btn { width: 100%; } }

/* ---------- Callouts ---------- */
.callout {
  --c: var(--accent-light);
  display: grid; grid-template-columns: 24px 1fr; gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
  background: color-mix(in srgb, var(--c) 8%, transparent);
  color: var(--muted);
  font-size: 15.5px;
  margin: 0 0 1.4em;
}
.callout > .ico { color: var(--c); margin-top: 2px; }
.callout p:last-child { margin-bottom: 0; }
.callout.warn { --c: var(--warn); }
.callout.ok { --c: var(--ok); }
.callout.info { --c: var(--info); }
.callout.danger { --c: var(--bad); }

/* Owner placeholders: visible on purpose until filled in. */
.todo {
  display: inline;
  padding: .1em .45em;
  border-radius: 6px;
  background: rgba(255, 181, 71, .14);
  border: 1px dashed rgba(255, 181, 71, .6);
  color: #ffd08a;
  font-size: .92em;
  font-weight: 600;
}

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.qa-list { display: grid; gap: 10px; }
.qa { border-radius: 14px; border: 1px solid var(--line); background: rgba(16, 18, 28, .72); transition: border-color .25s, background-color .25s; }
.qa[open] { border-color: rgba(199, 151, 255, .32); background: rgba(23, 26, 38, .9); }
.qa summary {
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
  color: var(--text);
  font-weight: 650;
  font-size: 16.5px;
  line-height: 1.4;
  border-radius: 14px;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary .plus { position: relative; width: 28px; height: 28px; flex: none; border-radius: 8px; border: 1px solid var(--line-strong); transition: border-color .2s, background-color .2s; }
.qa summary .plus::before, .qa summary .plus::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 11px; height: 2px; border-radius: 1px; background: var(--accent-light);
  transform: translate(-50%, -50%);
}
.qa summary .plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .3s var(--ease-out); }
.qa[open] summary .plus { background: rgba(150, 51, 255, .2); border-color: rgba(199, 151, 255, .45); }
.qa[open] summary .plus::after { transform: translate(-50%, -50%) rotate(0); }
.qa summary:hover .plus { border-color: rgba(199, 151, 255, .45); }
.qa .answer { padding: 0 20px 20px; font-size: 15.5px; animation: answer-in .35s var(--ease-out); }
.qa .answer p:last-child { margin-bottom: 0; }
@keyframes answer-in { from { opacity: 0; transform: translateY(-4px); } }
.kbd {
  display: inline-grid; place-items: center;
  min-width: 24px; height: 24px; padding: 0 7px;
  border-radius: 7px;
  font: 700 12.5px/1 var(--font-ui);
  color: var(--text);
  background: #1b1e2c;
  border: 1px solid var(--line-strong);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .4);
  vertical-align: 1px;
}
.kbd.a { border-radius: 50%; min-width: 24px; padding: 0; background: #1f7a3c; border-color: #2fa356; color: #fff; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(96px, 12vw, 160px);
  text-align: center;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(700px 360px at 50% 46%, rgba(150, 51, 255, .32), transparent 70%),
    radial-gradient(1400px 500px at 50% 120%, rgba(120, 39, 251, .22), transparent 70%);
}
.cta-band::before {
  /* soft light rays behind the star */
  content: "";
  position: absolute; left: 50%; top: 30%;
  width: 1100px; height: 1100px;
  transform: translate(-50%, -50%);
  z-index: -1;
  background: repeating-conic-gradient(from 0deg, rgba(199, 151, 255, .07) 0 4deg, transparent 4deg 18deg);
  -webkit-mask-image: radial-gradient(closest-side, #000, transparent 75%);
  mask-image: radial-gradient(closest-side, #000, transparent 75%);
  animation: spin 120s linear infinite;
}
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.cta-star { width: 120px; margin: 0 auto 26px; filter: drop-shadow(0 0 30px rgba(172, 52, 255, .8)); animation: float 6s ease-in-out infinite; }
.cta-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(40px, 7vw, 88px);
  line-height: .95;
  text-wrap: balance;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 20px;
  letter-spacing: .005em;
  text-shadow: 0 0 60px rgba(150, 51, 255, .45);
}
.cta-band .lede { margin: 0 auto 34px; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 14px; margin-bottom: 30px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: linear-gradient(180deg, #0a0d15, var(--bg-deep)); padding: 64px 0 34px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; margin-bottom: 48px; }
.footer-brand img { height: 34px; width: auto; margin-bottom: 18px; filter: drop-shadow(0 0 14px rgba(150, 51, 255, .4)); }
.footer-brand p { color: var(--dim); max-width: 340px; font-size: 14.5px; }
.footer-col h2 { font: 700 13px/1 var(--font-display); letter-spacing: .18em; text-transform: uppercase; color: var(--text); margin-bottom: 18px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--muted); text-decoration: none; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 30px; padding-top: 26px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13.5px; }
.footer-bottom p { margin: 0; max-width: 760px; }

/* ---------- Sub-page hero ---------- */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--header-h) + clamp(56px, 8vw, 96px)) 0 clamp(64px, 7vw, 96px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(700px 420px at 82% 30%, rgba(150, 51, 255, .26), transparent 65%),
    radial-gradient(600px 400px at 0% 0%, rgba(120, 39, 251, .12), transparent 65%);
}
.page-hero-star {
  position: absolute; right: max(var(--gutter), calc(50% - 600px)); top: calc(var(--header-h) + 24px);
  width: 240px; z-index: -1;
  opacity: .5;
  filter: drop-shadow(0 0 40px rgba(172, 52, 255, .7));
  animation: float 8s ease-in-out infinite;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(40px, 6.4vw, 76px);
  line-height: .98;
  text-wrap: balance;
  text-transform: uppercase;
  letter-spacing: .005em;
  margin-bottom: 18px;
  background: linear-gradient(180deg, #fff 35%, #d9c2ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .08em;
}
.page-hero .lede { margin-bottom: 0; }
.crumbs { display: flex; gap: 8px; font-size: 14px; color: var(--dim); margin-bottom: 18px; }
.crumbs a { color: var(--dim); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.draft-banner {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 181, 71, .45);
  background: rgba(255, 181, 71, .1);
  color: #ffd08a;
  font-weight: 600; font-size: 14.5px;
  margin-top: 24px;
}

/* ---------- Doc layout (join, help, privacy) ---------- */
.doc {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  padding-block: clamp(48px, 7vw, 88px) var(--section-y);
}
.toc { position: sticky; top: calc(var(--header-h) + 28px); font-size: 14.5px; }
.toc h2 { font: 700 12.5px/1 var(--font-display); letter-spacing: .2em; text-transform: uppercase; color: var(--dim); margin-bottom: 14px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc ol a { display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; transition: color .2s, border-color .2s; }
.toc ol a:hover { color: var(--text); }
.toc ol a.is-active { color: var(--text); border-left-color: var(--accent); }
.toc-cta { margin-top: 26px; display: grid; gap: 10px; }
.toc-cta .btn { width: 100%; }

.prose { max-width: 760px; min-width: 0; }
.prose > section { margin-bottom: clamp(44px, 6vw, 64px); }
.prose > section:last-child { margin-bottom: 0; }
.prose h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: .005em;
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 14px;
}
.prose h2 .num {
  flex: none;
  display: inline-grid; place-items: center;
  width: 42px; height: 42px; border-radius: 12px;
  font-size: 19px;
  color: #fff;
  background: linear-gradient(135deg, var(--btn-a), var(--btn-b));
  box-shadow: var(--glow);
}
.prose h3 { font-size: 18px; font-weight: 700; margin: 26px 0 8px; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .5em; padding-left: .2em; }
.prose li::marker { color: var(--accent-light); }

/* ---------- SmartScreen illustration ---------- */
.ss { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 8px 0 0; }
.ss-step { display: grid; gap: 10px; margin: 0; }
.ss-step figcaption { font-size: 14.5px; color: var(--muted); display: flex; gap: 10px; align-items: center; }
.ss-step figcaption .n { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font: 700 italic 14px/1 var(--font-display); color: #fff; background: linear-gradient(135deg, var(--btn-a), var(--btn-b)); }
.ss-win {
  border-radius: 10px;
  background: #1f6fd1;
  color: #fff;
  padding: 18px 18px 14px;
  font-family: "Segoe UI", var(--font-ui);
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .9);
  min-height: 214px;
  display: flex; flex-direction: column;
}
.ss-win .ss-title { font-size: 19px; font-weight: 600; margin-bottom: 8px; line-height: 1.25; }
.ss-win .ss-text { font-size: 12.5px; opacity: .92; line-height: 1.45; margin-bottom: 10px; }
.ss-win .ss-link { font-size: 12.5px; text-decoration: underline; align-self: flex-start; padding: 2px 4px; margin-left: -4px; border-radius: 4px; outline: 2px solid #ffd76a; outline-offset: 2px; box-shadow: 0 0 0 6px rgba(255, 215, 106, .25); animation: hint 2s ease-in-out infinite; }
.ss-win dl { margin: 0 0 12px; font-size: 12.5px; display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; }
.ss-win dt { opacity: .8; }
.ss-win dd { margin: 0; font-weight: 600; }
.ss-win .ss-buttons { margin-top: auto; display: flex; justify-content: flex-end; gap: 8px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .25); }
.ss-win .ss-btn { font-size: 12.5px; padding: 6px 16px; border: 1px solid rgba(255, 255, 255, .8); border-radius: 3px; background: rgba(255, 255, 255, .06); }
.ss-win .ss-btn.hint { outline: 2px solid #ffd76a; outline-offset: 2px; box-shadow: 0 0 0 6px rgba(255, 215, 106, .25); animation: hint 2s ease-in-out infinite; background: rgba(255, 255, 255, .2); }
@keyframes hint { 50% { box-shadow: 0 0 0 10px rgba(255, 215, 106, .08); } }

/* ---------- Download page ---------- */
.dl-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  padding: clamp(26px, 4vw, 44px);
  margin-top: calc(-1 * clamp(32px, 4vw, 48px));
}
.dl-main { display: grid; gap: 20px; }
.dl-title { display: flex; align-items: center; gap: 18px; }
.dl-title img { width: 64px; filter: drop-shadow(0 0 20px rgba(150, 51, 255, .7)); }
.dl-title h2 { font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: clamp(26px, 3vw, 34px); line-height: 1; text-transform: uppercase; margin-bottom: 6px; }
.dl-title p { margin: 0; color: var(--dim); font-size: 15px; }
.dl-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.dl-meta li { display: grid; gap: 2px; padding: 10px 14px; border-radius: 11px; border: 1px solid var(--line); background: rgba(9, 12, 19, .5); min-width: 120px; }
.dl-meta small { font-size: 12px; color: var(--dim); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.dl-meta b { font-size: 15.5px; }
.dl-side { display: grid; justify-items: center; gap: 10px; text-align: center; max-width: 360px; }
.dl-side .btn { min-width: 300px; }
.dl-status { font-size: 14px; color: var(--dim); margin: 4px 0 0; }
.sha-line { margin: 0; font-size: 12.5px; color: var(--faint); overflow-wrap: anywhere; line-height: 1.5; }
.sha-line code { font-size: 11.5px; background: transparent; border: 0; padding: 0; color: #a9adc6; }
.mini-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mini { padding: 24px; }
.mini-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--accent-light); background: rgba(150, 51, 255, .15); border: 1px solid rgba(199, 151, 255, .24); margin-bottom: 16px; }
.mini h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; line-height: 1.3; }
.mini p { font-size: 15px; margin: 0; color: var(--dim); }

/* ---------- Status page ---------- */
.status-panel { padding: clamp(24px, 4vw, 40px); margin-top: calc(-1 * clamp(32px, 4vw, 48px)); }
.status-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 28px; }
.status-id { display: flex; align-items: center; gap: 16px; }
.status-id .flag {
  font: 700 italic 24px/1 var(--font-display); color: #fff;
  padding: 12px 14px; border-radius: 13px;
  background: linear-gradient(135deg, rgba(150, 51, 255, .5), rgba(120, 39, 251, .2));
  border: 1px solid rgba(199, 151, 255, .4);
  box-shadow: var(--glow);
}
.status-id h2 { font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.status-id p { margin: 0; color: var(--dim); font-size: 14.5px; }
.state-pill {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 20px 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(9, 12, 19, .6);
  font: 700 italic 21px/1 var(--font-display);
  text-transform: uppercase;
  letter-spacing: .02em;
}
.state-pill .dot { width: 12px; height: 12px; }
[data-state="operational"] .state-pill { border-color: rgba(25, 215, 133, .45); background: rgba(25, 215, 133, .08); }
[data-state="maintenance"] .state-pill { border-color: rgba(255, 181, 71, .45); background: rgba(255, 181, 71, .08); }
[data-state="offline"] .state-pill { border-color: rgba(255, 107, 134, .45); background: rgba(255, 107, 134, .08); }
.status-msg { margin: 0 0 24px; font-size: 16.5px; color: var(--muted); }
.status-panel .servers { margin-top: 4px; }
.status-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--dim); }
.status-foot p { margin: 0; }
.legend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.legend .mini h3 { display: flex; align-items: center; gap: 10px; }
.status-id img { width: 56px; filter: drop-shadow(0 0 18px rgba(150, 51, 255, .7)); }
.status-panel .panel-title { margin: 0 0 12px 2px; }
.status-help, .mini-grid + .lede { margin-top: 30px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }

/* ---------- Rules ---------- */
.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; counter-reset: rule; margin: 0 0 28px; padding: 0; list-style: none; }
.rule { padding: 28px; counter-increment: rule; }
.rule::before {
  content: counter(rule, decimal-leading-zero);
  display: block;
  font: 700 italic 44px/1 var(--font-display);
  color: transparent; -webkit-text-stroke: 1.5px rgba(199, 151, 255, .6);
  margin-bottom: 14px;
}
.rule h2 { font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 24px; line-height: 1.1; text-transform: uppercase; margin-bottom: 10px; letter-spacing: .01em; }
.rule p { margin: 0; font-size: 15.5px; }

/* ---------- Help search ---------- */
.search { position: relative; margin: 0 0 34px; }
.search input {
  width: 100%;
  height: 56px;
  padding: 0 18px 0 50px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(16, 18, 28, .85);
  color: var(--text);
  font: 500 16px var(--font-ui);
  transition: border-color .2s, box-shadow .2s;
}
.search input::placeholder { color: var(--dim); }
.search input:focus { outline: none; border-color: rgba(199, 151, 255, .7); box-shadow: 0 0 0 4px rgba(150, 51, 255, .2); }
.search .ico { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--dim); }
.search-empty { color: var(--dim); }
.faq-group { margin-bottom: 44px; }
.summary-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 1.6em; }
.summary-cards .mini p { color: var(--muted); }

/* ---------- Reveal on scroll (JS adds .reveal-pending only below the fold) ---------- */
.reveal-pending { opacity: 0; transform: translateY(26px); }
.reveal-in { opacity: 1; transform: none; transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0s); }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .header-inner { gap: 18px; }
  .nav a { padding: 8px 9px; font-size: 14.5px; }
  .nav-actions { gap: 8px; }
}
@media (max-width: 1100px) {
  /* the six nav links move into the menu; Sign in and Download stay in the bar */
  .nav { display: none; }
  .nav-actions { margin-left: auto; }
  .nav-actions .icon-link { display: none; }
  .menu { display: block; margin-left: 0; }
  .header-inner { gap: 12px; }
  .feature-stage .stage-word { display: none; }
  .span-7, .span-5 { grid-column: span 6; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .event-logo { width: 140px; }
}
@media (max-width: 960px) {
  :root { --header-h: 62px; }
  .header-inner { gap: 12px; }
  .doc { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; padding: 18px; border-radius: 16px; border: 1px solid var(--line); background: rgba(16, 18, 28, .7); }
  .toc-cta { display: none; }
  .req, .faq-wrap, .two-col { grid-template-columns: minmax(0, 1fr); }
  .feature-wide { grid-template-columns: minmax(0, 1fr); }
  .feature-wide .feature-media { min-height: 260px; order: -1; }
  .feature-media .art { -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 40%); mask-image: linear-gradient(0deg, transparent 0%, #000 40%); }
  .feature-wide .feature-body { padding-top: 0; }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .dl-card { grid-template-columns: minmax(0, 1fr); }
  .dl-side { justify-items: stretch; text-align: left; max-width: none; }
  .dl-side .btn { min-width: 0; width: 100%; }
  .page-hero-star { width: 160px; opacity: .35; }
}
@media (max-width: 900px) {
  /* Narrow screens: the player sits above the text, which overlaps the art's faded bottom. */
  .hero {
    display: block;
    min-height: 0;
    padding-top: calc(var(--header-h) + min(64vw, 380px));
    padding-bottom: 64px;
  }
  .hero-media { left: 0; transform: none; width: 100%; bottom: auto; height: min(122vw, 640px); }
  .hero-media img { object-position: 96% 22%; animation-name: fade-in; }
  .hero-media::after {
    background:
      linear-gradient(0deg, var(--bg) 6%, rgba(9, 12, 19, .82) 26%, rgba(9, 12, 19, .2) 55%, rgba(9, 12, 19, 0) 70%),
      linear-gradient(180deg, rgba(9, 12, 19, .7) 0%, rgba(9, 12, 19, 0) 20%),
      linear-gradient(90deg, rgba(9, 12, 19, .55) 0%, rgba(9, 12, 19, 0) 45%);
  }
  .hero-stars { -webkit-mask-image: linear-gradient(180deg, transparent 30%, #000 60%); mask-image: linear-gradient(180deg, transparent 30%, #000 60%); }
  .hero-bg { background: var(--bg); }
  .ss { grid-template-columns: minmax(0, 1fr); }
  .summary-cards, .mini-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 901px) and (max-width: 1200px) {
  /* Small desktops: the art is fitted to the width (not cropped to the hero's height), so the ball
     and the player stay right of a narrower text column; buttons wrap instead of reaching the ball. */
  .hero-media { bottom: auto; height: auto; aspect-ratio: 1672 / 941; }
  .hero-bg { background: var(--bg); }
  .hero-media::after {
    background:
      linear-gradient(0deg, var(--bg) 0%, rgba(9, 12, 19, .7) 14%, rgba(9, 12, 19, 0) 38%),
      linear-gradient(90deg, rgba(9, 12, 19, .9) 0%, rgba(9, 12, 19, .6) 30%, rgba(9, 12, 19, 0) 54%),
      linear-gradient(180deg, rgba(9, 12, 19, .55) 0%, rgba(9, 12, 19, 0) 16%);
  }
  .hero-copy { max-width: min(470px, 46vw); }
  .hero-wordmark { width: min(440px, 100%); }
  .hero-sub { font-size: 17px; }
  .hero-pitch { font-size: clamp(24px, 2.6vw, 30px); }
  .hero-actions .btn-lg { --h: 52px; padding: 0 22px; font-size: 16px; }
}
@media (max-width: 720px) {
  body { font-size: 16.5px; }
  .bento { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .bento > * { grid-column: auto; }
  .feature { min-height: 0; padding: 24px; }
  .feature-wide { padding: 0; }
  .feature-wide .feature-body { padding: 0 24px 24px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .step { display: grid; grid-template-columns: 58px minmax(0, 1fr); column-gap: 14px; padding: 22px 20px; }
  .step-num { font-size: 40px; margin: 0; grid-row: span 3; }
  .step p { margin-bottom: 16px; }
  .step-mock { grid-column: 2; }
  .req-items, .legend, .rules, .plans { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  .section-head-row { display: block; }
  .section-head-row .text-link { margin-top: 18px; }
  .feature-events .feature-art { position: static; margin-bottom: 14px; }
  .feature-events .feature-body { max-width: none; }
  .event-logo { width: 130px; }
  .media-logo { right: 18px; bottom: 16px; width: 110px; }
  .nav-signin { display: none; }
  /* touch: every footer link at least 40px tall */
  .footer-col ul { gap: 0; }
  .footer-col a { display: inline-flex; align-items: center; min-height: 40px; }
}
@media (max-width: 560px) {
  .hero-actions, .cta-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
  .hero-actions .dl-stack, .cta-actions .dl-stack { align-items: stretch; text-align: center; }
  .hero-actions .dl-meta-line, .cta-actions .dl-meta-line { position: static; transform: none; white-space: normal; padding-left: 0; text-wrap: balance; }
  .cta-actions { margin-bottom: 0; }
  .hero-actions { margin-bottom: 24px; }
  .server-panel { margin-top: -36px; padding: 12px; }
  .server-row { padding: 9px 12px; gap: 10px; font-size: 14px; }
  .server-row .info { gap: 8px; }
  .state-pill { font-size: 18px; }
  .dl-title img { width: 52px; }
  .brand img { height: 26px; }
  .badge-row img { width: 52px; height: 52px; }
  .page-hero-star { display: none; }
  /* status page: keep the word next to "Stellar" on small phones */
  .status-top { flex-wrap: nowrap; gap: 10px; }
  .status-id { gap: 10px; min-width: 0; }
  .status-id img { width: 40px; }
  .status-id h2 { font-size: 19px; }
  .state-pill { font-size: 15px; padding: 8px 12px; gap: 8px; flex: none; }
  .state-pill .dot { width: 10px; height: 10px; }
}
@media (max-width: 400px) {
  .header-inner { gap: 8px; }
  .nav-actions .btn-sm { padding: 0 12px; }
  .menu > summary { padding: 0 11px; gap: 7px; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
  .reveal-pending { opacity: 1; transform: none; }
  .cta-band::before { animation: none !important; }
  .feature-media .art, .feature-bg img { transform: none !important; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .hero-media, .hero-stars, .hero-bg, .cta-band, .menu { display: none !important; }
  body { background: #fff; color: #111; }
  .h2, .page-hero h1 { color: #111; background: none; -webkit-text-fill-color: #111; }
}

/* ---- Basketball 21 + Basketball 22 (10-25): the hero's two status pills, the home's two game cards, the 22 row
        in the server lists, the status legend's fourth card ---- */
.status-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.status-pill .pill-game { color: var(--muted); font-weight: 600; }
.server-row .name .game { color: var(--muted); font-weight: 600; }
.server-row .name .game::after { content: " \00B7"; }
.games { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.game-card { padding: clamp(22px, 2.4vw, 30px); display: flex; flex-direction: column; gap: 12px; }
.game-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.game-head h3 { margin: 0; font-size: clamp(20px, 2vw, 24px); }
.game-desc { margin: 0; color: var(--muted); }
.game-msg { margin: 0; color: var(--dim); font-size: 15px; }
.game-card .tester-cta { display: none; align-self: flex-start; margin-top: 4px; }
.game-card[data-state="maintenance"] .tester-cta:not([hidden]) { display: inline-flex; }
.legend.legend-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .legend.legend-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .games { grid-template-columns: minmax(0, 1fr); }
  .legend.legend-4 { grid-template-columns: minmax(0, 1fr); }
}
/* A server row is a status box of its own inside the status panel: its own state sets its colours, never the
   panel's (the Basketball 22 row can be in another state than Basketball 21). */
.server-row.is-live[data-state] .dot { --c: var(--idle); box-shadow: none; animation: none; }
.server-row.is-live[data-state] .dot::after { animation: none; }
.server-row.is-live[data-state] .state-text { color: var(--text); font-weight: 650; }
.server-row.is-live[data-state="operational"] .dot { --c: var(--ok); box-shadow: 0 0 10px var(--c); }
.server-row.is-live[data-state="operational"] .dot::after { animation: ring 2.2s var(--ease-out) infinite; }
.server-row.is-live[data-state="maintenance"] .dot { --c: var(--warn); box-shadow: 0 0 10px var(--c); animation: dot-breathe 2.4s ease-in-out infinite; }
.server-row.is-live[data-state="offline"] .dot { --c: var(--bad); box-shadow: 0 0 10px var(--c); }
.server-row.is-live[data-state="unknown"] .dot { animation: dot-breathe 2.4s ease-in-out infinite; }
.server-row.is-live[data-state="operational"] .state-text { color: #7ff0bd; }
.server-row.is-live[data-state="maintenance"] .state-text { color: #ffd08a; }
.server-row.is-live[data-state="offline"] .state-text { color: #ffa3b4; }
.server-row.is-live[data-state="down"] .state-text, .server-row.is-live[data-state="unknown"] .state-text { color: var(--muted); font-weight: 550; }
/* Phones: the game's name on its own line above the server, so the row's name never runs under its status. */
@media (max-width: 560px) {
  .server-row .name { flex-wrap: wrap; row-gap: 2px; }
  .server-row .name .game { flex-basis: 100%; font-size: 12.5px; }
  .server-row .name .game::after { content: none; }
}
/* Narrow phones: in the join guide's list the status + Play go under the name (a 320 px screen has no room beside it). */
@media (max-width: 380px) {
  .servers.pick .server-row.is-live { grid-template-columns: auto minmax(0, 1fr); row-gap: 6px; }
  .servers.pick .server-row.is-live .info { grid-column: 2; }
}

/* ---- Kit E (lane creators-1106, owner 11-06): the header says who is signed in (js/site.js) ---- */
.nav-signin.nav-me { gap: 8px; max-width: 220px; }
.nav-me-pic { width: 24px; height: 24px; border-radius: 50%; flex: 0 0 24px; object-fit: cover; display: inline-block; }
.nav-me-letter { background: rgba(150, 51, 255, .35); color: var(--text); font-weight: 600; font-size: 13px; line-height: 24px; text-align: center; }
.nav-me-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.menu-panel a.nav-me-line { justify-content: flex-start; gap: 10px; }
