/* Bean Flicker Golf. Colours and type from WebAssets/README.md (the in-game brand sheet). */
:root {
  color-scheme: light;
  --ink: #333854;
  --ink-soft: #5A5E78;
  --cream: #FFF7EB;
  --white: #FFFFFF;
  --pink: #FF8FB8;
  --pink-shade: #F56E9E;
  --pink-deep: #C74073;
  --pink-link: #A8325F;
  --pink-wash: #FFE4EE;
  --bean-ink: #4A1F38;
  --sprout: #7DD66B;
  --sprout-dark: #3D994A;
  --teal: #21C2B2;
  --teal-dark: #149488;
  --grass: #A3D97D;
  --sky: #8CD4ED;
  --sky-wash: #D7F0FA;
  --sun: #FFDB66;
  --purple: #8E6BF0;
  --tbd-bg: #FFF1B8;
  --tbd-ink: #4A3B00;
  --radius: 28px;
  --max: 1160px;
  --font: "Avenir Next", Avenir, ui-rounded, "Nunito", "Arial Rounded MT Bold", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --shadow: 0 10px 30px rgb(51 56 84 / 0.14);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.6;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--pink-link); font-weight: 700; text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { line-height: 1.1; letter-spacing: -0.01em; margin: 0 0 0.5em; font-weight: 800; }
h2 {
  font-size: clamp(2.1rem, 3.6vw + 1rem, 3.5rem);
  font-weight: 900; letter-spacing: 0.01em; color: var(--white);
  /* the logo's look: white letters, a thick dark outline, and a coloured drop shadow */
  text-shadow:
    0.05em 0 0 var(--ink), -0.05em 0 0 var(--ink), 0 0.05em 0 var(--ink), 0 -0.05em 0 var(--ink),
    0.036em 0.036em 0 var(--ink), -0.036em 0.036em 0 var(--ink), 0.036em -0.036em 0 var(--ink), -0.036em -0.036em 0 var(--ink),
    0 0.11em 0 var(--h2-pop, var(--pink)), 0.04em 0.11em 0 var(--h2-pop, var(--pink)), -0.04em 0.11em 0 var(--h2-pop, var(--pink));
}
h3 { font-size: 1.25rem; }
p, ul, ol { margin: 0 0 1em; }

.wrap { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.prose { width: min(100% - 32px, 46rem); margin-inline: auto; }
.center { text-align: center; }
.lede { font-size: clamp(1.1rem, 0.6vw + 1rem, 1.3rem); color: var(--ink-soft); max-width: 40rem; }
.center .lede { margin-inline: auto; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 20;
  background: var(--ink); color: var(--white); padding: 12px 16px; border-radius: 12px;
}
.skip:focus { top: 16px; }

/* [needs Clemente] placeholders: loud on purpose so none ship by accident */
.tbd {
  background: var(--tbd-bg); color: var(--tbd-ink);
  border: 1px dashed currentColor; border-radius: 4px; padding: 0 0.25em;
  font-weight: 600; box-decoration-break: clone; -webkit-box-decoration-break: clone;
}

/* Buttons: the game's ButtonNode recipe (ButtonNode.swift). A darker 3D lip underneath,
   a darker belly along the bottom, a white gloss streak and dot on the upper left,
   a deeper outline, and a heavy white label with a coloured shadow. */
.btn {
  --face: #21C2B2; --belly: #1DAB9D; --lip: #17887D; --edge: #137068; --label: #15786F;
  --h: 64px; --depth: 6px;
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--h); padding: 4px 38px 6px; border: 2.5px solid var(--edge); border-radius: 999px;
  background: var(--face); color: var(--white);
  font: inherit; font-weight: 900; font-size: clamp(1.15rem, 1.4vw + 0.75rem, 1.55rem);
  letter-spacing: 0.03em; text-transform: uppercase; line-height: 1.05;
  text-shadow: 0 2.5px 0 var(--label), 0 0 1px var(--label);
  text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
  box-shadow:
    inset 0 -6px 0 var(--belly), inset 0 0 0 1.5px var(--belly),
    0 var(--depth) 0 var(--lip), 0 calc(var(--depth) + 4px) 0 rgb(26 64 26 / 0.16);
  transition: transform 90ms ease-out, box-shadow 90ms ease-out;
}
.btn::before, .btn::after {
  content: ""; position: absolute; z-index: -1; background: rgb(255 255 255 / 0.38); border-radius: 999px;
}
.btn::before { left: 11%; top: 14%; width: 42%; height: max(5px, 16%); }
.btn::after { left: calc(57% - 0.065 * var(--h)); top: calc(22% - 0.065 * var(--h)); width: calc(0.13 * var(--h)); aspect-ratio: 1; }
.btn:hover { transform: translateY(-2px); box-shadow:
  inset 0 -6px 0 var(--belly), inset 0 0 0 1.5px var(--belly),
  0 calc(var(--depth) + 2px) 0 var(--lip), 0 calc(var(--depth) + 7px) 0 rgb(26 64 26 / 0.16); }
.btn:active { transform: translateY(calc(var(--depth) - 1px)); box-shadow:
  inset 0 -6px 0 var(--belly), inset 0 0 0 1.5px var(--belly),
  0 1px 0 var(--lip), 0 4px 0 rgb(26 64 26 / 0.16); }
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 6px; }
/* SHOP purple, a size smaller, like the home screen */
.btn-shop {
  --face: #9E78EB; --belly: #8B69CE; --lip: #6F54A4; --edge: #5C4688; --label: #624A91;
  --h: 52px; --depth: 5px; padding-inline: 30px; font-size: clamp(1rem, 0.9vw + 0.75rem, 1.25rem);
}

/* Header */
.site-header { position: absolute; inset: 0 0 auto; z-index: 5; padding-block: 16px; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.brand img { width: 48px; height: 48px; border-radius: 22.5%; box-shadow: var(--shadow); }
.site-nav { display: flex; gap: 8px; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding-inline: 16px;
  background: rgb(255 255 255 / 0.92); border-radius: 999px; box-shadow: var(--shadow);
  color: var(--ink); text-decoration: none; font-weight: 800;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--white); text-decoration: underline; }
.page .site-header { position: static; }

/* Hero: the home-screen painting, logo and bean, like opening the game */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(620px, 100svh, 920px);
  display: grid; place-items: stretch center;
  padding: clamp(96px, 13vh, 130px) 0 clamp(226px, calc(30vh + 36px), 336px); text-align: center;
  background: linear-gradient(#0A55B8, #1F86DC);
  container-type: inline-size;
}
/* The home-screen painting as four layers rendered by the game (sky, far rocks, water and island,
   foreground meadow). Phones get the phone-shaped painting (440 x 956 points), bottom-aligned like the game.
   Landscape screens get a wider painting of the same scene (1000 x 956 points). Either way the bean's spot on
   the path is 660 points down, so the layers are placed to put that spot near the bottom of the hero. */
.hero-scene { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
/* The meadow melts into the cream page below: a tall, eased fade instead of a hard edge. */
.hero-scene::after {
  content: ""; position: absolute; inset: auto 0 0; height: clamp(120px, 16vh, 190px);
  background: linear-gradient(to bottom,
    rgb(255 247 235 / 0), rgb(255 247 235 / 0.18) 25%, rgb(255 247 235 / 0.55) 55%,
    rgb(255 247 235 / 0.88) 80%, var(--cream));
}
.lw { position: absolute; left: 0; width: 100%; aspect-ratio: 1000 / 956; top: calc(100% - 80px - 66cqw); }
.lw-sky { top: min(0px, calc(100% - 80px - 66cqw)); }
.lw .layer { display: block; width: 100%; height: 100%; max-width: none; }
/* The Ferris wheel turns on its hub, just like on the home screen. */
.ferris { position: absolute; left: 20%; top: 46.23%; width: 7.4%; translate: -50% -50%; }
/* Phones: the painting sits lower (--drop) so the bean's path ends nearer the bottom of the screen, which
   leaves the logo, tagline and buttons room to breathe above it. */
@media (max-aspect-ratio: 750/1000) {
  .hero { --drop: 42cqw; }
  .lw { aspect-ratio: 440 / 956; top: calc(100% - 217.27cqw + var(--drop)); }
  .lw-sky { top: min(0px, calc(100% - 217.27cqw + var(--drop))); }
  .ferris { width: 16.82%; }
}
@media (prefers-reduced-motion: no-preference) {
  .ferris { animation: spin 28s linear infinite; }
}
.hero h1 { margin: 0 auto; width: min(54vw, 290px); }
@media (max-width: 600px) { .hero { padding-top: 88px; } }
.hero h1 img { width: 100%; filter: drop-shadow(0 8px 16px rgb(51 56 84 / 0.25)); }
/* The tagline in the logo's style: white letters, a dark outline and a pink drop shadow. */
.tagline {
  margin: 0 16px; max-width: 48rem;
  font-size: clamp(1.4rem, 2.6vw + 0.8rem, 2.5rem); font-weight: 900; line-height: 1.12; color: var(--white);
  letter-spacing: 0.01em; text-wrap: balance;
  text-shadow:
    0.06em 0 0 var(--ink), -0.06em 0 0 var(--ink), 0 0.06em 0 var(--ink), 0 -0.06em 0 var(--ink),
    0.043em 0.043em 0 var(--ink), -0.043em 0.043em 0 var(--ink), 0.043em -0.043em 0 var(--ink), -0.043em -0.043em 0 var(--ink),
    0 0.12em 0 var(--pink), 0.04em 0.12em 0 var(--pink), -0.04em 0.12em 0 var(--pink);
}
@media (max-width: 420px) { .hero .btn:not(.btn-shop) { font-size: 1.05rem; padding-inline: 26px; white-space: nowrap; } }
.hero .cta-line { display: flex; flex-direction: column; align-items: center; gap: 22px; padding-inline: 16px; }
.hero-bean {
  position: absolute; left: 50%; bottom: 80px; width: clamp(117px, 12.75vw, 180px);
  translate: -50% 0;
}
.hero-badge {
  position: absolute; right: max(16px, calc((100% - var(--max)) / 2)); bottom: 46px;
  display: none; padding: 10px 16px; border-radius: 18px; background: var(--white);
  box-shadow: var(--shadow); font-weight: 800; line-height: 1.25; text-align: left; rotate: 4deg;
}
.hero-badge strong { display: block; font-size: 1.8rem; color: var(--pink-deep); }

/* Sections melt into one another, like one long scene: soft colour fades, and rolling hills where
   the sky gives way to the grass (and where the page settles into the dark footer). */
.sheet { position: relative; padding-block: 88px 110px; }
#worlds {
  --h2-pop: var(--teal);
  padding-bottom: 330px;
  background: linear-gradient(var(--cream), var(--sky-wash) 240px);
}
#toys { --h2-pop: var(--sun); background: var(--grass); padding-bottom: 440px; }
#see { --h2-pop: var(--purple); background: var(--cream); }
#extras { --h2-pop: var(--teal); background: linear-gradient(var(--cream), var(--pink-wash) 260px, var(--pink-wash) calc(100% - 260px), var(--sun)); }
.eyebrow {
  display: inline-block; margin-bottom: 16px; padding: 5px 16px 6px; border-radius: 999px;
  background: var(--ink); color: var(--white); font-size: 0.85rem; font-weight: 900;
  letter-spacing: 0.1em; text-transform: uppercase; rotate: -3deg;
  box-shadow: 0 4px 0 var(--h2-pop, var(--pink));
}

/* Worlds: big counters, then a tour of all 30 worlds */
.bigstats {
  list-style: none; margin: 0 auto 8px; padding: 0 16px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px clamp(20px, 5vw, 64px);
}
.bigstats li { display: grid; justify-items: center; line-height: 1; }
.bigstats strong, .wnum {
  font-weight: 900; color: var(--white); font-variant-numeric: tabular-nums;
  text-shadow: 0.05em 0 0 var(--ink), -0.05em 0 0 var(--ink), 0 0.05em 0 var(--ink), 0 -0.05em 0 var(--ink), 0.036em 0.036em 0 var(--ink), -0.036em 0.036em 0 var(--ink), 0.036em -0.036em 0 var(--ink), -0.036em -0.036em 0 var(--ink),
    0 0.1em 0 var(--pop, var(--pink)), 0.04em 0.1em 0 var(--pop, var(--pink)), -0.04em 0.1em 0 var(--pop, var(--pink));
}
.bigstats strong { font-size: clamp(3.6rem, 8vw + 1rem, 7.5rem); letter-spacing: 0.01em; }
.bigstats li:nth-child(2) { --pop: var(--teal); }
.bigstats li:nth-child(3) { --pop: var(--sun); }
.bigstats span { margin-top: 6px; font-weight: 900; font-size: 1.1rem; letter-spacing: 0.1em; text-transform: uppercase; }

.tour { position: relative; margin-top: 24px; }
.tour-pin { padding-block: 12px; }
.tour-head { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; font-weight: 800; }
.tour-count { white-space: nowrap; }
.tour-count b { font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.tour-rail { flex: 1; position: relative; display: block; }
.tour-bar { display: block; height: 12px; border-radius: 999px; background: rgb(255 255 255 / 0.8); overflow: hidden; box-shadow: inset 0 1px 3px rgb(51 56 84 / 0.15); }
.tour-bar i {
  display: block; height: 100%; width: calc(var(--p, 0.03) * 100%);
  background: var(--pink); border-radius: 999px; box-shadow: inset 0 -3px 0 var(--pink-shade);
}
.tour-track {
  position: relative; list-style: none; margin: 0; padding: 20px 16px 36px;
  display: flex; gap: 26px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px;
  scrollbar-width: none;
}
.tour-track::-webkit-scrollbar { display: none; }
.wcard {
  position: relative; isolation: isolate; overflow: hidden; flex: none;
  width: min(74vw, 300px); aspect-ratio: 3 / 5; padding: 18px 14px 14px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  border-radius: 32px; background: var(--tint);
  box-shadow: 0 0 0 6px var(--white), 0 20px 36px rgb(51 56 84 / 0.22);
  scroll-snap-align: start; rotate: -1.5deg; transition: rotate 250ms ease, scale 250ms ease;
}
.wcard:nth-child(even) { rotate: 1.5deg; }
.wcard:hover { rotate: 0deg; scale: 1.035; }
.wcard-bg { position: absolute; inset: 0 -12%; z-index: -1; }
.wcard-bg img { width: 100%; height: 100%; object-fit: cover; transform: translate3d(var(--px, 0), 0, 0); }
.wnum { margin: 0; font-size: 4.4rem; line-height: 1; }
.wcard h3 {
  margin: 6px 0 6px; padding: 6px 16px; border-radius: 999px; background: var(--white);
  font-size: 1.2rem; font-weight: 900; box-shadow: 0 4px 0 rgb(51 56 84 / 0.12);
}
.holes {
  margin: 0; padding: 2px 12px; border-radius: 999px; background: rgb(51 56 84 / 0.82); color: var(--white);
  font-size: 0.8rem; font-weight: 800; letter-spacing: 0.04em;
}
.feat { margin: auto 0; display: grid; justify-items: center; gap: 8px; }
.feat img { max-height: 92px; width: auto; max-width: 180px; filter: drop-shadow(0 8px 8px rgb(51 56 84 / 0.25)); }
.feat > span:not(.slope) {
  padding: 6px 14px 8px; border-radius: 18px; background: rgb(255 255 255 / 0.94);
  font-weight: 900; font-size: 1.05rem; line-height: 1.15; box-shadow: 0 4px 0 rgb(51 56 84 / 0.1);
}
.feat-kind { display: block; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pink-deep); }
.has-toy .feat-kind { color: var(--teal-dark); }
.wcard .tee { position: relative; width: 66%; }
.wcard .tee .pad { width: 100%; filter: drop-shadow(0 8px 8px rgb(51 56 84 / 0.2)); }
.wcard .tee-bean { position: absolute; width: 44%; left: 28%; top: -6%; }
.wcard .cupflag { width: 58px; filter: drop-shadow(0 6px 6px rgb(51 56 84 / 0.2)); }
.slope.mini { width: 110px; height: 62px; }
.w30 { --pop: var(--pink); }

/* Pinned version (wide screens, motion allowed): set up by site.js */
.tour-on .tour-pin {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
}
.tour-on .tour-track {
  width: max-content; overflow: visible; scroll-snap-type: none; will-change: transform;
  padding-inline: max(24px, calc((100vw - var(--max)) / 2));
}
.tour-on .wcard { width: min(300px, calc((100svh - 190px) * 0.6)); }

/* Toys */
.toys { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.toy {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 20px 18px 22px; border-radius: var(--radius); background: var(--cream); box-shadow: var(--shadow);
}
.toy .art { display: grid; place-items: center; height: 120px; width: 100%; margin-bottom: 10px; position: relative; }
.toy .art img { max-height: 110px; width: auto; filter: drop-shadow(0 6px 8px rgb(51 56 84 / 0.18)); }
.toy .art img.wide { max-height: none; width: 100%; max-width: 220px; }
.toy .art .pair { width: 84px; position: absolute; }
.toy .art .pair:first-child { translate: -32px -8px; }
.toy .art .pair:last-child { translate: 32px 8px; }
.toy .art .stack { display: grid; gap: 10px; justify-items: center; }
.toy .art .stack img:first-child { max-height: 64px; }
.toy h3 { margin-bottom: 4px; }
.toy p { margin: 0 0 12px; font-size: 0.98rem; }
.toy .where {
  margin-top: auto; padding: 3px 12px; border-radius: 999px; background: var(--white);
  font-size: 0.8rem; font-weight: 800; color: var(--ink-soft);
}
.slope {
  width: 150px; height: 84px; border-radius: 18px; rotate: -8deg;
  background:
    repeating-linear-gradient(90deg, transparent 0 22px, rgb(255 255 255 / 0.55) 22px 26px),
    linear-gradient(180deg, #8FCB6E, #5FA94F);
  box-shadow: inset 0 -10px 0 rgb(0 0 0 / 0.12), 0 8px 12px rgb(51 56 84 / 0.18);
}

/* Screenshots */
.shots {
  list-style: none; margin: 0; padding: 12px 16px 28px;
  display: grid; grid-auto-flow: column; grid-auto-columns: min(62vw, 250px);
  gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px;
  scrollbar-width: thin;
}
.shots li { scroll-snap-align: start; }
.shots figure { margin: 0; }
.phone {
  padding: 8px; border-radius: 38px; background: var(--ink);
  box-shadow: 0 18px 30px rgb(51 56 84 / 0.25);
}
.phone img { border-radius: 30px; width: 100%; aspect-ratio: 1320 / 2698; object-fit: cover; background: var(--grass); }
.shots figcaption { margin-top: 12px; text-align: center; font-weight: 700; font-size: 0.95rem; }
@media (min-width: 1200px) {
  .shots { padding-inline: calc((100% - var(--max)) / 2); scroll-padding-inline: calc((100% - var(--max)) / 2); }
}

/* Extras */
.extras { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
@media (min-width: 600px) { .extras { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .extras { grid-template-columns: repeat(4, 1fr); } .toys { grid-template-columns: repeat(5, 1fr); } }
.extra { padding: 8px 24px 28px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); text-align: center; }
.extra img { width: 180px; margin: 0 auto -6px; }
.extra p { margin: 0; color: var(--ink-soft); }

/* Get it */

/* Inner pages */
.page main { padding-block: 16px 72px; }
.doc h1 { font-size: clamp(2.2rem, 4vw + 1rem, 3.2rem); font-weight: 900; text-shadow: 0 3px 0 var(--pink); }
.doc h2 { font-size: 1.5rem; margin-top: 2em; text-shadow: none; color: var(--ink); letter-spacing: -0.01em; }
.doc h3 { margin-top: 1.6em; }
.doc li { margin-bottom: 0.35em; }
.doc .meta { color: var(--ink-soft); }
.doc-hero { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.doc-hero img { width: 120px; flex: none; }
.callout { background: var(--white); border-radius: 22px; padding: 18px 22px; margin-bottom: 1.5em; box-shadow: var(--shadow); }
.callout .last { margin: 0; }
.faq dt { font-weight: 800; font-size: 1.1rem; margin-top: 1.6em; }
.faq dd { margin: 0.4em 0 0; }

/* Footer */
.site-footer { background: var(--ink); color: var(--cream); padding-block: 10px 14px; position: relative; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 28px; }
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); height: 64px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 160' preserveAspectRatio='none'%3E%3Cpath fill='%23474C6E' d='M0 92C150 40 330 34 520 78C700 120 860 36 1060 52C1230 66 1340 92 1440 64V160H0Z'/%3E%3Cpath fill='%23333854' d='M0 120C210 78 430 140 680 108C920 78 1120 128 1440 100V160H0Z'/%3E%3Cpath fill='none' stroke='%235A5F82' stroke-width='4' d='M0 120C210 78 430 140 680 108C920 78 1120 128 1440 100'/%3E%3C/svg%3E") bottom / 100% 64px no-repeat;
}
.page .site-footer::before { display: none; }
.page .site-footer { margin-top: 0; }
.site-footer a { color: var(--white); }
.site-footer :focus-visible { outline-color: var(--white); }
.site-footer .logo { width: 132px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0 22px; }
.site-footer nav a, .site-footer nav span { min-height: 44px; display: inline-flex; align-items: center; }
.site-footer p { margin: 0; color: #D9DBEA; font-size: 0.9rem; }
/* Apple's official badge, unmodified: at least 40px tall with a quarter of its height clear all round. */
.site-footer .store-badge { display: inline-flex; padding: 10px; min-height: 0; }
.site-footer .store-badge img { display: block; width: 120px; height: 40px; }
.site-footer .tm { flex-basis: 100%; font-size: 0.72rem; color: #A9ADC8; padding-bottom: 4px; }
@media (max-width: 600px) {
  .site-footer .logo { display: none; }
  .site-footer .wrap { justify-content: center; text-align: center; }
  .site-footer nav { justify-content: center; gap: 0 16px; font-size: 0.92rem; }
  .site-footer nav a { min-height: 40px; }
}

@media (min-width: 768px) {
  .hero-badge { display: block; }
}
@media (min-width: 960px) {
  .play-grid { grid-template-columns: 1fr 1fr; }
  .world { width: 200px; }
}

/* Motion: only when the visitor hasn't asked for less of it */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .hero-bean { animation: bob 2.6s ease-in-out infinite; }
  .toy:hover .art > *, .extra:hover img { animation: wiggle 500ms ease-in-out; }
  .hero h1 { animation: pop 600ms cubic-bezier(.2, 1.4, .4, 1) both; }
  @keyframes bob { 50% { translate: -50% -14px; } }
  @keyframes float { 50% { translate: 0 -14px; } }
  @keyframes wiggle { 25% { rotate: -6deg; } 75% { rotate: 6deg; } }
  @keyframes pop { from { scale: 0.7; opacity: 0; } }
}
.page .center > img { width: 240px; margin: 48px auto 0; }

/* Per-world accent colours, sampled from each world's scenery. */
.w01 { --pop: #89E03E; --tint: #ACD688; }
.w02 { --pop: #CACD50; --tint: #D6D7B3; }
.w03 { --pop: #5C8FC1; --tint: #868B90; }
.w04 { --pop: #E0B03E; --tint: #EADDBE; }
.w05 { --pop: #5CC19A; --tint: #668F7F; }
.w06 { --pop: #5CB7C1; --tint: #DFE8E9; }
.w07 { --pop: #3EC2E0; --tint: #85C8D7; }
.w08 { --pop: #E0B83E; --tint: #DFCF9E; }
.w09 { --pop: #E03E68; --tint: #EFD0D8; }
.w10 { --pop: #CBD746; --tint: #B8BE75; }
.w11 { --pop: #8B5CC1; --tint: #5E5865; }
.w12 { --pop: #5C72C1; --tint: #666C82; }
.w13 { --pop: #5C5FC1; --tint: #3C3D63; }
.w14 { --pop: #5BD04E; --tint: #7AB773; }
.w15 { --pop: #5C93C1; --tint: #9CA2A7; }
.w16 { --pop: #3E96E0; --tint: #B7D6F0; }
.w17 { --pop: #89E03E; --tint: #A3CE7E; }
.w18 { --pop: #5481C9; --tint: #4D658C; }
.w19 { --pop: #E0A13E; --tint: #E7C794; }
.w20 { --pop: #745CC1; --tint: #6C6879; }
.w21 { --pop: #A5CD50; --tint: #9DB36F; }
.w22 { --pop: #3E8CE0; --tint: #93B5D9; }
.w23 { --pop: #CDA751; --tint: #E5DECE; }
.w24 { --pop: #88C15C; --tint: #9FAB96; }
.w25 { --pop: #D4B14A; --tint: #CEC19B; }
.w26 { --pop: #7FD14C; --tint: #9DC286; }
.w27 { --pop: #705CC1; --tint: #48435D; }
.w28 { --pop: #B65CC1; --tint: #E2D2E4; }
.w29 { --pop: #E09B3E; --tint: #D9B584; }
.w30 { --pop: #C1935C; --tint: #DED8D1; }

/* Reveal on scroll (site.js adds .in). Without JS or with reduced motion, everything just shows. */
.js [data-reveal] {
  opacity: 0; translate: 0 48px;
  transition: opacity 600ms ease, translate 800ms cubic-bezier(.2, 1.25, .4, 1), scale 800ms cubic-bezier(.2, 1.4, .4, 1);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js [data-reveal="pop"] { translate: 0 24px; scale: 0.82; }
.js [data-reveal="right"] { translate: 80px 0; }
.js [data-reveal="left"] { translate: -80px 0; }
.js [data-reveal].in { opacity: 1; translate: 0 0; scale: 1; }

/* Parallax layers (site.js sets --py) */
[data-speed] { transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; translate: none; scale: none; transition: none; }
  [data-speed] { transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .spin img { animation: spin 16s linear infinite; }
  .bob img { animation: float 3.4s ease-in-out infinite; }
  @keyframes spin { to { rotate: 360deg; } }
}

/* Scenery cut-outs from the home screen (exported by the game), framing each section.
   "front" pieces sit on the rounded top edge of a section, in front of everything;
   "side" trees stand behind the content and only show on wide screens. */
.sheet > .wrap, .sheet > .tour { position: relative; z-index: 1; }
.scene { position: absolute; inset: 0; pointer-events: none; overflow-x: clip; }
.sc { position: absolute; max-width: none; height: auto; }
.sc.front { z-index: 3; }
.sc.side { z-index: 0; display: none; }
@media (min-width: 1000px) { .sc.side { display: block; } }
.hero-content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; width: min(100%, 48rem); }
/* Logo up top, buttons down by the bean, and the tagline floating evenly in the space between. */
.hero .tagline { margin-block: auto; padding-block: 24px; }


/* A full hedge where the hero meets the worlds section, open in the middle where the path meets it */
.p-hedge-l1 { width: clamp(190px, 24vw, 340px); left: -70px; top: -96px; }
.p-hedge-l2 { width: clamp(130px, 15vw, 230px); left: 13%; top: -66px; }
.p-flowers-l { width: clamp(90px, 10vw, 150px); left: 4%; top: -14px; z-index: 4; }
.p-hedge-r1 { width: clamp(200px, 25vw, 350px); right: -70px; top: -100px; }
.p-hedge-r2 { width: clamp(130px, 15vw, 230px); right: 14%; top: -68px; }
.p-hedge-r3 { width: clamp(100px, 11vw, 170px); right: 29%; top: -48px; }
.p-rock-r   { width: clamp(80px, 8vw, 130px); right: 25%; top: -30px; z-index: 4; }
.p-flowers-r { width: clamp(90px, 10vw, 150px); right: 6%; top: -12px; z-index: 4; }
@media (max-width: 599px) { .p-hedge-r3, .p-rock-r { display: none; } }
.p-lolly1 { width: clamp(34px, 4vw, 54px); left: clamp(120px, 17vw, 260px); bottom: calc(100% - 26px); z-index: 2; }
.p-lolly2 { width: clamp(30px, 3.4vw, 46px); left: clamp(160px, 21vw, 320px); bottom: calc(100% - 18px); z-index: 2; }

/* Puffy clouds in layers: far ones small, soft and slow; near ones bigger, crisper and quicker to scroll by. */
.cloud-far  { opacity: 0.7; filter: blur(0.6px); }
.cloud-mid  { opacity: 0.85; }
.w-cloud-1 { width: clamp(110px, 11vw, 170px); left: 6%; top: 70px; }
.w-cloud-2 { width: clamp(120px, 12vw, 190px); right: 9%; top: 150px; }
.w-cloud-3 { width: clamp(200px, 24vw, 360px); left: -70px; top: 250px; }
.w-cloud-4 { width: clamp(210px, 26vw, 390px); right: -90px; top: 420px; }
.w-cloud-5 { width: clamp(90px, 9vw, 140px); left: 18%; top: 480px; }
@media (max-width: 899px) { .w-cloud-1, .w-cloud-5 { display: none; } }



.e-cloud  { width: clamp(180px, 22vw, 330px); right: -80px; top: 150px; }
.e-cloud-2 { width: clamp(100px, 10vw, 160px); right: 16%; top: 60px; }
.e-lolly1 { width: clamp(34px, 4vw, 54px); left: clamp(48px, 7vw, 120px); bottom: calc(100% - 26px); z-index: 2; }
.e-lolly2 { width: clamp(30px, 3.4vw, 46px); left: clamp(90px, 11vw, 182px); bottom: calc(100% - 18px); z-index: 2; }
.e-bush-l { width: clamp(130px, 15vw, 220px); left: -40px; top: -60px; }


/* The traveling bean (site.js): hops from spot to spot as you scroll */
.bean-spot { position: absolute; width: 0; height: 0; pointer-events: none; }
.spot-hero  { left: 50%; bottom: 80px; }
@media (max-aspect-ratio: 750/1000) {
  .spot-hero, .hero-bean { bottom: calc(67.27cqw - var(--drop)); }
  .hero { padding-top: 78px; padding-bottom: calc(67.27cqw - var(--drop) + 170px); }
  .hero .tagline { padding-block: 0; margin-block: max(18px, 2.5svh) auto; }
  .hero .cta-line { gap: 16px; margin-top: 24px; }
}
/* Short phones (iPhone SE and friends): a slightly smaller logo and tighter gaps keep the bean on screen. */
@media (max-aspect-ratio: 750/1000) and (max-height: 640px) {
  .hero { min-height: 100svh; padding-top: 68px; padding-bottom: calc(67.27cqw - var(--drop) + 150px); }
  .hero h1 { width: min(44vw, 290px); }
  .hero .tagline { margin-top: 14px; }
  .hero .cta-line { gap: 12px; margin-top: 18px; }
}
.bigstats li, .toy, .shots li, .extra { position: relative; }
.spot-stat  { left: 50%; top: 6px; }
.spot-rail  { left: calc(var(--p, 0.033) * 100%); top: 2px; }

.traveler {
  position: fixed; left: 0; top: 0; z-index: 30; width: 110px;
  pointer-events: none; will-change: transform;
}
.traveler img { display: block; width: 100%; transform-origin: 50% 85%; }
.bean-travels .hero-bean, .bean-travels .bean-wave { visibility: hidden; }
@media (prefers-reduced-motion: no-preference) {
}

/* The finale: a sunset over the meadow. The bean's last stop is on the path, with rays spinning behind it
   like the game's World Clear screen and confetti falling once you get here. */
.get {
  --h2-pop: var(--pink); --foot: 150px;
  position: relative; overflow: hidden; isolation: isolate; text-align: center; container-type: inline-size;
  --sun-y: calc(var(--foot) + 20cqw);
  padding-top: 32px; padding-bottom: calc(var(--foot) + 26cqw + 16px);
  background: linear-gradient(var(--sun), #FFC76E 30%, #FFA27E 62%, #F99AB4);
}
.get p { max-width: 34rem; margin-inline: auto; }
.get .cta-line { display: flex; justify-content: center; margin-top: 34px; }
.get h2 { margin-bottom: 18px; }
.get .lede { max-width: 56rem; }
.get .wrap { z-index: 3; }
.get-sky { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.get-glow {
  position: absolute; left: 50%; bottom: var(--sun-y); width: 900px; aspect-ratio: 1; translate: -50% 50%;
  background: radial-gradient(circle, rgb(255 250 220 / 0.95), rgb(255 236 170 / 0.5) 30%, rgb(255 220 150 / 0) 62%);
}
.get-rays {
  position: absolute; left: 50%; bottom: var(--sun-y); width: max(1500px, 140vw); aspect-ratio: 1; translate: -50% 50%;
  background: repeating-conic-gradient(rgb(255 255 255 / 0.34) 0deg 8deg, rgb(255 255 255 / 0) 8deg 18deg);
  -webkit-mask-image: radial-gradient(circle, #000 6%, rgb(0 0 0 / 0.6) 22%, transparent 48%);
          mask-image: radial-gradient(circle, #000 6%, rgb(0 0 0 / 0.6) 22%, transparent 48%);
}
.get-cloud { position: absolute; width: clamp(170px, 22vw, 320px); opacity: 0.95; }
.get-cloud.c1 { left: -60px; top: 18%; }
.get-cloud.c2 { right: -80px; top: 8%; width: clamp(200px, 28vw, 400px); }
.get-cloud.c3 { right: 8%; top: 46%; width: clamp(120px, 15vw, 220px); opacity: 0.8; }
/* The meadow from the home screen, placed so the bean's spot on the path sits --foot above the bottom. */
.get-ground { position: absolute; left: 0; width: 100%; aspect-ratio: 1000 / 956; bottom: min(0px, calc(var(--foot) - 29.6cqw)); z-index: -1; pointer-events: none; }
.gl { position: absolute; inset: 0; }
.gl img { display: block; width: 100%; height: 100%; }
/* Golden hour: the distant rocks and the water warm up and haze over a little. */
.gl-far { filter: sepia(0.35) saturate(1.2) hue-rotate(-12deg) brightness(1.04); opacity: 0.92; }
.gl-mid { filter: sepia(0.18) saturate(1.1) hue-rotate(-6deg); }
.get .bean-wave, .spot-get { position: absolute; left: 50%; bottom: var(--foot); }
.get .bean-wave { width: clamp(125px, 13.6vw, 192px); translate: -50% 0; }
@media (max-aspect-ratio: 750/1000) {
  .get-ground { aspect-ratio: 440 / 956; bottom: min(0px, calc(var(--foot) - 67.27cqw)); }
  .get { --foot: 120px; --sun-y: calc(var(--foot) + 46cqw); padding-top: 36px; padding-bottom: calc(var(--foot) + 62cqw + 30px); }
}

.confetti { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: 0; left: var(--l); height: 100%; width: 16px; transform: translateY(-6%); }
.confetti i::before {
  content: ""; display: block; width: var(--w); height: var(--h); border-radius: var(--r); background: var(--c);
  box-shadow: inset 0 -2px 0 rgb(0 0 0 / 0.12);
}
@media (prefers-reduced-motion: no-preference) {
  .get-rays { animation: spin 90s linear infinite; }
  .get-cloud { animation: drift-x 14s ease-in-out infinite alternate; }
  .get-cloud.c2 { animation-duration: 19s; animation-direction: alternate-reverse; }
  .confetti i { animation: fall var(--d) linear var(--delay) infinite paused; }
  .confetti i::before { animation: flutter 1.3s ease-in-out infinite alternate; }
  .confetti.in i { animation-play-state: running; }
  @keyframes fall { from { transform: translateY(-6%); } to { transform: translateY(100%); } }
  @keyframes flutter { from { transform: translateX(-10px) rotate(0deg) scaleY(1); } to { transform: translateX(10px) rotate(320deg) scaleY(0.4); } }
  @keyframes drift-x { from { translate: -30px 0; } to { translate: 40px 0; } }
}
@media (prefers-reduced-motion: reduce) { .confetti { display: none; } }
.confetti i:nth-child(1) { --l: 11%; --d: 6.0s; --delay: -0.00s; --w: 8px; --h: 10px; --c: var(--pink); --r: 50%; }
.confetti i:nth-child(2) { --l: 48%; --d: 7.7s; --delay: -0.83s; --w: 13px; --h: 13px; --c: var(--teal); --r: 2px; }
.confetti i:nth-child(3) { --l: 85%; --d: 9.4s; --delay: -1.66s; --w: 11px; --h: 16px; --c: #FFB23F; --r: 2px; }
.confetti i:nth-child(4) { --l: 22%; --d: 6.6s; --delay: -2.49s; --w: 9px; --h: 11px; --c: var(--purple); --r: 2px; }
.confetti i:nth-child(5) { --l: 59%; --d: 8.3s; --delay: -3.32s; --w: 14px; --h: 14px; --c: var(--sprout); --r: 2px; }
.confetti i:nth-child(6) { --l: 96%; --d: 10.0s; --delay: -4.15s; --w: 12px; --h: 17px; --c: #5BC0EB; --r: 50%; }
.confetti i:nth-child(7) { --l: 33%; --d: 7.2s; --delay: -4.98s; --w: 10px; --h: 12px; --c: var(--white); --r: 2px; }
.confetti i:nth-child(8) { --l: 70%; --d: 8.9s; --delay: -5.81s; --w: 8px; --h: 15px; --c: var(--pink-shade); --r: 2px; }
.confetti i:nth-child(9) { --l: 7%; --d: 6.1s; --delay: -6.64s; --w: 13px; --h: 10px; --c: var(--pink); --r: 2px; }
.confetti i:nth-child(10) { --l: 44%; --d: 7.8s; --delay: -7.47s; --w: 11px; --h: 13px; --c: var(--teal); --r: 2px; }
.confetti i:nth-child(11) { --l: 81%; --d: 9.5s; --delay: -0.80s; --w: 9px; --h: 16px; --c: #FFB23F; --r: 50%; }
.confetti i:nth-child(12) { --l: 18%; --d: 6.7s; --delay: -1.63s; --w: 14px; --h: 11px; --c: var(--purple); --r: 2px; }
.confetti i:nth-child(13) { --l: 55%; --d: 8.4s; --delay: -2.46s; --w: 12px; --h: 14px; --c: var(--sprout); --r: 2px; }
.confetti i:nth-child(14) { --l: 92%; --d: 10.1s; --delay: -3.29s; --w: 10px; --h: 17px; --c: #5BC0EB; --r: 2px; }
.confetti i:nth-child(15) { --l: 29%; --d: 7.3s; --delay: -4.12s; --w: 8px; --h: 12px; --c: var(--white); --r: 2px; }
.confetti i:nth-child(16) { --l: 66%; --d: 9.0s; --delay: -4.95s; --w: 13px; --h: 15px; --c: var(--pink-shade); --r: 50%; }
.confetti i:nth-child(17) { --l: 3%; --d: 6.2s; --delay: -5.78s; --w: 11px; --h: 10px; --c: var(--pink); --r: 2px; }
.confetti i:nth-child(18) { --l: 40%; --d: 7.9s; --delay: -6.61s; --w: 9px; --h: 13px; --c: var(--teal); --r: 2px; }
.confetti i:nth-child(19) { --l: 77%; --d: 9.6s; --delay: -7.44s; --w: 14px; --h: 16px; --c: #FFB23F; --r: 2px; }
.confetti i:nth-child(20) { --l: 14%; --d: 6.8s; --delay: -0.77s; --w: 12px; --h: 11px; --c: var(--purple); --r: 2px; }
.confetti i:nth-child(21) { --l: 51%; --d: 8.5s; --delay: -1.60s; --w: 10px; --h: 14px; --c: var(--sprout); --r: 50%; }
.confetti i:nth-child(22) { --l: 88%; --d: 10.2s; --delay: -2.43s; --w: 8px; --h: 17px; --c: #5BC0EB; --r: 2px; }
.confetti i:nth-child(23) { --l: 25%; --d: 7.4s; --delay: -3.26s; --w: 13px; --h: 12px; --c: var(--white); --r: 2px; }
.confetti i:nth-child(24) { --l: 62%; --d: 9.1s; --delay: -4.09s; --w: 11px; --h: 15px; --c: var(--pink-shade); --r: 2px; }
.confetti i:nth-child(25) { --l: 99%; --d: 6.3s; --delay: -4.92s; --w: 9px; --h: 10px; --c: var(--pink); --r: 2px; }
.confetti i:nth-child(26) { --l: 36%; --d: 8.0s; --delay: -5.75s; --w: 14px; --h: 13px; --c: var(--teal); --r: 50%; }
.confetti i:nth-child(27) { --l: 73%; --d: 9.7s; --delay: -6.58s; --w: 12px; --h: 16px; --c: #FFB23F; --r: 2px; }
.confetti i:nth-child(28) { --l: 10%; --d: 6.9s; --delay: -7.41s; --w: 10px; --h: 11px; --c: var(--purple); --r: 2px; }
.confetti i:nth-child(29) { --l: 47%; --d: 8.6s; --delay: -0.74s; --w: 8px; --h: 14px; --c: var(--sprout); --r: 2px; }
.confetti i:nth-child(30) { --l: 84%; --d: 10.3s; --delay: -1.57s; --w: 13px; --h: 17px; --c: #5BC0EB; --r: 2px; }
.confetti i:nth-child(31) { --l: 21%; --d: 7.5s; --delay: -2.40s; --w: 11px; --h: 12px; --c: var(--white); --r: 50%; }
.confetti i:nth-child(32) { --l: 58%; --d: 9.2s; --delay: -3.23s; --w: 9px; --h: 15px; --c: var(--pink-shade); --r: 2px; }
.confetti i:nth-child(33) { --l: 95%; --d: 6.4s; --delay: -4.06s; --w: 14px; --h: 10px; --c: var(--pink); --r: 2px; }
.confetti i:nth-child(34) { --l: 32%; --d: 8.1s; --delay: -4.89s; --w: 12px; --h: 13px; --c: var(--teal); --r: 2px; }
.confetti i:nth-child(35) { --l: 69%; --d: 9.8s; --delay: -5.72s; --w: 10px; --h: 16px; --c: #FFB23F; --r: 2px; }
.confetti i:nth-child(36) { --l: 6%; --d: 7.0s; --delay: -6.55s; --w: 8px; --h: 11px; --c: var(--purple); --r: 50%; }

/* "See it in action": the PLAY button with a play icon, opening the gameplay video. */
.btn-watch { gap: 12px; padding-left: 18px; }
.play-ico {
  position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--white); box-shadow: 0 3px 0 var(--lip);
}
.play-ico::after {
  content: ""; position: absolute; left: 13px; top: 9px;
  border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent var(--teal-dark);
}
@media (prefers-reduced-motion: no-preference) {
  .btn-watch .play-ico { animation: pulse 2.2s ease-in-out infinite; }
  @keyframes pulse { 0%, 70%, 100% { scale: 1; } 80% { scale: 1.16; } 90% { scale: 0.96; } }
}

.video-modal {
  border: 0; padding: 0; background: none; overflow: visible; max-width: none; max-height: none;
  width: min(92vw, calc((100svh - 80px) * 1320 / 2698 + 20px));
}
.video-modal::backdrop { background: rgb(28 30 52 / 0.78); backdrop-filter: blur(6px); }
.video-modal[open] { animation: modal-pop 320ms cubic-bezier(.2, 1.3, .4, 1); }
@keyframes modal-pop { from { scale: 0.85; opacity: 0; } }
.video-phone { position: relative; padding: 10px; border-radius: 44px; background: var(--ink); box-shadow: 0 30px 60px rgb(0 0 0 / 0.35); }
.video-phone video { display: block; width: 100%; aspect-ratio: 1320 / 2698; border-radius: 34px; background: #1b2a3a; object-fit: cover; }
.video-missing {
  display: none; position: absolute; inset: 10px; place-items: center; margin: 0; padding: 24px;
  border-radius: 34px; background: var(--sky-wash); color: var(--ink); font-weight: 800; text-align: center;
}
.video-modal.no-video .video-missing { display: grid; }
.modal-close {
  position: absolute; top: -14px; right: -14px; z-index: 2; width: 48px; height: 48px; border-radius: 50%;
  border: 2.5px solid var(--ink); background: var(--white); cursor: pointer; box-shadow: 0 4px 0 var(--ink);
}
.modal-close::before, .modal-close::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 20px; height: 3.5px; border-radius: 2px;
  background: var(--ink); translate: -50% -50%; rotate: 45deg;
}
.modal-close::after { rotate: -45deg; }
.modal-close:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }

/* Sound toggle, a twin of the close button on the other corner. */
.modal-sound {
  position: absolute; top: -14px; left: -14px; z-index: 2; width: 48px; height: 48px; border-radius: 50%; padding: 0;
  display: grid; place-items: center;
  border: 2.5px solid var(--ink); background: var(--white); cursor: pointer; box-shadow: 0 4px 0 var(--ink);
}
.modal-sound svg { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.modal-sound .spk { fill: var(--ink); }
.modal-sound .slash { display: none; }
.modal-sound[aria-pressed="false"] .wave { display: none; }
.modal-sound[aria-pressed="false"] .slash { display: block; }
.modal-sound:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }

/* The travelling bean's own ground shadow: it stays on the ground and shrinks as the bean leaves it. */
.traveler::after {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 79%; width: 64%; height: 13%; translate: -50% 0;
  border-radius: 50%; background: radial-gradient(closest-side, rgb(25 55 35 / 0.38), rgb(25 55 35 / 0));
  opacity: 0; transition: opacity 150ms;
}
.traveler.excited::after, .traveler.hop::after, .traveler.cheer::after { opacity: 1; }

/* One continuous bounce for the travelling bean: its excited wait at the start, its hops along the world-tour bar
   (small and quick) and its cheering at the finale (bigger). Like a rubber ball, it never rests on the ground:
   it rises decelerating and falls accelerating (quadratic, real projectile motion), touches down for a single
   instant, squashes through the contact and springs straight back up. Height and squash are two separate
   animations in lockstep; the ground shadow follows the height curve. */
@media (prefers-reduced-motion: no-preference) {
  .traveler.excited { --hop-h: 30px; --hop-t: 0.8s; }
  .traveler.hop     { --hop-h: 14px; --hop-t: 0.42s; }
  .traveler.cheer   { --hop-h: 42px; --hop-t: 0.95s; }
  .traveler.excited img, .traveler.hop img, .traveler.cheer img {
    animation: bean-rise var(--hop-t) infinite, bean-squash var(--hop-t) infinite;
  }
  .traveler.excited::after, .traveler.hop::after, .traveler.cheer::after {
    animation: bean-shadow var(--hop-t) infinite;
  }
  @keyframes bean-rise {
    0%   { translate: 0 0; animation-timing-function: cubic-bezier(0.5, 1, 0.89, 1); }
    50%  { translate: 0 calc(-1 * var(--hop-h)); animation-timing-function: cubic-bezier(0.11, 0, 0.5, 0); }
    100% { translate: 0 0; }
  }
  @keyframes bean-squash {
    0%   { scale: 1.1 0.9; animation-timing-function: ease-out; }
    9%   { scale: 0.95 1.06; animation-timing-function: ease-in-out; }
    24%  { scale: 1 1; }
    76%  { scale: 1 1; animation-timing-function: ease-in-out; }
    93%  { scale: 0.96 1.05; animation-timing-function: ease-in; }
    100% { scale: 1.1 0.9; }
  }
  @keyframes bean-shadow {
    0%   { scale: 1.08; opacity: 1; animation-timing-function: cubic-bezier(0.5, 1, 0.89, 1); }
    50%  { scale: 0.66; opacity: 0.5; animation-timing-function: cubic-bezier(0.11, 0, 0.5, 0); }
    100% { scale: 1.08; opacity: 1; }
  }
}

/* Where a section's little badge used to be, the bean perches above the title and bounces, clear of the text. */
.bean-perch { position: relative; height: calc(clamp(78px, 8.5vw, 120px) * 0.82 + 36px); margin-bottom: 4px; }
.bean-perch .bean-spot { left: 50%; bottom: 0; }

/* Clouds drift gently back and forth as well as parallaxing (different speeds, so they never move in step). */
@media (prefers-reduced-motion: no-preference) {
  .cloud-far, .cloud-mid, .cloud-near { animation: drift-x 16s ease-in-out infinite alternate; }
  .cloud-far { animation-duration: 22s; }
  .w-cloud-2, .w-cloud-4, .e-cloud-2 { animation-direction: alternate-reverse; }
}

/* The hillscape at the bottom of the worlds section (sky into grass). Positions are % across and px up from
   the bottom of the band; sizes follow the screen width. */
.hillscape { --hs-h: 300px; position: absolute; left: 0; right: 0; bottom: 0; height: var(--hs-h); pointer-events: none; overflow-x: clip; }
.hs-layer { position: absolute; inset: 0; }
.hs-front { z-index: 3; }
.hill { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; }
.hs-far .hill { bottom: -40px; }  /* items on the far ridge allow for this 40px drop */
.hs { position: absolute; height: auto; max-width: none; }
.hs.far { opacity: 0.85; filter: saturate(0.75) brightness(1.08); }
.f-tree1 { width: clamp(50px, 5vw, 80px);  left: 26%; bottom: calc(var(--hs-h) * 0.673 - 48px); }
.f-tree2 { width: clamp(40px, 4vw, 64px);  left: 31%; bottom: calc(var(--hs-h) * 0.659 - 48px); }
.f-bush  { width: clamp(60px, 6vw, 96px);  left: 57%; bottom: calc(var(--hs-h) * 0.551 - 50px); }
.f-tree3 { width: clamp(46px, 4.6vw, 74px); left: 79%; bottom: calc(var(--hs-h) * 0.709 - 48px); }
.n-tree-l  { width: clamp(140px, 15vw, 230px); left: 2%; bottom: calc(var(--hs-h) * 0.337 - 12px); }
.n-bush-l  { width: clamp(120px, 13vw, 200px); left: 12%; bottom: calc(var(--hs-h) * 0.338 - 14px); }
.n-lolly1  { width: clamp(26px, 2.6vw, 40px); left: 25%; bottom: calc(var(--hs-h) * 0.323 - 6px); }
.n-lolly2  { width: clamp(22px, 2.2vw, 34px); left: 28%; bottom: calc(var(--hs-h) * 0.316 - 6px); }
.n-rock    { width: clamp(70px, 7vw, 110px); left: 36%; bottom: calc(var(--hs-h) * 0.301 - 10px); }
.n-flowers1 { width: clamp(90px, 9vw, 140px); left: 44%; bottom: calc(var(--hs-h) * 0.315 - 8px); }
.n-flowers2 { width: clamp(80px, 8vw, 120px); left: 70%; bottom: calc(var(--hs-h) * 0.360 - 8px); }
.n-rock2   { width: clamp(56px, 5.5vw, 86px); left: 76%; bottom: calc(var(--hs-h) * 0.349 - 10px); }
.n-bush-r  { width: clamp(130px, 14vw, 210px); right: 12%; bottom: calc(var(--hs-h) * 0.344 - 14px); }
.n-tree-r  { width: clamp(160px, 17vw, 260px); right: 1%; bottom: calc(var(--hs-h) * 0.332 - 12px); }
.fr-bush-l { width: clamp(170px, 20vw, 300px); left: -50px; bottom: -70px; }
.fr-bush-r { width: clamp(170px, 20vw, 300px); right: -50px; bottom: -64px; }
@media (max-width: 700px) {
  .hillscape { --hs-h: 220px; }
  #worlds { padding-bottom: 250px; }
  .f-tree2, .n-rock2, .n-flowers2, .n-bush-l { display: none; }
  .f-tree1 { width: 44px; left: 22%; bottom: calc(var(--hs-h) * 0.674 - 48px); }
  .f-tree3 { width: 40px; left: 74%; bottom: calc(var(--hs-h) * 0.701 - 48px); }
  .f-bush  { width: 56px; left: 50%; bottom: calc(var(--hs-h) * 0.538 - 50px); }
  .n-tree-l { width: 104px; left: -2%; bottom: calc(var(--hs-h) * 0.340 - 12px); }
  .n-tree-r { width: 116px; right: -3%; bottom: calc(var(--hs-h) * 0.332 - 12px); }
  .n-lolly1 { width: 22px; left: 26%; bottom: calc(var(--hs-h) * 0.317 - 6px); }
  .n-lolly2 { width: 19px; left: 31%; bottom: calc(var(--hs-h) * 0.307 - 6px); }
  .n-rock   { width: 58px; left: 36%; bottom: calc(var(--hs-h) * 0.304 - 10px); }
  .n-flowers1 { width: 80px; left: 46%; bottom: calc(var(--hs-h) * 0.351 - 8px); }
    .n-bush-r { width: 96px; right: 6%; bottom: calc(var(--hs-h) * 0.344 - 14px); }
  .fr-bush-l { width: 140px; left: -40px; bottom: -46px; }
  .fr-bush-r { width: 140px; right: -40px; bottom: -42px; }
}

/* The lollipop grove at the bottom of the toys section. Items stand on the meadow above the cream hills
   (the hills are drawn in front of them, so nothing's feet ever show below the hill line). */
.grove { --hs-h: 340px; }
.grove .hs-far .hs { opacity: 0.8; filter: saturate(0.7) brightness(1.1); }
.g-far1 { width: clamp(46px, 4.4vw, 70px); left: 8%;  bottom: 214px; }
.g-far2 { width: clamp(60px, 5.6vw, 90px); left: 22%; bottom: 206px; }
.g-far3 { width: clamp(56px, 5.4vw, 86px); left: 41%; bottom: 210px; }
.g-far4 { width: clamp(44px, 4.2vw, 66px); left: 58%; bottom: 218px; }
.g-far5 { width: clamp(56px, 5.2vw, 84px); left: 70%; bottom: 204px; }
.g-far6 { width: clamp(46px, 4.4vw, 70px); left: 86%; bottom: 212px; }
.g-tree-l { width: clamp(150px, 16vw, 240px); left: 1%;  bottom: 96px; }
.g-l1  { width: clamp(30px, 3vw, 46px);   left: 17%; bottom: 112px; }
.g-l2  { width: clamp(24px, 2.4vw, 36px); left: 20.5%; bottom: 108px; }
.g-bush1 { width: clamp(110px, 11vw, 170px); left: 23%; bottom: 92px; }
.g-rock1 { width: clamp(64px, 6vw, 96px); left: 35%; bottom: 100px; }
.g-l3  { width: clamp(22px, 2.2vw, 34px); left: 42%; bottom: 122px; }
.g-l4  { width: clamp(34px, 3.4vw, 52px); left: 45%; bottom: 112px; }
.g-fl1 { width: clamp(90px, 9vw, 140px); left: 48%; bottom: 96px; }
.g-l5  { width: clamp(26px, 2.6vw, 40px); left: 59%; bottom: 116px; }
.g-l6  { width: clamp(30px, 3vw, 46px);   left: 62%; bottom: 110px; }
.g-rock2 { width: clamp(80px, 8vw, 124px); left: 66%; bottom: 94px; }
.g-bush2 { width: clamp(120px, 12vw, 190px); right: 14%; bottom: 90px; }
.g-fl2 { width: clamp(80px, 8vw, 120px); left: 76%; bottom: 100px; }
.g-tree-r { width: clamp(160px, 17vw, 260px); right: 0; bottom: 92px; }
.hs-cream { z-index: 2; }
.g-fr-l { width: clamp(170px, 20vw, 300px); left: -50px; bottom: 30px; }
.g-fr-r { width: clamp(170px, 20vw, 300px); right: -50px; bottom: 26px; }
.g-fr-fl { width: clamp(90px, 9vw, 140px); left: 18%; bottom: 52px; }
@media (max-width: 700px) {
  .grove { --hs-h: 260px; }
  #toys { padding-bottom: 290px; }
  .g-far2, .g-far5, .g-l3, .g-l4, .g-fl2, .g-rock1, .g-fr-fl { display: none; }
  .g-far1 { bottom: 160px; } .g-far3 { bottom: 156px; } .g-far4 { bottom: 162px; } .g-far6 { bottom: 158px; }
  .g-tree-l { width: 108px; left: -3%; bottom: 74px; }
  .g-tree-r { width: 118px; right: -4%; bottom: 70px; }
  .g-l1 { width: 24px; left: 24%; bottom: 86px; } .g-l2 { width: 20px; left: 30%; bottom: 82px; }
  .g-bush1 { width: 90px; left: 34%; bottom: 70px; }
  .g-l5 { width: 22px; left: 58%; bottom: 86px; } .g-l6 { width: 24px; left: 63%; bottom: 82px; }
  .g-rock2 { width: 64px; left: 54%; bottom: 72px; } .g-bush2 { width: 90px; right: 18%; bottom: 68px; }
  .g-fl1 { width: 80px; left: 40%; bottom: 74px; }
  .g-fr-l { width: 140px; left: -40px; bottom: 20px; } .g-fr-r { width: 140px; right: -40px; bottom: 18px; }
}

/* The small print under the finale's beta button. */

