:root {
  --ink: #13202b;
  --paper: #fffdf7;
  --space: #12243f;
  --space-deep: #071421;
  --aqua: #83e6d8;
  --coral: #ff7a66;
  --gold: #ffc857;
  --blue: #67a7ff;
  --mint: #73d99f;
  --pink: #f58ac2;
  --shadow: 0 20px 45px rgba(20, 31, 43, 0.18);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 200, 87, 0.22), transparent 28%),
    radial-gradient(circle at 92% 18%, rgba(131, 230, 216, 0.26), transparent 30%),
    linear-gradient(135deg, #f7fbff 0%, #fffdf7 52%, #fff0e9 100%);
  font-family: ui-rounded, "SF Pro Rounded", "Avenir Next", system-ui, sans-serif;
}

body.info-page {
  background: linear-gradient(135deg, #f7fbff 0%, #fffdf7 58%, #fff0e9 100%);
}

body.landing-page {
  background: #fffdf7;
}

button {
  font: inherit;
}

a {
  color: #17324d;
  font-weight: 900;
}

.landing-nav {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding:
    max(16px, calc(env(safe-area-inset-top, 0px) + 14px))
    max(18px, calc(env(safe-area-inset-right, 0px) + 20px))
    16px
    max(18px, calc(env(safe-area-inset-left, 0px) + 20px));
}

.brand-mark,
.landing-nav nav,
.landing-footer nav,
.hero-actions {
  display: flex;
  align-items: center;
}

.brand-mark {
  gap: 10px;
  color: #ffffff;
  text-decoration: none;
  text-shadow: 0 2px 10px rgba(7, 20, 33, 0.24);
}

.brand-mark img {
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(7, 20, 33, 0.16);
}

.brand-mark span {
  font-size: 1.05rem;
  font-weight: 950;
}

.landing-nav nav {
  gap: clamp(12px, 2vw, 24px);
}

.landing-nav nav a {
  color: #ffffff;
  text-decoration: none;
  text-shadow: 0 2px 10px rgba(7, 20, 33, 0.22);
}

.nav-action {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.landing-hero {
  position: relative;
  min-height: min(760px, 92vh);
  display: grid;
  align-items: center;
  padding:
    max(108px, calc(env(safe-area-inset-top, 0px) + 104px))
    max(20px, calc(env(safe-area-inset-right, 0px) + 28px))
    74px
    max(20px, calc(env(safe-area-inset-left, 0px) + 28px));
  overflow: hidden;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(7, 20, 33, 0.1) 0%, rgba(7, 20, 33, 0.62) 100%),
    linear-gradient(135deg, #14395d 0%, #1e6d74 48%, #f07c64 100%);
}

.landing-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 92px;
  background: linear-gradient(180deg, transparent 0%, #fffdf7 100%);
}

.hero-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-stars {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.95) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(255, 255, 255, 0.72) 0 1px, transparent 2px);
  background-position: 4% 18%, 12% 30%;
  background-size: 120px 120px, 78px 78px;
}

.hero-planet {
  position: absolute;
  right: clamp(26px, 10vw, 150px);
  top: clamp(106px, 18vw, 180px);
  width: clamp(88px, 13vw, 190px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.86), transparent 24%),
    linear-gradient(135deg, #ffc857 0%, #ff9d6f 100%);
  box-shadow: inset -20px -16px 0 rgba(126, 66, 72, 0.16), 0 24px 70px rgba(7, 20, 33, 0.26);
}

.hero-rocket {
  position: absolute;
  right: clamp(40px, 15vw, 250px);
  bottom: clamp(80px, 10vw, 132px);
  width: clamp(112px, 16vw, 220px);
  height: clamp(240px, 34vw, 430px);
  border: 8px solid #17324d;
  border-radius: 52% 52% 28px 28px;
  background: linear-gradient(180deg, #ffffff 0%, #dceef7 100%);
  box-shadow: 0 40px 90px rgba(7, 20, 33, 0.32);
  transform: rotate(8deg);
}

.hero-rocket::before {
  content: "";
  position: absolute;
  inset: -8px -8px auto -8px;
  height: 28%;
  border: 8px solid #17324d;
  border-radius: 90% 90% 20% 20%;
  background: #ff7a66;
}

.rocket-window {
  position: absolute;
  left: 50%;
  top: 36%;
  width: 38%;
  aspect-ratio: 1;
  border: 8px solid #17324d;
  border-radius: 50%;
  background: #83e6d8;
  transform: translateX(-50%);
}

.rocket-flame {
  position: absolute;
  left: 50%;
  bottom: -24%;
  width: 46%;
  height: 28%;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(180deg, #ffc857 0%, #ff7a66 100%);
  transform: translateX(-50%);
}

.phrase-orbit {
  position: absolute;
  display: inline-flex;
  align-items: center;
  min-height: 54px;
  padding: 0 18px;
  border: 3px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  color: #17324d;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 44px rgba(7, 20, 33, 0.18);
  font-weight: 950;
}

.orbit-one {
  right: clamp(176px, 30vw, 510px);
  bottom: clamp(310px, 36vw, 500px);
}

.orbit-two {
  right: clamp(18px, 7vw, 115px);
  bottom: clamp(338px, 32vw, 430px);
}

.orbit-three {
  right: clamp(190px, 28vw, 430px);
  bottom: clamp(116px, 14vw, 200px);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(690px, 100%);
}

.hero-copy .eyebrow,
.section-heading .eyebrow,
.waitlist-section .eyebrow {
  color: inherit;
}

.hero-copy h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(4.2rem, 13vw, 10rem);
  line-height: 0.86;
  text-shadow: 0 18px 48px rgba(7, 20, 33, 0.28);
}

.hero-lede {
  width: min(560px, 100%);
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.3rem, 2.7vw, 2.15rem);
  font-weight: 900;
  line-height: 1.08;
}

.hero-actions {
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.primary-link,
.secondary-link {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 950;
}

.primary-link {
  color: #17324d;
  background: #ffc857;
  box-shadow: 0 12px 28px rgba(7, 20, 33, 0.18);
}

.secondary-link {
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.status-band,
.landing-section,
.landing-footer {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.status-band {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: -38px;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.status-band div {
  min-height: 118px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 22px;
  background: #ffffff;
}

.status-band strong,
.status-band span {
  display: block;
}

.status-band strong {
  color: #17324d;
  font-size: 1.05rem;
  font-weight: 950;
}

.status-band span,
.plain-copy p,
.feature-grid p,
.waitlist-section p {
  color: #526d7e;
  font-weight: 780;
  line-height: 1.45;
}

.landing-section {
  padding: clamp(58px, 9vw, 110px) 0 0;
}

.section-heading {
  width: min(720px, 100%);
}

.section-heading h2,
.waitlist-section h2 {
  margin: 0;
  color: #17324d;
  font-size: clamp(2.2rem, 6vw, 5.3rem);
  line-height: 0.96;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.feature-grid article {
  min-height: 248px;
  padding: 22px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(19, 32, 43, 0.1);
}

.feature-icon {
  width: 54px;
  height: 54px;
  display: inline-grid;
  place-items: center;
  border-radius: 18px;
  color: #17324d;
  background: #d9f5ef;
  font-size: 1rem;
  font-weight: 950;
}

.feature-grid article:nth-child(2) .feature-icon {
  background: #ffe39b;
}

.feature-grid article:nth-child(3) .feature-icon {
  background: #ffdacf;
}

.feature-grid article:nth-child(4) .feature-icon {
  background: #d8e8ff;
}

.feature-grid h3 {
  margin: 20px 0 8px;
  color: #17324d;
  font-size: 1.25rem;
}

.feature-grid p,
.plain-copy p,
.waitlist-section p {
  margin: 0;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
  gap: clamp(26px, 6vw, 80px);
  align-items: start;
}

.plain-copy {
  display: grid;
  gap: 18px;
  padding-top: 10px;
}

.waitlist-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: clamp(54px, 9vw, 110px);
  margin-bottom: 42px;
  padding: clamp(28px, 5vw, 46px);
  border-radius: 8px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(19, 50, 77, 0.94), rgba(30, 109, 116, 0.92)),
    #17324d;
}

.waitlist-section h2 {
  color: #ffffff;
  font-size: clamp(2rem, 4.8vw, 4.3rem);
}

.waitlist-section p {
  width: min(640px, 100%);
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.82);
}

.waitlist-section .primary-link {
  flex: 0 0 auto;
}

.landing-footer {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid rgba(19, 50, 77, 0.14);
  color: #526d7e;
  font-weight: 900;
}

.landing-footer nav {
  gap: 18px;
}

.landing-footer a {
  color: #526d7e;
  text-decoration: none;
}

.game-shell {
  width: min(1120px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding:
    max(clamp(16px, 3vw, 36px), calc(env(safe-area-inset-top, 0px) + 14px))
    max(clamp(16px, 3vw, 36px), calc(env(safe-area-inset-right, 0px) + 16px))
    max(clamp(16px, 3vw, 36px), calc(env(safe-area-inset-bottom, 0px) + 16px))
    max(clamp(16px, 3vw, 36px), calc(env(safe-area-inset-left, 0px) + 16px));
  display: grid;
  grid-template-rows: auto auto auto minmax(260px, 36vh) auto;
  gap: clamp(10px, 1.6vw, 18px);
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.top-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.control-button {
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: #24384a;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 18px rgba(19, 32, 43, 0.1);
  font-size: 0.95rem;
  font-weight: 900;
  cursor: pointer;
}

.control-button[aria-pressed="true"] {
  background: #d9f5ef;
}

.progress-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(116px, 0.45fr) minmax(0, 1.35fr);
  gap: 10px;
}

.progress-card,
.sticker-shelf {
  min-height: 62px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 18px rgba(19, 32, 43, 0.09);
}

.progress-card {
  display: grid;
  align-content: center;
  gap: 2px;
}

.progress-card strong {
  color: #16324d;
  font-size: clamp(1rem, 1.7vw, 1.35rem);
  line-height: 1;
}

.progress-card span:last-child {
  color: #526d7e;
  font-size: 0.9rem;
  font-weight: 850;
}

.progress-kicker {
  color: #6b8493;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.progress-total {
  text-align: center;
}

.sticker-shelf {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}

.sticker {
  display: inline-grid;
  min-width: 68px;
  min-height: 40px;
  place-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  color: #16324d;
  background: #ffe39b;
  border: 3px solid rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 950;
  white-space: nowrap;
}

.sticker.is-empty {
  background: #d9f5ef;
}

.scene-nav {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(160px, 0.65fr);
  gap: 10px;
}

.scene-tab {
  min-height: 82px;
  border: 0;
  border-radius: 14px;
  color: #27445a;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 7px 16px rgba(19, 32, 43, 0.09);
  font-size: 0.92rem;
  font-weight: 950;
  cursor: pointer;
}

.level-card {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "number name"
    "goal goal"
    "state state";
  align-content: center;
  gap: 3px 8px;
  padding: 9px 10px;
  text-align: left;
}

.level-card.is-current {
  min-height: 96px;
}

.level-card.is-next {
  background: #d9f5ef;
}

.level-card.is-locked {
  color: #8aa0ad;
  background: rgba(255, 255, 255, 0.5);
  cursor: default;
}

.level-card.is-locked .level-number,
.level-card.is-locked .level-state {
  color: #617787;
  background: #edf2f4;
}

.level-number {
  grid-area: number;
  display: inline-grid;
  min-width: 26px;
  min-height: 24px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.72rem;
}

.level-name {
  grid-area: name;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.level-goal {
  grid-area: goal;
  color: #607888;
  font-size: 0.72rem;
  line-height: 1.05;
}

.level-state {
  grid-area: state;
  color: #2a6f64;
  font-size: 0.72rem;
  line-height: 1;
}

.scene-tab[aria-pressed="true"] {
  color: #ffffff;
  background: #16324d;
}

.scene-tab[aria-pressed="true"] .level-goal,
.scene-tab[aria-pressed="true"] .level-state {
  color: rgba(255, 255, 255, 0.82);
}

.scene-tab.is-complete:not([aria-pressed="true"]) {
  background: #d9f5ef;
}

.eyebrow {
  margin: 0 0 4px;
  font-size: clamp(0.8rem, 1.5vw, 0.95rem);
  font-weight: 800;
  color: #4d6b80;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 5.6vw, 4.2rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.info-shell {
  width: min(820px, calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0 80px;
}

.info-shell h1 {
  margin-bottom: 8px;
  font-size: clamp(2.6rem, 8vw, 4.8rem);
}

.info-shell h2 {
  margin: 0 0 8px;
  color: #17324d;
  font-size: clamp(1.25rem, 3vw, 1.7rem);
}

.info-shell section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 2px solid rgba(23, 50, 77, 0.12);
}

.info-shell p {
  margin: 0 0 12px;
  color: #3f5e73;
  font-size: clamp(1.02rem, 2.3vw, 1.2rem);
  font-weight: 700;
  line-height: 1.55;
}

.info-updated {
  color: #607888;
}

.launch-meter {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 26px rgba(19, 32, 43, 0.12);
}

.meter-dot {
  width: clamp(16px, 3vw, 28px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #dce7ef;
  border: 3px solid #ffffff;
}

.meter-dot.is-on {
  background: var(--gold);
}

.stage {
  min-height: 0;
}

.scene-art {
  position: relative;
  height: 100%;
  min-height: clamp(250px, 36vh, 390px);
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.scene-art.space {
  background:
    radial-gradient(circle at 25% 18%, rgba(255, 255, 255, 0.25), transparent 12%),
    linear-gradient(180deg, var(--space) 0%, var(--space-deep) 100%);
}

.scene-art.snack {
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.4), transparent 18%),
    linear-gradient(180deg, #f8dca1 0%, #f8b28a 100%);
}

.scene-art.train {
  background:
    radial-gradient(circle at 72% 20%, rgba(255, 255, 255, 0.44), transparent 15%),
    linear-gradient(180deg, #bfe9ff 0%, #d8f3d3 58%, #96d59b 100%);
}

.scene-art.bubbles {
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.5), transparent 16%),
    linear-gradient(180deg, #b7e7ff 0%, #e0f4ff 52%, #fff5cf 100%);
}

.planet {
  position: absolute;
  border-radius: 50%;
  opacity: 0.9;
}

.planet-one {
  width: clamp(72px, 13vw, 128px);
  aspect-ratio: 1;
  top: 12%;
  left: 10%;
  background: linear-gradient(135deg, #ffb46b, #ff6c7b);
}

.planet-two {
  width: clamp(48px, 8vw, 84px);
  aspect-ratio: 1;
  top: 18%;
  right: 13%;
  background: linear-gradient(135deg, #83e6d8, #67a7ff);
}

.star {
  position: absolute;
  width: 12px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 22px rgba(255, 255, 255, 0.8);
}

.star-one {
  top: 23%;
  left: 42%;
}

.star-two {
  top: 40%;
  right: 22%;
}

.star-three {
  top: 62%;
  left: 18%;
}

.rocket-wrap {
  position: absolute;
  left: 50%;
  bottom: 72px;
  width: clamp(86px, 13vw, 132px);
  height: clamp(176px, 24vw, 228px);
  transform: translateX(-50%);
  transition: transform 0.3s ease;
}

.rocket-wrap.pulse {
  animation: rocketPulse 0.58s ease;
}

.scene-art.pulse .snack-machine,
.scene-art.pulse .train-wrap,
.scene-art.pulse .bubble.big {
  animation: scenePulse 0.58s ease;
}

body[data-power="1"] .rocket-window {
  box-shadow: 0 0 0 8px rgba(131, 230, 216, 0.18);
}

body[data-power="2"] .rocket-window {
  box-shadow: 0 0 0 12px rgba(131, 230, 216, 0.2), 0 0 34px rgba(255, 200, 87, 0.3);
}

body[data-power="3"] .rocket-window {
  box-shadow: 0 0 0 14px rgba(131, 230, 216, 0.24), 0 0 46px rgba(255, 200, 87, 0.42);
}

.scene-art.is-launched .rocket-wrap {
  animation: blastoff 3s cubic-bezier(0.2, 0.72, 0.18, 1) forwards;
}

.rocket {
  position: relative;
  width: 100%;
  height: 100%;
}

.rocket-nose {
  width: 50%;
  height: 25%;
  margin: 0 auto;
  background: var(--coral);
  border-radius: 999px 999px 16px 16px;
}

.rocket-body {
  width: 62%;
  height: 56%;
  margin: -5% auto 0;
  border-radius: 26px;
  background: linear-gradient(90deg, #f7fbff, #dfeef7);
  border: 5px solid #ffffff;
  box-shadow: inset -12px 0 0 rgba(103, 167, 255, 0.16);
}

.rocket-window {
  width: 42%;
  aspect-ratio: 1;
  margin: 28% auto 0;
  border-radius: 50%;
  background: var(--aqua);
  border: 6px solid #2d4864;
}

.rocket-fin {
  position: absolute;
  bottom: 22%;
  width: 28%;
  height: 22%;
  background: var(--blue);
}

.rocket-fin.left {
  left: 7%;
  border-radius: 22px 4px 12px 22px;
  transform: rotate(-16deg);
}

.rocket-fin.right {
  right: 7%;
  border-radius: 4px 22px 22px 12px;
  transform: rotate(16deg);
}

.flame {
  width: 28%;
  height: 20%;
  margin: -1% auto 0;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(180deg, #fff6a5, var(--gold) 45%, var(--coral));
  animation: flame 0.16s infinite alternate;
}

.launch-pad {
  position: absolute;
  left: 50%;
  bottom: 42px;
  width: min(360px, 62vw);
  height: 38px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #64798a, #c8d6df, #64798a);
}

.snack-machine {
  position: absolute;
  left: 50%;
  bottom: 52px;
  width: clamp(160px, 24vw, 230px);
  height: clamp(220px, 34vw, 300px);
  border-radius: 34px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #fff8e8, #ffd06e);
  border: 8px solid #f36f5f;
  box-shadow: inset 0 -18px rgba(19, 32, 43, 0.08), 0 18px 30px rgba(19, 32, 43, 0.18);
}

.snack-window {
  width: 70%;
  height: 44%;
  margin: 24px auto 0;
  border-radius: 22px;
  background: #ffffff;
  border: 6px solid #22394d;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.snack-item,
.snack-prize {
  width: 52px;
  aspect-ratio: 1;
  border-radius: 16px;
  background: linear-gradient(135deg, #ff8b6b, #ffcf5b);
}

.snack-item.two {
  background: linear-gradient(135deg, #76dba7, #69a8ff);
}

.snack-slot {
  width: 58%;
  height: 22px;
  margin: 34px auto 0;
  border-radius: 999px;
  background: #22394d;
}

.snack-prize {
  position: absolute;
  left: 50%;
  bottom: 28px;
  opacity: 0;
  transform: translateX(-50%) translateY(-40px);
}

.scene-art.is-opened .snack-prize {
  animation: snackDrop 1.2s ease forwards;
}

.track {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 86px;
  height: 18px;
  border-radius: 999px;
  background: #6f7f89;
  box-shadow: 0 18px 0 #54646f;
}

.train-wrap {
  position: absolute;
  left: 16%;
  bottom: 118px;
  width: min(520px, 70%);
  height: 120px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.train-engine,
.train-car {
  position: relative;
  height: 92px;
  border-radius: 24px 24px 12px 12px;
  background: #ff7466;
  border: 6px solid #ffffff;
  box-shadow: 0 14px 22px rgba(19, 32, 43, 0.16);
}

.train-engine {
  width: 150px;
}

.train-car {
  width: 130px;
  background: #67a7ff;
}

.train-car.two {
  background: #ffc857;
}

.train-window {
  width: 48px;
  aspect-ratio: 1;
  margin: 18px auto;
  border-radius: 50%;
  background: var(--aqua);
  border: 5px solid #22394d;
}

.station-dot {
  position: absolute;
  bottom: 142px;
  width: 34px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #ffffff;
  border: 8px solid #2a6f64;
}

.station-dot.left {
  left: 10%;
}

.station-dot.right {
  right: 10%;
}

.scene-art.is-driving .train-wrap {
  animation: trainDrive 2.3s ease forwards;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff, rgba(131, 230, 216, 0.45) 35%, rgba(103, 167, 255, 0.42));
  border: 4px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 28px rgba(19, 32, 43, 0.12);
}

.bubble.big {
  width: clamp(130px, 18vw, 210px);
  aspect-ratio: 1;
  left: 42%;
  top: 24%;
}

.bubble.mid {
  width: clamp(82px, 11vw, 126px);
  aspect-ratio: 1;
  left: 22%;
  top: 38%;
}

.bubble.small {
  width: clamp(68px, 8vw, 96px);
  aspect-ratio: 1;
  right: 24%;
  top: 32%;
}

.bubble.tiny {
  width: 46px;
  aspect-ratio: 1;
  right: 18%;
  bottom: 24%;
}

.bubble.wand {
  width: 120px;
  height: 18px;
  border-radius: 999px;
  left: 45%;
  bottom: 70px;
  transform: rotate(-16deg);
  background: #ffc857;
}

.scene-art.is-popping .bubble:not(.wand) {
  animation: bubblePopAway 1.1s ease forwards;
}

.phrase-bubble {
  position: absolute;
  left: 50%;
  top: 18px;
  z-index: 2;
  min-width: 160px;
  max-width: min(360px, 80%);
  padding: 12px 18px;
  border-radius: 999px;
  color: #16324d;
  background: rgba(255, 255, 255, 0.98);
  border: 3px solid rgba(131, 230, 216, 0.42);
  box-shadow: 0 12px 28px rgba(19, 32, 43, 0.18);
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  font-weight: 950;
  text-align: center;
  transform: translateX(-50%);
}

.phrase-bubble.pop {
  animation: bubblePop 0.42s ease;
}

.power-burst {
  position: absolute;
  left: 50%;
  bottom: 56%;
  width: 18px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
  transform: translateX(-50%) scale(0.6);
}

body[data-power="1"] .power-one,
body[data-power="2"] .power-one,
body[data-power="2"] .power-two,
body[data-power="3"] .power-one,
body[data-power="3"] .power-two,
body[data-power="3"] .power-three {
  opacity: 1;
}

.power-one {
  margin-left: -74px;
}

.power-two {
  margin-left: 74px;
  bottom: 50%;
  background: var(--aqua);
}

.power-three {
  bottom: 66%;
  background: var(--coral);
}

.phrase-panel {
  display: grid;
  gap: 10px;
}

.prompt {
  min-height: 1.4em;
  margin: 0;
  color: #3f5e73;
  font-size: clamp(1.05rem, 2.6vw, 1.45rem);
  font-weight: 800;
}

.phrase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.8vw, 16px);
}

.regulation-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 1.5vw, 12px);
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.launch-button,
.again-button,
.next-button {
  min-height: 64px;
  min-width: min(320px, 100%);
  flex: 1 1 220px;
  padding: 12px 26px;
  border: 0;
  border-radius: 20px;
  color: #ffffff;
  background: #16324d;
  box-shadow: 0 9px 0 rgba(19, 32, 43, 0.22), 0 18px 28px rgba(19, 32, 43, 0.14);
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 950;
  cursor: pointer;
}

.again-button {
  background: #2a6f64;
}

.next-button {
  background: #3a6ca8;
}

.phrase-button {
  min-height: clamp(70px, 8vw, 94px);
  padding: 12px 10px;
  border: 0;
  border-radius: 22px;
  color: var(--ink);
  font-size: clamp(0.95rem, 2vw, 1.35rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: 0;
  box-shadow: 0 10px 0 rgba(19, 32, 43, 0.18), 0 18px 28px rgba(19, 32, 43, 0.13);
  cursor: pointer;
  touch-action: manipulation;
  transform: translateY(0);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
  display: grid;
  place-items: center;
  gap: 6px;
}

.regulation-button {
  min-height: 58px;
  border-radius: 18px;
  font-size: clamp(0.9rem, 1.55vw, 1.1rem);
  box-shadow: 0 6px 0 rgba(19, 32, 43, 0.13), 0 12px 20px rgba(19, 32, 43, 0.1);
}

.phrase-icon {
  display: grid;
  place-items: center;
  min-width: 46px;
  min-height: 30px;
  padding: 4px 8px;
  border-radius: 999px;
  color: rgba(19, 32, 43, 0.86);
  background: rgba(255, 255, 255, 0.58);
  font-size: clamp(0.72rem, 1.5vw, 0.9rem);
  font-weight: 950;
}

.phrase-label {
  display: block;
}

.phrase-button:hover,
.phrase-button:focus-visible {
  transform: translateY(-3px);
  filter: saturate(1.04);
}

.phrase-button:focus-visible {
  outline: 4px solid #162a3f;
  outline-offset: 4px;
}

.phrase-button.is-active,
.phrase-button:active {
  transform: translateY(7px);
  box-shadow: 0 3px 0 rgba(19, 32, 43, 0.2), 0 8px 16px rgba(19, 32, 43, 0.16);
}

.phrase-button.is-remix {
  border: 4px solid rgba(255, 255, 255, 0.72);
  min-height: 70px;
  max-width: 240px;
}

.phrase-button.is-waiting {
  filter: saturate(0.62);
  opacity: 0.62;
  box-shadow: 0 5px 0 rgba(19, 32, 43, 0.12), 0 10px 18px rgba(19, 32, 43, 0.08);
}

.phrase-wait {
  display: block;
  color: rgba(19, 32, 43, 0.72);
  font-size: 0.72rem;
  font-weight: 950;
}

.remix-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding-top: 2px;
}

.remix-intro {
  color: #4d6b80;
  font-size: 1rem;
  font-weight: 900;
}

.tone-coral {
  background: var(--coral);
}

.tone-mint {
  background: var(--mint);
}

.tone-blue {
  background: var(--blue);
}

.tone-gold {
  background: var(--gold);
}

.tone-pink {
  background: var(--pink);
}

.tone-soft-blue {
  background: #b8dbff;
}

.tone-soft-coral {
  background: #ffc3b8;
}

.tone-soft-mint {
  background: #bcebd0;
}

.tone-soft-gold {
  background: #ffe39b;
}

@keyframes rocketPulse {
  0%,
  100% {
    transform: translateX(-50%) translateY(0) rotate(0);
  }
  35% {
    transform: translateX(-50%) translateY(-16px) rotate(-2deg);
  }
  70% {
    transform: translateX(-50%) translateY(-8px) rotate(2deg);
  }
}

@keyframes scenePulse {
  0%,
  100% {
    transform: translateX(-50%) translateY(0) scale(1);
  }
  45% {
    transform: translateX(-50%) translateY(-10px) scale(1.03);
  }
}

@keyframes blastoff {
  0% {
    transform: translateX(-50%) translateY(0) scale(1);
  }
  28% {
    transform: translateX(-50%) translateY(-44px) scale(1.04);
  }
  100% {
    transform: translateX(-50%) translateY(-760px) scale(0.72);
  }
}

@keyframes snackDrop {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(-48px) scale(0.86);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

@keyframes trainDrive {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(min(280px, 34vw));
  }
}

@keyframes bubblePopAway {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.24);
  }
}

@keyframes flame {
  from {
    transform: scaleY(0.78);
  }
  to {
    transform: scaleY(1.12);
  }
}

@keyframes bubblePop {
  0% {
    transform: translateX(-50%) translateY(3px) scale(0.98);
  }
  100% {
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

.quiet-mode .star {
  box-shadow: none;
}

.quiet-mode .scene-art.space {
  background: linear-gradient(180deg, #1d344f 0%, #102136 100%);
  box-shadow: 0 14px 28px rgba(20, 31, 43, 0.12);
}

.quiet-mode .flame,
.quiet-mode .scene-art.pulse .rocket-wrap,
.quiet-mode .scene-art.is-launched .rocket-wrap,
.quiet-mode .scene-art.is-driving .train-wrap,
.quiet-mode .scene-art.is-opened .snack-prize,
.quiet-mode .scene-art.is-popping .bubble,
.quiet-mode .phrase-bubble.pop {
  animation-duration: 0.01ms;
  animation-iteration-count: 1;
}

.quiet-mode .phrase-button,
.quiet-mode .launch-button,
.quiet-mode .again-button,
.quiet-mode .next-button {
  box-shadow: 0 5px 0 rgba(19, 32, 43, 0.14);
}

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

@media (max-width: 760px) {
  .landing-nav {
    align-items: flex-start;
  }

  .landing-nav nav {
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .landing-nav nav a {
    font-size: 0.9rem;
  }

  .brand-mark span {
    display: none;
  }

  .landing-hero {
    min-height: 860px;
    align-items: start;
    padding:
      max(104px, calc(env(safe-area-inset-top, 0px) + 98px))
      max(18px, calc(env(safe-area-inset-right, 0px) + 18px))
      74px
      max(18px, calc(env(safe-area-inset-left, 0px) + 18px));
  }

  .hero-copy {
    max-width: 100%;
    overflow: hidden;
  }

  .hero-copy h1 {
    font-size: clamp(3.25rem, 13vw, 4rem);
  }

  .hero-lede {
    width: 100%;
    font-size: 1.22rem;
  }

  .hero-rocket {
    right: 50%;
    bottom: 120px;
    width: 132px;
    height: 260px;
    transform: translateX(50%) rotate(6deg);
  }

  .hero-planet {
    top: auto;
    right: 22px;
    bottom: 326px;
    width: 92px;
  }

  .phrase-orbit {
    min-height: 44px;
    padding: 0 13px;
    font-size: 0.86rem;
  }

  .orbit-one {
    left: 18px;
    right: auto;
    bottom: 390px;
  }

  .orbit-two {
    right: 16px;
    bottom: 252px;
  }

  .orbit-three {
    left: 36px;
    right: auto;
    bottom: 96px;
  }

  .status-band {
    grid-template-columns: 1fr;
  }

  .status-band div {
    min-height: 96px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid article {
    min-height: 0;
  }

  .split-section,
  .waitlist-section {
    display: grid;
    grid-template-columns: 1fr;
  }

  .waitlist-section .primary-link {
    width: 100%;
  }

  .landing-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 22px 0;
  }

  .game-shell {
    padding-top: max(22px, calc(env(safe-area-inset-top, 0px) + 48px));
    grid-template-rows: auto auto auto minmax(280px, 38vh) auto;
    gap: 12px;
  }

  .top-bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .top-controls {
    width: 100%;
    justify-content: space-between;
  }

  h1 {
    font-size: clamp(2.45rem, 13vw, 3.6rem);
    line-height: 0.95;
  }

  .eyebrow {
    font-size: 0.88rem;
  }

  .launch-meter {
    gap: 5px;
    padding: 7px;
  }

  .progress-strip {
    grid-template-columns: 1fr 0.75fr;
  }

  .sticker-shelf {
    grid-column: 1 / -1;
    min-height: 54px;
  }

  .scene-nav {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .scene-tab {
    min-height: 68px;
  }

  .level-card.is-locked {
    min-height: 54px;
  }

  .scene-art {
    min-height: 300px;
    border-radius: 22px;
  }

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

  .regulation-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .phrase-button {
    min-height: 82px;
    border-radius: 18px;
  }
}

@media (max-height: 760px) and (min-width: 761px) {
  .game-shell {
    padding-top: 18px;
    padding-bottom: 18px;
    grid-template-rows: auto auto auto minmax(200px, 27vh) auto;
    gap: 10px;
  }

  h1 {
    font-size: clamp(2rem, 5vw, 3.7rem);
  }

  .eyebrow {
    margin-bottom: 0;
  }

  .scene-art {
    min-height: 210px;
    border-radius: 22px;
  }

  .rocket-wrap {
    bottom: 54px;
    width: 92px;
    height: 178px;
  }

  .phrase-bubble {
    top: 12px;
    padding: 8px 14px;
    font-size: 1rem;
  }

  .scene-nav {
    gap: 8px;
  }

  .scene-tab {
    min-height: 60px;
  }

  .progress-card,
  .sticker-shelf {
    min-height: 52px;
    padding: 8px 10px;
  }

  .level-card {
    padding: 7px 8px;
  }

  .launch-pad {
    bottom: 30px;
    height: 28px;
  }

  .planet-one {
    width: 86px;
  }

  .planet-two {
    width: 60px;
  }

  .snack-machine {
    bottom: 36px;
    width: 150px;
    height: 202px;
  }

  .train-wrap {
    bottom: 92px;
    height: 92px;
    transform-origin: left center;
    scale: 0.74;
  }

  .track {
    bottom: 68px;
  }

  .station-dot {
    bottom: 108px;
  }

  .phrase-panel {
    gap: 8px;
  }

  .prompt {
    font-size: 1.05rem;
  }

  .phrase-button {
    min-height: 62px;
    border-radius: 16px;
  }

  .regulation-button {
    min-height: 50px;
  }

  .phrase-icon {
    min-height: 24px;
    padding: 2px 8px;
  }
}

@media (max-width: 420px) {
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .primary-link,
  .secondary-link {
    width: 100%;
  }

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

  .phrase-grid {
    grid-template-columns: 1fr;
  }

  .regulation-row {
    grid-template-columns: 1fr 1fr;
  }
}
