@font-face {
  font-family: "Lilita One";
  src: url("fonts/LilitaOne-Regular.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("fonts/Nunito-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("fonts/Nunito-Black.woff2") format("woff2");
  font-weight: 900;
  font-display: swap;
}

:root {
  --violet: #5d3df9;
  --violet-lip: #3a22b8;
  --orange: #ff9500;
  --orange-lip: #c76a00;
  --butter: #ffd640;
  --butter-lip: #d9ad12;
  --sky: #cfe8f7;
  --pink: #ff5c8a;
  --green: #34c759;
  --green-lip: #1f8a3a;
  --ink: #2b2340;
  --ink-soft: #5b5470;
  --white: #ffffff;
  --line: #e9e4f2;
  --display: "Lilita One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --step--1: clamp(0.92rem, 0.88rem + 0.2vw, 1rem);
  --step-0: clamp(1.05rem, 1rem + 0.25vw, 1.2rem);
  --step-1: clamp(1.3rem, 1.15rem + 0.6vw, 1.6rem);
  --step-2: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem);
  --step-3: clamp(2.6rem, 1.8rem + 3.4vw, 4.6rem);
  --step-4: clamp(3.2rem, 2rem + 5.4vw, 6.6rem);
  --wrap: min(1180px, 100% - 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-weight: 800;
  font-size: var(--step-0);
  line-height: 1.55;
  color: var(--ink);
  background: var(--orange);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.02; margin: 0; letter-spacing: 0.005em; }
p { margin: 0; }
.wrap { width: var(--wrap); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; z-index: 99; background: var(--white); padding: 0.6rem 1rem; border-radius: 12px; }
:focus-visible { outline: 4px solid var(--ink); outline-offset: 4px; border-radius: 14px; }

.btn {
  --bg: var(--green);
  --lip: var(--green-lip);
  --fg: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.6rem;
  padding: 0.7rem 1.6rem 0.8rem;
  font-family: var(--display);
  font-size: var(--step-1);
  color: var(--fg);
  text-decoration: none;
  background: var(--bg);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 7px 0 var(--lip);
  cursor: pointer;
  transform: translateY(0);
  transition: transform 90ms ease, box-shadow 90ms ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 9px 0 var(--lip); }
.btn:active { transform: translateY(6px); box-shadow: 0 1px 0 var(--lip); }
.btn img { width: 1.6em; height: 1.6em; }
.btn--white { --bg: var(--white); --lip: #d6cfe3; --fg: var(--ink); }
.btn--violet { --bg: var(--violet); --lip: var(--violet-lip); }
.btn--butter { --bg: var(--butter); --lip: var(--butter-lip); --fg: var(--ink); }
.btn--soon { --bg: var(--white); --lip: #d6cfe3; --fg: var(--ink-soft); cursor: default; }
.btn--soon:hover, .btn--soon:active { transform: none; box-shadow: 0 7px 0 var(--lip); }
.btn--soon small { font-family: var(--body); font-size: 0.62em; font-weight: 900; color: var(--violet); }

.topbar { background: var(--violet); color: var(--white); position: relative; z-index: 5; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.6rem; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; font-family: var(--display); font-size: var(--step-1); }
.brand img { width: 2.3rem; image-rendering: pixelated; }
.nav { display: flex; gap: 0.4rem; }
.nav a { text-decoration: none; padding: 0.4rem 0.9rem; border-radius: 999px; font-weight: 900; }
.nav a:hover { background: var(--violet-lip); }

.hero { background: var(--orange); position: relative; overflow: hidden; padding: clamp(2rem, 5vw, 4.5rem) 0 0; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: end; }
.hero h1 { font-size: var(--step-4); color: var(--white); text-shadow: 0 6px 0 var(--orange-lip); max-width: 11ch; }
.hero__copy { padding-bottom: clamp(2rem, 6vw, 6rem); align-self: center; }
.hero__lede { margin-top: 1.4rem; font-size: var(--step-1); line-height: 1.4; color: var(--ink); max-width: 30ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem 1.2rem; margin-top: 2rem; }
.hero.shake { animation: shake 520ms cubic-bezier(.36,.07,.19,.97); }
@keyframes shake {
  10%, 90% { transform: translate(-2px, 1px); }
  20%, 80% { transform: translate(5px, -3px); }
  30%, 50%, 70% { transform: translate(-9px, 4px); }
  40%, 60% { transform: translate(9px, -2px); }
}

.stage-col { width: 100%; max-width: 620px; justify-self: end; }
.stage { position: relative; aspect-ratio: 1 / 1.02; width: 100%; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.stage__hud { position: absolute; left: 50%; top: 3%; transform: translateX(-50%); z-index: 4; display: flex; align-items: center; gap: 0.7rem; background: var(--white); border-radius: 999px; padding: 0.45rem 1.2rem 0.45rem 0.45rem; box-shadow: 0 6px 0 var(--orange-lip); width: min(88%, 380px); }
.stage__hud img { width: 2.9rem; height: 2.9rem; border-radius: 50%; background: var(--sky); object-fit: contain; padding: 0.15rem; }
.stage__meta { flex: 1; min-width: 0; }
.stage__name { font-family: var(--display); font-size: 1.25rem; line-height: 1.1; display: flex; justify-content: space-between; gap: 0.5rem; }
.stage__name span { font-family: var(--body); font-size: 0.8rem; color: var(--ink-soft); align-self: center; white-space: nowrap; }
.bar { height: 0.85rem; border-radius: 999px; background: var(--line); margin-top: 0.3rem; overflow: hidden; }
.bar i { display: block; height: 100%; width: 4%; background: var(--green); border-radius: 999px; transition: width 260ms cubic-bezier(.2,.9,.3,1.3); }

.kaiju { position: absolute; left: 50%; bottom: 17%; width: 60%; transform-origin: 50% 100%; transform: translateX(-50%) scale(var(--grow, 1)); transition: transform 320ms cubic-bezier(.2,.9,.3,1.4); z-index: 2; }
.kaiju img { width: 100%; transform-origin: 50% 90%; }
.kaiju.chomp img { animation: chomp 260ms ease; }
@keyframes chomp { 35% { transform: scale(1.1, 0.88); } 70% { transform: scale(0.95, 1.06); } }
.kaiju.idle img { animation: breathe 2.8s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.02, 0.98); } }

.city { position: absolute; left: 0; right: 0; bottom: 6%; height: 30%; display: flex; align-items: flex-end; justify-content: center; gap: 2%; z-index: 3; pointer-events: none; }
.bldg { position: relative; flex: 0 0 9%; min-width: 0; overflow: hidden; border: 4px solid var(--ink); border-bottom: 0; border-radius: 10px 10px 0 0; background: var(--white); transform-origin: 50% 100%; transition: transform 380ms cubic-bezier(.2,.9,.3,1.4); display: grid; grid-template-columns: repeat(2, 1fr); align-content: start; gap: 6px; padding: 9px 8px; }
.bldg i { aspect-ratio: 1; background: var(--sky); border-radius: 3px; }
.bldg.flat { transform: scaleY(0.12); transition: transform 160ms cubic-bezier(.6,0,.9,.4); }
.ground { position: absolute; left: -10%; right: -10%; bottom: 0; height: 6.4%; background: var(--butter); border-top: 4px solid var(--ink); z-index: 3; }

.tray { position: relative; z-index: 5; display: flex; justify-content: center; gap: 0.9rem clamp(0.4rem, 1.5vw, 0.9rem); padding: 1.1rem 0 1.4rem; flex-wrap: wrap; }
.food { width: clamp(3.6rem, 9vw, 4.8rem); aspect-ratio: 1; border-radius: 50%; border: 0; background: var(--white); box-shadow: 0 6px 0 var(--orange-lip); padding: 0.55rem; cursor: pointer; transition: transform 90ms ease, box-shadow 90ms ease; }
.food:hover { transform: translateY(-3px) rotate(-6deg); }
.food:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--orange-lip); }
.food img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.tray__hint { order: 2; flex: 0 0 100%; text-align: center; font-weight: 900; font-size: var(--step--1); color: var(--ink); transition: opacity 300ms ease; }
.flyer { position: fixed; z-index: 60; width: 4rem; height: 4rem; pointer-events: none; will-change: transform; }
.plus { position: absolute; z-index: 6; font-family: var(--display); font-size: 1.6rem; color: var(--white); text-shadow: 0 3px 0 var(--ink); pointer-events: none; }
.confetti { position: absolute; z-index: 7; pointer-events: none; border-radius: 3px; }
.dust { position: absolute; z-index: 6; pointer-events: none; border-radius: 50%; background: var(--white); border: 3px solid var(--ink); }

.result { position: absolute; z-index: 8; left: 50%; top: 50%; width: min(92%, 400px); background: var(--white); border-radius: 28px; box-shadow: 0 10px 0 var(--orange-lip); padding: 1.6rem 1.5rem 1.7rem; text-align: center; transform: translate(-50%, -50%) scale(0.6); opacity: 0; visibility: hidden; transition: transform 380ms cubic-bezier(.2,.9,.3,1.4), opacity 200ms ease, visibility 0s 380ms; }
.result.show { transform: translate(-50%, -50%) scale(1); opacity: 1; visibility: visible; transition: transform 380ms cubic-bezier(.2,.9,.3,1.4), opacity 200ms ease; }
.result h2 { font-size: var(--step-2); }
.result p { margin: 0.7rem auto 1.3rem; color: var(--ink-soft); max-width: 30ch; }
.result .btn { width: 100%; }
.result .btn + .btn { margin-top: 1rem; }

.game { background: var(--sky); padding: clamp(4rem, 9vw, 7.5rem) 0; position: relative; }
.game .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.game__title { display: flex; align-items: center; gap: 1.2rem; }
.game__title img { width: clamp(4.5rem, 9vw, 6.5rem); border-radius: 24%; box-shadow: 0 7px 0 #9fc4dc; }
.game h2 { font-size: var(--step-3); }
.game__pitch { margin-top: 1.4rem; font-size: var(--step-1); line-height: 1.45; max-width: 34ch; }
.perks { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; max-width: 40ch; }
.perks li { display: grid; grid-template-columns: 3rem 1fr; gap: 0.9rem; align-items: center; }
.perks img { width: 3rem; height: 3rem; object-fit: contain; }
.stores { display: flex; flex-wrap: wrap; gap: 1.1rem; margin-top: 2.4rem; }

.phones { position: relative; height: clamp(460px, 52vw, 640px); }
.phone { position: absolute; top: 50%; left: 50%; width: clamp(180px, 20vw, 250px); aspect-ratio: 1290 / 2796; border-radius: 34px; border: 9px solid var(--ink); background: var(--ink); overflow: hidden; box-shadow: 0 12px 0 #9fc4dc; cursor: pointer; padding: 0; transition: transform 420ms cubic-bezier(.2,.9,.3,1.25), z-index 0s; }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 24px; }
.phone[data-pos="0"] { transform: translate(-50%, -50%) rotate(0deg); z-index: 3; }
.phone[data-pos="1"] { transform: translate(-112%, -46%) rotate(-9deg); z-index: 2; }
.phone[data-pos="2"] { transform: translate(12%, -46%) rotate(9deg); z-index: 1; }

.roster { background: var(--butter); padding: clamp(4rem, 9vw, 7rem) 0; }
.roster__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem 3rem; }
.roster h2 { font-size: var(--step-3); }
.roster__head p { max-width: 38ch; font-size: var(--step-1); line-height: 1.4; }
.grid { list-style: none; margin: 3rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(8.6rem, 1fr)); gap: 1.4rem 1rem; }
.mon { position: relative; width: 100%; background: none; border: 0; padding: 0; cursor: pointer; text-align: center; font: inherit; color: inherit; }
.mon__face { display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; background: var(--white); box-shadow: 0 7px 0 var(--butter-lip); padding: 14%; transition: transform 120ms ease; }
.mon:hover .mon__face { transform: translateY(-4px) rotate(-3deg); }
.mon img { width: 100%; height: 100%; object-fit: contain; }
.mon__name { display: block; margin-top: 0.8rem; font-family: var(--display); font-size: 1.15rem; line-height: 1.1; }
.mon.boing .mon__face { animation: boing 520ms cubic-bezier(.2,.9,.3,1.4); }
@keyframes boing { 20% { transform: scale(1.18, 0.82); } 45% { transform: translateY(-18px) scale(0.92, 1.1); } 70% { transform: scale(1.05, 0.95); } }
.bubble { position: absolute; left: 50%; top: -0.6rem; transform: translate(-50%, -100%) scale(0.5); opacity: 0; background: var(--ink); color: var(--white); font-weight: 900; font-size: 0.92rem; line-height: 1.2; padding: 0.5rem 0.8rem; border-radius: 14px; white-space: nowrap; pointer-events: none; transition: transform 240ms cubic-bezier(.2,.9,.3,1.5), opacity 160ms ease; z-index: 4; }
.bubble::after { content: ""; position: absolute; left: 50%; bottom: -7px; transform: translateX(-50%); border: 8px solid transparent; border-top-color: var(--ink); border-bottom: 0; }
.mon.talk .bubble { transform: translate(-50%, -100%) scale(1); opacity: 1; }

.studio { background: var(--violet); color: var(--white); padding: clamp(4rem, 9vw, 7rem) 0; }
.studio .wrap { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.studio__mark { width: clamp(150px, 22vw, 260px); image-rendering: pixelated; }
.studio h2 { font-size: var(--step-3); }
.studio p { margin-top: 1.2rem; font-size: var(--step-1); line-height: 1.45; max-width: 40ch; }
.studio .btn { margin-top: 2rem; }
.studio__mail { display: block; margin-top: 1.2rem; font-weight: 900; color: #d9d0ff; }

.foot { background: var(--ink); color: #cfc9dd; padding: 2.2rem 0 2.6rem; font-size: var(--step--1); }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--white); text-decoration: underline; }

.doc { background: var(--white); padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(4rem, 8vw, 6rem); }
.doc__inner { width: min(70ch, 100% - 2.5rem); margin-inline: auto; }
.doc__badge { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.6rem; }
.doc__badge img { width: 4rem; border-radius: 24%; }
.doc h1 { font-size: clamp(1.7rem, 0.9rem + 2.6vw, 2.8rem); white-space: nowrap; }
.doc .updated { margin-top: 0.6rem; color: var(--ink-soft); }
.doc h2 { font-size: var(--step-2); margin: 2.8rem 0 0.8rem; }
.doc p, .doc li { font-weight: 800; color: #3d3654; line-height: 1.65; }
.doc p + p { margin-top: 1rem; }
.doc ul { padding-left: 1.3rem; margin: 0.8rem 0; }
.doc li + li { margin-top: 0.45rem; }
.doc a { color: var(--violet); font-weight: 900; }
.doc table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: var(--step--1); }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 0.7rem 0.8rem; border-bottom: 2px solid var(--line); }
.doc th { font-family: var(--display); font-weight: 400; font-size: 1.05rem; }
.doc__summary { background: var(--sky); border-radius: 22px; padding: 1.3rem 1.5rem; margin-top: 2rem; }
.doc__summary ul { margin: 0.6rem 0 0; }

.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; background: var(--orange); padding: 3rem 1.25rem; }
.lost img { width: 220px; margin: 0 auto 1.4rem; }
.lost h1 { font-size: var(--step-3); color: var(--white); text-shadow: 0 5px 0 var(--orange-lip); }
.lost p { margin: 1rem auto 2rem; font-size: var(--step-1); max-width: 30ch; }

@media (max-width: 900px) {
  .hero .wrap, .game .wrap, .studio .wrap { grid-template-columns: 1fr; }
  .hero__copy { padding-bottom: 0; }
  .hero h1 { max-width: 13ch; }
  .stage-col { justify-self: center; }
  .phones { height: clamp(430px, 110vw, 600px); }
  .phone { width: clamp(150px, 40vw, 230px); }
  .studio__mark { width: 140px; }
  .doc__badge { flex-direction: column; align-items: flex-start; }
  .doc h1 { white-space: normal; font-size: var(--step-2); }
}
@media (max-width: 560px) {
  .nav a:not(:first-child) { display: none; }
  .hero__actions .btn { flex: 1 1 100%; }
  .stores .btn { flex: 1 1 100%; }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 1.2rem 0.8rem; }
  .tray { gap: 0.8rem 0.45rem; }
  .food { width: min(12.6vw, 3.4rem); padding: 0.42rem; }
  .stage__hud { top: 1%; }
  .mon__name { font-size: 0.98rem; }
  .bldg { border-width: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}
