/* Slimezone landing site. Dark only: the game is set at night under alien skies. */

:root {
  --void: #05061a;
  --ink: #0a0d2b;
  --ink-2: #11153d;
  --line: rgba(140, 160, 255, 0.14);
  --line-strong: rgba(140, 160, 255, 0.28);
  --text: #e9ecff;
  --muted: #9ca4cf;
  --faint: #6b7299;
  --slime: #8cff59;
  --slime-2: #4fd13a;
  --slime-deep: #0f3d12;
  --gold: #f6b93b;
  --gold-2: #ffdf86;
  --planet: #c77fa6;
  --rival-blue: #4a72d8;
  --rival-red: #d24a45;
  --hazard: #ff8a3d;

  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --mono: "Martian Mono", ui-monospace, "Cascadia Mono", monospace;
  --body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1180px;
  --radius: 14px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--void);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--body);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--slime); text-underline-offset: 3px; }
a:hover { color: var(--gold-2); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--void); padding: 8px 14px; border-radius: 8px; font-weight: 700;
}
.skip:focus { top: 12px; }

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* Starfield behind everything below the hero. Two tiled layers of dots drift at different speeds. */
.stars {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1px 1px at 20% 30%, #fff8 50%, transparent 51%),
    radial-gradient(1px 1px at 70% 80%, #fff6 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 40% 60%, #c9b6ff99 50%, transparent 51%),
    radial-gradient(1px 1px at 85% 15%, #fff7 50%, transparent 51%),
    radial-gradient(1px 1px at 10% 85%, #fff5 50%, transparent 51%);
  background-size: 340px 340px, 270px 270px, 410px 410px, 190px 190px, 230px 230px;
  opacity: 0.7;
}
.stars::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 40% at 85% 10%, rgba(120, 70, 190, 0.18), transparent 70%),
    radial-gradient(50% 35% at 0% 70%, rgba(60, 200, 90, 0.07), transparent 70%);
}

/* ---------- Mono labels ---------- */
.tag {
  font: 500 0.72rem/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slime);
}
.tag::before { content: "// "; color: var(--faint); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(5, 6, 26, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.nav__logo img { height: 26px; width: auto; }
.nav__logo { opacity: 0; transition: opacity 0.3s; }
.nav.scrolled .nav__logo, .page .nav__logo { opacity: 1; }
.nav__links { display: flex; gap: 22px; margin-left: auto; list-style: none; padding: 0; margin-block: 0; }
.nav__links a {
  color: var(--muted); text-decoration: none;
  font: 500 0.74rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase;
}
.nav__links a:hover { color: var(--text); }
@media (max-width: 720px) { .nav__links { display: none; } .nav__cta { margin-left: auto; } }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--slime);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border: 0; border-radius: 999px;
  background: var(--bg);
  color: #062008;
  font: 700 0.98rem/1 var(--body);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 0 0 0 rgba(140, 255, 89, 0.5), inset 0 -3px 0 rgba(0, 0, 0, 0.18), inset 0 2px 0 rgba(255, 255, 255, 0.45);
  transition: transform 0.2s cubic-bezier(.3, 1.6, .5, 1), box-shadow 0.3s;
}
.btn:hover { color: #062008; transform: translateY(-2px) scale(1.03); box-shadow: 0 8px 30px -6px rgba(140, 255, 89, 0.65), inset 0 -3px 0 rgba(0, 0, 0, 0.18), inset 0 2px 0 rgba(255, 255, 255, 0.45); }
.btn:active { transform: scale(0.97); }
.btn--small { padding: 10px 16px; font-size: 0.85rem; }
.btn--ghost {
  background: transparent; color: var(--text);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}
.btn--ghost:hover { color: var(--text); box-shadow: inset 0 0 0 1.5px var(--slime); }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: max(640px, 100svh);
  display: grid;
  grid-template-rows: auto 1fr auto;
  justify-items: center;
  text-align: center;
  padding: 84px var(--gutter) 120px;
  isolation: isolate;
  overflow: hidden;
}
.hero__art {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%;
  transform: scale(1.06);
  animation: hero-in 2.4s cubic-bezier(.2, .7, .2, 1) both;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(5, 6, 26, 0.55) 0%, rgba(5, 6, 26, 0.05) 30%, rgba(5, 6, 26, 0.1) 50%, rgba(5, 6, 26, 0.82) 72%, var(--void) 100%),
    radial-gradient(80% 60% at 50% 45%, transparent 40%, rgba(5, 6, 26, 0.6) 100%);
}
@keyframes hero-in { from { transform: scale(1.16); filter: brightness(0.3); } to { transform: scale(1.06); filter: none; } }

.hero__logo {
  width: min(760px, 92vw); height: auto;
  filter: drop-shadow(0 0 18px rgba(140, 255, 89, 0.55)) drop-shadow(0 0 60px rgba(140, 255, 89, 0.25));
  animation: logo-drop 1.1s cubic-bezier(.3, 1.4, .5, 1) 0.3s both, glow 4s ease-in-out 1.6s infinite;
  transform-origin: 50% 100%;
}
@keyframes logo-drop {
  0% { opacity: 0; transform: translateY(-60px) scaleY(1.2) scaleX(0.9); }
  55% { opacity: 1; transform: translateY(6px) scaleY(0.86) scaleX(1.08); }
  75% { transform: translateY(-4px) scaleY(1.04) scaleX(0.98); }
  100% { transform: none; }
}
@keyframes glow {
  50% { filter: drop-shadow(0 0 26px rgba(140, 255, 89, 0.8)) drop-shadow(0 0 80px rgba(140, 255, 89, 0.35)); }
}
.hero h1 {
  /* The logo carries the name; the heading is the pitch. */
  margin: 0 auto;
  max-width: 22ch;
  font: 800 clamp(1.7rem, 3.4vw, 2.9rem)/1 var(--display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.85);
  animation: rise 0.9s ease 0.9s both;
}
@media (min-width: 900px) { .hero h1 { max-width: none; } }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero h1 b { font-weight: inherit; color: var(--slime); }
.hero__copy { grid-row: 3; display: grid; justify-items: center; }
.hero__sub {
  max-width: 62ch; margin: 12px 0 0; font-size: 1rem; color: #d3d8f5;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.9);
  animation: rise 0.9s ease 1.05s both;
}
.hero__cta { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; animation: rise 0.9s ease 1.2s both; }
.hero__chips {
  margin: 20px 0 0; padding: 0; list-style: none;
  display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center;
  font: 500 0.7rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
  animation: rise 0.9s ease 1.35s both;
}
.hero__chips li::before { content: "◆ "; color: var(--slime); }
@media (max-width: 420px) { .hero__chips { gap: 8px 12px; letter-spacing: 0.06em; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.status {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 20px; border-radius: 999px;
  background: rgba(5, 6, 26, 0.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  font: 500 0.8rem/1 var(--mono); letter-spacing: 0.06em; color: var(--text);
}
.status::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 0 rgba(246, 185, 59, 0.7);
  animation: ping 2s infinite;
}
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(246, 185, 59, 0); } 100% { box-shadow: 0 0 0 0 rgba(246, 185, 59, 0); } }

/* Bubbles rising from the ooze, as the pools do in the game. */
.bubbles { position: absolute; inset: auto 0 0 0; height: 70%; z-index: -1; pointer-events: none; overflow: hidden; }
.bubbles span {
  position: absolute; bottom: -30px; left: var(--x);
  width: var(--s); height: var(--s); border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.85) 0 12%, rgba(140, 255, 89, 0.35) 30%, rgba(140, 255, 89, 0.08) 70%);
  box-shadow: inset 0 0 0 1px rgba(170, 255, 130, 0.45);
  animation: bubble var(--t) ease-in var(--d) infinite;
  opacity: 0;
}
@keyframes bubble {
  0% { transform: translate(0, 0) scale(0.6); opacity: 0; }
  10% { opacity: 0.9; }
  50% { transform: translate(12px, -32vh) scale(1); }
  92% { opacity: 0.8; transform: translate(-8px, -58vh) scale(1.1); }
  100% { transform: translate(-6px, -60vh) scale(1.6); opacity: 0; }
}

/* The slime edge that the hero melts into. */
.drip { display: block; width: 100%; height: 70px; margin-top: -69px; position: relative; z-index: 2; color: var(--void); }

/* Landscape screens show the wide banner. It stops short of the bottom and fades out, so the slime sits above the
   words rather than behind them. */
@media (min-aspect-ratio: 4/3) {
  .hero__art {
    height: 84%;
    -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
  }
  .hero::before { background: linear-gradient(180deg, rgba(5, 6, 26, 0.5) 0%, transparent 24%); }
}
/* Portrait phones: the art crops to the slime's face, so the words go below it instead of over it. */
@media (max-aspect-ratio: 4/5) {
  .hero { padding-top: 76px; }
  .hero__art { height: 64%; object-position: 50% 55%; transform: none; animation-name: hero-in-phone; }
  .hero::before {
    background:
      linear-gradient(180deg, rgba(5, 6, 26, 0.45) 0%, transparent 20%, transparent 46%, var(--void) 64%);
  }
  @keyframes hero-in-phone { from { transform: scale(1.1); filter: brightness(0.3); } to { transform: none; filter: none; } }
}

/* ---------- Sections ---------- */
section { padding-block: clamp(56px, 7vw, 96px); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head h2 {
  margin: 14px 0 0;
  font: 800 clamp(2.4rem, 6vw, 4.4rem)/0.92 var(--display);
  text-transform: uppercase;
  text-wrap: balance;
}
.section-head h2 span { color: var(--slime); }
.section-head p { margin: 18px 0 0; color: var(--muted); font-size: 1.1rem; max-width: 60ch; }
/* The "thousands of combinations" line under the game's description. */
.section-head p.combos {
  margin-top: 22px; padding: 16px 20px; width: fit-content; max-width: 100%;
  border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 10px;
  background: linear-gradient(180deg, rgba(17, 21, 61, 0.9), rgba(10, 13, 43, 0.9));
  color: var(--text);
}
@media (min-width: 900px) { .section-head p.combos { white-space: nowrap; } }
.combos strong { color: var(--slime); font-weight: 700; }
.combos__mark {
  display: inline-block; margin-right: 12px; vertical-align: -0.25em;
  font: 800 2rem/1 var(--display); color: var(--gold); text-shadow: 0 0 18px rgba(246, 185, 59, 0.45);
}

/* ---------- Briefing (the loop) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.step {
  position: relative; padding: 30px 26px 28px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--ink-2), var(--ink));
  border: 1px solid var(--line);
  overflow: hidden;
}
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; right: 14px; top: -14px;
  font: 900 7.5rem/1 var(--display); color: rgba(140, 160, 255, 0.07);
}
.step h3 { margin: 12px 0 10px; font: 800 1.9rem/1 var(--display); text-transform: uppercase; }
.step p { margin: 0; color: var(--muted); }
.step strong { color: var(--text); font-weight: 600; }
.step:nth-child(2) .tag { color: var(--gold); }
.step:nth-child(3) .tag { color: var(--planet); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Screenshots ---------- */
/* Each shot sits in a dark phone bezel. The first one leads, full width; on phones they become a swipeable strip. */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.shot { margin: 0; }
.shot--lead { grid-column: 1 / -1; }
.shot a {
  display: block; position: relative;
  padding: 7px; border-radius: 20px;
  background: linear-gradient(160deg, #23284f, #0b0e26);
  box-shadow: 0 0 0 1px var(--line-strong), 0 24px 60px -24px rgba(0, 0, 0, 0.9);
  transition: transform 0.35s cubic-bezier(.2, .7, .2, 1), box-shadow 0.35s;
  cursor: zoom-in;
}
.shot a::after {
  /* a little camera dot on the bezel, like a phone held sideways */
  content: ""; position: absolute; left: 3px; top: 50%; width: 3px; height: 3px; margin-top: -1.5px; border-radius: 50%;
  background: #3a4070;
}
.shot a:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(140, 255, 89, 0.5), 0 30px 70px -24px rgba(140, 255, 89, 0.28); }
.shot img { width: 100%; height: auto; aspect-ratio: 2700 / 1224; object-fit: cover; border-radius: 14px; background: var(--ink); }
.shot figcaption { margin: 12px 4px 0; font: 400 0.74rem/1.5 var(--mono); color: var(--muted); }
.shot--lead figcaption { font-size: 0.8rem; }
@media (max-width: 900px) and (min-width: 621px) { .shots { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) {
  .shots {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 14px;
    scrollbar-width: none;
  }
  .shots::-webkit-scrollbar { display: none; }
  .shot { flex: 0 0 86%; scroll-snap-align: center; }
}

.lightbox {
  width: min(1500px, 96vw); max-width: none; max-height: 96vh; padding: 0; border: 0; border-radius: 16px;
  background: #000; color: var(--text); overflow: visible;
}
.lightbox::backdrop { background: rgba(3, 4, 16, 0.88); backdrop-filter: blur(4px); }
.lightbox img { width: 100%; height: auto; max-height: 84vh; object-fit: contain; border-radius: 16px; display: block; }
.lightbox__caption { margin: 0; padding: 12px 16px; font: 400 0.8rem/1.4 var(--mono); color: var(--muted); background: var(--void); border-radius: 0 0 16px 16px; }
.lightbox__close {
  position: absolute; right: -10px; top: -14px; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: var(--slime); color: #062008; font: 700 1.5rem/1 var(--body); cursor: pointer;
}

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.feature {
  grid-column: span 6;
  position: relative;
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(170deg, rgba(17, 21, 61, 0.85), rgba(10, 13, 43, 0.85));
  overflow: hidden;
}
.feature--wide { grid-column: span 7; }
.feature--narrow { grid-column: span 5; }
.feature h3 { margin: 12px 0 12px; font: 800 clamp(1.8rem, 3vw, 2.4rem)/0.95 var(--display); text-transform: uppercase; }
.feature p { margin: 0 0 12px; color: var(--muted); }
.feature p:last-child { margin-bottom: 0; }
@media (max-width: 860px) { .feature, .feature--wide, .feature--narrow { grid-column: 1 / -1; } }

/* Blueprint card in the designer feature */
.blueprint {
  margin-top: 22px;
  padding: 18px;
  border-radius: 10px;
  background:
    linear-gradient(rgba(90, 140, 255, 0.08) 1px, transparent 1px) 0 0 / 18px 18px,
    linear-gradient(90deg, rgba(90, 140, 255, 0.08) 1px, transparent 1px) 0 0 / 18px 18px,
    #0b1640;
  border: 1px solid rgba(90, 140, 255, 0.35);
  font: 400 0.76rem/1.5 var(--mono);
  color: #b9c8ff;
}
.blueprint__title { display: flex; justify-content: space-between; gap: 12px; color: #fff; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 12px; }
.blueprint__title span { color: var(--gold); }
.blueprint__row { display: grid; grid-template-columns: 9.5em 1fr; gap: 10px; padding: 7px 0; border-top: 1px dashed rgba(90, 140, 255, 0.28); }
.blueprint__row dt { color: #7f93d9; text-transform: uppercase; letter-spacing: 0.08em; }
.blueprint__row dd { margin: 0; color: #e3e9ff; }
@media (max-width: 420px) { .blueprint__row { grid-template-columns: 1fr; gap: 2px; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.chips li {
  padding: 7px 12px; border-radius: 999px;
  font: 500 0.72rem/1 var(--mono); letter-spacing: 0.04em;
  background: rgba(140, 160, 255, 0.08); box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text);
}
.chips--hazard li { color: var(--hazard); background: rgba(255, 138, 61, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 138, 61, 0.25); }
.chips--difficulty li:nth-child(1) { color: #9fe8ff; }
.chips--difficulty li:nth-child(2) { color: #9fffb7; }
.chips--difficulty li:nth-child(3) { color: var(--gold-2); }
.chips--difficulty li:nth-child(4) { color: #ffb37a; }
.chips--difficulty li:nth-child(5) { color: #ff7a7a; }
.chips-label { display: block; margin-top: 18px; font: 500 0.66rem/1.5 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }

/* A glow in each feature's corner, in its own colour */
.feature::after {
  content: ""; position: absolute; width: 280px; height: 280px; right: -110px; top: -110px; border-radius: 50%;
  background: radial-gradient(circle, var(--glow, rgba(140, 255, 89, 0.16)), transparent 70%);
  pointer-events: none;
}
.feature--gold { --glow: rgba(246, 185, 59, 0.16); }
.feature--planet { --glow: rgba(199, 127, 166, 0.2); }
.feature--blue { --glow: rgba(74, 114, 216, 0.25); }

/* ---------- Field guide ---------- */
.guide { position: relative; }
.guide__intro { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 5vw, 70px); align-items: center; margin-bottom: clamp(40px, 6vw, 70px); }
.guide__intro .section-head { margin-bottom: 0; }
.guide__art {
  position: relative; border-radius: 50% 50% 46% 46% / 56% 56% 44% 44%;
  overflow: hidden; aspect-ratio: 1;
  box-shadow: 0 0 0 1px rgba(140, 255, 89, 0.25), 0 30px 90px -20px rgba(140, 255, 89, 0.35);
  animation: wobble 9s ease-in-out infinite;
}
.guide__art img { width: 100%; height: 100%; object-fit: cover; }
@keyframes wobble {
  0%, 100% { border-radius: 50% 50% 46% 46% / 56% 56% 44% 44%; }
  33% { border-radius: 46% 54% 50% 44% / 52% 60% 40% 48%; }
  66% { border-radius: 54% 46% 44% 50% / 60% 52% 48% 40%; }
}
@media (max-width: 860px) {
  .guide__intro { grid-template-columns: 1fr; }
  .guide__art { max-width: 380px; width: 100%; margin-inline: auto; order: -1; }
}

.critters { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0; }
.critter {
  --c: var(--slime);
  position: relative;
  display: grid; grid-template-columns: 76px 1fr; gap: 16px; align-items: start;
  padding: 20px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--ink-2), var(--ink));
  border: 1px solid var(--line);
  transition: border-color 0.3s, transform 0.3s;
}
.critter:hover { border-color: color-mix(in srgb, var(--c) 55%, transparent); transform: translateY(-3px); }
.critter h3 { margin: 2px 0 6px; font: 800 1.45rem/1 var(--display); text-transform: uppercase; color: var(--c); }
.critter p { margin: 0; font-size: 0.95rem; color: var(--muted); line-height: 1.5; }
.critter--green { --c: #8cff59; }
.critter--red { --c: #ff6a4d; }
.critter--blue { --c: #5aa6ff; }
.critter--yellow { --c: #ffe14d; }
.critter--purple { --c: #c27bff; }
.critter--skitter { --c: #7dffe0; }
.critter--worm { --c: #d7b06a; }

/* A slime drawn in CSS: a glossy blob with two eyes that hops on hover. */
.blob {
  position: relative; width: 70px; height: 60px; margin-top: 8px;
  border-radius: 50% 50% 44% 44% / 62% 62% 38% 38%;
  background:
    radial-gradient(circle at 30% 26%, rgba(255, 255, 255, 0.85) 0 7%, transparent 9%),
    radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--c) 80%, white) 0%, var(--c) 45%, color-mix(in srgb, var(--c) 45%, black) 100%);
  box-shadow: 0 0 22px -2px color-mix(in srgb, var(--c) 60%, transparent), inset 0 -8px 14px rgba(0, 0, 0, 0.25);
  opacity: 0.94;
  transform-origin: 50% 100%;
}
.blob::before, .blob::after {
  content: ""; position: absolute; top: 34%; width: 15px; height: 15px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff 0 18%, #0a0a18 24%);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25);
}
.blob::before { left: 24%; }
.blob::after { right: 24%; }
.critter:hover .blob { animation: hop 0.7s cubic-bezier(.3, .8, .4, 1); }
@keyframes hop {
  0% { transform: none; }
  20% { transform: scale(1.12, 0.84); }
  50% { transform: translateY(-16px) scale(0.92, 1.1); }
  80% { transform: scale(1.1, 0.88); }
  100% { transform: none; }
}
.blob--small { width: 54px; height: 46px; margin: 14px 0 0 8px; }
.blob--small::before, .blob--small::after { width: 12px; height: 12px; }
.blob--big { width: 76px; height: 66px; }
.blob--shell { box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 40%, transparent), 0 0 22px -2px color-mix(in srgb, var(--c) 60%, transparent), inset 0 -8px 14px rgba(0, 0, 0, 0.25); }

/* Skitter: a little glowing healer with feelers. */
.skitter { position: relative; width: 70px; height: 64px; }
.skitter::before {
  content: ""; position: absolute; left: 17px; top: 22px; width: 36px; height: 30px; border-radius: 50% 50% 40% 40%;
  background: radial-gradient(circle at 40% 35%, #e9fffa 0 10%, var(--c) 40%, #0c6b5a 100%);
  box-shadow: 0 0 22px var(--c);
}
.skitter::after {
  content: ""; position: absolute; left: 6px; top: 6px; width: 58px; height: 26px;
  border: 2px solid var(--c); border-bottom: 0; border-radius: 50% 50% 0 0;
  clip-path: polygon(0 0, 36% 0, 36% 100%, 64% 100%, 64% 0, 100% 0, 100% 100%, 0 100%);
  opacity: 0.8;
}
.critter:hover .skitter { animation: hop 0.6s ease; }

/* Slime Worm: segments rising out of a dirt mound. */
.worm { position: relative; width: 70px; height: 70px; }
.worm i {
  position: absolute; width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff1cf 0 12%, var(--c) 45%, #6b4a1c 100%);
}
.worm i:nth-child(1) { left: 6px; top: 40px; }
.worm i:nth-child(2) { left: 18px; top: 26px; }
.worm i:nth-child(3) { left: 32px; top: 16px; width: 26px; height: 26px; }
.worm i:nth-child(3)::after { content: ""; position: absolute; right: 4px; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: #120a02; }
.worm::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 14px; border-radius: 50% 50% 0 0; background: #4a3115; }
.critter:hover .worm i { animation: wiggle 0.8s ease-in-out; }
.critter:hover .worm i:nth-child(2) { animation-delay: 0.08s; }
.critter:hover .worm i:nth-child(3) { animation-delay: 0.16s; }
@keyframes wiggle { 50% { transform: translateY(-7px); } }

.guide__note {
  margin-top: 22px; padding: 16px 20px; border-radius: 10px;
  border-left: 3px solid #9fd8ff;
  background: rgba(90, 166, 255, 0.07);
  color: var(--muted); font-size: 0.97rem;
}
.guide__note strong { color: #cfe8ff; }

/* ---------- Rivals band ---------- */
.rivals { position: relative; padding: 0; min-height: 560px; display: grid; align-items: end; isolation: isolate; overflow: hidden; }
.rivals img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.rivals::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 6, 26, 0.92) 0%, rgba(5, 6, 26, 0.7) 30%, transparent 55%),
    linear-gradient(180deg, var(--void) 0%, rgba(5, 6, 26, 0.1) 25%, rgba(5, 6, 26, 0.25) 55%, rgba(5, 6, 26, 0.95) 100%);
}
.rivals .wrap { padding-block: 120px 60px; }
.rivals h2 {
  margin: 14px 0 0; max-width: 12ch;
  font: 800 clamp(2.4rem, 5vw, 4rem)/0.9 var(--display); text-transform: uppercase;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
}
.rivals h2 span { color: #b67bff; }
.rivals p { max-width: 44ch; margin: 16px 0 0; color: #d7dcf7; text-shadow: 0 1px 12px #000; }

/* Phones: the picture on top, the words below it. */
@media (max-width: 700px) {
  .rivals { min-height: 0; }
  .rivals img {
    position: relative; height: auto; aspect-ratio: 16 / 9;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 62%, transparent);
    mask-image: linear-gradient(180deg, transparent, #000 18%, #000 62%, transparent);
  }
  .rivals::before { display: none; }
  .rivals .wrap { padding-block: 0 48px; margin-top: -24px; }
}

/* ---------- Launch / sign-up ---------- */
/* Over the gold-veined ground of the background art. */
.launch { position: relative; isolation: isolate; text-align: center; padding-block: clamp(90px, 12vw, 170px); }
.launch::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, var(--void) 0%, rgba(5, 6, 26, 0.35) 30%, rgba(5, 6, 26, 0.2) 65%, var(--void) 100%),
    url("/img/backdrop-2448.webp") 50% 72% / cover no-repeat;
}
@media (max-width: 900px) { .launch::before { background-image: linear-gradient(180deg, var(--void) 0%, rgba(5, 6, 26, 0.35) 30%, rgba(5, 6, 26, 0.2) 65%, var(--void) 100%), url("/img/backdrop-1200.webp"); background-position: 30% 72%; } }
.launch__box {
  position: relative;
  max-width: 820px; margin-inline: auto;
  padding: clamp(36px, 6vw, 64px) clamp(20px, 5vw, 56px);
  border-radius: 28px;
  background:
    radial-gradient(100% 120% at 50% 0%, rgba(140, 255, 89, 0.14), transparent 60%),
    linear-gradient(170deg, rgba(17, 21, 61, 0.82), rgba(10, 13, 43, 0.88));
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(140, 255, 89, 0.28);
}
.launch__icon { width: 92px; height: 92px; border-radius: 22px; margin: 0 auto 22px; box-shadow: 0 12px 40px -8px rgba(140, 255, 89, 0.5); }
.launch h2 { margin: 12px 0 0; font: 800 clamp(2.2rem, 5vw, 3.6rem)/0.95 var(--display); text-transform: uppercase; }
.launch p { color: var(--muted); max-width: 52ch; margin: 14px auto 0; }
.launch__actions { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.signup { display: flex; gap: 10px; max-width: 460px; margin: 26px auto 0; }
.signup[hidden] { display: none; }
.signup input {
  flex: 1; min-width: 0;
  padding: 14px 18px; border-radius: 999px;
  border: 1.5px solid var(--line-strong); background: rgba(5, 6, 26, 0.6);
  color: var(--text); font: inherit; font-size: 0.98rem;
}
.signup input::placeholder { color: var(--faint); }
.signup input:focus { outline: none; border-color: var(--slime); }
@media (max-width: 480px) { .signup { flex-direction: column; } .signup .btn { justify-content: center; } }

/* ---------- Footer ---------- */
.footer { padding-block: 50px 40px; border-top: 1px solid var(--line); color: var(--faint); font-size: 0.9rem; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.footer img { height: 24px; width: auto; opacity: 0.9; }
.footer ul { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--slime); }
.footer small { flex-basis: 100%; font: 400 0.7rem/1.6 var(--mono); letter-spacing: 0.04em; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--delay, 0s); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Inner pages (privacy, press) ---------- */
/* The planet-and-veins background art across the top, fading into the night. */
body.page {
  background:
    linear-gradient(180deg, rgba(5, 6, 26, 0.5) 0%, rgba(5, 6, 26, 0.75) 18vw, var(--void) 33vw),
    url("/img/backdrop-1200.webp") 50% 0 / 100% auto no-repeat,
    var(--void);
}
@media (min-width: 1200px) { body.page { background-image: linear-gradient(180deg, rgba(5, 6, 26, 0.5) 0%, rgba(5, 6, 26, 0.75) 18vw, var(--void) 33vw), url("/img/backdrop-2448.webp"); } }
.page main { padding-top: 120px; }
.doc { max-width: 760px; }
.doc h1 { margin: 14px 0 8px; font: 800 clamp(2.6rem, 7vw, 4.4rem)/0.92 var(--display); text-transform: uppercase; }
.doc .updated { font: 400 0.75rem/1 var(--mono); color: var(--faint); letter-spacing: 0.06em; }
.doc h2 { margin: 48px 0 12px; font: 800 1.8rem/1 var(--display); text-transform: uppercase; color: var(--slime); }
.doc p, .doc li { color: #c9cfee; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: 6px; }
.doc .lead { font-size: 1.2rem; color: var(--text); }
.callout {
  margin: 28px 0; padding: 20px 24px; border-radius: var(--radius);
  background: rgba(140, 255, 89, 0.07); border: 1px solid rgba(140, 255, 89, 0.3);
}
.callout p { margin: 0; color: var(--text); }

.facts { display: grid; grid-template-columns: 11em 1fr; margin: 20px 0 0; border-top: 1px solid var(--line); }
.facts dt, .facts dd { padding: 12px 0; border-bottom: 1px solid var(--line); margin: 0; }
.facts dt { font: 500 0.72rem/1.9 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.facts dd { color: var(--text); }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } .facts dt { border-bottom: 0; padding-bottom: 0; } }

.media-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 20px; }
.media-grid figure { margin: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--ink); }
.media-grid figure.logo-tile { display: grid; place-items: center; padding: 30px; background: radial-gradient(circle, #13183f, var(--void)); }
.media-grid img { width: 100%; height: auto; }
.media-grid .wide { grid-column: 1 / -1; }
.media-grid figcaption { padding: 10px 14px; font: 400 0.72rem/1.4 var(--mono); color: var(--muted); }
@media (max-width: 560px) { .media-grid { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.lost { min-height: 100svh; display: grid; place-content: center; justify-items: center; text-align: center; padding: 40px var(--gutter); gap: 14px; }
.lost h1 { margin: 0; font: 900 clamp(5rem, 22vw, 11rem)/0.85 var(--display); color: var(--slime); text-shadow: 0 0 40px rgba(140, 255, 89, 0.5); }
.lost p { margin: 0 0 12px; color: var(--muted); max-width: 40ch; }
.lost .blob { --c: var(--slime); width: 110px; height: 94px; animation: hop 1.4s cubic-bezier(.3, .8, .4, 1) infinite; }
.lost .blob::before, .lost .blob::after { width: 22px; height: 22px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .bubbles { display: none; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
