/* Lunatic Fling: lunaticfling.com
   Cel-shaded like the game: cream type, gold accents and thick ink outlines on a drifting nebula.
   Fonts are self-hosted (SIL Open Font License 1.1, see /fonts). No external requests. */

@font-face { font-family: "Righteous"; src: url("/fonts/Righteous-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url("/fonts/ChakraPetch-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url("/fonts/ChakraPetch-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url("/fonts/ChakraPetch-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --space: #0b0d2a;
  --ink: #16123d;
  --cream: #f3ecdc;
  --gold: #ffd166;
  --sky: #6ec6ff;
  --teal: #36e0c2;
  --pink: #ff5ea8;
  --danger: #ff4d6d;

  --deep: #06071c;          /* the hard cel shadow under panels */
  --edge: #2e2878;          /* panel outline, one step up from ink */
  --panel: rgba(22, 18, 61, 0.82);
  --muted: rgba(243, 236, 220, 0.76);

  --display: "Righteous", "Chakra Petch", system-ui, sans-serif;
  --ui: "Chakra Petch", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 20px;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  font: 500 1.0625rem/1.6 var(--ui);
  color: var(--cream);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* The drifting nebula (CSS) and the starfield (canvas, /site.js) sit behind everything. */
body::before {
  content: "";
  position: fixed;
  inset: -12%;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(38% 32% at 80% 14%, rgba(54, 224, 194, 0.17), transparent 70%),
    radial-gradient(42% 38% at 10% 72%, rgba(255, 94, 168, 0.13), transparent 70%),
    radial-gradient(52% 44% at 42% 38%, rgba(112, 72, 214, 0.2), transparent 72%),
    radial-gradient(36% 30% at 88% 88%, rgba(110, 198, 255, 0.1), transparent 70%);
  animation: nebula 90s ease-in-out infinite alternate;
}
@keyframes nebula { to { transform: translate3d(-5%, 4%, 0) scale(1.1); } }

.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

img, svg { max-width: 100%; }
img { height: auto; }

a { color: var(--sky); text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
a:hover { color: var(--cream); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
[id] { scroll-margin-top: max(24px, env(safe-area-inset-top)); }

p { margin: 0 0 1em; }
strong { font-weight: 700; }

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

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  padding: 10px 14px; border-radius: 12px;
  background: var(--gold); color: var(--ink); font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

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

/* ---------- Header ---------- */

.bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 18px;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px; white-space: nowrap;
  color: var(--cream); text-decoration: none;
  font: 400 1.3rem/1 var(--display);
}
.brand img {
  width: 40px; height: 40px; border-radius: 10px;
  border: 2px solid var(--ink); box-shadow: 0 3px 0 var(--deep);
}
.bar nav { display: flex; gap: 4px; }
.bar nav a {
  color: var(--cream); text-decoration: none; font-weight: 600; font-size: 0.95rem;
  padding: 8px 10px; border-radius: 999px;
}
.bar nav a:hover, .bar nav a[aria-current="page"] { background: rgba(243, 236, 220, 0.1); }
@media (max-width: 520px) {
  .bar nav .wide { display: none; }
  .brand { font-size: 1.15rem; }
}

/* ---------- Type ---------- */

h1, h2 { font-family: var(--display); font-weight: 400; text-wrap: balance; }
h2 {
  font-size: clamp(2.1rem, 1.2rem + 3.4vw, 3.4rem);
  line-height: 1.04;
  margin: 0 0 0.45em;
  text-shadow: 0 0.07em 0 var(--ink);
}
h3 { font: 700 1.125rem/1.3 var(--ui); margin: 0 0 0.35em; }
.lede { font-size: clamp(1.125rem, 1.02rem + 0.45vw, 1.35rem); line-height: 1.5; max-width: 36ch; }
.muted { color: var(--muted); }
.fine { font-size: 0.875rem; color: var(--muted); }

section { padding-block: clamp(56px, 7vw, 96px); }
section > .wrap > p, .copy p { max-width: 60ch; }

/* ---------- Hero ---------- */

.hero { padding-block: 8px clamp(48px, 8vw, 96px); }
.hero .wrap { display: grid; gap: 8px; align-items: center; }
@media (min-width: 800px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 24px; min-height: min(780px, calc(100svh - 90px)); }
}

.title {
  margin: 0 0 0.22em;
  font-size: clamp(4rem, 1.2rem + 12vw, 9.6rem);
  line-height: 0.88;
  letter-spacing: -0.012em;
  text-shadow: 0 0.055em 0 var(--ink), 0 0.1em 0.04em rgba(6, 7, 28, 0.55);
}
.title span { display: block; }
.title .fling { color: var(--gold); }

.get { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 30px; }
/* Apple's badge, unaltered. Clear space of at least a quarter of its height all round. */
.badge { display: inline-block; padding: 14px; margin: -14px; line-height: 0; border-radius: 12px; }
.badge img { display: block; height: 54px; width: auto; }
.get p { margin: 0; font-weight: 600; color: var(--muted); line-height: 1.35; }

.hero-art { position: relative; width: min(340px, 68vw); aspect-ratio: 1; justify-self: center; order: -1; margin: -12px 0 -9%; }
@media (min-width: 800px) { .hero-art { order: 0; width: 100%; max-width: 600px; margin: 0; } }
.hero-art svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.orbit-back { z-index: 0; }
.orbit-front { z-index: 2; }
.ship {
  position: absolute; z-index: 1;
  left: 9%; top: 6%; width: 82%;
  animation: fling 1.5s cubic-bezier(0.16, 0.84, 0.3, 1) 0.15s both, bob 7s ease-in-out 1.65s infinite alternate;
}
.ship img { display: block; width: 100%; filter: drop-shadow(0 18px 24px rgba(6, 7, 28, 0.55)); }
/* Engine glow behind the nozzle, breathing like a spooling engine. */
.ship::before {
  content: ""; position: absolute; z-index: -1;
  left: 2%; top: 52%; width: 50%; height: 50%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 209, 102, 0.55), rgba(255, 94, 168, 0.22) 55%, transparent);
  animation: spool 2.4s ease-in-out infinite alternate;
}
@keyframes fling {
  from { transform: translate(-60%, 55%) rotate(-8deg) scale(0.5); opacity: 0; }
  25% { opacity: 1; }
  to { transform: none; }
}
@keyframes bob { to { transform: translate(1.4%, -2.6%) rotate(-1.4deg); } }
@keyframes spool { from { opacity: 0.55; transform: scale(0.92); } to { opacity: 1; transform: scale(1.06); } }

/* ---------- The name ---------- */

.define {
  max-width: 640px;
  padding: 22px 26px 18px;
  background: var(--panel);
  border: 2px solid var(--edge);
  border-radius: 22px;
  box-shadow: 0 6px 0 var(--deep);
}
.define-head { margin: 0 0 8px; font: 400 1.5rem/1.2 var(--display); }
.define-head em { font: italic 500 1rem var(--ui); color: var(--muted); margin-left: 8px; }
.define ol { margin: 0; padding-left: 1.4em; }
.define li { margin-bottom: 6px; padding-left: 4px; }
.define li::marker { color: var(--gold); font-weight: 700; }
.name { padding-block: 0 clamp(32px, 5vw, 56px); }
.name .define { margin-inline: auto; }

/* ---------- Split layouts ---------- */

.split { display: grid; gap: 44px; align-items: center; }
@media (min-width: 860px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; }
  .split.flip > :first-child { order: 2; }
}
.split figure { margin: 0; justify-self: center; }

/* A toon phone: thick ink outline, a bezel and an island. Not a product image. */
.phone {
  position: relative; margin: 0;
  width: min(300px, 74vw);
  padding: 9px;
  border-radius: 48px;
  background: #221c5c;
  border: 3px solid var(--ink);
  box-shadow: inset 0 0 0 2px #342d86, 0 10px 0 var(--deep), 0 28px 60px rgba(0, 0, 0, 0.45);
}
.screen { position: relative; border-radius: 38px; overflow: hidden; background: #000; line-height: 0; }
.screen img { display: block; width: 100%; }
.phone .screen::after {
  content: ""; position: absolute; left: 50%; top: 1.46%;
  width: 28.5%; height: 3.84%;
  transform: translateX(-50%);
  border-radius: 999px; background: #000;
}
.tablet {
  position: relative; margin: 0;
  padding: 11px;
  border-radius: 34px;
  background: #221c5c;
  border: 3px solid var(--ink);
  box-shadow: inset 0 0 0 2px #342d86, 0 10px 0 var(--deep), 0 28px 60px rgba(0, 0, 0, 0.45);
}
.tablet .screen { border-radius: 24px; }

/* ---------- Physics ---------- */

.facts { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 16px; }
.facts li { position: relative; padding-left: 26px; max-width: 54ch; }
.facts li::before {
  content: ""; position: absolute; left: 2px; top: 0.5em;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--dot, var(--teal));
  box-shadow: 0 0 0 2px var(--ink);
}
.facts li:nth-child(4n + 1) { --dot: var(--teal); }
.facts li:nth-child(4n + 2) { --dot: var(--pink); }
.facts li:nth-child(4n + 3) { --dot: var(--gold); }
.facts li:nth-child(4n + 4) { --dot: var(--sky); }

/* ---------- The ship's parts ---------- */

.shipwreck .wrap > h2, .shipwreck .wrap > .lede, .after-parts { text-align: center; margin-inline: auto; }
.parts { display: grid; gap: 28px; margin-top: 36px; }
.parts-ship { position: relative; width: min(380px, 80vw); justify-self: center; margin: 0; order: 1; }
.parts .part-list { order: 2; }
.parts .part-list + .parts-ship + .part-list { order: 3; }
.parts-ship img { display: block; width: 100%; filter: drop-shadow(0 14px 18px rgba(6, 7, 28, 0.6)); }
.tag {
  position: absolute; transform: translate(-50%, -50%);
  font: 700 0.72rem/1 var(--ui); letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 9px 5px; border-radius: 999px;
  background: var(--ink); color: var(--c);
  border: 2px solid var(--c);
  box-shadow: 0 3px 0 var(--deep);
  white-space: nowrap;
}
.tag.canopy { left: 50%; top: 19%; --c: var(--sky); }
.tag.wing-l { left: 16%; top: 47%; --c: var(--teal); }
.tag.wing-r { left: 84%; top: 47%; --c: var(--teal); }
.tag.fin { left: 50%; top: 41%; --c: var(--gold); }
.tag.nozzle { left: 50%; top: 59.5%; --c: var(--pink); }
.part-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.part-list h3 { color: var(--c); }
.part-list p { margin: 0; color: var(--muted); }
.part-list .canopy { --c: var(--sky); }
.part-list .wings { --c: var(--teal); }
.part-list .fin { --c: var(--gold); }
.part-list .nozzle { --c: var(--pink); }
@media (min-width: 560px) and (max-width: 899px) { .part-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) {
  .parts { grid-template-columns: minmax(0, 1fr) 360px minmax(0, 1fr); gap: 40px; align-items: center; }
  .parts .part-list { order: 1; text-align: right; }
  .parts .parts-ship { order: 2; }
  .parts .part-list + .parts-ship + .part-list { order: 3; text-align: left; }
  .parts .part-list p { margin-left: auto; }
  .parts .part-list + .parts-ship + .part-list p { margin-left: 0; }
  .part-list { gap: 48px; }
  .part-list p { max-width: 34ch; }
}
.after-parts { margin-top: 40px; max-width: 60ch; }

/* ---------- Wreckage, harbor, hive ---------- */

.duo { display: grid; gap: 22px; margin-top: 28px; }
@media (min-width: 560px) { .duo { grid-template-columns: 1fr 1fr; } }
.duo h3 { color: var(--gold); }
.duo p { margin: 0; color: var(--muted); font-size: 1rem; }

/* ---------- Enemies ---------- */

.foes .wrap > h2, .foes .wrap > .lede { text-align: center; margin-inline: auto; }
.foe-grid {
  list-style: none; margin: 36px 0 0; padding: 0;
  display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
}
.foe-grid li {
  display: flex; gap: 14px; align-items: center; padding: 14px 18px 14px 12px;
  background: var(--panel); border: 2px solid var(--edge); border-radius: 22px; box-shadow: 0 6px 0 var(--deep);
}
.foe-grid img { width: 84px; height: 84px; flex: none; }
.foe-grid h3 { color: var(--c); margin-bottom: 4px; }
.foe-grid h3 span { color: var(--gold); font-size: 0.85rem; letter-spacing: 0.04em; margin-left: 4px; }
.foe-grid p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* ---------- Today's Sector ---------- */

.today-panel {
  position: relative;
  padding: clamp(24px, 4vw, 52px);
  background: var(--panel);
  border: 3px solid var(--edge);
  border-radius: 32px;
  box-shadow: 0 10px 0 var(--deep);
}
.today-panel > h2 { margin-bottom: 0.3em; }
.today-grid { display: grid; gap: 36px; margin-top: 32px; }
@media (min-width: 900px) { .today-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; } }

.clock {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px;
  margin: 0 0 18px; padding: 12px 16px;
  border-radius: 16px; background: rgba(6, 7, 28, 0.55); border: 2px solid var(--edge);
  font-weight: 600; font-size: 0.95rem;
}
.clock strong { color: var(--teal); font-variant-numeric: tabular-nums; }

.sector {
  padding: 22px 22px 20px; border-radius: 22px;
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(54, 224, 194, 0.28), transparent 60%),
    radial-gradient(70% 90% at 0% 100%, rgba(110, 198, 255, 0.14), transparent 60%),
    #0e1236;
  border: 2px solid var(--ink);
  box-shadow: inset 0 0 0 2px #1d4e5c;
}
.sector-kicker { margin: 0 0 4px; font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.sector-name { margin: 0 0 14px; font: 400 clamp(1.9rem, 1.3rem + 2.2vw, 2.6rem)/1 var(--display); letter-spacing: 0.02em; text-shadow: 0 3px 0 var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li {
  font: 700 0.72rem/1 var(--ui); letter-spacing: 0.08em; text-transform: uppercase;
  padding: 7px 10px 6px; border-radius: 999px;
  background: rgba(6, 7, 28, 0.6); border: 2px solid var(--c, var(--sky)); color: var(--c, var(--sky));
}
.chips li:nth-child(2) { --c: var(--pink); }
.chips li:nth-child(3) { --c: var(--gold); }

.share { margin: 22px 0 0; }
.share figcaption { font-size: 0.85rem; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.bubble {
  position: relative;
  padding: 16px 18px; border-radius: 22px 22px 22px 6px;
  background: var(--cream); color: var(--ink);
  border: 2px solid var(--ink); box-shadow: 0 5px 0 var(--deep);
  font-weight: 600; line-height: 1.45;
}
.bubble p { margin: 0; }
.bubble .squares { font-size: 1.5rem; letter-spacing: 0.12em; margin-top: 6px; line-height: 1.2; }
.legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; margin: 14px 0 0; padding: 0; list-style: none; font-size: 0.92rem; color: var(--muted); }
.legend span { font-size: 1.1rem; margin-right: 6px; }

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 26px; }
.steps li { counter-increment: step; position: relative; padding-left: 58px; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -4px;
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  font: 400 1.3rem/1 var(--display); color: var(--ink);
  background: var(--gold); border: 2px solid var(--ink); box-shadow: 0 3px 0 var(--deep);
}
.steps h3 { font-size: 1.2rem; }
.steps p { margin: 0; color: var(--muted); max-width: 52ch; }

.title-shot { margin: 22px 0 0; }
.title-shot img { display: block; width: 100%; border-radius: 18px; border: 2px solid var(--ink); }
.title-shot figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 8px; }

/* ---------- Black holes ---------- */

.bh-figure { margin: 0; position: relative; }
.bh-figure img {
  display: block; width: 100%; aspect-ratio: 1600 / 969; object-fit: cover;
  border-radius: 28px; border: 3px solid var(--ink);
  box-shadow: 0 10px 0 var(--deep);
}
.bh-copy {
  position: relative;
  margin: 16px 0 0; padding: clamp(22px, 3.5vw, 36px);
  background: var(--panel); border: 3px solid var(--edge); border-radius: 26px;
  box-shadow: 0 8px 0 var(--deep);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.bh-copy p:last-child { margin-bottom: 0; }
.bh-copy h2 { font-size: clamp(1.9rem, 1.1rem + 2.4vw, 2.7rem); }
@media (min-width: 900px) {
  .bh .wrap { display: grid; }
  .bh-figure, .bh-copy { grid-area: 1 / 1; }
  .bh-figure { align-self: start; }
  .bh-copy { justify-self: end; align-self: start; width: min(470px, 41%); margin: 36px 36px 0 0; }
}

/* ---------- Screenshots ---------- */

.gallery {
  display: flex; gap: 22px; align-items: flex-end;
  margin: 36px calc(-1 * var(--gutter)) 0; padding: 8px var(--gutter) 28px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  -webkit-overflow-scrolling: touch; scrollbar-width: thin;
}
.gallery > figure { flex: 0 0 auto; scroll-snap-align: start; }
.gallery .phone { width: min(230px, 62vw); padding: 7px; border-radius: 38px; }
.gallery .phone .screen { border-radius: 30px; }
.gallery .tablet { width: min(380px, 82vw); }
@media (min-width: 1080px) { .gallery { justify-content: center; overflow-x: visible; } }

/* ---------- Also on board ---------- */

.extras { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 28px; }
@media (min-width: 600px) { .extras { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .extras { grid-template-columns: repeat(4, 1fr); } }
.extras h3 { position: relative; padding-left: 22px; }
.extras h3::before {
  content: ""; position: absolute; left: 0; top: 0.36em;
  width: 11px; height: 11px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px var(--ink);
}
.extras li:nth-child(1) { --c: var(--teal); }
.extras li:nth-child(2) { --c: var(--pink); }
.extras li:nth-child(3) { --c: var(--gold); }
.extras li:nth-child(4) { --c: var(--sky); }
.extras p { margin: 0; color: var(--muted); font-size: 1rem; }

/* ---------- Pilot's License ---------- */

.license-card {
  position: relative; width: min(460px, 100%); justify-self: center;
  padding: 20px 22px 22px;
  border-radius: 24px;
  background:
    repeating-linear-gradient(135deg, rgba(243, 236, 220, 0.035) 0 2px, transparent 2px 9px),
    linear-gradient(160deg, #241d63, #151043 70%);
  border: 3px solid var(--gold);
  box-shadow: 0 0 0 3px var(--ink), 0 10px 0 3px var(--deep), 0 30px 60px rgba(0, 0, 0, 0.4);
  transform: rotate(-2.5deg);
}
.license-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.license-top p { margin: 0; font: 400 1.35rem/1 var(--display); color: var(--gold); letter-spacing: 0.02em; }
.holo {
  width: 46px; height: 32px; border-radius: 8px; flex: none;
  background: linear-gradient(120deg, var(--teal), var(--sky) 35%, var(--pink) 70%, var(--gold));
  border: 2px solid var(--ink); opacity: 0.9;
}
.license-body { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 16px; align-items: start; }
.license-photo {
  margin: 0; border-radius: 14px; background: radial-gradient(circle at 50% 40%, #2c3b8a, #121040);
  border: 2px solid var(--ink); padding: 8px; line-height: 0;
}
.license-photo img { display: block; width: 100%; }
.license-card dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 5px 12px; font-size: 0.92rem; }
.license-card dt { color: var(--muted); font-weight: 600; }
.license-card dd { margin: 0; font-weight: 700; }
@media (max-width: 380px) { .license-body { grid-template-columns: 80px minmax(0, 1fr); } .license-card dl { font-size: 0.85rem; } }

.nope { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.nope li {
  font-weight: 700; padding: 8px 14px; border-radius: 999px;
  background: rgba(6, 7, 28, 0.55); border: 2px solid var(--edge);
}

/* ---------- Closing ---------- */

.closing { text-align: center; padding-bottom: clamp(56px, 8vw, 96px); }
.closing h2 { margin-inline: auto; }
.closing p { margin-inline: auto; }
.launch {
  display: inline-block; margin-top: 10px;
  padding: 16px 30px 15px; border-radius: 999px;
  font: 700 1.05rem/1 var(--ui); letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
  color: var(--ink); background: var(--gold);
  border: 3px solid var(--ink); box-shadow: 0 5px 0 var(--deep);
}
.launch:hover { color: var(--ink); background: #ffdc85; }
.launch:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--deep); }

/* ---------- Footer ---------- */

.foot { padding-block: 40px 48px; background: rgba(6, 7, 28, 0.72); border-top: 3px solid var(--ink); }
.foot-inner { display: grid; gap: 20px; }
@media (min-width: 760px) { .foot-inner { grid-template-columns: 1fr auto; align-items: start; } }
.foot .brand { font-size: 1.15rem; }
.foot .brand img { width: 34px; height: 34px; border-radius: 9px; }
.foot-who { margin: 12px 0 0; font-size: 0.95rem; color: var(--muted); }
.foot-who a { color: var(--cream); }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot nav a { color: var(--cream); font-weight: 600; text-decoration: none; }
.foot nav a:hover { text-decoration: underline; }
.tm { grid-column: 1 / -1; margin: 0; font-size: 0.8rem; color: var(--muted); max-width: 90ch; }

/* ---------- Legal and support pages ---------- */

.page-top { padding-block: clamp(28px, 6vw, 64px) 8px; }
.page-top h1 { margin: 0 0 10px; font-size: clamp(2.6rem, 1.6rem + 4vw, 4.2rem); line-height: 1; text-shadow: 0 0.06em 0 var(--ink); }
.page-top p { margin: 0; color: var(--muted); }

.legal { padding-block: 24px 80px; }
.page-top, .legal .wrap, .faq .wrap { width: min(800px, calc(100% - 2 * var(--gutter))); }
.legal h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.8rem); margin: 1.8em 0 0.5em; text-shadow: none; }
.legal h3 { color: var(--gold); margin-top: 1.2em; }
.legal p, .legal li { color: rgba(243, 236, 220, 0.9); }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 0.5em; }
.legal li::marker { color: var(--gold); }
.legal address { font-style: normal; margin-bottom: 1em; }
.summary {
  margin: 12px 0 8px; padding: 20px 24px;
  background: var(--panel); border: 2px solid var(--edge); border-radius: 22px;
  box-shadow: 0 6px 0 var(--deep);
}
.summary h2 { margin: 0 0 8px; font-size: 1.35rem; }
.summary p:last-child { margin-bottom: 0; }
.caps { text-transform: uppercase; font-size: 0.94rem; letter-spacing: 0.01em; }

.faq { padding-block: 16px 80px; }
.faq h2 { margin-top: 1.4em; font-size: clamp(1.8rem, 1.3rem + 2vw, 2.4rem); }
.qa { margin: 0 0 22px; }
.qa h3 { color: var(--gold); }
.qa p { margin-bottom: 0.6em; color: rgba(243, 236, 220, 0.9); }
.keys { width: 100%; border-collapse: collapse; margin: 10px 0 18px; font-size: 0.98rem; }
.keys caption { text-align: left; font-weight: 700; margin-bottom: 6px; color: var(--cream); }
.keys th, .keys td { text-align: left; padding: 9px 12px; vertical-align: top; }
.keys th { width: 44%; font-weight: 700; color: var(--cream); }
.keys td { color: rgba(243, 236, 220, 0.88); }
.keys tr:nth-child(odd) { background: rgba(22, 18, 61, 0.72); }
.keys tr:first-child th:first-child { border-top-left-radius: 12px; }
kbd {
  display: inline-block; min-width: 1.7em; padding: 1px 6px; margin: 1px 1px;
  font: 700 0.85em/1.5 var(--ui); text-align: center;
  color: var(--ink); background: var(--cream);
  border: 2px solid var(--ink); border-radius: 7px; box-shadow: 0 2px 0 var(--deep);
}
.contact-card {
  margin-top: 36px; padding: 24px 26px;
  background: var(--panel); border: 3px solid var(--edge); border-radius: 26px; box-shadow: 0 8px 0 var(--deep);
}
.contact-card h2 { margin-top: 0; }
.contact-card p:last-child { margin-bottom: 0; }
.mail { font: 700 1.2rem/1.3 var(--ui); color: var(--gold); word-break: break-word; }

/* ---------- 404 ---------- */

.lost { min-height: calc(100svh - 260px); display: grid; place-items: center; text-align: center; padding-block: 40px 80px; }
.lost h1 { margin: 26px 0 12px; font-size: clamp(2.4rem, 1.4rem + 4.6vw, 4.4rem); line-height: 1.02; text-shadow: 0 0.06em 0 var(--ink); }
.lost p { max-width: 40ch; margin-inline: auto; color: var(--muted); }
.hole {
  width: 180px; height: 180px; margin: 0 auto; border-radius: 50%;
  background:
    radial-gradient(circle, #000 0 28%, var(--ink) 28% 31%, transparent 31%),
    conic-gradient(from 20deg, rgba(255, 94, 168, 0.95), rgba(255, 209, 102, 0.9), rgba(255, 94, 168, 0.7), rgba(120, 70, 210, 0.7), rgba(255, 94, 168, 0.95));
  -webkit-mask: radial-gradient(circle, #000 0 62%, transparent 70%);
  mask: radial-gradient(circle, #000 0 62%, transparent 70%);
  animation: spin 14s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::before, .ship, .ship::before, .hole { animation: none; }
  .launch:active { transform: none; }
}
