:root {
  --bg-0: #0C0D0F;
  --bg-1: #121417;
  --panel: #181B1F;
  --panel-2: #1F2328;
  --text: #F1F3F5;
  --muted: #8D97A5;
  --muted-2: #66707C;
  --nebula-blue: #4AA8FF;
  --plot-green: #46C85A;
  --warm: #F3C44E;
  --danger: #FF6A67;
  --line: rgba(241, 243, 245, .16);
  --line-strong: rgba(241, 243, 245, .32);
  --grid-line: rgba(141, 151, 165, .07);
  --max: 1440px;
  --gutter: clamp(20px, 5vw, 72px);
  --header-h: 66px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --sans: Inter, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}

* { box-sizing: border-box; }
html {
  background: var(--bg-0);
  color-scheme: dark;
  scroll-behavior: smooth;
  scrollbar-color: #3d4650 #0c0d0f;
}
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 82% 8%, rgba(74,168,255,.08), transparent 25%),
    radial-gradient(circle at 18% 66%, rgba(70,200,90,.045), transparent 24%),
    var(--bg-0);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::selection { background: rgba(74,168,255,.35); color: var(--text); }
img { display: block; max-width: 100%; image-rendering: auto; }
button, a { font: inherit; }
a { color: inherit; }
button { border-radius: 0; }
figure, p, h1, h2, h3, ol, ul { margin-top: 0; }

:focus-visible { outline: 2px solid var(--nebula-blue); outline-offset: 4px; }
.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--text);
  color: var(--bg-0);
  text-decoration: none;
  font: 700 12px/1 var(--mono);
}
.skip-link:focus { top: 16px; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  height: var(--header-h);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
  padding: 0 var(--gutter);
  border-bottom: 1px solid rgba(241,243,245,.08);
  background: linear-gradient(to bottom, rgba(12,13,15,.94), rgba(12,13,15,.72));
  backdrop-filter: blur(14px);
}
.brand {
  text-decoration: none;
  font: 900 16px/1 var(--sans);
  letter-spacing: -.04em;
}
.brand span { color: var(--nebula-blue); font-weight: 700; }
.site-nav { justify-self: center; display: flex; gap: clamp(18px, 3vw, 42px); }
.site-nav a {
  position: relative;
  text-decoration: none;
  color: var(--muted);
  font: 600 12px/1 var(--sans);
  letter-spacing: .05em;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 1px;
  background: var(--nebula-blue);
  transition: right 180ms ease;
}
.site-nav a:hover { color: var(--text); }
.site-nav a:hover::after { right: 0; }
.dev-chip {
  justify-self: end;
  padding: 7px 9px;
  border: 1px solid rgba(243,196,78,.5);
  color: var(--warm);
  font: 700 10px/1 var(--mono);
  letter-spacing: .13em;
}

.scene {
  position: relative;
  min-height: 100vh;
  padding: clamp(96px, 12vw, 180px) var(--gutter);
  overflow: clip;
}
.scene > * { width: min(100%, var(--max)); margin-inline: auto; }
.scene-kicker {
  position: relative;
  z-index: 3;
  margin-bottom: 24px;
  color: var(--nebula-blue);
  font: 700 12px/1.2 var(--mono);
  letter-spacing: .18em;
  text-transform: uppercase;
}
.scene-kicker::before { content: "✦"; margin-right: 10px; }
.scene-lead {
  max-width: 780px;
  color: var(--muted);
  font-size: clamp(16px, 1.45vw, 22px);
  line-height: 1.8;
}
.section-heading { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr); gap: 40px; align-items: end; }
.section-heading h2 { margin-bottom: 0; }
.section-heading p { margin: 0; max-width: 560px; justify-self: end; color: var(--muted); line-height: 1.8; }

.game-window img { width: 100%; height: auto; image-rendering: auto; }
