@font-face {
  font-family: "FusionPixel";
  src: url("assets/fonts/fusion-pixel/fusion-pixel-12px-proportional-zh_hans.otf.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --night: #080816;
  --night-2: #121326;
  --panel: #19182f;
  --panel-2: #24213d;
  --ink: #fef9ef;
  --moon: #e8dff5;
  --lavender: #b4a5d5;
  --pink: #ffb5c0;
  --peach: #ffd4a3;
  --orange: #ff8c42;
  --green: #8fbf7a;
  --brown: #7a4f31;
  --blue: #5db7ff;
  --line: #000;
  --soft-line: rgba(232, 223, 245, 0.18);
  --shadow: rgba(0, 0, 0, 0.62);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--night);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(8, 8, 22, 0.42), var(--night) 900px),
    var(--night);
  color: var(--ink);
  font-family: "FusionPixel", "Noto Sans SC", "PingFang SC", system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  letter-spacing: 0;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

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

img:not(.phone-shell img) {
  image-rendering: pixelated;
}

#world-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  padding: 0 44px;
  background: rgba(8, 8, 22, 0.18);
  border-bottom: 2px solid transparent;
  transition: background 180ms ease, border-color 180ms ease, height 180ms ease;
}

.site-nav.scrolled {
  height: 64px;
  background: rgba(8, 8, 22, 0.88);
  border-bottom-color: rgba(0, 0, 0, 0.86);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-size: 1rem;
  color: var(--ink);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--night);
  background: var(--peach);
  border: 3px solid var(--line);
  box-shadow: 4px 4px 0 var(--line);
}

.nav-links {
  gap: 30px;
  color: var(--lavender);
  font-size: 0.92rem;
}

.nav-links a {
  transition: color 160ms ease, transform 160ms ease;
}

.nav-links a:hover {
  color: var(--ink);
  transform: translateY(-2px);
}

.nav-cta {
  padding: 9px 16px;
  color: var(--night);
  background: var(--peach);
  border: 2px solid var(--line);
  box-shadow: 3px 3px 0 var(--line);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 38px;
  padding: 8px;
  background: var(--panel);
  border: 2px solid var(--line);
  box-shadow: 3px 3px 0 var(--line);
}

.nav-toggle span {
  display: block;
  height: 3px;
  background: var(--ink);
}

.nav-toggle span + span {
  margin-top: 8px;
}

.hero {
  position: relative;
  min-height: 92svh;
  padding: 122px 40px 24px;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(90deg, rgba(8, 8, 22, 0.96) 0%, rgba(8, 8, 22, 0.76) 40%, rgba(8, 8, 22, 0.42) 100%),
    linear-gradient(180deg, rgba(8, 8, 22, 0.12), rgba(8, 8, 22, 0.98)),
    url("assets/generated/moon-camp-background.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.04);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 180px;
  background: linear-gradient(180deg, transparent, var(--night));
  z-index: -1;
}

.marquee {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 110px;
  z-index: -2;
  overflow: hidden;
  color: rgba(254, 249, 239, 0.055);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-weight: 900;
  font-size: 6.5rem;
  white-space: nowrap;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 42s linear infinite;
}

.marquee span {
  padding-right: 1rem;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

.hero-inner {
  width: min(100%, var(--max));
  min-height: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 42px;
  align-items: center;
}

.hero-copy {
  padding-top: 24px;
}

.eyebrow,
.section-kicker,
.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--peach);
  font-size: 0.9rem;
}

.eyebrow span {
  width: 10px;
  height: 10px;
  background: var(--pink);
  border: 2px solid var(--line);
  box-shadow: 0 0 18px var(--pink);
}

.hero-title {
  margin: 0;
  max-width: 760px;
  font-size: 5.2rem;
  line-height: 0.95;
  text-shadow: 6px 6px 0 #000;
}

.hero-title strong {
  color: var(--peach);
  font-weight: 400;
}

.hero-lead {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--moon);
  font-size: 1.05rem;
}

.hero-actions,
.console-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 3px solid var(--line);
  color: var(--ink);
  background: var(--panel);
  box-shadow: 5px 5px 0 var(--line);
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
  user-select: none;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--line);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--line);
}

.btn.primary {
  color: var(--night);
  background: var(--orange);
}

.btn.secondary {
  background: rgba(25, 24, 47, 0.72);
}

.btn.pixel {
  min-height: 42px;
  padding: 10px 14px;
  font-size: 0.88rem;
  background: var(--orange);
  color: var(--night);
}

.btn.muted {
  color: var(--moon);
  background: var(--panel-2);
}

.hero-stage {
  justify-self: end;
  width: min(100%, 430px);
}

.moon-card {
  position: relative;
  background: var(--panel);
  border: 4px solid var(--line);
  box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.72), 0 0 0 2px rgba(255, 212, 163, 0.1) inset;
  overflow: hidden;
}

.moon-status {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--night-2);
  border-bottom: 3px solid var(--line);
  color: var(--moon);
  font-size: 0.86rem;
}

.stage-field {
  position: relative;
  height: 520px;
  overflow: hidden;
}

.stage-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
}

.stage-field::after,
.battle-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 8, 22, 0.05), rgba(8, 8, 22, 0.18));
  pointer-events: none;
}

.hero-sprite {
  position: absolute;
  left: 32%;
  bottom: 80px;
  width: 110px;
  filter: drop-shadow(0 10px 0 rgba(0, 0, 0, 0.42));
}

.enemy-sprite {
  position: absolute;
  right: 22%;
  bottom: 96px;
  width: 94px;
  filter: drop-shadow(0 8px 0 rgba(0, 0, 0, 0.42));
}

.sparkle {
  position: absolute;
  width: 52px;
  opacity: 0.86;
}

.sparkle-a {
  top: 92px;
  right: 66px;
  animation: blink 2.6s steps(2, end) infinite;
}

.sparkle-b {
  left: 70px;
  bottom: 210px;
  animation: blink 3.2s steps(2, end) infinite 300ms;
}

.floaty {
  animation: floaty 2.4s steps(4, end) infinite;
}

.bob {
  animation: bob 1.8s steps(3, end) infinite;
}

@keyframes floaty {
  50% {
    transform: translateY(-8px);
  }
}

@keyframes bob {
  50% {
    transform: translateY(7px);
  }
}

@keyframes blink {
  50% {
    opacity: 0.28;
  }
}

.moon-panel {
  padding: 14px;
  background: var(--night-2);
  border-top: 3px solid var(--line);
}

.moon-panel span {
  display: block;
  margin-bottom: 8px;
}

.hp-bar {
  height: 16px;
  padding: 3px;
  background: var(--night);
  border: 2px solid var(--line);
}

.hp-bar i {
  display: block;
  width: 72%;
  height: 100%;
  background: var(--pink);
}

.mini-attack {
  width: 100%;
  margin-top: 12px;
  padding: 10px 12px;
  color: var(--night);
  background: var(--peach);
  border: 3px solid var(--line);
  box-shadow: 4px 4px 0 var(--line);
}

.hero-strip {
  width: min(100%, var(--max));
  margin: 8px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 3px solid var(--line);
  background: rgba(25, 24, 47, 0.82);
  box-shadow: 8px 8px 0 var(--line);
}

.hero-strip div {
  padding: 18px 20px;
  border-right: 3px solid var(--line);
}

.hero-strip div:last-child {
  border-right: 0;
}

.hero-strip strong {
  display: block;
  color: var(--peach);
  font-size: 1.7rem;
  line-height: 1;
}

.hero-strip span {
  color: var(--lavender);
  font-size: 0.85rem;
}

.section {
  position: relative;
  z-index: 1;
  scroll-margin-top: 82px;
  padding: 110px 40px;
}

.final-cta {
  scroll-margin-top: 82px;
}

.section-heading,
.split-heading,
.play-grid,
.camp-grid,
.chapter-grid,
.chapter-milestones,
.loop-tabs,
.loop-panel,
.companion-showcase,
.loot-board,
.loot-detail,
.roadmap {
  width: min(100%, var(--max));
  margin-left: auto;
  margin-right: auto;
}

.section-heading {
  max-width: 760px;
  text-align: center;
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.62fr);
  gap: 36px;
  align-items: end;
  margin-bottom: 34px;
}

.section-kicker {
  color: var(--blue);
}

.section-heading h2,
.split-heading h2,
.final-copy h2 {
  margin: 0;
  font-size: 3.25rem;
  line-height: 1.08;
  text-shadow: 4px 4px 0 #000;
}

.section-heading p,
.split-heading > p,
.final-copy p,
.phone-caption p {
  color: var(--lavender);
}

.camp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(330px, 0.72fr);
  gap: 30px;
  align-items: stretch;
  margin-top: 42px;
}

.play-console,
.game-card,
.phone-preview,
.boss-showcase,
.chapter-rewards,
.chapter-milestones div,
.loop-panel,
.companion-showcase,
.loot-detail,
.road-card,
.signup {
  background: rgba(25, 24, 47, 0.92);
  border: 4px solid var(--line);
  box-shadow: 9px 9px 0 var(--line);
}

.play-section {
  padding-top: 96px;
  background:
    linear-gradient(180deg, rgba(93, 183, 255, 0.08), rgba(8, 8, 22, 0.08)),
    var(--night);
}

.play-grid {
  display: grid;
  grid-template-columns: minmax(340px, 0.78fr) minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
}

.game-card {
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(255, 180, 192, 0.08), rgba(143, 191, 122, 0.05)),
    rgba(25, 24, 47, 0.94);
}

.game-toolbar {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.game-toolbar h3 {
  margin: 0;
  font-size: 1.55rem;
}

.game-led {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 82px;
  justify-content: center;
  padding: 7px 10px;
  color: var(--lavender);
  background: var(--night);
  border: 2px solid var(--line);
  box-shadow: 3px 3px 0 var(--line);
  font-size: 0.78rem;
}

.game-led::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--pink);
  border: 2px solid var(--line);
}

.game-led.active {
  color: var(--night);
  background: var(--green);
}

.game-frame-shell {
  position: relative;
  width: min(100%, 390px);
  aspect-ratio: 390 / 844;
  max-height: min(76svh, 844px);
  margin: 0 auto;
  overflow: hidden;
  background: #05040a;
  border: 4px solid var(--line);
  box-shadow: 7px 7px 0 var(--line);
}

.game-frame-shell iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  background: #05040a;
}

.game-frame-shell iframe.active {
  opacity: 1;
}

.game-placeholder {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  padding: 28px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(8, 8, 22, 0.45), rgba(8, 8, 22, 0.9)),
    url("assets/generated/moon-camp-background.png") center/cover;
}

.game-placeholder.hidden {
  opacity: 0;
  pointer-events: none;
}

.game-placeholder img {
  width: 110px;
  filter: drop-shadow(0 10px 0 rgba(0, 0, 0, 0.45));
  animation: floaty 2.4s steps(4, end) infinite;
}

.game-placeholder h3 {
  margin: 0;
  color: var(--peach);
  font-size: 1.7rem;
  text-shadow: 3px 3px 0 #000;
}

.game-placeholder p {
  max-width: 280px;
  margin: 0;
  color: var(--moon);
}

.game-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
}

.play-notes {
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 14px;
}

.play-notes div {
  padding: 24px;
  background: rgba(25, 24, 47, 0.86);
  border: 4px solid var(--line);
  box-shadow: 7px 7px 0 var(--line);
}

.play-notes span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  color: var(--night);
  background: var(--blue);
  border: 3px solid var(--line);
}

.play-notes h3 {
  margin: 0 0 10px;
  font-size: 1.45rem;
}

.play-notes p {
  margin: 0;
  color: var(--lavender);
}

.chapter-section {
  background:
    linear-gradient(180deg, rgba(255, 181, 192, 0.08), rgba(93, 183, 255, 0.06)),
    var(--night);
}

.chapter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.48fr);
  gap: 24px;
  align-items: stretch;
}

.boss-showcase {
  display: grid;
  grid-template-columns: minmax(280px, 0.62fr) minmax(0, 1fr);
  gap: 24px;
  min-height: 390px;
  padding: 26px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(93, 183, 255, 0.12), rgba(255, 181, 192, 0.08)),
    rgba(25, 24, 47, 0.94);
}

.boss-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 330px;
  background:
    radial-gradient(circle at 50% 62%, rgba(93, 183, 255, 0.26), transparent 44%),
    linear-gradient(180deg, rgba(8, 8, 22, 0.36), rgba(8, 8, 22, 0.86)),
    url("assets/generated/moon-camp-background.png") center/cover;
  border: 3px solid var(--line);
  overflow: hidden;
}

.boss-image {
  position: relative;
  z-index: 2;
  width: min(82%, 280px);
  filter: drop-shadow(0 14px 0 rgba(0, 0, 0, 0.52));
  animation: bossPulse 2.4s steps(3, end) infinite;
}

.boss-fx {
  position: absolute;
  z-index: 1;
  width: min(92%, 340px);
  opacity: 0.56;
  transform: rotate(-14deg);
  filter: drop-shadow(0 0 18px rgba(93, 183, 255, 0.35));
}

@keyframes bossPulse {
  50% {
    transform: translateY(-6px);
  }
}

.boss-copy {
  align-self: center;
}

.chip.danger {
  background: var(--pink);
}

.boss-copy h3 {
  margin: 8px 0 14px;
  font-size: 2.45rem;
  line-height: 1.05;
  text-shadow: 4px 4px 0 #000;
}

.boss-copy p,
.chapter-rewards p,
.chapter-milestones p {
  color: var(--lavender);
}

.boss-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.boss-stats span {
  padding: 8px 10px;
  color: var(--moon);
  background: var(--night);
  border: 2px solid var(--line);
}

.chapter-rewards {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: rgba(36, 33, 61, 0.92);
}

.chapter-rewards div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px 14px;
  align-items: center;
  padding: 14px;
  background: var(--night-2);
  border: 3px solid var(--line);
}

.chapter-rewards img {
  grid-row: span 2;
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.chapter-rewards span {
  color: var(--peach);
  font-size: 1.05rem;
}

.chapter-rewards p {
  grid-column: 2;
  margin: 0;
  font-size: 0.88rem;
}

.chapter-milestones {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 26px;
}

.chapter-milestones div {
  min-height: 190px;
  padding: 22px;
}

.chapter-milestones span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  color: var(--night);
  background: var(--blue);
  border: 3px solid var(--line);
}

.chapter-milestones h3 {
  margin: 0 0 10px;
  font-size: 1.45rem;
}

.play-console {
  padding: 22px;
}

.console-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.console-top h3 {
  margin: 0;
  font-size: 1.55rem;
}

.chip {
  margin-bottom: 8px;
  padding: 4px 8px;
  color: var(--night);
  background: var(--green);
  border: 2px solid var(--line);
}

.wallet {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.wallet span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  background: var(--night);
  border: 2px solid var(--line);
}

.wallet img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.battle-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 0.72fr);
  gap: 18px;
}

.battle-scene {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 3px solid var(--line);
  background: var(--night);
}

.scene-bg {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  object-position: center 45%;
}

.fighter {
  position: absolute;
  left: 25%;
  bottom: 68px;
  width: 94px;
  transition: transform 90ms steps(2, end);
}

.fighter.attack {
  content: url("assets/generated/crops/hero_attack.png");
  transform: translateX(16px);
}

.target {
  position: absolute;
  right: 24%;
  bottom: 76px;
  width: 82px;
  transition: transform 120ms steps(2, end), filter 120ms ease;
}

.target.hit {
  transform: translateX(8px);
  filter: brightness(1.8);
}

.target.boss-target {
  right: 17%;
  bottom: 54px;
  width: 128px;
}

.slash {
  position: absolute;
  right: 28%;
  bottom: 112px;
  width: 96px;
  height: 80px;
  background: url("assets/generated/vfx/fx_attack_slash.png") center/contain no-repeat;
  image-rendering: pixelated;
  opacity: 0;
  transform: rotate(-10deg);
}

.slash.moon-slash {
  right: 18%;
  bottom: 132px;
  width: 138px;
  height: 116px;
  background-image: url("assets/generated/vfx/fx_moon_spring_slash.png");
}

.slash.show {
  animation: slash 220ms steps(3, end);
}

@keyframes slash {
  0% {
    opacity: 0;
    transform: translate(-18px, 10px) rotate(-18deg);
  }
  35% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(18px, -4px) rotate(8deg);
  }
}

.battle-ui {
  display: flex;
  flex-direction: column;
  min-height: 430px;
  padding: 18px;
  border: 3px solid var(--line);
  background: var(--night-2);
}

.enemy-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.hp-bar.active i {
  width: 100%;
  background: var(--pink);
}

#battle-log {
  min-height: 84px;
  margin: 18px 0;
  color: var(--moon);
}

.battle-ui .console-actions {
  margin-top: auto;
}

.phone-preview {
  padding: 18px;
  background: var(--panel-2);
}

.phone-shell {
  width: min(100%, 250px);
  margin: 0 auto;
  padding: 12px;
  border: 4px solid var(--line);
  background: #05040a;
  box-shadow: 7px 7px 0 var(--line);
}

.phone-shell img {
  width: 100%;
  border: 2px solid #05040a;
}

.phone-caption {
  margin-top: 18px;
}

.phone-caption span {
  color: var(--peach);
}

.loop-section {
  background:
    linear-gradient(180deg, rgba(18, 19, 38, 0.3), rgba(8, 8, 22, 0.1)),
    var(--night);
}

.loop-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.loop-tabs button {
  min-height: 48px;
  color: var(--lavender);
  background: var(--panel);
  border: 3px solid var(--line);
  box-shadow: 4px 4px 0 var(--line);
}

.loop-tabs button.active {
  color: var(--night);
  background: var(--peach);
}

.loop-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.78fr);
  gap: 32px;
  align-items: center;
  min-height: 360px;
  padding: 32px;
  overflow: hidden;
}

.loop-copy span {
  color: var(--green);
}

.loop-copy h3 {
  margin: 12px 0 14px;
  font-size: 2.25rem;
  line-height: 1.16;
}

.loop-copy p {
  margin: 0;
  color: var(--lavender);
}

.loop-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 270px;
  background:
    linear-gradient(180deg, rgba(255, 180, 192, 0.12), transparent),
    #111328;
  border: 3px solid var(--line);
  overflow: hidden;
}

.loop-visual img {
  max-height: 210px;
  max-width: 240px;
  filter: drop-shadow(0 10px 0 rgba(0, 0, 0, 0.44));
}

.loop-visual div {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: grid;
  gap: 3px;
  color: var(--peach);
}

.loop-visual strong {
  font-size: 1.4rem;
}

.companion-showcase {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 0.85fr) minmax(280px, 0.9fr);
  gap: 26px;
  align-items: center;
  margin-top: 42px;
  padding: 28px;
}

.companion-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 300px;
  background:
    linear-gradient(180deg, rgba(93, 183, 255, 0.14), rgba(255, 140, 66, 0.12)),
    var(--night-2);
  border: 3px solid var(--line);
  overflow: hidden;
}

.companion-stage img {
  position: relative;
  z-index: 2;
  width: 180px;
  filter: drop-shadow(0 14px 0 rgba(0, 0, 0, 0.44));
}

.companion-aura {
  position: absolute;
  bottom: 45px;
  width: 180px;
  height: 22px;
  background: rgba(255, 212, 163, 0.36);
  border: 3px solid rgba(0, 0, 0, 0.42);
  animation: aura 2s steps(2, end) infinite;
}

@keyframes aura {
  50% {
    transform: scaleX(0.86);
    opacity: 0.6;
  }
}

.companion-info span {
  color: var(--peach);
}

.companion-info h3 {
  margin: 6px 0 10px;
  font-size: 2.45rem;
}

.companion-info p {
  color: var(--moon);
}

.ability-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 22px;
}

.ability-grid div {
  min-height: 98px;
  padding: 14px;
  background: var(--night);
  border: 3px solid var(--line);
}

.ability-grid b {
  display: block;
  color: var(--green);
}

.ability-grid span {
  color: var(--lavender);
  font-size: 0.78rem;
}

.companion-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.companion-picker button {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  padding: 8px;
  color: var(--moon);
  background: var(--night-2);
  border: 3px solid var(--line);
  box-shadow: 4px 4px 0 var(--line);
}

.companion-picker button.active {
  color: var(--night);
  background: var(--peach);
}

.companion-picker img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.gallery-section {
  background:
    linear-gradient(180deg, rgba(255, 212, 163, 0.05), rgba(8, 8, 22, 0.2)),
    var(--night);
}

.loot-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(136px, 1fr));
  gap: 14px;
}

.loot-card {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 174px;
  padding: 16px 10px;
  color: var(--moon);
  background: var(--panel);
  border: 3px solid var(--line);
  box-shadow: 5px 5px 0 var(--line);
  transition: transform 140ms ease, background 140ms ease;
}

.loot-card:hover,
.loot-card.active {
  color: var(--night);
  background: var(--peach);
  transform: translateY(-4px);
}

.loot-card img {
  width: 86px;
  height: 86px;
  object-fit: contain;
}

.loot-card span {
  text-align: center;
  font-size: 0.84rem;
}

.loot-detail {
  margin-top: 24px;
  padding: 26px;
}

.loot-detail span {
  color: var(--green);
}

.loot-detail h3 {
  margin: 8px 0 10px;
  font-size: 1.7rem;
}

.loot-detail p {
  margin: 0;
  color: var(--lavender);
}

.roadmap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 40px;
}

.road-card {
  min-height: 214px;
  padding: 24px;
}

.road-card span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  color: var(--night);
  background: var(--green);
  border: 3px solid var(--line);
}

.road-card h3 {
  margin: 0 0 10px;
  font-size: 1.5rem;
}

.road-card p {
  margin: 0;
  color: var(--lavender);
}

.final-cta {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 440px);
  gap: 40px;
  align-items: center;
  min-height: 620px;
  padding: 110px max(40px, calc((100vw - var(--max)) / 2));
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(90deg, rgba(8, 8, 22, 0.9), rgba(8, 8, 22, 0.72)),
    linear-gradient(180deg, rgba(8, 8, 22, 0.06), rgba(8, 8, 22, 0.94)),
    url("assets/generated/moon-camp-background.png");
  background-size: cover;
  background-position: center 28%;
}

.final-copy {
  max-width: 650px;
}

.signup {
  padding: 24px;
  background: rgba(25, 24, 47, 0.94);
}

.signup label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--lavender);
}

.signup input,
.signup select {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--night);
  border: 3px solid var(--line);
  border-radius: 0;
}

.signup .btn {
  width: 100%;
  margin-top: 8px;
}

#signup-note {
  min-height: 24px;
  margin: 16px 0 0;
  color: var(--lavender);
  text-align: center;
  font-size: 0.82rem;
}

.site-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px max(40px, calc((100vw - var(--max)) / 2));
  background: #05040a;
  border-top: 3px solid var(--line);
}

.site-footer p {
  margin: 4px 0 0;
  color: var(--lavender);
}

.site-footer a {
  color: var(--peach);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 620ms ease, transform 620ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.tilt {
  transform-style: preserve-3d;
}

@media (max-width: 1050px) {
  .site-nav {
    padding: 0 24px;
  }

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

  .hero-inner,
  .play-grid,
  .camp-grid,
  .chapter-grid,
  .boss-showcase,
  .loop-panel,
  .companion-showcase,
  .final-cta {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    justify-self: center;
    width: min(100%, 390px);
  }

  .battle-box {
    grid-template-columns: 1fr;
  }

  .play-notes {
    grid-template-columns: 1fr;
  }

  .battle-ui {
    min-height: auto;
  }

  .split-heading {
    grid-template-columns: 1fr;
  }

  .loot-board {
    grid-template-columns: repeat(3, 1fr);
  }

  .chapter-milestones {
    grid-template-columns: 1fr;
  }

  .roadmap {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .site-nav {
    height: 66px;
    padding: 0 16px;
  }

  .brand {
    font-size: 0.9rem;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
    box-shadow: 3px 3px 0 var(--line);
  }

  .nav-toggle {
    display: block;
    position: relative;
    z-index: 55;
  }

  .nav-links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(310px, 100%);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 12px;
    padding: 28px;
    background: rgba(8, 8, 22, 0.96);
    border-left: 4px solid var(--line);
    transform: translateX(105%);
    transition: transform 220ms ease;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links a {
    padding: 14px 12px;
    background: var(--panel);
    border: 3px solid var(--line);
    box-shadow: 4px 4px 0 var(--line);
  }

  .nav-links .nav-cta {
    background: var(--peach);
  }

  .hero {
    min-height: 90svh;
    padding: 92px 16px 20px;
  }

  .hero-inner {
    min-height: 0;
    gap: 26px;
  }

  .hero-copy {
    padding-top: 12px;
  }

  .hero-title {
    font-size: 3rem;
    line-height: 1.02;
    text-shadow: 4px 4px 0 #000;
  }

  .hero-lead {
    font-size: 0.96rem;
  }

  .hero-actions {
    gap: 10px;
  }

  .btn {
    min-height: 44px;
    padding: 11px 14px;
    box-shadow: 4px 4px 0 var(--line);
  }

  .moon-card {
    box-shadow: 7px 7px 0 rgba(0, 0, 0, 0.72);
  }

  .game-card {
    padding: 16px;
  }

  .game-toolbar {
    flex-direction: column;
  }

  .game-frame-shell {
    width: min(100%, 360px);
    max-height: 620px;
  }

  .stage-field {
    height: 260px;
  }

  .hero-sprite {
    left: 28%;
    bottom: 42px;
    width: 70px;
  }

  .enemy-sprite {
    right: 19%;
    bottom: 52px;
    width: 60px;
  }

  .moon-panel {
    display: none;
  }

  .hero-strip {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 18px;
  }

  .hero-strip div {
    border-bottom: 3px solid var(--line);
  }

  .hero-strip div:nth-child(2n) {
    border-right: 0;
  }

  .hero-strip div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .section {
    padding: 78px 16px;
  }

  .section-heading h2,
  .split-heading h2,
  .final-copy h2 {
    font-size: 2.2rem;
  }

  .console-top {
    flex-direction: column;
  }

  .wallet {
    justify-content: flex-start;
  }

  .battle-scene,
  .scene-bg {
    min-height: 310px;
  }

  .fighter {
    left: 22%;
    width: 72px;
  }

  .target {
    right: 20%;
    width: 64px;
  }

  .target.boss-target {
    right: 11%;
    width: 96px;
  }

  .slash.moon-slash {
    right: 11%;
    bottom: 104px;
    width: 112px;
    height: 94px;
  }

  .loop-tabs {
    grid-template-columns: repeat(2, 1fr);
  }

  .loop-tabs button:last-child {
    grid-column: span 2;
  }

  .loop-panel {
    padding: 22px;
  }

  .loop-copy h3 {
    font-size: 1.65rem;
  }

  .companion-showcase {
    padding: 18px;
  }

  .companion-picker {
    grid-template-columns: 1fr;
  }

  .ability-grid,
  .chapter-milestones,
  .roadmap {
    grid-template-columns: 1fr;
  }

  .loot-board {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .loot-card {
    min-height: 146px;
  }

  .loot-card img {
    width: 68px;
    height: 68px;
  }

  .final-cta {
    padding: 84px 16px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
