@font-face {
  font-family: "SectorRunPixel";
  src: url("/assets/SectorRunPixel.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #fff8e9;
  --muted: #c8beac;
  --dim: #918b84;
  --bg: #090708;
  --bg-soft: #121012;
  --panel: #191719;
  --panel-2: #211716;
  --line: #363034;
  --gold: #ffcf43;
  --orange: #ff8a19;
  --cyan: #69f6e9;
  --blue: #4eb7ff;
  --red: #ff5545;
  --green: #98f17a;
  --max: 1120px;
  --radius: 8px;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 300px;
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 138, 25, 0.08), transparent 26rem),
    radial-gradient(circle at 90% 32%, rgba(105, 246, 233, 0.08), transparent 24rem),
    var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
}

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 14px clamp(16px, 4vw, 48px);
  color: var(--ink);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  font-family: "SectorRunPixel", Inter, sans-serif;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2), 0 8px 24px rgba(0, 0, 0, 0.35);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px clamp(10px, 2vw, 22px);
  min-width: 0;
  font-size: 0.92rem;
  line-height: 1.2;
  color: var(--muted);
}

.site-nav a,
.site-footer a,
.text-link {
  text-underline-offset: 0.25em;
  text-decoration-thickness: 1px;
}

.site-nav a {
  white-space: nowrap;
}

.site-nav a:hover,
.site-footer a:hover,
.text-link:hover,
.legal-article a:hover,
.support-details a:hover {
  color: var(--cyan);
}

.hero {
  position: relative;
  min-height: clamp(620px, 84svh, 860px);
  overflow: hidden;
  isolation: isolate;
  display: grid;
  align-items: center;
  padding: 104px clamp(18px, 5vw, 72px) 72px;
  border-bottom: 1px solid rgba(255, 207, 67, 0.18);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: #060608;
  image-rendering: auto;
}

.hero-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  filter: saturate(1.08) contrast(1.06);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(9, 7, 8, 0.95) 0%, rgba(9, 7, 8, 0.78) 33%, rgba(9, 7, 8, 0.22) 64%, rgba(9, 7, 8, 0.55) 100%),
    linear-gradient(0deg, rgba(9, 7, 8, 0.88) 0%, rgba(9, 7, 8, 0.08) 38%, rgba(9, 7, 8, 0.32) 100%);
}

.hero-copy {
  width: min(650px, 100%);
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--cyan);
  font-family: "SectorRunPixel", Inter, sans-serif;
  font-size: clamp(0.74rem, 1.5vw, 0.86rem);
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  font-family: "SectorRunPixel", Inter, sans-serif;
  font-size: clamp(3.1rem, 11vw, 7.8rem);
  text-transform: uppercase;
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.4), 0 16px 42px rgba(0, 0, 0, 0.55);
}

h2 {
  font-size: clamp(2rem, 4.5vw, 4rem);
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.hero-lede {
  max-width: 620px;
  margin: 18px 0 0;
  color: #f5ead7;
  font-size: clamp(1.06rem, 2vw, 1.28rem);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.75);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 30px;
}

.ios-placeholder {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  width: 190px;
  height: 58px;
  padding: 8px 16px;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: var(--radius);
  background: #070707;
  color: #ffffff;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.ios-placeholder:hover {
  border-color: var(--cyan);
}

.badge-kicker {
  font-size: 0.72rem;
  line-height: 1;
  color: #cfcfcf;
}

.badge-title {
  margin-top: 5px;
  font-weight: 800;
  font-size: 1.02rem;
  line-height: 1;
}

.strong {
  color: var(--gold);
  font-weight: 800;
}

.container {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
}

.section {
  padding: clamp(64px, 10vw, 118px) 0;
}

.section-tight {
  padding: 36px 0;
}

.intro-strip {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(90deg, rgba(255, 138, 25, 0.12), rgba(105, 246, 233, 0.08));
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(22px, 4vw, 54px);
  align-items: center;
}

.intro-grid h2 {
  font-size: clamp(1.7rem, 3.5vw, 3rem);
}

.intro-grid p:last-child,
.copy-stack p,
.feature-card p,
.progression-grid p,
.cta-band p,
.support-main p,
.legal-article p {
  color: var(--muted);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.feature-grid {
  display: grid;
  gap: 18px;
}

.feature-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.progression-grid article,
.support-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(25, 23, 25, 0.86);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.24);
}

.feature-card {
  min-height: 342px;
  overflow: hidden;
  padding: 0;
}

.feature-card h3,
.progression-grid h3,
.support-grid h2 {
  margin-top: 18px;
}

.feature-card p,
.progression-grid p,
.support-grid p {
  margin: 12px 0 0;
}

.feature-card h3 {
  margin: 20px 22px 0;
}

.feature-card p {
  margin: 12px 22px 24px;
}

.loop-scene {
  position: relative;
  height: 154px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 50% 75%, rgba(105, 246, 233, 0.16), transparent 8rem),
    linear-gradient(180deg, rgba(4, 7, 10, 0.34), rgba(3, 4, 7, 0.82)),
    url("/assets/umbra-biome.png") center / cover;
  image-rendering: pixelated;
}

.loop-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.42), transparent 34%, transparent 66%, rgba(0, 0, 0, 0.42)),
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.24) 0 2px, transparent 3px),
    radial-gradient(circle at 78% 34%, rgba(255, 255, 255, 0.18) 0 2px, transparent 3px),
    radial-gradient(circle at 42% 70%, rgba(105, 246, 233, 0.20) 0 2px, transparent 3px);
}

.loop-fire {
  background:
    radial-gradient(circle at 58% 70%, rgba(255, 207, 67, 0.12), transparent 8rem),
    linear-gradient(180deg, rgba(8, 9, 10, 0.28), rgba(4, 4, 6, 0.84)),
    url("/assets/umbra-biome.png") center / cover;
}

.loop-boss {
  background:
    radial-gradient(circle at 50% 24%, rgba(126, 88, 255, 0.22), transparent 8rem),
    linear-gradient(180deg, rgba(12, 4, 10, 0.32), rgba(3, 4, 7, 0.88)),
    url("/assets/umbra-biome.png") center / cover;
}

.loop-sprite,
.boss-loop-sprite,
.pickup-sprite {
  position: absolute;
  z-index: 4;
  display: block;
  background-repeat: no-repeat;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.54));
  image-rendering: pixelated;
}

.loop-sprite {
  width: 64px;
  height: 64px;
  background-image: url("/assets/ships.png");
  background-size: 640px 640px;
}

.loop-ship {
  left: 50%;
  bottom: 14px;
  margin-left: -32px;
}

.ship-idle {
  background-position: -64px 0;
}

.ship-bank-right {
  background-position: -128px 0;
}

.loop-dodge .loop-ship {
  left: 54%;
  bottom: 28px;
}

.loop-boss .loop-ship {
  bottom: 6px;
  width: 56px;
  height: 56px;
  margin-left: -28px;
  background-size: 560px 560px;
  background-position: -56px 0;
}

.loop-fire .loop-ship {
  bottom: 10px;
  width: 56px;
  height: 56px;
  margin-left: -28px;
  background-size: 560px 560px;
  background-position: -56px 0;
}

.loop-enemy {
  width: 48px;
  height: 48px;
  background-size: 480px 480px;
}

.enemy-one {
  left: 31%;
  top: 22px;
  background-position: -192px 0;
}

.enemy-two {
  right: 28%;
  top: 34px;
  background-position: -192px -48px;
}

.loop-fire .loop-enemy {
  width: 40px;
  height: 40px;
  background-size: 400px 400px;
}

.loop-fire .enemy-one {
  left: 33%;
  top: 28px;
  background-position: -160px 0;
}

.loop-fire .enemy-two {
  right: 31%;
  top: 44px;
  background-position: -160px -40px;
}

.boss-loop-sprite {
  top: 8px;
  left: 50%;
  width: 72px;
  height: 72px;
  background-image: url("/assets/ships.png");
  background-size: 360px 360px;
  background-position: -144px -216px;
  transform: translateX(-50%);
}

.pickup-sprite {
  width: 44px;
  height: 44px;
  background:
    linear-gradient(90deg, #ffd94a 0 8px, #fff571 8px 24px, #ffae16 24px 36px, #ffd94a 36px 100%),
    #ffc22a;
  box-shadow:
    inset 0 0 0 6px #ffae16,
    inset 0 0 0 12px #fff571,
    0 0 12px rgba(255, 207, 67, 0.34);
}

.scrap-one {
  right: 24%;
  bottom: 38px;
  width: 34px;
  height: 34px;
  background-position: 0 0;
  box-shadow:
    inset 0 0 0 5px #ffae16,
    inset 0 0 0 10px #fff571,
    0 0 10px rgba(255, 207, 67, 0.26);
}

.loop-trail {
  position: absolute;
  z-index: 2;
  display: block;
  height: 8px;
  background: rgba(105, 246, 233, 0.32);
  image-rendering: pixelated;
}

.trail-one {
  left: 20%;
  right: 46%;
  bottom: 58px;
}

.trail-two {
  left: 28%;
  right: 54%;
  bottom: 78px;
  background: rgba(105, 246, 233, 0.20);
}

.loop-shot,
.player-shot {
  position: absolute;
  z-index: 5;
  display: block;
  image-rendering: pixelated;
}

.loop-shot {
  width: 8px;
  height: 18px;
  background: #ff6354;
  box-shadow:
    0 0 0 4px rgba(255, 85, 69, 0.12),
    0 0 10px rgba(255, 85, 69, 0.35);
}

.shot-one {
  left: 24%;
  top: 24px;
}

.shot-two {
  left: 38%;
  top: 76px;
}

.shot-three {
  right: 26%;
  top: 40px;
}

.shot-four {
  right: 38%;
  bottom: 20px;
}

.player-shot {
  left: 50%;
  width: 7px;
  height: 12px;
  background: #ff8a19;
  box-shadow:
    0 -2px 0 #ffcf43,
    0 0 8px rgba(255, 207, 67, 0.28);
  transform: translateX(-50%);
}

.player-shot-one {
  bottom: 66px;
}

.player-shot-two {
  bottom: 92px;
}

.player-shot-three {
  bottom: 118px;
}

.boss-shot {
  width: 8px;
  height: 8px;
  background: #9e6cff;
  box-shadow:
    0 0 0 4px rgba(126, 88, 255, 0.12),
    0 0 12px rgba(126, 88, 255, 0.34);
}

.boss-shot-one {
  left: 30%;
  top: 88px;
}

.boss-shot-two {
  right: 30%;
  top: 88px;
}

.boss-shot-three {
  left: 37%;
  bottom: 34px;
}

.boss-shot-four {
  right: 37%;
  bottom: 34px;
}

.loop-star {
  position: absolute;
  z-index: 1;
  display: block;
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.38);
  image-rendering: pixelated;
}

.star-one {
  left: 16%;
  top: 34px;
}

.star-two {
  right: 18%;
  bottom: 28px;
}

.star-three {
  left: 20%;
  bottom: 44px;
}

.star-four {
  right: 18%;
  top: 24px;
}

.star-five {
  right: 16%;
  bottom: 34px;
}

.loop-boss-warning {
  position: absolute;
  z-index: 6;
  left: 16px;
  top: 14px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 8px;
  border: 1px solid rgba(255, 85, 69, 0.42);
  border-radius: 5px;
  background: rgba(16, 5, 7, 0.76);
  color: #ff6354;
  font-family: "SectorRunPixel", Inter, sans-serif;
  font-size: 0.62rem;
  text-transform: uppercase;
}

.split-section {
  background:
    linear-gradient(180deg, rgba(255, 138, 25, 0.06), rgba(9, 7, 8, 0)),
    #0d0908;
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 6vw, 74px);
  align-items: center;
}

.split-grid.reverse {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
}

.copy-stack p {
  margin: 18px 0 0;
  font-size: clamp(1rem, 1.8vw, 1.14rem);
}

.synergy-section {
  background:
    radial-gradient(circle at 20% 35%, rgba(105, 246, 233, 0.12), transparent 24rem),
    #090d0e;
}

.pixel-stage {
  position: relative;
  min-height: clamp(340px, 34vw, 430px);
  overflow: hidden;
  border: 1px solid rgba(105, 246, 233, 0.28);
  border-radius: var(--radius);
  background: #070707;
  box-shadow: var(--shadow);
  isolation: isolate;
  image-rendering: pixelated;
}

.pixel-stage::before,
.pixel-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.pixel-stage::before {
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(4, 6, 12, 0.04), rgba(2, 4, 8, 0.40)),
    url("/assets/blue-biome.png") center / cover;
  opacity: 0.92;
  transform: scale(1.02);
}

.pixel-stage::after {
  z-index: -1;
  background:
    radial-gradient(circle at 50% 78%, rgba(105, 246, 233, 0.18), transparent 15rem),
    linear-gradient(90deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.58));
}

.upgrade-showcase {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.upgrade-showcase::before,
.upgrade-showcase::after {
  content: none;
}

.synergy-showcase::before {
  background:
    linear-gradient(180deg, rgba(3, 16, 18, 0.08), rgba(4, 8, 10, 0.50)),
    url("/assets/umbra-biome.png") center / cover;
}

.ship-sprite,
.upgrade-badge,
.boss-sprite {
  display: block;
  background-repeat: no-repeat;
  image-rendering: pixelated;
}

.ship-sprite {
  position: absolute;
  z-index: 6;
  width: 96px;
  height: 96px;
  background-image: url("/assets/ships.png");
  background-size: 960px 960px;
  filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.54));
}

.ship-silver-stage {
  left: 50%;
  bottom: 34px;
  margin-left: -48px;
  background-position: -96px 0;
}

.upgrade-badge {
  width: 64px;
  height: 64px;
  background-image: url("/assets/upgrades.png");
  background-size: 576px 320px;
}

.overclock-badge {
  background-position: -128px -64px;
}

.curse-badge {
  background-position: -64px -256px;
}

.side-cannons-badge {
  background-position: -320px 0;
}

.plasma-lance-badge {
  background-position: -192px -128px;
}

.trinity-lance-badge {
  background-position: -512px -192px;
}

.upgrade-card-mock {
  position: absolute;
  z-index: 6;
  left: 50%;
  top: 50%;
  width: min(calc(100% - 42px), 560px);
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid rgba(132, 136, 152, 0.48);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(14, 15, 21, 0.94), rgba(8, 8, 12, 0.96)),
    #090a0d;
  box-shadow:
    0 18px 52px rgba(0, 0, 0, 0.46),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  transform: translate(-50%, -50%);
}

.upgrade-card-top {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: clamp(16px, 3vw, 22px);
  align-items: center;
}

.upgrade-card-icon {
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  border: 1px solid rgba(132, 136, 152, 0.56);
  border-radius: 8px;
  background: rgba(18, 19, 27, 0.78);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.upgrade-card-copy h3,
.curse-title,
.select-mock {
  font-family: "SectorRunPixel", Inter, sans-serif;
  letter-spacing: 0;
}

.upgrade-card-copy h3 {
  color: var(--gold);
  font-size: clamp(1.25rem, 3vw, 2rem);
  line-height: 1;
}

.upgrade-card-copy p,
.curse-strip p {
  margin: 8px 0 0;
  color: #fff8e9;
  line-height: 1.35;
}

.curse-strip {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-top: 18px;
  padding: 12px 14px;
  border: 3px solid #ff3d2e;
  border-radius: 8px;
  background: rgba(42, 8, 5, 0.72);
  box-shadow: 0 0 0 1px rgba(255, 180, 80, 0.20);
}

.curse-strip .upgrade-badge {
  width: 56px;
  height: 56px;
  background-size: 504px 280px;
  background-position: -56px -224px;
}

.curse-title {
  margin-top: 0;
  color: #ff6354;
  font-size: clamp(0.86rem, 1.8vw, 1.05rem);
  line-height: 1;
  text-transform: uppercase;
}

.select-mock {
  display: grid;
  place-items: center;
  min-height: 66px;
  margin-top: 18px;
  border: 3px solid #ffbd25;
  border-radius: 8px;
  background: #d47a05;
  color: #150d07;
  font-size: clamp(1.12rem, 2.6vw, 1.62rem);
  line-height: 1;
  text-transform: uppercase;
}

.stage-chip {
  position: absolute;
  z-index: 8;
  left: 24px;
  top: 24px;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 207, 67, 0.42);
  border-radius: 6px;
  background: rgba(5, 5, 6, 0.78);
  color: var(--gold);
  font-family: "SectorRunPixel", Inter, sans-serif;
  font-size: 0.68rem;
  text-transform: uppercase;
}

.synergy-chip {
  left: auto;
  right: 24px;
  border-color: rgba(105, 246, 233, 0.46);
  color: var(--cyan);
}

.trinity-lance {
  position: absolute;
  z-index: 4;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.synergy-recipe {
  position: absolute;
  z-index: 8;
  top: 22px;
  left: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(105, 246, 233, 0.28);
  border-radius: 6px;
  background: rgba(3, 6, 8, 0.72);
}

.synergy-recipe .upgrade-badge {
  width: 52px;
  height: 52px;
  background-size: 468px 260px;
}

.synergy-recipe .side-cannons-badge {
  background-position: -260px 0;
}

.synergy-recipe .plasma-lance-badge {
  background-position: -156px -104px;
}

.synergy-recipe .trinity-lance-badge {
  width: 64px;
  height: 64px;
  background-size: 576px 320px;
  background-position: -512px -192px;
}

.trinity-lance {
  top: -18px;
  bottom: 144px;
  width: 112px;
}

.trinity-beam,
.trinity-beam::before,
.trinity-beam::after,
.trinity-muzzle {
  position: absolute;
  display: block;
  image-rendering: pixelated;
}

.trinity-beam {
  top: 0;
  bottom: 0;
  width: 26px;
  background:
    linear-gradient(
      90deg,
      #20ffff 0 4px,
      #079aa3 4px 7px,
      #3df7f1 7px 19px,
      #079aa3 19px 22px,
      #20ffff 22px 26px
    );
  box-shadow: 0 0 8px rgba(58, 242, 238, 0.46);
}

.trinity-beam::before,
.trinity-beam::after {
  content: "";
}

.trinity-beam::before {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 6px;
  background: #e8fff2;
  transform: translateX(-50%);
}

.trinity-beam::after {
  left: -5px;
  right: -5px;
  bottom: -6px;
  height: 6px;
  background: rgba(14, 222, 224, 0.42);
}

.trinity-beam.lane-left {
  left: 0;
}

.trinity-beam.lane-center {
  left: 50%;
  transform: translateX(-50%);
}

.trinity-beam.lane-right {
  right: 0;
}

.trinity-muzzle {
  left: 50%;
  bottom: -7px;
  width: 106px;
  height: 8px;
  background:
    linear-gradient(
      90deg,
      transparent 0 1.5%,
      rgba(14, 222, 224, 0.40) 1.5% 25.8%,
      transparent 25.8% 40.9%,
      rgba(14, 222, 224, 0.50) 40.9% 59.1%,
      transparent 59.1% 74.2%,
      rgba(14, 222, 224, 0.40) 74.2% 98.5%,
      transparent 98.5% 100%
    );
  transform: translateX(-50%);
}

.galaxy-section {
  background:
    linear-gradient(180deg, rgba(9, 7, 8, 0), rgba(21, 7, 7, 0.44)),
    #0b080b;
}

.route-stage {
  display: grid;
  gap: 14px;
}

.route-window {
  position: relative;
  min-height: clamp(330px, 35vw, 430px);
  overflow: hidden;
  border: 1px solid rgba(105, 246, 233, 0.24);
  border-radius: var(--radius);
  background: #050506;
  box-shadow: var(--shadow);
  cursor: pointer;
  isolation: isolate;
}

.route-window::before,
.route-window::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.route-window::before {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.64), rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.50)),
    url("/assets/umbra-biome.png") center / cover;
  image-rendering: pixelated;
  transform: scale(1.03);
}

.route-window::after {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.54)),
    radial-gradient(circle at 74% 28%, rgba(255, 207, 67, 0.18), transparent 18rem);
}

.route-stage[data-route="crimson"] .route-window {
  border-color: rgba(255, 85, 69, 0.34);
}

.route-stage[data-route="crimson"] .route-window::before {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.66), rgba(0, 0, 0, 0.10), rgba(0, 0, 0, 0.56)),
    url("/assets/crimson-biome.png") center / cover;
}

.route-stage[data-route="crimson"] .route-window::after {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.52)),
    radial-gradient(circle at 72% 30%, rgba(255, 85, 69, 0.22), transparent 18rem);
}

.route-stage[data-route="azure"] .route-window {
  border-color: rgba(105, 246, 233, 0.34);
}

.route-stage[data-route="azure"] .route-window::before {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.52)),
    url("/assets/blue-biome.png") center / cover;
}

.route-stage[data-route="azure"] .route-window::after {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.50)),
    radial-gradient(circle at 72% 30%, rgba(105, 246, 233, 0.24), transparent 18rem);
}

.route-copy {
  position: absolute;
  z-index: 3;
  left: clamp(20px, 4vw, 42px);
  bottom: clamp(20px, 4vw, 42px);
  width: min(460px, calc(100% - 40px));
}

.route-label {
  margin: 0 0 10px;
  color: var(--cyan);
  font-family: "SectorRunPixel", Inter, sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.route-copy h3 {
  font-size: clamp(2rem, 5vw, 4.2rem);
}

.route-copy p:last-child {
  max-width: 520px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.18rem);
}

.route-icon {
  position: absolute;
  z-index: 3;
  top: clamp(18px, 3vw, 34px);
  left: clamp(18px, 3vw, 34px);
}

.route-stage[data-route="umbra"] .route-icon {
  background-position: 0 0;
}

.route-stage[data-route="crimson"] .route-icon {
  background-position: -84px 0;
}

.route-stage[data-route="azure"] .route-icon {
  background-position: -168px 0;
}

.route-bosses {
  position: absolute;
  z-index: 3;
  right: clamp(18px, 4vw, 44px);
  bottom: clamp(20px, 4vw, 42px);
  display: flex;
  align-items: flex-end;
  gap: clamp(8px, 1.8vw, 18px);
}

.boss-sprite {
  width: 64px;
  height: 64px;
  background-image: url("/assets/ships.png");
  background-size: 320px 320px;
  filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.56));
}

.route-bosses .boss-sprite:nth-child(2) {
  width: 76px;
  height: 76px;
  background-size: 380px 380px;
}

.route-stage[data-route="umbra"] .boss-sprite:nth-child(1) {
  background-position: -128px -192px;
}

.route-stage[data-route="umbra"] .boss-sprite:nth-child(2) {
  background-position: -228px -228px;
}

.route-stage[data-route="umbra"] .boss-sprite:nth-child(3) {
  background-position: -256px -192px;
}

.route-stage[data-route="crimson"] .boss-sprite:nth-child(1) {
  background-position: -128px -256px;
}

.route-stage[data-route="crimson"] .boss-sprite:nth-child(2) {
  background-position: -228px -304px;
}

.route-stage[data-route="crimson"] .boss-sprite:nth-child(3) {
  background-position: -256px -256px;
}

.route-stage[data-route="azure"] .boss-sprite:nth-child(1) {
  background-position: -64px -192px;
}

.route-stage[data-route="azure"] .boss-sprite:nth-child(2) {
  background-position: 0 -304px;
}

.route-stage[data-route="azure"] .boss-sprite:nth-child(3) {
  background-position: -64px -256px;
}

.route-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.route-tabs button {
  min-height: 52px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(18, 16, 18, 0.88);
  color: var(--muted);
  font: inherit;
  font-weight: 800;
  line-height: 1.15;
  cursor: pointer;
}

.route-tabs button:hover,
.route-tabs button[aria-pressed="true"] {
  border-color: rgba(105, 246, 233, 0.68);
  color: var(--ink);
  background: rgba(20, 30, 32, 0.94);
}

.galaxy-icon {
  display: block;
  width: 84px;
  height: 84px;
  background-image: url("/assets/galaxy-icons-atlas.png");
  background-repeat: no-repeat;
  background-size: 252px 84px;
  image-rendering: pixelated;
}

.progression-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.progression-grid article,
.support-grid article {
  padding: 22px;
}

.progression-grid h3,
.support-grid h2 {
  margin-top: 0;
}

.cta-section {
  background:
    linear-gradient(90deg, rgba(255, 138, 25, 0.14), rgba(105, 246, 233, 0.08)),
    #120d0d;
}

.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(240px, 0.75fr);
  gap: 28px;
  align-items: center;
}

.cta-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 207, 67, 0.78);
  border-radius: var(--radius);
  background: var(--orange);
  color: #110806;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
}

.button-link:hover {
  background: var(--gold);
}

.button-link.secondary {
  background: rgba(17, 14, 14, 0.84);
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.22);
}

.button-link.secondary:hover {
  border-color: var(--cyan);
}

.site-footer {
  padding: 28px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #060505;
  color: var(--dim);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.legal-main,
.support-main {
  min-height: 100svh;
  padding: 116px 0 72px;
  background:
    radial-gradient(circle at 80% 12%, rgba(105, 246, 233, 0.08), transparent 28rem),
    radial-gradient(circle at 18% 28%, rgba(255, 138, 25, 0.08), transparent 26rem),
    var(--bg);
}

.legal-article {
  width: min(860px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(24px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18, 16, 18, 0.88);
  box-shadow: var(--shadow);
}

.legal-article h1,
.support-hero h1 {
  font-size: clamp(2.4rem, 7vw, 5rem);
}

.legal-article h2 {
  margin-top: 34px;
  font-size: clamp(1.28rem, 2.4vw, 1.7rem);
  color: var(--gold);
}

.legal-article p {
  margin: 14px 0 0;
}

.legal-article ul {
  margin: 12px 0 0;
  color: var(--muted);
}

.legal-article a,
.support-details a {
  color: var(--cyan);
}

.support-hero {
  width: min(840px, calc(100% - 36px));
  margin: 0 auto;
  text-align: center;
}

.support-hero img {
  width: 128px;
  height: 128px;
  margin: 0 auto 22px;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.support-hero p {
  max-width: 680px;
  margin: 18px auto 0;
  font-size: clamp(1rem, 2vw, 1.16rem);
}

.support-hero .button-link {
  margin-top: 28px;
}

.support-details {
  padding-bottom: 0;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 900px) {
  .feature-grid.three,
  .progression-grid,
  .support-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-grid,
  .split-grid.reverse,
  .intro-grid,
  .cta-band {
    grid-template-columns: 1fr;
  }

  .cta-links {
    justify-content: flex-start;
  }

  .pixel-stage {
    min-height: 320px;
  }

  .upgrade-showcase {
    min-height: 360px;
  }
}

@media (max-width: 640px) {
  body {
    line-height: 1.55;
  }

  .site-header {
    min-height: 68px;
    align-items: flex-start;
    padding-top: 12px;
  }

  .brand-link span {
    max-width: 96px;
    line-height: 1.1;
  }

  .site-nav {
    gap: 10px;
    font-size: 0.82rem;
  }

  .hero {
    min-height: 82svh;
    padding-top: 94px;
    padding-bottom: 46px;
  }

  .hero-media {
    background-position: center top;
  }

  .hero::before {
    background:
      linear-gradient(0deg, rgba(9, 7, 8, 0.88) 0%, rgba(9, 7, 8, 0.34) 54%, rgba(9, 7, 8, 0.68) 100%),
      rgba(9, 7, 8, 0.28);
  }

  .hero-copy {
    align-self: end;
  }

  .hero-lede {
    font-size: 1rem;
  }

  .feature-grid.three,
  .progression-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 0;
  }

  .pixel-stage {
    min-height: 300px;
  }

  .upgrade-card-mock {
    width: min(calc(100% - 24px), 520px);
    padding: 14px;
  }

  .upgrade-card-top {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
  }

  .upgrade-card-icon {
    width: 76px;
    height: 76px;
  }

  .upgrade-card-icon .upgrade-badge {
    width: 56px;
    height: 56px;
    background-size: 504px 280px;
  }

  .upgrade-card-icon .overclock-badge {
    background-position: -112px -56px;
  }

  .upgrade-card-copy h3 {
    font-size: 1.2rem;
  }

  .upgrade-card-copy p,
  .curse-strip p {
    margin-top: 6px;
    font-size: 0.88rem;
    line-height: 1.28;
  }

  .curse-strip {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px;
    margin-top: 12px;
    padding: 10px;
    border-width: 2px;
  }

  .curse-strip .upgrade-badge {
    width: 44px;
    height: 44px;
    background-size: 396px 220px;
    background-position: -44px -176px;
  }

  .curse-title {
    font-size: 0.76rem;
  }

  .select-mock {
    min-height: 52px;
    margin-top: 12px;
    border-width: 2px;
    font-size: 1.1rem;
  }

  .stage-chip {
    left: 16px;
    top: 16px;
  }

  .synergy-chip {
    left: auto;
    right: 16px;
  }

  .synergy-recipe {
    left: 16px;
    top: 16px;
    gap: 6px;
  }

  .synergy-recipe .upgrade-badge {
    width: 44px;
    height: 44px;
    background-size: 396px 220px;
  }

  .synergy-recipe .side-cannons-badge {
    background-position: -220px 0;
  }

  .synergy-recipe .plasma-lance-badge {
    background-position: -132px -88px;
  }

  .synergy-recipe .trinity-lance-badge {
    width: 52px;
    height: 52px;
    background-size: 468px 260px;
    background-position: -416px -156px;
  }

  .trinity-lance {
    top: -16px;
    bottom: 118px;
    width: 88px;
  }

  .trinity-beam {
    width: 20px;
    background:
      linear-gradient(
        90deg,
        #20ffff 0 3px,
        #079aa3 3px 6px,
        #3df7f1 6px 14px,
        #079aa3 14px 17px,
        #20ffff 17px 20px
      );
  }

  .trinity-beam::before {
    width: 5px;
  }

  .trinity-muzzle {
    width: 84px;
  }

  .ship-sprite {
    width: 82px;
    height: 82px;
    background-size: 820px 820px;
  }

  .ship-silver-stage {
    margin-left: -41px;
    background-position: -82px 0;
  }

  .route-tabs {
    grid-template-columns: 1fr;
  }

  .route-bosses {
    right: 16px;
    top: 18px;
    bottom: auto;
    gap: 6px;
    transform: scale(0.72);
    transform-origin: top right;
  }

  .route-copy {
    bottom: 20px;
  }

  .route-icon {
    top: 18px;
    left: 18px;
    transform: scale(0.78);
    transform-origin: top left;
  }

  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 390px) {
  .container,
  .legal-article,
  .support-hero {
    width: min(100% - 28px, var(--max));
  }

  .site-header {
    gap: 10px;
  }

  .brand-link span {
    display: none;
  }

  .brand-icon {
    width: 34px;
    height: 34px;
  }

  .site-nav {
    font-size: 0.76rem;
  }

  .hero {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero-actions {
    gap: 12px;
  }

  .ios-placeholder {
    width: 178px;
    height: 56px;
  }

  .button-link {
    width: 100%;
  }

  .cta-links {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
