/* 2NewGames. A playful, game-forward frame. Each game keeps its own palette and shape. */

@font-face {
  font-family: 'Fredoka';
  src: url('/assets/fonts/fredoka-latin.woff2') format('woff2');
  font-weight: 300 700;
  font-stretch: 75% 125%;
  font-display: swap;
}

:root {
  --ink: #221b4a;
  --ink-soft: #3c3566;
  --muted: #554e78;
  --paper: #f4f0ff;
  --sheet: #fffbff;
  --cream: #fff8ee;
  --line: rgb(34 27 74 / 0.14);
  --sun: #ffe14d;
  --pop: #e11d62;
  --sky: #2f7dff;
  --focus: var(--ink);
  --run-cream: #fff1d6;
  --run-coral: #e9543a;
  --run-coral-deep: #ab361d;
  --run-teal: #12b2bf;
  --jump-vault: #1a120c;
  --jump-stone: #e4cba5;
  --jump-gold: #ffc53d;
  --bats-day: #f4efdf;
  --bats-dusk: #3b2a6b;
  --bats-night: #221a3b;
  --bats-violet: #8a5cd0;
  --font: 'Fredoka', ui-rounded, 'Trebuchet MS', 'Segoe UI', sans-serif;
  --pad: clamp(20px, 4.4vw, 64px);
  --max: 1440px;
  --header-h: 72px;
  --radius: 22px;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 500;
  font-stretch: 100%;
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
main:focus, [tabindex='-1']:focus { outline: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
::selection { background: var(--sun); color: var(--ink); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 100; padding: 12px 18px;
  background: var(--sun); color: var(--ink); font-weight: 650; border-radius: 14px;
  text-decoration: none; border: 2px solid var(--ink);
}
.skip-link:focus { top: 12px; }

.icon { width: 1.1em; height: 1.1em; flex: none; }
.shape { flex: none; }
.shape--house { fill: var(--run-coral); }
.shape--circle { fill: var(--jump-gold); }
.shape--arch { fill: var(--bats-violet); }

.hero__title, .feature__title, .game-hero__title, .page-hero__title, .studio__title,
.worlds-band__title, .closing__title, .not-found__title, .section-title, .world__title,
.game-row__title, .menu__game-title, .experience__title {
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 0.98;
  text-wrap: balance;
}
.eyebrow, .section-kicker, .feature__kicker, .chip, .stage-caption, .site-footer__heading,
.menu__heading, .facts dt, .status-card__label, .world__index, .game-row__index, .experience__index {
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: 16px; border: 2px solid var(--ink);
  font-size: 1rem; font-weight: 650; line-height: 1.1; text-decoration: none; cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out);
}
.button .icon { width: 18px; height: 18px; }
.button--primary { background: var(--sun); color: var(--ink); }
.button--ghost { background: transparent; color: var(--ink); box-shadow: none; }
.button:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.button--ghost:hover { background: var(--sheet); }
.button:active { transform: translate(1px, 1px); box-shadow: 0 0 0 var(--ink); }

.text-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 0;
  font-weight: 650; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px;
}
.text-link .icon { width: 18px; height: 18px; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--ink); color: var(--cream);
  border-bottom: 4px solid var(--sun);
}
.site-header :focus-visible { outline-color: var(--sun); }
.site-header__inner {
  max-width: var(--max); height: var(--header-h); margin: 0 auto; padding: 0 var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.wordmark { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; border-radius: 8px; }
.wordmark__svg { height: 36px; width: auto; }
.wordmark__descriptor {
  padding-left: 12px; border-left: 2px solid rgb(255 248 238 / 0.35);
  font-size: 0.72rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase;
}
.site-nav { display: none; }
.site-nav__list { display: flex; align-items: center; gap: 6px; }
.site-nav__link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 14px;
  font-weight: 650; text-decoration: none; color: var(--cream);
}
.site-nav__link:hover, .site-nav__link.is-active, .site-nav__link[aria-current='page'] {
  background: var(--sun); color: var(--ink);
}
.menu-button, .menu__close {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border: 2px solid currentColor; border-radius: 14px; background: transparent;
  font-weight: 650; cursor: pointer;
}
.menu-button .icon, .menu__close .icon { width: 18px; height: 18px; }
.menu-button:hover { background: var(--sun); color: var(--ink); border-color: var(--sun); }
@media (min-width: 900px) {
  .site-nav { display: block; }
  .menu-button { display: none; }
}
@media (max-width: 640px) { .wordmark__descriptor { display: none; } }

.menu {
  width: min(560px, 100%); max-width: none; height: 100dvh; max-height: none; margin: 0 0 0 auto;
  padding: 0; border: 0; background: var(--sheet); color: var(--ink); overscroll-behavior: contain;
}
.menu[open] { display: flex; flex-direction: column; }
.menu::backdrop { background: rgb(34 27 74 / 0.55); }
.menu__top {
  flex: none; height: var(--header-h); padding: 0 var(--pad);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--ink); color: var(--cream);
}
.menu__close:hover { background: var(--sun); color: var(--ink); border-color: var(--sun); }
.menu__body { flex: 1; overflow-y: auto; padding: 28px var(--pad) 40px; }
.menu__heading { margin-bottom: 8px; color: var(--muted); }
.menu__games li + li { border-top: 1px solid var(--line); }
.menu__game {
  display: grid; grid-template-columns: 36px 1fr; column-gap: 14px; row-gap: 4px; align-items: center;
  min-height: 44px; padding: 16px 0; text-decoration: none;
}
.menu__game .shape { grid-row: span 2; width: 28px; height: 28px; }
.menu__game-title { font-size: clamp(1.6rem, 6vw, 2.2rem); }
.menu__game-status { font-size: 0.95rem; color: var(--muted); letter-spacing: 0; text-transform: none; font-weight: 500; }
.menu__game[aria-current='page'] .menu__game-title { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px; }
.menu__links { margin-top: 28px; padding-top: 16px; border-top: 3px solid var(--ink); display: grid; }
.menu__links a { display: inline-flex; align-items: center; min-height: 48px; font-size: 1.25rem; font-weight: 650; text-decoration: none; }
.menu__links a:hover, .menu__links a[aria-current='page'] { text-decoration: underline; text-underline-offset: 4px; }

.hero {
  background:
    radial-gradient(circle at 8% 10%, rgb(225 29 98 / 0.16), transparent 32%),
    radial-gradient(circle at 92% 0%, rgb(47 125 255 / 0.2), transparent 34%),
    radial-gradient(circle at 70% 100%, rgb(255 225 77 / 0.45), transparent 28%),
    var(--paper);
}
.hero__inner {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(36px, 7vh, 88px) var(--pad) clamp(48px, 8vh, 96px);
  display: grid; gap: 22px; justify-items: start;
}
.eyebrow { display: flex; flex-wrap: wrap; gap: 0 0.4em; color: var(--pop); }
.eyebrow__soft { color: var(--muted); font-weight: 500; letter-spacing: 0.04em; text-transform: none; }
.hero__title { font-size: clamp(3rem, 8vw, 6.4rem); max-width: 10em; }
.hero__title span { display: block; color: var(--pop); }
.hero__lead { max-width: 38em; font-size: clamp(1.05rem, 1.4vw, 1.3rem); color: var(--ink-soft); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.worlds-band { padding: clamp(64px, 9vw, 120px) 0; }
.worlds-band__inner, .page-hero__inner, .studio__inner, .closing__inner, .game-section__inner, .feature__inner {
  max-width: var(--max); margin: 0 auto; padding-inline: var(--pad);
}
.section-kicker { color: var(--pop); }
.worlds-band__title, .page-hero__title, .studio__title { margin-top: 10px; font-size: clamp(2.6rem, 6vw, 4.6rem); }
.worlds-band__lead, .page-hero__lead { margin-top: 16px; max-width: 40em; font-size: 1.15rem; color: var(--ink-soft); }
.worlds-band .text-link { margin-top: 8px; }

.worlds {
  display: grid; grid-template-columns: 1fr; gap: 28px;
  margin-top: clamp(28px, 4vw, 48px);
}
.world__link { display: block; text-decoration: none; border-radius: 18px; }
.world__art { position: relative; display: block; }
.world__frame {
  position: relative; display: block; overflow: hidden; background: var(--ink);
  border: 3px solid var(--ink);
  transition: transform 0.35s var(--ease-out);
}
.world__frame picture, .world__frame img { width: 100%; height: 100%; object-fit: cover; }
.world--house .world__frame { aspect-ratio: 1.15; clip-path: polygon(50% 0, 100% 22%, 100% 100%, 0 100%, 0 22%); }
.world--circle .world__frame { aspect-ratio: 1; border-radius: 50%; box-shadow: 0 0 0 8px var(--jump-stone); }
.world--arch .world__frame { aspect-ratio: 0.9; border-radius: 999px 999px 18px 18px; }
.world__spin { display: block; width: 100%; height: 100%; }
.world__cast { position: absolute; display: block; pointer-events: none; transition: transform 0.35s var(--ease-out); }
.world__cast img { width: 100%; filter: drop-shadow(0 10px 14px rgb(34 27 74 / 0.28)); }
.world__bob { display: block; }
.world__cast--house { width: 78%; left: 14%; bottom: -8%; }
.world__cast--diver { width: 62%; left: 18%; top: -8%; }
.world__cast--butterfly { width: 42%; left: 4%; top: 16%; }
.world__cast--bat { width: 48%; right: 2%; top: 38%; }
.world__label { display: grid; gap: 4px; margin-top: 16px; }
.world__index { color: var(--muted); }
.world__title { font-size: clamp(1.6rem, 3vw, 2rem); }
.world__hook { font-size: 1rem; color: var(--ink-soft); letter-spacing: 0; text-transform: none; font-weight: 500; }
.world__link:hover .world__frame, .world__link:focus-visible .world__frame { transform: translateY(-6px); }
.world__link:hover .world__title { text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 800px) {
  .worlds { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: clamp(16px, 2vw, 28px); }
  .world--house .world__frame { aspect-ratio: 0.82; }
  .world--circle { margin-top: 48px; }
  .world--arch .world__frame { aspect-ratio: 0.78; }
  .world__cast--house { width: 92%; left: 8%; bottom: -6%; }
  .world__cast--diver { width: 78%; left: 11%; top: -12%; }
  .world--house .world__label { margin-top: 64px; }
  .world--circle .world__label { margin-top: 28px; }
  .world__cast--butterfly { width: 52%; left: -8%; top: 12%; }
  .world__cast--bat { width: 70%; right: -8%; top: 40%; }
}

.studio { padding: clamp(72px, 10vw, 140px) 0; background: var(--sheet); }
.studio__body { margin-top: 28px; display: grid; gap: 16px; max-width: 46em; font-size: 1.125rem; color: var(--ink-soft); }
.studio__lead { font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.3; color: var(--ink); font-weight: 600; }
.principles { margin-top: 40px; display: grid; gap: 16px; }
.principle { padding: 22px; border: 3px solid var(--ink); border-radius: 18px; background: var(--paper); box-shadow: 6px 6px 0 var(--sun); }
.principle h3 { font-size: 1.3rem; font-weight: 650; }
.principle p { margin-top: 6px; color: var(--ink-soft); }
@media (min-width: 800px) { .principles { grid-template-columns: repeat(3, 1fr); } }

.closing { background: var(--ink); color: var(--cream); padding: clamp(72px, 9vw, 120px) 0; }
.closing :focus-visible { outline-color: var(--sun); }
.closing__title { font-size: clamp(2.8rem, 7vw, 5rem); }
.closing__lead { margin-top: 16px; max-width: 36em; font-size: 1.15rem; color: rgb(255 248 238 / 0.82); }
.closing__follow { margin-top: 36px; display: grid; gap: 12px; }
.closing__follow-title { font-size: 0.78rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sun); }
.follow { display: flex; flex-wrap: wrap; gap: 12px; }
.follow__pending, .follow__link {
  display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 18px;
  border-radius: 16px; border: 2px solid rgb(255 248 238 / 0.45); font-weight: 600;
}
.follow__state { font-size: 0.72rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sun); }
.follow__link { text-decoration: none; }
.follow__link:hover { background: var(--sun); color: var(--ink); border-color: var(--sun); }

.page-hero { padding: clamp(28px, 5vw, 64px) 0 clamp(12px, 3vw, 28px); }
.games { display: grid; }

.feature { position: relative; overflow: clip; padding: clamp(56px, 8vw, 112px) 0; }
.feature__kicker { display: flex; align-items: center; gap: 12px; }
.feature__rule { width: 36px; height: 4px; border-radius: 4px; background: currentColor; }
.feature__kicker .shape { width: 18px; height: 18px; }
.feature__title { margin-top: 12px; font-size: clamp(2.8rem, 7vw, 5.5rem); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px;
  border: 2px solid currentColor; border-radius: 999px; letter-spacing: 0.06em;
}
.chip__dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.chip--live { background: var(--sun); border-color: var(--ink); color: var(--ink); }
.feature__hook { margin-top: 22px; font-size: clamp(1.5rem, 3vw, 2.4rem); font-weight: 600; line-height: 1.15; max-width: 16em; }
.feature__description { font-size: 1.125rem; max-width: 36em; }
.feature__actions { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.feature__note { max-width: 32em; font-size: 0.95rem; }
.stage-caption { margin-top: 12px; font-size: 0.72rem; letter-spacing: 0.06em; opacity: 0.8; }
.feature__split { display: grid; gap: 28px; }
.feature__lede { container-type: inline-size; }
@media (min-width: 1000px) {
  .feature__split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    grid-template-areas: 'lede stage' 'more stage';
    column-gap: clamp(32px, 4vw, 72px);
    align-items: center;
  }
  .feature__lede { grid-area: lede; }
  .feature__split > figure { grid-area: stage; }
  .feature__more { grid-area: more; }
  .feature--bats .feature__split { grid-template-areas: 'stage lede' 'stage more'; }
}

.feature--run { background: var(--run-cream); color: var(--ink); }
.feature--run .feature__kicker, .feature--run .chips { color: var(--run-coral-deep); }
.feature--run .feature__title { color: var(--run-coral); }
.run-stage { margin-top: clamp(28px, 4vw, 48px); }
.feature--run .run-stage .stage-caption { max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.run-stage__viewport { position: relative; overflow: hidden; aspect-ratio: 4 / 3.2; background: #8fd6f1; border-radius: 0; container-type: inline-size; }
@media (min-width: 700px) { .run-stage__viewport { aspect-ratio: 16 / 8; } }
.run-stage__plate { position: absolute; inset: -2% -6%; transform: translate3d(calc(var(--p, 0.5) * -6%), 0, 0); }
.run-stage__plate picture, .run-stage__plate img { width: 100%; height: 100%; object-fit: cover; object-position: 36% 62%; }
.run-stage__runner {
  position: absolute; left: 0; bottom: -3%; width: clamp(180px, 34%, 440px);
  transform: translate3d(calc(var(--p, 0.55) * (100cqw - 100%)), 0, 0);
}
.run-stage__land, .run-stage__bob { transform-origin: 50% 100%; }
.run-stage__bob img { width: 100%; filter: drop-shadow(0 18px 18px rgb(11 60 70 / 0.35)); }
.run-stage__dust { position: absolute; left: 4%; bottom: 7%; width: 40%; height: 26%; }
.run-stage__dust i {
  position: absolute; bottom: 0; width: 34%; aspect-ratio: 1; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle at 40% 40%, #fffaf0 0 40%, rgb(238 220 190 / 0.9) 70%, transparent 72%);
}
.run-stage__dust i:nth-child(1) { left: 40%; }
.run-stage__dust i:nth-child(2) { left: 18%; width: 28%; }
.run-stage__dust i:nth-child(3) { left: 0; width: 22%; }
.feature--run .feature__body { margin-top: 28px; display: grid; gap: 12px; }
@media (min-width: 1000px) {
  .feature--run .feature__head { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 48px; align-items: end; }
  .feature--run .feature__hook { margin: 0; justify-self: end; text-align: right; }
  .feature--run .feature__body { grid-template-columns: 1.2fr 1fr; column-gap: 48px; align-items: start; }
}

.feature--jump {
  --focus: var(--sun);
  color: #f3e7d3;
  background: radial-gradient(ellipse 60% 70% at 72% 40%, #4a2f17 0%, transparent 70%), var(--jump-vault);
}
.feature--jump .feature__kicker, .feature--jump .chips { color: var(--jump-stone); }
.feature--jump .feature__title { color: var(--jump-gold); }
.feature--jump .button--primary { background: var(--jump-gold); }
.feature--jump .button--ghost { color: #f3e7d3; border-color: #f3e7d3; }
.jump-stage { width: min(100%, 560px); justify-self: center; }
.jump-stage__viewport { position: relative; aspect-ratio: 1; }
.jump-stage__rim {
  position: absolute; inset: 8%; border-radius: 50%; padding: 3.2%;
  background: linear-gradient(160deg, #f0dcb9, #b48c62 60%, #7e5c3d);
  box-shadow: 0 30px 60px rgb(0 0 0 / 0.45);
}
.jump-stage__hole { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: #2a1a0e; }
.jump-stage__shaft { width: 100%; height: 100%; transform-origin: 50% 86%; transform: scale(calc(1.06 + var(--p, 0.4) * 0.5)) rotate(calc(var(--p, 0.4) * 28deg)); }
.jump-stage__shaft picture, .jump-stage__shaft img { width: 100%; height: 100%; object-fit: cover; }
.jump-stage__diver { position: absolute; left: 22%; top: -2%; width: 56%; transform: translate3d(0, calc(var(--p, 0.4) * 62%), 0) scale(calc(1.04 - var(--p, 0.4) * 0.52)); }
.jump-stage__tumble img { width: 100%; filter: drop-shadow(0 24px 22px rgb(0 0 0 / 0.5)); }
.jump-stage__loot { position: absolute; inset: 0; pointer-events: none; }
.loot { position: absolute; width: 11%; transform: translate3d(0, calc(var(--p, 0.4) * var(--rise, -80%)), 0); }
.loot img { width: 100%; filter: drop-shadow(0 8px 10px rgb(0 0 0 / 0.45)); }
.loot--a { left: 4%; top: 30%; --rise: -120%; width: 12%; }
.loot--b { right: 3%; top: 22%; --rise: -150%; width: 13%; }
.loot--c { right: 10%; top: 66%; --rise: -220%; width: 9%; }
.loot--d { left: 12%; top: 72%; --rise: -190%; width: 10%; }
.loot--e { left: 46%; top: 86%; --rise: -260%; width: 7%; }

.feature--bats {
  color: var(--ink);
  background: radial-gradient(ellipse 50% 60% at 90% 30%, rgb(138 92 208 / 0.18), transparent 70%), linear-gradient(180deg, var(--bats-day), #efe6d2);
}
.feature--bats .feature__kicker, .feature--bats .chips { color: var(--bats-dusk); }
.feature--bats .feature__title { color: var(--bats-dusk); font-size: clamp(2.4rem, 5vw, 4.2rem); }
.garden-stage { width: min(100%, 620px); justify-self: center; }
.garden-stage__frame { position: relative; }
.garden-stage__viewport {
  position: relative; aspect-ratio: 0.86; overflow: hidden; background: var(--bats-night);
  border-radius: 999px 999px 20px 20px; border: 3px solid var(--bats-dusk);
}
.garden-stage__arch, .garden-stage__arch picture, .garden-stage__arch img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.garden-stage__butterfly { position: absolute; left: 6%; top: 24%; width: 38%; }
.garden-stage__bat { position: absolute; right: -4%; top: 30%; width: 52%; }
.garden-stage__hover img { width: 100%; filter: drop-shadow(0 14px 16px rgb(20 14 40 / 0.35)); }
.night-bats { position: absolute; right: 0; top: 4%; width: 62%; height: auto; fill: #1a1330; overflow: visible; }
.night-bat { transform-box: fill-box; transform-origin: 50% 50%; }
.night-bat--1 { transform: translate(250px, 70px); }
.night-bat--2 { transform: translate(310px, 40px); }
.collection {
  position: absolute; left: 8px; bottom: -28px; display: flex; gap: 8px; padding: 8px;
  border-radius: 16px; background: #fffdf8; border: 2px solid var(--bats-dusk);
}
.collection__card {
  display: grid; place-items: center; width: clamp(48px, 7vw, 72px); aspect-ratio: 0.82;
  border-radius: 10px; background: #fff; border: 2px solid rgb(59 42 107 / 0.25);
}
.collection__card--open { background: transparent; }
.garden-stage--collection .stage-caption { margin-top: 42px; }
.collection__slot { width: 40%; aspect-ratio: 1; border-radius: 50%; border: 2px dashed rgb(59 42 107 / 0.45); }
.flutter { position: relative; display: block; width: 78%; aspect-ratio: var(--ratio); }
.flutter__wing { position: absolute; inset: 0; }
.flutter__wing img { width: 100%; height: 100%; }
.flutter__wing--left { clip-path: inset(0 50% 0 0); transform-origin: 100% 50%; }
.flutter__wing--right { clip-path: inset(0 0 0 50%); transform-origin: 0 50%; }
.garden-flyer { position: absolute; z-index: 3; pointer-events: none; }

.site-footer { background: #160f36; color: var(--cream); padding: 0; }
.site-footer :focus-visible { outline-color: var(--sun); }
.site-footer__inner {
  max-width: var(--max); margin: 0 auto; padding: 48px var(--pad) 32px;
  display: grid; gap: 32px;
}
.site-footer__brand p { margin-top: 10px; color: rgb(255 248 238 / 0.75); }
.site-footer__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.site-footer__heading { margin-bottom: 8px; color: var(--sun); }
.site-footer__nav a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; font-weight: 550; }
.site-footer__nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer__legal { display: grid; gap: 6px; padding-top: 20px; border-top: 1px solid rgb(255 248 238 / 0.16); font-size: 0.85rem; color: rgb(255 248 238 / 0.7); }
@media (min-width: 800px) {
  .site-footer__inner { grid-template-columns: 1.1fr 1fr; }
  .site-footer__legal { grid-column: 1 / -1; }
}

.theme-house { --theme-bg: var(--run-cream); --theme-title: var(--run-coral); --theme-accent: var(--run-coral-deep); --theme-ink: var(--run-coral-deep); }
.theme-circle { --theme-bg: var(--jump-vault); --theme-title: var(--jump-gold); --theme-accent: var(--jump-stone); --theme-ink: #8a5a12; }
.theme-arch { --theme-bg: var(--bats-day); --theme-title: var(--bats-dusk); --theme-accent: var(--bats-dusk); --theme-ink: var(--bats-dusk); }
.game-hero { background: var(--theme-bg); overflow: clip; }
.game-hero__inner {
  max-width: var(--max); margin: 0 auto; padding: clamp(28px, 4vw, 56px) var(--pad) clamp(48px, 6vw, 88px);
  display: grid; gap: 32px; align-items: center;
}
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.95rem; font-weight: 600; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb li:not(:last-child)::after { content: '/'; margin-left: 8px; opacity: 0.5; }
.game-hero .feature__kicker { margin-top: 18px; color: var(--theme-accent); }
.game-hero .chips { color: var(--theme-accent); }
.game-hero__title { margin-top: 8px; color: var(--theme-title); font-size: clamp(2.6rem, 6vw, 4.8rem); }
.game-hero__hook { margin-top: 18px; font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 600; line-height: 1.15; max-width: 16em; }
.game-hero__summary { margin-top: 12px; max-width: 36em; font-size: 1.125rem; }
.game-hero__actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 1000px) { .game-hero__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.theme-house .game-hero .run-stage { margin-top: 0; }
.theme-house .game-hero .run-stage__viewport { border-radius: var(--radius); }
.theme-circle .game-hero { --focus: var(--sun); color: #f3e7d3; background: radial-gradient(ellipse 55% 70% at 80% 30%, #4a2f17, transparent 70%), var(--jump-vault); }
.theme-circle .game-hero .button--ghost { color: #f3e7d3; border-color: #f3e7d3; }
.theme-circle .game-hero .button--primary { background: var(--jump-gold); color: var(--jump-vault); }

.game-section { padding: clamp(56px, 8vw, 96px) 0; background: var(--sheet); border-top: 1px solid var(--line); }
.section-title { font-size: clamp(2rem, 4vw, 3.2rem); }
.game-premise__grid { display: grid; gap: 24px; }
.game-premise__text { display: grid; gap: 14px; max-width: 42em; color: var(--ink-soft); font-size: 1.125rem; }
.game-premise__lead { font-size: clamp(1.35rem, 2vw, 1.8rem); font-weight: 600; line-height: 1.25; color: var(--ink); }
.facts { display: grid; align-content: start; border-top: 3px solid var(--ink); }
.facts__item { padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin-top: 4px; font-weight: 600; font-size: 1.1rem; }
@media (min-width: 900px) { .game-premise__grid { grid-template-columns: 160px minmax(0, 1fr) 260px; column-gap: 40px; } }
.experience { margin-top: 28px; display: grid; gap: 12px; }
.experience__item { display: grid; grid-template-columns: 48px 1fr; column-gap: 12px; row-gap: 4px; padding: 18px; border: 2px solid var(--line); border-radius: 16px; background: var(--paper); }
.experience__index { grid-row: span 2; color: var(--theme-ink, var(--pop)); padding-top: 4px; }
.experience__title { font-size: clamp(1.3rem, 2vw, 1.7rem); }
.experience__text { color: var(--ink-soft); }
@media (min-width: 800px) { .experience { grid-template-columns: 1fr 1fr; } }
.signoff { margin-top: 36px; font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 650; color: var(--theme-ink, var(--ink)); }
.status-cards { margin-top: 24px; display: grid; gap: 16px; }
.status-card { display: grid; gap: 8px; align-content: start; padding: 22px; border-radius: 18px; background: var(--paper); border: 2px solid var(--line); }
.status-card__label { color: var(--muted); }
.status-card__value { display: flex; align-items: center; gap: 10px; font-size: clamp(1.4rem, 2vw, 1.8rem); font-weight: 650; }
.status-card__detail { color: var(--ink-soft); }
.status-card .button { justify-self: start; margin-top: 8px; }
@media (min-width: 800px) { .status-cards { grid-template-columns: 1fr 1fr; } }
.media-figure { margin-top: 24px; }
.media-figure img { width: 100%; border-radius: 18px; border: 3px solid var(--ink); }
.media-figure figcaption { margin-top: 10px; color: var(--muted); }
.media-figure strong { color: var(--ink); }
.game-media__note { margin-top: 16px; max-width: 42em; color: var(--muted); }
.game-rows { margin-top: 20px; display: grid; gap: 12px; }
.game-row__link {
  display: grid; grid-template-columns: 36px 1fr auto; column-gap: 12px; row-gap: 2px; align-items: center;
  padding: 16px; text-decoration: none; border: 2px solid var(--ink); border-radius: 16px; background: var(--paper);
}
.game-row__shape { width: 26px; height: 26px; grid-row: span 3; }
.game-row__index { display: none; }
.game-row__title { font-size: clamp(1.4rem, 3vw, 2rem); }
.game-row__hook, .game-row__status { color: var(--ink-soft); font-size: 0.95rem; letter-spacing: 0; text-transform: none; font-weight: 500; }
.game-row__arrow { width: 22px; height: 22px; }
.game-row__link:hover { background: var(--sun); }
.game-more .text-link { margin-top: 18px; }
.not-found__inner { max-width: var(--max); margin: 0 auto; padding: clamp(48px, 8vw, 96px) var(--pad) 64px; display: grid; gap: 18px; justify-items: start; }
.not-found__title { font-size: clamp(2.8rem, 8vw, 5.5rem); }
.not-found__lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 36em; }
.not-found .game-rows { width: 100%; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .world--house .world__bob { animation: trot 0.5s ease-in-out infinite alternate; }
  .world__spin { animation: spin 28s linear infinite; }
  .world--circle .world__bob { animation: tumble 2.8s ease-in-out infinite alternate; }
  .world--arch .world__bob { animation: hover 3.4s ease-in-out infinite alternate; }
  .run-stage__bob { animation: trot 0.46s ease-in-out infinite alternate; }
  .run-stage.is-entered .run-stage__land { animation: land 0.9s var(--ease-out) both; }
  .run-stage__dust i { animation: dust 0.9s ease-out infinite; }
  .run-stage__dust i:nth-child(2) { animation-delay: 0.18s; }
  .run-stage__dust i:nth-child(3) { animation-delay: 0.36s; }
  .jump-stage__tumble { animation: tumble 2.6s ease-in-out infinite alternate; }
  .loot img { animation: coin-spin 2.4s linear infinite; }
  .garden-stage__hover { animation: hover 3.6s ease-in-out infinite alternate; }
  .garden-stage__bat .garden-stage__hover { animation-duration: 4.2s; }
  .night-bat--1 { animation: bat-path-1 9s linear infinite; }
  .night-bat--2 { animation: bat-path-2 11s linear infinite; }
  .flutter__wing--left { animation: flap-left 0.7s ease-in-out infinite; }
  .flutter__wing--right { animation: flap-right 0.7s ease-in-out infinite; }
  .is-flying .flutter__wing--left, .is-flying .flutter__wing--right { animation-duration: 0.28s; }
  .js [data-motion]:not(.is-inview) :is(.world__bob, .world__spin, .run-stage__bob, .run-stage__dust i, .jump-stage__tumble, .loot img, .garden-stage__hover, .night-bat, .flutter__wing) {
    animation-play-state: paused;
  }
}
@keyframes trot { from { transform: translateY(0); } to { transform: translateY(-6px); } }
@keyframes tumble { from { transform: rotate(-8deg); } to { transform: rotate(8deg); } }
@keyframes hover { from { transform: translateY(0); } to { transform: translateY(-10px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes land { from { transform: translateY(-18px); } to { transform: none; } }
@keyframes dust { from { opacity: 0.7; transform: translateY(0) scale(0.6); } to { opacity: 0; transform: translate(-12px, -16px) scale(1.3); } }
@keyframes coin-spin { to { transform: rotate(360deg); } }
@keyframes flap-left { from { transform: rotateY(0); } to { transform: rotateY(28deg); } }
@keyframes flap-right { from { transform: rotateY(0); } to { transform: rotateY(-28deg); } }
@keyframes bat-path-1 { from { transform: translate(40px, 20px); } to { transform: translate(-80px, 50px); } }
@keyframes bat-path-2 { from { transform: translate(20px, 40px); } to { transform: translate(-40px, 10px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
