/* Ondes VOXEL: the site's single stylesheet (design notes: web/DESIGN-NOTES.md).
   Fonts come from third_party/fonts (OFL), served under static/fonts/; game images from
   static/game/ (scripts/web_assets.py, resources/ov). Nothing here loads from another origin. */

@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap;
  src: url("../fonts/poppins/Poppins-Regular.ttf") format("truetype"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap;
  src: url("../fonts/poppins/Poppins-Medium.ttf") format("truetype"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap;
  src: url("../fonts/poppins/Poppins-SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap;
  src: url("../fonts/poppins/Poppins-Bold.ttf") format("truetype"); }
@font-face { font-family: "Noto Sans"; font-weight: 400; font-display: swap;
  src: url("../fonts/noto/NotoSans-Regular.ttf") format("truetype"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap;
  src: url("../fonts/jetbrains-mono/JetBrainsMono-Regular.ttf") format("truetype"); }

/* ─── Tokens ─────────────────────────────────────────────────────────────────────────────── */
:root {
  color-scheme: light dark;
  --font: "Poppins", "Noto Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --wrap: 1200px;
  --wrap-text: 980px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 18px;
  --radius-lg: 28px;
  --ease: cubic-bezier(0.28, 0.11, 0.32, 1);
  --ease-ui: cubic-bezier(0.4, 0, 0.6, 1);
  --t-ui: 0.28s;
  --gnav-h: 48px;

  --bg: #ffffff;
  --bg-2: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #f5f5f7;
  --field: #ffffff;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --line: rgba(0, 0, 0, 0.1);
  --line-strong: rgba(0, 0, 0, 0.22);
  --accent: #1667e8;
  --accent-hover: #2b78f0;
  --accent-text: #0b5fd4;
  --ok: #1f8f4e;
  --warn: #b26a00;
  --danger: #d1293a;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 18px 48px rgba(0, 0, 0, 0.07);
  --glass: rgba(251, 251, 253, 0.74);

  /* Metal fills for headlines: titanium, copper and amethyst, like our ores. */
  --brush: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='120'%3E%3Cfilter id='b'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.004 0.9' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23b)'/%3E%3C/svg%3E");
  --metal-titanium: linear-gradient(180deg, #fbfcfd 0%, #dfe4ea 20%, #9aa3b0 44%, #f4f6f9 51%, #c3cad4 66%, #6c7482 88%, #8d95a2 100%);
  --metal-copper: linear-gradient(180deg, #fff3ea 0%, #f6c4a2 22%, #c0714a 46%, #ffe0cb 52%, #e0966a 68%, #8a4425 92%, #a65a35 100%);
  --metal-amethyst: linear-gradient(180deg, #fdf8ff 0%, #e4cbff 22%, #9466dc 46%, #f4e8ff 52%, #be98f2 68%, #5f3a9e 92%, #7b52bd 100%);
}
@supports (background: linear-gradient(180deg in oklch, red, blue)) {
  :root {
    --metal-titanium: linear-gradient(180deg in oklch, #fbfcfd 0%, #dfe4ea 20%, #9aa3b0 44%, #f4f6f9 51%, #c3cad4 66%, #6c7482 88%, #8d95a2 100%);
    --metal-copper: linear-gradient(180deg in oklch, #fff3ea 0%, #f6c4a2 22%, #c0714a 46%, #ffe0cb 52%, #e0966a 68%, #8a4425 92%, #a65a35 100%);
    --metal-amethyst: linear-gradient(180deg in oklch, #fdf8ff 0%, #e4cbff 22%, #9466dc 46%, #f4e8ff 52%, #be98f2 68%, #5f3a9e 92%, #7b52bd 100%);
  }
}

/* Dark palette: the system's choice. */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-2: #0d0d0f;
    --surface: #161618;
    --surface-2: #1d1d1f;
    --field: #1d1d1f;
    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --text-3: #86868b;
    --line: rgba(255, 255, 255, 0.12);
    --line-strong: rgba(255, 255, 255, 0.26);
    --accent: #2a74f0;
    --accent-hover: #4386f5;
    --accent-text: #5aa2ff;
    --ok: #4cd182;
    --warn: #f5b13d;
    --danger: #ff5a64;
    --shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
    --glass: rgba(22, 22, 23, 0.72);
  }
}

/* Cinematic chapters are dark whatever the system says. */
.hero, .pin, .parallax, .tone-black, .tone-ink, .bt-dark {
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --text-3: #86868b;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.3);
  --accent-text: #5aa2ff;
  --surface: #161618;
  color: var(--text);
}

/* ─── Base ───────────────────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.53 var(--font); letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip; min-height: 100vh; display: flex; flex-direction: column;
}
body > main { flex: 1; }
img, canvas, svg { display: block; max-width: 100%; }
.metal-canvas { max-width: none; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 70%, transparent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { margin: 0 0 0.4em; font-weight: 600; letter-spacing: -0.028em; line-height: 1.08; color: var(--text); }
h1 { font-size: clamp(40px, 6vw, 72px); }
h2 { font-size: clamp(30px, 4.2vw, 48px); }
h3 { font-size: clamp(21px, 2vw, 24px); letter-spacing: -0.02em; line-height: 1.2; }
p { margin: 0 0 1em; }
code, .mono { font-family: var(--mono); font-size: 0.88em; letter-spacing: 0; }
code { background: var(--surface-2); padding: 0.12em 0.42em; border-radius: 6px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.narrow-wrap { width: min(var(--wrap-text), 100% - 2 * var(--gutter)); }
.center { text-align: center; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: #fff;
  padding: 10px 18px; border-radius: 980px; transition: top var(--t-ui) var(--ease-ui); }
.skip:focus { top: 12px; text-decoration: none; }

/* Type helpers */
.eyebrow { font-size: clamp(15px, 1.4vw, 19px); font-weight: 600; letter-spacing: -0.005em;
  color: var(--text-3); margin: 0 0 12px; }
.lead, .copy { font-size: clamp(17px, 1.55vw, 21px); line-height: 1.45; letter-spacing: -0.012em; color: var(--text-2); }
.copy { max-width: 34em; }
.center .copy, .copy.center { margin-inline: auto; }
.copy strong, .lead strong { color: var(--text); font-weight: 600; }
.muted { color: var(--text-2); }
.display { font-size: clamp(48px, 8.2vw, 108px); line-height: 1.02; letter-spacing: -0.042em; }
.display-sm { font-size: clamp(38px, 5.6vw, 72px); line-height: 1.04; letter-spacing: -0.038em; }

/* Metal headline: a polished-ore fill, a brushed grain, and a highlight that glides with the
   scroll (--sheen, 0..1, written by site.js) and the pointer. */
.metal {
  --metal: var(--metal-titanium);
  --sheen: 0.35;
  background-image:
    linear-gradient(100deg, transparent 42%, rgba(255, 255, 255, 0.95) 50%, transparent 58%),
    var(--brush),
    var(--metal);
  background-size: 320% 100%, 400px 100%, 100% 100%;
  background-position: calc((1 - var(--sheen)) * 100%) 0, 0 0, 0 0;
  background-blend-mode: soft-light, overlay, normal;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  padding-bottom: 0.06em; /* descenders stay inside the clip */
}
/* metal.js: the same titles rendered as machined metal in WebGL; the HTML text stays, unpainted. */
.metal.is-metal3d { background: none; -webkit-text-fill-color: transparent; color: transparent; filter: none; }
.metal-canvas { position: absolute; z-index: 0; pointer-events: none; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.45)); }
.has-metal3d > :not(.metal-canvas) { position: relative; z-index: 1; }
.hero-mark .metal-canvas { filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.7)); }
.metal-titanium { --metal: var(--metal-titanium); }
.metal-copper { --metal: var(--metal-copper); }
.metal-amethyst { --metal: var(--metal-amethyst); }
/* On light paper, titanium turns to graphite so it keeps its contrast. */
.tone-paper .metal-titanium, .tone-paper2 .metal-titanium, .page .metal-titanium, .page .metal:not([class*="metal-"]) {
  --metal: linear-gradient(180deg, #5d6674 0%, #2b3039 38%, #8a93a1 50%, #3a414b 64%, #16191e 100%);
}
@media (prefers-color-scheme: dark) {
  .tone-paper .metal-titanium, .tone-paper2 .metal-titanium, .page .metal-titanium, .page .metal:not([class*="metal-"]) {
    --metal: var(--metal-titanium);
  }
}

/* ─── Buttons and links ──────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 500 17px/1.2 var(--font); letter-spacing: -0.01em; white-space: nowrap;
  padding: 12px 24px; border-radius: 980px; border: 0; cursor: pointer;
  color: var(--text); background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color var(--t-ui) var(--ease-ui), color var(--t-ui) var(--ease-ui),
    box-shadow var(--t-ui) var(--ease-ui), transform var(--t-ui) var(--ease-ui);
}
.btn:hover { text-decoration: none; box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn:active { transform: scale(0.97); }
.btn.primary { background: var(--accent); color: #fff; box-shadow: none; }
.btn.primary:hover { background: var(--accent-hover); }
.btn.ghost { background: transparent; color: var(--accent-text); box-shadow: inset 0 0 0 1px currentColor; }
.btn.danger { background: transparent; color: var(--danger); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--danger) 55%, transparent); }
.btn.danger:hover { background: color-mix(in srgb, var(--danger) 10%, transparent); }
.btn.small { font-size: 14px; padding: 8px 16px; }
.btn.tiny { font-size: 12px; padding: 5px 12px; font-weight: 500; }
.btn.big { font-size: 19px; padding: 16px 32px; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }
.actions { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; margin-top: 28px; }
.actions.center { justify-content: center; }
.more { color: var(--accent-text); font-weight: 400; }
.more::after { content: " ›"; display: inline-block; transition: transform var(--t-ui) var(--ease-ui); }
a.more:hover::after, a:hover .more::after { transform: translateX(3px); }

/* ─── Global navigation ──────────────────────────────────────────────────────────────────── */
.gnav {
  position: sticky; top: 0; z-index: 50; height: var(--gnav-h);
  background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  box-shadow: inset 0 -1px 0 var(--line);
  transition: transform 0.5s var(--ease), opacity 0.4s var(--ease);
}
.gnav-in { width: min(1024px, 100% - 2 * var(--gutter)); height: 100%; margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-size: 15px; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand-word { font-weight: 500; }
.brand-word b { font-weight: 700; letter-spacing: 0.02em; }
.brand-mark { width: 18px; height: 18px; position: relative; flex: none;
  background: conic-gradient(from 210deg at 50% 55%, #9aa3b0 0 120deg, #5d6674 0 240deg, #e9edf2 0);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.gnav-links { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); font-size: 13px; }
.gnav-links a:not(.btn), .gnav-plain { color: var(--text); opacity: 0.8; font: 400 13px var(--font); letter-spacing: -0.005em;
  transition: opacity var(--t-ui) var(--ease-ui); }
.gnav-links a:not(.btn):hover, .gnav-plain:hover, .gnav-links a[aria-current] { opacity: 1; text-decoration: none; }
.gnav-links a[aria-current] { font-weight: 500; }
.gnav-links form { margin: 0; display: contents; }
.gnav-plain { background: none; border: 0; padding: 0; cursor: pointer; }
.gnav-sep { width: 1px; height: 16px; background: var(--line-strong); }
.nav-toggle, .nav-burger { display: none; }
/* The player's own pages, behind their name. */
.gnav-account { position: relative; }
.gnav-account > summary { list-style: none; cursor: pointer; color: var(--text); font: 500 13px var(--font);
  display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.gnav-account > summary::-webkit-details-marker { display: none; }
.gnav-account > summary::before { content: none; }
.gnav-account > summary::after { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0;
  transform: translateY(-2px) rotate(45deg); opacity: 0.7; transition: transform var(--t-ui) var(--ease-ui); }
.gnav-account[open] > summary::after { transform: translateY(1px) rotate(-135deg); }
.gnav-menu { position: absolute; right: -12px; top: calc(100% + 14px); min-width: 180px; padding: 8px;
  display: flex; flex-direction: column; background: var(--surface); border-radius: 14px;
  box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.gnav-menu a:not(.btn), .gnav-menu .gnav-plain { padding: 8px 10px; border-radius: 8px; text-align: left; opacity: 1; }
.gnav-menu a:not(.btn):hover, .gnav-menu .gnav-plain:hover { background: var(--surface-2); }
.home .gnav.on-hero .gnav-menu { background: #1c1c1e; --surface-2: rgba(255, 255, 255, 0.08); }

/* One bar on every page. On the home page it stays fixed over the hero (so the hero fills the
   screen), dark while the hero is under it, then the site's own look once past it (site.js). */
.home .gnav { position: fixed; inset: 0 0 auto; transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.home .gnav.on-hero { background: rgba(0, 0, 0, 0.35);
  --text: #f5f5f7; --line: rgba(255, 255, 255, 0.12); --line-strong: rgba(255, 255, 255, 0.3); color: #f5f5f7; }

@media (max-width: 860px) {
  .nav-burger { display: grid; place-items: center; width: 40px; height: 40px; margin-right: -10px; cursor: pointer; }
  .nav-burger span, .nav-burger span::before { display: block; width: 18px; height: 1.5px; background: var(--text);
    transition: transform var(--t-ui) var(--ease-ui); }
  .nav-burger span { transform: translateY(-3.5px); }
  .nav-burger span::before { content: ""; transform: translateY(7px); }
  .nav-toggle:checked + .nav-burger span { transform: rotate(45deg); }
  .nav-toggle:checked + .nav-burger span::before { transform: rotate(-90deg); }
  .gnav-links { position: fixed; inset: var(--gnav-h) 0 auto; height: calc(100dvh - var(--gnav-h));
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 40px;
    background: var(--bg); visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s 0.3s; overflow-y: auto; }
  .home .gnav.on-hero .gnav-links { background: #000; }
  .nav-toggle:checked ~ .gnav-links { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .gnav-links a:not(.btn), .gnav-plain { font-size: 24px; font-weight: 600; opacity: 1; padding: 12px 0; letter-spacing: -0.02em; text-align: left; }
  .gnav-links .btn { margin-top: 16px; font-size: 17px; padding: 12px 24px; align-self: flex-start; }
  .gnav-sep { width: 100%; height: 1px; margin: 12px 0; }
  .gnav-account > summary { font-size: 24px; font-weight: 600; padding: 12px 0; }
  .gnav-menu { position: static; min-width: 0; padding: 0 0 0 16px; background: none; box-shadow: none; }
  .home .gnav.on-hero .gnav-menu { background: none; }
  .gnav-menu a:not(.btn), .gnav-menu .gnav-plain { font-size: 20px; font-weight: 500; padding: 8px 0; }
  .gnav-menu a:not(.btn):hover, .gnav-menu .gnav-plain:hover { background: none; }
}

/* ─── Pages (forms, account, hosting, social) ────────────────────────────────────────────── */
main.page { padding: clamp(40px, 7vw, 88px) 0 clamp(72px, 10vw, 140px); }
main.page > .wrap > h1, .page-head h1 { font-size: clamp(40px, 6vw, 72px); letter-spacing: -0.04em; margin-bottom: 0.3em; }
main.page > .wrap > h1 + p.muted { font-size: 19px; margin-top: -0.4em; }
.page-head { margin-bottom: clamp(32px, 5vw, 56px); max-width: 760px; }
.page-head .lead { margin: 0; }
.card { background: var(--surface); border-radius: var(--radius-lg); padding: clamp(24px, 3.4vw, 40px);
  box-shadow: var(--shadow); margin-bottom: 24px; position: relative; }
.card > h2, .card > h3 { margin-bottom: 0.6em; }
.card h2 { font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.025em; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; margin-bottom: 24px; }
.grid > .card { margin-bottom: 0; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; line-height: 1;
  padding: 5px 10px; border-radius: 980px; background: var(--surface-2); color: var(--text-2); vertical-align: middle; margin-left: 8px;
  box-shadow: inset 0 0 0 1px var(--line); }
.badge.ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); box-shadow: none; }
.badge.warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); box-shadow: none; }
.badge.unread { color: #fff; background: var(--accent); box-shadow: none; }
.notice { padding: 14px 20px; border-radius: var(--radius); background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent); }

/* Flash messages: soft pills */
.messages { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 10px; }
.messages li { padding: 14px 20px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); font-size: 15px;
  border-left: 3px solid var(--accent); }
.messages li.success { border-left-color: var(--ok); }
.messages li.error { border-left-color: var(--danger); }
.messages li.warning { border-left-color: var(--warn); }

/* Forms: large fields, calm focus */
form p, form .field { margin: 0 0 20px; }
label, legend { display: block; font-size: 14px; font-weight: 500; color: var(--text); margin-bottom: 8px; letter-spacing: -0.005em; }
fieldset { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select, textarea {
  width: 100%; font: 400 17px/1.35 var(--font); letter-spacing: -0.01em; color: var(--text);
  background: var(--field); border: 1px solid var(--line-strong); border-radius: 14px; padding: 14px 16px;
  min-height: 54px; transition: border-color var(--t-ui) var(--ease-ui), box-shadow var(--t-ui) var(--ease-ui);
  -webkit-appearance: none; appearance: none;
}
select { background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 17px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 44px; }
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); width: 18px; height: 18px; vertical-align: -3px; margin-right: 8px; }
fieldset label { display: flex; align-items: center; font-weight: 400; font-size: 15px; }
.helptext { display: block; font-size: 13px; color: var(--text-2); margin-top: 8px; line-height: 1.45; }
.helptext ul { margin: 6px 0 0; padding-left: 18px; }
.errorlist { list-style: none; margin: 8px 0 0; padding: 0; color: var(--danger); font-size: 14px; }
.errorlist.nonfield { margin: 0 0 18px; padding: 12px 16px; border-radius: 12px; background: color-mix(in srgb, var(--danger) 10%, transparent); }

/* Auth cards: centred, on a soft halo */
.narrow { width: min(480px, 100%); margin-inline: auto; }
.narrow-left { max-width: 560px; }
.narrow.card { padding: clamp(28px, 5vw, 48px); margin-top: clamp(0px, 3vw, 32px); }
.narrow.card::before { content: ""; position: absolute; inset: -40% -30% auto; height: 120%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 18%, transparent), transparent),
    radial-gradient(closest-side at 70% 60%, rgba(150, 100, 230, 0.16), transparent); filter: blur(30px); }
.narrow.card h1, .narrow.card h2 { font-size: clamp(32px, 4vw, 40px); letter-spacing: -0.035em; margin-bottom: 28px; }
.narrow.card form .btn[type=submit] { width: 100%; font-size: 17px; padding: 15px 24px; margin-top: 8px; }
.narrow.card .alt { margin: 24px 0 0; text-align: center; font-size: 15px; }

/* Tables */
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 12px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.04em; }
tr:last-child td { border-bottom: 0; }
td form { margin: 0; }
.table-scroll { overflow-x: auto; margin: 0 -12px; }
table.servers { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; margin-top: 24px; }
table.servers th:first-child, table.servers td:first-child { padding-left: 24px; }
.state { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); }
[class*="state-running"]::before, .state-online::before { background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 20%, transparent); }
[class*="state-starting"]::before, [class*="state-provisioning"]::before, [class*="state-waking"]::before { background: var(--warn); }
[class*="state-error"]::before, [class*="state-failed"]::before { background: var(--danger); }

/* Hosting: plan picker */
.plan-picker .card.plan { cursor: pointer; display: block; margin: 0; transition: box-shadow var(--t-ui) var(--ease-ui), transform var(--t-ui) var(--ease-ui); }
.plan-picker .card.plan:hover { transform: translateY(-2px); }
.plan-picker .card.plan:has(input:checked) { box-shadow: 0 0 0 2px var(--accent), var(--shadow); }
.plan-picker .card.plan input { position: absolute; top: 24px; right: 24px; }
.plan-picker .card.plan ul { list-style: none; padding: 0; margin: 12px 0 16px; display: grid; gap: 6px; color: var(--text-2); }
.plan-picker .card.plan ul strong { color: var(--text); }
.plan-picker .price { font-size: 15px; color: var(--text-2); margin: 0 0 6px; }
.plan-picker .price strong { font-size: 24px; letter-spacing: -0.03em; color: var(--text); }
.grid.plans { margin-top: 8px; }

/* Social */
.panel.card { margin-bottom: 24px; }
.list { list-style: none; margin: 0; padding: 0; }
.list > li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.list > li:last-child { border-bottom: 0; }
.list > li > strong:first-child, .list > li > a:first-child { margin-right: auto; }
.list > li form { margin: 0; }
.list .excerpt { flex-basis: 100%; margin: 0; font-size: 14px; }
.list > li[aria-current] { background: color-mix(in srgb, var(--accent) 8%, transparent); border-radius: 12px; padding-inline: 12px; margin-inline: -12px; }
.presence { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); }
.presence::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); }
.presence.online::before { background: var(--ok); }
.presence.in_game::before { background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.messages-layout { grid-template-columns: minmax(260px, 340px) 1fr; align-items: start; }
@media (max-width: 860px) { .messages-layout { grid-template-columns: 1fr; } }
.thread > li { display: block; border: 0; padding: 6px 0; }
.thread > li > p { display: inline-block; max-width: 80%; margin: 4px 0 0; padding: 10px 16px; border-radius: 20px 20px 20px 6px;
  background: var(--surface-2); }
.thread > li.mine { text-align: right; }
.thread > li.mine > p { background: var(--accent); color: #fff; border-radius: 20px 20px 6px 20px; text-align: left; }
.thread > li > strong { font-size: 13px; margin-right: 8px; }
.thread time { font-size: 12px; }
details > summary { cursor: pointer; color: var(--accent-text); font-size: 15px; margin: 12px 0; list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: "+ "; }
details[open] > summary::before { content: "– "; }
details.report > summary { font-size: 12px; color: var(--text-3); margin: 4px 0; }
#invite-code { font-size: 22px; padding: 8px 14px; letter-spacing: 0.08em; }

/* Download page */
.download { display: flex; flex-direction: column; gap: 4px; }
.download .platform-icon { width: 64px; height: 64px; display: grid; place-items: center; margin-bottom: 20px; border-radius: 18px;
  font-weight: 700; font-size: 18px; letter-spacing: 0.04em; color: #fff;
  background: linear-gradient(145deg, #3a414b, #11141a); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 10px 24px rgba(0,0,0,.18); }
.download h3 { font-size: 28px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.download .btn { align-self: flex-start; margin: 16px 0 8px; }
.download .sha { font-family: var(--mono); font-size: 11px; word-break: break-all; margin: 8px 0 0; }
.download .recommended-label { display: none; }
.download.recommended { box-shadow: 0 0 0 2px var(--accent), var(--shadow); }
.download.recommended .recommended-label { display: inline-flex; }
.download-hero { text-align: center; margin: 0 auto clamp(40px, 6vw, 72px); max-width: 820px; }
.download-hero h1 { font-size: clamp(48px, 8vw, 96px); letter-spacing: -0.045em; }
.download-hero .lead { margin-inline: auto; max-width: 30em; }
.download-cube { width: 120px; height: 120px; margin: 0 auto 32px; perspective: 600px; }
.download-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 0;
  margin-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); }
.download-specs div { padding: 24px 20px 0 0; }
.download-specs strong { display: block; font-size: 21px; letter-spacing: -0.02em; margin-bottom: 4px; }
.download-specs span { color: var(--text-2); font-size: 15px; }

/* Account */
.account-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 24px; margin-bottom: 24px; }
.account-grid > .card { margin: 0; }
.avatar { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 20px;
  font-size: 30px; font-weight: 600; color: #fff; background: linear-gradient(140deg, #6c8cff, #9a62e8 55%, #e08a5a); }
.card .actions { margin-top: 20px; }

/* Licences page */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.6em; font-size: 28px; }
.prose ul { padding-left: 20px; color: var(--text-2); }
.prose li { margin-bottom: 8px; }

/* ─── Footer ─────────────────────────────────────────────────────────────────────────────── */
.site-foot { background: var(--bg-2); color: var(--text-2); font-size: 12px; line-height: 1.5; padding: 40px 0 24px; }
.home .site-foot { box-shadow: inset 0 1px 0 var(--line); }
.foot-top { display: grid; grid-template-columns: 1.2fr 3fr; gap: 32px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.foot-brand .brand-word { font-size: 17px; color: var(--text); }
.foot-brand p { margin: 8px 0 0; max-width: 24em; }
.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.foot-cols h2 { font-size: 12px; font-weight: 600; letter-spacing: -0.005em; color: var(--text); margin: 0 0 10px; }
.foot-cols a { display: block; color: var(--text-2); margin-bottom: 8px; }
.foot-cols a:hover { color: var(--text); text-decoration: underline; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-top: 18px; }
.foot-bottom p { margin: 0; }
.lang { display: flex; gap: 4px; margin: 0; }
.lang button { font: 500 12px var(--font); color: var(--text-2); background: none; border: 0; padding: 4px 8px; border-radius: 980px; cursor: pointer; }
.lang button:hover { color: var(--text); }
.lang button[disabled] { color: var(--text); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); cursor: default; }
@media (max-width: 860px) {
  .foot-top { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: repeat(2, 1fr); }
}

/* ─── Reveals ────────────────────────────────────────────────────────────────────────────── */
/* Scroll-driven where the browser has view timelines; IntersectionObserver otherwise (site.js). */
.fx-motion .reveal { opacity: 0; transform: translate3d(0, 32px, 0); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.fx-motion .reveal.is-in { opacity: 1; transform: none; }
@supports (animation-timeline: view()) {
  .fx-motion .reveal { transition: none; animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
  .fx-motion .bento .reveal { animation-name: rise-scale; }
}
@keyframes rise { from { opacity: 0; transform: translate3d(0, 40px, 0); } to { opacity: 1; transform: none; } }
@keyframes rise-scale { from { opacity: 0; transform: translate3d(0, 48px, 0) scale(0.94); } to { opacity: 1; transform: none; } }

/* ─── Home: chapters ─────────────────────────────────────────────────────────────────────── */
.home-main { background: #000; }
.chapter { padding: clamp(100px, 14vw, 180px) 0; position: relative; }
.tone-black { background: #000; }
.tone-ink { background: #0a0a0c; }
.tone-paper { background: var(--bg-2); }
.tone-paper2 { background: var(--bg); }
.chapter-head { margin-bottom: clamp(48px, 7vw, 88px); max-width: 860px; }
.chapter-head.center { margin-inline: auto; }
.chapter .display { margin-bottom: 0.32em; }

/* Figures, under the statement */
.figures { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(56px, 8vw, 96px);
  border-top: 1px solid var(--line); text-align: center; }
.figure { padding: 32px 16px 0; display: grid; gap: 6px; }
.figure + .figure { box-shadow: inset 1px 0 0 var(--line); }
.figure-top { font-size: 13px; color: var(--text-3); font-weight: 500; }
.figure strong { font-size: clamp(32px, 4vw, 48px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; color: var(--text); }
.figure > span:last-child { font-size: 14px; color: var(--text-2); }
@media (max-width: 640px) {
  .figures { grid-template-columns: 1fr; text-align: left; }
  .figure { padding: 24px 0; }
  .figure + .figure { box-shadow: inset 0 1px 0 var(--line); }
}

/* ─── Home: hero ─────────────────────────────────────────────────────────────────────────── */
.hero { position: relative; background: #000; --p: 0; }
.hero-stage { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; isolation: isolate; }
.fx-motion .hero { height: 560vh; }
.fx-motion .hero-stage { position: sticky; top: 0; }
.hero-poster, .hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-poster { object-fit: cover; opacity: 0.55; transform: scale(calc(1.08 + var(--p) * 0.25)); transform-origin: 50% 60%; }
.hero-canvas { opacity: 0; transition: opacity 1.6s var(--ease); }
.hero.is-live .hero-canvas { opacity: 1; }
.hero.is-live .hero-poster { opacity: 0; transition: opacity 1.6s var(--ease); }
.hero-shade { position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background:
    radial-gradient(120% 70% at 50% 40%, transparent 45%, rgba(0, 0, 0, 0.4) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, calc(0.45 - var(--p) * 2)) 0%, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.55) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, calc(min(var(--p) * 4, 1) * 0.45)) 0%, transparent 55%),
    rgba(0, 0, 0, calc(0.22 - var(--p) * 2)); }
.hero-mark { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; pointer-events: none;
  padding-bottom: 12vh;
  opacity: calc(1 - var(--p) * 7);
  transform: translate3d(0, calc(var(--p) * -60vh), 0) scale(calc(1 + var(--p) * 2.2)); }
.hero-mark .metal { font-size: clamp(96px, 23vw, 360px); font-weight: 700; letter-spacing: -0.055em; line-height: 0.82;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.7)) drop-shadow(0 2px 0 rgba(255, 255, 255, 0.08)); padding: 0 0.04em 0.08em; }
.hero-messages { position: absolute; z-index: 5; top: calc(var(--gnav-h) + 16px); left: 50%; transform: translateX(-50%); width: min(560px, 100% - 32px); }
.hero-lockup { position: absolute; z-index: 3; left: 0; right: 0; bottom: clamp(32px, 7vh, 72px);
  width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.hero-title h1 { font-size: clamp(21px, 2.3vw, 32px); font-weight: 600; letter-spacing: -0.02em; margin: 0 0 4px; }
.hero-claim { font-size: clamp(44px, 6.4vw, 84px); font-weight: 600; letter-spacing: -0.045em; line-height: 1.02; margin: 0; }
.buy-pill { display: flex; align-items: center; gap: 16px; padding: 8px 8px 8px 22px; border-radius: 980px; font-size: 13px; color: var(--text-2);
  background: rgba(28, 28, 30, 0.72); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1); white-space: nowrap; }
.hero-beat { position: absolute; z-index: 3; left: 0; right: 0; top: 50%; transform: translateY(-50%);
  width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.hero-beat > * { max-width: 620px; }
.hero-beat h2 { font-size: clamp(36px, 5.4vw, 68px); letter-spacing: -0.042em; line-height: 1.04; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.45); }
.hero-beat .copy { color: rgba(245, 245, 247, 0.72); text-shadow: 0 1px 20px rgba(0, 0, 0, 0.6); }
.hero-beat .copy strong { color: #fff; }
.hero-beat .eyebrow { color: rgba(245, 245, 247, 0.7); }
.hero-beat h2.metal { text-shadow: none; filter: drop-shadow(0 4px 30px rgba(0, 0, 0, 0.5)); }
.fx-motion [data-beat] { opacity: 0; will-change: opacity, transform; }
.fx-motion .hero-lockup { opacity: 1; }
.scroll-hint { position: absolute; z-index: 3; left: 50%; bottom: 14px; width: 22px; height: 34px; margin-left: -11px; border-radius: 12px;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.4); opacity: calc(1 - var(--p) * 20); }
.scroll-hint span { position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: #fff;
  animation: hint 1.8s var(--ease) infinite; }
@keyframes hint { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(12px); opacity: 0; } }
html:not(.fx-motion) .scroll-hint, html:not(.fx-motion) .hero-beat { display: none; }
@media (max-width: 760px) {
  .hero-lockup { flex-direction: column; align-items: flex-start; }
  .buy-pill { width: 100%; justify-content: space-between; white-space: normal; }
  .hero-mark { padding-bottom: 22vh; }
  .hero-beat { top: auto; bottom: 12vh; transform: none; }
  .scroll-hint { display: none; }
}

/* ─── Home: pinned chapters ──────────────────────────────────────────────────────────────── */
.pin { position: relative; background: #000; --p: 0; }
.pin-stage { position: relative; height: 100vh; height: 100svh; min-height: 600px; overflow: hidden; isolation: isolate; }
.fx-motion .pin { height: 320vh; }
.fx-motion .create, .fx-motion .voice, .fx-motion .multiverse { height: 440vh; }
.fx-motion .pin-stage { position: sticky; top: 0; }
.pin-copy { position: absolute; z-index: 3; inset: 0; width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; pointer-events: none; }
.pin-copy .beat { position: absolute; left: 0; top: 50%; transform: translateY(-50%); max-width: 520px; pointer-events: auto; }
.pin-copy h2 { font-size: clamp(36px, 5vw, 64px); letter-spacing: -0.042em; line-height: 1.04; }
.pin-copy-center .beat { left: 0; right: 0; margin-inline: auto; text-align: center; top: auto; bottom: clamp(48px, 9vh, 96px); transform: none; max-width: 760px; }
.pin-copy-center .copy { margin-inline: auto; }
html:not(.fx-motion) .pin-copy { position: relative; inset: auto; padding: 96px 0; display: grid; gap: 48px; }
html:not(.fx-motion) .pin-copy .beat { position: static; transform: none; }
html:not(.fx-motion) .pin-stage { height: auto; min-height: 0; }

/* Build: the tower */
.build .pin-stage { background: radial-gradient(90% 70% at 70% 55%, #17142a 0%, #07070b 60%, #000 100%); }
.build .pin-stage > canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s var(--ease); }
.build.is-live .pin-stage > canvas { opacity: 1; }
.build .pin-stage::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.2) 45%, transparent 70%); }
.tile-row { position: absolute; z-index: 1; right: var(--gutter); top: 50%; transform: translateY(-50%); list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, clamp(48px, 6vw, 84px)); gap: 10px; }
.tile-row .tile { aspect-ratio: 1; border-radius: 10px; background-image: var(--atlas);
  background-size: calc(var(--cols) * 100%) calc(var(--rows) * 100%);
  background-position: calc(var(--x) * 100% / (var(--cols) - 1)) calc(var(--y) * 100% / (var(--rows) - 1));
  image-rendering: pixelated; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
.build.is-live .tile-row { display: none; }
html:not(.fx-3d) .build .pin-stage > canvas { display: none; }
/* Reduced motion: the finished building, still, above the copy (assemble.js adds is-still). */
html:not(.fx-3d) .build.is-still .pin-stage > canvas { display: block; position: relative; inset: auto; height: min(72vh, 680px); opacity: 1; }
html:not(.fx-motion) .build.is-still .tile-row { display: none; }
html:not(.fx-motion) .build .tile-row { position: relative; right: auto; top: auto; transform: none; width: min(var(--wrap), 100% - 2 * var(--gutter)); margin: 0 auto 96px; }
@media (max-width: 760px) {
  .build .pin-stage::after { background: linear-gradient(0deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 45%, transparent 70%); }
  .pin-copy .beat { top: auto; bottom: 7vh; transform: none; }
  .fx-motion .tile-row { top: 30%; left: 50%; right: auto; transform: translate(-50%, -50%); }
}

/* Create: the Studio, code then blocks, as the page scrolls */
.create .pin-stage { background: radial-gradient(80% 70% at 75% 50%, #10182c 0%, #06070b 60%, #000 100%); }
.create {
  --code: clamp(0, calc((0.8 - var(--p)) * 14), 1);
  --blocks: clamp(0, calc((var(--p) - 0.76) * 12), 1);
  --lint: clamp(0, min(calc((var(--p) - 0.3) * 20), calc((0.47 - var(--p)) * 20)), 1);
  --fixed: clamp(0, calc((var(--p) - 0.44) * 30), 1);
  --toast: clamp(0, min(calc((var(--p) - 0.55) * 20), calc((0.75 - var(--p)) * 20)), 1);
}
.studio { position: absolute; z-index: 2; right: var(--gutter); top: 50%; width: min(600px, 50vw);
  transform: translateY(-50%) perspective(1600px) rotateY(calc(-8deg + var(--p) * 8deg)) rotateX(calc(4deg - var(--p) * 4deg));
  border-radius: 20px; overflow: hidden; background: linear-gradient(180deg, #17181d, #0e0f13);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 40px 100px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.studio::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.06) 45%, transparent 60%);
  background-size: 300% 100%; background-position: calc((1 - var(--p)) * 100%) 0; }
.studio-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08); font-size: 13px; color: #d9dbe0; }
.studio-title { margin-right: auto; }
.studio-title em { font-style: normal; color: #8a8e98; }
.studio-dots { display: inline-flex; gap: 6px; } .studio-dots i { width: 10px; height: 10px; border-radius: 50%; background: #3a3d45; }
.studio-body { position: relative; }
.studio-toggle { position: relative; display: inline-flex; padding: 3px; border-radius: 980px; background: rgba(255, 255, 255, 0.07); }
.studio-toggle b { position: relative; z-index: 1; font-weight: 500; font-size: 12px; padding: 4px 12px; color: #c9ccd3; }
.studio-toggle i { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 980px;
  background: #2a74f0; transform: translateX(calc(var(--blocks) * 100%)); }
.studio-code { margin: 0; padding: 20px 22px 24px; font: 400 13px/1.75 var(--mono); color: #d8dbe2; white-space: pre; overflow: hidden;
  opacity: var(--code); min-height: 500px; }
.studio-code code { background: none; padding: 0; font-size: inherit; }
.studio-code .ln { display: inline-block; opacity: clamp(0, calc(var(--p) * 100 - 1 - var(--l)), 1);
  transform: translateX(calc((1 - clamp(0, calc(var(--p) * 100 - 1 - var(--l)), 1)) * 12px)); }
.studio-code .k { color: #c792ff; } .studio-code .f { color: #6cc7ff; } .studio-code .n { color: #ffb86b; }
.studio-code .s { color: #a5e07a; } .studio-code .c { color: #6c7280; font-style: italic; }
.ln-fix .f { display: inline-grid; } .ln-fix .f > span { grid-area: 1 / 1; }
.ln-fix .typo { opacity: calc(1 - var(--fixed)); text-decoration: underline wavy #ff5a64; text-decoration-thickness: 1.5px; text-underline-offset: 4px;
  text-decoration-color: rgba(255, 90, 100, calc(var(--lint) + 0.0001)); }
.ln-fix .fixed { opacity: var(--fixed); }
.studio-lint { position: absolute; left: 96px; top: 278px; z-index: 2; width: 300px; padding: 12px 14px; border-radius: 12px; font-size: 13px; color: #e6e8ee;
  background: #23252c; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 16px 40px rgba(0, 0, 0, 0.5); opacity: var(--lint);
  transform: translateY(calc((1 - var(--lint)) * 8px)); }
.studio-lint p { margin: 0 0 4px; } .studio-lint b { color: #ff8a92; font-family: var(--mono); font-weight: 400; }
.studio-lint .muted-s { color: #9aa0ab; } .studio-lint code { background: rgba(255, 255, 255, 0.08); color: #6cc7ff; }
.lint-fix { display: inline-block; margin-top: 6px; padding: 3px 12px; border-radius: 980px; background: #2a74f0; color: #fff; font-size: 12px; font-weight: 500;
  box-shadow: 0 0 0 calc(var(--fixed) * 6px) rgba(42, 116, 240, calc(0.4 - var(--fixed) * 0.4)); }
.studio-toast { position: absolute; right: 18px; bottom: 18px; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 980px;
  font-size: 13px; font-weight: 500; color: #eafff2; background: rgba(31, 143, 78, 0.9); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  opacity: var(--toast); transform: translateY(calc((1 - var(--toast)) * 12px)); }
.studio-toast i { width: 8px; height: 8px; border-radius: 50%; background: #7dffb0; box-shadow: 0 0 10px #7dffb0; }
.studio-blocks { position: absolute; left: 0; right: 0; top: 0; bottom: 0; padding: 24px 22px; display: grid; align-content: start; gap: 12px;
  opacity: var(--blocks); transform: translateY(calc((1 - var(--blocks)) * 24px)); }
.blk { font-size: 14px; font-weight: 500; color: #fff; padding: 10px 14px; border-radius: 10px 10px 10px 4px; justify-self: start;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.25), 0 6px 14px rgba(0, 0, 0, 0.35); }
.blk .blk { margin-top: 8px; margin-left: 14px; }
.blk-event { background: #c9822c; } .blk-act { background: #7a5ad8; } .blk-if { background: #2c7fd6; }
.blk-stop { background: #d0475a; } .blk-cmd { background: #2f9c6a; } .blk-loop { background: #b8569b; }
.slot { display: inline-block; margin-left: 6px; padding: 1px 9px; border-radius: 980px; background: rgba(255, 255, 255, 0.92); color: #1d1d1f; font-weight: 500; font-size: 13px; }
html:not(.fx-motion) .create { --code: 1; --blocks: 0; --lint: 0; --fixed: 1; --toast: 0; }
html:not(.fx-motion) .create .studio-code .ln { opacity: 1; transform: none; }
html:not(.fx-motion) .studio { position: relative; right: auto; top: auto; transform: none; margin: 96px auto 0; width: min(600px, 100% - 2 * var(--gutter)); }
@media (max-width: 860px) {
  .studio { left: var(--gutter); right: var(--gutter); width: auto; top: 13vh; transform: none; }
  .studio-code { font-size: 10.5px; min-height: 380px; padding: 14px; }
  .studio-lint { left: 40px; top: 190px; width: 250px; }
  .create .pin-copy .beat { top: auto; bottom: 6vh; transform: none; }
  .create .pin-stage::after { content: ""; position: absolute; inset: 40% 0 0; z-index: 2; background: linear-gradient(transparent, #000 45%); pointer-events: none; }
}
.create-more { padding-top: clamp(64px, 8vw, 120px); }
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.facts li { padding: 32px 24px 0 0; }
.facts li + li { padding-left: 24px; box-shadow: inset 1px 0 0 var(--line); }
.facts h3 { font-size: 21px; margin-bottom: 8px; }
.facts p { color: var(--text-2); font-size: 15px; line-height: 1.5; margin: 0; }
@media (max-width: 860px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .facts li:nth-child(3) { padding-left: 0; box-shadow: none; }
}
@media (max-width: 560px) {
  .facts { grid-template-columns: 1fr; }
  .facts li, .facts li + li { padding: 24px 0; box-shadow: inset 0 -1px 0 var(--line); }
}
.create-more .actions { margin-top: 56px; }
.official-families { grid-template-columns: repeat(3, 1fr); margin-top: 48px; }
.official .actions { margin-top: 48px; }
@media (max-width: 860px) { .official-families { grid-template-columns: 1fr; } .official-families li, .official-families li + li { padding: 24px 0; box-shadow: inset 0 -1px 0 var(--line); } }

/* Parallax: depth layers of the title panorama, our blocks floating in front */
.parallax { position: relative; height: 120vh; min-height: 680px; overflow: hidden; isolation: isolate; background: #0b0e2a;
  display: grid; align-items: end; view-timeline: --px block; }
.px-layer { position: absolute; left: -12%; right: -12%; background-repeat: repeat-x; background-size: auto 100%;
  image-rendering: pixelated; will-change: transform; }
.px-sky { top: -14%; height: 64%; background-position: center bottom; background-color: #0b0e2a; }
.px-ridge { top: 26%; height: 31%; background-position: center top; }
.px-lake { top: 52%; bottom: -14%; background-size: auto 92%; background-position: center top; background-color: #05060f; }
.parallax::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(180deg, #000 0%, transparent 22%, transparent 55%, rgba(0, 0, 0, 0.9) 88%, #000 100%); }
.px-copy { position: relative; z-index: 4; text-align: center; padding-bottom: clamp(72px, 12vh, 140px); }
.px-copy h2 { max-width: 920px; margin-inline: auto; font-size: clamp(36px, 5.4vw, 72px); letter-spacing: -0.042em; line-height: 1.04; }
.px-cubes { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.px-cube-wrap { right: auto; }
.px-cube-wrap::before { content: ""; position: absolute; left: 50%; top: 50%; width: 170%; aspect-ratio: 1;
  translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle, rgba(0, 0, 0, 0.35), transparent 65%); }
.px-cube-wrap:has(.is-glow)::before { width: 280%; background: radial-gradient(circle, rgba(160, 130, 255, 0.5), transparent 62%); }
@supports (animation-timeline: view()) {
  .fx-motion .parallax .px-layer { animation: px-move linear both; animation-timeline: --px; animation-range: cover 0% cover 100%; }
}
@keyframes px-move {
  from { transform: translate3d(calc(var(--depth) * 60px), calc(var(--depth) * 140px), 0); }
  to { transform: translate3d(calc(var(--depth) * -60px), calc(var(--depth) * -140px), 0); }
}
@media (max-width: 760px) { .px-cube-wrap { scale: 0.7; } }

/* Voxel cubes in CSS 3D, textured from the atlas (.cube in the parallax, .vox in the tiles). */
.cube, .vox { position: relative; width: var(--s); height: var(--s); transform-style: preserve-3d;
  transform: rotateX(-28deg) rotateY(-42deg); }
.cube { animation: bob 7s ease-in-out infinite; animation-delay: calc(var(--d) * -1.4s); }
.cube i, .vox i { position: absolute; inset: 0; background-image: var(--atlas);
  background-size: calc(var(--cols) * 100%) calc(var(--rows) * 100%);
  background-position: calc(var(--x) * 100% / (var(--cols) - 1)) calc(var(--y) * 100% / (var(--rows) - 1));
  image-rendering: pixelated; backface-visibility: hidden; }
.cube .t, .vox .t { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); }
.cube .f, .vox .f { transform: translateZ(calc(var(--s) / 2)); filter: brightness(0.8); }
.cube .r, .vox .r { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); filter: brightness(0.62); }
.cube.is-glow i, .vox.is-glow i { filter: brightness(1.15) saturate(1.1); }
.vox.is-glow .r { filter: brightness(0.9); }
@keyframes bob {
  0%, 100% { transform: translateY(0) rotateX(-28deg) rotateY(-42deg); }
  50% { transform: translateY(-16px) rotateX(-24deg) rotateY(-30deg); }
}

/* ─── Home: bento ────────────────────────────────────────────────────────────────────────── */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(400px, auto); gap: 20px; }
.bt { grid-column: span 2; position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--surface);
  box-shadow: var(--shadow); padding: clamp(28px, 3vw, 40px); display: flex; flex-direction: column; isolation: isolate; }
.bt-wide { grid-column: span 4; }
.bt-tall { grid-row: span 2; }
.bt-dark { background: #0b0b0d; box-shadow: none; }
.bt-text { position: relative; z-index: 2; max-width: 30em; }
.bt-text .eyebrow { font-size: 14px; margin-bottom: 8px; }
.bt-text h3 { font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -0.035em; line-height: 1.1; margin-bottom: 12px; }
.bt-text p:last-child { color: var(--text-2); font-size: 15px; line-height: 1.5; margin: 0; }
.bt-mech .bt-text { max-width: 30em; }
.bento [aria-hidden="true"] { pointer-events: none; }
@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bt, .bt-wide { grid-column: span 1; }
  .bt-wide { grid-column: span 2; }
  .bt-tall { grid-row: span 1; min-height: 520px; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .bt, .bt-wide { grid-column: auto; min-height: 440px; }
}

/* Animations of the tiles run only while the tile is on screen (.is-in), never with reduced motion. */
.bento .bt *, .bento .bt *::before, .bento .bt *::after { animation-play-state: paused; }
.bento .bt.is-in *, .bento .bt.is-in *::before, .bento .bt.is-in *::after { animation-play-state: running; }

/* Mechanics: metal blocks turning along a shaft, like gearboxes, each against its neighbour */
.mech { position: relative; margin-top: auto; height: 240px; display: grid; grid-template-columns: repeat(6, 1fr);
  align-items: center; justify-items: center; perspective: 1200px; }
.mech-shaft { position: absolute; left: 4%; right: 4%; top: 50%; height: 14px; margin-top: -7px; border-radius: 7px;
  background: linear-gradient(180deg, #2a2e35, #c9ced6 40%, #6b717b 70%, #1e2126);
  background-size: 100% 100%; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6); }
.mech-slot { position: relative; transform-style: preserve-3d; translate: 0 calc(sin(var(--i) * 1.1) * 18px); }
.vox .k { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); filter: brightness(0.7); }
.vox .l { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); filter: brightness(0.9); }
.vox.gear { animation: gear 6s linear infinite; }
.vox.gear.rev { animation-direction: reverse; }
@keyframes gear { from { transform: rotateX(-24deg) rotateY(0deg); } to { transform: rotateX(-24deg) rotateY(360deg); } }
@media (max-width: 640px) { .mech { grid-template-columns: repeat(3, 1fr); height: 300px; } .mech-shaft { display: none; } }

/* Magic: a celestial crystal floating in its halo */
.tile-magic, .bt-magic { background: radial-gradient(120% 80% at 50% 100%, #2a1650 0%, #120a24 45%, #07060d 100%); box-shadow: none;
  --text: #f5f5f7; --text-2: #b5a9cc; --text-3: #a08fc2; color: var(--text); }
.crystal { position: relative; flex: 1; min-height: 300px; display: grid; place-items: center; perspective: 900px; }
.crystal-halo { position: absolute; width: 300px; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(170, 140, 255, 0.65), rgba(120, 90, 230, 0.18) 55%, transparent); animation: pulse 4.5s ease-in-out infinite; }
.crystal-cube { animation: float-spin 9s ease-in-out infinite; }
.crystal-moon { position: absolute; animation: orbit 11s linear infinite; }
.crystal-moon-2 { animation-duration: 15s; animation-direction: reverse; }
.spark { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #f1e6ff; box-shadow: 0 0 12px 3px rgba(190, 160, 255, 0.8);
  animation: spark 5s ease-in infinite; opacity: 0; }
.spark.s1 { left: 30%; bottom: 20%; animation-delay: 0s; } .spark.s2 { left: 62%; bottom: 26%; animation-delay: 1.1s; }
.spark.s3 { left: 46%; bottom: 14%; animation-delay: 2.3s; } .spark.s4 { left: 72%; bottom: 40%; animation-delay: 3.2s; }
.spark.s5 { left: 22%; bottom: 44%; animation-delay: 4s; }
@keyframes pulse { 0%, 100% { transform: scale(0.9); opacity: 0.75; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes float-spin { 0% { transform: translateY(0) rotateX(-24deg) rotateY(0deg); } 50% { transform: translateY(-14px) rotateX(-30deg) rotateY(180deg); } 100% { transform: translateY(0) rotateX(-24deg) rotateY(360deg); } }
@keyframes orbit { from { transform: rotate(0deg) translateX(130px) rotate(0deg) rotateX(-28deg) rotateY(-42deg); } to { transform: rotate(360deg) translateX(130px) rotate(-360deg) rotateX(-28deg) rotateY(-42deg); } }
@keyframes spark { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(-160px); opacity: 0; } }

/* Servers on demand: asleep, waking, online */
.wake { flex: 1; display: grid; place-items: center; gap: 22px; min-height: 220px; margin-top: 12px; }
.wake-orb { width: 110px; height: 110px; border-radius: 50%; animation: wake-orb 7.5s var(--ease) infinite;
  background: radial-gradient(circle at 35% 30%, #c8d4ff, #5b6cff 45%, #1b1f4a 80%); }
.wake-states { list-style: none; margin: 0; padding: 0; position: relative; height: 34px; width: 160px; }
.wake-states li { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 980px; font-size: 13px; font-weight: 500;
  background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); opacity: 0; animation: wake-state 7.5s infinite; }
.wake-states .w2 { animation-delay: 2.5s; } .wake-states .w3 { animation-delay: 5s; color: #6ff0a6; }
@keyframes wake-state { 0%, 30% { opacity: 1; transform: none; } 34%, 100% { opacity: 0; transform: translateY(-6px); } }
@keyframes wake-orb {
  0%, 30% { filter: grayscale(1) brightness(0.45); transform: scale(0.92); box-shadow: 0 0 0 rgba(0, 0, 0, 0); }
  34%, 63% { filter: grayscale(0.3) brightness(0.9); transform: scale(1); }
  67%, 100% { filter: none; transform: scale(1.04); box-shadow: 0 0 60px 10px rgba(110, 140, 255, 0.45); }
}

/* ─── Home: six facts under the Studio ─────────────────────────────────────────────────────── */
.facts-6 { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
.facts-6 li:nth-child(4) { padding-left: 0; box-shadow: none; }
@media (max-width: 860px) { .facts-6 { grid-template-columns: 1fr 1fr; } .facts-6 li:nth-child(odd) { padding-left: 0; box-shadow: none; } .facts-6 li:nth-child(even) { padding-left: 24px; box-shadow: inset 1px 0 0 var(--line); } }

/* ─── Home: multiverse ──────────────────────────────────────────────────────────────────────── */
.multiverse .pin-stage { background: radial-gradient(90% 80% at 35% 50%, #0d1430 0%, #05060d 60%, #000 100%); }
.multiverse .pin-stage > canvas, .voice .pin-stage > canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s var(--ease); }
.multiverse.is-live .pin-stage > canvas, .voice.is-live .pin-stage > canvas { opacity: 1; }
.pin-copy-right .beat { left: auto; right: 0; }
.mv-labels { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.mv-label { position: absolute; left: 0; top: 0; display: grid; gap: 2px; padding: 6px 12px 7px; border-radius: 12px; font-size: 13px; font-weight: 600;
  color: #f5f5f7; background: rgba(12, 14, 22, 0.66); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent); white-space: nowrap; opacity: 0; will-change: transform;
  transition: opacity 0.4s var(--ease-ui); }
.mv-label::before { content: ""; position: absolute; left: -14px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--c); box-shadow: 0 0 12px var(--c); }
.mv-label small { font-size: 11px; font-weight: 400; color: #a1a1a6; }
.multiverse.is-live .mv-label.is-on { opacity: 1; }
.mv-bag { position: absolute; z-index: 3; left: var(--gutter); bottom: clamp(28px, 6vh, 56px); padding: 12px 14px; border-radius: 16px;
  background: rgba(14, 15, 20, 0.72); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
  opacity: clamp(0, calc((var(--p) - 0.66) * 12), 1); --swap: clamp(0, calc((var(--p) - 0.82) * 14), 1); }
.mv-bag-title { position: relative; margin: 0 0 8px; font-size: 12px; font-weight: 600; color: #d9dbe0; height: 16px; }
.mv-bag-title span { position: absolute; left: 0; top: 0; white-space: nowrap; }
.mv-bag-world { opacity: calc(1 - var(--swap)); } .mv-bag-alt { opacity: var(--swap); color: #6cc7ff; }
.mv-slots { display: grid; grid-template-columns: repeat(9, 30px); gap: 4px; }
.mv-slots i { height: 30px; border-radius: 6px; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); position: relative; overflow: hidden; }
.mv-slots i::after { content: ""; position: absolute; inset: 5px; border-radius: 3px; background-image: var(--atlas-img); opacity: calc(1 - var(--swap)); }
.mv-slots .slot-1::after { background: linear-gradient(135deg, #c9ced6, #6b717b); } .mv-slots .slot-2::after { background: linear-gradient(135deg, #f6c4a2, #8a4425); }
.mv-slots .slot-3::after { background: linear-gradient(135deg, #e4cbff, #5f3a9e); } .mv-slots .slot-4::after { background: linear-gradient(135deg, #a5e07a, #2f6b2a); }
.mv-slots .slot-6::after { background: linear-gradient(135deg, #ffd27a, #a66a10); } .mv-slots .slot-8::after { background: linear-gradient(135deg, #9fd0ff, #2a5fb0); }
.mv-slots .slot-5::after, .mv-slots .slot-7::after, .mv-slots .slot-9::after { display: none; }
html:not(.fx-3d) .multiverse .pin-stage > canvas, .multiverse.is-failed .pin-stage > canvas { display: none; }
html:not(.fx-3d) .multiverse .pin-stage, .multiverse.is-failed .pin-stage {
  background: radial-gradient(28% 34% at 22% 30%, rgba(127, 208, 106, 0.28), transparent 70%), radial-gradient(26% 30% at 72% 26%, rgba(255, 122, 61, 0.26), transparent 70%),
    radial-gradient(30% 34% at 64% 76%, rgba(178, 140, 255, 0.28), transparent 70%), radial-gradient(90% 80% at 35% 50%, #0d1430 0%, #05060d 60%, #000 100%); }
html:not(.fx-motion) .mv-bag { position: relative; left: auto; bottom: auto; margin: 0 auto 64px; width: max-content; max-width: calc(100% - 2 * var(--gutter)); opacity: 1; }
@media (max-width: 760px) { .mv-slots { grid-template-columns: repeat(9, 26px); } .mv-slots i { height: 26px; } .mv-bag { bottom: auto; top: 70px; left: 50%; transform: translateX(-50%); } }

/* ─── Home: proximity voice ─────────────────────────────────────────────────────────────────── */
.voice .pin-stage { background: radial-gradient(80% 70% at 62% 50%, #0b1a24 0%, #04080c 60%, #000 100%); }
.vx-hud { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.voice .pin-stage::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.5) 30%, transparent 55%), linear-gradient(0deg, rgba(0, 0, 0, 0.6), transparent 22%); }
.multiverse .pin-stage::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(270deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 32%, transparent 55%); }
.vx-modes { position: absolute; left: 50%; top: calc(var(--gnav-h) + 34px); transform: translateX(-50%); display: flex; gap: 4px; padding: 4px; border-radius: 980px;
  background: rgba(14, 15, 20, 0.72); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1); }
.vx-modes b { font-size: 13px; font-weight: 500; padding: 6px 14px; border-radius: 980px; color: #a1a1a6; transition: background-color 0.3s var(--ease-ui), color 0.3s var(--ease-ui); white-space: nowrap; }
.vx-modes b small { font-size: 11px; color: inherit; opacity: 0.7; margin-left: 2px; }
.vx-modes b.is-on { background: #f5f5f7; color: #000; }
.vx-chips { position: absolute; inset: 0; }
.vx-chip { position: absolute; left: 0; top: 0; min-width: 132px; padding: 8px 10px 9px; border-radius: 12px; font-size: 12px; color: #f5f5f7;
  background: rgba(10, 12, 18, 0.74); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
  will-change: transform; transition: opacity 0.3s var(--ease-ui); }
.vx-chip header { display: flex; justify-content: space-between; gap: 10px; font-weight: 600; margin-bottom: 6px; }
.vx-chip header span { font-weight: 400; color: #a1a1a6; }
.vx-meter { position: relative; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.vx-meter i { position: absolute; inset: 0 auto 0 0; width: calc(var(--v, 0) * 100%); border-radius: 3px; background: linear-gradient(90deg, #2fd27a, #b8f06a 70%, #ffd25a); }
.vx-chip footer { margin-top: 5px; color: #a1a1a6; font-size: 11px; white-space: nowrap; }
.vx-chip.is-muffled footer { color: #ffb86b; } .vx-chip.is-out { opacity: 0.45; } .vx-chip.is-out .vx-meter i { width: 0; }
.vx-chip.is-radio { box-shadow: 0 0 0 1px rgba(255, 184, 107, 0.6); }
.vx-chip.is-radio .vx-meter { display: none; }
.vx-chip.is-drag { pointer-events: auto; cursor: grab; box-shadow: 0 0 0 1px rgba(90, 162, 255, 0.7); }
.vx-crypto { position: absolute; z-index: 3; left: 0; right: 0; bottom: 16px; margin: 0 auto; width: min(var(--wrap), 100% - 2 * var(--gutter)); text-align: center;
  font-size: 12px; color: #a1a1a6; letter-spacing: 0; }
.vx-static { display: none; margin: 0 auto; width: min(760px, 100% - 2 * var(--gutter)); }
.vx-static svg { width: 100%; height: auto; font-family: var(--font); }
.vx-static figcaption { text-align: center; color: var(--text-2); font-size: 14px; margin-top: 8px; }
html:not(.fx-3d) .voice .pin-stage > canvas, html:not(.fx-3d) .vx-hud, .voice.is-failed .pin-stage > canvas, .voice.is-failed .vx-hud { display: none; }
html:not(.fx-3d) .vx-static, .voice.is-failed .vx-static { display: block; }
.fx-motion.fx-static .vx-static, .fx-motion .voice.is-failed .vx-static { position: absolute; top: 50%; right: var(--gutter); width: min(640px, 52vw); transform: translateY(-50%); }
html:not(.fx-motion) .vx-static { padding-top: 96px; }
html:not(.fx-motion) .vx-crypto { position: static; padding: 0 0 64px; }
@media (max-width: 760px) {
  .vx-modes { top: 64px; } .vx-modes b { padding: 5px 9px; font-size: 12px; }
  .vx-chip { min-width: 108px; padding: 6px 8px; font-size: 11px; }
  .voice .pin-copy .beat { top: auto; bottom: 7vh; transform: none; }
  .voice .pin-stage::after { content: ""; position: absolute; inset: 52% 0 0; z-index: 1; background: linear-gradient(transparent, rgba(0, 0, 0, 0.92) 55%); pointer-events: none; }
  .vx-crypto { display: none; }
  .fx-motion.fx-static .vx-static { top: 12vh; right: auto; left: 50%; transform: translateX(-50%); width: calc(100% - 2 * var(--gutter)); }
}

/* ─── Home: social ──────────────────────────────────────────────────────────────────────────── */
.social { overflow: hidden; }
.social::before { content: ""; position: absolute; right: -10%; top: 10%; width: 70vw; aspect-ratio: 1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(42, 116, 240, 0.18), transparent); }
.social-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.social-points { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 18px; }
.social-points li { color: var(--text-2); font-size: 16px; line-height: 1.5; padding-left: 18px; box-shadow: inset 2px 0 0 var(--accent); }
.social-points b { display: block; color: var(--text); font-weight: 600; }
.social-ui { position: relative; border-radius: 28px; padding: 18px; background: linear-gradient(180deg, #16171c, #0d0e12);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 50px 120px rgba(0, 0, 0, 0.6); }
.sui-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 980px; background: rgba(255, 255, 255, 0.06); width: max-content; margin-bottom: 14px; }
.sui-tabs b { font-size: 13px; font-weight: 500; padding: 6px 14px; border-radius: 980px; color: #a1a1a6; }
.sui-tabs b.on { background: #f5f5f7; color: #000; }
.sui-friends { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.sui-friends li { display: flex; align-items: center; gap: 12px; padding: 10px 10px; border-radius: 14px; }
.sui-friends li:first-child { background: rgba(255, 255, 255, 0.05); }
.sui-friends .av { width: 36px; height: 36px; border-radius: 10px; flex: none; background: linear-gradient(140deg, hsl(var(--h) 70% 66%), hsl(var(--h) 60% 36%)); image-rendering: pixelated; }
.sui-friends span:not(.join) { display: grid; margin-right: auto; font-size: 14px; }
.sui-friends em { font-style: normal; font-size: 12px; color: #86868b; display: inline-flex; align-items: center; gap: 6px; }
.sui-friends em::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #55565c; }
.sui-friends em.online::before { background: #4cd182; } .sui-friends em.in-game { color: #8fc0ff; } .sui-friends em.in-game::before { background: #2a74f0; box-shadow: 0 0 0 3px rgba(42, 116, 240, 0.25); }
.join { font-size: 12px; font-weight: 600; color: #fff; background: #2a74f0; padding: 5px 12px; border-radius: 980px; }
.sui-thread { display: grid; gap: 8px; justify-items: start; padding: 14px 6px 6px; margin-top: 10px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.bubble { margin: 0; padding: 9px 14px; border-radius: 18px 18px 18px 6px; background: #26272d; font-size: 14px; max-width: 80%;
  opacity: 0; transform: translateY(12px) scale(0.96); animation: bubble 9s var(--ease) infinite; }
.bubble b { display: block; font-size: 11px; color: #86868b; font-weight: 600; }
.bubble.mine { justify-self: end; background: #2a74f0; color: #fff; border-radius: 18px 18px 6px 18px; }
.bubble.b2 { animation-delay: 1.2s; } .bubble.b3 { animation-delay: 2.4s; }
@keyframes bubble { 0% { opacity: 0; transform: translateY(12px) scale(0.96); } 8%, 80% { opacity: 1; transform: none; } 90%, 100% { opacity: 0; transform: none; } }
.social-ui:not(.is-in) .bubble { animation-play-state: paused; }
.sui-toast { position: absolute; right: -18px; top: -22px; display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 16px; border-radius: 16px; font-size: 13px;
  color: #d9dbe0; background: rgba(28, 30, 38, 0.92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 20px 50px rgba(0, 0, 0, 0.5); animation: toast 9s var(--ease) infinite; }
.sui-toast b { color: #fff; } .sui-toast span { font-size: 12px; font-weight: 600; color: #fff; background: #2a74f0; padding: 5px 12px; border-radius: 980px; }
@keyframes toast { 0%, 30% { opacity: 0; transform: translateY(-10px); } 38%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@media (max-width: 860px) { .social-grid { grid-template-columns: 1fr; } .sui-toast { right: 8px; top: -30px; } }

/* ─── Home: bento extras ────────────────────────────────────────────────────────────────────── */
.lords { list-style: none; margin: auto 0 0; padding: 20px 0 0; display: grid; gap: 6px; counter-reset: lord; }
.lords li { counter-increment: lord; display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; color: #d9dbe0;
  padding: 7px 12px; border-radius: 12px; background: linear-gradient(90deg, hsl(var(--h) 60% 40% / 0.28), transparent 80%); }
.lords li::before { content: counter(lord, upper-roman); width: 26px; font-size: 11px; color: hsl(var(--h) 80% 72%); font-weight: 600; }
.rail { position: relative; margin-top: auto; height: 170px; }
.rail-track { position: absolute; left: -10%; right: -10%; top: 60%; height: 8px; border-radius: 4px;
  background: repeating-linear-gradient(90deg, #6b4a2c 0 6px, transparent 6px 16px), linear-gradient(#9aa3b0, #9aa3b0) 0 0 / 100% 2px no-repeat, linear-gradient(#9aa3b0, #9aa3b0) 0 100% / 100% 2px no-repeat; }
.rail-train { position: absolute; top: calc(60% - 30px); left: 0; width: 120px; height: 30px; border-radius: 8px 14px 4px 4px;
  background: linear-gradient(180deg, #e9edf3, #9aa3b0 60%, #4d5560); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25), inset 0 -6px 0 #2a74f0;
  animation: train 7s cubic-bezier(0.6, 0, 0.4, 1) infinite; }
.rail-st { position: absolute; top: calc(60% + 12px); width: 54px; height: 10px; border-radius: 3px; background: rgba(127, 127, 140, 0.35); }
.rail-st.s1 { left: 6%; } .rail-st.s2 { left: 46%; } .rail-st.s3 { left: 84%; }
@keyframes train { 0%, 12% { transform: translateX(-140px); } 45%, 60% { transform: translateX(calc(46cqw - 30px)); } 100% { transform: translateX(110cqw); } }
.rail { container-type: inline-size; overflow: hidden; }
.pixel { margin: auto 0 0 auto; display: grid; grid-template-columns: repeat(8, 1fr); width: min(220px, 60%); aspect-ratio: 1; gap: 2px; padding-top: 18px; }
.pixel i { border-radius: 2px; background: hsl(calc(260 + mod(var(--i) * 37, 80)) 60% calc(30% + mod(var(--i) * 13, 40) * 1%));
  animation: px 6s steps(1) infinite; animation-delay: calc(var(--i) * -0.19s); }
@keyframes px { 0%, 70% { filter: none; } 72%, 100% { filter: brightness(1.6) saturate(1.3); } }
.bt-mods { flex-direction: row; gap: 32px; align-items: stretch; }
@media (max-width: 640px) { .bt-mods { flex-direction: column; } .pixel { margin: 20px auto 0; } }

/* ─── Home: showcase ─────────────────────────────────────────────────────────────────────── */
.showcase-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.showcase-stage { position: relative; aspect-ratio: 1; border-radius: var(--radius-lg);
  background: radial-gradient(60% 55% at 50% 55%, #2a1d3d 0%, #0f0c16 70%, #0a0a0c 100%); }
.showcase-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.item-list { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.item-list li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 980px; font-size: 14px;
  color: var(--text-2); background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--line);
  transition: color var(--t-ui) var(--ease-ui), background-color var(--t-ui) var(--ease-ui), box-shadow var(--t-ui) var(--ease-ui); }
.item-list img { width: 24px; height: 24px; image-rendering: pixelated; }
.item-list li.is-active { color: var(--text); background: rgba(255, 255, 255, 0.12); box-shadow: inset 0 0 0 1px rgba(200, 160, 255, 0.5); }
html:not(.fx-3d) .showcase-stage, .showcase.is-failed .showcase-stage { display: none; }
html:not(.fx-3d) .showcase-grid { grid-template-columns: 1fr; }
@media (max-width: 860px) { .showcase-grid { grid-template-columns: 1fr; } }

/* ─── Home: servers, compared ────────────────────────────────────────────────────────────── */
.compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 0; }
.compare-col { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; color: var(--text);
  padding: 40px 28px 36px; border-radius: var(--radius-lg);
  transition: background-color var(--t-ui) var(--ease-ui), transform 0.5s var(--ease); transform: perspective(900px) rotateX(var(--rx, 0)) rotateY(var(--ry, 0)); }
.compare-col + .compare-col::before { content: ""; position: absolute; left: 0; top: 15%; bottom: 15%; width: 1px; background: var(--line); }
.compare-col:hover { text-decoration: none; background: var(--surface); box-shadow: var(--shadow); }
.compare-col:hover::before, .compare-col:hover + .compare-col::before { opacity: 0; }
.compare-col h3 { font-size: 28px; letter-spacing: -0.03em; margin: 24px 0 4px; }
.compare-price { color: var(--text-2); font-size: 15px; margin: 0; }
.compare-col dl { margin: 28px 0; display: grid; gap: 22px; width: 100%; }
.compare-col dl div { display: grid; gap: 2px; }
.compare-col dd { margin: 0; order: -1; font-size: clamp(32px, 3.4vw, 44px); font-weight: 600; letter-spacing: -0.045em; line-height: 1.05; }
.compare-col dt { font-size: 13px; color: var(--text-2); }
.compare-col .more { margin-top: auto; }
.compare-badge { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); font-size: 12px; font-weight: 600;
  color: #b36b00; letter-spacing: 0; white-space: nowrap; }
@media (prefers-color-scheme: dark) { .compare-badge { color: #ffb44d; } }
.compare-cube { width: 88px; height: 88px; display: grid; place-items: end center; }
.compare-cube i { width: var(--cs); height: var(--cs); display: block; border-radius: 6px;
  background: linear-gradient(135deg, #e7ebf1, #9aa3b0 52%, #5d6674); box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18);
  transform: rotate(45deg) scaleY(0.82); }
.cube-1 { --cs: 34px; } .cube-2 { --cs: 50px; } .cube-3 { --cs: 64px; } .cube-4 { --cs: 72px; }
.cube-2 i { background: linear-gradient(135deg, #ffe0cb, #e0966a 52%, #8a4425); }
.cube-3 i, .cube-4 i { background: linear-gradient(135deg, #f4e8ff, #be98f2 52%, #5f3a9e); }
.included { list-style: none; padding: 28px 0 0; margin: 40px 0 0; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 36px; color: var(--text-2); font-size: 15px; }
.included li::before { content: "✓"; color: var(--ok); margin-right: 8px; font-weight: 600; }
.vat-note { margin: 16px 0 0; text-align: center; color: var(--text-2); font-size: 13px; }
@media (max-width: 640px) { .compare-col + .compare-col::before { left: 15%; right: 15%; top: 0; bottom: auto; width: auto; height: 1px; } }

/* ─── Home: finale ───────────────────────────────────────────────────────────────────────── */
.finale { overflow: hidden; padding: clamp(120px, 16vw, 220px) 0; }
.finale-glow { position: absolute; left: 50%; top: 55%; width: min(1100px, 140vw); aspect-ratio: 2; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(70, 110, 255, 0.28), rgba(140, 90, 230, 0.12) 50%, transparent); pointer-events: none; }
.finale .wrap { position: relative; }
.finale .copy { margin-inline: auto; }
.finale-note { margin-top: 28px; color: var(--text-2); font-size: 15px; }

/* ─── Reduced motion: still pictures, nothing moves ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal, [data-beat] { opacity: 1 !important; transform: none !important; }
  .hero, .pin { height: auto !important; }
  .hero-stage, .pin-stage { position: relative !important; }
  .hero-mark { opacity: 1; transform: none; }
  .bubble, .wake-states .w3, .sui-toast { opacity: 1; transform: none; }
  .wake-states .w3 { opacity: 1; }
}

/* ─── Small screens ──────────────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .chapter { padding: 88px 0; }
  .chapter-head:not(.center), .narrow-wrap.center { text-align: left; }
  .narrow-wrap.center .copy { margin-inline: 0; }
  .card { border-radius: 22px; }
}

/* ─── Feature pages, FAQ, requirements (web/pages.py) ────────────────────────────────────── */
.page-head .actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 24px; }
.feature-sections { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px 56px; margin: 0 0 clamp(56px, 8vw, 96px); }
.feature-section h2 { font-size: clamp(24px, 2.6vw, 32px); }
.feature-section .copy { font-size: 17px; margin: 0 0 8px; }
@media (max-width: 760px) { .feature-sections { grid-template-columns: 1fr; gap: 36px; } }
.faq { max-width: 760px; margin: 0 0 clamp(56px, 8vw, 96px); }
.faq h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 16px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq details > summary { color: var(--text); font-size: 18px; font-weight: 600; margin: 0; padding: 18px 0; }
.faq details p { color: var(--text-2); margin: 0 0 18px; line-height: 1.5; }
.related { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 0 0 clamp(40px, 6vw, 72px); }
.host-plans { margin-bottom: 16px; }
.requirements { margin: clamp(40px, 6vw, 64px) 0; overflow-x: auto; }
.requirements h2 { font-size: clamp(24px, 2.6vw, 32px); }
.requirements table { width: 100%; border-collapse: collapse; font-size: 15px; }
.requirements th, .requirements td { text-align: left; padding: 12px 16px 12px 0; border-top: 1px solid var(--line); vertical-align: top; }
.requirements td { color: var(--text-2); }

/* ─── Legal pages (web/legal.py) ─────────────────────────────────────────────────────────── */
.legal-draft { border-left: 3px solid var(--warn, #c98a1b); margin-bottom: 24px; }
.legal-draft ul { margin: 8px 0 0; }
.legal h2 { font-size: clamp(20px, 2.2vw, 24px); margin-top: 1.6em; }
.legal-facts { display: grid; gap: 6px 24px; grid-template-columns: max-content 1fr; margin: 0; }
.legal-facts div { display: contents; }
.legal-facts dt { color: var(--text-2); }
.legal-facts dd { margin: 0; }
@media (max-width: 560px) { .legal-facts { grid-template-columns: 1fr; } .legal-facts dd { margin-bottom: 8px; } }
.legal-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-top: 1px solid var(--line); }
