:root {
  --bg: #0A0C10;
  --bg-soft: #12151C;
  --panel: #12151C;
  --panel-strong: #161A22;
  --text: #C5CBD6;
  --muted: #5A6373;
  --line: #1C2128;
  --cyan: #4DE3D4;
  --amber: #4DE3D4;
  --red: #e0556a;
  --green: #4DE3D4;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  --max: 1180px;
  --header: 76px;
  --grotesk: "Space Grotesk", system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header);
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 25% 0%, rgba(77, 227, 212, 0.14), transparent 30rem),
    radial-gradient(circle at 85% 10%, rgba(225, 77, 95, 0.12), transparent 26rem),
    linear-gradient(180deg, #050608 0%, #090b0f 48%, #050608 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

body.is-lite .hero-video,
body.is-lite .trailer video {
  display: none;
}

body.is-lite .confetti-canvas,
body.is-lite .character-stage::after,
body.is-lite .character-scan,
body.is-lite .character-reticle {
  display: none;
}

body.is-lite .reveal {
  transition-duration: 220ms;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, transparent, black 12%, black 82%, transparent);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 220;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--green), var(--amber));
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

img,
svg,
canvas,
video {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

.skip-link,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.skip-link:focus {
  top: 1rem;
  left: 1rem;
  z-index: 999;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  clip: auto;
  color: #041017;
  background: var(--cyan);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 220ms ease, border-color 220ms ease, backdrop-filter 220ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(5, 6, 8, 0.82);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(var(--max), calc(100% - 32px));
  min-height: var(--header);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-logo {
  width: 2.35rem;
  height: 2.35rem;
  object-fit: cover;
  border: 1px solid rgba(185, 226, 255, 0.42);
  box-shadow: 0 0 28px rgba(77, 227, 212, 0.32);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-menu a {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.nav-menu a::after {
  display: none;
}

.nav-menu a:hover,
.nav-menu a.is-active,
.nav-menu a[aria-current="true"] {
  color: var(--text);
}

.nav-menu a:hover::after,
.nav-menu a.is-active::after,
.nav-menu a[aria-current="true"]::after {
  display: none;
}

.language-switcher {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.25rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
}

.language-switcher button {
  min-width: 34px;
  min-height: 30px;
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.language-switcher button.is-active {
  color: #041017;
  background: var(--cyan);
}

.language-switcher button[aria-pressed="true"] {
  color: #041017;
  background: var(--cyan);
}

.performance-toggle {
  min-height: 38px;
  border: 1px solid rgba(77, 227, 212, 0.28);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
  padding: 0 0.75rem;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sound-toggle {
  min-height: 38px;
  border: 1px solid rgba(77, 227, 212, 0.28);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
  padding: 0 0.7rem;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.sound-toggle[aria-pressed="true"] {
  color: var(--cyan);
  border-color: rgba(77, 227, 212, 0.7);
  box-shadow: inset 0 0 12px rgba(77, 227, 212, 0.18), 0 0 14px rgba(77, 227, 212, 0.22);
}

.performance-toggle[aria-pressed="true"] {
  color: #031018;
  background: var(--green);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.hero {
  position: relative;
  min-height: 92svh;
  padding: calc(var(--header) + 7rem) max(24px, calc((100vw - var(--max)) / 2)) 5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: end;
  gap: 2rem;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-video,
.hero-canvas,
.hero-vignette {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-video {
  z-index: -4;
  object-fit: cover;
  opacity: 0.72;
  filter: saturate(0.92) contrast(1.08) brightness(0.78);
  transform: translateZ(0);
}

.hero-canvas {
  z-index: -3;
  mix-blend-mode: screen;
  opacity: 0.9;
  pointer-events: none;
}

.hero-vignette {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 6, 8, 0.92) 0%, rgba(5, 6, 8, 0.62) 40%, rgba(5, 6, 8, 0.18) 100%),
    linear-gradient(180deg, rgba(5, 6, 8, 0.14), #050608 95%);
}

.hero-content {
  max-width: 820px;
}

.hero-logo {
  width: clamp(86px, 10vw, 136px);
  height: clamp(86px, 10vw, 136px);
  object-fit: cover;
  margin-bottom: 1.4rem;
  border: 1px solid rgba(185, 226, 255, 0.34);
  box-shadow:
    0 0 44px rgba(77, 227, 212, 0.28),
    0 16px 60px rgba(0, 0, 0, 0.45);
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 9ch;
  margin-bottom: 1.25rem;
  font-size: clamp(4rem, 11vw, 9rem);
  line-height: 0.86;
  letter-spacing: 0;
  text-transform: uppercase;
}

h2 {
  max-width: 780px;
  margin-bottom: 1.2rem;
  font-size: clamp(2rem, 4.8vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.65rem;
  font-size: 1.1rem;
  letter-spacing: 0;
}

.hero-copy,
.section-copy p,
.section-heading p,
.feature-card p,
.roadmap p,
.modal-frame p {
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.16rem);
}

.hero-copy {
  max-width: 650px;
  margin-bottom: 2rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  border-color: rgba(77, 227, 212, 0.72);
  background: linear-gradient(135deg, rgba(77, 227, 212, 0.95), rgba(77, 227, 212, 0.88));
  color: #031018;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.055);
}

.button-secondary:hover {
  border-color: rgba(77, 227, 212, 0.65);
}

.button-ghost {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(5, 6, 8, 0.42);
  color: #dcecff;
}

.button-ghost:hover {
  border-color: rgba(225, 77, 95, 0.72);
}

.hero-panel {
  padding: 1.35rem;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-panel span,
.hero-panel small {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
}

.hero-panel strong {
  display: block;
  margin: 0.4rem 0 0.55rem;
  font-size: 1.45rem;
  line-height: 1.05;
}

.section {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(4.5rem, 9vw, 8rem) 0;
  content-visibility: auto;
  contain-intrinsic-size: 780px;
}

.character-section {
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(4.5rem, 8vw, 7rem) 0;
}

.character-heading {
  width: min(var(--max), 100%);
  margin: 0 auto 2rem;
}

.character-heading h2 {
  max-width: 920px;
}

.character-heading > p:last-child {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.16rem);
}

.character-viewport {
  overflow-x: auto;
  border: 1px solid rgba(77, 227, 212, 0.2);
  background: #080a0d;
  box-shadow: var(--shadow);
  scrollbar-color: var(--cyan) rgba(255, 255, 255, 0.08);
  scrollbar-width: thin;
}

.character-stage {
  --holo-rgb: 77, 227, 212;
  --scan-left: 44%;
  --scan-top: 13%;
  --scan-w: 25%;
  --scan-h: 84%;
  --reticle-x: 56%;
  --reticle-y: 50%;
  position: relative;
  min-width: 720px;
  aspect-ratio: 1700 / 984;
  isolation: isolate;
  overflow: hidden;
  cursor: crosshair;
}

.character-stage > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.78) contrast(1.06) brightness(0.82);
  transition: filter 500ms ease, transform 900ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.character-stage:hover > img {
  filter: saturate(0.92) contrast(1.08) brightness(0.88);
  transform: scale(1.006);
}

.character-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 6, 8, 0.12), transparent 30%, rgba(5, 6, 8, 0.44)),
    linear-gradient(90deg, rgba(5, 6, 8, 0.3), transparent 16%, transparent 84%, rgba(5, 6, 8, 0.3));
}

.character-stage::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  content: "";
  pointer-events: none;
  opacity: 0.22;
  background: repeating-linear-gradient(180deg, transparent 0 4px, rgba(77, 227, 212, 0.13) 5px);
  mix-blend-mode: screen;
}

.character-hotspot {
  position: absolute;
  left: var(--left);
  top: var(--top);
  z-index: 5;
  width: var(--width);
  height: var(--height);
  padding: 0;
  border: 0;
  color: var(--text);
  background: transparent;
  cursor: pointer;
}

.character-hotspot[data-character="mara"] { --left: 7.1%; --top: 19%; --width: 20%; --height: 78%; }
.character-hotspot[data-character="elias"] { --left: 26%; --top: 15%; --width: 24%; --height: 82%; }
.character-hotspot[data-character="noah"] { --left: 44%; --top: 13%; --width: 25%; --height: 84%; }
.character-hotspot[data-character="imani"] { --left: 76%; --top: 19%; --width: 17%; --height: 78%; }

.character-marker {
  position: absolute;
  left: 50%;
  bottom: 7%;
  width: 10px;
  height: 10px;
  border: 1px solid var(--cyan);
  background: rgba(5, 6, 8, 0.76);
  box-shadow: 0 0 0 6px rgba(77, 227, 212, 0.1), 0 0 24px rgba(77, 227, 212, 0.72);
  transform: translateX(-50%) rotate(45deg);
  transition: transform 220ms ease, background 220ms ease;
}

.character-hotspot-label {
  position: absolute;
  left: 50%;
  bottom: 10%;
  min-width: max-content;
  padding: 0.38rem 0.55rem;
  border-left: 2px solid var(--cyan);
  color: #eafaff;
  background: rgba(5, 10, 14, 0.82);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  transform: translate(-50%, 16px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.character-hotspot:hover .character-hotspot-label,
.character-hotspot:focus-visible .character-hotspot-label,
.character-hotspot.is-active .character-hotspot-label {
  opacity: 1;
  transform: translate(-50%, 0);
}

.character-hotspot:hover .character-marker,
.character-hotspot.is-active .character-marker {
  background: var(--cyan);
  transform: translateX(-50%) rotate(135deg) scale(1.2);
}

/* --- Mesh-Scan: Drahtnetz auf den echten Pixeln der Figur --- */
.character-scan {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  transition: opacity 220ms ease;
}

.character-stage.is-tracking .character-scan {
  opacity: 1;
}

.scan-net {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  --net-x: 50%;
  --net-y: 50%;
  filter: drop-shadow(0 0 5px rgba(var(--holo-rgb), 0.85));
  -webkit-mask-image: radial-gradient(circle 135px at var(--net-x) var(--net-y), #000 0, #000 24%, rgba(0, 0, 0, 0.72) 52%, rgba(0, 0, 0, 0.14) 100%);
  mask-image: radial-gradient(circle 135px at var(--net-x) var(--net-y), #000 0, #000 24%, rgba(0, 0, 0, 0.72) 52%, rgba(0, 0, 0, 0.14) 100%);
  animation: netPulse 1.8s ease-in-out infinite;
}

.scan-net line {
  stroke: rgb(var(--holo-rgb));
  stroke-width: 0.8;
  vector-effect: non-scaling-stroke;
  fill: none;
}

.scan-net circle {
  fill: rgb(var(--holo-rgb));
}

.scan-tag {
  position: absolute;
  padding: 0.18rem 0.34rem;
  color: rgb(var(--holo-rgb));
  background: rgba(4, 13, 18, 0.78);
  font-size: 0.5rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.scan-tag-id {
  left: var(--scan-left);
  top: var(--scan-top);
  transform: translateY(-135%);
}

.scan-tag-pct {
  left: calc(var(--scan-left) + var(--scan-w));
  top: calc(var(--scan-top) + var(--scan-h));
  transform: translate(-100%, 35%);
  font-variant-numeric: tabular-nums;
}

/* --- Reticle: Fadenkreuz folgt der Maus --- */
.character-reticle {
  position: absolute;
  left: var(--reticle-x);
  top: var(--reticle-y);
  z-index: 6;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.78);
  transition: opacity 160ms ease, transform 160ms ease, left 60ms linear, top 60ms linear;
  will-change: left, top;
}

.character-stage.is-tracking .character-reticle {
  opacity: 1;
  transform: scale(1);
}

.reticle-ring {
  position: absolute;
  inset: 16%;
  border: 1px dashed rgba(var(--holo-rgb), 0.85);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(var(--holo-rgb), 0.5), inset 0 0 9px rgba(var(--holo-rgb), 0.28);
  animation: reticleSpin 4.5s linear infinite;
}

.reticle-cross {
  position: absolute;
}

.reticle-cross-h {
  top: 50%;
  left: -12%;
  right: -12%;
  height: 1px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, rgb(var(--holo-rgb)) 0 36%, transparent 36% 64%, rgb(var(--holo-rgb)) 64% 100%);
}

.reticle-cross-v {
  left: 50%;
  top: -12%;
  bottom: -12%;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgb(var(--holo-rgb)) 0 36%, transparent 36% 64%, rgb(var(--holo-rgb)) 64% 100%);
}

.reticle-corner {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1px solid rgb(var(--holo-rgb));
  animation: reticlePulse 1.5s ease-in-out infinite;
}

.reticle-corner-tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.reticle-corner-tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.reticle-corner-bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.reticle-corner-br { bottom: 0; right: 0; border-left: 0; border-top: 0; }

@keyframes netPulse {
  50% { opacity: 0.6; }
}

@keyframes reticleSpin {
  to { transform: rotate(360deg); }
}

@keyframes reticlePulse {
  50% { opacity: 0.4; }
}

.character-readout {
  width: min(var(--max), 100%);
  min-height: 150px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 120px;
  align-items: center;
  gap: clamp(1.25rem, 4vw, 3.5rem);
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
}

.character-index span,
.character-profile > span {
  display: block;
  color: var(--cyan);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.character-index strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.5rem;
}

.character-profile h3 {
  margin: 0.3rem 0 0.55rem;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  text-transform: uppercase;
}

.character-profile p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
}

.character-status {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.character-status span {
  height: 42px;
  border: 1px solid rgba(77, 227, 212, 0.34);
  background: linear-gradient(180deg, transparent 20%, rgba(77, 227, 212, 0.18));
  animation: signalBars 1.8s ease-in-out infinite alternate;
}

.character-status span:nth-child(2) { animation-delay: -0.7s; }
.character-status span:nth-child(3) { animation-delay: -1.2s; }
.character-status span:nth-child(4) { animation-delay: -0.3s; }

@keyframes signalBars {
  from { transform: scaleY(0.35); opacity: 0.4; }
  to { transform: scaleY(1); opacity: 1; }
}

.section-split,
.game-section,
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

.section-copy p {
  max-width: 680px;
}

.section-heading {
  max-width: 860px;
  margin-bottom: 2.2rem;
}

.lore-visual,
.game-visual {
  min-height: 420px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)),
    radial-gradient(circle at 50% 40%, rgba(77, 227, 212, 0.16), transparent 20rem);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.orbital-map {
  position: relative;
  width: min(70vw, 360px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.orbital-map::before,
.orbital-map::after,
.orbital-map span {
  position: absolute;
  inset: 12%;
  content: "";
  border: 1px solid rgba(77, 227, 212, 0.26);
  transform: rotate(var(--rotate, 0deg));
}

.orbital-map::after {
  inset: 28%;
  border-color: rgba(77, 227, 212, 0.34);
  --rotate: 28deg;
}

.orbital-map span:nth-child(1) {
  inset: 4%;
  --rotate: 52deg;
}

.orbital-map span:nth-child(2) {
  inset: 20%;
  --rotate: -18deg;
}

.orbital-map span:nth-child(3) {
  inset: 42%;
  border-color: rgba(225, 77, 95, 0.48);
  --rotate: 16deg;
}

.orbital-map strong {
  position: relative;
  z-index: 2;
  color: var(--text);
  font-size: 2rem;
  letter-spacing: 0.18em;
}

.world-frame {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 420px;
  background:
    linear-gradient(180deg, rgba(77, 227, 212, 0.1), transparent 42%),
    linear-gradient(0deg, rgba(5, 6, 8, 0.1), rgba(5, 6, 8, 0.75)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 86px);
}

.horizon {
  position: absolute;
  inset: auto -10% 18%;
  height: 34%;
  background:
    linear-gradient(170deg, transparent 0 35%, rgba(77, 227, 212, 0.35) 36% 38%, transparent 39%),
    linear-gradient(18deg, transparent 0 48%, rgba(77, 227, 212, 0.42) 49% 51%, transparent 52%),
    linear-gradient(0deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0));
}

.signal {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--cyan);
  box-shadow: 0 0 30px var(--cyan);
}

.signal-one {
  top: 28%;
  left: 22%;
}

.signal-two {
  top: 44%;
  right: 28%;
  background: var(--amber);
  box-shadow: 0 0 30px var(--amber);
}

.signal-three {
  right: 42%;
  bottom: 25%;
  background: var(--red);
  box-shadow: 0 0 30px var(--red);
}

.spec-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 2rem 0 0;
  border: 1px solid var(--line);
  background: var(--line);
}

.spec-list div {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.035);
}

.spec-list dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.spec-list dd {
  margin: 0.35rem 0 0;
  color: var(--text);
  font-weight: 700;
}

.community-section {
  width: 100%;
  max-width: none;
  padding-inline: max(24px, calc((100vw - var(--max)) / 2));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  border-block: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(77, 227, 212, 0.09), transparent 48%),
    rgba(255, 255, 255, 0.025);
}

.media-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 1rem;
}

.trailer {
  position: relative;
  min-height: 520px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  border: 1px solid var(--line);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  background:
    radial-gradient(circle at 62% 38%, rgba(77, 227, 212, 0.24), transparent 12rem),
    linear-gradient(145deg, rgba(77, 227, 212, 0.08), rgba(225, 77, 95, 0.12)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.08));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.trailer::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(5, 6, 8, 0.05), rgba(5, 6, 8, 0.86)),
    radial-gradient(circle at 50% 38%, transparent, rgba(5, 6, 8, 0.62));
}

.trailer video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  filter: saturate(0.95) contrast(1.1) brightness(0.8);
  transform: translateZ(0);
}

.trailer strong {
  position: relative;
  z-index: 1;
  font-size: clamp(1.8rem, 4vw, 4rem);
  line-height: 0.95;
}

.trailer small {
  position: relative;
  z-index: 1;
  margin-top: 0.6rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.play-icon {
  position: relative;
  z-index: 1;
  width: 68px;
  aspect-ratio: 1;
  margin-bottom: auto;
  border: 1px solid rgba(77, 227, 212, 0.7);
  background:
    linear-gradient(90deg, transparent 36%, #031018 36% 42%, transparent 42%),
    linear-gradient(135deg, rgba(77, 227, 212, 0.95), rgba(77, 227, 212, 0.86));
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.media-grid {
  display: grid;
  gap: 1rem;
}

.media-card,
.feature-card,
.roadmap li {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.22);
}

.media-card {
  min-height: 160px;
  padding: 1rem;
}

.media-video-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #000;
}

.youtube-card {
  display: grid;
  align-content: center;
  gap: 0.75rem;
  background:
    linear-gradient(135deg, rgba(225, 77, 95, 0.13), rgba(77, 227, 212, 0.08)),
    var(--panel);
}

.youtube-card img {
  width: 74px;
  height: 74px;
  object-fit: cover;
  border: 1px solid rgba(185, 226, 255, 0.32);
}

.youtube-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.youtube-card a {
  width: fit-content;
  color: #071018;
  background: var(--text);
  padding: 0.72rem 0.9rem;
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.media-thumb {
  min-height: 110px;
  margin-bottom: 1rem;
  background:
    linear-gradient(135deg, rgba(77, 227, 212, 0.18), transparent),
    linear-gradient(45deg, rgba(255, 255, 255, 0.04) 25%, transparent 25% 50%, rgba(255, 255, 255, 0.04) 50% 75%, transparent 75%);
  background-size: auto, 36px 36px;
}

.media-thumb-two {
  background:
    linear-gradient(135deg, rgba(77, 227, 212, 0.18), transparent),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 24px);
}

.media-thumb-three {
  background:
    radial-gradient(circle at 38% 48%, rgba(225, 77, 95, 0.32), transparent 8rem),
    linear-gradient(135deg, rgba(77, 227, 212, 0.1), transparent);
}

.gallery-section,
.faction-explorer-section,
.terminal-section,
.playtest-section {
  position: relative;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery-item {
  min-height: 240px;
  padding: 1rem;
  display: grid;
  align-content: end;
  gap: 0.55rem;
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--panel);
  cursor: pointer;
  text-align: left;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.22);
  transition: transform 180ms ease, border-color 180ms ease;
  overflow: hidden;
}

.gallery-item:hover,
.gallery-item.is-active {
  border-color: rgba(77, 227, 212, 0.58);
  transform: translateY(-3px);
}

.gallery-item img,
.gallery-item video,
.gallery-item .media-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-bottom: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.gallery-item strong {
  font-size: 1.08rem;
}

.gallery-item small,
.gallery-readout span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gallery-readout {
  margin-top: 1rem;
  padding: 1.2rem;
  border: 1px solid rgba(77, 227, 212, 0.24);
  background: rgba(5, 6, 8, 0.54);
}

.gallery-readout h3,
.gallery-readout p {
  margin-bottom: 0;
}

.gallery-readout p {
  margin-top: 0.5rem;
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.feature-card {
  min-height: 250px;
  padding: 1.35rem;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.feature-card:hover {
  border-color: rgba(77, 227, 212, 0.5);
  background: var(--panel-strong);
  transform: translateY(-4px);
}

.feature-card span {
  display: inline-flex;
  margin-bottom: 4rem;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.systems-section {
  width: 100%;
  max-width: none;
  padding-inline: max(24px, calc((100vw - var(--max)) / 2));
  border-block: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
    radial-gradient(circle at 20% 20%, rgba(77, 227, 212, 0.1), transparent 28rem),
    radial-gradient(circle at 90% 60%, rgba(77, 227, 212, 0.1), transparent 26rem);
}

.briefing-section {
  position: relative;
}

.briefing-console {
  border: 1px solid rgba(77, 227, 212, 0.25);
  background:
    linear-gradient(135deg, rgba(77, 227, 212, 0.08), rgba(225, 77, 95, 0.07)),
    rgba(255, 255, 255, 0.028);
  box-shadow: var(--shadow);
}

.briefing-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 6, 8, 0.42);
}

.briefing-tabs button {
  min-height: 58px;
  border: 0;
  border-right: 1px solid var(--line);
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease;
}

.briefing-tabs button:last-child {
  border-right: 0;
}

.briefing-tabs button:hover,
.briefing-tabs button[aria-selected="true"] {
  color: #031018;
  background: linear-gradient(135deg, rgba(77, 227, 212, 0.96), rgba(77, 227, 212, 0.88));
}

.briefing-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 1rem;
  padding: clamp(1rem, 3vw, 1.5rem);
}

.briefing-readout {
  min-height: 280px;
  padding: clamp(1.15rem, 3vw, 1.5rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 76% 16%, rgba(77, 227, 212, 0.16), transparent 14rem),
    radial-gradient(circle at 20% 32%, rgba(77, 227, 212, 0.15), transparent 18rem),
    rgba(5, 6, 8, 0.48);
}

.briefing-readout span {
  display: inline-flex;
  margin-bottom: 4rem;
  color: var(--amber);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.briefing-readout h3 {
  max-width: 720px;
  font-size: clamp(1.7rem, 4vw, 3.8rem);
  line-height: 0.98;
}

.briefing-readout p {
  max-width: 640px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
}

.briefing-metrics {
  display: grid;
  gap: 1rem;
}

.briefing-metrics div {
  min-height: 86px;
  padding: 1rem;
  display: grid;
  align-content: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.briefing-metrics strong {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.9;
}

.briefing-metrics span {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.systems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.system-card {
  min-height: 230px;
  padding: 1.35rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(5, 6, 8, 0.48);
  box-shadow: 0 16px 54px rgba(0, 0, 0, 0.2);
  transition: transform 180ms ease, border-color 180ms ease;
}

.system-card:hover {
  border-color: rgba(77, 227, 212, 0.5);
  transform: translateY(-4px);
}

.system-card span {
  display: inline-flex;
  margin-bottom: 3.8rem;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.system-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.mini-game-section {
  position: relative;
}

.lore-section {
  border-top: 1px solid var(--line);
}

.codex-grid,
.faction-grid,
.faq-grid {
  display: grid;
  gap: 1rem;
}

.codex-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 1rem;
}

.codex-card,
.faction-card,
.faq-grid details,
.insider-form {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.22);
}

.codex-card {
  min-height: 250px;
  padding: 1.35rem;
  background:
    linear-gradient(180deg, rgba(77, 227, 212, 0.07), transparent),
    var(--panel);
}

.codex-card span,
.faction-card small,
.zone-readout span {
  display: inline-flex;
  margin-bottom: 3.2rem;
  color: var(--amber);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.codex-card p,
.faction-card p,
.zone-readout p,
.faq-grid p,
.insider-section p {
  color: var(--muted);
}

.faction-grid {
  grid-template-columns: repeat(4, 1fr);
}

.faction-card {
  min-height: 270px;
  padding: 1.35rem;
  position: relative;
  overflow: hidden;
}

.faction-card::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, var(--faction-color), transparent 58%);
  opacity: 0.18;
  pointer-events: none;
}

.faction-card > * {
  position: relative;
  z-index: 1;
}

.faction-cyan {
  --faction-color: var(--cyan);
}

.faction-amber {
  --faction-color: var(--amber);
}

.faction-red {
  --faction-color: var(--red);
}

.faction-green {
  --faction-color: var(--green);
}

.faction-explorer {
  display: grid;
  grid-template-columns: minmax(240px, 0.42fr) minmax(0, 1fr);
  border: 1px solid rgba(77, 227, 212, 0.24);
  background:
    radial-gradient(circle at 85% 15%, rgba(77, 227, 212, 0.13), transparent 20rem),
    rgba(255, 255, 255, 0.025);
  box-shadow: var(--shadow);
}

.faction-list {
  display: grid;
  align-content: start;
  border-right: 1px solid var(--line);
}

.faction-list button {
  min-height: 62px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  background: rgba(5, 6, 8, 0.32);
  cursor: pointer;
  text-align: left;
  padding: 0 1rem;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.faction-list button[aria-selected="true"],
.faction-list button:hover {
  color: #031018;
  background: linear-gradient(135deg, var(--cyan), var(--green));
}

.faction-dossier {
  min-height: 360px;
  padding: clamp(1.2rem, 4vw, 2rem);
  display: grid;
  align-content: end;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(5, 6, 8, 0.42);
}

.faction-dossier > span {
  width: fit-content;
  margin-bottom: 4rem;
  color: var(--amber);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.faction-dossier h3 {
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 0.95;
}

.faction-dossier p,
.faction-dossier dd {
  color: var(--muted);
}

.faction-dossier dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 2rem 0 0;
  border: 1px solid var(--line);
  background: var(--line);
}

.faction-dossier dl div {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.035);
}

.faction-dossier dt {
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.faction-dossier dd {
  margin: 0.35rem 0 0;
}

.map-section,
.insider-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

.map-console {
  border: 1px solid rgba(77, 227, 212, 0.25);
  background:
    radial-gradient(circle at 50% 40%, rgba(77, 227, 212, 0.13), transparent 18rem),
    rgba(255, 255, 255, 0.035);
  box-shadow: var(--shadow);
}

.zone-map {
  position: relative;
  min-height: 420px;
  background:
    linear-gradient(135deg, transparent 0 48%, rgba(77, 227, 212, 0.14) 49% 51%, transparent 52%),
    linear-gradient(28deg, transparent 0 42%, rgba(77, 227, 212, 0.16) 43% 45%, transparent 46%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 72px);
  overflow: hidden;
}

.zone-map::before {
  position: absolute;
  inset: 12% 10% 18%;
  border: 1px solid rgba(255, 255, 255, 0.11);
  content: "";
  transform: skewX(-12deg);
}

.map-node {
  position: absolute;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  background: rgba(5, 6, 8, 0.9);
  cursor: pointer;
  box-shadow: 0 0 24px rgba(77, 227, 212, 0.32);
}

.map-node::after {
  position: absolute;
  inset: -11px;
  content: "";
  border: 1px solid rgba(77, 227, 212, 0.18);
}

.map-node.is-active {
  background: var(--cyan);
  box-shadow: 0 0 32px rgba(77, 227, 212, 0.72);
}

.node-core {
  left: 48%;
  top: 42%;
}

.node-ash {
  left: 22%;
  top: 60%;
}

.node-tower {
  right: 24%;
  top: 24%;
}

.node-outpost {
  right: 18%;
  bottom: 22%;
}

.zone-readout {
  padding: 1.25rem;
  border-top: 1px solid var(--line);
  background: rgba(5, 6, 8, 0.62);
}

.zone-readout span {
  margin-bottom: 0.8rem;
  color: var(--cyan);
}

.resistance-section {
  width: 100%;
  max-width: none;
  padding-inline: max(24px, calc((100vw - var(--max)) / 2));
  border-block: 1px solid var(--line);
  background:
    linear-gradient(115deg, rgba(77, 227, 212, 0.08), transparent 48%),
    linear-gradient(20deg, rgba(77, 227, 212, 0.08), transparent 44%),
    rgba(255, 255, 255, 0.02);
}

.resistance-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 1rem;
  align-items: stretch;
}

.district-map {
  position: relative;
  min-height: 430px;
  border: 1px solid rgba(77, 227, 212, 0.24);
  background:
    linear-gradient(135deg, transparent 0 52%, rgba(225, 77, 95, 0.18) 53% 55%, transparent 56%),
    linear-gradient(45deg, transparent 0 38%, rgba(77, 227, 212, 0.16) 39% 41%, transparent 42%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 92px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 92px),
    rgba(5, 6, 8, 0.62);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.district-map::before {
  position: absolute;
  inset: 12%;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: skewX(-10deg);
}

.district-node {
  position: absolute;
  width: min(190px, 38vw);
  min-height: 72px;
  display: grid;
  align-content: center;
  gap: 0.2rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text);
  background: rgba(5, 6, 8, 0.82);
  cursor: pointer;
  text-align: left;
  padding: 0.85rem 1rem;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.22);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.district-node span {
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.district-node small {
  color: var(--muted);
  font-size: 0.78rem;
}

.district-node:hover,
.district-node.is-active {
  border-color: rgba(77, 227, 212, 0.72);
  background: linear-gradient(135deg, rgba(77, 227, 212, 0.2), rgba(77, 227, 212, 0.12)), rgba(5, 6, 8, 0.9);
  transform: translateY(-2px);
}

.district-oldtown {
  left: 12%;
  top: 18%;
}

.district-harbor {
  right: 10%;
  top: 23%;
}

.district-civic {
  left: 35%;
  top: 48%;
}

.district-rail {
  right: 16%;
  bottom: 13%;
}

.district-readout {
  min-height: 430px;
  padding: clamp(1.25rem, 3vw, 1.8rem);
  display: grid;
  align-content: end;
  border: 1px solid rgba(77, 227, 212, 0.24);
  background:
    radial-gradient(circle at 30% 0%, rgba(77, 227, 212, 0.15), transparent 16rem),
    rgba(5, 6, 8, 0.72);
  box-shadow: var(--shadow);
}

.district-readout > span {
  width: fit-content;
  margin-bottom: 3rem;
  color: var(--amber);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.district-readout h3 {
  margin-bottom: 0.7rem;
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 0.95;
}

.district-readout p,
.district-readout dd {
  color: var(--muted);
}

.district-meter {
  height: 10px;
  margin: 1.4rem 0;
  border: 1px solid rgba(77, 227, 212, 0.28);
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.district-meter div {
  width: 32%;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  transition: width 260ms ease;
}

.district-readout dl {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin: 0;
  border: 1px solid var(--line);
  background: var(--line);
}

.district-readout dl div {
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.035);
}

.district-readout dt {
  color: var(--text);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.district-readout dd {
  margin: 0.35rem 0 0;
}

.evidence-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.evidence-card {
  min-height: 190px;
  padding: 1.1rem;
  display: grid;
  align-content: end;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(5, 6, 8, 0.58);
}

.evidence-card span {
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.evidence-card h3 {
  margin: 0.8rem 0 0.45rem;
}

.evidence-card p {
  margin: 0;
  color: var(--muted);
}

.evidence-card.is-unlocked {
  border-color: rgba(77, 227, 212, 0.42);
}

.terminal-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

.terminal-console {
  border: 1px solid rgba(77, 227, 212, 0.28);
  background: #050709;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.terminal-output {
  min-height: 330px;
  max-height: 430px;
  padding: 1.15rem;
  overflow-y: auto;
  background:
    linear-gradient(rgba(77, 227, 212, 0.05) 1px, transparent 1px),
    rgba(5, 6, 8, 0.88);
  background-size: 100% 28px;
  color: #bfffd8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92rem;
}

.terminal-output p {
  margin: 0 0 0.65rem;
  color: inherit;
}

.terminal-form {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.terminal-form span {
  color: var(--green);
  font-weight: 900;
}

.terminal-form input {
  min-height: 44px;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(0, 0, 0, 0.38);
  padding: 0.65rem 0.8rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.terminal-form button {
  min-height: 44px;
  border: 1px solid rgba(77, 227, 212, 0.42);
  color: #031018;
  background: var(--green);
  cursor: pointer;
  padding: 0 0.9rem;
  font-weight: 900;
  text-transform: uppercase;
}

.faq-grid {
  grid-template-columns: repeat(2, 1fr);
}

.faq-grid details {
  padding: 1.15rem 1.25rem;
}

.faq-grid summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 850;
  letter-spacing: 0;
}

.faq-grid p {
  margin: 1rem 0 0;
}

.insider-section {
  width: 100%;
  max-width: none;
  padding-inline: max(24px, calc((100vw - var(--max)) / 2));
  border-block: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(225, 77, 95, 0.1), transparent 45%),
    rgba(255, 255, 255, 0.025);
}

.insider-form {
  padding: clamp(1.1rem, 3vw, 1.6rem);
  display: grid;
  gap: 1rem;
}

.playtest-form {
  padding: clamp(1.1rem, 3vw, 1.6rem);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.playtest-form .button,
.playtest-form .form-status {
  grid-column: 1 / -1;
}

.insider-form label,
.playtest-form label {
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.insider-form input,
.insider-form select,
.playtest-form input,
.playtest-form select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(5, 6, 8, 0.72);
  padding: 0.75rem 0.85rem;
}

.form-status {
  min-height: 1.4em;
  margin: 0;
  color: var(--green);
  font-size: 0.92rem;
  font-weight: 700;
}

.form-status.is-error {
  color: var(--red);
}

.mini-game {
  position: relative;
  max-width: 760px;
  min-height: 420px;
  padding: clamp(1.25rem, 4vw, 2rem);
  display: grid;
  gap: 1rem;
  place-items: center;
  border: 1px solid rgba(77, 227, 212, 0.28);
  background:
    radial-gradient(circle at 50% 24%, rgba(77, 227, 212, 0.16), transparent 18rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.018));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.mini-game::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(90deg, transparent 0 49%, rgba(77, 227, 212, 0.12) 50%, transparent 51%),
    linear-gradient(transparent 0 49%, rgba(77, 227, 212, 0.1) 50%, transparent 51%);
  background-size: 84px 84px;
  opacity: 0.5;
}

.confetti-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 4;
}

.mini-status,
.charge-shell,
.mini-message,
.signal-button,
.mini-reset {
  position: relative;
  z-index: 2;
}

.mini-status {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.secret-reward {
  position: relative;
  z-index: 2;
  width: 100%;
  border: 1px solid rgba(77, 227, 212, 0.34);
  padding: 1rem;
  background:
    linear-gradient(135deg, rgba(77, 227, 212, 0.12), rgba(77, 227, 212, 0.06)),
    rgba(5, 6, 8, 0.72);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 240ms ease, transform 240ms ease;
}

.secret-reward.is-unlocked {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.epic-leak {
  border-color: rgba(225, 77, 95, 0.48);
  background:
    linear-gradient(135deg, rgba(225, 77, 95, 0.14), rgba(77, 227, 212, 0.08)),
    rgba(5, 6, 8, 0.8);
}

.secret-reward span {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--amber);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.secret-reward p {
  margin-bottom: 0;
  color: var(--muted);
}

.operator-card {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 1rem;
  border: 1px solid rgba(77, 227, 212, 0.28);
  background:
    linear-gradient(135deg, rgba(77, 227, 212, 0.11), rgba(77, 227, 212, 0.08)),
    rgba(5, 6, 8, 0.74);
}

.operator-card span:first-child {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.operator-card p {
  color: var(--muted);
}

.devlog-list,
.presskit-grid {
  display: grid;
  gap: 1rem;
}

.devlog-list,
.devlog-timeline {
  grid-template-columns: repeat(3, 1fr);
}

.devlog-timeline {
  display: grid;
  gap: 1rem;
}

.devlog-card,
.presskit-card {
  min-height: 240px;
  border: 1px solid var(--line);
  padding: 1.35rem;
  background: var(--panel);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.22);
}

.devlog-card {
  cursor: pointer;
}

.devlog-card.is-active {
  border-color: rgba(77, 227, 212, 0.52);
  background: var(--panel-strong);
}

.devlog-card time {
  display: inline-flex;
  margin-bottom: 3.4rem;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.devlog-card p,
.presskit-card p,
.community-section p {
  color: var(--muted);
}

.community-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.presskit-grid {
  grid-template-columns: repeat(3, 1fr);
}

.presskit-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.2rem;
}

.presskit-links a {
  border: 1px solid rgba(77, 227, 212, 0.45);
  color: #031018;
  background: var(--cyan);
  padding: 0.7rem 0.85rem;
  text-decoration: none;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mini-status strong {
  color: var(--text);
}

.charge-shell {
  width: 100%;
  height: 18px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.charge-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--green), var(--amber));
  box-shadow: 0 0 26px rgba(77, 227, 212, 0.44);
  transition: width 140ms ease;
}

.charge-bar.is-blue {
  background: linear-gradient(90deg, #1677ff, #4DE3D4, #b9ecff);
}

.charge-bar.is-epic {
  background: linear-gradient(90deg, var(--cyan), var(--green), var(--amber), var(--red));
}

.mini-message {
  min-height: 1.6em;
  margin: 0;
  color: var(--text);
  text-align: center;
  font-weight: 700;
}

.signal-button {
  width: min(280px, 80vw);
  aspect-ratio: 1;
  border: 1px solid rgba(77, 227, 212, 0.55);
  border-radius: 50%;
  color: #031018;
  background:
    radial-gradient(circle at 50% 42%, #ffffff, rgba(77, 227, 212, 0.96) 34%, rgba(77, 227, 212, 0.28) 64%, transparent 65%),
    linear-gradient(135deg, var(--cyan), var(--green));
  box-shadow:
    0 0 36px rgba(77, 227, 212, 0.42),
    inset 0 0 40px rgba(255, 255, 255, 0.28);
  cursor: pointer;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform 110ms ease, filter 110ms ease;
}

.signal-button:hover {
  filter: brightness(1.08);
}

.signal-button:active {
  transform: scale(0.96);
}

.signal-button.is-complete {
  background:
    radial-gradient(circle at 50% 42%, #ffffff, rgba(77, 227, 212, 0.98) 32%, rgba(225, 77, 95, 0.3) 64%, transparent 65%),
    linear-gradient(135deg, var(--amber), var(--red));
}

.mini-reset {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.75rem 0.95rem;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.global-signal {
  position: relative;
  z-index: 2;
  width: 100%;
  border: 1px solid rgba(77, 227, 212, 0.26);
  padding: 1rem;
  background: rgba(5, 6, 8, 0.56);
}

.global-signal-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.global-signal-head strong {
  color: var(--text);
}

.global-shell {
  height: 14px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.32);
  overflow: hidden;
}

.global-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--amber), var(--red));
  transition: width 260ms ease;
}

.global-signal p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.roadmap {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  list-style: none;
}

.roadmap li {
  position: relative;
  min-height: 240px;
  padding: 1.25rem;
}

.roadmap li::before {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  content: "";
  background: var(--line);
}

.roadmap li.current::before {
  background: linear-gradient(90deg, var(--cyan), var(--amber));
}

.roadmap span {
  display: block;
  margin-bottom: 3.5rem;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.roadmap strong {
  display: block;
  margin-bottom: 0.65rem;
  font-size: 1.2rem;
}

.contact-section {
  width: 100%;
  max-width: none;
  padding-inline: max(24px, calc((100vw - var(--max)) / 2));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(77, 227, 212, 0.09), transparent 42%),
    rgba(255, 255, 255, 0.025);
}

.contact-actions {
  justify-content: flex-end;
}

.footer {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 2rem 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer p {
  margin: 0;
}

.footer div {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer a {
  color: var(--muted);
  text-decoration: none;
}

.footer a:hover {
  color: var(--text);
}

.error-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.error-shell {
  width: min(720px, 100%);
  display: grid;
  justify-items: center;
  gap: 1rem;
  text-align: center;
}

.error-shell img {
  width: 128px;
  height: 128px;
  object-fit: cover;
  border: 1px solid rgba(185, 226, 255, 0.36);
  box-shadow: 0 0 42px rgba(77, 227, 212, 0.28);
}

.error-shell h1 {
  margin: 0;
  font-size: clamp(2.6rem, 10vw, 5rem);
}

.error-shell p {
  max-width: 56ch;
}

.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 5.2rem;
  z-index: 120;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(77, 227, 212, 0.42);
  color: #031018;
  background: var(--cyan);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  font-size: 1.2rem;
  font-weight: 900;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.ai-assistant {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 160;
  pointer-events: none;
}

.ai-launcher,
.ai-panel,
.ai-close,
.ai-prompts button,
.ai-voice-controls button,
.ai-form button {
  pointer-events: auto;
}

.ai-launcher {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.95rem;
  border: 1px solid rgba(77, 227, 212, 0.48);
  color: #eafaff;
  background: rgba(5, 8, 12, 0.86);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.48), 0 0 32px rgba(77, 227, 212, 0.18);
  backdrop-filter: blur(16px);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.ai-launcher-core {
  width: 14px;
  height: 14px;
  border: 1px solid var(--cyan);
  background: radial-gradient(circle, #dff8ff 0 20%, rgba(77, 227, 212, 0.16) 58%, transparent 62%);
  box-shadow: 0 0 20px rgba(77, 227, 212, 0.8);
  transform: rotate(45deg);
}

.ai-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.85rem);
  width: min(430px, calc(100vw - 2rem));
  max-height: min(690px, calc(100svh - 7rem));
  display: grid;
  grid-template-rows: auto auto auto minmax(220px, 1fr) auto auto;
  border: 1px solid rgba(77, 227, 212, 0.28);
  background:
    linear-gradient(180deg, rgba(10, 15, 21, 0.96), rgba(5, 7, 10, 0.96)),
    radial-gradient(circle at 18% 0%, rgba(77, 227, 212, 0.12), transparent 16rem);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(22px);
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transform-origin: right bottom;
  transition: opacity 180ms ease, transform 180ms ease;
}

.ai-panel::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0.24;
  background: repeating-linear-gradient(180deg, transparent 0 5px, rgba(77, 227, 212, 0.08) 6px);
  mix-blend-mode: screen;
}

.ai-assistant.is-open .ai-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.ai-panel[aria-hidden="true"] {
  pointer-events: none;
}

.ai-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.1rem 0.8rem;
  border-bottom: 1px solid var(--line);
}

.ai-header .eyebrow {
  margin-bottom: 0.35rem;
  font-size: 0.62rem;
}

.ai-header h2 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.1;
  text-transform: uppercase;
}

.ai-close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
  font-size: 1.25rem;
}

.ai-status {
  position: relative;
  z-index: 1;
  padding: 0.75rem 1.1rem 0.55rem;
  color: var(--muted);
  font-size: 0.76rem;
}

.ai-voice-controls {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.65rem;
  align-items: center;
  padding: 0 1.1rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-voice-controls button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(77, 227, 212, 0.36);
  color: #ffdfae;
  background: rgba(77, 227, 212, 0.08);
  cursor: pointer;
  padding: 0.42rem 0.62rem;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ai-voice-controls button span:first-child {
  color: var(--amber);
  filter: drop-shadow(0 0 8px rgba(77, 227, 212, 0.85));
}

.ai-voice-controls button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.ai-voice-controls small {
  min-width: 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.ai-messages {
  position: relative;
  z-index: 1;
  min-height: 220px;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ai-message {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
}

.ai-message span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(77, 227, 212, 0.4);
  color: var(--cyan);
  background: rgba(77, 227, 212, 0.08);
  font-size: 0.62rem;
  font-weight: 900;
}

.ai-message p {
  margin: 0;
  padding: 0.72rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #dfe8f4;
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.9rem;
}

.ai-message.user {
  grid-template-columns: minmax(0, 1fr) 30px;
}

.ai-message.user span {
  grid-column: 2;
  color: #071018;
  background: var(--green);
}

.ai-message.user p {
  grid-column: 1;
  grid-row: 1;
  border-color: rgba(77, 227, 212, 0.26);
  background: rgba(77, 227, 212, 0.08);
}

.ai-prompts {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 0.45rem;
  padding: 0 1rem 0.85rem;
  overflow-x: auto;
}

.ai-prompts button {
  flex: 0 0 auto;
  min-height: 34px;
  border: 1px solid rgba(77, 227, 212, 0.24);
  color: #cfeeff;
  background: rgba(77, 227, 212, 0.06);
  cursor: pointer;
  padding: 0.42rem 0.6rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ai-form {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
  padding: 0.9rem 1rem 1rem;
  border-top: 1px solid var(--line);
}

.ai-form textarea {
  min-height: 46px;
  max-height: 120px;
  resize: vertical;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  padding: 0.7rem 0.75rem;
  outline: 0;
}

.ai-form button {
  min-width: 92px;
  border: 1px solid rgba(77, 227, 212, 0.56);
  color: #041017;
  background: var(--cyan);
  cursor: pointer;
  padding: 0 0.85rem;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ai-form button:disabled,
.ai-prompts button:disabled,
.ai-voice-controls button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.trailer-modal {
  width: min(760px, calc(100% - 32px));
  border: 1px solid var(--line);
  padding: 0;
  color: var(--text);
  background: #080b10;
  box-shadow: var(--shadow);
  display: none;
  position: fixed;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  max-height: 90vh;
  z-index: 200;
}

.trailer-modal[open],
.trailer-modal.is-open {
  display: block;
}

.trailer-modal::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  cursor: pointer;
  z-index: 3;
}

.modal-close::before,
.modal-close::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 2px;
  content: "";
  background: var(--text);
}

.modal-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.modal-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.modal-back {
  left: 1rem;
  right: auto;
  width: auto;
  min-width: 108px;
  padding: 0 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: rgba(5, 6, 8, 0.72);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.modal-back::before,
.modal-back::after {
  display: none;
}

.modal-frame {
  min-height: 420px;
  padding: clamp(2rem, 6vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    radial-gradient(circle at 50% 35%, rgba(77, 227, 212, 0.18), transparent 14rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
}

.modal-video-frame {
  position: relative;
  min-height: auto;
  padding: 0;
  display: block;
  background: #000;
}

.modal-video-frame video {
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
  background: #000;
}

.modal-video-frame div {
  padding: 1.25rem 1.5rem 1.5rem;
  background: linear-gradient(180deg, rgba(5, 6, 8, 0.9), rgba(5, 6, 8, 1));
}

.modal-video-frame h2 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 5vw, 3.4rem);
}

.reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.985);
  transition: opacity 820ms cubic-bezier(0.16, 0.84, 0.3, 1), transform 820ms cubic-bezier(0.16, 0.84, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Gestaffeltes Einblenden für Raster (kaskadiert beim Scrollen) */
.feature-grid > .reveal:nth-child(2),
.systems-grid > .reveal:nth-child(2) { transition-delay: 0.06s; }
.feature-grid > .reveal:nth-child(3),
.systems-grid > .reveal:nth-child(3) { transition-delay: 0.12s; }
.feature-grid > .reveal:nth-child(4),
.systems-grid > .reveal:nth-child(4) { transition-delay: 0.18s; }
.systems-grid > .reveal:nth-child(5) { transition-delay: 0.24s; }
.systems-grid > .reveal:nth-child(6) { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .hero-canvas,
  .confetti-canvas,
  .scroll-progress {
    display: none;
  }
}

@media (max-width: 980px) {
  :root {
    --header: 68px;
  }

  body.nav-open {
    overflow: hidden;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: var(--header);
    left: 16px;
    right: 16px;
    display: grid;
    gap: 0;
    border: 1px solid var(--line);
    background: rgba(5, 6, 8, 0.96);
    backdrop-filter: blur(18px);
    max-height: calc(100svh - var(--header) - 24px);
    overflow-y: auto;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 220ms ease, opacity 220ms ease;
  }

  .nav-menu.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-menu a {
    padding: 1rem;
    border-bottom: 1px solid var(--line);
  }

  .nav-menu a:last-child {
    border-bottom: 0;
  }

  .language-switcher {
    margin: 0.8rem 1rem 1rem;
    justify-content: center;
  }

  .nav-menu a::after {
    display: none;
  }

  .nav-toggle.is-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .hero,
  .section-split,
  .game-section,
  .media-layout,
  .briefing-panel,
  .gallery-grid,
  .faction-explorer,
  .resistance-layout,
  .terminal-section,
  .map-section,
  .community-section,
  .insider-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header) + 4rem);
  }

  .hero-panel {
    max-width: 420px;
  }

  .character-readout {
    grid-template-columns: 130px minmax(0, 1fr);
  }

  .character-status {
    display: none;
  }

  .game-visual {
    order: -1;
  }

  .feature-grid,
  .systems-grid,
  .codex-grid,
  .faction-grid,
  .evidence-board,
  .faq-grid,
  .devlog-list,
  .devlog-timeline,
  .presskit-grid,
  .roadmap {
    grid-template-columns: repeat(2, 1fr);
  }

  .community-actions {
    justify-content: flex-start;
  }

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .brand {
    font-size: 0.78rem;
  }

  h1 {
    font-size: clamp(3.2rem, 17vw, 5.2rem);
  }

  .hero-canvas {
    display: none;
  }

  .hero-video {
    opacity: 0.55;
    filter: saturate(0.82) contrast(1.02) brightness(0.68);
  }

  .section {
    width: min(100% - 28px, var(--max));
    padding: 4rem 0;
  }

  .character-section {
    width: calc(100% - 28px);
    padding: 4rem 0;
  }

  .character-heading {
    margin-bottom: 1.35rem;
  }

  .character-stage {
    min-width: 720px;
  }

  .character-readout {
    min-height: 190px;
    grid-template-columns: 1fr;
    gap: 0.85rem;
    padding: 1.25rem 0;
  }

  .character-index {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .character-index strong {
    margin: 0;
    font-size: 1rem;
  }

  .character-profile h3 {
    font-size: 1.8rem;
  }

  .lore-visual,
  .game-visual,
  .world-frame {
    min-height: 300px;
  }

  .spec-list,
  .briefing-tabs,
  .faction-dossier dl,
  .district-readout dl,
  .playtest-form,
  .feature-grid,
  .systems-grid,
  .codex-grid,
  .faction-grid,
  .evidence-board,
  .faq-grid,
  .devlog-list,
  .devlog-timeline,
  .presskit-grid,
  .roadmap {
    grid-template-columns: 1fr;
  }

  .zone-map {
    min-height: 320px;
  }

  .district-map,
  .district-readout {
    min-height: 360px;
  }

  .district-node {
    width: min(160px, 44vw);
    min-height: 64px;
    padding: 0.75rem;
  }

  .district-oldtown {
    left: 6%;
    top: 12%;
  }

  .district-harbor {
    right: 5%;
    top: 24%;
  }

  .district-civic {
    left: 12%;
    top: 48%;
  }

  .district-rail {
    right: 5%;
    bottom: 9%;
  }

  .mini-game {
    min-height: 360px;
  }

  .signal-button {
    width: min(230px, 76vw);
  }

  .trailer {
    min-height: 380px;
  }

  .footer {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .faction-list {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .terminal-form {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .terminal-form button {
    grid-column: 1 / -1;
  }

  .back-to-top {
    right: 0.85rem;
    bottom: 5.2rem;
  }

  .ai-assistant {
    right: 0.85rem;
    bottom: 0.85rem;
    left: 0.85rem;
  }

  .ai-launcher {
    width: 100%;
    justify-content: center;
  }

  .ai-panel {
    left: 0;
    right: 0;
    width: 100%;
    max-height: calc(100svh - 7rem);
  }

  .ai-form {
    grid-template-columns: 1fr;
  }

  .ai-voice-controls {
    grid-template-columns: 1fr;
  }

  .ai-form button {
    min-height: 42px;
  }
}

/* ============================================================
   SYSTEM INTERFACE — NeverPoint Nation Redesign Layer
   ============================================================ */
@font-face { font-family:"Space Grotesk"; font-weight:400 700; font-style:normal; font-display:swap; src:url("assets/fonts/space-grotesk-400.woff2") format("woff2"); }
@font-face { font-family:"Space Mono"; font-weight:400; font-style:normal; font-display:swap; src:url("assets/fonts/space-mono-400.woff2") format("woff2"); }
@font-face { font-family:"Space Mono"; font-weight:700; font-style:normal; font-display:swap; src:url("assets/fonts/space-mono-700.woff2") format("woff2"); }

/* Solider Hintergrund + feines Signal-Grid (Signature) */
body { background: var(--bg) !important; }
body::before {
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px) !important;
  background-size: 44px 44px !important;
  opacity: 0.55 !important;
  mask-image: radial-gradient(circle at 50% 24%, #000 0%, transparent 80%) !important;
  -webkit-mask-image: radial-gradient(circle at 50% 24%, #000 0%, transparent 80%) !important;
  transition: transform 0.25s ease-out;
  will-change: transform;
}

/* Kino-Typografie + Mono-Labels */
h1, h2, h3, h4 { font-family: var(--grotesk); letter-spacing: -0.02em; }
h1 { letter-spacing: -0.03em; }
.eyebrow {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--cyan);
  font-weight: 400;
}

/* Navigation: Mono-Links, Hover spreizt Letter-Spacing */
.nav-menu a {
  font-family: var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
  transition: color 0.2s ease, letter-spacing 0.2s ease;
}
.nav-menu a:hover,
.nav-menu a.is-active { color: var(--cyan); letter-spacing: 0.11em; }
.site-header { border-bottom: 1px solid var(--line); }

/* Buttons: ein Cyan-CTA, sonst Ghost */
.button { font-family: var(--mono); border-radius: 0; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 400; }
.button-primary { background: var(--cyan); color: #04110f; border-color: var(--cyan); }
.button-primary:hover { background: transparent; color: var(--cyan); box-shadow: 0 0 26px rgba(77, 227, 212, 0.2); transform: translateY(-2px); }
.button-secondary, .button-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.button-secondary:hover, .button-ghost:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-2px); }

/* Karten: Hover-Lift + Cyan-Border-Glow */
.feature-card, .system-card {
  border-radius: 0;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.feature-card:hover, .system-card:hover {
  transform: translateY(-3px);
  border-color: rgba(77, 227, 212, 0.45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

/* Sektionen: Hairline-Trennung */
.section { border-top: 1px solid var(--line); }

/* Status-Leiste (System-Monitoring) */
.status-bar {
  position: sticky;
  top: 0;
  z-index: 230;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 12, 16, 0.72);
  backdrop-filter: blur(12px);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.status-bar .status-row {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 9px clamp(1.2rem, 4vw, 2rem);
}
.status-bar .stat { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.status-bar .stat b { color: var(--cyan); font-weight: 400; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation: statusPulse 2s ease-in-out infinite; }
@keyframes statusPulse { 50% { opacity: 0.35; box-shadow: 0 0 4px var(--cyan); } }
@media (max-width: 768px) { .status-bar .stat-node { display: none; } }

/* Reduced-Motion respektieren */
@media (prefers-reduced-motion: reduce) {
  .status-dot { animation: none; }
  body::before { transition: none; }
}

/* Signal-Grid folgt minimal der Maus (Tiefe) */
body::before { transform: translate(var(--grid-x, 0px), var(--grid-y, 0px)); }

/* Header unter die Status-Leiste setzen + Nav-Dichte (Mono ist breiter) */
:root { --statusbar: 38px; }
.status-bar { position: fixed; top: 0; left: 0; right: 0; }
.site-header { top: var(--statusbar); }
html { scroll-padding-top: calc(var(--header) + var(--statusbar)); }
.nav-menu { gap: 0.8rem; }
.nav-menu a { font-size: 0.66rem; letter-spacing: 0.05em; }
.nav-menu a:hover, .nav-menu a.is-active { letter-spacing: 0.085em; }

/* Mobile: Hero-Headline kleiner (Space Grotesk ist breiter, kein Überlauf) */
@media (max-width: 640px) {
  .hero h1, #hero-title { font-size: clamp(2.3rem, 12vw, 3.6rem); }
}
