/* Lexon site — monochrome, glass, motion. Tokens follow design-system/lexon-loader/MASTER.md */

@property --p { syntax: '<number>'; inherits: true; initial-value: 0; }

:root {
  --bg: #050505;
  --bg-2: #0a0a0a;
  --surface: #0e0e0e;
  --raised: #161616;
  --border: rgba(255, 255, 255, .08);
  --border-2: rgba(255, 255, 255, .15);
  --text: #f7f7f7;
  --text-2: #b2b2b2;
  --text-3: #808080;
  --glass: rgba(16, 16, 16, .55);
  --glass-strong: rgba(12, 12, 12, .78);
  --blur: saturate(140%) blur(18px);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --radius: 18px;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1180px;
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --display: 'Syne', 'Inter', system-ui, sans-serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
code, kbd {
  font: 500 .86em/1 ui-monospace, 'SFMono-Regular', Consolas, monospace;
  padding: .28em .5em;
  border-radius: 7px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid var(--border);
  white-space: nowrap;
}
::selection { background: #f7f7f7; color: #050505; }
:focus-visible { outline: 2px solid #f7f7f7; outline-offset: 3px; border-radius: 8px; }

.ico {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; color: var(--text-2); }
.mono { font-variant-numeric: tabular-nums; }

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  background: #fff; color: #000; padding: 10px 14px; border-radius: 10px; text-decoration: none;
  transition: top .2s;
}
.skip:focus { top: 16px; }

/* ---------- Buttons ---------- */
.button {
  --h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--h); padding: 0 20px;
  border-radius: 999px; border: 1px solid #f7f7f7;
  background: #f7f7f7; color: #0a0a0a;
  font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease-out), background .25s, color .25s, border-color .25s, box-shadow .25s;
}
.button:hover { transform: translateY(-1px); box-shadow: 0 10px 30px -10px rgba(255, 255, 255, .35); }
.button:active { transform: translateY(0) scale(.98); }
.button .ico { width: 16px; height: 16px; transition: transform .25s var(--ease-out); }
.button:hover .ico { transform: translateX(2px); }
.button.ghost { background: rgba(255, 255, 255, .04); color: var(--text); border-color: var(--border-2); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.button.ghost:hover { background: rgba(255, 255, 255, .09); box-shadow: none; }
.button.small { --h: 38px; padding: 0 14px; font-size: 14px; }
.button.large { --h: 52px; padding: 0 26px; font-size: 16px; }
.button kbd { background: rgba(0, 0, 0, .08); border-color: rgba(0, 0, 0, .12); font-size: 11px; }
.linklike { background: none; border: 0; padding: 0; cursor: pointer; color: inherit; text-decoration: none; }

.glass {
  background: var(--glass);
  border: 1px solid var(--border);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}

/* ---------- Shield (anti-bot gate) ---------- */
.shield {
  position: fixed; inset: 0; z-index: 120;
  display: grid; place-items: center;
  background: radial-gradient(60% 50% at 50% 45%, #111 0%, #050505 70%);
  transition: opacity .6s var(--ease-out), visibility .6s;
}
.shield.done { opacity: 0; visibility: hidden; }
.shield.skip-anim { transition: none; }
.shield-card { width: min(380px, calc(100vw - 32px)); text-align: center; }
.shield-mark {
  width: 56px; height: 56px; color: #f7f7f7;
  padding: 10px; border-radius: 16px; border: 1px solid var(--border-2); background: rgba(255, 255, 255, .03);
}
.shield-mark path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw 1.2s var(--ease-out) .1s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.shield-title { margin: 22px 0 6px; font-size: 18px; font-weight: 600; }
.shield-sub { margin: 0 0 22px; color: var(--text-2); font-size: 14px; }
.shield-bar { height: 3px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.shield-bar span { display: block; height: 100%; width: 100%; background: #f7f7f7; transform-origin: left; transform: scaleX(var(--p)); transition: --p .2s linear; }
.shield-meta { display: flex; justify-content: space-between; margin: 12px 0 0; font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.shield-noscript { position: absolute; bottom: 32px; left: 0; right: 0; text-align: center; color: var(--text-2); }

/* ---------- Consent ---------- */
.consent {
  position: fixed; inset: 0; z-index: 110;
  display: grid; place-items: end center; padding: 16px;
  background: rgba(0, 0, 0, .45);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  animation: fade .4s var(--ease-out);
}
.consent[hidden] { display: none; }
.consent.closing { animation: fade-out .3s var(--ease-out) forwards; }
.consent.closing .consent-card { animation: card-out .3s var(--ease-out) forwards; }
@keyframes fade { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes card-in { from { opacity: 0; transform: translateY(24px) scale(.98); } }
@keyframes card-out { to { opacity: 0; transform: translateY(16px) scale(.98); } }
.consent-card {
  width: min(480px, 100%); margin-bottom: max(16px, 4vh);
  padding: 24px; border-radius: 22px;
  background: var(--glass-strong); border: 1px solid var(--border-2);
  backdrop-filter: saturate(140%) blur(24px); -webkit-backdrop-filter: saturate(140%) blur(24px);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8);
  animation: card-in .55s var(--ease-out);
}
.consent-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid var(--border); }
.consent-card h2 { margin: 14px 0 6px; font-size: 20px; letter-spacing: -.01em; }
.consent-card p { margin: 0; color: var(--text-2); font-size: 14px; }
.consent-card a { color: var(--text); text-underline-offset: 3px; }
.consent-options { margin: 18px 0; display: grid; gap: 8px; }
.consent-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .035); border: 1px solid var(--border);
  position: relative; cursor: default;
}
label.consent-row { cursor: pointer; }
.consent-row strong { display: block; font-size: 14px; }
.consent-row span:not(.switch):not(.consent-always) { display: block; font-size: 12.5px; color: var(--text-3); margin-top: 2px; }
.consent-always { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.consent-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.consent-actions .button { flex: 1 1 160px; }

.switch-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch {
  flex: none; width: 40px; height: 24px; border-radius: 99px; position: relative;
  background: rgba(255, 255, 255, .12); transition: background .3s var(--ease-out);
}
.switch::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: #f7f7f7; transition: transform .35s var(--ease-out), background .3s;
}
.switch-input:checked + .switch { background: #f7f7f7; }
.switch-input:checked + .switch::after { transform: translateX(16px); background: #0a0a0a; }
.switch-input:focus-visible + .switch { outline: 2px solid #f7f7f7; outline-offset: 3px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  height: 68px; padding: 0 var(--gutter);
  transition: background .35s, border-color .35s, height .35s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  height: 60px;
  background: rgba(8, 8, 8, .62);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border-bottom-color: var(--border);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; text-decoration: none; letter-spacing: -.01em; }
.brand svg { width: 30px; height: 30px; }
.links { display: flex; gap: 4px; margin: 0 auto; }
.links a {
  padding: 8px 12px; border-radius: 10px; text-decoration: none; color: var(--text-2); font-size: 14px;
  transition: color .2s, background .2s;
}
.links a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.menu { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border); background: rgba(255, 255, 255, .04); cursor: pointer; position: relative; }
.menu span { position: absolute; left: 13px; right: 13px; height: 1.6px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease-out); }
.menu span:first-child { top: 17px; }
.menu span:last-child { top: 25px; }
.menu[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.drawer {
  position: fixed; top: 68px; left: 12px; right: 12px; z-index: 49;
  display: grid; gap: 2px; padding: 8px; border-radius: 18px;
  background: var(--glass-strong); border: 1px solid var(--border-2);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  animation: card-in .35s var(--ease-out);
}
.drawer[hidden] { display: none; }
.drawer a { padding: 14px; border-radius: 12px; text-decoration: none; font-weight: 500; }
.drawer a:hover { background: rgba(255, 255, 255, .06); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: grid; place-items: center; padding: 120px var(--gutter) 96px;
  isolation: isolate;
}
.world { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; display: block; }
.hero-veil {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(70% 55% at 50% 48%, rgba(5, 5, 5, .55) 0%, rgba(5, 5, 5, 0) 70%),
    linear-gradient(180deg, rgba(5, 5, 5, .55) 0%, rgba(5, 5, 5, 0) 25%, rgba(5, 5, 5, 0) 60%, var(--bg) 100%);
}
.hero-inner { max-width: 980px; text-align: center; display: grid; justify-items: center; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 26px;
  padding: 7px 14px; border-radius: 99px; font-size: 13px; color: var(--text-2);
  background: rgba(255, 255, 255, .05); border: 1px solid var(--border-2);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: #f7f7f7; box-shadow: 0 0 0 0 rgba(247, 247, 247, .6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(247, 247, 247, 0); } 100% { box-shadow: 0 0 0 0 rgba(247, 247, 247, 0); } }
.hero-title {
  margin: 0; font-family: var(--display); font-weight: 800;
  font-size: clamp(48px, 10.5vw, 150px); line-height: .95; letter-spacing: -.04em;
  text-shadow: 0 10px 60px rgba(0, 0, 0, .55);
}
.hero-title em { font-style: normal; color: #8c8c8c; }
.split { display: block; white-space: nowrap; }
.split .ch { display: inline-block; opacity: 0; filter: blur(14px); transform: translateY(.18em); transition: opacity .9s var(--ease-out), filter .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: calc(var(--i) * 38ms + 150ms); }
.split .ch.sp { width: .24em; }
.ready .split .ch { opacity: 1; filter: none; transform: none; }
.hero-sub { max-width: 600px; margin: 28px 0 34px; color: var(--text-2); font-size: clamp(16px, 1.6vw, 18.5px); text-wrap: balance; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

.scroll-cue { position: absolute; bottom: 28px; left: 50%; width: 26px; height: 42px; margin-left: -13px; border-radius: 99px; border: 1.5px solid var(--border-2); }
.scroll-cue span { position: absolute; top: 8px; left: 50%; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: #f7f7f7; animation: cue 1.8s var(--ease-io) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Floating HUD — recreated from the in-game Lexon HUD */
.hud-float { position: absolute; z-index: 0; pointer-events: none; transition: transform .8s var(--ease-out); opacity: 0; animation: hud-in 1.2s var(--ease-out) forwards; }
.hf-keys { top: 21%; left: 6%; animation-delay: .9s; }
.hf-effects { top: 31%; right: 5%; animation-delay: 1s; }
.hf-ft { top: 54%; right: 9%; animation-delay: 1.15s; }
.hf-target { bottom: 17%; left: 7%; animation-delay: 1.25s; }
.hf-armor { bottom: 15%; right: 9%; animation-delay: 1.35s; }
.hf-notify { bottom: 92px; left: 50%; margin-left: -110px; width: 220px; display: flex; justify-content: center; animation-delay: 1.5s; }
@keyframes hud-in { from { opacity: 0; filter: blur(8px); } to { opacity: 1; filter: none; } }

.hud-panel, .hud-targethud, .hud-armorhud, .hud-notify {
  background: rgba(17, 17, 17, .9); border: 1px solid rgba(255, 255, 255, .07);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .7);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', system-ui, sans-serif; color: #e9e9e9;
}
.hud-panel { min-width: 186px; padding: 10px 12px 11px; border-radius: 11px; }
.hud-title { display: flex; justify-content: space-between; margin: 0 0 7px; font-size: 11.5px; font-weight: 600; color: #e2e2e2; }
.hud-title span { font-weight: 500; color: #8a8a8a; font-variant-numeric: tabular-nums; }
.hud-line { display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 12px; color: #b4b4b4; line-height: 1.85; }
.hud-key { font-size: 11px; color: #8a8a8a; }
.hud-x { font-size: 10.5px; color: #8a8a8a; }
.ft-item { display: inline-flex; align-items: center; gap: 7px; color: #e2e2e2; }
.ft-ico { width: 11px; height: 11px; border-radius: 50%; background: radial-gradient(circle at 50% 50%, #1d3b22 0 28%, #6ee07a 30% 62%, #2c7a3a 64%); box-shadow: 0 0 6px rgba(110, 224, 122, .45); }

.hud-targethud { display: flex; align-items: center; gap: 11px; min-width: 238px; padding: 9px 14px 9px 10px; border-radius: 26px; border-color: rgba(255, 255, 255, .1); }
.pix-head { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; flex: none; }
.pix-head canvas { width: 100%; height: 100%; image-rendering: pixelated; display: block; }
.th-body { flex: 1; min-width: 0; }
.th-top { display: flex; justify-content: space-between; align-items: baseline; }
.th-top b { font-size: 15px; font-weight: 600; color: #f4f4f4; }
.th-top span { font-size: 15px; color: #cfcfcf; font-variant-numeric: tabular-nums; }
.th-armor { margin: 3px 0 6px; }
.th-bar { height: 4px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.th-bar span { display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, #f0a17a, #f6c9a6); transition: width .6s var(--ease-out); }

.armor-set { display: flex; }
.armor-set.mini { gap: 5px; }
.armor-set.mini svg { width: 11px; height: 11px; }
.hud-armorhud { gap: 16px; padding: 11px 15px 9px; border-radius: 14px; }
.hud-armorhud .piece { display: grid; justify-items: center; gap: 4px; }
.hud-armorhud svg { width: 26px; height: 26px; }
.hud-armorhud b { font-size: 12px; font-weight: 500; color: #cfcfcf; font-variant-numeric: tabular-nums; }
.armor-set svg { image-rendering: pixelated; shape-rendering: crispEdges; }

.hud-notify {
  display: inline-flex; align-items: center; gap: 9px; height: 30px; padding: 0 14px 0 12px; border-radius: 99px;
  font-size: 12.5px; font-weight: 600; color: #f1f1f1; white-space: nowrap;
  transition: opacity .35s var(--ease-out), transform .45s var(--ease-out);
}
.hud-notify i { width: 6px; height: 6px; border-radius: 50%; background: #f2a77c; box-shadow: 0 0 8px rgba(242, 167, 124, .6); }
.hud-notify.out { opacity: 0; transform: translateY(8px) scale(.96); }

/* ---------- Sections ---------- */
.section { position: relative; max-width: var(--maxw); margin: 0 auto; padding: clamp(80px, 11vw, 140px) var(--gutter); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(36px, 5vw, 56px); }
.section-head.left { text-align: left; margin: 0; }
.eyebrow { margin: 0 0 14px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.section-head h2 { margin: 0; font-size: clamp(34px, 5.2vw, 60px); line-height: 1.04; letter-spacing: -.035em; font-weight: 600; text-wrap: balance; }
.section-head h2 .muted { color: var(--text-3); }
.section-head p:not(.eyebrow) { margin: 18px auto 0; color: var(--text-2); font-size: 17px; max-width: 560px; text-wrap: pretty; }
.section-head.left p:not(.eyebrow) { margin-left: 0; }

.reveal { opacity: 0; transform: translateY(22px); filter: blur(6px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out), filter .9s var(--ease-out); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; filter: none; }

/* ---------- GUI stage ---------- */
.gui-stage { display: grid; place-items: center; user-select: none; -webkit-user-select: none; }
.gui-legend { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; color: var(--text-3); font-size: 13.5px; }
.gui-legend kbd { margin-right: 6px; font-size: 11.5px; color: var(--text-2); }

/* Mask icon: the client's own glyphs, tinted with currentColor */
.mi {
  display: inline-block; flex: none; width: 15px; height: 15px; background: currentColor;
  -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat;
}
.mi.big { width: 22px; height: 22px; }

/* ---------- ClickGUI (dark, matches the in-game palette) ---------- */
.cgui {
  --gr: 10px;
  --gs: 1;
  --g-bg: #0a0a0a; --g-side: #0a0a0a; --g-card: #131313; --g-card-h: #181818;
  --g-border: #1e1e1e; --g-border-on: #6a6a6a;
  --g-text: #f4f4f4; --g-text-2: #a3a3a3; --g-text-3: #6c6c6c;
  --g-hover: rgba(255, 255, 255, .04); --g-sel: #1b1b1b; --g-sel-text: #ffffff; --g-bar: #f4f4f4;
  --g-track: #2b2b2b; --g-track-on: #f2f2f2; --g-knob: #d9d9d9; --g-knob-on: #121212;
  --g-field: #0e0e0e; --g-seg: #232323;
  --side-w: 178px;
  width: min(1000px, 100%); height: 590px;
  display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr);
  background: var(--g-bg); color: var(--g-text);
  border-radius: calc(var(--gr) + 12px);
  border: 1px solid var(--g-border);
  box-shadow: 0 30px 90px -30px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .04);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'Inter', system-ui, sans-serif;
  font-size: 13.5px;
  zoom: var(--gs);
  transition: grid-template-columns .42s var(--ease-out), border-radius .25s var(--ease-out);
  overflow: hidden;
}
.cgui.collapsed { --side-w: 60px; }
.cgui * { transition-property: background-color, color, border-color, opacity, transform; transition-duration: .35s; transition-timing-function: var(--ease-out); }

.cgui-side { display: flex; flex-direction: column; padding: 14px 10px 10px; background: var(--g-side); border-right: 1px solid var(--g-border); min-width: 0; overflow: hidden; }
.cgui-brand { display: flex; align-items: center; justify-content: space-between; padding: 2px 0 14px 8px; min-height: 46px; }
.cgui-word { font-size: 11px; font-weight: 600; letter-spacing: .36em; color: var(--g-text-2); clip-path: inset(0 100% 0 0); white-space: nowrap; }
.cgui-word.write { animation: write 1.5s var(--ease-out) forwards; }
@keyframes write { to { clip-path: inset(0 0 0 0); } }
.cgui-word { max-width: 120px; overflow: hidden; transition: opacity .25s var(--ease-out), max-width .42s var(--ease-out); }
.cgui-brand { transition: padding .42s var(--ease-out); }
.cgui.collapsed .cgui-word { opacity: 0; max-width: 0; }
.cgui.collapsed .cgui-brand { padding-left: 0; justify-content: center; }
.cgui-icon-btn {
  width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; flex: none;
  border: 0; background: transparent; color: var(--g-text-2); cursor: pointer; position: relative;
}
.cgui-icon-btn::after { content: ''; position: absolute; inset: -7px; }
.cgui-icon-btn:hover { background: var(--g-hover); color: var(--g-text); }
.cgui-icon-btn .mi { width: 14px; height: 14px; }
.cgui-collapse .mi { width: 11px; height: 11px; transform: rotate(-90deg); transition: transform .42s var(--ease-out); }
.cgui.collapsed .cgui-collapse .mi { transform: rotate(90deg); }

.cgui-nav { display: grid; gap: 2px; align-content: start; flex: 1; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; }
.cgui-nav hr { border: 0; height: 1px; background: var(--g-border); margin: 8px 8px; }
.cgui-cat {
  position: relative; display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 10px;
  height: 36px; padding: 0 10px; border-radius: calc(var(--gr) - 1px); border: 0; white-space: nowrap;
  background: transparent; color: var(--g-text-2); cursor: pointer; text-align: left; font: inherit; font-size: 14px;
  isolation: isolate;
}
.cgui-cat::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: var(--g-hover); opacity: 0; z-index: -1; transition: opacity .35s var(--ease-out); }
.cgui-cat::after { content: ''; position: absolute; left: -4px; top: 50%; width: 2px; height: 14px; margin-top: -7px; border-radius: 2px; background: var(--g-bar); opacity: 0; transform: scaleY(.3); transition: opacity .3s, transform .35s var(--ease-out); }
.cgui-cat:hover::before { opacity: 1; }
.cgui-cat .mi, .cgui-cat .ico { width: 15px; height: 15px; justify-self: center; }
.cgui-cat small { font-size: 11.5px; color: var(--g-text-3); font-variant-numeric: tabular-nums; }
.cgui-cat-label, .cgui-cat small { transition: opacity .25s var(--ease-out); }
.cgui.collapsed .cgui-cat-label, .cgui.collapsed .cgui-cat small { opacity: 0; }
.cgui-cat[aria-current="true"] { color: var(--g-sel-text); }
.cgui-cat[aria-current="true"]::before { opacity: 1; background: var(--g-sel); }
.cgui-cat[aria-current="true"]::after { opacity: 1; transform: none; }
.cgui-cat[aria-current="true"] small { color: var(--g-sel-text); opacity: .6; }
.cgui.collapsed .cgui-cat[aria-current="true"] small { opacity: 0; }

.cgui-profile { display: flex; align-items: center; gap: 10px; padding: 8px; margin-top: 8px; border-radius: calc(var(--gr) + 2px); background: var(--g-card); border: 1px solid var(--g-border); white-space: nowrap; }
.cgui-profile b { display: block; font-size: 13px; font-weight: 600; }
.cgui-profile span { display: block; font-size: 11px; color: var(--g-text-3); }
.cgui-profile-text { transition: opacity .25s var(--ease-out); }
.cgui.collapsed .cgui-profile { background: transparent; border-color: transparent; }
.cgui.collapsed .cgui-profile-text { opacity: 0; }
.cgui-avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--g-seg); color: var(--g-text-2); flex: none; }

.cgui-main { display: grid; grid-template-rows: auto 1fr auto; min-width: 0; min-height: 0; }
.cgui-top { display: flex; align-items: center; gap: 12px; padding: 14px 16px 10px 18px; position: relative; min-height: 56px; }
.cgui-title { display: flex; align-items: baseline; gap: 8px; font-size: 17px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.cgui-title small { font-size: 11.5px; font-weight: 500; color: var(--g-text-3); }
.cgui-search {
  flex: 1; max-width: 300px; margin-left: auto; display: flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 10px; border-radius: calc(var(--gr) - 1px);
  background: var(--g-field); border: 1px solid var(--g-border); color: var(--g-text-3);
  opacity: 0; transform: translateX(10px); pointer-events: none;
}
.cgui-search .mi { width: 13px; height: 13px; }
.cgui-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--g-text); font: inherit; font-size: 13px; }
.cgui-search input::placeholder { color: var(--g-text-3); }
.cgui-search input::-webkit-search-cancel-button { display: none; }
.cgui.searching .cgui-search { opacity: 1; transform: none; pointer-events: auto; }
.cgui-top-actions { display: flex; gap: 2px; margin-left: auto; }
.cgui.searching .cgui-top-actions { margin-left: 0; }

.cgui-page { position: relative; min-height: 0; overflow: hidden; }
.cgui-view {
  position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain;
  padding: 4px 16px 16px 18px; scrollbar-width: thin; scrollbar-color: var(--g-track) transparent;
  transition: opacity .26s var(--ease-out), transform .26s var(--ease-out) !important;
}
.cgui-view.enter { opacity: 0; transform: translateY(10px); }
.cgui-view.leave { opacity: 0; transform: translateY(-10px); pointer-events: none; }
.cgui-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; align-items: start; }
.cgui-col { display: grid; gap: 9px; min-width: 0; }
.cgui-empty { height: 100%; display: grid; place-items: center; text-align: center; color: var(--g-text-3); font-size: 13px; padding: 24px; }
.cgui-empty b { display: block; color: var(--g-text-2); font-size: 14px; margin-bottom: 4px; font-weight: 600; }
.cgui-empty code { background: var(--g-field); border-color: var(--g-border); color: var(--g-text-2); }

.cgui-foot { padding: 8px 18px 12px; font-size: 11.5px; color: var(--g-text-3); min-height: 34px; display: flex; align-items: center; }

/* Module card */
.mod {
  border-radius: var(--gr); background: var(--g-card); border: 1px solid var(--g-border);
  transition: border-color .4s var(--ease-out), background-color .3s var(--ease-out), border-radius .25s var(--ease-out), box-shadow .4s;
  animation: mod-in .42s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 22ms);
}
@keyframes mod-in { from { opacity: 0; transform: translateY(6px); } }
.mod:hover { background: var(--g-card-h); }
.mod.on { border-color: var(--g-border-on); }
.mod.binding { box-shadow: 0 0 0 3px color-mix(in srgb, var(--g-text) 12%, transparent); }
.mod-head { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 10px 0 12px; cursor: pointer; border-radius: inherit; }
.mod-chev { width: 16px; height: 16px; display: grid; place-items: center; color: var(--g-text-3); border: 0; background: none; padding: 0; cursor: pointer; flex: none; position: relative; }
.mod-chev::after { content: ''; position: absolute; inset: -12px -6px; }
.mod-chev .ico { width: 12px; height: 12px; stroke-width: 2.2; transform: rotate(-90deg); transition: transform .35s var(--ease-out); }
.mod.open .mod-chev .ico { transform: none; }
.mod-chev.ghost { visibility: hidden; }
@media (hover: none) { .mod-chev.ghost { visibility: visible; } }
.mod-name { flex: 1; min-width: 0; color: var(--g-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13.5px; }
.mod.on .mod-name { color: var(--g-text); }
.mod-key { font-size: 10.5px; color: var(--g-text-3); padding: 2px 5px; border-radius: 5px; background: var(--g-field); border: 1px solid var(--g-border); font-variant-numeric: tabular-nums; }

.tgl { flex: none; position: relative; width: 30px; height: 17px; border-radius: 99px; border: 0; padding: 0; background: var(--g-track); cursor: pointer; transition: background-color .3s var(--ease-out) !important; }
.tgl::before { content: ''; position: absolute; inset: -12px -8px; }
.tgl::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--g-knob); transition: transform .26s cubic-bezier(.3, .7, .4, 1), background-color .26s, box-shadow .26s;
}
.tgl[aria-checked="true"] { background: var(--g-track-on); transition-duration: .42s !important; }
.tgl[aria-checked="true"]::after { transform: translateX(13px); background: var(--g-knob-on); box-shadow: 0 0 0 2px color-mix(in srgb, var(--g-knob-on) 25%, transparent); transition-duration: .42s; transition-timing-function: var(--ease-out); }

.mod-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .36s var(--ease-out) !important; }
.mod.open .mod-body { grid-template-rows: 1fr; }
.mod-body > div { overflow: hidden; min-height: 0; }
.mod-settings { display: grid; gap: 12px; padding: 4px 12px 12px; border-top: 1px solid transparent; opacity: 0; transform: translateY(-4px); }
.mod.open .mod-settings { opacity: 1; transform: none; border-top-color: var(--g-border); padding-top: 12px; transition-delay: .05s; }

.set-label { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--g-text-2); margin-bottom: 6px; gap: 8px; }
.set-label output, .set-label .val { color: var(--g-text); font-variant-numeric: tabular-nums; font-size: 12px; }

.rng { --p: 0; width: 100%; height: 14px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; transition: --p .28s var(--ease-out) !important; }
.rng:focus-visible { outline-offset: 2px; }
.rng::-webkit-slider-runnable-track { height: 3px; border-radius: 99px; background: linear-gradient(90deg, var(--g-text) calc(var(--p) * 100%), var(--g-track) 0); }
.rng::-moz-range-track { height: 3px; border-radius: 99px; background: linear-gradient(90deg, var(--g-text) calc(var(--p) * 100%), var(--g-track) 0); }
.rng::-webkit-slider-thumb { -webkit-appearance: none; width: 10px; height: 10px; margin-top: -3.5px; border-radius: 50%; background: var(--g-text); border: 3px solid var(--g-card); box-shadow: 0 0 0 1px var(--g-text); }
.rng::-moz-range-thumb { width: 6px; height: 6px; border-radius: 50%; background: var(--g-text); border: 3px solid var(--g-card); box-shadow: 0 0 0 1px var(--g-text); }

.chk { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; font-size: 12.5px; color: var(--g-text-2); text-align: left; min-height: 20px; }
.chk-box { flex: none; width: 15px; height: 15px; border-radius: 5px; border: 1.5px solid var(--g-track); position: relative; display: grid; place-items: center; transition: background-color .3s var(--ease-out), border-color .3s !important; }
.chk-box .ico { width: 11px; height: 11px; stroke-width: 3; color: var(--g-card); stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .35s var(--ease-out) !important; }
.chk[aria-checked="true"] { color: var(--g-text); }
.chk[aria-checked="true"] .chk-box { background: var(--g-text); border-color: var(--g-text); }
.chk[aria-checked="true"] .chk-box .ico { stroke-dashoffset: 0; transition-delay: .08s !important; }

.seg { display: flex; padding: 2px; gap: 2px; border-radius: calc(var(--gr) - 2px); background: var(--g-field); border: 1px solid var(--g-border); position: relative; }
.seg button { flex: 1; min-width: 0; height: 26px; border: 0; border-radius: calc(var(--gr) - 4px); background: transparent; color: var(--g-text-3); font-size: 12px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 6px; }
.seg button:hover { color: var(--g-text-2); }
.seg button[aria-checked="true"] { background: var(--g-seg); color: var(--g-text); box-shadow: 0 1px 2px rgba(0, 0, 0, .15); }

.swatches { display: flex; gap: 7px; align-items: center; padding: 7px 8px; border-radius: calc(var(--gr) - 2px); background: var(--g-field); border: 1px solid var(--g-border); }
.swatch { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(128, 128, 128, .35); background: var(--c); cursor: pointer; padding: 0; position: relative; transition: transform .3s var(--ease-out) !important; }
.swatch::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--g-text); opacity: 0; transform: scale(.8); transition: opacity .3s, transform .35s var(--ease-out); }
.swatch[aria-checked="true"]::after { opacity: 1; transform: none; }
.swatch:hover { transform: scale(1.08); }
.swatch-pick { margin-left: auto; width: 22px; height: 22px; border: 0; padding: 0; background: none; color: var(--g-text-3); display: grid; place-items: center; cursor: pointer; position: relative; overflow: hidden; border-radius: 6px; }
.swatch-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.swatch-pick .mi { width: 14px; height: 14px; }

.bind { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px; border-radius: 99px; border: 1px solid var(--g-border); background: var(--g-field); color: var(--g-text-2); font-size: 12px; cursor: pointer; }
.bind .ico { width: 13px; height: 13px; }
.bind:hover { color: var(--g-text); }
.bind.wait .bind-key::after { content: ''; display: inline-block; width: 1.4em; text-align: left; animation: dots 1.2s steps(4) infinite; }
@keyframes dots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }
.set-group { margin: 4px 0 -4px; font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--g-text-3); }

/* Rows that only appear while a related checkbox is on */
.cond { display: grid; grid-template-rows: 0fr; margin-top: -12px; transition: grid-template-rows .32s var(--ease-out), margin-top .32s var(--ease-out) !important; }
.cond > div { overflow: hidden; min-height: 0; opacity: 0; transition: opacity .25s var(--ease-out) !important; }
.cond.show { grid-template-rows: 1fr; margin-top: 0; }
.cond.show > div { opacity: 1; transition-delay: .06s !important; }

/* Dual-handle range slider (min – max), like the client's range rows */
.rng2-track { position: relative; height: 14px; }
.rng2-track::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 99px;
  background: linear-gradient(90deg, var(--g-track) calc(var(--a) * 100%), var(--g-text) calc(var(--a) * 100%) calc(var(--b) * 100%), var(--g-track) calc(var(--b) * 100%)); }
.rng2-in { position: absolute; inset: 0; width: 100%; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; pointer-events: none; }
.rng2-in::-webkit-slider-runnable-track { height: 3px; background: transparent; }
.rng2-in::-moz-range-track { height: 3px; background: transparent; }
.rng2-in::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; cursor: pointer; width: 10px; height: 10px; margin-top: -3.5px; border-radius: 50%; background: var(--g-text); border: 3px solid var(--g-card); box-shadow: 0 0 0 1px var(--g-text); }
.rng2-in::-moz-range-thumb { pointer-events: auto; cursor: pointer; width: 6px; height: 6px; border-radius: 50%; background: var(--g-text); border: 3px solid var(--g-card); box-shadow: 0 0 0 1px var(--g-text); }

/* Mode selector: header with title/subtitle, opens into tiles */
.sel { border-radius: calc(var(--gr) - 2px); background: var(--g-field); border: 1px solid var(--g-border); }
.sel-head { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 40px; padding: 7px 10px; border: 0; background: none; cursor: pointer; text-align: left; font: inherit; color: var(--g-text-2); }
.sel-text { flex: 1; min-width: 0; }
.sel-text b { display: block; font-size: 12.5px; font-weight: 600; color: var(--g-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sel-text small { display: block; font-size: 11px; color: var(--g-text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sel-val { font-size: 12px; color: var(--g-text-2); white-space: nowrap; max-width: 46%; overflow: hidden; text-overflow: ellipsis; }
.sel-head .ico { width: 12px; height: 12px; stroke-width: 2.2; color: var(--g-text-3); transition: transform .35s var(--ease-out) !important; }
.sel.open .sel-head .ico { transform: rotate(180deg); }
.sel-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .32s var(--ease-out) !important; }
.sel.open .sel-body { grid-template-rows: 1fr; }
.sel-body > div { overflow: hidden; min-height: 0; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 0 6px 6px; }
.tiles button { min-height: 28px; padding: 0 8px; border-radius: calc(var(--gr) - 4px); border: 1px solid transparent; background: var(--g-card); color: var(--g-text-3); font: inherit; font-size: 12px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tiles button:hover { color: var(--g-text-2); border-color: var(--g-border); }
.tiles button[aria-checked="true"] { color: var(--g-text); border-color: var(--g-border-on); background: var(--g-seg); }

.set-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--g-text-2); }

/* ---------- Combat highlights ---------- */
.combat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.combat-card {
  display: flex; flex-direction: column; align-items: flex-start; padding: 26px; border-radius: 22px; background: #0b0b0b;
  transition: border-color .35s, background .35s, opacity .9s var(--ease-out), transform .9s var(--ease-out), filter .9s var(--ease-out);
}
.combat-card:hover { border-color: var(--border-2); background: #0e0e0e; }
.combat-top { display: flex; align-items: center; justify-content: space-between; width: 100%; color: var(--text); }
.combat-tag { font-size: 12px; color: var(--text-3); letter-spacing: .08em; text-transform: uppercase; }
.combat-card h3 { margin: 22px 0 10px; font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.combat-card p { margin: 0; color: var(--text-2); font-size: 15px; flex: 1; }
.chips { list-style: none; padding: 0; margin: 18px 0 22px; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: 12.5px; color: var(--text-2); padding: 5px 10px; border-radius: 99px; border: 1px solid var(--border); background: rgba(255, 255, 255, .03); }

/* ---------- Atmosphere / Sky Studio viewer ---------- */
.sky-viewer { display: grid; gap: 14px; max-width: 1040px; margin: 0 auto; }
.sky-tabs { justify-self: center; display: inline-flex; padding: 4px; gap: 4px; border-radius: 99px; background: rgba(255, 255, 255, .04); border: 1px solid var(--border); }
.sky-tabs button { min-height: 38px; padding: 0 18px; border-radius: 99px; border: 0; background: transparent; color: var(--text-2); font-size: 14px; font-weight: 500; cursor: pointer; transition: background .3s var(--ease-out), color .3s; }
.sky-tabs button:hover { color: var(--text); }
.sky-tabs button[aria-selected="true"] { background: #f7f7f7; color: #0a0a0a; }
.sky-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 26px; overflow: hidden; border: 1px solid var(--border); background: #08080a; box-shadow: 0 40px 120px -40px rgba(0, 0, 0, .9); }
.sky-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06); transition: opacity 1.1s var(--ease-out), transform 7s linear;
}
.sky-img.is-on { opacity: 1; transform: scale(1); }
.sky-frame::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .55)); }
.sky-caption {
  position: absolute; left: 20px; bottom: 22px; z-index: 1; max-width: min(460px, calc(100% - 40px));
  padding: 12px 16px; border-radius: 16px; background: rgba(12, 12, 12, .45); border: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  transition: opacity .35s var(--ease-out), transform .45s var(--ease-out);
}
.sky-caption.swap { opacity: 0; transform: translateY(6px); }
.sky-caption b { display: block; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 28px; line-height: 1.1; }
.sky-caption span { display: block; margin-top: 2px; color: rgba(255, 255, 255, .78); font-size: 14px; }
.sky-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; z-index: 1; background: rgba(255, 255, 255, .08); }
.sky-progress span { display: block; height: 100%; width: 100%; background: rgba(255, 255, 255, .7); transform-origin: left; transform: scaleX(0); }
.sky-progress span.run { animation: sky-progress var(--dur, 6s) linear forwards; }
@keyframes sky-progress { to { transform: scaleX(1); } }
.sky-thumbs { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; justify-content: center; }
.sky-thumbs::-webkit-scrollbar { display: none; }
.sky-thumb {
  flex: none; width: 116px; padding: 0; border: 0; background: none; cursor: pointer; color: var(--text-3); text-align: left;
  animation: mod-in .45s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 35ms);
}
.sky-thumb img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); opacity: .55; transition: opacity .35s, border-color .35s, transform .45s var(--ease-out); }
.sky-thumb span { display: block; margin-top: 6px; font-size: 12.5px; transition: color .3s; }
.sky-thumb:hover img { opacity: .85; }
.sky-thumb[aria-selected="true"] img { opacity: 1; border-color: rgba(255, 255, 255, .55); transform: translateY(-2px); }
.sky-thumb[aria-selected="true"] span { color: var(--text); }

/* ---------- Inside: module overview ---------- */
.inside-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.inside-card { padding: 24px; border-radius: 22px; background: #0b0b0b; border: 1px solid var(--border); transition: border-color .35s, opacity .9s var(--ease-out), transform .9s var(--ease-out), filter .9s var(--ease-out); }
.inside-card:hover { border-color: var(--border-2); }
.inside-card header { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.inside-card header.sub { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--border); }
.inside-card header .mi { width: 18px; height: 18px; color: var(--text); }
.inside-card h3 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.inside-card header small { margin-left: auto; color: var(--text-3); font-size: 13px; font-variant-numeric: tabular-nums; }
.inside-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.inside-card li b { display: block; font-size: 14.5px; font-weight: 600; }
.inside-card li span { display: block; margin-top: 2px; color: var(--text-2); font-size: 14px; line-height: 1.5; }
.inside-card code { font-size: 12px; }

/* ---------- Release ---------- */
.release { max-width: 820px; margin: 0 auto; padding: clamp(32px, 5vw, 56px); border-radius: 28px; text-align: center; background: radial-gradient(90% 120% at 50% 0%, #141414, #090909); }
.release h2 { margin: 0; font-size: clamp(30px, 4.4vw, 48px); letter-spacing: -.035em; line-height: 1.05; font-weight: 600; }
.release p:not(.eyebrow) { margin: 16px auto 28px; max-width: 540px; color: var(--text-2); font-size: 16.5px; }
.release-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- FAQ ---------- */

.faq-list.narrow { max-width: 780px; margin: 0 auto; }
.faq-list { display: grid; gap: 10px; }
.faq { border-radius: 16px; background: #0b0b0b; border: 1px solid var(--border); transition: border-color .3s, opacity .9s var(--ease-out), transform .9s var(--ease-out), filter .9s var(--ease-out); interpolate-size: allow-keywords; }
.faq[open] { border-color: var(--border-2); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; cursor: pointer; font-weight: 500; font-size: 15.5px; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { color: var(--text-3); transition: transform .35s var(--ease-out); }
.faq[open] summary .ico { transform: rotate(45deg); color: var(--text); }
.faq::details-content { block-size: 0; overflow: hidden; transition: block-size .35s var(--ease-out), content-visibility .35s allow-discrete; }
.faq[open]::details-content { block-size: auto; }
.faq-a p { margin: 0; padding: 0 20px 18px; color: var(--text-2); font-size: 15px; }

/* ---------- Final CTA ---------- */
.cta-final { position: relative; isolation: isolate; overflow: hidden; min-height: 560px; display: grid; place-items: center; padding: 120px var(--gutter); text-align: center; }
.cta-veil { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--bg) 0%, rgba(5, 5, 5, .25) 35%, rgba(5, 5, 5, .45) 70%, var(--bg) 100%); }
.cta-inner { max-width: 760px; display: grid; justify-items: center; }
.serif-xl { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 9vw, 120px); line-height: .95; letter-spacing: -.025em; text-shadow: 0 10px 50px rgba(0, 0, 0, .6); }
.serif-xl em { color: #d8d8d8; }
.cta-inner p { margin: 22px 0 30px; color: var(--text-2); font-size: 17px; max-width: 480px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 36px var(--gutter) 44px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-brand p { margin: 10px 0 0; color: var(--text-3); font-size: 13.5px; }
.footer-links { display: flex; gap: 6px 20px; flex-wrap: wrap; }
.footer-links a, .footer-links button { color: var(--text-2); font-size: 14px; text-decoration: none; padding: 10px 0; transition: color .2s; }
.footer-links a:hover, .footer-links button:hover { color: var(--text); }

/* ---------- Legal page ---------- */
.legal { max-width: 760px; padding-top: 140px; }
.legal h1 { margin: 0; font-size: clamp(36px, 6vw, 56px); letter-spacing: -.035em; line-height: 1.05; }
.legal .lead { font-size: 18px; color: var(--text-2); margin: 18px 0 40px; }
.legal h2 { margin: 40px 0 10px; font-size: 21px; letter-spacing: -.01em; }
.legal p, .legal li { color: var(--text-2); font-size: 16px; }
.legal ul { padding-left: 20px; display: grid; gap: 10px; }
.legal b { color: var(--text); }
.legal-back { margin-top: 48px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hud-float { display: none; }
}
@media (max-width: 960px) {
  .links { display: none; }
  .menu { display: block; }
  .combat-grid, .inside-grid { grid-template-columns: 1fr; }
  .sky-thumbs { justify-content: flex-start; }
  .cgui-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .gui-stage { place-items: stretch; }
  .cgui, .cgui.collapsed { width: 100%; height: 620px; grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .cgui-collapse { display: none; }
  .cgui.collapsed .cgui-word, .cgui.collapsed .cgui-cat-label, .cgui.collapsed .cgui-cat small { opacity: 1; }
  .cgui-side { border-right: 0; border-bottom: 1px solid var(--g-border); padding: 10px 8px 8px; }
  .cgui-brand { padding-bottom: 8px; min-height: 0; }
  .cgui-nav { display: flex; gap: 4px; overflow-x: auto; padding: 0 4px 2px 6px; }
  .cgui-nav hr { width: 1px; height: auto; margin: 6px 4px; flex: none; }
  .cgui-cat { flex: none; grid-template-columns: 16px auto auto; height: 36px; }
  .cgui-cat::after { left: 50%; top: auto; bottom: -1px; width: 14px; height: 2px; margin: 0 0 0 -7px; }
  .cgui-profile { display: none; }
  .cgui-cols { grid-template-columns: minmax(0, 1fr); }
  .cgui-search { position: absolute; left: 12px; right: 56px; max-width: none; }
  .cgui.searching .cgui-title { opacity: 0; }
  .mod-head { height: 46px; }
  .hero { padding-top: 100px; }
  .sky-frame { aspect-ratio: 4 / 3; border-radius: 20px; }
  .sky-caption { left: 12px; bottom: 14px; padding: 10px 12px; }
  .sky-caption b { font-size: 22px; }
  .sky-caption span { font-size: 13px; }
  .sky-thumb { width: 96px; }
}
@media (max-width: 420px) {
  .hero-cta .button { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
  .reveal, .split .ch { opacity: 1; transform: none; filter: none; }
  .cgui-word { clip-path: none; }
}
