/* Little Worlds: Stickers. The app's look: warm brown ink outlines, flat fills, white die-cut borders, Fredoka. */

@font-face {
  font-family: 'Fredoka';
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/fredoka-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Fredoka';
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/fredoka-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Fredoka';
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/fredoka-700.woff2') format('woff2');
}

:root {
  color-scheme: light;
  --ink: #4a3426;
  --ink-soft: #6b5446;
  --paper: #fffdf7;
  --sky: #8fd3ff;
  --sky-deep: #5bb8f5;
  --sky-top: #5dbdfb;
  --sky-low: #d8f2ff;
  --grass: #8bd46a;
  --grass-light: #b7e58e;
  --grass-deep: #5fb548;
  --sun: #ffd34d;
  --berry: #ff6b8b;
  --orange: #ff9f43;
  --grape: #9c7cf4;
  --mint: #4fd1b5;
  --cheek: #ff9aa8;
  --night: #1b2559;
  --white: #fff;
  --shadow: 0 6px 0 rgba(74, 52, 38, 0.18), 0 10px 24px rgba(74, 52, 38, 0.16);
  --font: 'Fredoka', ui-rounded, 'SF Pro Rounded', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 500;
  font-size: clamp(17px, 0.35vw + 15.5px, 19px);
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  overflow-x: clip;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

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

:focus-visible {
  outline: 3px solid var(--berry);
  outline-offset: 3px;
}

/* the shared ink outline (art exported from the app uses class="o") */
svg .o {
  stroke: var(--ink);
  stroke-linejoin: round;
  stroke-linecap: round;
}

/* ---------- stickers ---------- */

.stk {
  appearance: none;
  display: block;
  position: relative;
  width: 120px;
  aspect-ratio: 1;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}
.stk .mv,
.stk .tn {
  display: block;
  width: 100%;
  height: 100%;
}
.stk svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.stk.flip svg {
  transform: scaleX(-1);
}
.stk:focus-visible {
  outline-offset: 0;
  border-radius: 28%;
}
.stk.playing {
  z-index: 3;
}

/* a sticker made by another one (an egg, a bubble) pops in; one that leaves shrinks away */
.stk.spawned {
  z-index: 2;
  animation: pop-in 0.4s cubic-bezier(0.3, 1.6, 0.5, 1) both;
}
.stk.leaving {
  transition: scale 0.22s ease-in, opacity 0.22s ease-in;
  scale: 0.2;
  opacity: 0;
}
@keyframes pop-in {
  from {
    scale: 0.4;
    opacity: 0;
  }
}

/* speech bubble ("Moo!"), like the app's */
.bub {
  position: absolute;
  left: 50%;
  bottom: 96%;
  z-index: 5;
  padding: 0.12em 0.7em 0.16em;
  font: 700 clamp(13px, 1.1vw + 7px, 20px) / 1.2 var(--font);
  color: var(--ink);
  white-space: nowrap;
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 1em;
  opacity: 0;
  transform: translateX(-50%) scale(0.6);
  pointer-events: none;
}
.bub::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 11px;
  height: 11px;
  margin-left: -6px;
  background: var(--white);
  border: solid var(--ink);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}
.bub.on {
  opacity: 1;
  transform: translateX(-50%);
  animation: bub-pop 0.28s cubic-bezier(0.3, 1.7, 0.5, 1);
}
@keyframes bub-pop {
  from {
    opacity: 0;
    transform: translate(-50%, 10px) scale(0.6);
  }
}
@media (prefers-reduced-motion: reduce) {
  .bub.on {
    animation: none;
  }
}

/* ---------- shared pieces ---------- */

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 50;
  padding: 8px 16px;
  font-weight: 700;
  color: var(--ink);
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 14px;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}

.wrap {
  width: min(100% - 2 * var(--gutter), 1200px);
  margin-inline: auto;
}
.center {
  text-align: center;
}

/* sticker lettering: white (or sun) fill, thick ink outline, a hard shadow below */
.title,
.logo .word {
  margin: 0;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.01em;
  color: var(--white);
  -webkit-text-stroke: 0.2em var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 0.08em 0 var(--ink);
}
.title {
  font-size: clamp(34px, 3.4vw + 18px, 58px);
  text-wrap: balance;
}
.title.small {
  font-size: clamp(26px, 1.6vw + 18px, 36px);
}
.sub {
  margin: 0.7em auto 0;
  max-width: 36em;
  font-size: 1.08em;
  text-wrap: pretty;
}

/* the die-cut card: a thick white border inside an ink outline (the app's home cards) */
.card {
  position: relative;
  padding: 7px;
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 32px;
  box-shadow: 0 6px 10px rgba(74, 52, 38, 0.3);
}
.card-in {
  position: relative;
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: 24px;
  background: var(--paper);
}
.peel {
  position: absolute;
  top: 2px;
  right: 2px;
  width: clamp(30px, 10%, 64px);
  height: auto;
}
.badge {
  position: absolute;
  top: -12px;
  left: -10px;
  z-index: 4;
  padding: 2px 12px 3px;
  font-weight: 700;
  font-size: clamp(14px, 0.6vw + 11px, 19px);
  color: var(--white);
  background: var(--berry);
  border: 3px solid var(--ink);
  border-radius: 14px;
  transform: rotate(-8deg);
  -webkit-text-stroke: 0.12em var(--ink);
  paint-order: stroke fill;
}
.scenery {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* round white button like the app's top buttons */
.round-btn,
.pill-btn,
.m-say {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  color: var(--ink);
  font: 600 15px/1 var(--font);
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: 0 3px 0 rgba(74, 52, 38, 0.35);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.round-btn:active,
.pill-btn:active,
.m-say:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 rgba(74, 52, 38, 0.35);
}
.round-btn {
  width: 44px;
  height: 44px;
  padding: 0;
}
.pill-btn {
  min-height: 40px;
  padding: 4px 14px 4px 8px;
}
.round-btn .icon,
.pill-btn .icon,
.m-say svg {
  width: 26px;
  height: 26px;
  display: block;
  position: relative;
}
/* muted: a slash over the speaker */
[data-sound-toggle] .icon::after {
  content: '';
  position: absolute;
  left: 50%;
  top: -2px;
  width: 4px;
  height: 30px;
  margin-left: -2px;
  background: var(--berry);
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  transform: rotate(-45deg);
  opacity: 0;
}
[data-sound-toggle][aria-pressed='false'] .icon::after {
  opacity: 1;
}

/* App Store badge: Apple's artwork, untouched, at least 40 px tall with clear space around it */
.get-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: 26px;
}
.badge-link {
  display: block;
  padding: 10px;
  margin: -10px;
  border-radius: 14px;
}
.badge-link img {
  height: 54px;
  width: auto;
}
.devices {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95em;
}
.devices::before {
  content: '';
  width: 14px;
  height: 22px;
  border: 2.5px solid currentColor;
  border-radius: 4px;
  box-shadow: 11px 3px 0 -2.5px var(--paper), 11px 3px 0 0 currentColor;
  margin-right: 10px;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 4vw + 48px, 96px) 0 0;
  background: linear-gradient(#5dbdfb, #d8f2ff 78%);
}
.sky {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.sun {
  position: absolute;
  left: clamp(-34px, 1vw - 30px, 8px);
  top: clamp(-34px, 1vw - 30px, 8px);
  width: clamp(92px, 7vw + 50px, 136px);
  aspect-ratio: 1;
}
.sun .rays {
  position: absolute;
  left: -330%;
  top: -330%;
  width: 760%;
  height: 760%;
  max-width: none;
  opacity: 0.3;
  animation: spin 120s linear infinite;
}
.sun .face {
  position: relative;
  width: 100%;
  height: 100%;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.cloud {
  position: absolute;
  display: block;
  width: var(--w, 150px);
  animation: drift var(--t, 90s) linear infinite;
  animation-delay: var(--d, 0s);
}
.cloud svg {
  width: 100%;
  height: auto;
}
.c1 {
  --w: clamp(80px, 6vw + 50px, 150px);
  --t: 95s;
  --d: -30s;
  top: 8px;
}
.c2 {
  --w: clamp(60px, 4vw + 40px, 110px);
  --t: 130s;
  --d: -95s;
  top: clamp(20px, 3vw, 44px);
}
@keyframes drift {
  from {
    transform: translateX(-30vw);
  }
  to {
    transform: translateX(110vw);
  }
}

.hero-in {
  position: relative;
  z-index: 2;
  width: min(100% - 2 * var(--gutter), 1240px);
  margin-inline: auto;
  display: grid;
  gap: 34px;
  align-items: center;
}
.hero-text {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.logo {
  display: flex;
  align-items: center;
  margin: 0;
  font-size: clamp(46px, 6.5vw + 14px, 86px);
}
.logo .globe {
  width: 1.32em;
  flex: none;
  margin-right: -0.06em;
}
.logo .globe svg {
  width: 100%;
  height: auto;
}
.logo .words {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.logo .word {
  color: var(--sun);
  white-space: nowrap;
}
.ribbon {
  margin-top: -0.08em;
  padding: 0.02em 0.55em 0.06em;
  font-size: 0.3em;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.3;
  color: var(--white);
  background: var(--berry);
  border: 3px solid var(--ink);
  border-radius: 0.6em;
  transform: rotate(-3deg);
}
.tagline {
  margin: 22px 0 0;
  font-weight: 700;
  font-size: clamp(25px, 1.6vw + 18px, 38px);
  line-height: 1.15;
  text-wrap: balance;
}
.lead {
  margin: 12px 0 0;
  max-width: 30em;
  font-size: 1.08em;
  text-wrap: pretty;
}
.hero .get-row {
  justify-content: center;
}

.hero-scene {
  position: relative;
  padding-bottom: 8px;
}
.scene-card {
  transform: rotate(1.2deg);
}
.scene {
  aspect-ratio: 3 / 2;
  container-type: size;
  background: var(--night);
}
/* stickers and the moon sit on the world's 1600 x 1000 canvas, which is cropped to fill the scene (like
   preserveAspectRatio slice); --x/--y are canvas units at the sticker's center, --w its width */
.scene > .stk,
.scene > .prop {
  --k: max(100cqw / 1600, 100cqh / 1000);
  position: absolute;
  width: calc(var(--w) * var(--k));
  left: calc(50cqw + (var(--x) - 800 - var(--w) / 2) * var(--k));
  top: calc(50cqh + (var(--y) - 500 - var(--w) / 2) * var(--k));
}
.scene > .prop svg {
  width: 100%;
  height: auto;
}
/* in a crowded scene only the drawing itself takes taps, not its empty corners */
.scene .stk {
  pointer-events: none;
}
.scene .stk svg * {
  pointer-events: visiblePainted;
}
.scene .bub {
  font-size: clamp(11px, 1.5cqw, 18px);
  border-width: 2px;
}
.scene-card .round-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 4;
}
.scene-card .peel {
  z-index: 3;
}
.hint {
  position: absolute;
  left: 50%;
  bottom: -18px;
  z-index: 4;
  margin: 0;
  transform: translateX(-50%) rotate(-2deg);
  transition: opacity 0.4s, transform 0.4s;
}
.hint span {
  display: block;
  padding: 4px 16px 6px;
  font-weight: 700;
  font-size: 17px;
  white-space: nowrap;
  background: var(--sun);
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: 0 3px 0 rgba(74, 52, 38, 0.35);
  animation: nudge 2.4s ease-in-out infinite;
}
.hint.gone {
  opacity: 0;
  transform: translate(-50%, 8px) rotate(-2deg);
}
@keyframes nudge {
  0%,
  70%,
  100% {
    transform: translateY(0);
  }
  80% {
    transform: translateY(-5px);
  }
  90% {
    transform: translateY(0);
  }
}

.hills {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: clamp(70px, 9vw, 150px);
  margin-top: clamp(-60px, -3vw, -24px);
}

@media (min-width: 1000px) {
  .hero-in {
    grid-template-columns: minmax(380px, 0.85fr) 1.15fr;
    gap: clamp(28px, 4vw, 64px);
  }
  .hero-text {
    text-align: left;
    align-items: flex-start;
    padding-bottom: 40px;
  }
  .logo {
    font-size: clamp(52px, 3.2vw + 20px, 80px);
  }
  .hero .get-row {
    justify-content: flex-start;
  }
  /* the sun peeks out from behind the scene card */
  .sun {
    left: auto;
    right: clamp(8px, 4vw - 20px, 60px);
    top: 14px;
  }
  .scene {
    aspect-ratio: 16 / 10;
  }
}

/* ---------- worlds ---------- */

.worlds {
  position: relative;
  padding: 10px 0 36px;
  background: var(--grass);
}
.worlds .sub {
  font-weight: 600;
}
.world-list {
  display: flex;
  gap: 24px;
  margin: 26px 0 0;
  padding: 22px var(--gutter) 18px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.world-list::-webkit-scrollbar {
  display: none;
}
.world {
  flex: 0 0 min(80vw, 320px);
  scroll-snap-align: center;
}
.world .card {
  aspect-ratio: 1.38;
  transform: rotate(var(--tilt));
}
.world .card-in {
  position: absolute;
  inset: 7px;
  container-type: size;
}
.card-stickers {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(21cqh - 6px);
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.card-stickers .stk {
  width: calc(34cqh * clamp(0.85, var(--sz), 1.2));
  margin-inline: -2cqh;
}
.card-stickers .stk.main {
  width: calc(47cqh * clamp(0.85, var(--sz), 1.2));
}
.card-stickers .bub {
  font-size: 7.5cqh;
  border-width: 2px;
}
.tag {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 21cqh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3cqw;
  font-size: 12.5cqh;
  font-weight: 700;
  color: var(--white);
  background: var(--c);
  border-top: 4px solid var(--ink);
  border-bottom: 6px solid var(--lip);
  -webkit-text-stroke: 0.16em var(--ink);
  paint-order: stroke fill;
}
.tag .stars {
  display: flex;
  gap: 2px;
}
.tag .stars svg {
  width: 9cqh;
  height: 9cqh;
}
.about {
  margin: 18px auto 0;
  max-width: 22em;
  font-size: 0.92em;
  line-height: 1.45;
  text-align: center;
  text-wrap: pretty;
}
.swipe {
  margin: 4px 0 0;
  text-align: center;
  font-weight: 600;
  font-size: 0.9em;
  opacity: 0.85;
}
.swipe::after {
  content: ' \2192';
}
@media (min-width: 900px) {
  .world-list {
    flex-wrap: wrap;
    justify-content: center;
    gap: 44px 30px;
    max-width: 1340px;
    margin-inline: auto;
    overflow: visible;
  }
  .world {
    flex: 0 0 280px;
  }
  .swipe {
    display: none;
  }
}

/* ---------- tap and play ---------- */

.play {
  position: relative;
  padding: 0 0 80px;
  background: var(--paper);
}
.edge {
  display: block;
  width: 100%;
  height: clamp(30px, 4vw, 60px);
}
.play-grid {
  display: grid;
  gap: 34px;
  align-items: center;
  padding-top: 30px;
}
.play-text p {
  margin: 0.8em 0 0;
  text-wrap: pretty;
}
.facts {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.facts li {
  position: relative;
  padding: 7px 0 7px 38px;
}
.facts li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 24px;
  height: 24px;
  background: var(--sun) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8' fill='none' stroke='%234A3426' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
  border: 2.5px solid var(--ink);
  border-radius: 50%;
}
.facts li:nth-child(2)::before {
  background-color: var(--mint);
}
.facts li:nth-child(3)::before {
  background-color: var(--cheek);
}
.facts li:nth-child(4)::before {
  background-color: var(--sky);
}
.facts li:nth-child(5)::before {
  background-color: var(--grape);
}

/* a sheet of real stickers on dotted backing paper */
.sheet {
  position: relative;
  padding: 16px clamp(12px, 3vw, 28px) 28px;
  background: #dff1fc radial-gradient(#c3e1f4 1.6px, transparent 1.8px) 0 0 / 20px 20px;
  border: 3px solid var(--ink);
  border-radius: 30px;
  box-shadow: 0 6px 10px rgba(74, 52, 38, 0.3);
  transform: rotate(-1deg);
}
.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.sheet-label {
  margin: 0;
  font-weight: 700;
  font-size: 1.05em;
}
.sheet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px 8px;
  justify-items: center;
  align-items: end;
  margin-top: 26px;
}
.sheet .stk {
  width: min(100%, calc(clamp(88px, 9vw + 40px, 150px) * clamp(0.8, var(--sz), 1.25)));
}
.sheet .stk:nth-child(3n + 1) {
  rotate: -4deg;
}
.sheet .stk:nth-child(3n + 2) {
  rotate: 3deg;
}
/* die-cut: a white border hugging each drawing, and a soft shadow under it */
.sheet .stk svg,
.prizes .stk svg,
.get-stickers .stk svg {
  filter: drop-shadow(3px 0 0 #fff) drop-shadow(-3px 0 0 #fff) drop-shadow(0 3px 0 #fff) drop-shadow(0 -3px 0 #fff)
    drop-shadow(0 3px 3px rgba(74, 52, 38, 0.28));
}
@media (min-width: 1000px) {
  .play-grid {
    grid-template-columns: 1fr 1.05fr;
    gap: 60px;
  }
}

/* ---------- challenges ---------- */

.challenges {
  position: relative;
  padding: 80px 0 90px;
  background: #fff4cf;
  border-block: 3px solid var(--ink);
}
.ch-grid {
  display: grid;
  gap: 34px;
  align-items: center;
}
.ch-text p {
  margin: 0.8em 0 0;
  text-wrap: pretty;
}
.demo-in {
  aspect-ratio: 16 / 10;
  container-type: size;
}
.mission {
  position: absolute;
  top: 4cqh;
  left: 0;
  right: 0;
  z-index: 4;
  display: flex;
  width: fit-content;
  margin-inline: auto;
  align-items: center;
  gap: 2cqw;
  max-width: 92%;
  padding: 1.6cqh 1.6cqw 1.6cqh 2cqw;
  font-weight: 700;
  font-size: clamp(13px, 4.6cqh, 22px);
  line-height: 1.15;
  white-space: nowrap;
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: 0 3px 0 rgba(74, 52, 38, 0.3);
  transition: background-color 0.25s;
}
.mission.done {
  background: #d9f5c6;
}
.mission.won {
  background: var(--sun);
}
.m-star svg {
  width: 1.5em;
  height: 1.5em;
}
.m-text {
  overflow: hidden;
  text-overflow: ellipsis;
}
.m-say {
  width: 1.9em;
  height: 1.9em;
  padding: 0;
  border-width: 2.5px;
  box-shadow: none;
}
.m-say svg {
  width: 1.2em;
  height: 1.2em;
}
.m-count {
  padding: 0.1em 0.55em;
  font-size: 0.85em;
  background: var(--sun);
  border: 2.5px solid var(--ink);
  border-radius: 999px;
}
.demo-stickers {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8cqh;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 2cqw;
}
.demo-stickers .stk {
  width: calc(36cqh * clamp(0.8, var(--sz), 1.25));
}
.demo-stickers .stk.want::before {
  content: '';
  position: absolute;
  inset: 8% 10% 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 240, 160, 0.9), rgba(255, 240, 160, 0));
  animation: glow 1.4s ease-in-out infinite;
}
@keyframes glow {
  50% {
    opacity: 0.35;
  }
}
.demo-stickers .bub,
.prize-pop .bub {
  font-size: clamp(12px, 4.4cqh, 20px);
}
.prize-pop {
  position: absolute;
  left: 50%;
  top: 15cqh;
  z-index: 5;
  width: 42cqh;
  margin-left: -21cqh;
}
.prize-pop .stk {
  width: 100%;
}
.prize-pop.show {
  animation: prize-in 0.6s cubic-bezier(0.3, 1.6, 0.5, 1) both;
}
.prize-pop::before {
  content: '';
  position: absolute;
  inset: -20%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 230, 120, 0.95), rgba(255, 230, 120, 0));
}
@keyframes prize-in {
  from {
    opacity: 0;
    transform: scale(0.2) rotate(-20deg);
  }
}
.demo-note {
  margin: 18px 0 0;
  text-align: center;
  font-weight: 600;
  font-size: 0.95em;
}
.link-btn {
  appearance: none;
  margin-left: 10px;
  padding: 0;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  background: none;
  border: 0;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  cursor: pointer;
}
.confetti {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  overflow: hidden;
}
.confetti i {
  position: absolute;
  top: -10px;
  width: 9px;
  height: 14px;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  animation: fall var(--t) cubic-bezier(0.25, 0.6, 0.4, 1) forwards;
}
@keyframes fall {
  to {
    transform: translate(var(--dx), 115cqh) rotate(var(--r));
  }
}

.prizes-wrap {
  margin-top: 70px;
}
.prizes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.prizes li {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  aspect-ratio: 1;
}
.prizes li::before {
  content: '';
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background: radial-gradient(circle, #fff9dc 45%, #ffe58a);
  border: 3px solid var(--ink);
  box-shadow: inset 0 -5px 0 rgba(217, 162, 27, 0.35);
}
.prizes li::after {
  content: '';
  position: absolute;
  right: 8%;
  top: 6%;
  width: 22%;
  aspect-ratio: 1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'%3E%3Cpath d='M30 6 L37 22 L54 23 L41 34 L45 51 L30 42 L15 51 L19 34 L6 23 L23 22 Z' fill='%23FFD34D' stroke='%234A3426' stroke-width='4' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.prizes .stk {
  width: calc(78% * clamp(0.75, var(--sz) / 1.6, 1));
}
@media (min-width: 700px) {
  .prizes {
    grid-template-columns: repeat(6, 1fr);
  }
}
@media (min-width: 1000px) {
  .ch-grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 60px;
  }
}

/* ---------- grown-ups ---------- */

.grownups {
  padding: 80px 0 90px;
  background: var(--paper);
}
.gu-grid {
  display: grid;
  gap: 30px;
  margin-top: 40px;
  align-items: start;
}
.promises {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.promises li {
  position: relative;
  padding: 12px 14px 12px 60px;
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 20px;
  box-shadow: 0 4px 0 rgba(74, 52, 38, 0.18);
}
.promises li::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 50%;
  width: 34px;
  height: 34px;
  margin-top: -17px;
  background: var(--grass) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8' fill='none' stroke='%234A3426' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 24px no-repeat;
  border: 3px solid var(--ink);
  border-radius: 50%;
}
.gate .gate-in {
  padding: 26px 24px 24px;
  background: var(--sky-low, #d8f2ff);
  border: 3px solid var(--ink);
  border-radius: 24px;
}
.gate .gear {
  display: block;
  width: 64px;
  height: 64px;
  padding: 6px;
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 50%;
  box-shadow: 0 3px 0 rgba(74, 52, 38, 0.3);
}
.gate .gear svg {
  animation: hold 3s ease-in-out infinite;
}
@keyframes hold {
  0%,
  40% {
    transform: rotate(0);
  }
  80%,
  100% {
    transform: rotate(120deg);
  }
}
.gate h3 {
  margin: 16px 0 0;
  font-size: 1.35em;
  line-height: 1.2;
}
.gate p {
  margin: 0.6em 0 0;
}
.gate-privacy {
  font-weight: 600;
}
@media (min-width: 560px) {
  .promises {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1000px) {
  .gu-grid {
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
  }
}

/* ---------- get it ---------- */

.get {
  position: relative;
  overflow: hidden;
  padding: 80px 0 0;
  background: linear-gradient(#5dbdfb, #d8f2ff 80%);
  border-top: 3px solid var(--ink);
}
.c4 {
  --w: clamp(80px, 10vw, 150px);
  --t: 110s;
  --d: -40s;
  top: 10%;
}
.c5 {
  --w: clamp(60px, 7vw, 110px);
  --t: 130s;
  --d: -100s;
  top: 34%;
}
.get-in {
  position: relative;
  z-index: 2;
}
.get .get-row {
  justify-content: center;
}
.contact {
  margin: 26px auto 0;
  max-width: 34em;
}
.contact a {
  font-weight: 700;
  overflow-wrap: anywhere;
}
.get-stickers {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(2px, 2vw, 30px);
  margin-top: 36px;
  margin-bottom: clamp(-34px, -2vw, -14px);
  padding-inline: var(--gutter);
}
.get-stickers .stk {
  width: calc(clamp(64px, 8vw + 20px, 140px) * clamp(0.8, var(--sz), 1.1));
}
.get .hills {
  margin-top: 0;
  height: clamp(50px, 6vw, 100px);
}

/* ---------- footer ---------- */

.foot {
  color: var(--paper);
  background: var(--ink);
  padding: 34px 0 40px;
}
.foot-in {
  width: min(100% - 2 * var(--gutter), 1200px);
  margin-inline: auto;
}
.foot-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1em;
  color: var(--paper);
  text-decoration: none;
}
.foot-logo svg {
  width: 48px;
  height: 48px;
}
.foot ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  font-weight: 600;
}
.foot a {
  color: var(--paper);
  text-underline-offset: 3px;
}
.fine {
  margin: 14px 0 0;
  max-width: 60em;
  font-size: 0.82em;
  line-height: 1.5;
  opacity: 0.85;
}

/* ---------- motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  .cloud,
  .sun .rays,
  .hint span,
  .gate .gear svg,
  .demo-stickers .stk.want::before,
  .stk.spawned,
  .prize-pop.show {
    animation: none;
  }
  .cloud {
    transform: translateX(var(--rest, 10vw));
  }
  .c2 {
    --rest: 70vw;
  }
  .c3 {
    --rest: 40vw;
  }
  .c5 {
    --rest: 75vw;
  }
}

/* ---------- inner pages (privacy, 404) ---------- */

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: linear-gradient(#5dbdfb, #d8f2ff 420px, var(--paper) 760px) no-repeat var(--paper);
}
.page main {
  flex: 1;
}
.mini {
  display: flex;
  justify-content: center;
  padding: 28px var(--gutter) 6px;
}
.mini-logo {
  display: inline-flex;
  align-items: center;
  font-size: clamp(34px, 3vw + 20px, 48px);
  text-decoration: none;
  border-radius: 20px;
}
.mini-logo .globe {
  width: 1.3em;
  margin-right: -0.06em;
}
.mini-logo .globe svg {
  width: 100%;
  height: auto;
}
.mini-logo .words {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.mini-logo .word {
  font-weight: 700;
  line-height: 1.08;
  color: var(--sun);
  white-space: nowrap;
  -webkit-text-stroke: 0.2em var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 0.08em 0 var(--ink);
}
.doc-wrap {
  width: min(100% - 2 * var(--gutter), 820px);
  margin: 26px auto 70px;
}
.doc .doc-in {
  padding: clamp(22px, 4vw, 44px);
  border: 3px solid var(--ink);
  border-radius: 24px;
  background: var(--paper);
}
.doc .title {
  font-size: clamp(34px, 2.6vw + 22px, 52px);
}
.doc .meta {
  margin: 14px 0 0;
  font-size: 0.95em;
}
.doc .lede {
  margin: 18px 0 0;
  font-size: 1.12em;
  font-weight: 600;
}
.doc h2 {
  margin: 1.8em 0 0.3em;
  font-size: 1.3em;
  line-height: 1.25;
}
.doc p,
.doc li {
  text-wrap: pretty;
}
.doc ul {
  margin: 0.4em 0 0;
  padding-left: 1.3em;
}
.doc li {
  margin: 0.45em 0;
}
.doc li::marker {
  color: var(--berry);
}
.doc a {
  font-weight: 700;
  overflow-wrap: anywhere;
}
.back {
  margin: 26px 0 0;
  text-align: center;
  font-weight: 700;
}

.lost {
  width: min(100% - 2 * var(--gutter), 640px);
  margin: 20px auto 80px;
  text-align: center;
}
.lost .stk {
  width: 170px;
  margin: 30px auto 10px;
}
.lost p {
  margin: 14px 0 0;
}
.home-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 26px 12px;
  font-weight: 700;
  font-size: 1.1em;
  text-decoration: none;
  background: var(--sun);
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: 0 4px 0 rgba(74, 52, 38, 0.35);
}
