/* Nature & Nations — game interface layer */
:root {
  --void: #020a0b;
  --deep: #051312;
  --deep-2: #071c1a;
  --panel: rgba(7, 28, 26, 0.82);
  --panel-solid: #0a211f;
  --panel-lift: rgba(13, 48, 43, 0.72);
  --line: rgba(151, 215, 192, 0.16);
  --line-bright: rgba(151, 215, 192, 0.34);
  --signal: #9de0c3;
  --signal-bright: #d1ffe8;
  --gold: #d3a94f;
  --gold-bright: #f0d68f;
  --paper: #f1eadb;
  --paper-dim: rgba(241, 234, 219, 0.68);
  --paper-faint: rgba(241, 234, 219, 0.42);
  --danger: #f08b65;
  --display: "Fraunces", Georgia, serif;
  --prose: "Spectral", Georgia, serif;
  --ui: "Space Mono", ui-monospace, monospace;
  --page: min(100% - 3rem, 1320px);
  --section-space: clamp(6rem, 11vw, 10rem);
  --nav-height: 70px;
}

* {
  scrollbar-color: var(--gold) var(--deep);
}

html {
  background: var(--void);
  scroll-padding-top: calc(var(--nav-height) + 2.5rem);
}

body {
  min-height: 100%;
  background:
    radial-gradient(circle at 74% 7%, rgba(30, 111, 91, 0.18), transparent 29rem),
    radial-gradient(circle at 18% 42%, rgba(211, 169, 79, 0.06), transparent 34rem),
    linear-gradient(180deg, #03100f 0%, var(--void) 58%, #03100f 100%);
  color: var(--paper);
  font-family: var(--prose);
  font-size: clamp(1rem, 0.94rem + 0.22vw, 1.12rem);
  line-height: 1.68;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  opacity: 0.25;
  background-image:
    linear-gradient(rgba(151, 215, 192, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(151, 215, 192, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 76%);
  mask-image: linear-gradient(to bottom, black, transparent 76%);
}

::selection {
  color: var(--void);
  background: var(--signal);
}

#topo {
  opacity: 0.45;
  filter: saturate(0.75) hue-rotate(34deg);
}

.vignette {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(2, 10, 11, 0.65), transparent 34%, transparent 72%, rgba(2, 10, 11, 0.28)),
    radial-gradient(110% 80% at 50% 35%, transparent 42%, rgba(2, 10, 11, 0.82) 100%);
}

.grain {
  z-index: 1;
  opacity: 0.035;
}

.wrap {
  z-index: 2;
}

.container {
  width: var(--page);
}

.narrow {
  max-width: 820px;
}

a {
  color: var(--signal-bright);
}

p {
  color: var(--paper-dim);
}

strong {
  color: var(--paper);
}

:focus-visible {
  outline: 2px solid var(--signal-bright);
  outline-offset: 4px;
}

.skip {
  z-index: 100;
  background: var(--signal);
  color: var(--void);
  font-family: var(--ui);
}

/* HUD navigation */
.nav {
  position: fixed;
  inset: 1rem 1.5rem auto;
  z-index: 40;
  width: min(calc(100% - 3rem), 1440px);
  min-height: var(--nav-height);
  margin-inline: auto;
  padding: 0.55rem 0.7rem 0.55rem 0.85rem;
  border: 1px solid var(--line-bright);
  background: linear-gradient(100deg, rgba(4, 18, 17, 0.94), rgba(8, 30, 28, 0.86));
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.34), inset 0 1px rgba(255, 255, 255, 0.025);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  backdrop-filter: blur(18px) saturate(130%);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}

.nav::after {
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, var(--gold), transparent 34%, transparent 76%, var(--signal));
}

.brand {
  gap: 0.7rem;
  min-width: max-content;
  color: var(--paper);
}

.brand img {
  width: 42px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.5));
}

.brand-text {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.brand span {
  color: var(--gold);
}

.nav-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.7rem;
  padding-left: 0.9rem;
  border-left: 1px solid var(--line);
  color: var(--paper-faint);
  font-family: var(--ui);
  font-size: 0.54rem;
  letter-spacing: 0.12em;
  line-height: 1.35;
  text-transform: uppercase;
}

.status-dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 4px rgba(157, 224, 195, 0.08), 0 0 15px var(--signal);
  animation: statusPulse 2.4s ease-in-out infinite;
}

.nav-links {
  gap: 0;
}

.nav-link {
  position: relative;
  border: 0;
  padding: 0.72rem 0.78rem;
  color: var(--paper-faint);
  font-family: var(--ui);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
}

.nav-link::before {
  position: absolute;
  right: 0;
  bottom: 0.25rem;
  left: 0;
  width: 0;
  height: 1px;
  margin: auto;
  content: "";
  background: var(--signal);
  transition: width 180ms ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--paper);
  border-bottom-color: transparent;
}

.nav-link.active::before,
.nav-link:hover::before {
  width: calc(100% - 1.5rem);
}

.nav-cta {
  min-height: 42px;
  margin-left: 0.55rem;
}

/* Buttons */
.btn {
  position: relative;
  justify-content: center;
  min-height: 48px;
  padding: 0.9rem 1.35rem;
  overflow: hidden;
  border: 1px solid var(--line-bright);
  border-radius: 0;
  color: var(--paper);
  background: rgba(10, 33, 31, 0.62);
  font-family: var(--ui);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.018);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.btn::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -45%;
  width: 34%;
  content: "";
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: skewX(-22deg);
  transition: left 500ms ease, opacity 200ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:hover::after {
  left: 120%;
  opacity: 0.65;
}

.btn-primary {
  border-color: var(--gold);
  color: #06100e;
  background: linear-gradient(120deg, var(--gold), var(--gold-bright));
  box-shadow: 0 12px 34px rgba(211, 169, 79, 0.16);
}

.btn-primary:hover {
  border-color: var(--gold-bright);
  color: #06100e;
  background: linear-gradient(120deg, var(--gold-bright), #ffe9ad);
  box-shadow: 0 16px 42px rgba(211, 169, 79, 0.26);
}

.btn-ghost {
  border-color: var(--line-bright);
  color: var(--signal-bright);
  background: rgba(8, 29, 27, 0.64);
}

.btn-ghost:hover {
  border-color: var(--signal);
  background: rgba(19, 66, 59, 0.52);
}

/* Hero / world selection console */
.hero {
  min-height: 100svh;
  padding: calc(var(--nav-height) + 5.6rem) 1.5rem 3rem;
  text-align: left;
  isolation: isolate;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(2, 10, 11, 0.72), rgba(2, 10, 11, 0.12) 55%, rgba(2, 10, 11, 0.44)),
    linear-gradient(180deg, transparent 70%, var(--void));
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(440px, 0.88fr);
  gap: clamp(2rem, 6vw, 7rem);
  align-items: center;
  width: min(100%, 1400px);
  margin: auto;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero-statusline,
.console-top,
.console-bottom,
.map-coordinates {
  color: var(--paper-faint);
  font-family: var(--ui);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-statusline {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.55rem;
}

.hero-statusline::after {
  width: min(180px, 24vw);
  height: 1px;
  content: "";
  background: linear-gradient(90deg, var(--line-bright), transparent);
}

.hero-statusline strong {
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
  color: var(--signal);
  font-family: inherit;
  font-weight: 400;
}

.hero-lockup {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.hero-lockup img {
  width: clamp(58px, 6.2vw, 86px);
  height: auto;
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.46));
}

.hero-lockup .title-brand {
  display: block;
  color: var(--gold-bright);
  font-family: var(--ui);
  font-size: clamp(0.72rem, 0.65rem + 0.3vw, 0.9rem);
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 8.2ch;
  color: var(--paper);
  font-family: var(--display);
  font-size: clamp(3.7rem, 6.8vw, 7.6rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.84;
  text-wrap: balance;
}

.hero h1 span {
  display: block;
}

.hero h1 em {
  display: block;
  color: var(--gold-bright);
  font-weight: 400;
}

.hero .sub {
  margin: 1.8rem 0 0;
  color: var(--signal);
  font-family: var(--ui);
  font-size: clamp(0.65rem, 0.6rem + 0.2vw, 0.78rem);
  letter-spacing: 0.2em;
  line-height: 1.6;
  text-transform: uppercase;
}

.hero .hook {
  max-width: 52ch;
  margin: 1.15rem 0 0;
  color: var(--paper-dim);
  font-family: var(--prose);
  font-size: clamp(1.08rem, 0.95rem + 0.48vw, 1.34rem);
  font-style: normal;
  line-height: 1.55;
}

.hero .cta-row {
  justify-content: flex-start;
  margin-top: 1.7rem;
}

.hero .badges {
  justify-content: flex-start;
  margin-top: 1.55rem;
}

.badge {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  padding: 0.42rem 0.62rem;
  border-color: var(--line);
  border-radius: 0;
  color: var(--paper-faint);
  background: rgba(4, 18, 17, 0.42);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
}

.badge::before {
  width: 4px;
  height: 4px;
  content: "";
  background: var(--gold);
}

.badge strong {
  color: var(--gold-bright);
  font-family: inherit;
  font-weight: 400;
}

.world-console {
  --layer-accent: var(--signal);
  position: relative;
  width: min(100%, 620px);
  min-width: 0;
  justify-self: end;
  border: 1px solid var(--line-bright);
  background:
    linear-gradient(135deg, rgba(11, 43, 39, 0.82), rgba(3, 14, 14, 0.92)),
    var(--deep);
  box-shadow: 0 45px 110px rgba(0, 0, 0, 0.44), inset 0 0 90px rgba(70, 169, 136, 0.035);
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
  transition: border-color 220ms ease, box-shadow 220ms ease;
}

.world-console[data-layer="biomes"] { --layer-accent: #bada77; }
.world-console[data-layer="weather"] { --layer-accent: #8bd5e9; }
.world-console[data-layer="hazards"] { --layer-accent: #f08b65; }

.world-console[data-geography="ready"] {
  border-color: color-mix(in srgb, var(--layer-accent) 44%, transparent);
}

.world-console::before,
.world-console::after {
  position: absolute;
  z-index: 4;
  content: "";
  pointer-events: none;
}

.world-console::before {
  inset: 8px;
  border: 1px solid rgba(151, 215, 192, 0.07);
  clip-path: inherit;
}

.world-console::after {
  top: -1px;
  right: 48px;
  width: 95px;
  height: 2px;
  background: var(--layer-accent);
  box-shadow: 0 0 18px color-mix(in srgb, var(--layer-accent) 50%, transparent);
  transition: background 220ms ease, box-shadow 220ms ease;
}

.console-top,
.console-bottom {
  display: flex;
  position: relative;
  z-index: 5;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
}

.console-top strong {
  color: var(--paper);
  font-family: inherit;
  font-weight: 400;
}

.console-id {
  color: var(--gold);
}

.console-stage {
  position: relative;
  min-height: clamp(330px, 39vw, 520px);
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 46%, rgba(27, 104, 84, 0.18), transparent 43%),
    linear-gradient(rgba(151, 215, 192, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(151, 215, 192, 0.035) 1px, transparent 1px);
  background-size: auto, 38px 38px, 38px 38px;
}

.console-stage::before {
  position: absolute;
  inset: 0;
  z-index: 3;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(157, 224, 195, 0.035) 49%, rgba(157, 224, 195, 0.12) 50%, rgba(157, 224, 195, 0.035) 51%, transparent 100%);
  background-size: 100% 180px;
  animation: stageScan 5.5s linear infinite;
  mix-blend-mode: screen;
  opacity: 0.18;
}

.globe-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(78%, 430px);
  aspect-ratio: 1;
  touch-action: none;
  transform: translate(-50%, -53%);
}

.globe-wrap::before {
  position: absolute;
  inset: 2%;
  z-index: 2;
  border: 1px solid rgba(157, 224, 195, 0.25);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.globe-wrap::before {
  box-shadow: 0 0 50px rgba(83, 204, 163, 0.15), inset -35px -28px 60px rgba(0, 0, 0, 0.5);
}

#world-globe {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  cursor: grab;
  filter: drop-shadow(0 22px 45px rgba(0, 0, 0, 0.45));
  touch-action: none;
  user-select: none;
}

.world-console.is-dragging #world-globe {
  cursor: grabbing;
}

#world-globe:focus-visible {
  outline: 2px solid var(--layer-accent);
  outline-offset: 5px;
}

.globe-crosshair {
  position: absolute;
  inset: 10%;
  z-index: 3;
  border-radius: 50%;
  pointer-events: none;
}

.globe-crosshair::before,
.globe-crosshair::after {
  position: absolute;
  content: "";
  background: rgba(157, 224, 195, 0.18);
}

.globe-crosshair::before {
  top: 50%;
  right: -18%;
  left: -18%;
  height: 1px;
}

.globe-crosshair::after {
  top: -18%;
  bottom: -18%;
  left: 50%;
  width: 1px;
}

.map-coordinates {
  position: absolute;
  z-index: 4;
  padding: 0.35rem 0.48rem;
  border-left: 1px solid var(--gold);
  color: var(--paper-dim);
  background: rgba(2, 10, 11, 0.62);
}

.map-coordinates.top-left {
  top: 1rem;
  left: 1rem;
}

.map-coordinates.bottom-right {
  right: 1rem;
  bottom: 1rem;
  border-right: 1px solid var(--signal);
  border-left: 0;
  text-align: right;
}

.map-coordinates a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, var(--layer-accent) 55%, transparent);
  text-underline-offset: 2px;
}

.map-coordinates a:hover,
.map-coordinates a:focus-visible {
  color: var(--layer-accent);
}

.map-legend {
  display: flex;
  position: absolute;
  z-index: 4;
  bottom: 1rem;
  left: 1rem;
  gap: 0.32rem 0.7rem;
  max-width: 52%;
  flex-wrap: wrap;
  padding: 0.42rem 0.52rem;
  border-left: 1px solid var(--layer-accent);
  color: var(--paper-faint);
  background: rgba(2, 10, 11, 0.7);
  font-family: var(--ui);
  font-size: 0.46rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.map-legend span {
  display: inline-flex;
  gap: 0.28rem;
  align-items: center;
  white-space: nowrap;
}

.map-legend i {
  width: 6px;
  height: 6px;
  flex: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 7px currentColor;
}

.console-readout {
  display: grid;
  position: relative;
  z-index: 6;
  grid-template-columns: 1fr auto;
  gap: 0.25rem 1rem;
  align-items: end;
  margin: -1.2rem 1rem 0;
  padding: 0.9rem 1rem 1rem;
  border: 1px solid var(--line-bright);
  background: rgba(3, 15, 14, 0.92);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.readout-kicker {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--gold);
  font-family: var(--ui);
  font-size: 0.54rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.readout-title {
  margin: 0;
  color: var(--paper);
  font-family: var(--display);
  font-size: clamp(1.25rem, 1rem + 1vw, 1.8rem);
  font-weight: 600;
  line-height: 1.1;
}

.readout-state {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  color: var(--layer-accent);
  font-family: var(--ui);
  font-size: 0.52rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.world-console .readout-state .status-dot {
  background: var(--layer-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--layer-accent) 9%, transparent), 0 0 15px var(--layer-accent);
}

.layer-tabs {
  display: grid;
  position: relative;
  z-index: 6;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  padding: 1rem;
}

.layer-tab {
  min-width: 0;
  padding: 0.7rem 0.42rem;
  border: 1px solid var(--line);
  color: var(--paper-faint);
  background: rgba(7, 29, 27, 0.66);
  font-family: var(--ui);
  font-size: 0.52rem;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.layer-tab span {
  display: block;
  margin-bottom: 0.28rem;
  color: var(--gold);
  font-size: 0.46rem;
  opacity: 0.72;
}

.layer-tab:hover,
.layer-tab[aria-selected="true"] {
  border-color: var(--layer-accent);
  color: var(--signal-bright);
  background: color-mix(in srgb, var(--layer-accent) 15%, rgba(7, 29, 27, 0.82));
}

.console-bottom {
  border-top: 1px solid var(--line);
  border-bottom: 0;
  font-size: 0.5rem;
}

.console-bottom span:last-child {
  color: var(--layer-accent);
}

.hero-scroll {
  display: flex;
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  gap: 0.6rem;
  align-items: center;
  color: var(--paper-faint);
  font-family: var(--ui);
  font-size: 0.5rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.hero-scroll::before {
  width: 32px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--gold));
}

/* Main sections */
main {
  counter-reset: game-section;
}

.section {
  position: relative;
  min-height: 30rem;
  padding-block: var(--section-space);
  border-top: 1px solid var(--line);
  counter-increment: game-section;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section::before {
  position: absolute;
  top: 1.15rem;
  right: max(1.5rem, calc((100vw - 1320px) / 2));
  content: "0" counter(game-section) " / WORLD SYSTEM";
  color: rgba(157, 224, 195, 0.28);
  font-family: var(--ui);
  font-size: 0.54rem;
  letter-spacing: 0.16em;
}

.section:nth-of-type(even) {
  background: linear-gradient(105deg, rgba(10, 38, 35, 0.22), transparent 42%);
}

.section > .container {
  position: relative;
}

.eyebrow {
  gap: 0.65rem;
  margin-bottom: 1.15rem;
  color: var(--signal);
  font-family: var(--ui);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
}

.eyebrow::before {
  width: 8px;
  height: 8px;
  border: 1px solid var(--gold);
  background: transparent;
  transform: rotate(45deg);
}

h2 {
  max-width: 18ch;
  color: var(--paper);
  font-family: var(--display);
  font-size: clamp(2.5rem, 1.55rem + 3.7vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.98;
  text-wrap: balance;
}

h3 {
  color: var(--paper);
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.015em;
}

.lede {
  max-width: 62ch;
  margin-top: 1.4rem;
  color: var(--paper);
  font-family: var(--prose);
  font-size: clamp(1.12rem, 0.95rem + 0.62vw, 1.42rem);
  line-height: 1.55;
}

#game .narrow,
#legacy .narrow,
#vision .narrow,
#faq .narrow {
  position: relative;
  max-width: 960px;
  padding: clamp(1.6rem, 4vw, 3.2rem);
  border: 1px solid var(--line);
  background: linear-gradient(130deg, rgba(11, 43, 39, 0.58), rgba(3, 14, 14, 0.56));
  box-shadow: 0 34px 75px rgba(0, 0, 0, 0.17);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}

#game .narrow::after,
#legacy .narrow::after,
#vision .narrow::after,
#faq .narrow::after {
  position: absolute;
  top: -1px;
  right: 42px;
  width: 90px;
  height: 2px;
  content: "";
  background: var(--gold);
}

#legacy h3 {
  position: relative;
  margin-top: 2rem;
  padding: 1.1rem 1.2rem 0 3rem;
  border-top: 1px solid var(--line);
  font-size: clamp(1.3rem, 1.05rem + 0.9vw, 1.8rem);
}

#legacy h3::before {
  position: absolute;
  top: 1.35rem;
  left: 0.2rem;
  color: var(--gold);
  font-family: var(--ui);
  font-size: 0.54rem;
  letter-spacing: 0.12em;
  content: "MEM";
}

#legacy h3 + p {
  padding-left: 3rem;
}

/* System cards */
.stations {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
}

.station {
  display: grid;
  position: relative;
  grid-column: span 6;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-content: start;
  min-width: 0;
  padding: clamp(1.25rem, 2.4vw, 2rem);
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(15, 55, 49, 0.5), rgba(4, 17, 16, 0.66)),
    var(--deep);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.16);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.station + .station {
  border-top: 1px solid var(--line);
}

.station::before {
  position: absolute;
  inset: 0 auto auto 0;
  width: 4.5rem;
  height: 2px;
  content: "";
  background: var(--gold);
  box-shadow: 0 0 18px rgba(211, 169, 79, 0.3);
}

.station:hover {
  z-index: 2;
  border-color: var(--line-bright);
  background: linear-gradient(145deg, rgba(18, 67, 59, 0.6), rgba(5, 20, 19, 0.78));
  box-shadow: 0 32px 72px rgba(0, 0, 0, 0.24);
  transform: translateY(-3px);
}

.station:has(.styledrop) {
  grid-column: span 6;
}

.station .marker {
  flex-direction: row;
  gap: 0.8rem;
  align-items: center;
}

.station .glyph {
  width: 40px;
  height: 40px;
  flex: none;
  padding: 7px;
  border: 1px solid var(--line-bright);
  background: rgba(157, 224, 195, 0.035);
  stroke: var(--signal) !important;
}

.station .name {
  color: var(--signal);
  font-family: var(--ui);
  font-size: 0.55rem;
  letter-spacing: 0.16em;
}

.station .body {
  max-width: none;
}

.station h3 {
  margin-bottom: 0.65rem;
  font-size: clamp(1.45rem, 1.15rem + 1vw, 2rem);
  line-height: 1.08;
}

.station p {
  font-size: 0.96rem;
  line-height: 1.6;
}

/* Deep-dive drawers */
.styledrop {
  max-width: none;
  margin-top: 1.35rem;
  border: 1px solid var(--line);
  background: rgba(2, 12, 12, 0.44);
}

.styledrop summary {
  min-height: 48px;
  padding: 0.8rem 0.9rem;
  color: var(--gold-bright);
  font-family: var(--ui);
  font-size: 0.55rem;
  letter-spacing: 0.16em;
}

.styledrop summary::before {
  width: 5px;
  height: 5px;
  content: "";
  background: var(--gold);
  transform: rotate(45deg);
}

.styledrop summary::after {
  display: grid;
  width: 24px;
  height: 24px;
  margin-left: auto;
  place-items: center;
  border: 1px solid var(--line-bright);
  content: "+";
}

.styledrop[open] summary {
  border-bottom: 1px solid var(--line);
  background: rgba(211, 169, 79, 0.04);
}

.styledrop[open] summary::after {
  content: "−";
}

.stylegroup {
  padding-inline: 0.9rem;
}

.stylegroup .gh {
  margin: 1.2rem 0 0.35rem;
  color: var(--paper-faint);
  font-family: var(--ui);
  font-size: 0.52rem;
}

.styitem {
  padding: 0.75rem 0;
  border-top: 1px solid rgba(151, 215, 192, 0.09);
}

.styitem .sn {
  color: var(--paper);
  font-family: var(--prose);
  font-size: 1rem;
  font-weight: 500;
}

.styitem .sp {
  border-radius: 0;
  font-family: var(--ui);
  font-size: 0.47rem;
}

.sp.avail {
  border-color: rgba(157, 224, 195, 0.44);
  color: var(--signal);
}

.sp.dev {
  border-color: rgba(211, 169, 79, 0.46);
  color: var(--gold-bright);
}

.sp.plan {
  border-color: var(--line);
  color: var(--paper-faint);
}

.sp.cfg {
  border-color: rgba(112, 174, 230, 0.45);
  color: #a9d4f8;
}

.styitem .sd {
  color: var(--paper-faint);
  font-size: 0.82rem;
}

.drop-note {
  margin: 0.4rem 0.9rem 1rem;
  padding: 0.85rem;
  border-left: 1px solid var(--gold);
  color: var(--paper-dim);
  background: rgba(211, 169, 79, 0.035);
  font-size: 0.86rem;
}

/* Cards / modes */
.duo {
  gap: 1rem;
  margin-top: 2rem;
}

.card,
.plat {
  position: relative;
  padding: clamp(1.25rem, 2.5vw, 1.8rem);
  border: 1px solid var(--line);
  border-radius: 0;
  background: linear-gradient(135deg, rgba(15, 55, 49, 0.46), rgba(3, 14, 14, 0.52));
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}

.card::before,
.plat::before {
  position: absolute;
  top: -1px;
  left: 0;
  width: 3rem;
  height: 2px;
  content: "";
  background: var(--gold);
}

.card .k,
.plat .when {
  color: var(--signal);
  font-family: var(--ui);
  font-size: 0.52rem;
  letter-spacing: 0.18em;
}

.card h3,
.plat .what {
  margin-bottom: 0.6rem;
  color: var(--paper);
  font-family: var(--display);
  font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.8rem);
}

.fuse {
  margin-top: 2rem;
  padding: 1.15rem;
  border: 1px solid var(--line);
  color: var(--gold-bright);
  background: rgba(211, 169, 79, 0.035);
  font-family: var(--prose);
  font-size: clamp(1.1rem, 1rem + 0.45vw, 1.4rem);
}

/* Release panel */
.release {
  overflow: hidden;
  border-top-color: var(--gold);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 25%, rgba(211, 169, 79, 0.12), transparent 34rem),
    linear-gradient(180deg, rgba(9, 35, 32, 0.9), rgba(2, 10, 11, 0.94));
}

.release::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background-image: repeating-radial-gradient(circle at 50% 10%, transparent 0 68px, rgba(211, 169, 79, 0.05) 69px 70px);
  -webkit-mask-image: linear-gradient(black, transparent 78%);
  mask-image: linear-gradient(black, transparent 78%);
}

.release .container {
  position: relative;
  z-index: 2;
}

.release .eyebrow {
  justify-content: center;
}

.rel-when {
  margin-top: 0.5rem;
  color: var(--paper);
  font-family: var(--display);
  font-size: clamp(3.5rem, 2rem + 6vw, 7rem);
  font-weight: 600;
  letter-spacing: -0.04em;
}

.platforms {
  max-width: 940px;
  gap: 1rem;
  margin-top: 2.5rem;
}

.engine {
  color: var(--signal);
  font-family: var(--ui);
  font-size: 0.54rem;
  letter-spacing: 0.16em;
}

.cta-note {
  color: var(--paper-faint);
  font-family: var(--ui);
  font-size: 0.52rem;
}

/* FAQ */
.faq {
  display: grid;
  gap: 0.55rem;
}

.faq details {
  border: 1px solid var(--line);
  background: rgba(2, 12, 12, 0.35);
}

.faq summary {
  min-height: 58px;
  padding: 0.85rem 1rem;
  color: var(--paper);
  font-family: var(--prose);
  font-size: clamp(1rem, 0.95rem + 0.28vw, 1.16rem);
  font-weight: 500;
}

.faq summary::after {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line-bright);
  color: var(--gold);
  font-family: var(--ui);
  font-size: 0.9rem;
}

.faq details[open] summary {
  border-bottom: 1px solid var(--line);
  color: var(--gold-bright);
}

.faq .ans {
  max-width: 68ch;
  padding: 1rem;
  color: var(--paper-dim);
}

/* Footer */
.footer {
  position: relative;
  padding-block: clamp(4.5rem, 10vw, 8rem);
  overflow: hidden;
  border-top: 1px solid var(--gold);
  background: linear-gradient(180deg, #041412, #020a0b);
}

.footer::before {
  position: absolute;
  top: -17rem;
  left: 50%;
  width: 38rem;
  height: 38rem;
  border: 1px solid rgba(211, 169, 79, 0.1);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 5rem rgba(211, 169, 79, 0.018), 0 0 0 10rem rgba(211, 169, 79, 0.012);
  transform: translateX(-50%);
}

.footer .container {
  position: relative;
}

.footer img {
  height: 120px;
  filter: drop-shadow(0 20px 35px rgba(0, 0, 0, 0.5));
}

.footer .closing {
  color: var(--paper);
  font-family: var(--display);
  font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.2rem);
}

.social a {
  min-width: 7.5rem;
  border-color: var(--line);
  border-radius: 0;
  color: var(--paper-dim);
  background: rgba(8, 30, 28, 0.42);
  font-family: var(--ui);
  font-size: 0.54rem;
}

.social a:hover {
  border-color: var(--signal);
  color: var(--signal-bright);
}

.footer .meta {
  color: var(--paper-faint);
  font-family: var(--ui);
  font-size: 0.54rem;
}

/* Privacy document inherits the visual system without becoming a game screen. */
.legal-page {
  background:
    radial-gradient(circle at 75% 0%, rgba(30, 111, 91, 0.15), transparent 28rem),
    linear-gradient(180deg, #03100f, var(--void));
}

.legal-page::before {
  opacity: 0.4;
}

.legal-page .container {
  width: min(100% - 2.4rem, 860px);
}

.legal-page .topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line-bright);
  background: rgba(3, 16, 15, 0.9);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.legal-page .topbar .container {
  min-height: 66px;
  padding-block: 0.6rem;
}

.legal-page .topbar img {
  height: 44px;
}

.legal-page .topbar .brand-text {
  color: var(--paper);
  font-family: var(--display);
}

.legal-page .topbar .home {
  border: 1px solid var(--line-bright);
  border-radius: 0;
  color: var(--signal);
  background: rgba(10, 40, 36, 0.45);
  font-family: var(--ui);
}

.legal-page main {
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.legal-page main > .container {
  position: relative;
  padding: clamp(1.4rem, 4vw, 3.2rem);
  border: 1px solid var(--line);
  background: rgba(5, 23, 21, 0.66);
  box-shadow: 0 38px 90px rgba(0, 0, 0, 0.22);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
}

.legal-page h1,
.legal-page h2,
.legal-page h3 {
  color: var(--paper);
  font-family: var(--display);
}

.legal-page h1 {
  max-width: none;
  font-size: clamp(2.8rem, 1.7rem + 4vw, 5rem);
}

.legal-page h2 {
  max-width: none;
  margin-top: 3rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  letter-spacing: -0.015em;
}

.legal-page h3 {
  color: var(--gold-bright);
  font-family: var(--prose);
}

.legal-page p,
.legal-page li {
  color: var(--paper-dim);
}

.legal-page a {
  color: var(--signal-bright);
  border-bottom-color: var(--line-bright);
}

.legal-page .updated {
  color: var(--signal);
  font-family: var(--ui);
}

.legal-page .lede {
  color: var(--paper);
}

.legal-page .footer {
  margin-top: 0;
}

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(20px) scale(0.995);
  transition: opacity 700ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@keyframes statusPulse {
  0%, 100% { opacity: 0.65; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes stageScan {
  from { background-position: 0 -180px; }
  to { background-position: 0 180px; }
}

/* Responsive */
@media (max-width: 1180px) {
  .nav-status {
    display: none;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(390px, 0.75fr);
    gap: 2rem;
  }

  .world-console {
    max-width: 540px;
  }
}

@media (max-width: 980px) {
  :root {
    --page: min(100% - 2rem, 760px);
  }

  .nav {
    inset-inline: 1rem;
    width: calc(100% - 2rem);
  }

  .nav-links .nav-link:not(.nav-cta) {
    display: none;
  }

  .hero {
    padding-inline: 1rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
    padding-block: 2rem 4rem;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero h1 {
    max-width: 9ch;
  }

  .world-console {
    width: min(100%, 640px);
    justify-self: start;
  }

  .console-stage {
    min-height: 470px;
  }

  .hero-scroll {
    display: none;
  }

  .station {
    grid-column: 1 / -1;
  }

  .station:has(.styledrop) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  :root {
    --page: min(100% - 1.4rem, 620px);
    --nav-height: 62px;
    --section-space: 5.2rem;
  }

  body::before {
    background-size: 42px 42px;
  }

  .nav {
    inset: 0.55rem 0.55rem auto;
    width: calc(100% - 1.1rem);
    min-height: var(--nav-height);
    padding: 0.4rem 0.45rem 0.4rem 0.55rem;
  }

  .brand img {
    width: 36px;
    height: 40px;
  }

  .brand-text {
    display: none !important;
  }

  .brand {
    min-width: 0;
  }

  .nav-links {
    flex: 0 0 auto;
    overflow: visible;
  }

  .nav-cta {
    min-height: 38px;
    margin-left: 0;
    padding-inline: 0.8rem;
    font-size: 0.52rem;
  }

  .hero {
    padding: calc(var(--nav-height) + 3.2rem) 0.7rem 3rem;
  }

  .hero-grid {
    width: 100%;
    min-width: 0;
    gap: 2.8rem;
    padding-bottom: 1rem;
  }

  .hero-copy {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .hero-lockup img {
    width: 54px;
  }

  .hero h1 {
    width: 100%;
    max-width: 100%;
    font-size: clamp(2.9rem, 13.2vw, 4rem);
    letter-spacing: -0.06em;
  }

  .hero h1 span,
  .hero h1 em,
  .hero .sub,
  .hero .hook {
    max-width: 100%;
  }

  .hero .sub {
    letter-spacing: 0.13em;
  }

  .hero .cta-row {
    align-items: stretch;
  }

  .hero .btn {
    width: 100%;
  }

  .badges {
    gap: 0.35rem;
  }

  .world-console {
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  }

  .console-stage {
    min-height: min(110vw, 410px);
  }

  .globe-wrap {
    width: 84%;
  }

  .map-coordinates {
    font-size: 0.46rem;
  }

  .map-legend {
    display: none;
  }

  .console-readout {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .readout-state {
    margin-top: 0.35rem;
  }

  .layer-tabs {
    grid-template-columns: repeat(2, 1fr);
  }

  .console-bottom {
    display: none;
  }

  .section::before {
    right: 0.8rem;
    font-size: 0.45rem;
  }

  h2 {
    font-size: clamp(2.35rem, 12vw, 3.6rem);
  }

  #game .narrow,
  #legacy .narrow,
  #vision .narrow,
  #faq .narrow {
    padding: 1.2rem;
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  }

  #legacy h3,
  #legacy h3 + p {
    padding-left: 0;
  }

  #legacy h3::before {
    display: none;
  }

  .station {
    padding: 1.15rem;
  }

  .duo,
  .platforms {
    grid-template-columns: 1fr;
  }

  .styledrop[open] {
    margin-inline: -0.4rem;
  }

  .styitem {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .legal-page main > .container {
    padding: 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .status-dot,
  .console-stage::before {
    animation: none;
  }

  .btn,
  .station,
  .reveal {
    transition: none;
  }
}

@media (prefers-contrast: more) {
  :root {
    --line: rgba(208, 245, 231, 0.36);
    --line-bright: rgba(225, 255, 244, 0.68);
    --paper-dim: rgba(255, 250, 238, 0.88);
    --paper-faint: rgba(255, 250, 238, 0.7);
  }
}
