:root {
  color-scheme: light;
  --ink: #302039;
  --plum: #483057;
  --paper: #fff9ed;
  --peach: #ffdfca;
  --sun: #ffe7ac;
  --leaf: #e0f0d8;
  --lavender: #f1e4fa;
  --night: #392b51;
  --focus: var(--plum);
  --link: var(--plum);
  --border: #dfcec0;
  --control-border: #765a72;
  --nav-hover: #f5ebdf;
  --side: max(5vw, calc((100% - 1120px) / 2));
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #fbede2;
  --paper: #241d30;
  --peach: #3a2739;
  --night: #2d2342;
  --focus: #f0bdff;
  --link: #edccf6;
  --border: #8b719b;
  --control-border: #b29abd;
  --nav-hover: #41334e;
}
* { box-sizing: border-box }
body { margin: 0; background: var(--paper); color: var(--ink); font: 700 1.125rem/1.55 Nunito, system-ui, sans-serif }
header, section, footer { padding-inline: var(--side) }
header, footer { display: flex; align-items: center; justify-content: space-between; gap: .85rem; flex-wrap: wrap; padding-block: 1rem }
.skip-link {
  position: absolute; z-index: 4; top: .5rem; left: var(--side); transform: translateY(-150%);
  padding: .55rem 1rem; border-radius: .65rem; background: var(--paper); color: var(--link);
}
.skip-link:focus { transform: none }
:where(a, button):focus-visible { outline: 3px solid var(--focus); outline-offset: 3px }
.brand { display: flex; align-items: center; gap: .5rem; min-height: 44px; color: var(--ink); text-decoration: none }
.brand img { width: 2.55rem; height: 2.55rem }
header .brand { margin-inline-end: auto }
.site-nav { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: .35rem .8rem; font-size: 1rem; font-weight: 900 }
.site-nav a:not(.pill) { color: var(--ink); text-decoration: none; border-radius: 99px }
.site-nav a:not(.pill):hover { background: var(--nav-hover) }
.site-nav .pill { padding-inline: 1rem }
.theme-toggle {
  position: relative; isolation: isolate; display: grid; place-items: center;
  width: 48px; height: 48px; padding: 0; flex: none;
  border: 0; border-radius: 50%; background: transparent; color: var(--link);
  cursor: pointer;
}
.theme-toggle::before {
  content: ''; position: absolute; inset: 5px; z-index: -1; pointer-events: none;
  border: 1px solid var(--control-border); border-radius: inherit; background: var(--nav-hover);
}
.theme-toggle svg { width: 28px; height: 28px }
.theme-toggle[hidden], .theme-sun, [data-theme="dark"] .theme-moon { display: none }
[data-theme="dark"] .theme-sun { display: block }
.theme-toggle:hover::before { border-color: currentColor }
section { position: relative; padding-block: clamp(3.4rem, 8vw, 7rem) }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: clamp(1.5rem, 5vw, 4.5rem) }
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .7rem 1.25rem; border-radius: 99px;
  background: var(--plum); color: white; text-decoration: none; font-weight: 900;
}
.pill:hover { background: #604373 }
.pill:active { background: #352143 }
.pill:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px }
header .pill { color: #302039; background: var(--sun) }
header .pill:hover { background: #ffdc8c }
h1, h2, .product-title { margin: 0; font-weight: 900; letter-spacing: -.05em; line-height: 1.06; text-wrap: balance }
h1 { font-size: clamp(3.1rem, 8vw, 7rem) }
h2 { font-size: clamp(2.15rem, 5vw, 4.2rem) }
p { max-width: 38ch; margin-block: .9rem 1.25rem }
.hero { isolation: isolate; overflow: clip; background: var(--peach); padding-bottom: clamp(4.3rem, 10vw, 8rem) }
.section-wave {
  display: block; position: absolute; pointer-events: none; inset: auto 0 -1px;
  width: 100%; height: clamp(24px, 5.3vw, 72px);
}
.hero .section-wave { fill: var(--paper) }
.watch .section-wave { fill: var(--night) }
.sleep .section-wave { fill: var(--leaf) }
.hero-art { position: relative; isolation: isolate; width: min(100%, 460px); justify-self: center; padding: 1.2rem }
.hero-blob {
  display: block; position: absolute; pointer-events: none; inset: -15%; z-index: -1;
  width: 130%; height: 130%;
}
.hero-art img { display: block; width: 100%; height: auto; aspect-ratio: 1; border-radius: 50%; border: 7px solid #fff2df }
.hero-art span { position: absolute; color: #6d3b65; font-size: clamp(2rem, 5vw, 3.5rem); right: -1%; top: 4%; line-height: 1 }
.intro { text-align: center }
.intro p { margin: .85rem auto 0 }
.watch { isolation: isolate; background: var(--sun); padding-bottom: clamp(4rem, 9vw, 7rem) }
.story-heading { text-align: center }
.story-heading h2 { max-width: 19ch; margin-inline: auto }
.storybook {
  max-width: 960px; margin: 1.8rem auto 0; padding: clamp(.55rem, 1.5vw, 1rem);
  border: 1px solid #a57169; border-radius: 1.5rem; background: #875765;
  box-shadow: 0 5px #634054, 0 8px #f5dbb7, 0 12px #875765, 0 20px 30px #38252d33;
}
.story-spread {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden;
  border-radius: .9rem; background: var(--paper); color: var(--ink);
}
.story-spread[hidden], .story-controls[hidden] { display: none }
.story-spread:not([hidden]) + .story-spread:not([hidden]) { margin-top: .7rem }
.story-spread > img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: cover }
.story-paper {
  padding: clamp(1rem, 3.5vw, 2.5rem); align-self: center;
  background: linear-gradient(90deg, #84627919, transparent 1.8rem);
}
.story-paper h3 { margin: 0 0 .85rem; font-size: clamp(1.35rem, 3vw, 2rem); line-height: 1.12; text-wrap: balance }
.story-paper h3:focus { outline: none }
.story-paper p { margin: .65rem 0 0; font-size: 1rem; line-height: 1.55 }
.story-cover .story-paper { text-align: center }
.story-cover .story-paper p { margin-inline: auto }
.story-open { margin-top: 1rem }
.story-controls {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: .45rem; align-items: center;
  padding: .75rem 0 .1rem;
}
.story-controls .pill { padding: .45rem .85rem; font-size: .92rem; background: #fff1d8; color: #302039 }
.story-controls .pill:hover { background: #fff9ed }
.story-controls .pill:focus-visible { outline-color: #fff1d8 }
.story-back { justify-self: start }
.story-next { justify-self: end }
.story-counter { color: #fff9ed; font-size: .85rem; white-space: nowrap }
.story-video { margin: 2rem auto 0; text-align: center; font-size: .95rem }
.story-video a { color: var(--link); text-underline-offset: .2em }
.sleep { isolation: isolate; background: var(--night); color: #fff9ed; padding-bottom: clamp(4rem, 9vw, 7rem) }
.moon { color: var(--sun); font-size: clamp(4rem, 13vw, 11rem); text-align: center; line-height: 1 }
.tunes { margin: 0; padding: 0; list-style: none }
.game { background: var(--leaf) }
.field {
  overflow: hidden; min-height: 220px; padding: 1.35rem;
  display: grid; align-content: space-between; border-radius: 2rem;
  background: radial-gradient(90% 95% at 18% 132%, #8fc19b 74%, transparent 75%),
              radial-gradient(75% 78% at 90% 139%, #85bb9c 88%, transparent 89%), #bfdfb7;
}
.field > div { display: flex; justify-content: space-between; gap: .5rem }
.field [aria-label] { color: #863456; letter-spacing: .12em }
.shop { background: var(--nav-hover) }
.shop > h2 { text-align: center }
.shop-intro { max-width: 34rem; margin: .4rem auto 1.5rem; text-align: center }
.shop-products {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(1rem, 3vw, 2rem); margin-top: clamp(1.5rem, 4vw, 2.75rem);
}
.shop-card {
  min-width: 0; padding: .65rem; border: 1px solid var(--border);
  border-radius: 1.5rem; background: var(--paper);
}
.shop-card-art {
  display: grid; grid-template-rows: minmax(0, 1fr); place-items: center;
  height: clamp(10rem, 22vw, 15rem);
  padding: .75rem; border-radius: .95rem; background: var(--peach);
}
.shop-card-art img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain }
.plush img { border-radius: .6rem }
.shop-card-body { padding: clamp(.8rem, 2.5vw, 1.4rem) }
.product-title { font-size: clamp(1.65rem, 3vw, 2.45rem) }
.coming { font-weight: 900; color: #713044 }
.shop-launch-note { margin: 1rem auto 0; text-align: center; font-size: .95rem }
.plush .coming { margin-bottom: 0 }



@media (min-width: 821px) {
  section { padding-block: clamp(3.5rem, 6vw, 5.5rem) }
  .intro { padding-block: clamp(3.25rem, 5vw, 4.5rem) }
  .hero { padding-bottom: clamp(5.5rem, 8vw, 7rem) }
  .watch, .sleep { padding-bottom: clamp(5.5rem, 7vw, 6.5rem) }
  .story-spread {
    background: linear-gradient(90deg, transparent 50%, #84627919 50%, transparent calc(50% + 1.8rem)), var(--paper);
  }
  .story-paper { background: none }
}
footer { padding-block: 1.7rem }
.socials { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap }
.socials svg { width: 22px; height: 22px }
.socials .pill { min-height: 44px; padding: .45rem .7rem; gap: .4rem; font-size: .95rem }
.social-icon {
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--border); border-radius: 50%; color: var(--link);
}
.social-icon:hover { background: var(--nav-hover) }
@media (prefers-reduced-motion: no-preference) {
  .pill { transition: background-color 150ms ease }

  .hero-art img { transition: transform 220ms ease }
  @media (hover: hover) { .hero-art:hover img { transform: rotate(-3deg) } }
}
@media (max-width: 820px) {
  .story-spread { grid-template-columns: minmax(0, 1fr) }
  .story-spread > img { height: auto; aspect-ratio: 1 }
  .story-paper { background: none }
  .story-controls .pill { gap: .3rem; padding-inline: .65rem }
}
@media (max-width: 680px) {
  .pair, .shop-products { grid-template-columns: minmax(0, 1fr) }
  .hero-art { width: min(87%, 320px); order: -1; padding: .75rem }
  .sleep h2 { padding-inline-end: 2.7rem }
  .moon { position: absolute; top: 2.8rem; right: var(--side); font-size: 2.45rem }
  section { padding-block: 2.9rem }
  .hero, .watch, .sleep { padding-bottom: 4rem }
}
@media (max-width: 640px) {
  header {
    display: grid; grid-template-columns: minmax(0, 1fr) auto;
    column-gap: .75rem; row-gap: .6rem; padding-block: .75rem;
  }
  .site-nav {
    grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .2rem; padding: .2rem; border: 1px solid var(--border);
    border-radius: 1.15rem; background: var(--nav-hover);
  }
  .site-nav a, .site-nav .pill { justify-content: center; padding-inline: .2rem; border-radius: .9rem; font-size: .95rem }
  .site-nav a:not(.pill):hover { background: var(--paper) }
  .theme-toggle svg { width: 30px; height: 30px }
  .field { border-radius: 1.5rem }
  footer { justify-content: center }
  .socials { justify-content: center }
}

.pill[hidden], .game-status[hidden] { display: none }
button.pill { border: 0; font: inherit; font-weight: 900; cursor: pointer }
.game-field {
  --game-heart: #a2263c;
  --garden-veil: linear-gradient(180deg, #b9d5b74d, #b5d3aa33 45%, #6b965519 76%, transparent);
  position: relative; isolation: isolate; display: block; touch-action: manipulation;
  box-shadow: 0 0 0 1px #40544950, 0 6px 18px #22392e20;
}
.game-field::before, .game-field::after {
  content: ''; position: absolute; pointer-events: none; z-index: -1;
}
.game-field::before {
  inset: 0;
  background-image: var(--garden-veil), url('game-garden.webp');
  background-repeat: no-repeat, repeat-x;
  background-size: 100% 100%, auto 100%;
  background-position: left top, left center;
  filter: saturate(1.12);
}
.game-field::after {
  inset: auto 0 0; height: 32px;
  background-image: radial-gradient(ellipse 8px 1.5px at 17px 14px, #e1e5ad80 65%, transparent),
                    radial-gradient(ellipse 5px 1px at 68px 23px, #537b5859 60%, transparent),
                    radial-gradient(ellipse 4px 1px at 106px 8px, #6e975b66 58%, transparent),
                    linear-gradient(180deg, transparent, #a2c185b8 36%, #83a973);
  background-repeat: repeat-x, repeat-x, repeat-x, no-repeat;
  background-size: 151px 32px, 151px 32px, 151px 32px, 100% 100%;
}
.game-garden-light {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background: radial-gradient(ellipse at 22% 3%, #fff1b853, transparent 55%);
}
.game-garden-light i {
  position: absolute; left: 12%; top: 60%; width: 5px; height: 5px;
  border-radius: 50%; background: #fff0aa; opacity: .58; box-shadow: 0 0 9px #fff2ac;
}
.game-garden-light i:nth-child(2) { left: 29%; top: 49%; width: 3px; height: 3px; --drift-delay: -3s }
.game-garden-light i:nth-child(3) { left: 50%; top: 63%; --drift-delay: -5s }
.game-garden-light i:nth-child(4) { left: 69%; top: 54%; width: 4px; height: 4px; --drift-delay: -2s }
.game-garden-light i:nth-child(5) { left: 88%; top: 66%; --drift-delay: -7s }
.game-character-shadow {
  position: absolute; left: 18%; bottom: calc(-4px - var(--jump-height, 0px));
  width: 65%; height: 9px; opacity: var(--shadow-strength, .62);
  background: radial-gradient(ellipse, #394b30b0, transparent 72%);
}
.game-effect {
  position: absolute; left: calc(var(--effect-x) - var(--camera-x, 0px));
  z-index: 1; pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .game-field.is-running .game-garden-light i { animation: garden-drift 9s ease-in-out var(--drift-delay, 0s) infinite }
  .game-field.is-paused .game-garden-light i,
  .game-field.is-paused:not(:has(.game-result:not([hidden]))) .game-effect { animation-play-state: paused }
  .game-effect--landing {
    width: 38px; height: 10px; border-radius: 50%;
    border: 1px solid #fff4c8bf; background: #fff4c84d; animation: garden-landing .32s ease-out both;
  }
  .game-effect--fruit {
    width: 26px; height: 26px; border: 2px solid #fff3b3; border-radius: 50%;
    box-shadow: 0 0 3px #7b4a2e;
    animation: garden-fruit .42s ease-out both;
  }
  .game-effect--fruit::before, .game-effect--fruit::after {
    content: ''; position: absolute; width: 6px; height: 6px; rotate: 45deg;
    background: #fff2b3; border: 1px solid #946237;
  }
  .game-effect--fruit::before { top: -6px; left: 2px }
  .game-effect--fruit::after { bottom: 1px; right: -5px }
  @keyframes garden-drift {
    0%, 100% { transform: translate(0, 0); opacity: .42 }
    50% { transform: translate(12px, -9px); opacity: .7 }
  }
  @keyframes garden-landing {
    from { transform: translate(-50%, 50%) scale(.55); opacity: .85 }
    to { transform: translate(-50%, 50%) scale(1.45); opacity: 0 }
  }
  @keyframes garden-fruit {
    from { transform: translate(-50%, 50%) scale(.55); opacity: 1 }
    to { transform: translate(-50%, 25%) scale(1.35); opacity: 0 }
  }
}
.game-score { position: relative; z-index: 2; align-items: center; pointer-events: none }
.game-score #game-hearts {
  color: var(--game-heart); font-size: clamp(1.2rem, 2vw, 1.35rem); white-space: nowrap;
  padding: .22rem .55rem; border: 1px solid #a2263c60; border-radius: 1rem;
  background: #fff9ed; box-shadow: 0 2px 2px #40312424;
}
.game-basket {
  position: relative; display: grid; place-items: center; min-width: 86px; min-height: 39px;
  padding: 4px 10px 5px; border: 2px solid #633e25; border-radius: 5px 5px 17px 17px;
  background: repeating-linear-gradient(90deg, #75451635 0 2px, transparent 2px 7px),
              repeating-linear-gradient(0deg, #75451643 0 1px, transparent 1px 5px),
              linear-gradient(to top, #d98a35 var(--basket-fill, 0%), #efd5aa 0);
  box-shadow: inset 0 3px #fff0d580, 0 2px 2px #40312440;
}
.game-basket::before {
  content: ''; position: absolute; bottom: 100%; left: 26%; width: 48%; height: 12px;
  border: 3px solid #633e25; border-bottom: 0; border-radius: 14px 14px 0 0;
  box-shadow: inset 0 2px #fff0d5;
}
.game-basket #game-score {
  color: #302039; background: #fff9ed; padding: .12rem .43rem; border-radius: .55rem;
  font-weight: 900; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.game-score-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%) }
.game-character, .game-item { position: absolute; pointer-events: none }
.game-character { left: 10%; bottom: 23px; height: clamp(4rem, 16vw, 5.2rem); aspect-ratio: 1; z-index: 1 }
.game-character-art {
  position: absolute; bottom: 0; left: 50%; translate: -50% 0;
  height: 100%; aspect-ratio: 1;
  transform-origin: 50% 100%;
  filter: drop-shadow(0 0 1px #613d31) drop-shadow(0 2px 1px #3a3b2a78);
}
.game-character-art img { display: block; position: relative; z-index: 1; width: 100%; height: 100%; clip-path: none }
.game-item { font-size: 1.7rem; line-height: 1.2 }
.game-fruit {
  left: 66%; bottom: 111px; font-size: clamp(1.95rem, 4vw, 2.2rem);
  filter: drop-shadow(0 0 1px #513422) drop-shadow(0 0 2px #fff3d7) drop-shadow(0 2px 1px #28392866);
}
.game-mushroom { left: 77%; bottom: 23px; width: clamp(48px, 5vw, 52px) }
.game-mushroom svg {
  display: block; width: 100%; transform-origin: 50% 100%;
  filter: drop-shadow(0 2px 1px #28392866);
}
.game-burst {
  left: calc(var(--impact-x) - var(--camera-x, 0px));
  position: absolute; width: 0; height: 0; z-index: 1; pointer-events: none;
  animation: game-burst-fade .38s ease-out both;
}
.game-burst span {
  position: absolute; width: 6px; height: 8px; border-radius: 60% 45% 55% 55%;
  background: #d99168; border: 1px solid #805239;
}
.game-burst.is-rock span {
  border-radius: 32% 56% 26% 45%; background: #a89aa0; border-color: #5a5362;
}
.game-burst.is-rock span:nth-child(even) { width: 9px; height: 6px; background: #c9bfc3 }
.game-burst span:nth-child(1) { --burst-x: -19px; --burst-y: -9px }
.game-burst span:nth-child(2) { --burst-x: -11px; --burst-y: -23px }
.game-burst span:nth-child(3) { --burst-x: 3px; --burst-y: -27px }
.game-burst span:nth-child(4) { --burst-x: 14px; --burst-y: -19px }
.game-burst span:nth-child(5) { --burst-x: 23px; --burst-y: -6px }
@keyframes game-burst-fade { 0%, 40% { opacity: 1 } 100% { opacity: 0 } }
@media (prefers-reduced-motion: no-preference) {
  .game-burst span { animation: game-burst-particle .38s ease-out both }
  @keyframes game-burst-particle {
    from { transform: scale(.7) }
    to { transform: translate(var(--burst-x), var(--burst-y)) scale(.45) }
  }
}
@media (prefers-reduced-motion: reduce) {
  .game-burst span { transform: translate(var(--burst-x), var(--burst-y)) }
}
.game-rock { bottom: 23px; display: flex; align-items: flex-end }
.game-pebble {
  width: clamp(38px, 4vw, 42px); height: 23px; border: 2px solid #413445;
  border-radius: 48% 52% 33% 30% / 75% 73% 32% 28%;
  background: radial-gradient(ellipse at 34% 22%, #eadde5, transparent 51%), #958298;
  box-shadow: inset 0 -4px #55415e66, 0 2px 2px #28392866;
}
.game-pebble + .game-pebble { display: none }
.game-rock.is-double .game-pebble + .game-pebble { display: block; width: 28px; height: 18px; margin-left: -7px }
.game-item[hidden] { display: none }
.game-status { min-height: 1.55em; margin: .65rem 0 }
.game-field > .game-result {
  position: absolute; inset: 48px 0 0; z-index: 2; padding: 8px 12px 12px;
  display: grid; grid-template-columns: minmax(0, 1fr); place-items: center;
  background: linear-gradient(transparent, #243c315c);
}
.game-field > .game-result[hidden] { display: none }
.game-field > .game-result:not(.is-loss) { padding-top: 42px }
.game-celebration { position: absolute; inset: 0; overflow: hidden; pointer-events: none }
.game-result.is-loss .game-celebration { display: none }
.game-firework {
  --spark: #d22667; --spark-light: #f45495;
  position: absolute; top: 40px; left: 22%; width: .58em; height: .58em;
  font-size: clamp(10px, 2vw, 14px); border-radius: 50%; background: var(--spark);
  box-shadow: 0 -2.1em 0 -.02em var(--spark), 1.35em -1.4em 0 -.06em var(--spark-light),
              2.15em 0 0 -.03em var(--spark), 1.45em 1.35em 0 -.06em var(--spark-light),
              0 2.15em 0 -.05em var(--spark), -1.4em 1.4em 0 -.06em var(--spark-light),
              -2.15em 0 0 -.03em var(--spark), -1.45em -1.45em 0 -.06em var(--spark-light),
              .65em -.65em 0 -.11em var(--spark), -.65em .65em 0 -.11em var(--spark);
}
.game-firework::before, .game-firework::after {
  content: ''; position: absolute; top: 50%; left: 50%; translate: -50% -50%;
  width: 1.2em; height: .16em; border-radius: 99px; background: var(--spark);
}
.game-firework::after { rotate: 90deg }
.game-firework:nth-child(2) { --spark: #b96700; --spark-light: #ffad21; --spark-delay: .14s; top: 30px; left: 50% }
.game-firework:nth-child(3) { --spark: #713fc2; --spark-light: #a36be7; --spark-delay: .26s; left: 78% }
.game-result-card {
  position: relative;
  width: min(100%, 18rem); padding: .65rem .8rem; text-align: center;
  border: 1px solid #dfcec0; border-radius: 1.25rem; background: var(--paper);
  box-shadow: 0 4px 16px #344f4733;
}
.game-result h3 { display: flex; align-items: center; justify-content: center; gap: .35rem; margin: 0; font-size: 1.55rem; line-height: 1.15; font-weight: 900 }
.game-result.is-loss h3 { color: var(--game-heart) }
.game-result-symbol { flex: none; font-size: .82em }
.game-result.is-loss .game-result-symbol { display: none }
.game-result p { margin: .2rem auto .45rem; font-size: .9rem; line-height: 1.3 }
.game-result .pill { font-size: .95rem; padding-block: .45rem }
.game-replay-icon { font-size: 1.4rem; line-height: 1 }
.game-result.is-loss .pill { min-height: 56px; padding-inline: .55rem 1.1rem }
.game-result.is-loss .game-replay-icon {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: #fff1d8; color: var(--plum); font-size: 1.8rem;
}

@media (prefers-reduced-motion: no-preference) {
  .game-firework { animation: game-firework 1.15s ease-out var(--spark-delay, 0s) 3 both }
  @keyframes game-firework {
    0% { transform: translateY(25px) scale(.12); opacity: 0 }
    23% { transform: translateY(0) scale(.43); opacity: 1 }
    60% { transform: translateY(-2px) scale(1) rotate(12deg); opacity: 1 }
    92%, 100% { transform: translateY(7px) scale(1.2) rotate(20deg); opacity: 0 }
  }
  .game-field::before { background-position-x: 0, calc(var(--camera-x, 0px) * -.065) }
  .game-field::after {
    --grass-x: calc(-1 * var(--camera-x, 0px));
    background-position-x: var(--grass-x), var(--grass-x), var(--grass-x), 0;
  }
  .game-field.is-running .game-character-art { animation: chick-run .34s ease-in-out infinite }
  .game-field.is-running .game-character.is-airborne .game-character-art { animation: none; transform: rotate(-9deg) }
  .game-field.is-running .game-mushroom svg { animation: mushroom-waddle .82s ease-in-out infinite }
  .game-field.is-paused .game-character-art,
  .game-field.is-paused .game-mushroom svg { animation-play-state: paused }
  @keyframes chick-run {
    0%, 100% { transform: translateY(0) rotate(2deg) }
    50% { transform: translateY(-2px) rotate(-2deg) }
  }
  @keyframes mushroom-waddle {
    0%, 100% { transform: scale(1, 1) }
    33% { transform: translateY(-4px) rotate(5deg) }
    47% { transform: translateY(-3px) rotate(2deg) }
    82% { transform: rotate(-4deg) }
  }
}

.tunes audio { display: block; width: 100%; max-width: 26rem; margin-top: .65rem }
.sleep .tunes { display: grid; gap: .55rem }
.tunes details { border: 1px solid #fff5e94d; border-radius: 1rem; background: #fff5e910 }
.tunes details[open] { background: #fff5e91f }
.tunes summary {
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center;
  gap: .65rem; min-height: 3.25rem; padding: .55rem .8rem; cursor: pointer;
  list-style: none; border-radius: inherit;
}
.tunes summary::-webkit-details-marker { display: none }
.tunes summary:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px }
.tunes summary::after { content: '+'; color: var(--sun); width: 1ch; text-align: center }
.tunes details[open] summary::after { content: '−' }
.tune-icon { color: var(--sun); width: 1.1rem; text-align: center }
.tune-duration { color: #f6dfbc; font-size: .78rem; white-space: nowrap }
.tunes details audio { width: calc(100% - 1.6rem); margin: .2rem .8rem .8rem }

.game.is-playing { grid-template-columns: minmax(0, 1fr); padding-block: clamp(1.5rem, 4vw, 3.5rem) }
.game-instructions { margin-top: -.55rem; font-size: .95rem; color: var(--link) }
.game-paused-note {
  position: absolute; top: 50%; left: 50%; translate: -50% -50%; z-index: 2;
  padding: .45rem 1.1rem; border-radius: 99px; background: var(--paper); color: var(--plum);
  font-weight: 900; pointer-events: none;
}
.game-stage { min-width: 0 }
.game.is-playing .game-stage { width: min(100%, 54rem); justify-self: center }
.game.is-playing .game-field { min-height: clamp(270px, 41vw, 350px) }
.game-back { margin-bottom: .65rem }
.game-back span { font-size: 1.2em; line-height: 1 }
.game.is-playing .game-status {
  position: absolute; width: 1px; height: 1px; min-height: 0; margin: -1px; overflow: hidden; clip-path: inset(50%);
}
.game-controls { position: relative; display: flex; justify-content: center; align-items: center; margin-top: .75rem; min-height: 64px; touch-action: manipulation }
.game-controls[hidden] { display: none }
.game-play-icon, .game-pause.is-resume .game-pause-icon {
  width: 0; height: 0; border-block: 8px solid transparent; border-left: 13px solid currentColor;
}
.game-pause { position: absolute; left: 0; width: 48px; padding: 0 }
button.game-sound { position: absolute; right: 0; width: 48px; padding: 0 }
.game-sound[hidden], .game-sound .sound-off, .game-sound[aria-pressed="false"] .sound-on { display: none }
.game-sound[aria-pressed="false"] .sound-off { display: block }
.game-pause-icon { width: 15px; height: 16px; border-inline: 5px solid currentColor; border-radius: 2px }
.game-pause.is-resume .game-pause-icon { border-right: 0; border-radius: 0 }
button.game-jump {
  min-width: 168px; min-height: 64px; padding: .4rem .85rem .4rem .55rem;
  background: var(--plum); color: #fff; box-shadow: 0 3px #34223f;
}
button.game-jump:hover { background: #5b3c6b }
button.game-jump:active { background: #34223f }
button.game-jump:focus-visible { outline-color: var(--focus) }
button.game-jump:disabled { opacity: .58; cursor: default }
.game-jump-picture { display: inline-flex; align-items: center; gap: .4rem }
.game-jump-portrait { width: 48px; height: 48px }
.game-jump-portrait img { display: block; width: 100%; height: 100%; object-fit: contain }
.game-jump-arrow {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: #fff1d8; color: var(--plum); font-size: 1.75rem; line-height: 1; font-weight: 900;
}
.game-score { font-size: .95rem }
.game-status { font-size: .95rem }

.footer-details { flex: 0 0 100%; display: flex; align-items: center; justify-content: center; gap: .45rem; padding-top: 1rem; border-top: 1px solid var(--border); font-size: .9rem }
.footer-details small { font-size: inherit }
.footer-contact { display: inline-flex; align-items: center; min-height: 44px; color: var(--link); text-underline-offset: .2em }

[data-theme="dark"] .brand img, [data-theme="dark"] .footer-details img { filter: none }
[data-theme="dark"] .hero-blob path { fill: #855366 }
[data-theme="dark"] .hero-art img { border-color: #886775 }
[data-theme="dark"] .hero-art span { color: #f1becc }
[data-theme="dark"] .watch { background: #3a3032 }
[data-theme="dark"] .storybook { background: #67445e; border-color: #98758a; box-shadow: 0 5px #493046, 0 8px #926e87, 0 12px #67445e, 0 20px 30px #1b142b55 }
[data-theme="dark"] .story-controls .pill { background: #edccf6; color: #302039 }
[data-theme="dark"] .story-controls .pill:hover { background: #f5defb }
[data-theme="dark"] .story-open { background: #edccf6; color: #302039 }
[data-theme="dark"] .story-open:hover { background: #f5defb }
[data-theme="dark"] :is(.hero, .watch, .socials) .pill { background: #edccf6; color: #302039 }
[data-theme="dark"] :is(.hero, .watch, .socials) .pill:hover { background: #f5defb }
[data-theme="dark"] :is(.hero, .watch, .socials) .pill:active { background: #dbb2eb }
[data-theme="dark"] .game { --leaf: #293e39; background: var(--leaf) }
[data-theme="dark"] .sleep .section-wave { fill: #293e39 }
[data-theme="dark"] .coming { color: #f4b9cf }




[data-theme="dark"] .game-field { --paper: #fff9ed; --focus: #483057; color-scheme: light; color: #302039 }
[data-theme="dark"] .game-field {
  --garden-veil: linear-gradient(180deg, #567e6840, #537b5933 48%, #496a431a 78%, transparent);
  box-shadow: 0 0 0 1px #b7ccaa99, 0 6px 18px #15261c55;
}
[data-theme="dark"] .game-controls .pill, [data-theme="dark"] .game-play, [data-theme="dark"] .game-back { border: 1px solid #9877ab }

/* Chick artwork keeps its original proportions in every component. */
.brand-name { font-size: clamp(1rem, 2.5vw, 1.4rem); font-weight: 900; white-space: nowrap; letter-spacing: -.035em }
.brand > img { object-fit: contain; width: 44px; height: 44px }
.hero-art img { border: 0; border-radius: 0; object-fit: contain; aspect-ratio: 1; filter: drop-shadow(0 14px 10px #87612b22) }
.story-spread > img { object-fit: contain; padding: clamp(.8rem, 3vw, 2rem); background: #fff1d1 }
.shop-products { grid-template-columns: minmax(0, 34rem); justify-content: center }
.game-character-art { aspect-ratio: 1; rotate: var(--feather-lean, 0deg); transition: rotate .12s ease-out }
.game-character-art img { object-fit: contain; clip-path: none }
.game-jump-portrait img, .account-banner img { object-fit: contain }
.game-jump-portrait img { width: 100%; height: 100% }
@media (prefers-reduced-motion: reduce) { .game-character-art { rotate: 0deg; transition: none } }

.game-burst:not(.is-rock) span:nth-child(even) { background: #fff0ce; border-radius: 50% }
