/* Galactic Foundry landing page. Palette = docs/art_direction.md §2 (GfColors.kt); fonts = the game's Kenney Future
   (display) and Kenney Future Narrow (labels), both caps-only; body text uses the system font for readability.
   No external resources (CSP default-src 'self'), no inline styles. After editing: tools/web/build_landing.py --hash-only */

@font-face {
  font-family: "Kenney Future";
  src: url(/assets/fonts/kenney-future.40ba078caa.ttf) format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Kenney Future Narrow";
  src: url(/assets/fonts/kenney-future-narrow.999044ba81.ttf) format("truetype");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --space: #080b19;
  --space-2: #0e1226;
  --graphite-900: #16191f;
  --graphite-800: #1f242c;
  --graphite-700: #2a3039;
  --graphite-600: #363d48;
  --steel-500: #4c5664;
  --steel-400: #66717f;
  --steel-300: #8693a3;
  --steel-200: #aeb9c7;
  --panel-100: #d5dce5;
  --ore: #e2622b;
  --glow-ore: #ff8a3a;
  --hazard: #ffb020;
  --energy: #33d1ff;
  --glow-energy: #6fe8ff;
  --research: #9566ff;
  --glow-research: #b796ff;
  --credits: #ffc23d;
  --glow-gold: #ffd866;
  --gems: #2cf5b5;
  --quantum: #ff5cc8;
  --ok: #4bd07a;
  --glow-ok: #7dffa8;
  --warn: #ff9a2e;

  --font-display: "Kenney Future", "Arial Black", "Segoe UI", system-ui, sans-serif;
  --font-label: "Kenney Future Narrow", "Arial Narrow", "Segoe UI", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;

  --gutter: 16px;
  --max: 1180px;
  --stars:
    radial-gradient(1.5px 1.5px at 23px 41px, rgba(255, 255, 255, 0.8), transparent 70%),
    radial-gradient(1px 1px at 141px 87px, rgba(200, 225, 255, 0.7), transparent 70%),
    radial-gradient(1px 1px at 233px 19px, rgba(255, 255, 255, 0.55), transparent 70%),
    radial-gradient(1.5px 1.5px at 187px 211px, rgba(255, 235, 215, 0.7), transparent 70%),
    radial-gradient(1px 1px at 61px 173px, rgba(255, 255, 255, 0.5), transparent 70%),
    radial-gradient(1px 1px at 277px 151px, rgba(220, 210, 255, 0.6), transparent 70%),
    radial-gradient(1px 1px at 101px 263px, rgba(255, 255, 255, 0.45), transparent 70%);
  --oct: polygon(29.3% 0, 70.7% 0, 100% 29.3%, 100% 70.7%, 70.7% 100%, 29.3% 100%, 0 70.7%, 0 29.3%);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--space);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--space);
  color: var(--panel-100);
  font: 400 1rem/1.6 var(--font-body);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--glow-energy); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: #fff; }

:focus-visible {
  outline: 3px solid var(--glow-energy);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: min(var(--max), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  padding: 0.7rem 1rem;
  background: var(--hazard);
  color: var(--graphite-900);
  font: 400 0.85rem/1 var(--font-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}
.skip-link:focus { top: var(--gutter); }
main:focus { outline: none; }   /* target of the skip link (tabindex -1, starts at the hero and its h1), not a control */

/* ------------------------------------------------------------------ icons (one sprite, 14 cells: x = i / 13) */
.ico {
  display: inline-block;
  flex: none;
  width: 32px;
  height: 32px;
  background: url(/assets/img/ui-icons.2284b96963.webp) 0 0 / auto 100% no-repeat;
}
.ico-ore { background-position-x: 0%; }
.ico-energy { background-position-x: 7.6923%; }
.ico-alloy { background-position-x: 15.3846%; }
.ico-credits { background-position-x: 23.0769%; }
.ico-research { background-position-x: 30.7692%; }
.ico-gems { background-position-x: 38.4615%; }
.ico-quantum { background-position-x: 46.1538%; }
.ico-trophy { background-position-x: 53.8462%; }
.ico-timer { background-position-x: 61.5385%; }
.ico-check { background-position-x: 69.2308%; }
.ico-warning { background-position-x: 76.9231%; }
.ico-arrow { background-position-x: 84.6154%; }
.ico-wrench { background-position-x: 92.3077%; }
.ico-star { background-position-x: 100%; }

/* ------------------------------------------------------------------ type */
.display, h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.2;
  margin: 0;
}

.label {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.eyebrow {
  margin: 0 0 0.9rem;
  font: 400 clamp(0.95rem, 0.8rem + 0.6vw, 1.2rem)/1.3 var(--font-label);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--glow-energy);
  text-shadow: 0 0 18px rgba(51, 209, 255, 0.55);
}

/* ------------------------------------------------------------------ site header */
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 5;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--panel-100);
  text-decoration: none;
  font: 400 0.95rem/1 var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.brand img { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 0 0 1px rgba(174, 185, 199, 0.25); }
.site-nav ul { display: flex; gap: 0.25rem; margin: 0; padding: 0; list-style: none; }
.site-nav a {
  display: block;
  padding: 0.55rem 0.8rem;
  color: var(--steel-200);
  font: 400 0.8rem/1 var(--font-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}
.site-nav a:hover { color: #fff; }
.site-nav a, .brand { text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 0 12px rgba(8, 11, 25, 0.9); }
@media (max-width: 859px) {
  .site-nav { display: none; }
}

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 96px 0 8px;
  background:
    linear-gradient(180deg, rgba(8, 11, 25, 0) 72%, var(--space) 100%),
    radial-gradient(ellipse 70% 55% at 70% 45%, rgba(149, 102, 255, 0.16), transparent 70%),
    radial-gradient(ellipse 60% 50% at 10% 85%, rgba(51, 209, 255, 0.08), transparent 70%),
    var(--space);
}
.hero::before {               /* the ringed gas giant of the game's sky, partly outside the top right corner */
  content: "";
  position: absolute;
  z-index: -1;
  top: -150px;
  right: -230px;
  width: 560px;
  aspect-ratio: 1200 / 938;
  background: url(/assets/img/sky-planet-1200.8a0ca56426.webp) 0 0 / 100% 100% no-repeat;
  -webkit-mask-image: radial-gradient(ellipse 88% 62% at 80% 42%, #000 50%, transparent 100%);
  mask-image: radial-gradient(ellipse 88% 62% at 80% 42%, #000 50%, transparent 100%);
  opacity: 0.9;
  pointer-events: none;
}
.hero::after, .content::before {  /* star field */
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background-image: var(--stars);
  background-size: 300px 300px;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  gap: 0.5rem;
  align-items: center;
}
.hero h1 { margin: 0 0 1.1rem; }
.hero h1 img {
  width: min(100%, 540px);
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.55));
}
.pitch {
  margin: 0 0 0.6rem;
  max-width: 32ch;
  font-size: clamp(1.2rem, 1rem + 1vw, 1.55rem);
  line-height: 1.4;
  font-weight: 600;
  color: #fff;
  text-wrap: balance;
}
.sub {
  margin: 0 0 1.6rem;
  max-width: 46ch;
  color: var(--steel-200);
  font-size: 1.05rem;
}

.store { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; margin: 0; }
.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 52px;
  padding: 0.85rem 1.4rem 0.8rem;
  font: 400 0.95rem/1.1 var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
}
.cta-soon {
  color: var(--glow-gold);
  background:
    linear-gradient(var(--graphite-900), var(--graphite-900)) padding-box,
    linear-gradient(180deg, var(--hazard), #b77708) border-box;
  border: 2px solid transparent;
  box-shadow: inset 0 0 22px rgba(255, 176, 32, 0.12);
}
.cta-soon .dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--glow-gold);
  box-shadow: 0 0 6px 1px rgba(255, 176, 32, 0.9);
  animation: blink 2.2s ease-in-out infinite;
}
.cta-play {
  color: var(--graphite-900);
  text-decoration: none;
  background: linear-gradient(180deg, #6fe39a 0%, var(--ok) 55%, #33a95f 100%);
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.22), inset 0 2px 0 rgba(255, 255, 255, 0.35);
}
.cta-play::before {
  content: "";
  width: 0; height: 0;
  border-style: solid;
  border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent var(--graphite-900);
}
.cta-play:hover { color: var(--graphite-900); filter: brightness(1.08); }
/* The chamfer (clip-path) cuts off anything drawn outside the button, so the focus ring sits inside it: a white band
   along the edge and a dark ring inside that (both well above 3:1 against the green and against the dark page). */
.cta:focus-visible {
  outline: 3px solid var(--graphite-900);
  outline-offset: -7px;
  box-shadow: inset 0 0 0 4px #fff;
}
@media (max-width: 439px) {
  .cta { gap: 0.55rem; padding-inline: 1rem; font-size: 0.78rem; letter-spacing: 0.06em; }
}
.req {
  margin: 0.9rem 0 0;
  color: var(--steel-300);
  font: 400 0.78rem/1.4 var(--font-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-art {
  position: relative;
  width: min(100% + 16px, 620px);
  margin: 0 auto;
}
.hero-art::before {           /* the energy glow under the floating island */
  content: "";
  position: absolute;
  inset: 22% 8% 4%;
  background: radial-gradient(closest-side, rgba(51, 209, 255, 0.28), rgba(149, 102, 255, 0.12) 55%, transparent);
  filter: blur(18px);
}
.island {
  position: relative;
  width: 100%;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.6));
  animation: float 7s ease-in-out infinite;
}

/* HUD: the game in numbers, styled like the resource bar of the game */
.hud {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}
.chip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 72px;
  padding: 0.7rem 0.9rem;
  background:
    linear-gradient(180deg, #262c35, var(--graphite-800)) padding-box,
    linear-gradient(180deg, var(--steel-400), var(--graphite-600)) border-box;
  border: 2px solid transparent;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35), inset 0 -3px 0 rgba(0, 0, 0, 0.25);
}
.chip .ico { width: 36px; height: 36px; }
.chip-text { display: flex; flex-direction: column; min-width: 0; }
.chip-num {
  font: 400 1.45rem/1.05 var(--font-display);
  letter-spacing: 0.03em;
  color: #fff;
}
.chip-label {
  margin-top: 0.3rem;
  color: var(--steel-200);
  font: 400 0.72rem/1.25 var(--font-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.chip:last-child:nth-child(odd) { grid-column: 1 / -1; }
.c-ore .chip-num { color: var(--glow-ore); }
.c-research .chip-num { color: var(--glow-research); }
.c-gold .chip-num { color: var(--credits); }
.c-quantum .chip-num { color: var(--quantum); }
.c-energy .chip-num { color: var(--glow-energy); }
@media (max-width: 439px) {
  .chip { gap: 0.55rem; padding: 0.6rem 0.65rem; }
  .chip .ico { width: 28px; height: 28px; }
  .chip-label { font-size: 0.66rem; letter-spacing: 0.04em; }
}

/* ------------------------------------------------------------------ sections (main = .hero + .content) */
.content {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse 60% 40% at 8% 30%, rgba(149, 102, 255, 0.10), transparent 70%),
    radial-gradient(ellipse 50% 35% at 95% 55%, rgba(51, 209, 255, 0.07), transparent 70%),
    radial-gradient(ellipse 70% 30% at 40% 92%, rgba(255, 92, 200, 0.06), transparent 70%),
    var(--space);
}

.section { padding: clamp(4rem, 3rem + 4vw, 6.5rem) 0 0; }
.section-head { text-align: center; margin: 0 auto 2.4rem; max-width: 46rem; }
.section-head h2 {
  font-size: clamp(1.55rem, 1.1rem + 2.2vw, 2.5rem);
  color: #fff;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.45);
  text-wrap: balance;
}
.section-head h2::after {      /* the short accent bar under every caption of the store screenshots */
  content: "";
  display: block;
  width: 72px;
  height: 5px;
  margin: 1rem auto 1rem;
  border-radius: 3px;
  background: var(--accent, var(--hazard));
  box-shadow: 0 0 14px var(--accent, var(--hazard));
}
.kicker {
  margin: 0;
  font: 400 clamp(0.85rem, 0.75rem + 0.5vw, 1.05rem)/1.4 var(--font-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent, var(--hazard));
}
.lead {
  max-width: 44rem;
  margin: 0 auto 2.6rem;
  text-align: center;
  font-size: 1.1rem;
  color: var(--panel-100);
}
.a-energy { --accent: var(--glow-energy); }
.a-ok { --accent: var(--ok); }
.a-gold { --accent: var(--hazard); }
.a-research { --accent: var(--glow-research); }

/* ------------------------------------------------------------------ chamfered panels (the game's ui_panel) */
.panel {
  --cut: 16px;
  --edge: linear-gradient(180deg, var(--accent, var(--steel-400)) 0, var(--steel-500) 46px, var(--graphite-600) 100%);
  position: relative;
  isolation: isolate;
  background: var(--edge);
  clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
}
.panel::before {
  --in: calc(var(--cut) - 1px);
  content: "";
  position: absolute;
  inset: 2px;
  z-index: -1;
  background: linear-gradient(180deg, #272d36 0%, var(--graphite-800) 120px, #1b1f26 100%);
  clip-path: polygon(var(--in) 0, calc(100% - var(--in)) 0, 100% var(--in), 100% calc(100% - var(--in)), calc(100% - var(--in)) 100%, var(--in) 100%, 0 calc(100% - var(--in)), 0 var(--in));
}

/* octagon badge around an icon, like the building badges of the game */
.badge {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 60px;
  height: 60px;
  background: var(--accent, var(--steel-400));
  clip-path: var(--oct);
}
.badge::before {
  content: "";
  position: absolute;
  inset: 3px;
  background: radial-gradient(circle at 50% 35%, #2b313b, var(--graphite-900));
  clip-path: var(--oct);
}
.badge .ico { position: relative; width: 34px; height: 34px; }

.k-ore { --accent: var(--ore); }
.k-energy { --accent: var(--energy); }
.k-hazard { --accent: var(--hazard); }
.k-ok { --accent: var(--ok); }
.k-research { --accent: var(--research); }
.k-quantum { --accent: var(--quantum); }
.k-warn { --accent: var(--warn); }
.k-gold { --accent: var(--credits); }

/* ------------------------------------------------------------------ production chain */
.chain {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin: 0 0 2.4rem;
  padding: 0;
  list-style: none;
}
.machine {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 1rem;
  row-gap: 0.2rem;
  align-items: center;
  padding: 0.9rem 1rem;
}
.machine .badge { grid-row: 1 / 3; }
.machine h3 { align-self: end; }
.machine p { align-self: start; }
.machine .badge { width: 60px; height: 60px; }
.machine .badge .ico { width: 34px; height: 34px; }
.machine h3 { font-size: 0.98rem; letter-spacing: 0.05em; color: #fff; }
.machine p { margin: 0; color: var(--steel-200); font-size: 0.95rem; line-height: 1.4; }

/* ------------------------------------------------------------------ feature cards */
.cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.card { padding: 1.4rem 1.4rem 1.5rem; }
.card-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.9rem; }
.card h3 { font-size: 1.02rem; color: #fff; letter-spacing: 0.05em; }
.card p { margin: 0; color: var(--panel-100); }
.card .note { margin-top: 0.7rem; color: var(--steel-200); font-size: 0.95rem; }

/* ------------------------------------------------------------------ screenshots */
.shots {
  margin: 0 calc(-1 * var(--gutter));
  padding: 0.5rem var(--gutter) 1.2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--steel-500) transparent;
}
.shots ul {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(74vw, 300px);
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.shots li { scroll-snap-align: center; }
.shot {
  margin: 0;
  padding: 6px;
  border-radius: 22px;
  background: linear-gradient(180deg, var(--steel-400), var(--graphite-700));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.shot img { border-radius: 16px; width: 100%; aspect-ratio: 9 / 16; background: var(--graphite-800); }

/* ------------------------------------------------------------------ windows (header bar like "Welcome back!") */
.window { padding: 2px; }
.window::before { inset: 2px; }
.window-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.95rem 1.4rem 0.85rem;
  background: linear-gradient(180deg, var(--head-hi), var(--head));
  color: var(--graphite-900);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.18);
}
.window-head h2, .window-head h3 { font-size: clamp(1.05rem, 0.9rem + 0.8vw, 1.4rem); color: var(--graphite-900); text-shadow: none; }
.window-head .ico { width: 30px; height: 30px; filter: brightness(0.15); }
.window-body { padding: 1.4rem 1.4rem 1.6rem; }
.w-energy { --accent: var(--energy); --head: #22b8e6; --head-hi: var(--glow-energy); }
.w-gold { --accent: var(--hazard); --head: #f2a514; --head-hi: var(--glow-gold); }
.w-steel { --accent: var(--steel-300); --head: #9aa6b5; --head-hi: #c3ccd8; }

/* weekly challenge */
.stats {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin: 1.4rem 0 0;   /* below the text while stacked; next to it (no margin) from 960 px */
  padding: 0;
  list-style: none;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 0.9rem 1rem;
  border-radius: 6px;
  background: rgba(10, 13, 20, 0.55);
  box-shadow: inset 0 0 0 1px rgba(134, 147, 163, 0.18);
}
.stat-num {
  flex: none;
  min-width: 4.4ch;
  font: 400 1.7rem/1 var(--font-display);
  color: var(--glow-energy);
  text-shadow: 0 0 16px rgba(51, 209, 255, 0.45);
}
.stat-text { color: var(--panel-100); font-size: 0.98rem; line-height: 1.4; }
.stat-num.word { font-size: 1.35rem; color: var(--glow-ok); text-shadow: 0 0 16px rgba(75, 208, 122, 0.45); }
.data-more { margin-top: 1.4rem !important; padding-top: 1.1rem; border-top: 1px solid rgba(134, 147, 163, 0.18); }
.tiers { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.4rem; padding: 0; list-style: none; }
.tier {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem 0.45rem;
  border-radius: 999px;
  font: 400 0.8rem/1 var(--font-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--graphite-900);
}
.tier .ico { width: 20px; height: 20px; filter: brightness(0.2); }
.tier-1 { background: linear-gradient(180deg, var(--glow-gold), var(--credits)); }
.tier-10 { background: linear-gradient(180deg, #e3e9f0, var(--steel-200)); }
.tier-50 { background: linear-gradient(180deg, #f0a875, #c9733f); }
.window-body p { margin: 0 0 0.9rem; }
.window-body p:last-child { margin-bottom: 0; }
.muted { color: var(--steel-200); }

/* fair by design + your data */
.checks { margin: 0; padding: 0; list-style: none; display: grid; gap: 1rem; }
.checks li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 0.85rem; align-items: start; }
.checks .ico { width: 28px; height: 28px; margin-top: 0.05rem; }
.checks strong { color: #fff; font-weight: 700; }
.duo { display: grid; gap: 18px; }

/* ------------------------------------------------------------------ closing call */
.launch {
  margin-top: clamp(4rem, 3rem + 4vw, 6.5rem);
  padding: 3.2rem 0 3.4rem;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 90% at 50% 100%, rgba(255, 176, 32, 0.12), transparent 70%),
    linear-gradient(180deg, transparent, rgba(22, 25, 31, 0.6));
}
.launch img {
  width: 96px;
  height: 96px;
  margin: 0 auto 1.3rem;
  border-radius: 22px;
  box-shadow: 0 0 0 2px rgba(174, 185, 199, 0.25), 0 14px 40px rgba(51, 209, 255, 0.25);
}
.launch h2 { font-size: clamp(1.4rem, 1rem + 2vw, 2.1rem); color: #fff; margin-bottom: 0.7rem; }
.launch p { margin: 0 auto 1.5rem; max-width: 40rem; color: var(--steel-200); }
.launch .store { justify-content: center; }

/* ------------------------------------------------------------------ footer */
.site-footer {
  position: relative;
  padding: 2.4rem 0 2.6rem;
  background: var(--graphite-900);
  color: var(--steel-200);
  font-size: 0.92rem;
}
.site-footer::before {          /* the yellow dashes of the platform edge */
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--hazard) 0 26px, transparent 26px 44px);
  opacity: 0.85;
}
.footer-grid { display: grid; gap: 1.4rem; }
.footer-brand { display: flex; align-items: center; gap: 0.7rem; color: var(--panel-100); }
.footer-brand img { width: 32px; height: 32px; border-radius: 8px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem; margin: 0; padding: 0; list-style: none; }
.footer-links a { color: var(--panel-100); }
.footer-links a:hover { color: var(--glow-energy); }
.fine { margin: 0; color: var(--steel-300); font-size: 0.84rem; line-height: 1.5; }

/* ------------------------------------------------------------------ 404 */
.lost {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 110px 0 60px;
  text-align: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(ellipse 60% 50% at 50% 60%, rgba(149, 102, 255, 0.14), transparent 70%), var(--space);
}
.lost::before {
  content: "";
  position: absolute;
  pointer-events: none;
  left: auto;
  bottom: auto;
  z-index: -1;
  top: -120px;
  right: -200px;
  width: min(900px, 120vw);
  aspect-ratio: 1200 / 938;
  background: url(/assets/img/sky-planet-1200.8a0ca56426.webp) 0 0 / 100% 100% no-repeat;
  -webkit-mask-image: radial-gradient(ellipse 88% 62% at 80% 42%, #000 50%, transparent 100%);
  mask-image: radial-gradient(ellipse 88% 62% at 80% 42%, #000 50%, transparent 100%);
  opacity: 0.75;
}
.lost::after {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background-image: var(--stars);
  background-size: 300px 300px;
}
.lost h1 { font-size: clamp(2rem, 1.2rem + 4vw, 3.6rem); color: #fff; text-shadow: 0 4px 0 rgba(0, 0, 0, 0.5); }
.lost h1::after {
  content: "";
  display: block;
  width: 72px; height: 5px;
  margin: 1.1rem auto 1.2rem;
  border-radius: 3px;
  background: var(--warn);
  box-shadow: 0 0 14px var(--warn);
}
.lost p { margin: 0 auto 1.8rem; max-width: 30rem; color: var(--steel-200); font-size: 1.1rem; }
.lost .cta { text-decoration: none; }
.lost .badge { width: 88px; height: 88px; margin: 0 auto 1.6rem; }
.lost .badge .ico { width: 48px; height: 48px; }

/* ------------------------------------------------------------------ larger screens */
@media (min-width: 600px) {
  /* five chips as 3 + 2: six tracks, the two chips of the second row take three each (no empty slot) */
  .hud { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .chip, .chip:last-child:nth-child(odd) { grid-column: span 2; }
  .chip:nth-child(4):nth-last-child(2), .chip:nth-child(5):last-child { grid-column: span 3; }
  .chain { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .machine:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero::before { top: -210px; right: -250px; width: 760px; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .footer-grid .fine { grid-column: 1 / -1; }
}

@media (min-width: 960px) {
  :root { --gutter: 32px; }
  .hero { padding-top: 120px; }
  .hero::before { top: -250px; right: -300px; width: 980px; }
  .hero-grid { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 1rem; }
  .hero-art { width: auto; margin: -1rem -2rem 0 0; }
  .hud { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 1rem; }
  .chip, .chip:last-child:nth-child(odd), .chip:nth-child(4):nth-last-child(2), .chip:nth-child(5):last-child { grid-column: auto; }
  .chain { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .machine:last-child:nth-child(odd) { grid-column: auto; }
  .machine {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    padding: 1.3rem 0.8rem 1.2rem;
    text-align: center;
  }
  .machine h3, .machine p { align-self: auto; }
  .machine .badge { width: 72px; height: 72px; }
  .machine .badge .ico { width: 40px; height: 40px; }
  .chain::before {            /* conveyor behind the badges */
    content: "";
    position: absolute;
    z-index: 0;
    top: 56px;
    left: 10%;
    right: 10%;
    height: 6px;
    border-radius: 3px;
    background: repeating-linear-gradient(90deg, var(--steel-400) 0 16px, var(--graphite-600) 16px 26px);
    box-shadow: 0 0 0 2px var(--graphite-900);
    animation: conveyor 1.6s linear infinite;
  }
  .machine { position: relative; z-index: 1; }
  .cards { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .cards > li { grid-column: span 3; }
  .cards > li.wide { grid-column: span 6; }
  .shots { margin: 0; padding: 0.5rem 0 0; overflow: visible; }
  .shots ul { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-columns: auto; gap: 26px; }
  .shots li:nth-child(even) { transform: translateY(36px); }
  .duo { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }
  .challenge-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
  .challenge-body .stats { grid-template-columns: minmax(0, 1fr); margin-top: 0; }
  .challenge-body .stat { flex-direction: row; align-items: center; gap: 1rem; }
  .challenge-body .stat-num { width: 5.4rem; min-width: 0; }
  .window-body { padding: 1.8rem 2rem 2rem; }
}

/* ------------------------------------------------------------------ motion */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
@keyframes conveyor {
  to { background-position: 26px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
