/* Valor website. Near-black ground, one blue light, bold display type. */

@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/Bricolage.woff2") format("woff2"); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/Geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/GeistMono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #07080b;
  --bg-2: #0b0c10;
  --panel: #101116;
  --panel-hi: #16171d;
  --line: rgba(255, 255, 255, 0.075);
  --line-hi: rgba(255, 255, 255, 0.14);
  --text: #f3f4f7;
  --muted: #8d919c;
  --faint: #5e626d;
  --blue: #3d6dff;
  --blue-hi: #5480ff;
  --azure: #6f9bff;
  --cyan: #5fd8e6;
  --green: #62d39b;

  --display: "Bricolage Grotesque", "Geist", system-ui, sans-serif;
  --sans: "Geist", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;

  --wrap: min(100% - 2 * var(--gut), 1280px);
  --gut: 80px;
  --nav-h: 68px;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  /* motion: Undertone "quiet momentum" (commit, travel, settle; no overshoot) */
  --motion-quick: 110ms;
  --motion-standard: 220ms;
  --motion-deliberate: 380ms;
  --ease-commit: cubic-bezier(.2, .75, .25, 1);
  --ease-travel: cubic-bezier(.22, 1, .36, 1);
  --ease-return: cubic-bezier(.4, 0, .2, 1);
  --ease-exit: cubic-bezier(.4, 0, 1, 1);
  --ease: var(--ease-travel);
  --soft: var(--ease-return);
  color-scheme: dark;
}
@media (max-width: 1100px) { :root { --gut: 40px; } }
@media (max-width: 640px) { :root { --gut: 20px; --nav-h: 60px; } }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body { font: 400 16px/1.6 var(--sans); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
img, svg, canvas, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: rgba(61, 109, 255, 0.5); color: #fff; }
:focus-visible { outline: 2px solid var(--azure); outline-offset: 3px; border-radius: 6px; }
.wrap { width: var(--wrap); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: 12px; z-index: 100; padding: 10px 16px; border-radius: var(--r-sm); background: var(--text); color: var(--bg); font-weight: 500; transform: translateY(-160%); transition: transform .2s var(--ease); }
.skip:focus { transform: none; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.028em; line-height: 0.98; font-variation-settings: "opsz" 96; text-wrap: balance; }
h1 { font-size: clamp(44px, 7.2vw, 96px); }
h2 { font-size: clamp(36px, 4.8vw, 64px); }
h3 { font-size: 22px; letter-spacing: -0.02em; line-height: 1.15; font-variation-settings: "opsz" 24; }
h2 .dim, h1 .dim { color: var(--faint); }
.lead { font-size: clamp(17px, 1.45vw, 20px); line-height: 1.5; color: var(--muted); max-width: 34em; text-wrap: pretty; }
.label { font: 500 12px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.mono { font-family: var(--mono); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 46px; padding: 0 20px; border-radius: 12px; font-weight: 500; font-size: 15px; white-space: nowrap;
  transition: background-color 120ms var(--ease-commit), border-color 120ms var(--ease-commit), transform 140ms var(--ease-commit), box-shadow 180ms var(--ease-return); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-light { background: var(--text); color: #0a0b0e; box-shadow: 0 0 0 1px rgba(255,255,255,.2) inset, 0 8px 30px rgba(111,155,255,.18); }
.btn-light:hover { background: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.3) inset, 0 10px 40px rgba(111,155,255,.32); }
.btn-ghost { border: 1px solid var(--line-hi); color: var(--text); background: rgba(255,255,255,.02); }
.btn-ghost:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.22); }
.btn-ghost .arrow { transition: transform var(--motion-standard) var(--ease-travel); }
.btn-ghost:hover .arrow { transform: translateX(3px); }
.btn-sm { height: 36px; padding: 0 14px; border-radius: 10px; font-size: 14px; }
.btn[aria-disabled="true"] { cursor: default; }

.link { color: var(--text); background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size var(--motion-standard) var(--ease-travel); }
.link:hover { background-size: 100% 1px; }

.pill { display: inline-flex; align-items: center; gap: 10px; height: 32px; padding: 0 14px 0 6px; border-radius: 99px; border: 1px solid var(--line-hi); background: rgba(16,17,22,.6); backdrop-filter: blur(8px); font-size: 13px; color: var(--muted); }
.pill { white-space: nowrap; transition: border-color 150ms var(--ease-commit), color 150ms var(--ease-commit); }
.pill:hover { border-color: rgba(255,255,255,.24); color: var(--text); }
.pill svg { width: 14px; height: 14px; transition: transform var(--motion-standard) var(--ease-travel); }
.pill:hover svg { transform: translateX(3px); }
.pill b { font-weight: 500; color: var(--text); padding: 3px 9px; border-radius: 99px; background: rgba(61,109,255,.22); color: #cfdcff; font-size: 12px; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h); border-bottom: 1px solid transparent; transition: background .3s var(--soft), border-color .3s var(--soft); }
.nav.scrolled { background: rgba(7, 8, 11, 0.72); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-color: var(--line); }
.nav .wrap { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 10px; font: 800 21px/1 var(--display); letter-spacing: -0.03em; }
.brand img { width: 30px; height: 30px; }
.nav-links { position: relative; isolation: isolate; display: flex; gap: 4px; margin-left: auto; }
.marker { position: absolute; left: 0; top: 0; pointer-events: none; opacity: 0; transition: transform 240ms var(--ease-travel), width 240ms var(--ease-travel), height 240ms var(--ease-travel), opacity 150ms var(--ease-return); }
.nav-mark { z-index: 0; border-radius: 99px; background: rgba(255,255,255,.06); }
.nav-links a { display: flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 99px; font-size: 14px; color: var(--muted); position: relative; z-index: 1; transition: color 150ms var(--ease-commit); }
.nav-links a:hover { color: var(--text); }
.nav-links a[aria-current="page"] { color: var(--text); }
.nav-cta { margin-left: 8px; }
.nav-discord { display: grid; place-items: center; width: 40px; height: 40px; margin-left: 8px; border-radius: 10px; color: var(--muted); transition: color 150ms var(--ease-commit), background-color 150ms var(--ease-commit); }
.nav-discord:hover { color: #fff; background: rgba(88,101,242,.22); }
.nav-discord svg { width: 20px; height: 20px; }
.nav-discord-row { display: none !important; }
.foot-discord { margin-top: 20px; }
.btn .dc { width: 18px; height: 18px; }
.btn-ghost:hover .dc { color: #8891f7; }
.btn-ghost .dc { transition: color 150ms var(--ease-commit); }
.menu-btn { display: none; width: 44px; height: 44px; margin-left: auto; border-radius: 10px; align-items: center; justify-content: center; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 1.5px; background: var(--text); position: relative; transition: transform .25s var(--ease), background .2s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 820px) {
  .menu-btn { display: flex; }
  .nav-links { position: fixed; inset: var(--nav-h) 0 0; flex-direction: column; gap: 0; padding: 16px var(--gut); background: var(--bg); margin: 0; visibility: hidden; opacity: 0; transform: translateY(-10px); transition: opacity 160ms var(--ease-exit), transform 160ms var(--ease-exit), visibility 0s 160ms; }
  .nav-links.open { visibility: visible; opacity: 1; transform: none; transition: opacity 200ms linear, transform 280ms var(--ease-travel); }
  .nav-mark { display: none; }
  .nav-links a { height: 56px; font: 800 28px/1 var(--display); letter-spacing: -0.03em; color: var(--text); padding: 0; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav-links a:hover { background: none; }
  .nav-cta { display: none; }
  .nav-discord { display: none; }
  .nav-links .nav-discord-row { display: flex !important; color: #a8b0ff; }
  .nav.menu-open { background: var(--bg); border-color: var(--line); }
}

/* ---------- sections ---------- */
main > section { position: relative; }
.sec { padding: clamp(96px, 13vh, 160px) 0; }
.sec-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 48px; align-items: end; margin-bottom: clamp(40px, 6vh, 72px); }
.sec-head .lead { justify-self: start; }
@media (max-width: 900px) { .sec-head { grid-template-columns: 1fr; } }
.hairline { border-top: 1px solid var(--line); }

/* ---------- hero ---------- */
.hero { position: relative; padding-top: calc(var(--nav-h) + clamp(56px, 11vh, 120px)); overflow: clip; isolation: isolate; }
.hero-bg { position: absolute; inset: 0 0 auto; height: max(760px, 125vh); z-index: -1; pointer-events: none; }
.hero-bg canvas { width: 100%; height: 100%; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,8,11,0) 70%, var(--bg) 98%); }
.hero-bg.fallback { background: radial-gradient(60% 50% at 50% 0%, rgba(61,109,255,.35), transparent 70%), radial-gradient(40% 35% at 70% 10%, rgba(95,216,230,.12), transparent 70%); }
.hero-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; }
.hero h1 { max-width: 10.5em; }
.hero h1 .grad { background: linear-gradient(100deg, #fff 10%, #b9cbff 45%, var(--azure) 70%, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-row { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-top: 32px; flex-wrap: wrap; }
.hero-row .lead { max-width: 30em; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
[data-enter] > * { animation: enter-lift var(--motion-deliberate) var(--ease-travel) backwards; animation-delay: 120ms; }
[data-enter] > h1 { animation: enter-reveal 520ms var(--ease-travel) backwards; animation-delay: 0ms; }
[data-enter] > :first-child:not(h1) { animation-delay: 160ms; }
[data-enter] > :last-child:not(h1) { animation-delay: 200ms; }
@keyframes enter-reveal { from { clip-path: inset(0 0 100% 0); transform: translateY(12px); } to { clip-path: inset(-10% -4% -25% -4%); transform: none; } }
@keyframes enter-lift { from { opacity: 0; transform: translateY(12px); } }

/* 3D stage for the launcher */
.stage { position: relative; margin-top: clamp(48px, 8vh, 88px); perspective: 2400px; perspective-origin: 50% 0%; }
.stage .device { --p: 0; transform-origin: 50% 0%; transform: rotateX(calc(28deg * (1 - var(--p)))) scale(calc(0.9 + 0.1 * var(--p))) translateY(calc(-30px * var(--p))); will-change: transform; }
.stage .glow { position: absolute; left: 10%; right: 10%; top: -60px; height: 240px; background: radial-gradient(50% 60% at 50% 60%, rgba(61,109,255,.55), transparent 70%); filter: blur(40px); opacity: calc(1 - var(--p, 0) * 0.5); pointer-events: none; }
.stage::after { content: ""; position: absolute; left: -2px; right: -2px; bottom: -2px; height: 32%; background: linear-gradient(180deg, transparent, var(--bg) 85%); pointer-events: none; }

/* device frame: holds a fixed-size app at scale --k */
.device { position: relative; border-radius: 18px; padding: 1px; background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,.04) 30%, rgba(255,255,255,.02)); box-shadow: 0 40px 120px rgba(0,0,0,.6), 0 0 0 1px rgba(0,0,0,.6); }
.device-inner { position: relative; overflow: hidden; border-radius: 17px; background: #131417; aspect-ratio: var(--ar, 1240 / 760); }
.device-inner > .app { position: absolute; left: 0; top: 0; transform-origin: 0 0; transform: scale(var(--k, 1)); }
.device::before { content: ""; position: absolute; inset: 1px; border-radius: 17px; z-index: 2; pointer-events: none; background: linear-gradient(115deg, rgba(255,255,255,.07), transparent 30%); }

/* ---------- launcher replica (matches launcher/src/ui) ---------- */
.lx { --l-ground: #131417; --l-rail: #0f1013; --l-surface: #191a1e; --l-raised: #212227; --l-raised-hi: #2a2b31; --l-line: rgba(255,255,255,.06); --l-line-hi: rgba(255,255,255,.11); --l-muted: #a3a4ad; --l-faint: #74757f;
  width: 1240px; height: 760px; display: grid; grid-template-columns: 72px 1fr; grid-template-rows: 56px 1fr; font: 400 14px/1.5 var(--sans); color: #ececef; background: var(--l-ground); text-align: left; }
.lx img.ic { width: 16px; height: 16px; filter: invert(1); }
.lx-rail { grid-row: 1 / 3; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 0 18px; background: var(--l-rail); }
.lx-rail .logo { width: 34px; height: 34px; margin-bottom: 18px; }
.lx-rail span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; opacity: .55; position: relative; }
.lx-rail span.on { opacity: 1; background: rgba(255,255,255,.06); }
.lx-rail span.on::before { content: ""; position: absolute; left: -14px; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; background: #3d6dff; }
.lx-rail span img { width: 19px; height: 19px; filter: invert(1); }
.lx-rail i { flex: 1; }
.lx-top { display: flex; align-items: center; gap: 8px; padding: 0 16px 0 40px; }
.lx-search { display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 10px 0 12px; width: 340px; border-radius: 9px; background: var(--l-surface); border: 1px solid var(--l-line); color: var(--l-faint); font-size: 13px; }
.lx-search img { width: 14px; height: 14px; opacity: .7; filter: invert(1); }
.lx-search kbd { margin-left: auto; font: 600 11px var(--sans); padding: 2px 6px; border-radius: 5px; background: var(--l-raised-hi); color: var(--l-muted); }
.lx-top .grow { flex: 1; }
.lx-acct { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 13px; }
.lx-acct img { width: 26px; height: 26px; border-radius: 6px; image-rendering: pixelated; }
.lx-wins { display: flex; gap: 2px; margin-left: 14px; }
.lx-wins i { width: 34px; height: 28px; display: grid; place-items: center; color: var(--l-faint); }
.lx-wins svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 1.3; }
.lx-main { padding: 22px 40px 0; overflow: hidden; }
.lx-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 30px; }
.lx-greet { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.lx-greet img { width: 32px; height: 32px; border-radius: 7px; image-rendering: pixelated; }
.lx-greet b { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.lx-hero { position: relative; height: 340px; border-radius: 22px; overflow: hidden; border: 1px solid var(--l-line-hi); }
.lx-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.lx-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.78) 46%, rgba(0,0,0,.1) 88%), linear-gradient(0deg, rgba(0,0,0,.5), rgba(0,0,0,0) 55%); }
.lx-hero-body { position: absolute; left: 34px; bottom: 34px; z-index: 1; width: 330px; }
.lx-hero-body .tag { font-size: 12px; color: var(--l-muted); margin-bottom: 8px; display: flex; gap: 8px; align-items: center; }
.lx-hero-body .tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #62d39b; box-shadow: 0 0 10px #62d39b; }
.lx-hero-body h4 { font: 700 30px/1.05 var(--sans); letter-spacing: -0.02em; margin-bottom: 20px; }
.lx-launch { display: flex; gap: 6px; }
.lx-launch b { flex: 1; display: flex; flex-direction: column; justify-content: center; height: 62px; padding: 0 22px; border-radius: 14px; background: #3d6dff; box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 10px 30px rgba(61,109,255,.35); }
.lx-launch b span { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; }
.lx-launch b span img { width: 17px; height: 17px; filter: invert(1); }
.lx-launch b small { color: rgba(255,255,255,.72); font-size: 12px; font-weight: 400; }
.lx-launch i { width: 50px; border-radius: 14px; background: #335fe6; display: grid; place-items: center; }
.lx-launch i img { width: 14px; height: 14px; filter: invert(1); }
.lx-sec { font-size: 15px; font-weight: 600; margin: 26px 0 10px; }
.lx-news { display: grid; gap: 2px; }
.lx-news div { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 12px; }
.lx-news div:first-child { background: var(--l-surface); }
.lx-news time { font-size: 12px; color: var(--l-faint); }
.lx-news b { display: block; font-size: 13.5px; font-weight: 600; }
.lx-news p { font-size: 12.5px; color: var(--l-muted); }
.lx-news em { font-style: normal; font-size: 11px; color: var(--l-muted); padding: 3px 8px; border-radius: 6px; background: var(--l-raised); }
.lx-side section { padding: 20px; border-radius: 20px; background: var(--l-surface); border: 1px solid var(--l-line); margin-bottom: 18px; }
.lx-side h5 { font-size: 14px; font-weight: 600; margin-bottom: 12px; display: flex; justify-content: space-between; }
.lx-side h5 small { font-size: 12px; color: var(--l-faint); font-weight: 600; }
.lx-srv { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.lx-srv .ico { width: 38px; height: 38px; border-radius: 10px; background: var(--l-raised); display: grid; place-items: center; font: 700 15px var(--sans); color: #ececef; overflow: hidden; }
.lx-srv .ico img { width: 100%; height: 100%; object-fit: cover; }
.lx-srv div { flex: 1; min-width: 0; }
.lx-srv b { display: block; font-size: 13.5px; font-weight: 600; }
.lx-srv small { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--l-muted); }
.lx-srv small::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #62d39b; }
.lx-srv u { text-decoration: none; height: 30px; padding: 0 14px; display: grid; place-items: center; border-radius: 9px; background: #3d6dff; font-size: 12.5px; font-weight: 600; }
.lx-feat { position: relative; height: 128px; border-radius: 14px; overflow: hidden; }
.lx-feat img { width: 100%; height: 100%; object-fit: cover; }
.lx-feat b { position: absolute; left: 14px; bottom: 12px; font-size: 14px; font-weight: 600; text-shadow: 0 1px 8px rgba(0,0,0,.6); }

/* ---------- servers ---------- */
.servers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.server { position: relative; display: flex; flex-direction: column; gap: 28px; padding: 32px; border-radius: var(--r-lg); background: linear-gradient(180deg, var(--panel-hi), var(--panel)); border: 1px solid var(--line); overflow: hidden; transition: border-color 150ms var(--ease-commit), box-shadow 180ms var(--ease-return); }
.server:hover { border-color: var(--line-hi); box-shadow: 0 18px 50px rgba(0,0,0,.35); }
.server-logo { width: 72px; height: 72px; border-radius: 18px; display: grid; place-items: center; background: rgba(255,255,255,.04); border: 1px solid var(--line); overflow: hidden; }
.server-logo img { width: 100%; height: 100%; object-fit: cover; }
.server-logo svg { width: 30px; height: 30px; stroke: var(--muted); fill: none; stroke-width: 1.6; }
.server h3 { font-size: 30px; letter-spacing: -0.03em; }
.server .mono { font-size: 13px; color: var(--muted); margin-top: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.chip { font-size: 12.5px; color: var(--muted); padding: 5px 10px; border-radius: 8px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.note-row { display: flex; align-items: center; gap: 14px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.note-row img { width: 18px; height: 18px; filter: invert(1); opacity: .7; }
@media (max-width: 900px) { .servers { grid-template-columns: 1fr; } }

/* ---------- in-game band (mods menu) ---------- */
.band { position: relative; overflow: clip; isolation: isolate; }
.band > .layer { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; filter: saturate(.75) brightness(.42) blur(2px); transform: scale(1.04); }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--bg) 0%, rgba(7,8,11,.35) 22%, rgba(7,8,11,.35) 78%, var(--bg) 100%), radial-gradient(70% 60% at 50% 60%, rgba(61,109,255,.18), transparent 70%); }
.band .stage { margin-top: 0; perspective: 2600px; perspective-origin: 50% 30%; }
.band .stage::after { display: none; }

/* in-game mods menu replica (matches the client's mods screen) */
.mm { width: 1240px; height: 700px; position: relative; font: 400 13px/1.45 var(--sans); color: #e9edf5; text-align: left; background: rgba(6,10,20,.55); }
.mm-title { position: absolute; left: 50%; top: 18px; transform: translateX(-50%); padding: 8px 40px 10px; text-align: center; border-radius: 12px; background: rgba(8,14,30,.7); border: 1px solid rgba(111,155,255,.18); }
.mm-title b { display: block; font: 700 26px/1.1 var(--sans); letter-spacing: -0.01em; }
.mm-title small { font-size: 11px; color: #8d98b4; }
.mm-side { position: absolute; left: 26px; top: 100px; bottom: 90px; width: 220px; padding: 18px 12px; border-radius: 16px; background: rgba(10,16,34,.78); border: 1px solid rgba(111,155,255,.16); }
.mm-side h6 { font-size: 12px; font-weight: 500; color: #a9b3cc; padding: 0 10px 12px; }
.mm-side { isolation: isolate; }
.mm-side span { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; height: 36px; padding: 0 12px; border-radius: 9px; color: #c6cde0; cursor: pointer; transition: background-color 150ms var(--ease-commit), color 150ms var(--ease-commit); }
.mm-side span:hover { background: rgba(111,155,255,.08); }
.mm-side span.on { color: #fff; }
.mm-side span.on:hover { background: none; }
.prof-mark { z-index: 0; border-radius: 9px; background: rgba(61,109,255,.28); }
.mm-side span::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #3d6dff; opacity: 0; }
.mm-side span::after { transition: opacity 150ms var(--ease-commit); }
.mm-side span.on::after { opacity: 1; }
.mm-side .new { position: absolute; left: 12px; right: 12px; bottom: 14px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); font-size: 12.5px; }
.mm-tabs { position: absolute; left: 268px; top: 106px; display: flex; gap: 8px; isolation: isolate; }
.mm-tabs b { position: relative; z-index: 2; font-weight: 400; }
.tab-mark { z-index: 1; border-radius: 99px; background: #3d6dff; }
.mm-tabs span { height: 30px; padding: 0 16px; display: grid; place-items: center; border-radius: 99px; background: rgba(10,16,34,.8); border: 1px solid rgba(111,155,255,.2); font-size: 12px; cursor: pointer; transition: background .2s; }
.mm-tabs span.on { border-color: #3d6dff; }
.mm-find { position: absolute; right: 26px; top: 106px; width: 210px; height: 30px; padding: 0 12px; display: flex; align-items: center; border-radius: 8px; background: rgba(10,16,34,.8); border: 1px solid rgba(255,255,255,.08); color: #7f8aa6; font-size: 12px; }
.mm-cards { position: absolute; left: 268px; right: 26px; top: 152px; bottom: 90px; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 104px; gap: 12px; overflow: hidden; }
.mm-card { position: relative; padding: 14px 16px 12px 48px; border-radius: 14px; background: rgba(10,16,34,.82); border: 1px solid rgba(111,155,255,.22); transition: border-color 150ms var(--ease-commit); }
.mm-card:hover { border-color: rgba(111,155,255,.45); }
.mm-card .mi { position: absolute; left: 14px; top: 15px; width: 22px; height: 22px; background: #c8d3ee; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.mm-card b { display: block; font-size: 13.5px; font-weight: 600; }
.mm-card p { font-size: 11.5px; color: #8d98b4; line-height: 1.35; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mm-card em { position: absolute; left: 16px; bottom: 10px; font-style: normal; font-size: 10px; color: #6d7896; }
.sw { position: absolute; right: 14px; bottom: 11px; width: 34px; height: 18px; border-radius: 99px; background: #2a3045; transition: background-color 140ms var(--ease-commit) var(--d, 0ms); cursor: pointer; }
.sw::after { content: ""; position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform 200ms var(--ease-travel) var(--d, 0ms); }
.sw[aria-checked="true"] { background: #3d6dff; }
.sw[aria-checked="true"]::after { transform: translateX(16px); }
.mm-foot { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; gap: 10px; }
.mm-foot span { width: 170px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: rgba(10,16,34,.85); border: 1px solid rgba(255,255,255,.1); font-size: 12.5px; }
.mm-foot span.go { background: #3d6dff; border-color: #3d6dff; box-shadow: 0 0 24px rgba(61,109,255,.5); }

/* ---------- HUD editor demo ---------- */
.hud-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; align-items: start; }
.hud-points { display: grid; gap: 0; margin-top: 32px; border-top: 1px solid var(--line); }
.hud-points li { list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.hud-points kbd { font: 500 12px/1 var(--mono); color: var(--text); padding: 6px 8px; border-radius: 6px; background: rgba(255,255,255,.06); border: 1px solid var(--line); white-space: nowrap; }
.hud-tools { display: flex; gap: 10px; margin-top: 28px; }
.hud { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-hi); background: #0b1020; touch-action: none; user-select: none; box-shadow: 0 40px 100px rgba(0,0,0,.5); }
.hud > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.55) saturate(.85); pointer-events: none; }
.hud .guide { position: absolute; background: #5fd8e6; opacity: 0; pointer-events: none; transition: opacity .12s; box-shadow: 0 0 8px #5fd8e6; }
.hud .guide.x { top: 0; bottom: 0; width: 1px; }
.hud .guide.y { left: 0; right: 0; height: 1px; }
.hud .guide.on { opacity: .9; }
.hud-hint { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; pointer-events: none; }
.hud-hint b { display: block; font: 600 18px/1.2 var(--sans); }
.hud-hint small { font-size: 12px; color: rgba(255,255,255,.6); }
.w { position: absolute; padding: 6px 10px; border-radius: 8px; background: rgba(8,12,24,.62); border: 1px solid rgba(111,155,255,.28); font: 500 13px/1.25 var(--sans); color: #fff; white-space: nowrap; cursor: grab; transition: border-color .15s, box-shadow .15s; }
.w:hover { border-color: rgba(111,155,255,.6); }
.w.drag { cursor: grabbing; border-color: #5fd8e6; box-shadow: 0 0 0 1px #5fd8e6, 0 8px 30px rgba(0,0,0,.5); z-index: 5; }
.w:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.w.keys { display: grid; grid-template-columns: repeat(3, 30px); gap: 3px; padding: 6px; }
.w.keys i { height: 30px; display: grid; place-items: center; border-radius: 6px; background: rgba(255,255,255,.06); font-style: normal; font-size: 12px; transition: background .1s; }
.w.keys i.dn { background: rgba(111,155,255,.55); }
.w.keys i.wide { grid-column: span 3; height: 22px; font-size: 10px; }
.w.keys i.blank { visibility: hidden; }
.w.compass { width: 200px; text-align: center; font-size: 11px; color: #9aa6c4; letter-spacing: .3em; }
.w.compass b { display: block; color: #fff; letter-spacing: 0; font-size: 13px; }
.w.armor { display: grid; gap: 4px; font-size: 12px; }
.w.armor span { display: flex; align-items: center; gap: 8px; }
.w.armor span::before { content: ""; width: 12px; height: 12px; border-radius: 3px; background: linear-gradient(135deg, #8fe7f2, #3fb2c4); }
@media (max-width: 900px) { .hud-wrap { grid-template-columns: 1fr; } }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.card { position: relative; display: flex; flex-direction: column; border-radius: var(--r-lg); background: linear-gradient(180deg, var(--panel-hi), var(--panel)); border: 1px solid var(--line); overflow: hidden; transition: border-color .3s, transform .3s var(--ease); }
a.card:hover { border-color: var(--line-hi); box-shadow: 0 18px 50px rgba(0,0,0,.35); }
.card-vis { position: relative; flex: 1; min-height: 260px; overflow: hidden; }
.card-txt { padding: 0 28px 28px; }
.card-txt h3 { margin-bottom: 6px; }
.card-txt p { color: var(--muted); font-size: 15px; line-height: 1.5; max-width: 30em; }
.c-7 { grid-column: span 7; } .c-5 { grid-column: span 5; } .c-6 { grid-column: span 6; } .c-4 { grid-column: span 4; }
@media (max-width: 1000px) { .c-7, .c-5, .c-6, .c-4 { grid-column: span 12; } }

/* explore fragment */
.fx-explore { position: absolute; inset: 28px 28px 0; border-radius: 14px 14px 0 0; background: #131417; border: 1px solid rgba(255,255,255,.08); border-bottom: 0; padding: 16px; font-size: 12.5px; }
.fx-seg { position: relative; isolation: isolate; display: inline-flex; padding: 3px; border-radius: 9px; background: #191a1e; border: 1px solid rgba(255,255,255,.06); margin-bottom: 14px; }
.fx-seg span { position: relative; z-index: 1; padding: 5px 12px; border-radius: 7px; color: #a3a4ad; font-weight: 600; cursor: pointer; transition: color 150ms var(--ease-commit); }
.fx-seg span.on { color: #fff; }
.seg-mark { z-index: 0; border-radius: 7px; background: #2a2b31; }
.fx-row { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.05); }
.fx-row .th { width: 40px; height: 40px; border-radius: 9px; }
.fx-row b { font-weight: 600; font-size: 13px; }
.fx-row small { display: block; color: #74757f; font-size: 11.5px; }
.fx-row u { text-decoration: none; padding: 5px 11px; border-radius: 8px; background: #3d6dff; font-weight: 600; font-size: 12px; }
.fx-row u.ext { background: #2a2b31; }

/* profile fragment */
.fx-prof { position: absolute; inset: 28px; display: grid; gap: 10px; align-content: start; }
.fx-prof .p { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 14px; background: #131417; border: 1px solid rgba(255,255,255,.07); }
.live-mark { z-index: 2; border-radius: 14px; border: 1px solid rgba(61,109,255,.7); background: rgba(61,109,255,.07); }
.fx-prof .p b { font-size: 14px; font-weight: 600; }
.fx-prof .p small { display: block; font: 400 12px var(--mono); color: #74757f; margin-top: 2px; }
.fx-prof .p em { font-style: normal; font-size: 11.5px; color: #a3a4ad; padding: 4px 9px; border-radius: 7px; background: #212227; transition: background-color 150ms var(--ease-commit) 120ms, color 150ms var(--ease-commit) 120ms; }
.fx-prof .p.live em { background: #3d6dff; color: #fff; }

/* discord fragment */
.fx-dc { position: absolute; left: 28px; right: 28px; top: 50%; transform: translateY(-50%); padding: 18px; border-radius: 14px; background: #232428; border: 1px solid rgba(255,255,255,.06); font-family: var(--sans); }
.fx-dc .who { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.fx-dc .who img { width: 40px; height: 40px; border-radius: 50%; image-rendering: pixelated; }
.fx-dc .who b { font-size: 15px; }
.fx-dc .who small { display: block; font-size: 12px; color: #b5bac1; }
.fx-dc .act { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 10px; background: #1e1f22; }
.fx-dc .act img { width: 56px; height: 56px; border-radius: 10px; background: #0b0c10; padding: 6px; }
.fx-dc .act small { display: block; font-size: 11px; color: #b5bac1; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.fx-dc .act b { display: block; font-size: 13.5px; }
.fx-dc .act span { display: block; font-size: 12.5px; color: #dbdee1; }
.fx-dc .act time { font: 400 12px var(--mono); color: #23a55a; }

/* ---------- close ---------- */
.close { position: relative; text-align: left; overflow: clip; isolation: isolate; }
.close .word { font: 800 clamp(120px, 24vw, 360px)/0.8 var(--display); letter-spacing: -0.06em; font-variation-settings: "opsz" 96; background: linear-gradient(180deg, #fff 20%, rgba(255,255,255,.08) 95%); -webkit-background-clip: text; background-clip: text; color: transparent; margin-top: 40px; margin-left: -0.04em; user-select: none; }
.close-row { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
.close::before { content: ""; position: absolute; left: 50%; bottom: -30%; width: 120%; height: 90%; transform: translateX(-50%); z-index: -1; background: radial-gradient(50% 50% at 50% 50%, rgba(61,109,255,.28), transparent 70%); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: 14px; color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 6fr) repeat(2, minmax(0, 3fr)); gap: 32px; }
.foot h4 { font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin-bottom: 16px; }
.foot ul { list-style: none; display: grid; gap: 4px; }
.foot ul a { display: inline-flex; align-items: center; min-height: 32px; transition: color 150ms var(--ease-commit); }
.foot ul a:hover { color: var(--text); }
.foot .brand { color: var(--text); margin-bottom: 14px; }
.foot-legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); }
@media (max-width: 720px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- sub pages ---------- */
.page-hero { padding: calc(var(--nav-h) + clamp(72px, 14vh, 140px)) 0 clamp(56px, 9vh, 96px); position: relative; isolation: isolate; overflow: clip; }
.page-hero::before { content: ""; position: absolute; left: 50%; top: -40%; width: 110%; height: 120%; transform: translateX(-50%); z-index: -1; background: radial-gradient(45% 45% at 50% 40%, rgba(61,109,255,.22), transparent 70%); }
.page-hero .lead { margin-top: 24px; }

.mods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.mod { position: relative; padding: 24px; background: var(--bg-2); min-height: 168px; display: flex; flex-direction: column; gap: 6px; transition: background-color 150ms var(--ease-commit); }
.mod:hover { background: var(--panel); }
.mod .mi { width: 26px; height: 26px; margin-bottom: 14px; background: var(--text); -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; transition: background-color 150ms var(--ease-commit); }
.mod:hover .mi { background: var(--azure); }
.mod b { font-weight: 600; font-size: 16px; }
.mod p { font-size: 14px; color: var(--muted); line-height: 1.45; }
.mod.more { justify-content: flex-end; background: linear-gradient(160deg, rgba(61,109,255,.16), var(--bg-2) 60%); }
.mod.more b { font-family: var(--display); font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.mod em { position: absolute; right: 20px; top: 22px; font: 500 11px var(--mono); font-style: normal; color: var(--faint); letter-spacing: .05em; text-transform: uppercase; }
@media (max-width: 1100px) { .mods { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px) { .mods { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .mods { grid-template-columns: 1fr; } }

.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px 48px; padding: 28px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.row h3 { font-size: 24px; }
.row p { color: var(--muted); font-size: 16px; max-width: 40em; }
@media (max-width: 720px) { .row { grid-template-columns: 1fr; gap: 8px; } }

.dl { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; }
.dl-card { position: relative; padding: 40px; border-radius: var(--r-lg); background: linear-gradient(180deg, var(--panel-hi), var(--panel)); border: 1px solid var(--line); overflow: hidden; }
.dl-card .soon { display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #cfdcff; padding: 8px 12px; border-radius: 99px; background: rgba(61,109,255,.18); border: 1px solid rgba(61,109,255,.35); }
.dl-card .soon::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--azure); box-shadow: 0 0 10px var(--azure); animation: pulse 3s var(--ease-return) infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.dl-card h2 { margin: 28px 0 14px; }
.dl-card .btn { margin-top: 32px; }
.dl-card .btn[aria-disabled="true"] { background: rgba(255,255,255,.08); color: var(--muted); box-shadow: none; transform: none; }
.dl-card > :not(.dl-logo) { position: relative; z-index: 1; }
.dl-card .lead { max-width: 22em; }
.dl-card:first-child { min-height: 380px; }
.dl-logo { position: absolute; right: -44px; bottom: -84px; width: 280px; opacity: .9; z-index: 0; pointer-events: none; }
.dl-card:first-child { background: radial-gradient(320px 260px at 100% 100%, rgba(61,109,255,.28), transparent 70%), linear-gradient(180deg, var(--panel-hi), var(--panel)); }
.spec { list-style: none; }
.spec li { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.spec li span:first-child { color: var(--muted); }
.spec li span:last-child { text-align: right; }
@media (max-width: 900px) { .dl { grid-template-columns: 1fr; } .dl-logo { width: 180px; bottom: -60px; opacity: .5; } }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 72px; cursor: pointer; font: 600 19px/1.3 var(--sans); letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 12px; height: 12px; flex: none; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg) translate(-3px, -3px); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq p { padding: 0 0 24px; color: var(--muted); max-width: 44em; }

.log { position: relative; display: grid; gap: 0; }
.entry { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 24px 48px; padding: 48px 0; border-top: 1px solid var(--line); }
.entry time { font: 500 13px/1.6 var(--mono); color: var(--muted); position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; }
.entry h2 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 18px; }
.entry ul { list-style: none; display: grid; gap: 10px; }
.entry li { position: relative; padding-left: 22px; color: var(--muted); }
.entry li::before { content: ""; position: absolute; left: 0; top: .68em; width: 8px; height: 1.5px; background: var(--azure); }
.entry li b { color: var(--text); font-weight: 500; }
@media (max-width: 720px) { .entry { grid-template-columns: 1fr; } .entry time { position: static; } }

/* ---------- responsive hero ---------- */
@media (max-width: 820px) {
  .hero-top { grid-template-columns: 1fr; }
  .hero-row { flex-direction: column; align-items: stretch; }
  .actions .btn { flex: 1; }
}
@media (max-width: 480px) { .actions { flex-direction: column; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .stage .device { transform: none !important; }
}
