:root {
  --cream: #fff8e7;
  --paper: #fffdf7;
  --ink: #19192a;
  --navy: #202348;
  --navy-deep: #14172f;
  --muted: #625f70;
  --coral: #f56f78;
  --coral-dark: #c8475c;
  --gold: #ffc950;
  --gold-dark: #d18b20;
  --sky: #69c9ee;
  --sky-dark: #337eaf;
  --leaf: #77c950;
  --leaf-dark: #3e8e4a;
  --violet: #9a83df;
  --line: #272746;
  --shadow: 0 8px 0 rgba(32, 35, 72, 0.18);
  --soft-shadow: 0 18px 50px rgba(32, 35, 72, 0.14);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  padding: 0 20px 80px;
  background: linear-gradient(180deg, #e9f7e2 0%, var(--cream) 34%, var(--cream) 100%);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

img {
  max-width: 100%;
}

a {
  color: var(--leaf-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--ink);
}

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

/* Shared readable pages */

.wrap {
  max-width: 720px;
  margin: 0 auto;
}

header.site {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 28px 0 22px;
}

header.site img {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: block;
}

header.site .brand-logo {
  width: 184px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  border-radius: 0;
  object-fit: contain;
}

header.site.site-home {
  justify-content: center;
  padding: 18px 0;
}

header.site.site-home a {
  width: min(320px, 100%);
}

header.site.site-home .brand-logo {
  width: 100%;
}

header.site .name {
  font-family: Fredoka, "Plus Jakarta Sans", system-ui, sans-serif;
  font-weight: 700;
  font-size: 20px;
}

header.site a {
  color: inherit;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
}

.wrap > main {
  background: var(--paper);
  border: 2px solid rgba(39, 39, 70, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
  padding: 38px 34px 42px;
}

.wrap h1,
.wrap h2 {
  font-family: Fredoka, "Plus Jakarta Sans", system-ui, sans-serif;
}

.wrap h1 {
  font-size: 34px;
  line-height: 1.12;
  margin: 0 0 6px;
}

.wrap h2 {
  font-size: 21px;
  line-height: 1.3;
  margin: 34px 0 8px;
  padding-top: 26px;
  border-top: 1px solid #ebe8df;
}

.wrap h2:first-of-type {
  border-top: 0;
  padding-top: 0;
  margin-top: 28px;
}

.updated {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 26px;
}

.lede {
  background: #e9f6e3;
  border: 1px solid #d9ebd2;
  border-radius: 18px;
  padding: 18px 20px;
  margin: 0 0 8px;
  font-size: 17px;
}

.lede p:first-child {
  margin-top: 0;
}

.lede p:last-child {
  margin-bottom: 0;
}

.wrap li {
  margin-bottom: 7px;
}

footer.site {
  max-width: 720px;
  margin: 26px auto 0;
  color: var(--muted);
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

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

/* Friend invite page. Reuses the prelaunch sheet; only the code block is new. */

.invite-code-card {
  width: min(420px, 100%);
  margin: 24px auto 0;
  padding: 18px 18px 22px;
  background: #fff;
  border: 3px solid var(--navy);
  border-radius: 24px;
  box-shadow: 0 6px 0 var(--navy);
}

.invite-code {
  margin: 4px 0 16px;
  color: var(--navy-deep);
  font-family: Fredoka, sans-serif;
  font-size: clamp(32px, 9vw, 46px);
  font-weight: 700;
  letter-spacing: 0.06em;
  user-select: all;
}

.invite-code-card .game-button {
  cursor: pointer;
}

.invite-steps {
  width: min(460px, 100%);
  margin: 24px auto 0;
  padding-left: 1.4em;
  color: var(--navy);
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
}

.invite-steps li + li {
  margin-top: 8px;
}

/* Prelaunch homepage */

body.prelaunch-page {
  min-height: 100vh;
  padding: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 201, 80, 0.3) 0 5px, transparent 6px),
    radial-gradient(circle at 88% 18%, rgba(245, 111, 120, 0.24) 0 6px, transparent 7px),
    linear-gradient(160deg, #ccefff 0%, #fff5dc 52%, #dff3d5 100%);
}

.prelaunch-shell {
  width: min(920px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 0 80px rgba(28, 36, 62, 0.2);
}

.prelaunch-scene {
  position: relative;
  min-height: clamp(320px, 52vh, 560px);
  overflow: hidden;
  background: #64c8ed;
}

.prelaunch-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  image-rendering: pixelated;
}

.prelaunch-wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22, 35, 62, 0.12) 42%, rgba(19, 28, 51, 0.66) 100%);
}

.prelaunch-status {
  position: absolute;
  top: max(22px, env(safe-area-inset-top));
  right: 22px;
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 18px;
  color: #fff;
  background: var(--navy);
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  box-shadow: 0 5px 0 rgba(20, 23, 47, 0.35);
  font-family: Fredoka, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.prelaunch-sheet {
  position: relative;
  z-index: 2;
  min-height: calc(48vh + 46px);
  margin-top: -46px;
  padding: 150px 44px max(28px, env(safe-area-inset-bottom));
  text-align: center;
  background: var(--paper);
  border-radius: 54px 54px 0 0;
}

.prelaunch-logo {
  position: absolute;
  top: -78px;
  left: 50%;
  width: min(330px, 68vw);
  height: auto;
  transform: translateX(-50%);
  filter: drop-shadow(0 8px 8px rgba(20, 23, 47, 0.2));
}

.prelaunch-kicker {
  width: fit-content;
  margin: 0 auto 9px;
  padding: 6px 13px;
  color: #704a0b;
  background: #ffe59b;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.09em;
}

.prelaunch-sheet h1 {
  margin: 0;
  color: var(--navy-deep);
  font-family: Fredoka, sans-serif;
  font-size: clamp(38px, 7vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.prelaunch-copy {
  max-width: 620px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: clamp(17px, 2.5vw, 21px);
  line-height: 1.5;
}

.prelaunch-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 26px auto 0;
}

.prelaunch-features span {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 15px;
  color: var(--navy);
  background: #edf7e8;
  border: 2px solid #cfe8c4;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.prelaunch-features span:nth-child(2) {
  background: #e6f6fd;
  border-color: #bfe4f3;
}

.prelaunch-features span:nth-child(3) {
  background: #f2ecff;
  border-color: #d8caf5;
}

.prelaunch-platform {
  margin: 28px 0 0;
  color: var(--navy);
  font-size: 15px;
  font-weight: 800;
}

.prelaunch-platform span {
  color: var(--coral-dark);
}

.prelaunch-motto {
  margin: 10px 0 0;
  color: var(--leaf-dark);
  font-family: Fredoka, sans-serif;
  font-size: 18px;
  font-weight: 700;
}

.prelaunch-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid #e8e5dc;
}

.prelaunch-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 560px) {
  .prelaunch-scene {
    min-height: 44vh;
  }

  .prelaunch-art {
    object-position: 58% center;
  }

  .prelaunch-status {
    top: max(14px, env(safe-area-inset-top));
    right: 14px;
    min-height: 38px;
    padding: 0 14px;
    font-size: 12px;
  }

  .prelaunch-sheet {
    min-height: calc(56vh + 38px);
    margin-top: -38px;
    padding: 128px 22px max(22px, env(safe-area-inset-bottom));
    border-radius: 38px 38px 0 0;
  }

  .prelaunch-logo {
    top: -64px;
    width: min(280px, 72vw);
  }

  .prelaunch-sheet h1 {
    font-size: clamp(38px, 12vw, 50px);
  }

  .prelaunch-copy {
    font-size: 17px;
  }

  .prelaunch-features {
    gap: 8px;
  }

  .prelaunch-features span {
    min-height: 36px;
    padding: 0 12px;
    font-size: 12px;
  }
}

/* Marketing site */

body.marketing-page {
  padding: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 14%, rgba(255, 201, 80, 0.22) 0 4px, transparent 5px),
    radial-gradient(circle at 92% 22%, rgba(245, 111, 120, 0.2) 0 5px, transparent 6px),
    linear-gradient(180deg, #dff4ff 0%, #fff8e7 16%, #fffdf7 70%, #e9f7e2 100%);
}

.game-header {
  position: sticky;
  z-index: 20;
  top: 0;
  padding: 10px 20px;
  background: rgba(255, 253, 247, 0.9);
  border-bottom: 2px solid rgba(39, 39, 70, 0.1);
  backdrop-filter: blur(16px);
}

.game-nav {
  width: min(1180px, 100%);
  min-height: 62px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-brand {
  display: flex;
  width: 142px;
  height: 54px;
  align-items: center;
}

.nav-brand img {
  display: block;
  width: 100%;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.nav-links a {
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--coral-dark);
}

.coming-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 17px;
  color: #fff;
  background: var(--navy);
  border: 2px solid var(--navy);
  border-radius: 999px;
  font-family: Fredoka, sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.marketing-main {
  display: block;
}

.hero {
  position: relative;
  min-height: min(720px, calc(100vh - 84px));
  overflow: hidden;
  display: flex;
  align-items: center;
  border-bottom: 8px solid var(--navy);
  background: #70cdf0;
  isolation: isolate;
}

.hero-scene {
  position: absolute;
  z-index: -2;
  inset: 0 0 0 28%;
  width: 72%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  image-rendering: pixelated;
}

.hero-shade {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 30, 58, 0.88) 0%, rgba(18, 30, 58, 0.68) 33%, rgba(18, 30, 58, 0.06) 66%),
    linear-gradient(0deg, rgba(17, 25, 45, 0.3) 0%, transparent 40%);
}

.hero-copy {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 70px 0 86px;
  color: #fff;
}

.pixel-kicker {
  width: fit-content;
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.3;
}

.hero .pixel-kicker {
  color: #fff1a3;
  text-shadow: 0 2px 0 rgba(22, 29, 60, 0.5);
}

.pixel-kicker.coral {
  color: var(--coral-dark);
}

.pixel-kicker.sky {
  color: #a9edff;
}

.pixel-kicker.gold {
  color: #ffe48c;
}

.pixel-kicker.violet {
  color: #7153c4;
}

.pixel-kicker.leaf {
  color: var(--leaf-dark);
}

.hero-logo {
  display: block;
  width: min(420px, 48vw);
  height: auto;
  margin: -42px 0 -18px -30px;
  filter: drop-shadow(0 9px 0 rgba(21, 27, 59, 0.3));
}

.hero-lede {
  max-width: 520px;
  margin: 0 0 28px;
  font-family: Fredoka, sans-serif;
  font-size: clamp(25px, 3vw, 39px);
  font-weight: 600;
  line-height: 1.14;
  text-wrap: balance;
  text-shadow: 0 3px 0 rgba(21, 27, 59, 0.35);
}

.hero-lede strong,
.hero-lede span {
  display: block;
}

.hero-lede strong {
  color: #fff3a7;
  font-size: 1.16em;
}

.hero-lede span {
  margin-top: 7px;
  font-size: 0.72em;
  line-height: 1.25;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.game-button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 3px solid var(--navy);
  border-radius: 16px;
  box-shadow: 0 6px 0 var(--navy);
  font-family: Fredoka, sans-serif;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.game-button:hover {
  color: var(--navy);
  transform: translateY(2px);
  box-shadow: 0 4px 0 var(--navy);
}

.game-button.primary {
  color: var(--navy);
  background: var(--gold);
}

.game-button.secondary {
  color: var(--navy);
  background: #fff;
}

.platform-note {
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 700;
}

.platform-note span {
  color: var(--gold);
}

.quick-facts {
  position: relative;
  z-index: 2;
  width: min(860px, calc(100% - 40px));
  margin: -42px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  color: var(--navy);
  background: var(--paper);
  border: 3px solid var(--navy);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.quick-facts div {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 20px;
  text-align: center;
}

.quick-facts div + div {
  border-left: 2px solid #e8e4dc;
}

.quick-facts strong {
  font-family: Fredoka, sans-serif;
  font-size: 36px;
  line-height: 1;
}

.quick-facts span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.section-shell,
.regions-section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 112px 0;
}

.section-heading {
  max-width: 680px;
}

.section-heading.centered {
  margin: 0 auto 48px;
  text-align: center;
}

.section-heading.centered .pixel-kicker {
  margin-right: auto;
  margin-left: auto;
}

.section-heading h2,
.world-copy h2,
.collection-copy h2,
.kind-copy h2,
.final-cta h2 {
  margin: 0;
  color: var(--navy);
  font-family: Fredoka, sans-serif;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.03;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.section-heading > p:last-child,
.world-copy > p,
.collection-copy > p,
.kind-copy > p {
  color: var(--muted);
  font-size: 17px;
}

.loop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.loop-card {
  position: relative;
  min-height: 310px;
  padding: 30px;
  overflow: hidden;
  background: var(--paper);
  border: 3px solid var(--navy);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.loop-card::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -44px;
  width: 130px;
  height: 130px;
  border: 18px solid currentColor;
  border-radius: 50%;
  opacity: 0.08;
}

.coral-card {
  color: var(--coral-dark);
  background: #fff0ef;
}

.gold-card {
  color: var(--gold-dark);
  background: #fff6d8;
}

.blue-card {
  color: var(--sky-dark);
  background: #e6f7ff;
}

.step-number {
  position: absolute;
  top: 24px;
  right: 25px;
  font-family: Fredoka, sans-serif;
  font-size: 15px;
  font-weight: 700;
}

.step-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  margin-bottom: 35px;
  color: var(--navy);
  background: #fff;
  border: 3px solid var(--navy);
  border-radius: 22px;
  box-shadow: 0 5px 0 var(--navy);
  font-family: Fredoka, sans-serif;
  font-size: 34px;
  font-weight: 700;
}

.loop-card h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-family: Fredoka, sans-serif;
  font-size: 25px;
  line-height: 1.1;
}

.loop-card p {
  margin: 0;
  color: var(--muted);
}

.world-section {
  width: min(1180px, calc(100% - 40px));
  min-height: 0;
  margin: 20px auto 120px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.7fr);
  align-items: center;
  gap: 64px;
  padding: 78px;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 14%, rgba(105, 201, 238, 0.16) 0 120px, transparent 121px),
    linear-gradient(135deg, var(--navy-deep), #273a69 62%, #355b73);
  border: 3px solid var(--navy);
  border-radius: 34px;
  box-shadow: var(--shadow);
}

.world-copy h2 {
  color: #fff;
}

.world-copy > p {
  max-width: 560px;
  color: #d8def2;
}

.feature-list {
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 700;
}

.feature-list span {
  color: var(--gold);
  font-size: 12px;
}

.map-card {
  position: relative;
  width: min(350px, 100%);
  justify-self: center;
  overflow: hidden;
  background: var(--paper);
  border: 4px solid #fff;
  border-radius: 34px;
  box-shadow: 0 22px 0 rgba(8, 12, 30, 0.28), 0 32px 70px rgba(6, 10, 25, 0.35);
}

.map-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 4px solid var(--navy);
  border-radius: 30px;
}

.map-topbar {
  position: absolute;
  z-index: 3;
  top: 22px;
  left: 22px;
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
  color: var(--navy);
  background: rgba(255, 253, 247, 0.94);
  border: 3px solid var(--navy);
  border-radius: 15px;
  box-shadow: 0 4px 0 var(--navy);
}

.map-topbar span {
  color: var(--leaf-dark);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.map-topbar strong {
  font-family: Fredoka, sans-serif;
  font-size: 22px;
  line-height: 1.1;
}

.map-card > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: contain;
  image-rendering: pixelated;
}

.map-pin {
  position: absolute;
  z-index: 3;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: var(--gold);
  border: 3px solid var(--navy);
  border-radius: 50% 50% 50% 12px;
  box-shadow: 0 4px 0 rgba(32, 35, 72, 0.35);
  font-family: Fredoka, sans-serif;
  font-size: 20px;
  font-weight: 700;
  transform: rotate(-45deg);
}

.map-pin::first-letter {
  transform: rotate(45deg);
}

.pin-one {
  top: 26%;
  right: 20%;
}

.pin-two {
  top: 51%;
  left: 23%;
  background: var(--coral);
}

.pin-three {
  right: 28%;
  bottom: 15%;
  background: var(--sky);
}

.evolution-section {
  padding: 115px 20px 125px;
  color: #fff;
  background:
    radial-gradient(circle at 50% 45%, rgba(154, 131, 223, 0.25), transparent 38%),
    linear-gradient(180deg, #24274f, #171a35);
}

.light-heading h2 {
  color: #fff;
}

.light-heading > p:last-child {
  color: #cfd3e8;
}

.evolution-line {
  width: min(1050px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.08fr) auto minmax(0, 1.16fr);
  align-items: center;
  gap: 18px;
}

.evolution-card {
  position: relative;
  margin: 0;
  padding: 16px 16px 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.05));
  border: 2px solid rgba(255, 255, 255, 0.34);
  border-radius: 26px;
  text-align: center;
}

.evolution-card.featured-form {
  transform: translateY(-10px);
  border-color: rgba(105, 201, 238, 0.7);
}

.evolution-card.final-form {
  transform: translateY(-20px);
  background: linear-gradient(180deg, rgba(255, 201, 80, 0.17), rgba(255, 255, 255, 0.06));
  border-color: rgba(255, 201, 80, 0.72);
  box-shadow: 0 0 60px rgba(255, 201, 80, 0.14);
}

.form-label {
  display: inline-flex;
  padding: 6px 10px;
  color: #fff;
  background: rgba(8, 10, 26, 0.45);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.evolution-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 14px 7px rgba(0, 0, 0, 0.24));
}

.evolution-card figcaption {
  color: #fff;
  font-family: Fredoka, sans-serif;
  font-size: 21px;
  font-weight: 700;
}

.evolve-arrow {
  color: var(--gold);
  font-family: Fredoka, sans-serif;
  font-size: 62px;
  line-height: 1;
}

.collection-section {
  padding-bottom: 126px;
}

.collection-copy {
  max-width: 650px;
  margin-bottom: 44px;
}

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

.creature-card {
  position: relative;
  margin: 0;
  padding: 18px 14px 14px;
  overflow: hidden;
  border: 3px solid var(--navy);
  border-radius: 24px;
  box-shadow: 0 7px 0 var(--navy);
}

.creature-card::before {
  content: "";
  position: absolute;
  inset: 14px 14px auto auto;
  width: 13px;
  height: 13px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.25);
}

.creature-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 12px 5px rgba(32, 35, 72, 0.18));
}

.creature-card figcaption {
  padding: 9px 10px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.88);
  border-radius: 12px;
  font-family: Fredoka, sans-serif;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
}

.creature-coral {
  background: linear-gradient(160deg, #ffd4c6, #fff1d9);
}

.creature-blue {
  background: linear-gradient(160deg, #c9efff, #e9f7ff);
}

.creature-violet {
  background: linear-gradient(160deg, #d8d0fa, #f0eaff);
}

.creature-gold {
  background: linear-gradient(160deg, #fff0a9, #fff7dc);
}

.regions-section {
  padding-top: 0;
}

.region-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.region-card {
  position: relative;
  min-height: 470px;
  margin: 0;
  overflow: hidden;
  border: 3px solid var(--navy);
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.region-card img {
  width: 100%;
  height: 100%;
  min-height: 470px;
  display: block;
  object-fit: cover;
  object-position: center 38%;
  image-rendering: pixelated;
  transition: transform 350ms ease;
}

.region-card:hover img {
  transform: scale(1.035);
}

.region-lagoon img {
  object-position: center 52%;
}

.region-forest img {
  object-position: center 43%;
}

.region-card figcaption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0 12px;
  padding: 15px 16px;
  color: var(--navy);
  background: rgba(255, 253, 247, 0.94);
  border: 3px solid var(--navy);
  border-radius: 17px;
  box-shadow: 0 5px 0 var(--navy);
  backdrop-filter: blur(8px);
}

.region-card figcaption span {
  grid-row: 1 / 3;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--coral);
  border-radius: 12px;
  font-family: Fredoka, sans-serif;
  font-weight: 700;
}

.region-card figcaption strong {
  font-family: Fredoka, sans-serif;
  font-size: 20px;
  line-height: 1.1;
}

.region-card figcaption small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.kind-section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 120px;
  min-height: 510px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 0;
  overflow: hidden;
  background: #fff;
  border: 3px solid var(--navy);
  border-radius: 34px;
  box-shadow: var(--shadow);
}

.kind-art {
  align-self: stretch;
  overflow: hidden;
  background: #e6f7ff;
}

.kind-art img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 864 / 1320;
  min-height: 0;
  object-fit: cover;
  object-position: center top;
  image-rendering: auto;
}

.kind-copy {
  padding: 54px;
}

.kind-copy h2 {
  font-size: clamp(34px, 4vw, 49px);
}

.promise-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 26px;
}

.promise-row span {
  padding: 9px 13px;
  color: var(--navy);
  background: #eef7e9;
  border: 2px solid #cfe8c5;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.final-cta {
  padding: 96px 20px 110px;
  color: #fff;
  background:
    radial-gradient(circle at 50% 0, rgba(255, 201, 80, 0.24), transparent 40%),
    linear-gradient(145deg, #202348, #152b55);
  text-align: center;
}

.final-cta > img {
  display: block;
  width: min(440px, 76vw);
  height: auto;
  margin: -60px auto -24px;
  filter: drop-shadow(0 8px 0 rgba(0, 0, 0, 0.25));
}

.final-cta h2 {
  color: #fff;
}

.final-cta p {
  margin: 14px 0 28px;
  color: #d8def2;
  font-size: 17px;
}

.final-cta .game-button {
  margin-top: 4px;
}

.cta-stars {
  color: var(--gold);
  font-size: 22px;
}

.game-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.game-footer > div {
  display: flex;
  align-items: center;
  gap: 14px;
}

.game-footer img {
  width: 100px;
  height: auto;
}

.game-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.game-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 22px;
}

.game-footer a {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .coming-chip {
    margin-left: auto;
  }

  .hero {
    min-height: 680px;
  }

  .hero-scene {
    left: 0;
    width: 100%;
    object-fit: cover;
    object-position: 63% center;
  }

  .hero-shade {
    background: linear-gradient(90deg, rgba(18, 30, 58, 0.92) 0%, rgba(18, 30, 58, 0.68) 52%, rgba(18, 30, 58, 0.18) 100%);
  }

  .loop-grid,
  .region-grid {
    grid-template-columns: 1fr;
  }

  .loop-card {
    min-height: 250px;
  }

  .world-section {
    grid-template-columns: 1fr;
    gap: 55px;
    padding: 68px 48px;
  }

  .world-copy {
    max-width: 680px;
    margin: 0 auto;
  }

  .map-card {
    width: min(340px, 90%);
  }

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

  .region-card,
  .region-card img {
    min-height: 380px;
    max-height: 520px;
  }

  .kind-section {
    grid-template-columns: 1fr;
  }

  .kind-art img {
    min-height: 0;
    max-height: none;
  }
}

@media (max-width: 640px) {
  body {
    padding: 0 14px 60px;
  }

  .wrap > main {
    padding: 28px 20px 32px;
    border-radius: 22px;
  }

  .wrap h1 {
    font-size: 28px;
  }

  body.marketing-page {
    padding: 0;
  }

  .game-header {
    padding: 7px 13px;
  }

  .game-nav {
    min-height: 54px;
  }

  .nav-brand {
    width: 112px;
    height: 48px;
  }

  .coming-chip {
    min-height: 34px;
    padding: 0 13px;
    font-size: 12px;
  }

  .hero {
    min-height: 0;
    display: block;
    padding-top: 300px;
    background: var(--navy-deep);
  }

  .hero-scene {
    height: 320px;
    top: 0;
    bottom: auto;
    object-position: 69% center;
  }

  .hero-shade {
    background: linear-gradient(180deg, transparent 0 250px, rgba(20, 23, 47, 0.95) 308px, var(--navy-deep) 360px);
  }

  .hero-copy {
    width: calc(100% - 28px);
    padding: 22px 0 52px;
  }

  .hero-logo {
    width: min(280px, 76vw);
    margin: -30px 0 -8px -18px;
  }

  .hero-lede {
    max-width: 390px;
    font-size: 28px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .game-button {
    width: 100%;
  }

  .quick-facts {
    width: calc(100% - 28px);
    grid-template-columns: 1fr;
    margin-top: -28px;
  }

  .quick-facts div {
    min-height: 88px;
    flex-direction: row;
    gap: 12px;
  }

  .quick-facts div + div {
    border-top: 2px solid #e8e4dc;
    border-left: 0;
  }

  .quick-facts strong {
    font-size: 30px;
  }

  .quick-facts span {
    margin: 0;
  }

  .section-shell,
  .regions-section {
    width: calc(100% - 28px);
    padding: 86px 0;
  }

  .section-heading.centered {
    margin-bottom: 34px;
    text-align: left;
  }

  .section-heading.centered .pixel-kicker {
    margin-left: 0;
  }

  .section-heading h2,
  .world-copy h2,
  .collection-copy h2,
  .kind-copy h2,
  .final-cta h2 {
    font-size: 37px;
  }

  .loop-card {
    min-height: 0;
    padding: 26px;
  }

  .step-icon {
    margin-bottom: 28px;
  }

  .world-section {
    width: calc(100% - 28px);
    margin-bottom: 90px;
    padding: 52px 22px 58px;
    border-radius: 26px;
  }

  .map-card {
    width: min(300px, 100%);
  }

  .evolution-section {
    padding: 90px 14px 100px;
  }

  .evolution-line {
    grid-template-columns: 1fr;
    max-width: 360px;
  }

  .evolution-card.featured-form,
  .evolution-card.final-form {
    transform: none;
  }

  .evolution-card img {
    max-height: 285px;
  }

  .evolve-arrow {
    height: 34px;
    transform: rotate(90deg);
    text-align: center;
  }

  .collection-section {
    padding-bottom: 100px;
  }

  .creature-lineup {
    gap: 12px;
  }

  .creature-card {
    padding: 10px 8px 9px;
    border-radius: 18px;
  }

  .creature-card figcaption {
    font-size: 14px;
  }

  .region-card,
  .region-card img {
    min-height: 390px;
  }

  .kind-section {
    width: calc(100% - 28px);
    margin-bottom: 90px;
    border-radius: 26px;
  }

  .kind-art img {
    min-height: 260px;
  }

  .kind-copy {
    padding: 34px 25px 38px;
  }

  .final-cta {
    padding: 72px 14px 84px;
  }

  .final-cta > img {
    margin-top: -45px;
    margin-bottom: -18px;
  }

  .game-footer {
    width: calc(100% - 28px);
    align-items: flex-start;
    flex-direction: column;
  }

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

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

  .game-button,
  .region-card img {
    transition: none;
  }
}
