/* =========================================================
   云间小道 · Cloudwalk
   A hand-painted little web world.
   ========================================================= */

@font-face {
  font-family: "Ma Shan Zheng";
  src: url("assets/ma-shan-zheng.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #344b3c;
  --ink-soft: #647360;
  --ink-faint: #8c917d;
  --paper: #fff9eb;
  --paper-deep: #f4e7d0;
  --cream: #fbf4e5;
  --line: #d7c19e;
  --leaf: #6f8d66;
  --leaf-deep: #3b5d47;
  --leaf-dark: #294536;
  --gold: #deb36e;
  --rose: #d99b90;
  --display: "Ma Shan Zheng", "Kaiti SC", "STKaiti", "KaiTi", "Songti SC", serif;
  --serif: "Iowan Old Style", "Songti SC", "STSong", "Noto Serif SC", "Times New Roman", serif;
  --sans: "Avenir Next", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --ease-soft: cubic-bezier(.22, .78, .28, 1);
  --ease-bounce: cubic-bezier(.36, .78, .3, 1.18);
  --shadow-paper: 0 24px 65px rgba(65, 81, 59, .16), 0 3px 0 rgba(255, 255, 255, .45) inset;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

html {
  min-width: 300px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100svh;
  overflow: hidden;
  background: #f1e7d4;
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 130;
  pointer-events: none;
  opacity: 0;
  background: #fcf4e4;
  transition: opacity .3s ease;
}

body.is-leaving::after {
  opacity: 1;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
}

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

img {
  height: auto;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--leaf-dark);
  outline-offset: 4px;
}

:focus:not(:focus-visible) {
  outline: none;
}

::selection {
  color: var(--paper);
  background: var(--leaf-deep);
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--paper);
  background: var(--leaf-dark);
  font-size: 12px;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform .2s ease;
}

.skip-link:focus {
  transform: none;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.svg-sprite symbol {
  overflow: visible;
}

svg {
  display: block;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 120;
  pointer-events: none;
  opacity: .16;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.84' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.48'/%3E%3C/svg%3E");
}

/* ————— screens & transitions ————— */

.screen {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .6s var(--ease-soft), visibility 0s linear .6s;
}

.screen.is-active {
  z-index: 2;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .6s var(--ease-soft), visibility 0s;
}

.screen.is-entering {
  animation: screenBreathe .75s var(--ease-soft);
}

@keyframes screenBreathe {
  from { opacity: .45; transform: scale(1.006); }
  to { opacity: 1; transform: scale(1); }
}

.transition-veil {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 100;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 44% 38%, #fffdf6 0%, #fbf4e3 42%, #eddec4 76%, #e7d4b7 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .25) inset;
  transform: translate(-50%, -50%) scale(0);
  will-change: transform, opacity;
}

.transition-veil::after {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 1px solid rgba(111, 139, 102, .12);
}

.transition-veil.is-growing {
  opacity: 1;
  animation: veilGrow .82s cubic-bezier(.53, .02, .26, .99) forwards;
  transition: opacity .18s ease;
}

.transition-veil.is-fading {
  opacity: 0;
  transition: opacity .28s ease;
}

.transition-veil.is-quick {
  animation-duration: .45s;
}

@keyframes veilGrow {
  0% { transform: translate(-50%, -50%) scale(0); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

.toast-region {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 115;
  transform: translateX(-50%);
  pointer-events: none;
}

.toast {
  max-width: min(88vw, 460px);
  padding: 11px 18px;
  border: 1px solid rgba(255, 250, 236, .16);
  border-radius: 999px;
  color: var(--paper);
  background: rgba(38, 61, 46, .92);
  box-shadow: 0 12px 36px rgba(28, 45, 34, .22);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .04em;
  text-align: center;
  opacity: 0;
  transform: translateY(8px) scale(.97);
  transition: opacity .28s ease, transform .28s var(--ease-soft);
  backdrop-filter: blur(10px);
}

.toast.is-visible {
  opacity: 1;
  transform: none;
}

/* ————— floating controls ————— */

.utilities {
  position: fixed;
  top: max(22px, env(safe-area-inset-top, 0px) + 12px);
  right: max(24px, env(safe-area-inset-right, 0px) + 14px);
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 9px;
}

.icon-button {
  position: relative;
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(69, 91, 72, .2);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 250, 238, .62);
  box-shadow: 0 6px 18px rgba(73, 89, 66, .08);
  cursor: pointer;
  transition: transform .25s var(--ease-soft), background .25s ease, box-shadow .25s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.icon-button:hover {
  transform: translateY(-2px) rotate(-4deg);
  background: rgba(255, 250, 238, .9);
  box-shadow: 0 10px 24px rgba(73, 89, 66, .13);
}

.icon-button svg {
  width: 19px;
  height: 19px;
}

.icon-button__off {
  display: none;
}

.icon-button.is-muted .icon-button__on {
  display: none;
}

.icon-button.is-muted .icon-button__off {
  display: block;
}

body[data-screen="post"] .icon-button {
  color: #f7efdf;
  border-color: rgba(250, 243, 226, .24);
  background: rgba(26, 46, 47, .28);
  box-shadow: 0 6px 20px rgba(12, 28, 28, .16);
}

body[data-screen="post"] .icon-button:hover {
  background: rgba(247, 239, 222, .14);
}

body[data-screen="watermelon"] .icon-button {
  background: rgba(255, 250, 238, .7);
}

/* ————— tiny shared bits ————— */

.eyebrow {
  margin: 0;
  color: #8a7756;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.eyebrow--light {
  color: rgba(249, 238, 214, .6);
}

.world-title {
  margin: 7px 0 18px;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(50px, 5.5vw, 78px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: .02em;
}

.world-title--light {
  color: #fbf2df;
  text-shadow: 0 3px 24px rgba(31, 55, 55, .18);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 14px 8px 11px;
  border: 1px solid rgba(64, 84, 66, .2);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 251, 241, .62);
  box-shadow: 0 6px 18px rgba(66, 82, 61, .06);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  text-decoration: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background .25s ease, transform .25s var(--ease-soft);
}

.back-link svg {
  width: 16px;
  height: 16px;
}

.back-link:hover {
  background: rgba(255, 251, 241, .95);
  transform: translateX(-2px);
}

.world-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 3.4vw, 48px);
  pointer-events: none;
}

.world-bar > * {
  pointer-events: auto;
}

.world-bar__meta {
  position: absolute;
  left: 50%;
  margin: 0;
  transform: translateX(-50%);
  color: rgba(61, 78, 62, .56);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .2em;
  white-space: nowrap;
}

.world-bar__meta span {
  margin: 0 6px;
  opacity: .5;
}

.world-bar__spacer {
  width: 104px;
}

.world-bar--light .back-link {
  color: #f7eedc;
  border-color: rgba(250, 244, 229, .22);
  background: rgba(25, 45, 46, .2);
}

.world-bar--light .back-link:hover {
  background: rgba(250, 244, 229, .12);
}

.world-bar--light .world-bar__meta {
  color: rgba(247, 238, 221, .57);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 43px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .06em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s var(--ease-soft), background .25s ease, color .25s ease, box-shadow .25s ease;
}

.button svg {
  width: 15px;
  height: 15px;
}

.button--ink {
  color: var(--paper);
  background: var(--leaf-dark);
  box-shadow: 0 8px 18px rgba(38, 59, 44, .18);
}

.button--ink:hover {
  background: #223d2f;
  transform: translateY(-2px);
}

.button--ghost {
  color: var(--ink-soft);
  border-color: rgba(79, 99, 77, .22);
  background: transparent;
}

.button--ghost:hover {
  color: var(--ink);
  background: rgba(89, 113, 84, .08);
}

.text-button {
  padding: 4px 0;
  border: 0;
  border-bottom: 1px solid rgba(77, 100, 73, .3);
  color: #72806c;
  background: none;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: .08em;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease;
}

.text-button:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.text-button:disabled {
  cursor: default;
  opacity: .45;
}

.text-button--dark {
  color: #70806b;
}

.text-button.is-confirming {
  color: #a45d4e;
  border-color: #a45d4e;
}

/* =========================================================
   HOME — the path, the clouds, the little door
   ========================================================= */

.screen--home {
  background: #f3e8d6;
}

.home-scene {
  position: absolute;
  inset: 0;
  isolation: isolate;
  overflow: hidden;
}

.landscape-wrap {
  position: absolute;
  inset: -2.5%;
  z-index: 0;
  transform: translate3d(var(--scene-x, 0px), var(--scene-y, 0px), 0) scale(1.025);
  transition: transform .9s cubic-bezier(.16, .76, .28, 1);
  will-change: transform;
}

.landscape {
  width: 100%;
  height: 100%;
}

.scene-glow {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 69% 13%, rgba(255, 250, 219, .4) 0%, rgba(255, 250, 219, 0) 31%),
    linear-gradient(180deg, rgba(255, 252, 242, .18) 0%, rgba(255, 252, 242, 0) 27%, rgba(255, 252, 242, 0) 65%, rgba(72, 91, 64, .14) 100%);
}

.ambient {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
}

.mote {
  position: absolute;
  width: var(--size, 5px);
  height: var(--size, 5px);
  border-radius: 50%;
  background: rgba(255, 241, 190, .82);
  box-shadow: 0 0 8px rgba(255, 231, 159, .8);
  opacity: 0;
  animation: moteFloat var(--dur, 14s) var(--delay, 0s) ease-in-out infinite;
}

.mote--green {
  background: rgba(240, 250, 201, .6);
  box-shadow: 0 0 7px rgba(232, 247, 192, .6);
}

.mote--seed {
  width: 11px;
  height: 11px;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.mote--seed::before,
.mote--seed::after {
  content: "";
  position: absolute;
  left: 4px;
  bottom: 0;
  width: 1px;
  height: 8px;
  background: rgba(255, 247, 220, .76);
  transform: rotate(38deg);
  transform-origin: bottom;
}

.mote--seed::after {
  left: 6px;
  height: 7px;
  transform: rotate(-32deg);
}

@keyframes moteFloat {
  0% { opacity: 0; transform: translate3d(0, 22px, 0) rotate(0); }
  14% { opacity: .8; }
  56% { opacity: .55; transform: translate3d(var(--drift, 22px), -45px, 0) rotate(18deg); }
  86% { opacity: .12; }
  100% { opacity: 0; transform: translate3d(calc(var(--drift, 22px) * 1.7), -96px, 0) rotate(34deg); }
}

.butterfly {
  position: absolute;
  z-index: 4;
  width: 26px;
  height: 22px;
  pointer-events: none;
  opacity: .85;
  animation: butterflyPath 19s ease-in-out infinite;
}

.butterfly--one {
  left: 47%;
  top: 57%;
  --wing: rgba(239, 193, 166, .8);
}

.butterfly--two {
  left: 69%;
  top: 47%;
  z-index: 9;
  transform: scale(.7);
  animation-delay: -8s;
  animation-duration: 23s;
  --wing: rgba(218, 204, 163, .75);
}

.butterfly__wing {
  position: absolute;
  top: 2px;
  width: 12px;
  height: 16px;
  background: var(--wing);
  border: 1px solid rgba(132, 114, 78, .2);
  box-shadow: inset 0 0 5px rgba(255, 253, 239, .4);
  animation: wingFlutter .48s ease-in-out infinite alternate;
}

.butterfly__wing--left {
  right: 50%;
  transform-origin: right center;
  border-radius: 80% 24% 55% 42%;
}

.butterfly__wing--right {
  left: 50%;
  transform-origin: left center;
  border-radius: 24% 80% 42% 55%;
  animation-delay: -.22s;
}

.butterfly__body {
  position: absolute;
  left: 50%;
  top: 7px;
  width: 2px;
  height: 10px;
  border-radius: 2px;
  background: #6d7461;
  transform: translateX(-50%);
}

@keyframes wingFlutter {
  from { transform: rotateY(0) rotateZ(-8deg); }
  to { transform: rotateY(58deg) rotateZ(8deg); }
}

@keyframes butterflyPath {
  0%, 100% { transform: translate(0, 0) rotate(-4deg); }
  22% { transform: translate(36px, -29px) rotate(8deg); }
  45% { transform: translate(79px, 7px) rotate(-2deg); }
  66% { transform: translate(26px, 43px) rotate(-8deg); }
  82% { transform: translate(-13px, 11px) rotate(3deg); }
}

.site-brand {
  position: absolute;
  top: 27px;
  left: clamp(22px, 3vw, 44px);
  z-index: 14;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(67, 87, 68, .72);
  font-family: var(--sans);
  font-size: 7px;
  font-weight: 500;
  line-height: 1.65;
  letter-spacing: .19em;
}

.site-brand svg {
  width: 32px;
  height: 24px;
  opacity: .72;
}

.site-brand b {
  color: rgba(55, 76, 59, .87);
  font-family: var(--serif);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .14em;
}

.hero {
  position: absolute;
  top: clamp(52px, 7.1vh, 88px);
  left: 50%;
  z-index: 12;
  width: min(92vw, 960px);
  text-align: center;
  pointer-events: none;
  transform: translateX(-50%);
}

.hero__kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.5vw, 18px);
  margin: 0;
  color: rgba(78, 97, 77, .58);
  font-family: var(--sans);
  font-size: clamp(7px, .68vw, 9px);
  font-weight: 600;
  letter-spacing: .32em;
  animation: heroIn 1.2s .08s var(--ease-soft) both;
}

.hero__kicker span {
  width: clamp(22px, 3.4vw, 50px);
  height: 1px;
  background: rgba(77, 98, 76, .28);
}

.hero__title {
  position: relative;
  margin: clamp(7px, 1vh, 14px) 0 0;
  color: #354f3e;
  font-family: var(--display);
  font-size: clamp(66px, 8.55vw, 134px);
  font-weight: 400;
  line-height: .96;
  letter-spacing: .075em;
  text-indent: .075em;
  text-shadow: 0 2px 0 rgba(255, 252, 238, .38), 0 12px 48px rgba(71, 92, 69, .08);
  animation: heroIn 1.35s .14s var(--ease-soft) both;
}

.hero__title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: min(44%, 390px);
  height: 13px;
  transform: translateX(-50%);
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 320 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 11c62-9 134-7 197-3 36 2 78 1 117-5' fill='none' stroke='%236e8865' stroke-width='1.2' stroke-linecap='round' opacity='.48'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  opacity: .8;
}

.hero__sub {
  margin: clamp(10px, 1.5vh, 17px) 0 0;
  color: rgba(64, 83, 67, .8);
  font-family: var(--serif);
  font-size: clamp(13px, 1.25vw, 17px);
  font-weight: 400;
  letter-spacing: .19em;
  text-indent: .19em;
  animation: heroIn 1.35s .26s var(--ease-soft) both;
}

.hero__hint {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: clamp(13px, 2vh, 22px) 0 0;
  padding: 7px 14px 8px;
  border: 1px solid rgba(98, 115, 90, .2);
  border-radius: 999px;
  color: rgba(72, 90, 72, .72);
  background: rgba(255, 250, 237, .4);
  font-family: var(--sans);
  font-size: clamp(9px, .8vw, 10.5px);
  font-weight: 500;
  letter-spacing: .12em;
  backdrop-filter: blur(5px);
  animation: heroIn 1.35s .36s var(--ease-soft) both;
}

.hero__hint-mark {
  color: #c89d59;
  font-size: 12px;
  transform: translateY(-1px);
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(14px); filter: blur(4px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* ————————— clouds as little doors ————————— */

.cloud-field {
  position: absolute;
  inset: 0;
  z-index: 9;
  pointer-events: none;
}

.cloud-portal {
  position: absolute;
  display: block;
  width: var(--cloud-w, clamp(300px, 29vw, 430px));
  color: var(--ink);
  text-decoration: none;
  pointer-events: auto;
  opacity: 0;
  transform: rotate(var(--tilt, 0deg));
  animation: portalIn 1.2s .58s var(--ease-soft) forwards;
}

@keyframes portalIn {
  from { opacity: 0; transform: translateY(24px) rotate(var(--tilt, 0deg)) scale(.96); }
  to { opacity: 1; transform: translateY(0) rotate(var(--tilt, 0deg)) scale(1); }
}

.cloud-portal--garden {
  --cloud-w: clamp(300px, 29.5vw, 440px);
  --tilt: -1.15deg;
  left: clamp(20px, 6vw, 110px);
  top: 35.5%;
}

.cloud-portal--post {
  --cloud-w: clamp(290px, 28vw, 420px);
  --tilt: 1.5deg;
  right: clamp(20px, 5.4vw, 104px);
  top: 24.8%;
  animation-delay: .76s;
}

.cloud-portal__aura {
  position: absolute;
  left: 50%;
  top: 35%;
  width: 138%;
  height: 140%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 248, 218, .54) 0%, rgba(255, 248, 218, .16) 44%, rgba(255, 248, 218, 0) 72%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cloud-portal__bob {
  position: relative;
  display: block;
  animation: cloudBob 7.8s var(--bob-delay, -1.2s) ease-in-out infinite;
  transform-origin: 50% 90%;
}

.cloud-portal--post .cloud-portal__bob {
  animation-duration: 8.8s;
}

@keyframes cloudBob {
  0%, 100% { transform: translateY(0) rotate(0); }
  45% { transform: translateY(-10px) rotate(-.35deg); }
  72% { transform: translateY(3px) rotate(.2deg); }
}

.cloud-art {
  width: 100%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 28px 28px rgba(65, 83, 65, .14)) drop-shadow(0 4px 2px rgba(72, 88, 67, .06));
  transition: transform .55s var(--ease-soft), filter .55s var(--ease-soft);
}

.cloud-portal:hover .cloud-art,
.cloud-portal:focus-visible .cloud-art {
  transform: translateY(-7px) scale(1.018);
  filter: drop-shadow(0 34px 32px rgba(65, 83, 65, .17)) drop-shadow(0 4px 2px rgba(72, 88, 67, .06));
}

.cloud-portal:focus-visible {
  outline: none;
}

.cloud-portal:focus-visible .cloud-tag {
  box-shadow: 0 0 0 3px rgba(55, 85, 62, .55), 0 20px 38px rgba(65, 81, 59, .15);
}

.cloud-body-highlights {
  transition: opacity .5s ease;
}

.cloud-portal:hover .cloud-body-highlights {
  opacity: 1;
}

.cloud-garden-details,
.cloud-mail-details,
.paper-plane,
.post-cloud-moon {
  animation: detailBreathe 8s ease-in-out infinite;
  transform-origin: center;
}

@keyframes detailBreathe {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.cloud-door {
  position: absolute;
  left: 50%;
  top: 25.5%;
  display: block;
  width: 29%;
  max-width: 122px;
  aspect-ratio: .84;
  padding: 4px;
  border: 1px solid rgba(255, 253, 246, .85);
  border-radius: 52% 52% 12px 12px / 43% 43% 9px 9px;
  box-shadow:
    0 12px 18px rgba(84, 92, 65, .18),
    0 0 0 1px rgba(99, 108, 82, .14),
    inset 0 0 0 1px rgba(255, 255, 255, .4);
  transform: translateX(-50%);
  transition: transform .4s var(--ease-soft), box-shadow .4s ease;
  z-index: 2;
}

.cloud-door--garden {
  background: linear-gradient(145deg, #fff7e1, #f6dfb7 54%, #e7c596);
}

.cloud-door--post {
  background: linear-gradient(145deg, #f4f1df, #d8e2dd 55%, #becfc8);
}

.cloud-door__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(77, 98, 78, .16);
  border-radius: 50% 50% 8px 8px / 41% 41% 6px 6px;
  background:
    radial-gradient(circle at 50% 25%, rgba(255, 254, 245, .9), rgba(255, 248, 230, .15) 55%),
    linear-gradient(180deg, rgba(255, 253, 242, .35), rgba(232, 213, 177, .1));
}

.cloud-door__inner::before {
  content: "";
  position: absolute;
  inset: 7%;
  border: 1px dashed rgba(88, 108, 83, .28);
  border-radius: 50% 50% 7px 7px / 42% 42% 5px 5px;
  pointer-events: none;
}

.cloud-door__glow {
  position: absolute;
  inset: -10px;
  border-radius: inherit;
  background: radial-gradient(ellipse at 50% 60%, rgba(255, 240, 187, .56), rgba(255, 240, 187, 0) 66%);
  opacity: .25;
  transition: opacity .4s ease;
  pointer-events: none;
}

.cloud-portal:hover .cloud-door {
  transform: translateX(-50%) translateY(-5px);
  box-shadow:
    0 18px 26px rgba(84, 92, 65, .2),
    0 0 0 1px rgba(99, 108, 82, .16),
    0 0 28px rgba(255, 232, 170, .6),
    inset 0 0 0 1px rgba(255, 255, 255, .6);
}

.cloud-portal:hover .cloud-door__glow {
  opacity: .9;
}

.cloud-door__icon {
  width: 52%;
  height: auto;
  margin-top: 6%;
  filter: drop-shadow(0 2px 1px rgba(75, 83, 57, .12));
}

.cloud-door__tiny {
  margin-top: 1px;
  color: rgba(65, 81, 61, .72);
  font-family: var(--display);
  font-size: clamp(8px, .84vw, 11px);
  letter-spacing: .1em;
}

.cloud-door__step {
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 72%;
  height: 7px;
  border-radius: 50%;
  background: rgba(211, 184, 139, .3);
  transform: translateX(-50%);
  filter: blur(1px);
}

.cloud-portal__spark {
  position: absolute;
  color: #f1ce86;
  text-shadow: 0 0 8px rgba(255, 235, 173, .8);
  pointer-events: none;
  animation: sparkleTwinkle 4.6s ease-in-out infinite;
}

.cloud-portal__spark--a {
  top: 11%;
  right: 12%;
  font-size: 14px;
}

.cloud-portal__spark--b {
  top: 33%;
  left: 8%;
  font-size: 9px;
  animation-delay: -1.8s;
  color: rgba(235, 248, 211, .8);
}

.cloud-portal__spark--c {
  top: 47%;
  right: 8%;
  font-size: 22px;
  animation-delay: -3.1s;
  color: rgba(255, 247, 228, .8);
}

@keyframes sparkleTwinkle {
  0%, 100% { opacity: .25; transform: scale(.7) rotate(0deg); }
  42% { opacity: .88; transform: scale(1.1) rotate(15deg); }
  68% { opacity: .4; transform: scale(.85) rotate(-10deg); }
}

.cloud-tag {
  position: relative;
  display: block;
  width: 68%;
  max-width: 264px;
  margin: -25px auto 0;
  padding: 16px 16px 14px;
  border: 1px solid rgba(130, 109, 79, .26);
  border-radius: 5px 17px 17px 16px;
  background:
    linear-gradient(180deg, rgba(255, 252, 242, .98), rgba(250, 241, 222, .96)),
    repeating-linear-gradient(0deg, transparent 0 18px, rgba(159, 133, 91, .06) 18px 19px);
  box-shadow: 0 20px 38px rgba(65, 81, 59, .13), inset 0 0 0 3px rgba(255, 255, 255, .28);
  transform: rotate(calc(var(--tilt, 0deg) * -1));
  transition: transform .35s var(--ease-soft), box-shadow .35s ease, background .35s ease;
}

.cloud-tag::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 100%;
  height: 27px;
  border-left: 1px solid rgba(128, 106, 74, .48);
  transform: translateX(-50%);
}

.cloud-tag::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 25px);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #d3ae76;
  transform: translateX(-50%);
}

.cloud-tag__pin {
  position: absolute;
  top: -4px;
  left: 50%;
  width: 7px;
  height: 7px;
  border: 1px solid #b89158;
  border-radius: 50%;
  background: #f2ddb8;
  transform: translateX(-50%);
  box-shadow: 0 0 0 2px rgba(255, 249, 236, .5);
}

.cloud-tag__meta {
  display: block;
  color: #96805c;
  font-family: var(--sans);
  font-size: 8px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .17em;
}

.cloud-tag__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
}

.cloud-tag__title {
  display: block;
  color: #38513f;
  font-family: var(--display);
  font-size: clamp(26px, 2.2vw, 34px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: .04em;
  white-space: nowrap;
}

.cloud-tag__go {
  display: grid;
  place-items: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(77, 102, 75, .25);
  border-radius: 50%;
  color: #6b8066;
  transition: background .3s ease, transform .35s var(--ease-soft), color .3s ease;
}

.cloud-tag__go svg {
  width: 12px;
  height: 12px;
}

.cloud-tag__desc {
  display: block;
  margin-top: 4px;
  color: #837b65;
  font-family: var(--serif);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: .075em;
}

.cloud-portal:hover .cloud-tag {
  transform: rotate(calc(var(--tilt, 0deg) * -1 + .4deg)) translateY(2px);
  box-shadow: 0 24px 44px rgba(65, 81, 59, .17), inset 0 0 0 3px rgba(255, 255, 255, .32);
}

.cloud-portal:hover .cloud-tag__go {
  color: var(--paper);
  background: var(--leaf-deep);
  transform: rotate(8deg) scale(1.06);
}

.cloud-portal:active .cloud-portal__bob {
  transform: scale(.992);
}

/* ————— path-side ephemera ————— */

.trail-wish {
  position: absolute;
  left: clamp(22px, 5.2vw, 84px);
  bottom: 17.5%;
  z-index: 7;
  display: flex;
  align-items: center;
  gap: 11px;
  color: rgba(76, 96, 72, .6);
  pointer-events: none;
}

.trail-wish__line {
  display: block;
  width: 38px;
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(96, 114, 88, .5) 0 3px, transparent 3px 7px);
}

.trail-wish p {
  margin: 0;
  font-family: var(--serif);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: .1em;
}

.trail-wish p span {
  color: rgba(78, 96, 72, .4);
}

.home-footer {
  position: absolute;
  left: clamp(22px, 3vw, 44px);
  bottom: max(26px, var(--safe-bottom));
  z-index: 13;
  pointer-events: none;
}

.home-weather {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: rgba(71, 90, 69, .64);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .16em;
}

.home-weather__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d4a862;
  box-shadow: 0 0 0 3px rgba(212, 168, 98, .13);
}

.home-copy {
  margin: 7px 0 0;
  color: rgba(78, 94, 73, .45);
  font-family: var(--serif);
  font-size: 10px;
  letter-spacing: .08em;
}

/* ————— the watermelon button ————— */

.plant-cta {
  position: absolute;
  right: clamp(18px, 2.8vw, 40px);
  bottom: max(24px, calc(var(--safe-bottom) + 14px));
  z-index: 22;
  display: flex;
  align-items: center;
  gap: 12px;
  width: clamp(238px, 21vw, 292px);
  min-height: 86px;
  padding: 10px 13px 10px 10px;
  border: 1.5px solid #496b50;
  border-radius: 21px;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 15% 10%, rgba(255, 253, 241, .9), transparent 45%),
    linear-gradient(135deg, #fff9e9, #f4e4c6);
  box-shadow:
    0 6px 0 rgba(54, 79, 57, .14),
    0 20px 35px rgba(51, 73, 53, .18),
    inset 0 0 0 3px rgba(255, 255, 255, .27);
  text-decoration: none;
  transform: rotate(.6deg);
  transition: transform .35s var(--ease-soft), box-shadow .35s ease, background .35s ease;
}

.plant-cta::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px dashed rgba(88, 112, 78, .22);
  border-radius: 16px;
  pointer-events: none;
}

.plant-cta__leaf {
  position: absolute;
  z-index: 0;
  display: block;
  width: 28px;
  height: 16px;
  border: 1px solid rgba(70, 98, 67, .18);
  border-radius: 100% 0 100% 0;
  background: #89a276;
  opacity: .9;
}

.plant-cta__leaf--one {
  top: -11px;
  right: 33px;
  transform: rotate(22deg);
}

.plant-cta__leaf--two {
  right: 22px;
  top: -8px;
  width: 19px;
  height: 11px;
  transform: rotate(51deg);
  background: #a2b88a;
}

.plant-cta__photo {
  position: relative;
  z-index: 1;
  display: block;
  flex: 0 0 65px;
  width: 65px;
  height: 65px;
  overflow: hidden;
  border: 1.5px solid #527553;
  border-radius: 50%;
  background: #e8f0db;
  box-shadow: inset 0 0 0 3px rgba(255, 249, 230, .55), 0 6px 14px rgba(59, 83, 56, .12);
}

.plant-cta__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 18px rgba(55, 87, 47, .12);
  pointer-events: none;
}

.plant-cta__photo img {
  width: 115%;
  max-width: none;
  height: 115%;
  margin: -7.5%;
  object-fit: cover;
  transition: transform .5s var(--ease-soft);
}

.plant-cta__copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.plant-cta__kicker {
  color: #947c54;
  font-family: var(--sans);
  font-size: 8px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .18em;
}

.plant-cta__title {
  display: block;
  margin: 2px 0 0;
  color: #324d3a;
  font-family: var(--display);
  font-size: clamp(23px, 2vw, 28px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: .04em;
}

.plant-cta__sub {
  display: block;
  max-width: 150px;
  margin: 2px 0 0;
  overflow: hidden;
  color: #7f7c68;
  font-family: var(--serif);
  font-size: 9.5px;
  line-height: 1.4;
  letter-spacing: .04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plant-cta__arrow {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: var(--paper);
  background: var(--leaf-dark);
  box-shadow: 0 4px 10px rgba(46, 69, 50, .2);
  transition: transform .35s var(--ease-soft);
}

.plant-cta__arrow svg {
  width: 13px;
  height: 13px;
}

.plant-cta:hover {
  transform: rotate(0deg) translateY(-5px);
  box-shadow:
    0 8px 0 rgba(54, 79, 57, .12),
    0 28px 45px rgba(51, 73, 53, .22),
    inset 0 0 0 3px rgba(255, 255, 255, .28);
}

.plant-cta:hover .plant-cta__photo img {
  transform: rotate(7deg) scale(1.03);
}

.plant-cta:hover .plant-cta__arrow {
  transform: rotate(8deg) scale(1.06);
}

/* =========================================================
   GARDEN WORLD
   ========================================================= */

.screen--garden {
  overflow-y: auto;
  overflow-x: hidden;
  background: #f3ead8;
}

.garden-bg {
  position: absolute;
  inset: 0;
  min-height: 100%;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 74% 13%, rgba(255, 236, 186, .75), rgba(255, 236, 186, 0) 36%),
    linear-gradient(180deg, #d9ece6 0%, #eaf1e2 35%, #f8efd9 62%, #f7ddc3 100%);
  pointer-events: none;
}

.gw-sun {
  position: absolute;
  top: 9%;
  right: 14%;
  width: clamp(90px, 13vw, 180px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 37%, #fff8dc 0%, #ffe9b8 56%, #f7d59b 100%);
  box-shadow: 0 0 100px 45px rgba(255, 239, 188, .45);
  opacity: .9;
}

.gw-cloud {
  position: absolute;
  height: 56px;
  border-radius: 999px;
  background: rgba(255, 251, 241, .65);
  filter: blur(.3px);
  box-shadow: 0 25px 55px rgba(154, 176, 157, .12);
}

.gw-cloud::before,
.gw-cloud::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: inherit;
}

.gw-cloud::before {
  left: 14%;
  bottom: 10%;
  width: 34%;
  aspect-ratio: 1;
}

.gw-cloud::after {
  right: 12%;
  bottom: 18%;
  width: 45%;
  aspect-ratio: 1;
}

.gw-cloud--one {
  top: 19%;
  left: -2%;
  width: 290px;
  opacity: .7;
  animation: gardenCloud 28s ease-in-out infinite alternate;
}

.gw-cloud--two {
  top: 31%;
  right: 10%;
  width: 190px;
  height: 40px;
  opacity: .52;
  animation: gardenCloud 35s -8s ease-in-out infinite alternate-reverse;
}

.gw-cloud--three {
  top: 8%;
  left: 31%;
  width: 145px;
  height: 34px;
  opacity: .28;
  filter: blur(2px);
  animation: gardenCloud 31s -14s ease-in-out infinite alternate;
}

@keyframes gardenCloud {
  from { transform: translateX(-10px); }
  to { transform: translateX(24px); }
}

.gw-hill {
  position: absolute;
  border-radius: 50% 50% 0 0;
  pointer-events: none;
}

.gw-hill--far {
  left: -12%;
  right: -12%;
  bottom: 13%;
  height: 30%;
  background: rgba(194, 216, 176, .6);
  filter: blur(.5px);
  transform: rotate(-1deg);
}

.gw-hill--near {
  left: -16%;
  right: -16%;
  bottom: 4%;
  height: 31%;
  background: linear-gradient(180deg, rgba(164, 197, 144, .8), rgba(132, 169, 120, .8));
}

.gw-island {
  position: absolute;
  left: 50%;
  bottom: -31%;
  width: 128%;
  height: 68%;
  border-radius: 50%;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse at 50% 6%, rgba(255, 254, 244, .96), rgba(255, 251, 239, .96) 58%, rgba(238, 226, 207, .7) 80%, rgba(238, 226, 207, 0) 100%);
  filter: drop-shadow(0 -18px 38px rgba(133, 157, 124, .12));
}

.gw-island::before {
  content: "";
  position: absolute;
  left: 9%;
  right: 9%;
  top: 8%;
  height: 64%;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 34% 12%, rgba(230, 243, 205, .5), transparent 33%),
    linear-gradient(180deg, #b5d09d 0%, #97b984 45%, #7f9f71 100%);
  box-shadow: inset 0 20px 40px rgba(255, 249, 218, .2), 0 8px 30px rgba(84, 112, 73, .12);
}

.gw-petal {
  position: absolute;
  width: 9px;
  height: 14px;
  border-radius: 100% 0 100% 0;
  background: rgba(238, 190, 181, .55);
  animation: petalDrift 17s linear infinite;
}

.gw-petal--one {
  top: 22%;
  left: 22%;
  animation-delay: -3s;
}

.gw-petal--two {
  top: 38%;
  left: 82%;
  transform: scale(.7);
  animation-delay: -9s;
  animation-duration: 21s;
}

.gw-petal--three {
  top: 10%;
  left: 58%;
  transform: scale(.55);
  background: rgba(255, 243, 201, .65);
  animation-delay: -14s;
}

@keyframes petalDrift {
  0% { opacity: 0; translate: 0 -20px; rotate: 0deg; }
  15% { opacity: .8; }
  80% { opacity: .5; }
  100% { opacity: 0; translate: 60px 130px; rotate: 130deg; }
}

.garden-content {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(300px, 390px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 80px);
  width: min(1360px, 100%);
  min-height: calc(100svh - 48px);
  margin: 0 auto;
  padding: clamp(106px, 13vh, 152px) clamp(24px, 5.2vw, 80px) clamp(52px, 6vh, 82px);
}

.garden-card {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: clamp(28px, 3vw, 38px) clamp(24px, 2.8vw, 34px) 26px;
  border: 1px solid rgba(132, 111, 79, .23);
  border-radius: 4px 24px 24px 22px;
  background:
    linear-gradient(180deg, rgba(255, 252, 243, .98), rgba(249, 239, 220, .97)),
    repeating-linear-gradient(0deg, transparent 0 25px, rgba(145, 124, 88, .045) 25px 26px);
  box-shadow: var(--shadow-paper);
  transform: rotate(-.8deg);
  animation: cardFloatIn 1s .15s var(--ease-soft) both;
}

@keyframes cardFloatIn {
  from { opacity: 0; transform: rotate(-1.6deg) translateY(18px); }
  to { opacity: 1; transform: rotate(-.8deg) translateY(0); }
}

.garden-card__tape {
  position: absolute;
  top: -12px;
  left: 33px;
  width: 88px;
  height: 25px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .35), rgba(255, 255, 255, .08)),
    #e9dcc2;
  opacity: .8;
  transform: rotate(-3deg);
  box-shadow: 0 2px 6px rgba(85, 94, 71, .06);
  clip-path: polygon(3% 0, 97% 0, 100% 14%, 98% 100%, 2% 98%, 0 17%);
}

.garden-card .world-title {
  margin-top: 8px;
  margin-bottom: 18px;
  font-size: clamp(42px, 3.9vw, 60px);
  letter-spacing: .015em;
  white-space: nowrap;
}

.garden-card__desc {
  margin: 0;
  color: #6e745f;
  font-family: var(--serif);
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 2.05;
  letter-spacing: .06em;
}

.garden-progress {
  margin-top: clamp(24px, 3.2vh, 34px);
  padding-top: 17px;
  border-top: 1px dashed rgba(134, 116, 83, .3);
}

.garden-progress__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #8b826c;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .14em;
}

.garden-progress__label strong {
  color: #5a7058;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .04em;
}

.garden-progress__label b {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 400;
  vertical-align: -3px;
}

.garden-progress__label strong span {
  color: #a69b87;
  font-size: 10px;
}

.garden-progress__dots {
  display: flex;
  gap: 6px;
  margin-top: 7px;
}

.garden-progress__dots span {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(120, 133, 102, .15);
  transition: background .45s ease, transform .45s var(--ease-soft);
}

.garden-progress__dots span.is-on {
  background: #7f9e72;
  transform: scaleY(1.5);
}

.garden-progress__dots span.is-on:nth-child(2) { background: #a9b9cb; }
.garden-progress__dots span.is-on:nth-child(3) { background: #d8bc78; }
.garden-progress__dots span.is-on:nth-child(4) { background: #bba5c6; }
.garden-progress__dots span.is-on:nth-child(5) { background: #d7a9b3; }
.garden-progress__dots span.is-on:nth-child(6) { background: #98b4d1; }

.garden-message {
  min-height: 44px;
  margin: 16px 0 0;
  color: #7e7c68;
  font-family: var(--serif);
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: .04em;
  transition: opacity .3s ease;
}

.garden-message.is-changing {
  opacity: .2;
}

.garden-card__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(137, 118, 83, .14);
}

.garden-card__number {
  color: #a89a80;
  font-family: var(--sans);
  font-size: 8px;
  letter-spacing: .16em;
}

.garden-card__number i {
  margin: 0 3px;
  font-style: normal;
  opacity: .5;
}

.garden-play {
  position: relative;
  min-width: 0;
  min-height: clamp(480px, 64vh, 620px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 70px;
  animation: playFadeIn 1.2s .25s var(--ease-soft) both;
}

@keyframes playFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.garden-cloudbed {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: -4%;
  width: calc(100vw + 100%);
  height: 77%;
  transform: translateX(-50%);
  pointer-events: none;
}

.garden-cloudbed__moon {
  display: none;
}

.garden-cloudbed__hill {
  position: absolute;
  left: 3%;
  right: 3%;
  bottom: 6%;
  height: 56%;
  border-radius: 48% 52% 12% 12% / 78% 76% 0 0;
  background:
    radial-gradient(ellipse at 36% 11%, rgba(232, 243, 209, .7), transparent 40%),
    linear-gradient(180deg, #bbd6a4 0%, #a1c08b 35%, #89aa7a 74%, #7d9b6e 100%);
  box-shadow: inset 0 14px 30px rgba(250, 249, 218, .24), 0 24px 60px rgba(78, 104, 67, .2);
}

.garden-cloudbed__grass {
  position: absolute;
  left: 7%;
  right: 7%;
  bottom: 15%;
  height: 20%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 78%, rgba(255, 246, 218, .21), transparent 60%);
}

.garden-cloudbed__pebble {
  position: absolute;
  border-radius: 50%;
  background: rgba(237, 228, 203, .5);
  box-shadow: inset 0 3px 7px rgba(94, 111, 80, .12);
}

.garden-cloudbed__pebble--one {
  width: 78px;
  height: 25px;
  bottom: 11%;
  left: 19%;
  transform: rotate(-7deg);
}

.garden-cloudbed__pebble--two {
  width: 42px;
  height: 16px;
  bottom: 21%;
  right: 22%;
  transform: rotate(9deg);
}

.garden-cloudbed__pebble--three {
  width: 24px;
  height: 10px;
  bottom: 33%;
  left: 28%;
}

.garden-bed {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: end;
  gap: clamp(0px, .7vw, 10px);
  width: 100%;
  min-height: 350px;
  padding: 0 1% 34px;
}

.flower {
  --stem-h: var(--stem, 150px);
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  height: min(38vh, 340px);
  min-height: 280px;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: none;
  cursor: pointer;
  isolation: isolate;
}

.flower__sway {
  position: absolute;
  left: 50%;
  bottom: 26px;
  display: block;
  width: 100%;
  height: calc(100% - 24px);
  transform-origin: 50% 100%;
  translate: -50% 0;
  animation: flowerSway 6.7s var(--delay, 0s) ease-in-out infinite;
}

@keyframes flowerSway {
  0%, 100% { rotate: -1.7deg; }
  45% { rotate: 1.4deg; }
  72% { rotate: -.5deg; }
}

.flower__stem {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 3px;
  height: var(--stem-h);
  border-radius: 3px;
  background: linear-gradient(180deg, #769561, #54774e);
  transform: translateX(-50%);
}

.flower__stem i {
  position: absolute;
  display: block;
  width: 22px;
  height: 11px;
  border-radius: 100% 0 100% 0;
  background: linear-gradient(145deg, #91ae7a, #6e905e);
  transform: rotate(-18deg);
}

.flower__stem i:first-child {
  top: 36%;
  left: 1px;
}

.flower__stem i:last-child {
  top: 55%;
  right: 1px;
  transform: rotate(144deg) scale(.8);
}

.flower__stem::before,
.flower__stem::after {
  content: "";
  position: absolute;
  display: block;
  width: 15px;
  height: 7px;
  border-radius: 100% 0 100% 0;
  background: linear-gradient(145deg, #a4bd86, #72955f);
}

.flower__stem::before {
  left: 2px;
  top: 21%;
  transform: rotate(-36deg);
}

.flower__stem::after {
  left: -14px;
  top: 70%;
  transform: rotate(212deg) scale(.85);
  opacity: .8;
}

.flower__bud {
  position: absolute;
  left: 50%;
  bottom: calc(var(--stem-h) - 5px);
  z-index: 2;
  width: 16px;
  height: 23px;
  border: 1px solid rgba(78, 108, 66, .25);
  border-radius: 55% 55% 45% 45% / 42% 42% 58% 58%;
  background:
    linear-gradient(150deg, var(--accent, #adc18b) 0 13%, transparent 28%),
    linear-gradient(150deg, #adc18b, #729560);
  transform: translateX(-50%) rotate(7deg);
  transform-origin: 50% 100%;
  box-shadow: 2px 3px 6px rgba(72, 95, 61, .12);
  transition: opacity .5s ease, transform .6s var(--ease-soft);
}

.flower__bud::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 1px;
  height: 18px;
  background: rgba(73, 104, 62, .26);
  transform: translateX(-50%);
}

.flower__bloom {
  position: absolute;
  left: 50%;
  bottom: calc(var(--stem-h) + 1px);
  width: 76px;
  height: 76px;
  transform: translateX(-50%) scale(.08) rotate(-18deg);
  transform-origin: 50% 62%;
  opacity: 0;
  filter: drop-shadow(0 5px 8px rgba(92, 102, 72, .12));
  transition: opacity .4s ease, transform .75s var(--ease-bounce);
}

.flower__petal {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 41%;
  height: 52%;
  border: 1px solid var(--accent-deep);
  border-radius: 52% 52% 48% 48% / 58% 58% 42% 42%;
  background:
    radial-gradient(ellipse at 46% 22%, rgba(255, 255, 255, .62), transparent 55%),
    var(--accent);
  transform: translate(-50%, -50%) rotate(var(--a)) translateY(-43%);
  transform-origin: center;
  opacity: .96;
}

.flower__center {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 26%;
  height: 26%;
  border: 1px solid var(--accent-deep);
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 35%, rgba(255, 251, 218, .85), transparent 30%),
    var(--center);
  transform: translate(-50%, -50%);
  box-shadow: inset 0 -2px 3px rgba(101, 77, 45, .15);
}

.flower__label {
  position: absolute;
  left: 50%;
  bottom: 2px;
  z-index: 4;
  padding: 4px 8px 5px;
  border: 1px solid rgba(117, 99, 68, .2);
  border-radius: 999px;
  color: #6f7762;
  background: rgba(255, 249, 232, .8);
  font-family: var(--serif);
  font-size: 9px;
  line-height: 1;
  letter-spacing: .08em;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 4px);
  transition: opacity .45s .2s ease, transform .45s .2s var(--ease-soft);
  backdrop-filter: blur(4px);
}

.flower:hover .flower__bud {
  transform: translateX(-50%) rotate(12deg) scale(1.06);
}

.flower:hover .flower__label {
  opacity: .8;
  transform: translate(-50%, 0);
}

.flower.is-bloomed .flower__bud {
  opacity: 0;
  transform: translateX(-50%) scale(.35) rotate(16deg);
}

.flower.is-bloomed .flower__bloom {
  opacity: 1;
  transform: translateX(-50%) scale(var(--scale, 1)) rotate(0deg);
}

.flower.is-bloomed .flower__label {
  opacity: 1;
  transform: translate(-50%, 0);
}

.flower.is-bloomed:hover .flower__bloom {
  transform: translateX(-50%) scale(calc(var(--scale, 1) * 1.04)) rotate(3deg);
}

.flower.is-bloomed .flower__sway {
  animation-duration: 5s;
}

.flower.is-pressed .flower__bloom {
  transform: translateX(-50%) scale(.9);
}

.flower__spark {
  pointer-events: none;
  position: absolute;
  z-index: 8;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #f8e0a3;
  animation: petalBurst .9s var(--ease-soft) forwards;
}

@keyframes petalBurst {
  0% { opacity: 1; scale: .4; translate: 0 0; }
  100% { opacity: 0; scale: 1; translate: var(--bx) var(--by); }
}

.garden-check {
  position: relative;
  z-index: 4;
  align-self: center;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px auto 14px;
  padding: 7px 13px 8px;
  border: 1px solid rgba(255, 249, 233, .35);
  border-radius: 999px;
  color: rgba(255, 251, 236, .85);
  background: rgba(72, 103, 70, .18);
  font-family: var(--serif);
  font-size: 10px;
  letter-spacing: .08em;
  backdrop-filter: blur(5px);
}

.garden-check p {
  margin: 0;
}

.garden-check__butterfly {
  position: relative;
  display: block;
  width: 18px;
  height: 13px;
  opacity: .65;
}

.garden-check__butterfly::before,
.garden-check__butterfly::after {
  content: "";
  position: absolute;
  top: 1px;
  width: 9px;
  height: 11px;
  border-radius: 80% 20% 55% 45%;
  background: rgba(255, 237, 197, .8);
}

.garden-check__butterfly::before {
  left: 0;
  transform-origin: right center;
  animation: wingFlutter .6s ease-in-out infinite alternate;
}

.garden-check__butterfly::after {
  right: 0;
  border-radius: 20% 80% 45% 55%;
  transform-origin: left center;
  animation: wingFlutter .6s -.3s ease-in-out infinite alternate;
}

.garden-play.is-awake .garden-check {
  color: var(--leaf-dark);
  border-color: rgba(255, 249, 232, .6);
  background: rgba(255, 249, 232, .75);
}

.garden-play.is-awake .garden-check__butterfly::before,
.garden-play.is-awake .garden-check__butterfly::after {
  background: #dda899;
}

.garden-play.is-awake .garden-check__butterfly {
  animation: butterflyLoop 8s ease-in-out infinite;
}

@keyframes butterflyLoop {
  0%, 100% { transform: translate(0, 0) rotate(-4deg); }
  30% { transform: translate(16px, -15px) rotate(8deg); }
  65% { transform: translate(30px, 1px) rotate(-4deg); }
}

.garden-footer {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 0 24px 22px;
  color: rgba(78, 94, 76, .5);
  font-family: var(--sans);
  font-size: 8px;
  letter-spacing: .16em;
  pointer-events: none;
}

.garden-footer__line {
  width: 28px;
  height: 1px;
  background: rgba(92, 113, 86, .25);
}

/* =========================================================
   POST OFFICE
   ========================================================= */

.screen--post {
  overflow-y: auto;
  overflow-x: hidden;
  background: #263d3e;
}

.post-bg {
  position: absolute;
  inset: 0;
  min-height: 100%;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 78% 19%, rgba(249, 218, 167, .28), transparent 34%),
    linear-gradient(180deg, #2d4a4c 0%, #3a5958 31%, #708577 60%, #c3b39d 82%, #e6c7ac 100%);
  pointer-events: none;
}

.post-moon {
  position: absolute;
  top: 13%;
  right: 18%;
  z-index: 1;
  width: clamp(88px, 10vw, 142px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 33%, rgba(255, 255, 243, .74), transparent 15%),
    radial-gradient(circle at 63% 58%, rgba(211, 174, 123, .2), transparent 17%),
    radial-gradient(circle at 46% 67%, rgba(206, 171, 119, .16), transparent 14%),
    radial-gradient(circle at 35% 31%, #fff7df 0%, #f4dfb5 58%, #e9c795 100%);
  box-shadow: 0 0 60px 18px rgba(248, 225, 180, .22);
  opacity: .9;
}

.post-moon__halo {
  position: absolute;
  top: 8%;
  right: 12%;
  z-index: 0;
  width: clamp(170px, 19vw, 280px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(252, 233, 196, .2), transparent 68%);
  filter: blur(8px);
}

.post-star {
  position: absolute;
  z-index: 1;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 246, 217, .8);
  box-shadow: 0 0 8px 2px rgba(255, 239, 190, .24);
  animation: starTwinkle 5s ease-in-out infinite;
}

.post-star--one { top: 18%; left: 13%; animation-delay: -1.2s; }
.post-star--two { top: 26%; left: 34%; width: 2px; height: 2px; animation-delay: -2.5s; }
.post-star--three { top: 10%; right: 31%; width: 4px; height: 4px; animation-delay: -3.8s; }
.post-star--four { top: 36%; right: 10%; animation-delay: -.7s; }
.post-star--five { top: 46%; left: 21%; width: 2px; height: 2px; animation-delay: -1.9s; }
.post-star--six { top: 8%; left: 56%; width: 2px; height: 2px; animation-delay: -4.4s; }
.post-star--seven { top: 31%; left: 7%; animation-delay: -2.1s; }
.post-star--eight { top: 20%; right: 41%; width: 2px; height: 2px; animation-delay: -3.2s; }

@keyframes starTwinkle {
  0%, 100% { opacity: .3; transform: scale(.78); }
  48% { opacity: 1; transform: scale(1.15); }
}

.post-cloud {
  position: absolute;
  z-index: 1;
  height: 46px;
  border-radius: 999px;
  background: rgba(255, 249, 236, .08);
  filter: blur(1px);
}

.post-cloud::before,
.post-cloud::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: inherit;
}

.post-cloud::before {
  left: 15%;
  bottom: 10%;
  width: 36%;
  aspect-ratio: 1;
}

.post-cloud::after {
  right: 15%;
  bottom: 14%;
  width: 44%;
  aspect-ratio: 1;
}

.post-cloud--one {
  top: 22%;
  left: -4%;
  width: 380px;
  opacity: .7;
  animation: postCloud 30s ease-in-out infinite alternate;
}

.post-cloud--two {
  top: 37%;
  right: -3%;
  width: 290px;
  opacity: .55;
  animation: postCloud 37s -9s ease-in-out infinite alternate-reverse;
}

.post-cloud--three {
  top: 51%;
  left: 23%;
  width: 180px;
  height: 32px;
  opacity: .3;
  animation: postCloud 31s -16s ease-in-out infinite alternate;
}

@keyframes postCloud {
  from { transform: translateX(-12px); }
  to { transform: translateX(24px); }
}

.post-horizon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 26%;
  z-index: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(250, 219, 181, .38), transparent);
  box-shadow: 0 0 40px 12px rgba(244, 212, 171, .2);
}

.post-hill {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -4%;
  border-radius: 50% 50% 0 0;
}

.post-hill--far {
  height: 28%;
  background: rgba(50, 75, 68, .38);
  transform: rotate(1.2deg);
}

.post-hill--near {
  left: -18%;
  right: -18%;
  bottom: -15%;
  height: 31%;
  background: linear-gradient(180deg, #263e3c, #1d3133);
}

.post-content {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(260px, 350px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(30px, 5vw, 90px);
  width: min(1260px, 100%);
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(110px, 14vh, 160px) clamp(24px, 5.4vw, 80px) clamp(80px, 10vh, 120px);
}

.post-copy {
  position: relative;
  z-index: 4;
  animation: postCopyIn 1.15s .16s var(--ease-soft) both;
}

@keyframes postCopyIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.post-copy .world-title {
  margin-top: 10px;
}

.post-copy__desc {
  margin: 0;
  color: rgba(247, 239, 220, .78);
  font-family: var(--serif);
  font-size: clamp(14px, 1.25vw, 16px);
  line-height: 2.1;
  letter-spacing: .08em;
}

.post-copy__rule {
  width: 45px;
  height: 1px;
  margin: 30px 0 19px;
  background: rgba(246, 231, 201, .32);
}

.post-copy__small {
  margin: 0;
  color: rgba(244, 234, 213, .46);
  font-family: var(--serif);
  font-size: 11px;
  line-height: 2;
  letter-spacing: .12em;
}

.post-copy__small strong {
  color: rgba(249, 228, 186, .85);
  font-family: var(--display);
  font-size: 20px;
  font-weight: 400;
  vertical-align: -2px;
}

.hanging-mail {
  position: absolute;
  top: 0;
  right: 6%;
  z-index: 4;
  width: 260px;
  height: 270px;
  pointer-events: none;
  opacity: .8;
}

.hanging-mail__thread {
  position: absolute;
  top: -10px;
  width: 1px;
  background: linear-gradient(180deg, rgba(244, 229, 197, .02), rgba(244, 229, 197, .3));
  transform-origin: top center;
  animation: mailSway 8s ease-in-out infinite;
}

.hanging-mail__thread--one {
  left: 31px;
  height: 137px;
}

.hanging-mail__thread--two {
  left: 126px;
  height: 90px;
  animation-delay: -2.2s;
}

.hanging-mail__thread--three {
  left: 215px;
  height: 160px;
  animation-delay: -4.8s;
}

@keyframes mailSway {
  0%, 100% { transform: rotate(-1deg); }
  50% { transform: rotate(1.4deg); }
}

.hanging-mail__letter {
  position: absolute;
  display: block;
  width: 52px;
  height: 37px;
  border: 1px solid rgba(241, 224, 191, .32);
  border-radius: 2px;
  background: linear-gradient(150deg, rgba(252, 241, 218, .44), rgba(242, 221, 186, .11));
  box-shadow: 0 8px 20px rgba(14, 31, 31, .1);
  backdrop-filter: blur(2px);
  transform-origin: top center;
  animation: mailSway 9s ease-in-out infinite;
}

.hanging-mail__letter::before {
  content: "";
  position: absolute;
  left: 7px;
  right: 7px;
  top: 11px;
  height: 1px;
  background: rgba(255, 246, 226, .24);
  box-shadow: 0 8px 0 rgba(255, 246, 226, .18);
}

.hanging-mail__letter i {
  position: absolute;
  right: 6px;
  top: 5px;
  width: 8px;
  height: 9px;
  border: 1px solid rgba(246, 227, 190, .35);
}

.hanging-mail__letter--one {
  top: 126px;
  left: 5px;
  transform: rotate(-4deg);
}

.hanging-mail__letter--two {
  top: 79px;
  left: 100px;
  transform: rotate(3deg);
  animation-delay: -3s;
}

.hanging-mail__letter--three {
  top: 149px;
  left: 190px;
  transform: rotate(-2deg);
  animation-delay: -6s;
}

.hanging-mail__thread--one,
.hanging-mail__thread--two,
.hanging-mail__thread--three {
  z-index: 2;
}

.mail-desk {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: min(62vh, 590px);
  padding-top: 20px;
  animation: deskIn 1.25s .25s var(--ease-soft) both;
}

@keyframes deskIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.mail-desk::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(82%, 590px);
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -51%);
  background:
    radial-gradient(circle at center, rgba(251, 230, 192, .16) 0%, rgba(251, 230, 192, .06) 38%, rgba(251, 230, 192, 0) 67%);
  pointer-events: none;
}

.mail-desk__back {
  position: absolute;
  left: 50%;
  top: 17%;
  z-index: 0;
  width: min(72%, 470px);
  height: 330px;
  transform: translateX(-50%);
  pointer-events: none;
}

.mail-desk__window {
  position: absolute;
  left: 50%;
  top: 2%;
  width: 78%;
  height: 100%;
  border: 1px solid rgba(247, 230, 200, .11);
  border-radius: 48% 48% 5px 5px / 32% 32% 0 0;
  background: linear-gradient(180deg, rgba(240, 218, 185, .05), rgba(240, 218, 185, 0));
  transform: translateX(-50%);
  box-shadow: inset 0 0 0 10px rgba(247, 232, 204, .025);
}

.mail-desk__window::before,
.mail-desk__window::after {
  content: "";
  position: absolute;
  background: rgba(247, 232, 204, .08);
}

.mail-desk__window::before {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
}

.mail-desk__window::after {
  left: 0;
  right: 0;
  top: 55%;
  height: 1px;
}

.mail-desk__vase {
  position: absolute;
  right: 12%;
  bottom: 5%;
  width: 34px;
  height: 42px;
  border-radius: 40% 40% 45% 45%;
  border: 1px solid rgba(247, 229, 195, .17);
  background: rgba(247, 229, 195, .06);
}

.mail-desk__vase i {
  position: absolute;
  bottom: 31px;
  left: 50%;
  width: 1px;
  height: 34px;
  background: rgba(247, 229, 195, .18);
  transform-origin: bottom;
}

.mail-desk__vase i::after {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 8px;
  height: 16px;
  border-radius: 100% 0 100% 0;
  background: rgba(247, 229, 195, .14);
}

.mail-desk__vase i:nth-child(1) { transform: rotate(-23deg); }
.mail-desk__vase i:nth-child(2) { transform: rotate(1deg); height: 42px; }
.mail-desk__vase i:nth-child(3) { transform: rotate(21deg); height: 29px; }

.envelope {
  position: relative;
  z-index: 4;
  width: min(460px, 77vw);
  aspect-ratio: 1.57;
  margin-bottom: 62px;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: none;
  cursor: pointer;
  transform: rotate(-2deg);
  transition: transform .5s var(--ease-soft);
}

.envelope:hover {
  transform: rotate(-.8deg) translateY(-7px);
}

.envelope__shadow {
  position: absolute;
  left: 7%;
  right: 7%;
  bottom: -9%;
  height: 16%;
  border-radius: 50%;
  background: rgba(15, 31, 30, .38);
  filter: blur(16px);
  transition: opacity .4s ease, transform .5s var(--ease-soft);
}

.envelope:hover .envelope__shadow {
  opacity: .75;
  transform: scale(1.04);
}

.envelope__body {
  position: absolute;
  inset: 0;
  display: block;
  overflow: visible;
  border: 1px solid rgba(164, 137, 92, .55);
  border-radius: 5px;
  background: #f8f0dd;
  box-shadow: 0 16px 40px rgba(18, 37, 35, .19), inset 0 0 0 5px rgba(255, 252, 242, .34);
}

.envelope__paperpeek {
  position: absolute;
  left: 9%;
  right: 9%;
  top: 9%;
  z-index: 2;
  display: block;
  height: 63%;
  padding-top: 11%;
  border: 1px solid rgba(154, 127, 85, .22);
  border-radius: 2px;
  color: #a08a68;
  background:
    repeating-linear-gradient(0deg, transparent 0 19px, rgba(144, 120, 79, .075) 19px 20px),
    #fffaf0;
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: .15em;
  text-align: center;
  transform: translateY(-4%);
  transition: transform .45s var(--ease-soft);
}

.envelope:hover .envelope__paperpeek {
  transform: translateY(-12%);
}

.envelope__flap {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: block;
  border-radius: 4px 4px 0 0;
  background:
    linear-gradient(172deg, #f4e5c9 0%, #e8d2ad 52%, #f1e2c6 100%);
  clip-path: polygon(0 0, 100% 0, 51% 59%, 49% 59%);
  filter: drop-shadow(0 2px 2px rgba(94, 77, 51, .08));
  transform-origin: top center;
  transition: transform .7s var(--ease-soft);
  backface-visibility: hidden;
}

.envelope:hover .envelope__flap {
  transform: perspective(700px) rotateX(3deg) translateY(-1px);
}

.envelope__front {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: block;
  border-radius: 4px;
  background:
    linear-gradient(28deg, rgba(255, 252, 242, .12) 49%, transparent 50%),
    linear-gradient(-28deg, rgba(255, 252, 242, .1) 49%, transparent 50%),
    linear-gradient(180deg, #f2e3c8 0%, #f8eed9 70%, #f2e4cb 100%);
  clip-path: polygon(0 39%, 50% 74%, 100% 39%, 100% 100%, 0 100%);
}

.envelope__address {
  position: absolute;
  left: 9%;
  bottom: 13%;
  z-index: 7;
  color: #8a7451;
  font-family: var(--serif);
  font-size: clamp(10px, 1.1vw, 13px);
  line-height: 1.8;
  letter-spacing: .14em;
  text-align: left;
}

.envelope__address em {
  color: rgba(138, 116, 81, .48);
  font-family: var(--sans);
  font-size: 8px;
  font-style: normal;
  letter-spacing: .2em;
}

.envelope__stamp {
  position: absolute;
  top: 11%;
  right: 7%;
  z-index: 7;
  display: grid;
  place-items: center;
  width: clamp(33px, 4.3vw, 48px);
  aspect-ratio: .82;
  border: 1px dashed #a88e60;
  color: #9b7d4c;
  background: rgba(250, 239, 213, .66);
  transform: rotate(3deg);
}

.envelope__stamp svg {
  width: 46%;
  height: 46%;
}

.envelope__seal {
  position: absolute;
  left: 50%;
  top: 51%;
  z-index: 8;
  display: grid;
  place-items: center;
  width: clamp(42px, 5vw, 57px);
  aspect-ratio: 1;
  border: 1px solid rgba(116, 55, 46, .35);
  border-radius: 50%;
  color: #f3ddc0;
  background:
    radial-gradient(circle at 37% 32%, rgba(255, 224, 196, .28), transparent 35%),
    #a96055;
  box-shadow: 0 3px 7px rgba(87, 48, 40, .23), inset 0 0 0 3px rgba(246, 220, 186, .1);
  transform: translate(-50%, -50%) rotate(-7deg);
  font-family: var(--display);
  font-size: clamp(17px, 2vw, 23px);
  line-height: 1;
}

.envelope__cta {
  position: absolute;
  left: 50%;
  bottom: -59px;
  z-index: 9;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px 10px;
  border: 1px solid rgba(247, 233, 205, .22);
  border-radius: 999px;
  color: #344d3d;
  border-color: rgba(255, 251, 240, .8);
  background: rgba(255, 248, 233, .94);
  box-shadow: 0 9px 22px rgba(13, 31, 30, .18);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .13em;
  white-space: nowrap;
  transform: translateX(-50%);
  transition: background .3s ease, color .3s ease, transform .3s var(--ease-soft);
  backdrop-filter: blur(5px);
}

.envelope__cta svg {
  width: 13px;
  height: 13px;
}

.envelope:hover .envelope__cta {
  color: var(--paper);
  background: var(--leaf-dark);
  transform: translateX(-50%) translateY(-2px);
}

.mail-desk__note {
  position: relative;
  z-index: 2;
  margin: 7px 0 0;
  color: rgba(249, 239, 220, .72);
  font-family: var(--serif);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-shadow: 0 1px 10px rgba(17, 37, 35, .42);
}

.mail-dots {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 6px;
  margin-top: 11px;
}

.mail-dots span {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(247, 233, 207, .42);
  transition: background .3s ease, transform .3s ease;
}

.mail-dots span.is-read {
  background: rgba(247, 233, 207, .72);
}

.mail-dots span.is-current {
  background: #e7c88d;
  transform: scale(1.3);
}

.envelope.is-reading {
  transform: rotate(-4deg) translateY(10px) scale(.985);
}

.post-footer {
  position: absolute;
  bottom: 21px;
  left: clamp(24px, 5vw, 80px);
  right: clamp(24px, 5vw, 80px);
  z-index: 5;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: rgba(238, 226, 204, .27);
  font-family: var(--sans);
  font-size: 8px;
  letter-spacing: .16em;
  pointer-events: none;
}

/* letter dialog */

.letter-dialog {
  width: min(580px, calc(100vw - 32px));
  max-height: 88svh;
  padding: 0;
  border: 0;
  border-radius: 4px 20px 20px 6px;
  background: transparent;
  color: var(--ink);
  overflow: visible;
}

.letter-dialog::backdrop {
  background: rgba(17, 34, 34, .62);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.letter-dialog[open] {
  animation: dialogIn .35s var(--ease-soft) both;
}

@keyframes dialogIn {
  from { opacity: 0; transform: translateY(15px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.letter-paper {
  position: relative;
  max-height: 88svh;
  overflow-y: auto;
  padding: clamp(30px, 5vw, 48px) clamp(24px, 6vw, 56px) 34px;
  border: 1px solid rgba(141, 116, 78, .35);
  border-radius: inherit;
  background:
    radial-gradient(ellipse at 15% 3%, rgba(255, 255, 251, .85), transparent 35%),
    repeating-linear-gradient(0deg, transparent 0 30px, rgba(143, 121, 84, .08) 30px 31px),
    #fbf4e4;
  box-shadow: 0 35px 100px rgba(13, 29, 29, .4);
  transform: rotate(-.35deg);
  scrollbar-width: thin;
  scrollbar-color: rgba(112, 100, 73, .28) transparent;
}

.letter-paper::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: linear-gradient(180deg, rgba(154, 121, 78, .18), rgba(154, 121, 78, .05));
}

.letter-paper__fold {
  position: absolute;
  left: 0;
  right: 0;
  top: 42%;
  height: 1px;
  background: rgba(162, 135, 91, .11);
  pointer-events: none;
}

.letter-close {
  position: absolute;
  top: 17px;
  right: 17px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(104, 94, 72, .18);
  border-radius: 50%;
  color: #7e7968;
  background: rgba(255, 251, 239, .62);
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.letter-close:hover {
  background: #fffaf0;
  transform: rotate(6deg);
}

.letter-close svg {
  width: 15px;
  height: 15px;
}

.letter-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-right: 36px;
}

.letter-head__kicker {
  margin: 0 0 6px;
  color: #9e8b68;
  font-family: var(--sans);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .2em;
}

.letter-head h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(33px, 5vw, 45px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: .03em;
}

.letter-head__number {
  flex: 0 0 auto;
  margin-top: 9px;
  color: #a18e6c;
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: .15em;
}

.letter-stamp {
  position: absolute;
  top: 102px;
  right: clamp(24px, 6vw, 56px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 68px;
  border: 1px dashed #b09262;
  color: #9c7c4d;
  transform: rotate(5deg);
  opacity: .65;
}

.letter-stamp span {
  font-family: var(--display);
  font-size: 20px;
  line-height: 1;
}

.letter-stamp small {
  margin-top: 4px;
  font-family: var(--sans);
  font-size: 6px;
  letter-spacing: .18em;
}

.letter-greeting {
  margin: clamp(28px, 5vw, 42px) 0 14px;
  color: #435943;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .06em;
}

.letter-body {
  max-width: 100%;
  margin: 0;
  color: #596852;
  font-family: var(--serif);
  font-size: clamp(15px, 1.7vw, 17px);
  line-height: 2.1;
  letter-spacing: .06em;
  white-space: pre-line;
}

.letter-sign {
  margin: 25px 0 31px;
  color: #83795e;
  font-family: var(--display);
  font-size: 22px;
  line-height: 1.4;
  text-align: right;
  letter-spacing: .03em;
}

.letter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding-top: 20px;
  border-top: 1px dashed rgba(140, 118, 80, .25);
}

.letter-actions .button {
  min-height: 39px;
  font-size: 11px;
}

.letter-paper__bottom {
  height: 5px;
}

/* =========================================================
   THE WATERMELON NOOK
   ========================================================= */

.screen--watermelon {
  overflow-y: auto;
  overflow-x: hidden;
  background: #ead9be;
}

.greenhouse {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.gh-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.gh-wall {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 8%, rgba(255, 251, 233, .8), transparent 50%),
    linear-gradient(180deg, #f5ecd8 0%, #eee1c7 48%, #e8d6b6 100%);
}

.gh-wall::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .35;
  background:
    repeating-linear-gradient(90deg, transparent 0 14.28%, rgba(128, 108, 77, .05) 14.28% 14.4%),
    linear-gradient(180deg, transparent 0 78%, rgba(116, 92, 59, .08) 78% 78.2%, transparent 78.2%);
}

.gh-wall::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 70%;
  height: 12%;
  background: linear-gradient(180deg, rgba(255, 250, 234, .15), transparent);
}

.gh-window {
  position: absolute;
  top: clamp(73px, 10vh, 107px);
  left: 50%;
  z-index: 1;
  width: min(930px, 74vw);
  height: calc(100svh - clamp(170px, 22vh, 224px));
  min-height: 440px;
  border: 13px solid #f8f1e0;
  border-radius: 50% 50% 4px 4px / 35% 35% 0 0;
  background: #f8f1e0;
  box-shadow:
    0 28px 60px rgba(101, 84, 56, .13),
    inset 0 0 0 1px rgba(119, 101, 72, .12);
  transform: translateX(-50%);
}

.gh-window__sky {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  background:
    radial-gradient(ellipse at 72% 18%, rgba(255, 243, 199, .9), transparent 33%),
    linear-gradient(180deg, #d8eae1 0%, #eff0da 44%, #f5ddc0 74%, #eccba8 100%);
}

.gh-sky-sun {
  position: absolute;
  top: 14%;
  right: 17%;
  width: clamp(52px, 7vw, 86px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #ffefc2;
  box-shadow: 0 0 80px 34px rgba(255, 238, 188, .55);
}

.gh-sky-cloud {
  position: absolute;
  height: 27px;
  border-radius: 999px;
  background: rgba(255, 253, 244, .65);
  filter: blur(.2px);
}

.gh-sky-cloud::before,
.gh-sky-cloud::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: inherit;
}

.gh-sky-cloud::before {
  left: 13%;
  bottom: 13%;
  width: 42%;
  aspect-ratio: 1;
}

.gh-sky-cloud::after {
  right: 10%;
  bottom: 23%;
  width: 50%;
  aspect-ratio: 1;
}

.gh-sky-cloud--a {
  top: 26%;
  left: 9%;
  width: 170px;
  animation: gardenCloud 30s -3s ease-in-out infinite alternate;
}

.gh-sky-cloud--b {
  top: 36%;
  right: 9%;
  width: 220px;
  height: 33px;
  opacity: .8;
  animation: gardenCloud 38s -12s ease-in-out infinite alternate-reverse;
}

.gh-sky-cloud--c {
  top: 46%;
  left: 31%;
  width: 110px;
  height: 20px;
  opacity: .42;
  filter: blur(1.5px);
  animation: gardenCloud 32s -7s ease-in-out infinite alternate;
}

.gh-sky-hill {
  position: absolute;
  left: -10%;
  right: -10%;
  border-radius: 50% 50% 0 0;
  background: linear-gradient(180deg, #b9d2a3, #8fae82);
}

.gh-sky-hill--back {
  height: 33%;
  bottom: 13%;
  background: #c4dab0;
  opacity: .8;
  transform: rotate(-1deg);
}

.gh-sky-hill--front {
  height: 31%;
  bottom: -2%;
  left: -17%;
  right: -17%;
  background: linear-gradient(180deg, #a2c08e, #7fa274);
}

.gh-window__frame {
  position: absolute;
  inset: 11px;
  z-index: 3;
  border: 1.5px solid rgba(251, 246, 228, .6);
  border-radius: inherit;
  pointer-events: none;
}

.gh-window__bars {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent calc(50% - 4px), rgba(249, 242, 224, .78) calc(50% - 4px) calc(50% + 4px), transparent calc(50% + 4px)),
    linear-gradient(0deg, transparent calc(58% - 4px), rgba(249, 242, 224, .64) calc(58% - 4px) calc(58% + 4px), transparent calc(58% + 4px)),
    linear-gradient(90deg, transparent calc(25% - 2px), rgba(249, 242, 224, .34) calc(25% - 2px) calc(25% + 2px), transparent calc(25% + 2px)),
    linear-gradient(90deg, transparent calc(75% - 2px), rgba(249, 242, 224, .34) calc(75% - 2px) calc(75% + 2px), transparent calc(75% + 2px));
}

.gh-rays {
  position: absolute;
  top: 2%;
  left: 8%;
  z-index: 2;
  width: 46%;
  height: 72%;
  background: linear-gradient(125deg, rgba(255, 247, 216, .4), rgba(255, 247, 216, 0) 65%);
  clip-path: polygon(25% 0, 86% 0, 100% 100%, 0 100%);
  filter: blur(18px);
  opacity: .65;
  mix-blend-mode: screen;
  animation: rayBreathe 11s ease-in-out infinite;
}

@keyframes rayBreathe {
  0%, 100% { opacity: .52; transform: translateX(0); }
  50% { opacity: .74; transform: translateX(10px); }
}

.gh-floor {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  height: 24%;
  background:
    linear-gradient(180deg, rgba(65, 50, 32, .24), transparent 9%),
    repeating-linear-gradient(90deg, transparent 0 12.4%, rgba(91, 66, 41, .12) 12.4% 12.55%),
    linear-gradient(180deg, #d9bc94 0%, #cbae84 55%, #bd9d73 100%);
  box-shadow: inset 0 20px 42px rgba(83, 63, 39, .16);
}

.gh-floor::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .5;
  background:
    repeating-linear-gradient(0deg, transparent 0 58px, rgba(100, 73, 45, .07) 58px 59px),
    radial-gradient(ellipse at 50% 10%, rgba(255, 242, 211, .35), transparent 40%);
}

.gh-hanging {
  position: absolute;
  top: -3%;
  z-index: 4;
  width: 150px;
  height: 260px;
  color: #66845e;
  pointer-events: none;
  opacity: .72;
}

.gh-hanging--left {
  left: 4.5%;
  transform: rotate(4deg);
}

.gh-hanging--right {
  right: 5.2%;
  transform: rotate(-5deg) scale(.9);
}

.gh-hanging::before {
  content: "";
  position: absolute;
  top: 0;
  left: 48%;
  width: 1px;
  height: 90%;
  background: linear-gradient(180deg, rgba(90, 114, 82, .32), transparent);
}

.gh-hanging i {
  position: absolute;
  display: block;
  width: 27px;
  height: 15px;
  border-radius: 100% 0 100% 0;
  background: linear-gradient(145deg, #97b281, #6e8f63);
  box-shadow: inset 0 1px 0 rgba(255, 252, 228, .22);
  transform-origin: left center;
}

.gh-hanging i:nth-child(1) { top: 42px; left: 50%; transform: rotate(24deg); }
.gh-hanging i:nth-child(2) { top: 77px; left: 24%; transform: rotate(203deg); width: 22px; height: 12px; }
.gh-hanging i:nth-child(3) { top: 102px; left: 51%; transform: rotate(30deg); width: 34px; height: 18px; }
.gh-hanging i:nth-child(4) { top: 140px; left: 18%; transform: rotate(197deg); width: 24px; height: 13px; }
.gh-hanging i:nth-child(5) { top: 170px; left: 50%; transform: rotate(21deg); width: 30px; height: 16px; }

.gh-shelf {
  position: absolute;
  top: 25%;
  left: 3%;
  z-index: 3;
  width: 90px;
  height: 8px;
  background: #c7a77e;
  box-shadow: 0 5px 10px rgba(89, 69, 42, .15);
  border-radius: 2px;
  pointer-events: none;
}

.gh-shelf span {
  position: absolute;
  bottom: 8px;
  width: 19px;
  height: 24px;
  border: 1px solid rgba(99, 79, 50, .25);
  border-radius: 3px;
  background: #f0e4cc;
}

.gh-shelf span:nth-child(1) { left: 7px; height: 19px; background: #b3c29b; }
.gh-shelf span:nth-child(2) { left: 34px; height: 29px; background: #ead8b5; }
.gh-shelf span:nth-child(3) { left: 62px; height: 16px; background: #d4aa83; }

.gh-header {
  position: relative;
  z-index: 12;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  padding: 22px clamp(20px, 4vw, 48px) 0;
  pointer-events: none;
}

.gh-header > * {
  pointer-events: auto;
}

.gh-header .back-link {
  pointer-events: auto;
}

.gh-heading {
  position: absolute;
  left: 50%;
  top: 19px;
  text-align: center;
  transform: translateX(-50%);
  pointer-events: none;
}

.gh-heading p {
  margin: 0;
  color: rgba(103, 88, 58, .62);
  font-family: var(--sans);
  font-size: 7px;
  font-weight: 600;
  letter-spacing: .28em;
}

.gh-heading h2 {
  margin: 1px 0 0;
  color: #38533e;
  font-family: var(--display);
  font-size: clamp(30px, 3vw, 43px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: .04em;
}

.gh-header__spacer {
  width: 104px;
  height: 38px;
}

.gh-main {
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 344px);
  align-items: end;
  gap: clamp(8px, 2.8vw, 46px);
  width: min(1300px, 100%);
  flex: 1;
  margin: 0 auto;
  padding: clamp(10px, 2vh, 26px) clamp(24px, 5vw, 72px) 0;
}

.gh-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: clamp(490px, calc(100svh - 260px), 680px);
  padding-top: 30px;
}

.gh-scene-label {
  position: absolute;
  top: 18px;
  left: 2%;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(104, 89, 61, .5);
  font-family: var(--sans);
  font-size: 7px;
  letter-spacing: .18em;
}

.gh-scene-label__rule {
  width: 35px;
  height: 1px;
  background: rgba(111, 93, 64, .25);
}

.field-notes {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.field-note {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 82px;
  border: 1px solid rgba(126, 103, 68, .22);
  border-radius: 2px;
  color: #7e775f;
  background: rgba(255, 249, 233, .42);
  box-shadow: 0 10px 22px rgba(99, 79, 51, .08);
  font-family: var(--display);
  font-size: 18px;
  line-height: 1.25;
  text-align: center;
  letter-spacing: .08em;
  backdrop-filter: blur(2px);
}

.field-note::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 100%;
  height: 26px;
  border-left: 1px solid rgba(119, 94, 59, .25);
}

.field-note--one {
  top: 20%;
  left: 4%;
  transform: rotate(-5deg);
}

.field-note--two {
  top: 33%;
  right: 3%;
  width: 72px;
  height: 70px;
  font-size: 15px;
  transform: rotate(4deg);
  opacity: .72;
}

.plant-stage {
  position: relative;
  width: 100%;
  max-width: 690px;
  min-height: 540px;
  height: clamp(480px, calc(100svh - 290px), 630px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 9px;
  isolation: isolate;
}

.plant-halo {
  position: absolute;
  left: 50%;
  bottom: 10%;
  z-index: 0;
  width: 82%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 241, 197, .46) 0%, rgba(255, 241, 197, .18) 40%, rgba(255, 241, 197, 0) 70%);
  transform: translateX(-50%);
  filter: blur(8px);
  pointer-events: none;
}

.plant-wrap {
  position: relative;
  width: min(100%, 620px);
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 3;
}

.plant-ground-shadow {
  position: absolute;
  left: 50%;
  bottom: -2px;
  z-index: 0;
  width: min(70%, 440px);
  height: 37px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(69, 50, 29, .27), transparent 70%);
  transform: translateX(-50%);
  filter: blur(5px);
}

.plant-art {
  position: absolute;
  left: 50%;
  bottom: 148px;
  z-index: 5;
  width: min(100%, 500px);
  height: 390px;
  transform: translateX(-50%);
  pointer-events: none;
}

.plant-part {
  position: absolute;
  left: 50%;
  bottom: 0;
  display: block;
  opacity: 0;
  transform: translateX(-50%) translateY(14px);
  transform-origin: 50% 100%;
  transition: opacity .55s ease, transform 1s var(--ease-soft);
  pointer-events: none;
}

.plant-part.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.plant-part svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.sprout {
  z-index: 4;
  width: 185px;
  height: 205px;
  transform-origin: 50% 100%;
}

.sprout svg {
  filter: drop-shadow(0 8px 10px rgba(62, 84, 51, .1));
}

.vine {
  z-index: 3;
  width: 415px;
  height: 370px;
  filter: drop-shadow(0 9px 12px rgba(57, 79, 48, .12));
}

.sprout svg,
.vine svg {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.45s cubic-bezier(.16, .78, .28, 1);
}

.sprout.is-visible svg,
.vine.is-visible svg {
  clip-path: inset(0 0 0 0);
}

.leaf-path {
  transform-box: fill-box;
  transform-origin: 50% 100%;
}

.sprout.is-visible .leaf-path,
.vine.is-visible .leaf-path {
  animation: leafUnfurl .95s var(--leaf-delay, .2s) var(--ease-bounce) both;
}

@keyframes leafUnfurl {
  0% { opacity: 0; scale: .14; rotate: -9deg; }
  62% { opacity: 1; scale: 1.06; rotate: 1.5deg; }
  100% { opacity: 1; scale: 1; rotate: 0deg; }
}

.blossom {
  z-index: 6;
  left: 47%;
  bottom: 228px;
  width: 157px;
  height: 157px;
  transition: opacity .45s .15s ease, transform .8s var(--ease-soft);
  filter: drop-shadow(0 8px 9px rgba(88, 74, 43, .1));
}

.blossom.is-visible {
  transition-delay: .12s;
}

.blossom.is-visible svg {
  transform-origin: 50% 100%;
  animation: blossomGrow 1.15s .1s var(--ease-bounce) both;
}

.blossom.is-visible svg g[fill="#f4d471"] ellipse {
  animation: blossomPetalReveal .55s ease both;
}

.blossom.is-visible svg g[fill="#f4d471"] ellipse:nth-child(2) { animation-delay: .11s; }
.blossom.is-visible svg g[fill="#f4d471"] ellipse:nth-child(3) { animation-delay: .18s; }
.blossom.is-visible svg g[fill="#f4d471"] ellipse:nth-child(4) { animation-delay: .25s; }
.blossom.is-visible svg g[fill="#f4d471"] ellipse:nth-child(5) { animation-delay: .32s; }
.blossom.is-visible svg g[fill="#f4d471"] ellipse:nth-child(6) { animation-delay: .39s; }

@keyframes blossomGrow {
  0% { opacity: 0; transform: translateY(10px) scale(.58) rotate(-3deg); }
  55% { opacity: 1; transform: translateY(-2px) scale(1.035) rotate(.7deg); }
  100% { opacity: 1; transform: translateY(0) scale(1) rotate(0deg); }
}

@keyframes blossomPetalReveal {
  from { opacity: 0; }
  to { opacity: 1; }
}

.melon-plant {
  z-index: 8;
  bottom: 40px;
  width: clamp(230px, 24vw, 318px);
  height: auto;
  aspect-ratio: 1;
  opacity: 0;
  transform: translateX(-50%) scale(.34) rotate(-4deg);
  transform-origin: 50% 92%;
  transition:
    opacity .6s ease,
    transform 1.5s cubic-bezier(.16, .78, .25, 1),
    bottom 1.15s cubic-bezier(.16, .78, .25, 1);
}

.melon-plant.is-visible {
  opacity: 1;
}

.plant-stage[data-stage="4"] .melon-plant {
  bottom: 44px;
  transform: translateX(-50%) scale(.53) rotate(-3deg);
}

.plant-stage[data-stage="5"] .melon-plant {
  bottom: 10px;
  transform: translateX(-50%) scale(1) rotate(0deg);
}

.melon-crown {
  position: absolute;
  left: 46%;
  top: -6%;
  z-index: 0;
  display: block;
  width: 32%;
  transform: translateX(-50%);
}

.melon-crown svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 3px 2px rgba(57, 78, 45, .1));
}

.melon-picture {
  display: block;
  width: 100%;
  height: 100%;
}

.melon-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 16px 18px rgba(48, 63, 35, .18)) saturate(.98) brightness(1.025);
  animation: melonBreathe 5.5s ease-in-out infinite;
  transition: filter .6s ease;
}

.melon-shine {
  position: absolute;
  right: 17%;
  top: 14%;
  z-index: 3;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 251, 205, .95);
  box-shadow: 0 0 12px 4px rgba(255, 244, 183, .55);
  opacity: 0;
  animation: melonSparkle 4s ease-in-out infinite;
}

@keyframes melonBreathe {
  0%, 100% { transform: translateY(0) rotate(.3deg); }
  50% { transform: translateY(-4px) rotate(-.8deg); }
}

@keyframes melonSparkle {
  0%, 75%, 100% { opacity: 0; transform: scale(.3); }
  83% { opacity: .9; transform: scale(1); }
  91% { opacity: .2; transform: scale(.7); }
}

.plant-stage[data-stage="5"] .melon-photo {
  filter: drop-shadow(0 22px 24px rgba(48, 63, 35, .2)) saturate(1.05) contrast(1.01);
}

.plant-stage.is-growing .pot {
  animation: potSettle .95s var(--ease-soft);
}

.plant-stage.is-growing .plant-halo {
  animation: growthGlow 1.8s var(--ease-soft);
}

@keyframes potSettle {
  0%, 100% { transform: translateY(0); }
  25% { transform: translateY(2px); }
  56% { transform: translateY(-1px); }
  76% { transform: translateY(0); }
}

@keyframes growthGlow {
  0% { opacity: .35; transform: translateX(-50%) scale(.9); }
  40% { opacity: .9; transform: translateX(-50%) scale(1.04); }
  100% { opacity: .58; transform: translateX(-50%) scale(1); }
}

.plant-stage.is-ripe .plant-halo {
  opacity: 1;
  animation: haloGlow 4s ease-in-out infinite;
}

@keyframes haloGlow {
  0%, 100% { opacity: .8; transform: translateX(-50%) scale(.96); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.04); }
}

.plant-sparkles {
  position: absolute;
  inset: 0;
  z-index: 11;
  pointer-events: none;
}

.plant-sparkles i {
  position: absolute;
  display: block;
  color: #f6d996;
  font-style: normal;
  font-size: var(--size, 13px);
  text-shadow: 0 0 9px rgba(255, 236, 170, .8);
  opacity: 0;
  animation: plantTwinkle var(--dur, 4s) var(--delay, 0s) ease-in-out infinite;
}

@keyframes plantTwinkle {
  0%, 100% { opacity: 0; transform: translateY(3px) scale(.5) rotate(0); }
  36% { opacity: .9; transform: translateY(-3px) scale(1) rotate(12deg); }
  62% { opacity: .2; transform: translateY(-9px) scale(.7) rotate(-8deg); }
}

/* pot */

.pot {
  position: relative;
  z-index: 7;
  width: clamp(288px, 29vw, 366px);
  height: 189px;
  flex: 0 0 auto;
}

.pot-back {
  position: absolute;
  left: 50%;
  bottom: 16px;
  width: 106%;
  height: 70px;
  border-radius: 50%;
  background: rgba(67, 49, 32, .17);
  transform: translateX(-50%);
  filter: blur(12px);
}

.pot-soil {
  position: absolute;
  left: 50%;
  top: 3px;
  z-index: 2;
  width: 97%;
  height: 58px;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 35% 30%, rgba(156, 127, 91, .38), transparent 23%),
    radial-gradient(ellipse at 70% 60%, rgba(136, 108, 72, .4), transparent 18%),
    linear-gradient(180deg, #6d5238, #4d3929 58%, #392a1f);
  box-shadow: inset 0 7px 12px rgba(236, 209, 161, .12), 0 3px 5px rgba(65, 47, 28, .2);
  transform: translateX(-50%);
}

.pot-soil__measure {
  position: absolute;
  border-radius: 50%;
  background: rgba(232, 206, 162, .1);
  border: 1px solid rgba(232, 206, 162, .08);
}

.pot-soil__measure--a {
  left: 17%;
  top: 29%;
  width: 22%;
  height: 20%;
}

.pot-soil__measure--b {
  right: 20%;
  top: 38%;
  width: 15%;
  height: 15%;
}

.seed {
  position: absolute;
  left: 50%;
  top: 29px;
  z-index: 10;
  display: block;
  width: 21px;
  height: 14px;
  border: 1px solid rgba(48, 37, 25, .38);
  border-radius: 55% 48% 50% 46% / 62% 55% 48% 38%;
  background:
    radial-gradient(ellipse at 34% 30%, rgba(241, 218, 170, .22), transparent 38%),
    linear-gradient(145deg, #9b7953, #59432f 64%, #3b2b1f);
  box-shadow: 0 3px 4px rgba(44, 30, 20, .25);
  transform: translateX(-50%) rotate(-17deg);
  opacity: 0;
  transition: opacity .25s ease;
}

.seed i {
  position: absolute;
  left: 38%;
  top: 22%;
  width: 4px;
  height: 7px;
  border-radius: 50%;
  background: rgba(246, 226, 181, .16);
  transform: rotate(22deg);
}

.plant-stage[data-stage="0"] .seed {
  opacity: 1;
}

.plant-sparkles {
  opacity: 0;
  transition: opacity .65s ease;
}

.plant-stage[data-stage="4"] .plant-sparkles,
.plant-stage[data-stage="5"] .plant-sparkles {
  opacity: 1;
}

.pot-soil::after {
  content: "";
  position: absolute;
  left: 43%;
  top: 38%;
  width: 18%;
  height: 25%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(111, 89, 59, .35), transparent 70%);
  pointer-events: none;
}

.pot-soil__sprig {
  position: absolute;
  left: 63%;
  top: 36%;
  width: 1px;
  height: 13px;
  background: rgba(138, 160, 108, .52);
  transform: rotate(13deg);
}

.pot-soil__sprig::before,
.pot-soil__sprig::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 3px;
  border-radius: 100% 0 100% 0;
  background: rgba(145, 167, 112, .55);
}

.pot-soil__sprig::before {
  left: 0;
  top: 2px;
  transform: rotate(-22deg);
}

.pot-soil__sprig::after {
  left: 0;
  top: 7px;
  transform: rotate(156deg) scale(.8);
}

.pot-body {
  position: absolute;
  left: 50%;
  bottom: 7px;
  z-index: 3;
  width: 100%;
  height: 158px;
  overflow: hidden;
  border: 1px solid rgba(53, 80, 55, .3);
  border-radius: 11% 11% 43% 43% / 8% 8% 26% 26%;
  background:
    radial-gradient(ellipse at 36% 13%, rgba(225, 236, 203, .31), transparent 25%),
    linear-gradient(90deg, #3e644c 0%, #5d8062 27%, #78947a 48%, #5d8062 68%, #3f654d 100%);
  box-shadow:
    inset -20px -18px 30px rgba(27, 49, 34, .24),
    inset 18px 7px 18px rgba(239, 243, 207, .12),
    0 11px 23px rgba(57, 45, 29, .22);
  transform: translateX(-50%);
}

.pot-body::before {
  content: "";
  position: absolute;
  inset: 9% 0 auto;
  height: 1px;
  background: rgba(252, 249, 224, .16);
}

.pot-rim {
  position: absolute;
  left: 50%;
  top: -25px;
  z-index: 6;
  width: 108%;
  height: 48px;
  border: 1px solid rgba(76, 68, 45, .25);
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(250, 241, 215, .7), transparent 38%),
    linear-gradient(100deg, #c8b48e, #e8d7b4 32%, #f1e3c8 51%, #dac8a2 73%, #bda780);
  box-shadow: 0 4px 8px rgba(64, 51, 32, .18), inset 0 3px 2px rgba(255, 252, 236, .45);
  transform: translateX(-50%);
}

.pot-rim::after {
  content: "";
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: -6px;
  height: 18px;
  border-radius: 50%;
  border-top: 1px solid rgba(92, 72, 48, .17);
  background: linear-gradient(180deg, rgba(198, 171, 127, .48), transparent);
}

.pot-shine {
  position: absolute;
  left: 16%;
  top: 20%;
  z-index: 4;
  width: 17%;
  height: 45%;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(237, 246, 214, .23), transparent);
  filter: blur(3px);
  transform: rotate(7deg);
}

.pot-pattern {
  position: absolute;
  left: 50%;
  top: 35%;
  z-index: 4;
  width: 39%;
  opacity: .72;
  transform: translateX(-50%);
}

.pot-base {
  position: absolute;
  left: 50%;
  bottom: -3px;
  z-index: 7;
  width: 72%;
  height: 15px;
  border-radius: 50%;
  background: #2f4c39;
  box-shadow: inset 0 4px 6px rgba(255, 248, 218, .1);
  transform: translateX(-50%);
}

.pot-shadow {
  position: absolute;
  left: 50%;
  bottom: -13px;
  z-index: 0;
  width: 104%;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(61, 45, 27, .31), transparent 68%);
  transform: translateX(-50%);
  filter: blur(9px);
}

.watering-can {
  position: absolute;
  left: 1.5%;
  bottom: 178px;
  z-index: 10;
  width: clamp(160px, 17vw, 235px);
  transform-origin: 76% 82%;
  transition: transform .4s var(--ease-soft);
  filter: drop-shadow(0 15px 14px rgba(55, 70, 46, .18));
  pointer-events: none;
}

.watering-can svg {
  width: 100%;
  height: auto;
}

.watering-can.is-pouring {
  animation: canPour 2.2s cubic-bezier(.33, .02, .28, .99) both;
  will-change: transform;
}

@keyframes canPour {
  0% { transform: translate(0, 0) rotate(0deg); }
  12% { transform: translate(-1px, -10px) rotate(-4deg); }
  27% { transform: translate(4px, -20px) rotate(-18deg); }
  39% { transform: translate(7px, -23px) rotate(-23deg); }
  50% { transform: translate(7px, -22px) rotate(-20deg); }
  61% { transform: translate(6px, -21px) rotate(-22deg); }
  78% { transform: translate(3px, -9px) rotate(-10deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

.water-drop {
  position: fixed;
  z-index: 88;
  width: 5px;
  height: 10px;
  border-radius: 50% 50% 62% 62% / 58% 58% 42% 42%;
  background: linear-gradient(180deg, rgba(238, 252, 248, .98), rgba(158, 207, 196, .92));
  box-shadow: 0 0 5px rgba(205, 240, 232, .75);
  pointer-events: none;
  will-change: transform, opacity;
}

.water-drop::after {
  content: "";
  position: absolute;
  left: 1.5px;
  top: 1.5px;
  width: 1.5px;
  height: 2.5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
}

.soil-splash {
  position: fixed;
  z-index: 88;
  width: 12px;
  height: 5px;
  border: 1px solid rgba(202, 234, 219, .8);
  border-radius: 50%;
  pointer-events: none;
  animation: soilSplash .55s ease-out forwards;
}

@keyframes soilSplash {
  0% { opacity: .85; transform: scale(.3); }
  100% { opacity: 0; transform: scale(1.8) translateY(-2px); }
}

.growth-speck {
  position: fixed;
  z-index: 88;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #f2d898;
  box-shadow: 0 0 7px rgba(246, 224, 162, .8);
  pointer-events: none;
}

.pot-soil {
  transition: filter .6s ease, box-shadow .6s ease;
}

.pot-soil.is-wet {
  filter: brightness(.84) saturate(1.12);
  box-shadow: inset 0 7px 12px rgba(236, 209, 161, .16), 0 3px 5px rgba(65, 47, 28, .25), 0 0 0 2px rgba(149, 194, 177, .12);
}

.gh-scene-note {
  position: absolute;
  left: 50%;
  bottom: 3px;
  z-index: 4;
  margin: 0;
  color: rgba(98, 88, 68, .44);
  font-family: var(--serif);
  font-size: 10px;
  letter-spacing: .1em;
  white-space: nowrap;
  transform: translateX(-50%);
}

.gh-scene-note span {
  color: rgba(98, 88, 68, .27);
  font-family: var(--display);
  font-size: 16px;
  vertical-align: -1px;
}

/* journal */

.gh-journal {
  position: relative;
  z-index: 9;
  width: 100%;
  max-width: 344px;
  margin-bottom: clamp(18px, 4vh, 48px);
  padding: 25px 25px 21px;
  border: 1px solid rgba(131, 109, 75, .24);
  border-radius: 4px 22px 22px 20px;
  background:
    radial-gradient(ellipse at 12% 0, rgba(255, 255, 250, .8), transparent 40%),
    repeating-linear-gradient(0deg, transparent 0 24px, rgba(143, 120, 83, .04) 24px 25px),
    linear-gradient(180deg, #fdf7ea, #f5ead5);
  box-shadow: 0 25px 55px rgba(87, 70, 45, .17), inset 0 0 0 4px rgba(255, 255, 255, .24);
  transform: rotate(.7deg) translateY(0);
  animation: journalIn 1s .35s var(--ease-soft) both;
}

@keyframes journalIn {
  from { opacity: 0; transform: rotate(1.4deg) translateY(18px); }
  to { opacity: 1; transform: rotate(.7deg) translateY(0); }
}

.gh-journal::before {
  content: "";
  position: absolute;
  left: 34px;
  top: -9px;
  width: 75px;
  height: 20px;
  background: rgba(223, 206, 173, .64);
  opacity: .85;
  transform: rotate(-2deg);
  clip-path: polygon(2% 0, 98% 0, 100% 90%, 0 100%);
}

.gh-journal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.gh-journal__stamp {
  display: grid;
  place-items: center;
  width: 41px;
  height: 41px;
  border: 1.5px double rgba(170, 91, 77, .6);
  border-radius: 50%;
  color: rgba(160, 86, 72, .66);
  font-family: var(--display);
  font-size: 20px;
  line-height: 1;
  transform: rotate(-12deg);
  opacity: .7;
}

.gh-step {
  margin-top: 20px;
  color: #9b8b6e;
  font-family: var(--sans);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .19em;
}

.gh-stage-name {
  margin: 5px 0 8px;
  color: #334f3a;
  font-family: var(--display);
  font-size: clamp(27px, 2.4vw, 34px);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: .03em;
}

.gh-stage-hint {
  min-height: 39px;
  margin: 0;
  color: #7a7a65;
  font-family: var(--serif);
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: .035em;
}

.gh-drops {
  display: flex;
  gap: 6px;
  margin: 20px 0 16px;
  padding-top: 15px;
  border-top: 1px dashed rgba(135, 115, 81, .26);
}

.gh-drop {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 1px solid rgba(104, 130, 96, .16);
  border-radius: 50%;
  color: rgba(94, 121, 86, .22);
  background: rgba(121, 148, 109, .06);
  transition: color .35s ease, background .35s ease, transform .35s var(--ease-bounce);
}

.gh-drop svg {
  width: 13px;
  height: 13px;
}

.gh-drop.is-full {
  color: #567a5b;
  border-color: rgba(89, 124, 86, .2);
  background: rgba(139, 168, 122, .18);
  transform: translateY(-1px);
}

.gh-drop.is-just-filled {
  animation: dropPop .5s var(--ease-bounce);
}

@keyframes dropPop {
  0% { transform: scale(.7); }
  55% { transform: scale(1.16); }
  100% { transform: scale(1); }
}

.water-button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 64px;
  padding: 11px 14px;
  overflow: hidden;
  border: 1px solid #2f503b;
  border-radius: 15px;
  color: var(--paper);
  background:
    radial-gradient(ellipse at 25% 0, rgba(177, 205, 155, .28), transparent 42%),
    linear-gradient(135deg, #4e7256, #3a5b44 58%, #314d3b);
  box-shadow: 0 7px 0 rgba(62, 78, 54, .12), 0 12px 24px rgba(47, 66, 47, .16);
  text-align: left;
  cursor: pointer;
  transition: transform .25s var(--ease-soft), box-shadow .25s ease, filter .25s ease;
}

.water-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 9px 0 rgba(62, 78, 54, .1), 0 18px 27px rgba(47, 66, 47, .2);
}

.water-button:active {
  transform: translateY(1px);
  box-shadow: 0 4px 0 rgba(62, 78, 54, .12), 0 8px 16px rgba(47, 66, 47, .14);
}

.water-button:disabled {
  cursor: wait;
  filter: saturate(.82) brightness(.97);
  transform: translateY(1px);
}

.water-button.is-ripe {
  background:
    radial-gradient(ellipse at 24% 0, rgba(225, 208, 155, .28), transparent 42%),
    linear-gradient(135deg, #525f42, #3e5037 58%, #32402f);
}

.water-button__icon {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(250, 247, 230, .22);
  border-radius: 50%;
  background: rgba(248, 247, 225, .07);
}

.water-button__icon svg {
  width: 17px;
  height: 17px;
}

.water-button__copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.water-button__copy strong {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .08em;
}

.water-button__copy small {
  margin-top: 2px;
  color: rgba(250, 245, 228, .55);
  font-family: var(--serif);
  font-size: 9px;
  letter-spacing: .05em;
}

.water-button__shine {
  position: absolute;
  top: -60%;
  left: -40%;
  width: 40%;
  height: 220%;
  background: linear-gradient(90deg, transparent, rgba(255, 251, 224, .12), transparent);
  transform: rotate(24deg);
  transition: left .7s ease;
  pointer-events: none;
}

.water-button:hover .water-button__shine {
  left: 115%;
}

.gh-journal__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.gh-journal__count {
  color: #9c8a6b;
  font-family: var(--sans);
  font-size: 8px;
  letter-spacing: .11em;
}

.gh-journal__count b {
  color: #5d7158;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 400;
  vertical-align: -3px;
}

.gh-journal__count i {
  margin: 0 3px;
  font-style: normal;
  opacity: .45;
}

.gh-status {
  min-height: 26px;
  margin: 13px 0 0;
  color: #99917b;
  font-family: var(--serif);
  font-size: 9.5px;
  line-height: 1.5;
  text-align: center;
  letter-spacing: .04em;
  opacity: .8;
}

.gh-footer {
  position: relative;
  z-index: 11;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  width: min(1120px, 100%);
  margin: auto auto 0;
  padding: 12px 24px max(18px, var(--safe-bottom));
  color: rgba(92, 80, 59, .4);
  font-family: var(--sans);
  font-size: 8px;
  letter-spacing: .13em;
}

.gh-footer__ornament {
  color: rgba(171, 131, 73, .46);
  font-size: 10px;
}

/* celebration */

.celebration {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  background: rgba(31, 51, 37, .42);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  transition: opacity .45s ease, visibility 0s linear .45s;
}

.celebration.is-visible {
  opacity: 1;
  visibility: visible;
  transition: opacity .45s ease, visibility 0s;
}

.celebration__card {
  position: relative;
  z-index: 2;
  width: min(380px, 90vw);
  padding: 36px 28px 29px;
  border: 1px solid rgba(132, 106, 63, .33);
  border-radius: 4px 24px 24px 20px;
  background:
    radial-gradient(ellipse at 50% 0, rgba(255, 255, 246, .85), transparent 48%),
    linear-gradient(180deg, #fdf7e8, #f2e6cf);
  box-shadow: 0 35px 90px rgba(20, 35, 26, .32), inset 0 0 0 5px rgba(255, 255, 255, .22);
  text-align: center;
  transform: rotate(-1deg) scale(.92);
  transition: transform .55s var(--ease-bounce);
}

.celebration.is-visible .celebration__card {
  transform: rotate(-1deg) scale(1);
}

.celebration__card::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(143, 115, 75, .22);
  border-radius: 3px 17px 17px 15px;
  pointer-events: none;
}

.celebration__kicker {
  color: #9a896a;
  font-family: var(--sans);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .22em;
}

.celebration__title {
  margin: 8px 0 10px;
  color: #38523b;
  font-family: var(--display);
  font-size: 56px;
  line-height: 1.05;
}

.celebration__text {
  margin: 0 0 23px;
  color: #74765f;
  font-family: var(--serif);
  font-size: 13px;
  line-height: 2;
  letter-spacing: .06em;
}

.celebration__card .button {
  position: relative;
  z-index: 2;
}

.celebration__confetti {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.confetti-piece {
  position: absolute;
  top: -8%;
  display: block;
  width: var(--w, 8px);
  height: var(--h, 12px);
  border-radius: var(--radius, 1px);
  background: var(--color, #e7c171);
  opacity: .9;
  animation: confettiFall var(--dur, 3s) var(--delay, 0s) linear forwards;
}

@keyframes confettiFall {
  0% { opacity: 0; transform: translate3d(0, -20px, 0) rotate(0deg); }
  10% { opacity: .9; }
  100% { opacity: 0; transform: translate3d(var(--drift, 30px), 110svh, 0) rotate(var(--spin, 480deg)); }
}


/* ————— traveller's shared mailbox ————— */

.guest-mailbox {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(508px, 90vw);
  margin: 17px auto 0;
  padding: 10px 11px;
  border: 1px solid rgba(250, 239, 218, .28);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(22, 43, 41, .78), rgba(33, 58, 50, .55));
  box-shadow: inset 0 1px 0 rgba(255, 250, 234, .14), 0 12px 28px rgba(13, 31, 29, .18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(250, 241, 223, .88);
}

.guest-mailbox__seal {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(229, 195, 145, .4);
  border-radius: 50%;
  color: #f2ddba;
  background: rgba(163, 95, 84, .72);
  box-shadow: inset 0 0 0 3px rgba(250, 232, 205, .08);
  font-family: var(--display);
  font-size: 16px;
  transform: rotate(-6deg);
}

.guest-mailbox__copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.guest-mailbox__kicker {
  color: rgba(244, 230, 203, .62);
  font-family: var(--sans);
  font-size: 6px;
  font-weight: 600;
  letter-spacing: .19em;
  line-height: 1.3;
}

.guest-mailbox__title {
  color: #f8eedc;
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.25;
  white-space: nowrap;
}

.guest-mailbox__count {
  color: rgba(244, 232, 209, .7);
  font-family: var(--serif);
  font-size: 8.5px;
  letter-spacing: .03em;
  white-space: nowrap;
}

.guest-mailbox__count b {
  color: #e9c27d;
  font-weight: 500;
}

.guest-mailbox__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.guest-mailbox__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 30px;
  padding: 7px 9px;
  border: 1px solid rgba(248, 236, 213, .24);
  border-radius: 999px;
  color: rgba(250, 242, 224, .78);
  background: rgba(255, 248, 232, .06);
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: .03em;
  cursor: pointer;
  transition: color .2s ease, background .2s ease, transform .2s var(--ease-soft);
  white-space: nowrap;
}

.guest-mailbox__button svg {
  width: 12px;
  height: 12px;
}

.guest-mailbox__button:hover {
  color: var(--leaf-dark);
  background: rgba(255, 247, 229, .88);
  transform: translateY(-1px);
}

.guest-mailbox__button--write {
  color: var(--leaf-dark);
  border-color: rgba(255, 247, 229, .7);
  background: rgba(255, 247, 229, .9);
}

.guest-mailbox__button--write:hover {
  color: var(--paper);
  background: var(--leaf-dark);
}

/* compose dialog */
.compose-dialog,
.mailbox-dialog {
  width: min(570px, calc(100vw - 32px));
  max-height: 90svh;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  overflow: visible;
}

.mailbox-dialog {
  width: min(700px, calc(100vw - 28px));
}

.compose-dialog::backdrop,
.mailbox-dialog::backdrop {
  background: rgba(16, 33, 33, .66);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.compose-dialog[open],
.mailbox-dialog[open] {
  animation: dialogIn .38s var(--ease-soft) both;
}

.compose-paper,
.mailbox-paper {
  position: relative;
  max-height: 90svh;
  overflow-y: auto;
  border: 1px solid rgba(138, 113, 76, .36);
  border-radius: 5px 22px 22px 7px;
  background:
    radial-gradient(ellipse at 13% 2%, rgba(255, 255, 251, .9), transparent 35%),
    repeating-linear-gradient(0deg, transparent 0 30px, rgba(143, 121, 84, .075) 30px 31px),
    #fbf4e3;
  box-shadow: 0 35px 100px rgba(12, 28, 28, .45), inset 0 0 0 5px rgba(255, 255, 255, .22);
  scrollbar-width: thin;
  scrollbar-color: rgba(112, 100, 73, .3) transparent;
}

.compose-paper {
  padding: clamp(30px, 5vw, 45px) clamp(24px, 5.5vw, 52px) 32px;
}

.compose-paper::before,
.mailbox-paper::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: linear-gradient(180deg, rgba(150, 116, 72, .18), rgba(150, 116, 72, .03));
  pointer-events: none;
}

.compose-paper h2,
.mailbox-paper h2 {
  margin: 6px 0 0;
  color: #354e3e;
  font-family: var(--display);
  font-size: clamp(34px, 5vw, 50px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: .02em;
}

.compose-paper__intro {
  margin: 15px 0 13px;
  color: #6b745f;
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.95;
  letter-spacing: .04em;
}

.compose-paper__privacy {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 0 0 22px;
  padding: 10px 12px;
  border: 1px solid rgba(123, 144, 103, .2);
  border-radius: 10px;
  color: #69775e;
  background: rgba(157, 177, 126, .1);
  font-family: var(--sans);
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: .02em;
}

.compose-paper__privacy svg {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  margin-top: 2px;
  color: #7f986b;
}

.compose-field {
  position: relative;
  margin-bottom: 15px;
}

.compose-field label {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-bottom: 5px;
  color: #7f7863;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .08em;
}

.compose-field label span {
  color: #aaa18d;
  font-size: 8px;
  font-weight: 400;
}

.compose-field input,
.compose-field textarea {
  width: 100%;
  border: 1px solid rgba(126, 107, 76, .2);
  border-radius: 9px;
  color: #405543;
  background: rgba(255, 252, 242, .58);
  font-family: var(--serif);
  font-size: 13.5px;
  line-height: 1.8;
  letter-spacing: .03em;
  outline: none;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.compose-field input {
  height: 39px;
  padding: 0 12px;
}

.compose-field textarea {
  min-height: 132px;
  padding: 10px 13px 25px;
  resize: vertical;
}

.compose-field input::placeholder,
.compose-field textarea::placeholder {
  color: #b1a792;
  font-family: var(--serif);
}

.compose-field input:focus,
.compose-field textarea:focus {
  border-color: rgba(93, 124, 80, .62);
  background: rgba(255, 253, 246, .9);
  box-shadow: 0 0 0 3px rgba(126, 157, 107, .12);
}

.compose-counter {
  position: absolute;
  right: 11px;
  bottom: 8px;
  color: #a69b85;
  font-family: var(--sans);
  font-size: 8px;
  letter-spacing: .05em;
}

.compose-counter b {
  font-weight: 500;
}

.compose-counter.is-near-limit {
  color: #b06b5c;
}

.compose-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.compose-consent {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 4px 0 0;
  color: #7e7b68;
  font-family: var(--sans);
  font-size: 10px;
  line-height: 1.55;
  cursor: pointer;
}

.compose-consent input {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin: 2px 0 0;
  accent-color: #54734f;
}

.compose-error {
  min-height: 17px;
  margin: 8px 0 5px;
  color: #a15e4f;
  font-family: var(--serif);
  font-size: 11px;
  line-height: 1.5;
}

.compose-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px dashed rgba(139, 116, 78, .24);
}

.compose-actions .button {
  min-height: 39px;
  font-size: 11px;
}

.compose-actions .button[disabled] {
  cursor: wait;
  opacity: .65;
  transform: none;
}

/* shared mailbox reader */
.mailbox-paper {
  padding: clamp(28px, 4.5vw, 42px) clamp(21px, 4.5vw, 40px) 25px;
}

.mailbox-head {
  padding-right: 34px;
}

.mailbox-sub {
  margin: 8px 0 0;
  color: #858068;
  font-family: var(--serif);
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: .04em;
}

.mailbox-sub strong {
  color: #617557;
  font-weight: 500;
}

.mailbox-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 19px;
  padding: 10px 2px 9px;
  border-top: 1px dashed rgba(139, 116, 78, .24);
  border-bottom: 1px dashed rgba(139, 116, 78, .24);
}

.mailbox-toolbar > span {
  color: #948a75;
  font-family: var(--sans);
  font-size: 8px;
  letter-spacing: .1em;
}

#mailbox-refresh {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
  border: 0;
  color: #7e8a70;
  background: none;
  font-family: var(--sans);
  font-size: 8px;
  letter-spacing: .07em;
  cursor: pointer;
}

#mailbox-refresh svg {
  width: 12px;
  height: 12px;
}

#mailbox-refresh:hover {
  color: var(--leaf-dark);
}

.mailbox-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: min(47svh, 430px);
  overflow-y: auto;
  padding: 14px 4px 15px;
  scrollbar-width: thin;
  scrollbar-color: rgba(117, 103, 74, .28) transparent;
}

.mailbox-letter {
  position: relative;
  flex: 0 0 auto;
  padding: 16px 17px 15px;
  border: 1px solid rgba(137, 113, 75, .23);
  border-radius: 3px 13px 13px 5px;
  background:
    repeating-linear-gradient(0deg, transparent 0 25px, rgba(144, 122, 85, .055) 25px 26px),
    linear-gradient(135deg, #fffaf0, #f8efdb);
  box-shadow: 0 7px 20px rgba(90, 78, 55, .08);
  transform: rotate(var(--letter-tilt, -.2deg));
  animation: mailboxLetterIn .52s var(--ease-soft) both;
}

.mailbox-letter:nth-child(3n + 2) { --letter-tilt: .3deg; }
.mailbox-letter:nth-child(3n + 3) { --letter-tilt: -.45deg; }

.mailbox-letter.is-new {
  border-color: rgba(200, 151, 81, .55);
  box-shadow: 0 8px 22px rgba(112, 85, 46, .12), 0 0 0 3px rgba(228, 189, 122, .12);
}

.mailbox-letter__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 9px;
  border-bottom: 1px dashed rgba(145, 120, 80, .18);
}

.mailbox-letter__author {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: #48633f;
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .05em;
}

.mailbox-letter__author::before {
  content: "";
  display: block;
  flex: 0 0 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c29354;
  box-shadow: 0 0 0 3px rgba(194, 147, 84, .1);
}

.mailbox-letter__time {
  flex: 0 0 auto;
  color: #a59a85;
  font-family: var(--sans);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: .03em;
}

.mailbox-letter__body {
  margin: 10px 0 0;
  color: #5f6e57;
  font-family: var(--serif);
  font-size: 12px;
  line-height: 1.9;
  letter-spacing: .03em;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.mailbox-letter__stamp {
  position: absolute;
  right: 13px;
  bottom: 11px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 27px;
  border: 1px dashed rgba(169, 137, 86, .33);
  color: rgba(160, 127, 75, .45);
  font-family: var(--display);
  font-size: 11px;
  transform: rotate(5deg);
  pointer-events: none;
}

.mailbox-empty,
.mailbox-loading,
.mailbox-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 170px;
  padding: 26px 20px;
  color: #938975;
  font-family: var(--serif);
  font-size: 12px;
  line-height: 1.9;
  text-align: center;
  letter-spacing: .04em;
}

.mailbox-empty__mark {
  display: grid;
  place-items: center;
  width: 55px;
  height: 55px;
  margin-bottom: 13px;
  border: 1px dashed rgba(139, 115, 78, .3);
  border-radius: 50%;
  color: #a8926c;
  font-family: var(--display);
  font-size: 22px;
  transform: rotate(-5deg);
}

.mailbox-empty strong {
  color: #6b775d;
  font-weight: 500;
}

.mailbox-loading__lines {
  width: 100%;
  max-width: 420px;
  margin-top: 15px;
}

.mailbox-loading__lines i {
  display: block;
  height: 8px;
  margin-top: 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(142, 128, 99, .1), rgba(142, 128, 99, .24), rgba(142, 128, 99, .1));
  background-size: 200% 100%;
  animation: mailboxShimmer 1.4s linear infinite;
}

.mailbox-loading__lines i:nth-child(2) { width: 78%; }
.mailbox-loading__lines i:nth-child(3) { width: 56%; }
.mailbox-error {
  color: #9c6c5b;
}
.mailbox-error button {
  margin-top: 11px;
}

@keyframes mailboxShimmer {
  to { background-position: -200% 0; }
}

@keyframes mailboxLetterIn {
  from { opacity: 0; transform: translateY(9px) rotate(0deg); }
  to { opacity: 1; transform: translateY(0) rotate(var(--letter-tilt, -.2deg)); }
}

.mailbox-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px dashed rgba(139, 116, 78, .24);
}

.mailbox-footer .button {
  min-height: 38px;
  font-size: 10px;
}

.mailbox-footer > span {
  color: #a39a87;
  font-family: var(--sans);
  font-size: 7px;
  letter-spacing: .06em;
  text-align: right;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (min-width: 821px) and (orientation: portrait) {
  .cloud-portal--garden {
    --cloud-w: min(43vw, 430px);
    left: 3.5%;
    top: 32.5%;
  }

  .cloud-portal--post {
    --cloud-w: min(41vw, 410px);
    right: 2.5%;
    top: 24%;
  }

  .cloud-tag {
    width: 70%;
    padding-top: 13px;
    padding-bottom: 12px;
  }

  .hero {
    top: clamp(60px, 7.5vh, 100px);
  }

  .plant-cta {
    width: clamp(250px, 25vw, 300px);
  }
}

@media (max-width: 1120px) {
  .cloud-portal--garden {
    left: 3.5%;
  }

  .cloud-portal--post {
    right: 3%;
  }

  .cloud-tag {
    width: 72%;
  }

  .garden-content {
    grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
    gap: 26px;
    padding-left: 35px;
    padding-right: 35px;
  }

  .garden-card {
    padding: 28px 24px 22px;
  }

  .flower {
    min-height: 250px;
    height: min(34vh, 305px);
  }

  .gh-main {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 304px);
    gap: 10px;
    padding-left: 28px;
    padding-right: 28px;
  }

  .gh-journal {
    padding: 22px 21px 18px;
  }

  .gh-stage {
    min-height: 480px;
  }

  .plant-stage {
    min-height: 485px;
    height: clamp(440px, calc(100svh - 280px), 570px);
  }

  .plant-art {
    bottom: 144px;
    width: min(100%, 450px);
  }

  .pot {
    width: clamp(270px, 31vw, 330px);
  }

  .watering-can {
    left: 0%;
    bottom: 174px;
    width: clamp(142px, 16vw, 198px);
  }

  .field-note--one {
    left: 1%;
  }

  .field-note--two {
    right: 1%;
  }
}

@media (max-height: 780px) and (min-width: 901px) {
  .hero {
    top: 42px;
  }

  .hero__title {
    font-size: clamp(58px, 7.7vw, 102px);
  }

  .hero__sub {
    margin-top: 8px;
  }

  .hero__hint {
    margin-top: 11px;
    padding-top: 5px;
    padding-bottom: 6px;
  }

  .cloud-portal--garden {
    top: 37%;
    --cloud-w: clamp(280px, 27vw, 380px);
  }

  .cloud-portal--post {
    top: 27%;
    --cloud-w: clamp(270px, 26vw, 365px);
  }

  .cloud-tag {
    padding-top: 11px;
    padding-bottom: 10px;
  }

  .cloud-tag__title {
    font-size: clamp(23px, 2vw, 29px);
  }

  .cloud-tag__desc {
    font-size: 10px;
  }

  .trail-wish {
    bottom: 15%;
  }

  .plant-cta {
    min-height: 76px;
    width: clamp(225px, 20vw, 272px);
  }

  .plant-cta__photo {
    flex-basis: 56px;
    width: 56px;
    height: 56px;
  }

  .plant-cta__title {
    font-size: 23px;
  }

  .gh-window {
    top: 68px;
    height: calc(100svh - 150px);
  }

  .gh-header {
    padding-top: 15px;
  }

  .gh-heading {
    top: 12px;
  }

  .gh-heading h2 {
    font-size: 32px;
  }

  .gh-main {
    padding-top: 4px;
  }

  .gh-stage {
    min-height: 430px;
  }

  .plant-stage {
    min-height: 425px;
    height: 470px;
  }

  .plant-art {
    bottom: 128px;
    height: 320px;
  }

  .pot {
    height: 165px;
    width: 280px;
  }

  .pot-body {
    height: 140px;
  }

  .pot-rim {
    top: -21px;
    height: 40px;
  }

  .pot-soil {
    height: 49px;
  }

  .watering-can {
    bottom: 152px;
    width: 166px;
  }

  .melon-plant {
    width: clamp(200px, 21vw, 264px);
  }

  .gh-journal {
    margin-bottom: 18px;
  }

  .gh-footer {
    padding-top: 8px;
    padding-bottom: 11px;
  }
}

@media (max-width: 900px) {
  .site-brand {
    top: 19px;
    left: 18px;
  }

  .site-brand span {
    display: none;
  }

  .site-brand svg {
    width: 29px;
  }

  .utilities {
    top: 14px;
    right: 15px;
  }

  .icon-button {
    width: 39px;
    height: 39px;
  }

  .hero {
    top: 50px;
  }

  .cloud-tag {
    width: 72%;
  }

  .home-footer {
    left: 20px;
  }

  .home-copy {
    display: none;
  }

  .trail-wish {
    left: 20px;
  }

  .garden-content,
  .post-content {
    grid-template-columns: 1fr;
    width: min(720px, 100%);
    padding-left: clamp(20px, 5vw, 44px);
    padding-right: clamp(20px, 5vw, 44px);
  }

  .garden-content {
    align-items: start;
    gap: 12px;
    padding-top: 95px;
    padding-bottom: 30px;
    min-height: calc(100svh - 26px);
  }

  .garden-card {
    max-width: 390px;
    margin: 0 auto;
  }

  .garden-play {
    min-height: 450px;
    padding-top: 20px;
  }

  .garden-bed {
    min-height: 315px;
  }

  .garden-cloudbed {
    bottom: -9%;
    height: 72%;
  }

  .garden-footer {
    padding-bottom: 10px;
  }

  .world-bar {
    padding-top: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .world-bar__spacer {
    display: none;
  }

  .world-bar__meta {
    display: none;
  }

  .post-content {
    padding-top: 102px;
    gap: 30px;
    padding-bottom: 70px;
  }

  .post-copy {
    text-align: center;
  }

  .post-copy__rule {
    margin-left: auto;
    margin-right: auto;
  }

  .hanging-mail {
    top: 56px;
    right: 6%;
    transform: scale(.8);
    transform-origin: top right;
    opacity: .55;
  }

  .mail-desk {
    min-height: 520px;
    padding-top: 0;
  }

  .post-footer {
    position: relative;
    padding: 0 24px 20px;
    margin-top: -48px;
  }

  .post-moon {
    top: 9%;
    right: 9%;
    width: 85px;
    opacity: .75;
  }

  .post-moon__halo {
    top: 6%;
    right: 5%;
  }

  .gh-main {
    grid-template-columns: 1fr;
    gap: 0;
    width: 100%;
    padding: 0 16px;
  }

  .gh-header {
    padding: 15px;
  }

  .gh-heading {
    top: 12px;
  }

  .gh-header__spacer {
    display: block;
    width: 94px;
  }

  .gh-stage {
    min-height: 490px;
    max-width: 640px;
    margin: 0 auto;
    padding-top: 35px;
  }

  .gh-scene-label {
    top: 12px;
    left: 4%;
  }

  .plant-stage {
    min-height: 455px;
    height: 490px;
  }

  .gh-journal {
    max-width: 500px;
    width: calc(100% - 8px);
    margin: -25px auto 20px;
    transform: rotate(.5deg);
    padding: 24px 25px 21px;
  }

  .gh-journal::before {
    left: calc(50% - 38px);
  }

  .gh-footer {
    padding-top: 0;
  }

  .gh-window {
    top: 78px;
    width: 92vw;
    height: 62svh;
    min-height: 430px;
  }

  .gh-wall::before {
    opacity: .2;
  }

  .gh-floor {
    height: 20%;
  }

  .gh-hanging {
    opacity: .42;
  }

  .gh-hanging--left {
    left: -2%;
  }

  .gh-hanging--right {
    right: -2%;
  }

  .gh-shelf {
    left: 1%;
    opacity: .6;
  }
}

@media (max-width: 760px) {
  .hero {
    top: max(35px, env(safe-area-inset-top, 0px) + 20px);
    width: min(94vw, 560px);
  }

  .hero__kicker {
    gap: 9px;
    font-size: 6.5px;
    letter-spacing: .24em;
  }

  .hero__kicker span {
    width: 22px;
  }

  .hero__title {
    margin-top: 9px;
    font-size: clamp(48px, 13vw, 74px);
    letter-spacing: .07em;
    text-indent: .07em;
  }

  .hero__title::after {
    bottom: -3px;
    width: 55%;
    height: 10px;
  }

  .hero__sub {
    margin-top: 10px;
    font-size: 12px;
    letter-spacing: .14em;
    text-indent: .14em;
  }

  .hero__hint {
    margin-top: 12px;
    padding: 5px 11px 6px;
    font-size: 8.5px;
    letter-spacing: .08em;
  }

  .hero__hint-mark {
    font-size: 10px;
  }

  .cloud-portal--garden {
    --cloud-w: clamp(205px, 61vw, 280px);
    left: -4%;
    top: 25.5%;
  }

  .cloud-portal--post {
    --cloud-w: clamp(195px, 58vw, 266px);
    right: -4.5%;
    top: 46.5%;
  }

  .cloud-tag {
    width: 77%;
    margin-top: -19px;
    padding: 11px 11px 10px;
  }

  .cloud-tag::before {
    height: 18px;
  }

  .cloud-tag::after {
    bottom: calc(100% + 16px);
  }

  .cloud-tag__meta {
    font-size: 6.5px;
    letter-spacing: .13em;
  }

  .cloud-tag__title {
    font-size: clamp(21px, 6.2vw, 27px);
  }

  .cloud-tag__row {
    margin-top: 2px;
    gap: 6px;
  }

  .cloud-tag__go {
    flex-basis: 19px;
    width: 19px;
    height: 19px;
  }

  .cloud-tag__go svg {
    width: 10px;
    height: 10px;
  }

  .cloud-tag__desc {
    margin-top: 2px;
    font-size: 9px;
    letter-spacing: .04em;
  }

  .cloud-tag__pin {
    width: 6px;
    height: 6px;
  }

  .cloud-door {
    top: 24%;
    padding: 3px;
  }

  .cloud-door__tiny {
    font-size: 7px;
  }

  .cloud-portal__spark--a {
    font-size: 11px;
  }

  .cloud-portal__spark--b {
    font-size: 7px;
  }

  .cloud-portal__spark--c {
    font-size: 17px;
  }

  .butterfly {
    opacity: .5;
  }

  .butterfly--one {
    left: 17%;
    top: 66%;
  }

  .butterfly--two {
    display: none;
  }

  .trail-wish {
    display: none;
  }

  .home-footer {
    bottom: max(16px, var(--safe-bottom));
    left: 15px;
  }

  .home-weather {
    font-size: 8px;
    letter-spacing: .1em;
  }

  .plant-cta {
    right: max(12px, env(safe-area-inset-right, 0px));
    bottom: max(12px, calc(var(--safe-bottom) + 6px));
    width: min(230px, calc(100vw - 26px));
    min-height: 71px;
    padding: 7px 9px 7px 7px;
    gap: 9px;
    border-radius: 18px;
  }

  .plant-cta::before {
    inset: 5px;
    border-radius: 14px;
  }

  .plant-cta__photo {
    flex-basis: 55px;
    width: 55px;
    height: 55px;
  }

  .plant-cta__kicker {
    font-size: 7px;
  }

  .plant-cta__title {
    margin-top: 1px;
    font-size: 23px;
  }

  .plant-cta__sub {
    max-width: 116px;
    font-size: 8.5px;
  }

  .plant-cta__arrow {
    width: 23px;
    height: 23px;
    flex-basis: 23px;
  }

  .plant-cta__arrow svg {
    width: 11px;
    height: 11px;
  }

  .plant-cta__leaf--one {
    top: -9px;
    right: 27px;
  }

  .plant-cta__leaf--two {
    top: -6px;
    right: 17px;
  }

  .site-brand {
    top: 16px;
    left: 15px;
  }

  .site-brand svg {
    width: 25px;
  }

  .utilities {
    top: 12px;
    right: 12px;
  }

  .icon-button {
    width: 37px;
    height: 37px;
  }

  .icon-button svg {
    width: 17px;
    height: 17px;
  }

  .toast-region {
    bottom: 105px;
    width: calc(100% - 30px);
  }

  .toast {
    font-size: 11px;
    padding: 10px 15px;
  }

  .world-bar {
    padding: 12px;
  }

  .back-link {
    min-height: 35px;
    padding: 7px 11px;
    font-size: 10px;
    gap: 6px;
  }

  .world-bar__spacer {
    display: none;
  }

  .world-title {
    font-size: clamp(42px, 12vw, 58px);
  }

  .garden-content {
    padding-top: 82px;
    padding-left: 18px;
    padding-right: 18px;
    gap: 8px;
  }

  .garden-card {
    max-width: 430px;
    padding: 23px 20px 19px;
  }

  .garden-card .world-title {
    margin-bottom: 12px;
    font-size: clamp(40px, 10.7vw, 46px);
  }

  .garden-card__desc {
    font-size: 12.5px;
    line-height: 1.9;
  }

  .garden-card__tape {
    left: 23px;
    width: 68px;
    height: 20px;
  }

  .garden-progress {
    margin-top: 17px;
    padding-top: 13px;
  }

  .garden-message {
    min-height: 34px;
    margin-top: 10px;
    font-size: 10.5px;
  }

  .garden-card__footer {
    margin-top: 11px;
    padding-top: 10px;
  }

  .text-button {
    font-size: 9px;
  }

  .garden-play {
    min-height: 0;
    padding-top: 2px;
  }

  .garden-cloudbed {
    height: 80%;
    bottom: -2%;
  }

  .garden-cloudbed__moon {
    top: -2%;
    right: 9%;
    width: 38px;
    height: 38px;
  }

  .garden-cloudbed__hill {
    left: 0;
    right: 0;
    bottom: 1%;
    height: 58%;
  }

  .garden-bed {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-rows: auto;
    min-height: 295px;
    gap: 0;
    padding: 16px 0 28px;
  }

  .flower {
    height: 295px;
    min-height: 0;
  }

  .flower__sway {
    bottom: 21px;
    height: calc(100% - 18px);
    scale: .72;
  }

  .flower__bud {
    width: 19px;
    height: 27px;
  }

  .flower__bloom {
    width: 80px;
    height: 80px;
  }

  .flower__label {
    font-size: 7.5px;
    padding: 3px 6px 4px;
    letter-spacing: .02em;
  }

  .flower__stem {
    width: 2.5px;
  }

  .flower__stem i {
    width: 19px;
    height: 9px;
  }

  .garden-check {
    margin-top: -4px;
    margin-bottom: 9px;
    font-size: 9px;
  }

  .garden-footer {
    flex-wrap: wrap;
    gap: 7px 11px;
    padding-bottom: 14px;
    font-size: 7px;
  }

  .garden-footer__line {
    width: 18px;
  }

  .post-content {
    padding-top: 80px;
    padding-left: 20px;
    padding-right: 20px;
    gap: 22px;
  }

  .post-copy__desc {
    font-size: 12.5px;
    line-height: 1.9;
  }

  .post-copy__rule {
    margin: 17px auto 12px;
  }

  .post-copy__small {
    font-size: 10px;
  }

  .post-copy__small strong {
    font-size: 17px;
  }

  .mail-desk {
    min-height: 320px;
    padding-top: 0;
  }

  .mail-desk__back {
    display: none;
  }

  .envelope {
    width: min(345px, 88vw);
    margin-bottom: 49px;
  }

  .envelope__address {
    font-size: 9px;
  }

  .envelope__address em {
    font-size: 6.5px;
  }

  .envelope__cta {
    bottom: -48px;
    font-size: 9px;
    padding: 8px 13px;
  }

  .envelope__seal {
    width: 39px;
    font-size: 16px;
  }

  .envelope__stamp {
    width: 33px;
  }

  .mail-desk__note {
    font-size: 9px;
  }

  .hanging-mail {
    right: 1%;
    top: 48px;
    transform: scale(.64);
    opacity: .36;
  }

  .post-moon {
    width: 62px;
    height: 62px;
    right: 11%;
    top: 8%;
  }

  .post-moon__halo {
    display: none;
  }

  .post-footer {
    padding: 0 18px 15px;
    font-size: 7px;
    margin-top: -15px;
  }

  .letter-dialog {
    width: calc(100vw - 24px);
    max-height: 90svh;
    border-radius: 3px 16px 16px 5px;
  }

  .letter-paper {
    max-height: 90svh;
    padding: 28px 23px 26px;
  }

  .letter-head {
    padding-right: 26px;
  }

  .letter-head__kicker {
    font-size: 7px;
  }

  .letter-stamp {
    top: 87px;
    right: 23px;
    width: 47px;
    height: 57px;
    opacity: .54;
  }

  .letter-greeting {
    margin-top: 25px;
  }

  .letter-body {
    max-width: 100%;
    font-size: 14.5px;
    line-height: 2.05;
  }

  .letter-sign {
    margin: 19px 0 23px;
    font-size: 20px;
  }

  .letter-actions {
    padding-top: 16px;
  }

  .letter-actions .button {
    font-size: 10px;
    padding: 9px 13px;
  }

  .gh-window {
    top: 66px;
    width: 105vw;
    height: 57svh;
    min-height: 360px;
    border-width: 9px;
  }

  .gh-heading {
    top: 10px;
  }

  .gh-heading p {
    font-size: 6px;
    letter-spacing: .2em;
  }

  .gh-heading h2 {
    font-size: 31px;
  }

  .gh-header {
    padding-top: 12px;
  }

  .gh-header .back-link {
    min-height: 34px;
    padding: 7px 10px;
  }

  .gh-header__spacer {
    width: 103px;
  }

  .gh-hanging {
    opacity: .3;
    transform: scale(.7);
  }

  .gh-hanging--left {
    left: -8%;
    transform-origin: top left;
    transform: rotate(4deg) scale(.72);
  }

  .gh-hanging--right {
    right: -9%;
    transform-origin: top right;
    transform: rotate(-5deg) scale(.66);
  }

  .gh-shelf {
    display: none;
  }

  .gh-stage {
    min-height: 430px;
    padding-top: 10px;
  }

  .gh-scene-label {
    top: 8px;
    left: 5%;
    font-size: 6.5px;
  }

  .field-notes {
    display: none;
  }

  .plant-stage {
    min-height: 405px;
    height: 415px;
    padding-bottom: 0;
  }

  .plant-wrap {
    height: 100%;
  }

  .plant-art {
    bottom: 117px;
    width: min(100%, 370px);
    height: 300px;
  }

  .pot {
    width: min(74vw, 284px);
    height: 152px;
  }

  .pot-body {
    height: 128px;
    border-radius: 10% 10% 42% 42% / 8% 8% 29% 29%;
  }

  .pot-rim {
    top: -20px;
    height: 39px;
  }

  .pot-soil {
    height: 47px;
    top: 2px;
  }

  .sprout {
    width: 140px;
    height: 162px;
  }

  .vine {
    width: 320px;
    height: 286px;
  }

  .blossom {
    bottom: 175px;
    width: 118px;
    height: 118px;
  }

  .melon-plant {
    width: min(62vw, 238px);
  }

  .plant-stage[data-stage="4"] .melon-plant {
    bottom: 36px;
  }

  .plant-stage[data-stage="5"] .melon-plant {
    bottom: 10px;
  }

  .watering-can {
    left: -3%;
    bottom: 158px;
    width: clamp(122px, 32vw, 160px);
  }

  .gh-scene-note {
    bottom: -4px;
    font-size: 8px;
  }

  .gh-scene-note span {
    font-size: 12px;
  }

  .gh-journal {
    width: calc(100% - 4px);
    max-width: 470px;
    margin-top: -17px;
    margin-bottom: 10px;
    padding: 21px 21px 18px;
    border-radius: 4px 18px 18px 16px;
  }

  .gh-journal::before {
    top: -7px;
    height: 16px;
  }

  .gh-step {
    margin-top: 14px;
  }

  .gh-stage-name {
    font-size: 27px;
  }

  .gh-stage-hint {
    min-height: 33px;
    font-size: 11px;
  }

  .gh-drops {
    margin: 13px 0 12px;
    padding-top: 11px;
  }

  .gh-drop {
    width: 24px;
    height: 24px;
  }

  .water-button {
    min-height: 58px;
  }

  .gh-journal__foot {
    margin-top: 12px;
  }

  .gh-status {
    margin-top: 9px;
    min-height: 21px;
  }

  .gh-footer {
    flex-wrap: wrap;
    gap: 7px 11px;
    padding-top: 0;
    padding-bottom: max(14px, var(--safe-bottom));
    font-size: 7px;
  }

  .gh-wall::after {
    display: none;
  }

  .celebration__card {
    padding: 31px 22px 25px;
  }

  .celebration__title {
    font-size: 48px;
  }

  .celebration__text {
    font-size: 12px;
  }
}

@media (max-width: 400px) {
  .cloud-portal--garden {
    --cloud-w: 60vw;
    left: -5%;
    top: 27%;
  }

  .cloud-portal--post {
    --cloud-w: 57vw;
    right: -5%;
    top: 48%;
  }

  .hero__title {
    font-size: clamp(45px, 12.7vw, 56px);
  }

  .plant-cta {
    width: min(212px, calc(100vw - 24px));
    min-height: 66px;
  }

  .plant-cta__photo {
    flex-basis: 49px;
    width: 49px;
    height: 49px;
  }

  .plant-cta__title {
    font-size: 22px;
  }

  .plant-cta__sub {
    font-size: 8px;
  }

  .plant-cta__arrow {
    display: none;
  }

  .flower__sway {
    scale: .64;
  }

  .flower__label {
    font-size: 7px;
    padding: 2px 5px 3px;
  }

  .gh-header__spacer {
    display: none;
  }

  .gh-heading {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    text-align: center;
  }

  .gh-heading p {
    display: none;
  }

  .gh-heading h2 {
    font-size: 26px;
  }

  .gh-main {
    padding: 0 12px;
  }

  .gh-stage {
    min-height: 405px;
  }

  .plant-stage {
    min-height: 380px;
    height: 390px;
  }

  .plant-art {
    bottom: 108px;
    height: 285px;
  }

  .pot {
    width: min(76vw, 264px);
    height: 143px;
  }

  .pot-body {
    height: 120px;
  }

  .pot-rim {
    top: -18px;
    height: 36px;
  }

  .pot-soil {
    height: 43px;
  }

  .watering-can {
    width: clamp(106px, 34vw, 136px);
    bottom: 144px;
  }

  .gh-scene-note {
    display: none;
  }

  .gh-journal {
    padding: 19px 17px 16px;
  }
}

@media (max-width: 900px) and (orientation: landscape) and (max-height: 540px) {
  .hero {
    top: 28px;
  }

  .hero__kicker,
  .hero__hint {
    display: none;
  }

  .hero__title {
    font-size: 50px;
  }

  .hero__sub {
    margin-top: 4px;
    font-size: 10px;
  }

  .cloud-portal--garden {
    --cloud-w: 205px;
    left: 1%;
    top: 38%;
  }

  .cloud-portal--post {
    --cloud-w: 195px;
    right: 1%;
    top: 22%;
  }

  .cloud-tag {
    width: 76%;
  }

  .plant-cta {
    width: 192px;
    min-height: 57px;
  }

  .plant-cta__photo {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
  }

  .plant-cta__title {
    font-size: 20px;
  }

  .plant-cta__sub {
    display: none;
  }

  .home-footer,
  .site-brand {
    display: none;
  }

  .garden-content {
    grid-template-columns: 250px 1fr;
    padding-top: 70px;
    min-height: 100svh;
  }

  .garden-card {
    padding: 18px;
  }

  .garden-card__desc,
  .garden-message {
    font-size: 10px;
  }

  .garden-bed {
    min-height: 250px;
    padding-bottom: 10px;
  }

  .flower {
    height: 280px;
  }

  .flower__sway {
    scale: .6;
  }

  .garden-cloudbed {
    height: 90%;
  }

  .garden-footer {
    display: none;
  }

  .post-content {
    grid-template-columns: 250px 1fr;
    padding-top: 65px;
  }

  .post-copy__desc,
  .post-copy__small {
    font-size: 10px;
  }

  .mail-desk {
    min-height: 330px;
  }

  .envelope {
    width: 290px;
  }

  .post-footer {
    display: none;
  }

  .gh-header {
    padding-top: 8px;
  }

  .gh-heading {
    top: 5px;
    left: 22px;
    transform: none;
    text-align: left;
  }

  .gh-heading p {
    display: none;
  }

  .gh-heading h2 {
    font-size: 24px;
  }

  .back-link {
    min-height: 31px;
    padding: 5px 9px;
    font-size: 9px;
  }

  .gh-main {
    grid-template-columns: 1fr 270px;
    padding: 0 16px;
  }

  .gh-stage {
    min-height: 335px;
  }

  .gh-window {
    top: 48px;
    height: 310px;
    min-height: 310px;
  }

  .plant-stage {
    min-height: 330px;
    height: 340px;
  }

  .plant-art {
    bottom: 102px;
    height: 275px;
  }

  .pot {
    width: 235px;
    height: 135px;
  }

  .pot-body {
    height: 117px;
  }

  .pot-rim {
    top: -17px;
    height: 33px;
  }

  .pot-soil {
    height: 39px;
  }

  .watering-can {
    bottom: 132px;
    width: 126px;
  }

  .gh-scene-note {
    display: none;
  }

  .gh-journal {
    margin-bottom: 10px;
    padding: 17px 18px 14px;
  }

  .gh-step {
    margin-top: 8px;
  }

  .gh-stage-name {
    font-size: 24px;
  }

  .gh-stage-hint {
    min-height: 28px;
  }

  .gh-drops {
    margin: 8px 0 8px;
    padding-top: 8px;
  }

  .gh-journal__stamp {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .gh-journal__foot {
    margin-top: 7px;
  }

  .gh-status {
    display: none;
  }

  .gh-footer {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }

  .ambient,
  .butterfly,
  .gw-petal {
    display: none;
  }

  .landscape-wrap {
    transition: none;
  }

  .screen.is-entering {
    animation: none;
  }

  .transition-veil {
    transition: opacity .1s linear !important;
    animation-duration: .2s !important;
  }
}


/* ————— additions responsive ————— */

@media (max-width: 900px) {
  .guest-mailbox {
    margin-top: 12px;
  }
  .mailbox-list {
    max-height: min(44svh, 380px);
  }
}

@media (max-width: 760px) {
  .guest-mailbox {
    width: min(360px, 92vw);
    gap: 8px;
    padding: 8px 9px;
    border-radius: 12px;
  }

  .guest-mailbox__seal {
    flex-basis: 28px;
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .guest-mailbox__kicker {
    display: none;
  }

  .guest-mailbox__title {
    font-size: 15px;
  }

  .guest-mailbox__count {
    font-size: 8px;
  }

  .guest-mailbox__actions {
    gap: 4px;
  }

  .guest-mailbox__button {
    min-height: 27px;
    padding: 6px 8px;
    font-size: 8px;
    letter-spacing: 0;
  }

  .guest-mailbox__button svg {
    width: 10px;
    height: 10px;
  }

  .compose-dialog,
  .mailbox-dialog {
    width: calc(100vw - 22px);
    max-height: 92svh;
    border-radius: 3px 16px 16px 5px;
  }

  .compose-paper,
  .mailbox-paper {
    max-height: 92svh;
    padding: 25px 19px 22px;
  }

  .compose-paper h2,
  .mailbox-paper h2 {
    font-size: clamp(31px, 9vw, 40px);
  }

  .compose-paper__intro {
    margin-top: 10px;
    font-size: 11.5px;
    line-height: 1.85;
  }

  .compose-paper__privacy {
    margin-bottom: 16px;
    padding: 8px 9px;
    font-size: 9px;
  }

  .compose-field {
    margin-bottom: 12px;
  }

  .compose-field label {
    font-size: 9px;
  }

  .compose-field input,
  .compose-field textarea {
    font-size: 13px;
  }

  .compose-field textarea {
    min-height: 110px;
  }

  .compose-consent {
    font-size: 9px;
  }

  .compose-actions {
    padding-top: 11px;
  }

  .letter-close {
    top: 12px;
    right: 12px;
    width: 29px;
    height: 29px;
  }

  .mailbox-head {
    padding-right: 23px;
  }

  .mailbox-sub {
    font-size: 10px;
  }

  .mailbox-toolbar {
    margin-top: 13px;
    padding-top: 8px;
    padding-bottom: 7px;
  }

  .mailbox-list {
    max-height: min(45svh, 360px);
    gap: 9px;
    padding: 11px 2px 12px;
  }

  .mailbox-letter {
    padding: 13px 13px 13px;
  }

  .mailbox-letter__body {
    font-size: 11.5px;
    line-height: 1.85;
  }

  .mailbox-footer {
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 12px;
  }

  .mailbox-footer > span {
    font-size: 7px;
  }
}

@media (max-width: 400px) {
  .guest-mailbox__copy {
    max-width: 118px;
  }

  .guest-mailbox__button {
    padding: 5px 7px;
  }
}

/* =========================================================
   THIRD CLOUD + ARCADE
   ========================================================= */

.cloud-portal--game {
  --cloud-w: clamp(242px, 22vw, 326px);
  --tilt: -.6deg;
  left: 50%;
  margin-left: calc(var(--cloud-w) * -0.5);
  top: 55%;
  animation-delay: .94s;
}

.cloud-portal--game .cloud-portal__bob {
  animation-duration: 8.3s;
  animation-delay: -3.7s;
}

.cloud-portal--game .cloud-tag__title {
  font-size: clamp(23px, 1.95vw, 29px);
}

.cloud-door--game {
  background: linear-gradient(145deg, #fff7df, #f4dcc2 52%, #e7bfa4);
}

.game-cloud-balloons {
  animation: detailBreathe 7.2s -1.5s ease-in-out infinite;
  transform-origin: 50% 80%;
}

/* ————— arcade world ————— */

.screen--arcade {
  overflow: hidden;
  background: #f2e4ce;
  color: var(--ink);
}

.arcade-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 51% 0%, rgba(255, 251, 226, .8), transparent 38%),
    radial-gradient(ellipse at 79% 22%, rgba(255, 235, 191, .65), transparent 29%),
    linear-gradient(180deg, #dcece4 0%, #eef0dd 38%, #f8e1c8 68%, #efcbb2 100%);
  pointer-events: none;
}

.arcade-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(255, 251, 239, .1), transparent 23%),
    radial-gradient(ellipse at 50% 100%, rgba(81, 100, 72, .14), transparent 60%);
}

.arcade-sun {
  position: absolute;
  top: 10%;
  right: 15%;
  z-index: 0;
  width: clamp(86px, 12vw, 158px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 33%, #fff9dc, #ffe8b2 56%, #f4d49b 100%);
  box-shadow: 0 0 100px 42px rgba(255, 239, 185, .5);
  opacity: .85;
}

.arcade-cloud {
  position: absolute;
  z-index: 1;
  height: 45px;
  border-radius: 999px;
  background: rgba(255, 250, 237, .62);
  filter: blur(.4px);
}

.arcade-cloud::before,
.arcade-cloud::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: inherit;
}

.arcade-cloud::before { left: 14%; bottom: 10%; width: 39%; aspect-ratio: 1; }
.arcade-cloud::after { right: 12%; bottom: 16%; width: 46%; aspect-ratio: 1; }

.arcade-cloud--one {
  top: 17%;
  left: -3%;
  width: 330px;
  opacity: .55;
  animation: arcadeCloud 29s ease-in-out infinite alternate;
}

.arcade-cloud--two {
  top: 36%;
  right: 3%;
  width: 245px;
  height: 34px;
  opacity: .48;
  animation: arcadeCloud 35s -8s ease-in-out infinite alternate-reverse;
}

.arcade-cloud--three {
  top: 52%;
  left: 28%;
  width: 135px;
  height: 23px;
  opacity: .34;
  filter: blur(1.5px);
  animation: arcadeCloud 32s -14s ease-in-out infinite alternate;
}

@keyframes arcadeCloud {
  from { transform: translateX(-12px); }
  to { transform: translateX(27px); }
}

.arcade-wheel {
  position: absolute;
  top: 18%;
  right: 4%;
  z-index: 1;
  width: clamp(150px, 19vw, 275px);
  height: auto;
  color: #6d897c;
  opacity: .27;
  transform: rotate(-2deg);
}

.arcade-bunting {
  position: absolute;
  top: 62px;
  left: -1%;
  right: -1%;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-around;
  height: 27px;
  border-top: 1px solid rgba(116, 134, 105, .25);
  border-radius: 50%;
  transform: rotate(-.35deg);
  opacity: .65;
}

.arcade-bunting i {
  display: block;
  width: clamp(12px, 1.2vw, 18px);
  height: clamp(14px, 1.5vw, 23px);
  margin-top: -1px;
  background: #d79b8b;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center;
  animation: flagSway 5s ease-in-out infinite alternate;
}

.arcade-bunting i:nth-child(2n) { background: #e8c982; animation-delay: -1.3s; }
.arcade-bunting i:nth-child(3n) { background: #a8c4b2; animation-delay: -2.4s; }
.arcade-bunting i:nth-child(4n) { background: #c9b6cd; animation-delay: -3.2s; }

@keyframes flagSway {
  from { transform: rotate(-2deg); }
  to { transform: rotate(2.5deg); }
}

.arcade-hill {
  position: absolute;
  z-index: 0;
  left: -11%;
  right: -11%;
  border-radius: 50% 50% 0 0;
  pointer-events: none;
}

.arcade-hill--far {
  bottom: 11%;
  height: 27%;
  background: rgba(190, 209, 173, .6);
  transform: rotate(-.7deg);
}

.arcade-hill--near {
  bottom: -8%;
  height: 31%;
  background: linear-gradient(180deg, rgba(154, 185, 137, .72), rgba(122, 155, 111, .85));
}

.arcade-confetti {
  position: absolute;
  z-index: 1;
  width: 8px;
  height: 13px;
  border-radius: 1px;
  opacity: .5;
  animation: paperDrift 14s linear infinite;
}

.arcade-confetti--one { top: 24%; left: 7%; background: #d79b8b; animation-delay: -4s; }
.arcade-confetti--two { top: 41%; right: 21%; width: 6px; height: 10px; background: #e5c782; animation-delay: -9s; }
.arcade-confetti--three { top: 16%; right: 36%; width: 5px; height: 8px; background: #a9c2ae; animation-delay: -2s; }

@keyframes paperDrift {
  0% { opacity: 0; transform: translate3d(0, -30px, 0) rotate(0); }
  12% { opacity: .55; }
  80% { opacity: .4; }
  100% { opacity: 0; transform: translate3d(45px, 260px, 0) rotate(220deg); }
}

.arcade-heading {
  position: absolute;
  top: clamp(83px, 10.5vh, 112px);
  left: clamp(24px, 4.6vw, 66px);
  z-index: 14;
  pointer-events: none;
}

.arcade-heading .eyebrow {
  color: rgba(91, 106, 86, .63);
}

.arcade-heading h2 {
  margin: 7px 0 0;
  color: #39543f;
  font-family: var(--display);
  font-size: clamp(42px, 4.6vw, 66px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: .035em;
  white-space: nowrap;
  text-shadow: 0 2px 0 rgba(255, 250, 235, .35);
}

.arcade-heading > p:last-child {
  margin: 9px 0 0;
  color: rgba(76, 93, 76, .65);
  font-family: var(--serif);
  font-size: 11.5px;
  letter-spacing: .1em;
}

.arcade-hud {
  position: absolute;
  top: clamp(86px, 11vh, 120px);
  right: clamp(24px, 4.7vw, 68px);
  z-index: 18;
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 60px;
  padding: 7px 12px 7px 17px;
  border: 1px solid rgba(100, 109, 83, .2);
  border-radius: 22px;
  background: rgba(255, 249, 235, .72);
  box-shadow: 0 16px 35px rgba(82, 88, 64, .1), inset 0 0 0 3px rgba(255, 255, 255, .25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: none;
}

.arcade-hud__score,
.arcade-hud__best {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 60px;
}

.arcade-hud__score span,
.arcade-hud__best span {
  color: #998a6d;
  font-family: var(--sans);
  font-size: 7px;
  font-weight: 600;
  letter-spacing: .13em;
  white-space: nowrap;
}

.arcade-hud__score strong,
.arcade-hud__best strong {
  color: #425c48;
  font-family: var(--display);
  font-size: 25px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: .06em;
}

.arcade-hud__best strong {
  color: #a38152;
  font-size: 20px;
  letter-spacing: .04em;
}

.arcade-clock {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 53px;
  width: 53px;
  height: 53px;
  border-radius: 50%;
  background: conic-gradient(#cda86a var(--arcade-progress, 100%), rgba(126, 139, 107, .14) 0);
  box-shadow: inset 0 0 0 1px rgba(123, 106, 76, .14);
}

.arcade-clock::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #fbf5e7;
  box-shadow: inset 0 0 0 1px rgba(129, 108, 77, .1);
}

.arcade-clock strong {
  position: relative;
  z-index: 1;
  margin-top: -5px;
  color: #3e5842;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}

.arcade-clock small {
  position: absolute;
  z-index: 1;
  bottom: 10px;
  color: #a29379;
  font-family: var(--sans);
  font-size: 6px;
  letter-spacing: .08em;
}

.arcade-clock__ring {
  position: absolute;
  inset: -4px;
  border: 1px dashed rgba(139, 120, 84, .2);
  border-radius: 50%;
}

.arcade-hud.is-ticking .arcade-clock__ring {
  border-color: rgba(187, 134, 95, .32);
}

.arcade-hud.is-low-time .arcade-clock {
  animation: clockPulse 1s ease-in-out infinite;
}

@keyframes clockPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.045); }
}

.arcade-combo {
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  padding: 5px 10px;
  border: 1px solid rgba(154, 116, 68, .2);
  border-radius: 999px;
  color: #a67645;
  background: rgba(255, 248, 226, .8);
  box-shadow: 0 5px 12px rgba(93, 77, 53, .08);
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: .04em;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, -3px) scale(.9);
  transition: opacity .2s ease, transform .25s var(--ease-bounce);
}

.arcade-combo.is-visible {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

/* ————— clickable play field ————— */

.arcade-field {
  position: absolute;
  inset: 0;
  z-index: 5;
  overflow: hidden;
  touch-action: manipulation;
  cursor: crosshair;
  outline: none;
}

.arcade-result > .confetti-piece {
  position: absolute;
  z-index: 3;
  pointer-events: none;
}

.screen--arcade.is-playing .arcade-field {
  cursor: none;
}

.balloon-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.arcade-reticle {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 3;
  display: block;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 250, 232, .9);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(76, 99, 74, .24), 0 3px 12px rgba(52, 72, 51, .16);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity .15s ease;
  will-change: transform;
}

.arcade-reticle::before,
.arcade-reticle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 50px;
  height: 1px;
  background: rgba(255, 250, 232, .72);
  box-shadow: 0 0 3px rgba(54, 76, 52, .2);
  transform: translate(-50%, -50%);
}

.arcade-reticle::after {
  width: 1px;
  height: 50px;
}

.arcade-reticle span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #e5bd72;
  transform: translate(-50%, -50%);
}

.arcade-reticle.is-visible {
  opacity: .9;
}

.arcade-reticle.is-firing {
  animation: reticleFire .22s ease-out;
}

@keyframes reticleFire {
  0% { transform: translate(-50%, -50%) scale(1); }
  45% { transform: translate(-50%, -50%) scale(.78); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

.balloon {
  position: absolute;
  bottom: -190px;
  left: var(--x, 50%);
  display: block;
  width: var(--size, 70px);
  height: calc(var(--size, 70px) * 1.42);
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  pointer-events: auto;
  cursor: crosshair;
  opacity: 0;
  animation: balloonRise var(--dur, 12s) linear var(--delay, 0s) forwards;
  will-change: transform;
}

@keyframes balloonRise {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  5% { opacity: 1; }
  92% { opacity: 1; }
  100% { transform: translate3d(0, calc(-100svh - 300px), 0); opacity: .8; }
}

.balloon__float {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: 50% 0;
  animation: balloonSway var(--sway-dur, 4.8s) var(--sway-delay, 0s) ease-in-out infinite alternate;
}

@keyframes balloonSway {
  from { transform: translateX(-7px) rotate(-3deg); }
  to { transform: translateX(8px) rotate(3.2deg); }
}

.balloon__body {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 74%;
  border: 1px solid rgba(101, 83, 69, .16);
  border-radius: 50% 50% 48% 48% / 43% 43% 57% 57%;
  background:
    radial-gradient(ellipse at 33% 24%, rgba(255, 255, 251, .75), transparent 21%),
    radial-gradient(ellipse at 35% 27%, var(--light, #f8d7d2), var(--mid, #e5a9a2) 47%, var(--deep, #c57e78) 100%);
  box-shadow:
    inset -7px -12px 14px rgba(89, 60, 57, .15),
    inset 6px 6px 13px rgba(255, 255, 255, .22),
    0 9px 15px rgba(78, 70, 53, .12);
  transition: transform .18s var(--ease-soft);
}

.balloon__body::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 10px;
  height: 9px;
  border-radius: 50% 50% 45% 45%;
  background: var(--deep, #bb756f);
  transform: translateX(-50%);
}

.balloon__shine {
  position: absolute;
  left: 24%;
  top: 16%;
  width: 18%;
  height: 28%;
  border-radius: 50%;
  background: rgba(255, 255, 246, .55);
  filter: blur(1.2px);
  transform: rotate(-20deg);
}

.balloon__mark {
  position: absolute;
  left: 50%;
  top: 43%;
  z-index: 3;
  color: rgba(255, 251, 234, .82);
  font-size: calc(var(--size, 70px) * .27);
  line-height: 1;
  text-shadow: 0 1px 2px rgba(111, 68, 60, .2);
  transform: translate(-50%, -50%);
}

.balloon__string {
  position: absolute;
  left: 50%;
  top: 73%;
  z-index: 1;
  width: 1px;
  height: 27%;
  background: linear-gradient(180deg, rgba(113, 97, 76, .38), rgba(113, 97, 76, .08));
  transform: rotate(4deg);
  transform-origin: top center;
}

.balloon--gold {
  filter: drop-shadow(0 0 11px rgba(229, 184, 89, .36));
}

.balloon--gold .balloon__body {
  background:
    radial-gradient(ellipse at 33% 24%, rgba(255, 255, 248, .9), transparent 22%),
    radial-gradient(ellipse at 35% 27%, #faedb6, #e7c267 48%, #b98b3e 100%);
}

.balloon--gold .balloon__body::before {
  background: #b58a42;
}

.balloon--heart .balloon__body {
  border-radius: 48% 48% 45% 45% / 46% 46% 54% 54%;
}

.balloon--heart .balloon__mark {
  color: rgba(255, 245, 236, .86);
}

.balloon:hover .balloon__body {
  transform: scale(1.035);
}

.screen--arcade.is-playing .balloon {
  cursor: none;
}

.balloon:focus-visible {
  outline: none;
}

.balloon:focus-visible .balloon__body {
  box-shadow: 0 0 0 3px rgba(248, 240, 210, .8), 0 0 0 5px rgba(56, 82, 59, .5), 0 9px 15px rgba(78, 70, 53, .12);
}

.balloon.is-popped {
  pointer-events: none;
}

.balloon.is-popped .balloon__float {
  animation: balloonPop .24s var(--ease-soft) forwards;
}

.balloon.is-popped .balloon__body {
  animation: balloonShellPop .24s var(--ease-soft) forwards;
}

@keyframes balloonPop {
  to { transform: scale(1.3); opacity: 0; }
}

@keyframes balloonShellPop {
  to { transform: scale(.72); opacity: 0; }
}

.score-pop {
  position: fixed;
  z-index: 32;
  color: #4b684f;
  font-family: var(--display);
  font-size: 24px;
  line-height: 1;
  pointer-events: none;
  text-shadow: 0 1px 0 rgba(255, 250, 231, .8), 0 3px 12px rgba(86, 82, 57, .18);
}

.score-pop--gold { color: #b4823d; font-size: 28px; }

.shot-burst {
  position: fixed;
  z-index: 31;
  width: 8px;
  height: 8px;
  border: 1px solid rgba(255, 249, 225, .95);
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 0 8px rgba(255, 237, 181, .75);
  animation: shotBurst .42s ease-out forwards;
}

@keyframes shotBurst {
  0% { opacity: .95; transform: scale(.45); }
  100% { opacity: 0; transform: scale(2.6); }
}

.shot-spark {
  position: fixed;
  z-index: 33;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff4c5;
  box-shadow: 0 0 8px 2px rgba(255, 224, 143, .9);
  pointer-events: none;
}

.miss-dust {
  position: fixed;
  z-index: 30;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 247, 217, .75);
  pointer-events: none;
}

.arcade-cannon.is-firing .arcade-cannon__muzzle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 248, 206, .95), rgba(255, 230, 154, .35) 45%, transparent 70%);
  transform: translate(-50%, -50%);
  animation: muzzleFlash .2s ease-out forwards;
}

@keyframes muzzleFlash {
  0% { opacity: .95; scale: .4; }
  100% { opacity: 0; scale: 1.5; }
}

/* ————— shooting booth ————— */

.arcade-booth {
  position: absolute;
  left: 50%;
  bottom: -9px;
  z-index: 7;
  width: min(620px, 72vw);
  height: 212px;
  transform: translateX(-50%);
  pointer-events: none;
}

.booth-awning {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 0;
  height: 67px;
  border: 1px solid rgba(142, 104, 72, .28);
  border-radius: 28px 28px 7px 7px;
  background:
    linear-gradient(180deg, rgba(255, 251, 236, .54), transparent 45%),
    repeating-linear-gradient(90deg, #f2e3c6 0 34px, #d69788 34px 68px);
  box-shadow: 0 10px 22px rgba(97, 77, 51, .13);
}

.booth-awning::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 11px;
  background:
    radial-gradient(ellipse at 50% 0, #efe0c4 0 10px, transparent 10.5px) 0 0 / 28px 11px repeat-x;
  opacity: .95;
}

.booth-awning span {
  position: absolute;
  bottom: -15px;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(147, 110, 68, .22);
  border-radius: 50%;
  background: #f4e8cc;
  box-shadow: 0 0 9px rgba(255, 227, 167, .55);
}

.booth-awning span::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: 1px;
  height: 16px;
  background: rgba(121, 91, 62, .25);
}

.booth-awning span:nth-child(1) { left: 11%; }
.booth-awning span:nth-child(2) { left: 31%; }
.booth-awning span:nth-child(3) { left: 50%; }
.booth-awning span:nth-child(4) { left: 69%; }
.booth-awning span:nth-child(5) { left: 88%; }

.booth-counter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 153px;
  border: 1px solid rgba(122, 82, 49, .28);
  border-radius: 9px 9px 0 0;
  background:
    linear-gradient(180deg, rgba(255, 239, 210, .42), transparent 15%),
    repeating-linear-gradient(90deg, transparent 0 148px, rgba(91, 60, 35, .13) 148px 150px),
    linear-gradient(180deg, #b9855b, #9e6c48 55%, #8d5f41);
  box-shadow: inset 0 17px 19px rgba(255, 221, 177, .12), 0 -8px 24px rgba(84, 64, 43, .14);
}

.booth-counter::before {
  content: "";
  position: absolute;
  left: 2%;
  right: 2%;
  top: 12px;
  height: 10px;
  border-radius: 3px;
  background: linear-gradient(180deg, #dfb98d, #b98961);
  box-shadow: 0 2px 0 rgba(89, 58, 35, .22);
}

.booth-counter::after {
  content: "";
  position: absolute;
  inset: 16px 10px 10px;
  border: 1px solid rgba(255, 236, 204, .08);
  border-radius: 5px;
  pointer-events: none;
}

.booth-sign {
  position: absolute;
  left: 16%;
  top: 32px;
  z-index: 2;
  padding: 4px 14px;
  border: 1px solid rgba(89, 64, 39, .28);
  border-radius: 2px;
  color: #744f35;
  background: #f6e6c9;
  box-shadow: 0 3px 6px rgba(75, 52, 32, .14);
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: .17em;
  transform: translateX(-50%) rotate(-1.5deg);
}

.booth-prize {
  position: absolute;
  top: 36px;
  display: grid;
  place-items: center;
  width: 31px;
  height: 35px;
  border: 1px solid rgba(240, 218, 184, .36);
  border-radius: 50%;
  color: #e4bd7a;
  background: rgba(68, 51, 33, .18);
  font-size: 15px;
  opacity: .75;
}

.booth-prize--one { left: 8%; }
.booth-prize--two { right: 9%; color: #e2b7bb; }

.booth-ticket {
  position: absolute;
  right: 5%;
  top: 39px;
  z-index: 3;
  padding: 5px 6px;
  border: 1px dashed rgba(95, 68, 40, .27);
  color: rgba(91, 64, 38, .55);
  background: rgba(249, 237, 213, .52);
  font-family: var(--serif);
  font-size: 6px;
  line-height: 1.55;
  letter-spacing: .05em;
  transform: rotate(5deg);
}

.arcade-cannon {
  position: absolute;
  left: 52%;
  top: -92px;
  z-index: 5;
  width: 255px;
  transform: translateX(-50%);
  filter: drop-shadow(0 9px 8px rgba(77, 51, 30, .18));
}

.arcade-cannon__aim {
  position: relative;
  display: block;
  width: 100%;
  transform-origin: 52% 82%;
  transition: transform .1s cubic-bezier(.2, .75, .25, 1);
  will-change: transform;
}

.arcade-cannon svg {
  width: 100%;
  height: auto;
}

.arcade-cannon__muzzle {
  position: absolute;
  left: 92.8%;
  top: 29.2%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: transparent;
}

.arcade-cannon.is-firing {
  animation: rifleKick .2s ease-out;
}

@keyframes rifleKick {
  0%, 100% { transform: translateX(-50%) translateX(0) rotate(0deg); }
  32% { transform: translateX(-50%) translateX(-4px) rotate(1.2deg); }
  68% { transform: translateX(-50%) translateX(-1px) rotate(-.4deg); }
}

/* ————— start card ————— */

.arcade-intro {
  position: absolute;
  top: 50%;
  left: clamp(25px, 5vw, 74px);
  z-index: 25;
  width: min(334px, calc(100vw - 44px));
  padding: 30px 29px 23px;
  border: 1px solid rgba(132, 108, 73, .28);
  border-radius: 4px 23px 23px 20px;
  background:
    radial-gradient(ellipse at 18% 0, rgba(255, 255, 249, .92), transparent 42%),
    repeating-linear-gradient(0deg, transparent 0 26px, rgba(143, 121, 84, .045) 26px 27px),
    linear-gradient(160deg, #fffaed, #f3e6cf);
  box-shadow: 0 30px 70px rgba(74, 79, 55, .22), inset 0 0 0 4px rgba(255, 255, 255, .24);
  transform: translateY(-46%) rotate(-.6deg);
  transition: opacity .38s ease, transform .45s var(--ease-soft), visibility 0s linear .4s;
}

.arcade-intro__ticket {
  position: absolute;
  top: -14px;
  left: 24px;
  padding: 5px 11px;
  border: 1px solid rgba(101, 79, 49, .24);
  color: #f8efdc;
  background: #4b684f;
  box-shadow: 0 3px 8px rgba(66, 81, 54, .16);
  font-family: var(--sans);
  font-size: 6px;
  letter-spacing: .16em;
  transform: rotate(-2deg);
}

.arcade-intro h3 {
  margin: 9px 0 10px;
  color: #38523d;
  font-family: var(--display);
  font-size: clamp(39px, 4.3vw, 58px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: .02em;
}

.arcade-intro__copy {
  margin: 0;
  color: #707861;
  font-family: var(--serif);
  font-size: 12px;
  line-height: 1.9;
  letter-spacing: .035em;
}

.arcade-prize-hint {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 16px 0 17px;
  padding: 9px 10px;
  border: 1px solid rgba(185, 148, 96, .24);
  border-radius: 10px;
  background: rgba(233, 210, 169, .16);
}

.arcade-prize-hint__icon {
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  width: 46px;
  height: 32px;
  overflow: hidden;
  border-radius: 8px;
  background: #f2e2c6;
}

.arcade-prize-hint__icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
}

.arcade-prize-hint > span:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.arcade-prize-hint b {
  color: #785c3f;
  font-family: var(--serif);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .03em;
}

.arcade-prize-hint small {
  margin-top: 1px;
  color: #a08d71;
  font-family: var(--sans);
  font-size: 7.5px;
  letter-spacing: .06em;
}

.arcade-start {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 49px;
  padding: 11px 15px 11px 18px;
  border: 1px solid #2f513b;
  border-radius: 13px;
  color: var(--paper);
  background:
    radial-gradient(ellipse at 24% 0, rgba(175, 203, 157, .25), transparent 48%),
    linear-gradient(135deg, #53775b, #375841 58%, #2e4b38);
  box-shadow: 0 6px 0 rgba(56, 73, 48, .13), 0 12px 23px rgba(45, 66, 46, .17);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  cursor: pointer;
  transition: transform .25s var(--ease-soft), box-shadow .25s ease;
}

.arcade-start svg {
  width: 15px;
  height: 15px;
}

.arcade-start:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 0 rgba(56, 73, 48, .11), 0 16px 26px rgba(45, 66, 46, .22);
}

.arcade-intro__hint {
  margin: 11px 0 0;
  color: #a39a84;
  font-family: var(--sans);
  font-size: 7.5px;
  line-height: 1.5;
  letter-spacing: .04em;
  text-align: center;
}

.screen--arcade.is-playing .arcade-intro,
.screen--arcade.is-finished .arcade-intro {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .3s ease, visibility 0s linear .35s;
}

.arcade-footer {
  position: absolute;
  left: clamp(23px, 4.5vw, 64px);
  bottom: 22px;
  z-index: 11;
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: rgba(87, 94, 70, .42);
  font-family: var(--sans);
  font-size: 7px;
  letter-spacing: .13em;
  pointer-events: none;
}

/* ————— result / prize ————— */

.arcade-result {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow-y: auto;
  background: rgba(28, 44, 34, .5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .42s ease, visibility 0s linear .42s;
}

.arcade-result.is-visible {
  opacity: 1;
  visibility: visible;
  transition: opacity .42s ease, visibility 0s;
}

.arcade-result__card {
  position: relative;
  width: min(805px, 94vw);
  max-height: 92svh;
  padding: 28px;
  overflow: hidden auto;
  border: 1px solid rgba(132, 104, 65, .32);
  border-radius: 5px 24px 24px 9px;
  background:
    radial-gradient(ellipse at 26% 3%, rgba(255, 255, 249, .94), transparent 35%),
    repeating-linear-gradient(0deg, transparent 0 28px, rgba(145, 122, 84, .045) 28px 29px),
    linear-gradient(145deg, #fdf7e9, #f3e6ce);
  box-shadow: 0 35px 90px rgba(18, 32, 23, .38), inset 0 0 0 5px rgba(255, 255, 255, .22);
  transform: rotate(-.45deg) scale(.95);
  transition: transform .5s var(--ease-bounce);
  scrollbar-width: thin;
  scrollbar-color: rgba(116, 99, 69, .26) transparent;
}

.arcade-result.is-visible .arcade-result__card {
  transform: rotate(-.45deg) scale(1);
}

.arcade-result__card::before {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: 0;
  border: 1px dashed rgba(139, 112, 74, .17);
  border-radius: 4px 17px 17px 6px;
  pointer-events: none;
}

.arcade-result__layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(230px, .84fr) 1.16fr;
  gap: 27px;
  align-items: center;
}

.arcade-prize {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-height: 340px;
  padding: 24px 10px 3px;
  overflow: hidden;
  border: 1px solid rgba(170, 136, 87, .2);
  border-radius: 3px 19px 19px 7px;
  background:
    radial-gradient(ellipse at 50% 47%, rgba(255, 235, 184, .5), transparent 51%),
    linear-gradient(180deg, rgba(247, 230, 195, .56), rgba(255, 249, 235, .2));
}

.arcade-prize::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 9%;
  width: 76%;
  height: 65%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 240, 189, .58), transparent 64%);
  filter: blur(10px);
  transform: translateX(-50%);
}

.arcade-prize__glow {
  position: absolute;
  left: 50%;
  top: 34%;
  width: 80%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 235, 173, .32), transparent 66%);
  transform: translate(-50%, -50%);
}

.arcade-prize__ribbon {
  position: absolute;
  top: 15px;
  left: 50%;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px 6px;
  border: 1px solid rgba(134, 102, 61, .22);
  color: #f7eedb;
  background: #47644b;
  box-shadow: 0 4px 10px rgba(65, 80, 53, .15);
  font-family: var(--serif);
  font-size: 10px;
  letter-spacing: .08em;
  transform: translateX(-50%) rotate(-2deg);
  white-space: nowrap;
}

.arcade-prize__ribbon i {
  color: rgba(247, 237, 217, .5);
  font-family: var(--sans);
  font-size: 6px;
  font-style: normal;
  letter-spacing: .18em;
}

.prize-duo-picture {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 13px;
}

.prize-duo {
  position: relative;
  z-index: 2;
  display: block;
  width: min(100%, 228px);
  max-width: 100%;
  max-height: 332px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 15px 13px rgba(91, 67, 50, .18));
  transform-origin: 50% 95%;
}

.arcade-result.is-win .prize-duo {
  animation: plushWelcome 1.15s .35s var(--ease-bounce) both, plushBreathe 6s 1.8s ease-in-out infinite;
}

.arcade-result.is-lose .prize-duo {
  opacity: .64;
  filter: grayscale(.55) drop-shadow(0 15px 13px rgba(91, 67, 50, .12));
  transform: scale(.93);
  transition: filter .4s ease, opacity .4s ease, transform .4s ease;
}

.arcade-result.is-win .arcade-prize__glow {
  animation: prizeGlow 4.5s ease-in-out infinite;
}

@keyframes plushWelcome {
  0% { opacity: 0; transform: translateY(24px) rotate(-6deg) scale(.7); }
  58% { opacity: 1; transform: translateY(-7px) rotate(2deg) scale(1.04); }
  100% { opacity: 1; transform: translateY(0) rotate(0) scale(1); }
}

@keyframes plushBreathe {
  0%, 100% { transform: translateY(0) rotate(-.6deg); }
  50% { transform: translateY(-4px) rotate(.8deg); }
}

@keyframes prizeGlow {
  0%, 100% { opacity: .55; transform: translate(-50%, -50%) scale(.9); }
  50% { opacity: .95; transform: translate(-50%, -50%) scale(1.07); }
}

.arcade-prize__caption {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 2px;
  color: #5a4632;
  font-family: var(--display);
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: .04em;
  text-align: center;
}

.arcade-prize__caption small {
  color: #a29278;
  font-family: var(--sans);
  font-size: 6px;
  letter-spacing: .17em;
}

.arcade-result__copy {
  padding: 8px 12px 9px 0;
}

.arcade-result__stars {
  position: absolute;
  right: 9px;
  top: 2px;
  color: #d0a457;
  font-size: 11px;
  letter-spacing: 3px;
  opacity: .68;
}

.arcade-result__copy h3 {
  margin: 7px 0 9px;
  color: #364f3b;
  font-family: var(--display);
  font-size: clamp(42px, 4.3vw, 57px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: .02em;
  white-space: nowrap;
}

.arcade-result__line {
  margin: 0;
  color: #777761;
  font-family: var(--serif);
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: .035em;
}

.arcade-result__line strong {
  color: #4f6c50;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 400;
  vertical-align: -2px;
}

.arcade-result__score {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 18px 0 0;
  padding: 12px 0 13px;
  border-top: 1px dashed rgba(137, 112, 73, .25);
  border-bottom: 1px dashed rgba(137, 112, 73, .25);
}

.arcade-result__score > span {
  color: #9a8b73;
  font-family: var(--sans);
  font-size: 8px;
  letter-spacing: .11em;
}

.arcade-result__score > strong {
  color: #3f5a44;
  font-family: var(--display);
  font-size: 43px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: .035em;
}

.arcade-result__score small {
  margin-left: auto;
  color: #a19783;
  font-family: var(--sans);
  font-size: 8px;
  letter-spacing: .04em;
}

.arcade-result__score small b {
  color: #aa7d45;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 400;
  vertical-align: -2px;
}

.arcade-result__badge {
  display: inline-block;
  margin: 14px 0 0;
  padding: 5px 10px;
  border: 1px solid rgba(122, 145, 105, .22);
  border-radius: 999px;
  color: #697f60;
  background: rgba(156, 176, 130, .1);
  font-family: var(--serif);
  font-size: 9.5px;
  letter-spacing: .055em;
}

.arcade-result__prize-note {
  min-height: 34px;
  margin: 10px 0 14px;
  color: #9c8768;
  font-family: var(--serif);
  font-size: 10.5px;
  line-height: 1.7;
  letter-spacing: .035em;
}

.arcade-result.is-win .arcade-result__prize-note {
  color: #99763e;
}

.arcade-result__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.arcade-result__actions .button {
  min-height: 41px;
  font-size: 11px;
}

.arcade-result__confetti {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

/* arcade responsive */
@media (max-width: 1120px) {
  .arcade-heading h2 {
    font-size: clamp(39px, 4.6vw, 53px);
  }

  .arcade-hud {
    gap: 9px;
    padding-left: 13px;
  }

  .arcade-hud__score,
  .arcade-hud__best {
    min-width: 48px;
  }

  .arcade-hud__score strong { font-size: 22px; }
  .arcade-hud__best strong { font-size: 18px; }

  .arcade-intro {
    width: min(310px, calc(100vw - 44px));
    padding: 27px 24px 21px;
  }

  .arcade-intro h3 {
    font-size: clamp(38px, 4.2vw, 50px);
  }

  .arcade-booth {
    width: min(585px, 70vw);
  }
}

@media (max-height: 780px) and (min-width: 901px) {
  .arcade-heading {
    top: 73px;
  }

  .arcade-heading h2 {
    font-size: clamp(38px, 4vw, 53px);
  }

  .arcade-heading > p:last-child {
    margin-top: 5px;
  }

  .arcade-hud {
    top: 78px;
    transform: scale(.93);
    transform-origin: top right;
  }

  .arcade-intro {
    top: 52%;
    width: min(310px, calc(100vw - 44px));
    padding: 23px 24px 18px;
    transform: translateY(-50%) rotate(-.6deg) scale(.94);
  }

  .arcade-intro h3 {
    font-size: 42px;
  }

  .arcade-intro__copy {
    font-size: 11px;
  }

  .arcade-prize-hint {
    margin: 10px 0 12px;
    padding: 7px 8px;
  }

  .arcade-intro__hint {
    margin-top: 7px;
  }

  .arcade-booth {
    height: 185px;
    width: min(545px, 66vw);
  }

  .booth-awning {
    height: 56px;
  }

  .booth-counter {
    height: 136px;
  }

  .arcade-cannon {
    top: -76px;
    width: 235px;
  }

  .arcade-result__card {
    max-height: 90svh;
    padding: 22px;
  }

  .arcade-prize {
    min-height: 294px;
  }

  .prize-duo {
    max-height: 254px;
  }

  .arcade-result__copy h3 {
    font-size: 51px;
  }

  .arcade-result__score {
    margin-top: 12px;
    padding: 9px 0 10px;
  }

  .arcade-result__badge {
    margin-top: 10px;
  }

  .arcade-result__prize-note {
    margin-top: 7px;
    margin-bottom: 10px;
  }
}

@media (max-width: 900px) {
  .arcade-heading {
    top: 74px;
    left: 24px;
  }

  .arcade-heading h2 {
    font-size: 40px;
  }

  .arcade-heading > p:last-child {
    font-size: 10px;
  }

  .arcade-hud {
    top: 131px;
    right: 22px;
    transform: scale(.9);
    transform-origin: top right;
  }

  .arcade-intro {
    top: 52%;
    left: 30px;
    width: min(300px, calc(100vw - 60px));
  }

  .arcade-intro h3 {
    font-size: 42px;
  }

  .arcade-booth {
    width: min(510px, 80vw);
    height: 182px;
  }

  .booth-awning {
    height: 55px;
  }

  .booth-counter {
    height: 134px;
  }

  .arcade-cannon {
    top: -72px;
    width: 225px;
  }

  .arcade-footer {
    display: none;
  }

  .arcade-result__layout {
    grid-template-columns: minmax(190px, .85fr) 1.15fr;
    gap: 18px;
  }

  .arcade-prize {
    min-height: 290px;
  }

  .arcade-result__copy h3 {
    font-size: 48px;
  }

  .prize-duo {
    max-height: 240px;
  }
}

@media (max-width: 760px) {
  .cloud-portal--game {
    --cloud-w: clamp(184px, 54vw, 222px);
    left: -4%;
    margin-left: 0;
    top: 56.5%;
    animation-delay: 1.03s;
  }

  .cloud-portal--game .cloud-tag {
    width: 79%;
  }

  .cloud-portal--game .cloud-tag__title {
    font-size: clamp(19px, 5.2vw, 23px);
  }

  .arcade-heading {
    top: 58px;
    left: 50%;
    width: 100%;
    text-align: center;
    transform: translateX(-50%);
  }

  .arcade-heading h2 {
    font-size: clamp(34px, 9.4vw, 42px);
  }

  .arcade-heading > p:last-child {
    display: none;
  }

  .arcade-heading .eyebrow {
    font-size: 7px;
  }

  .arcade-hud {
    top: 107px;
    left: 50%;
    right: auto;
    gap: 8px;
    min-height: 48px;
    padding: 5px 8px 5px 11px;
    transform: translateX(-50%);
    transform-origin: center top;
  }

  .arcade-hud__score,
  .arcade-hud__best {
    min-width: 43px;
  }

  .arcade-hud__score span,
  .arcade-hud__best span {
    font-size: 6px;
    letter-spacing: .09em;
  }

  .arcade-hud__score strong {
    font-size: 19px;
  }

  .arcade-hud__best strong {
    font-size: 16px;
  }

  .arcade-clock {
    flex-basis: 43px;
    width: 43px;
    height: 43px;
  }

  .arcade-clock strong {
    font-size: 18px;
    margin-top: -4px;
  }

  .arcade-clock small {
    bottom: 7px;
    font-size: 5px;
  }

  .arcade-clock__ring {
    inset: -3px;
  }

  .arcade-combo {
    top: calc(100% + 5px);
    font-size: 12px;
    padding: 3px 8px;
  }

  .arcade-intro {
    top: 46.5%;
    left: 50%;
    width: min(344px, calc(100vw - 30px));
    padding: 25px 22px 19px;
    transform: translate(-50%, -50%) rotate(-.5deg);
  }

  .arcade-intro h3 {
    font-size: clamp(39px, 11vw, 48px);
  }

  .arcade-intro__copy {
    font-size: 11px;
    line-height: 1.8;
  }

  .arcade-prize-hint {
    margin: 11px 0 13px;
    padding: 7px 8px;
  }

  .arcade-prize-hint b {
    font-size: 9.5px;
  }

  .arcade-prize-hint small {
    font-size: 7px;
  }

  .arcade-start {
    min-height: 44px;
    font-size: 11px;
  }

  .arcade-intro__hint {
    margin-top: 8px;
    font-size: 7px;
  }

  .arcade-bunting {
    top: 45px;
    opacity: .45;
  }

  .arcade-wheel {
    display: none;
  }

  .arcade-booth {
    bottom: -10px;
    width: min(416px, 95vw);
    height: 150px;
  }

  .booth-awning {
    left: 4%;
    right: 4%;
    height: 42px;
    border-radius: 20px 20px 5px 5px;
  }

  .booth-awning::after {
    bottom: -8px;
    height: 9px;
    background-size: 24px 9px;
  }

  .booth-awning span {
    bottom: -11px;
    width: 5px;
    height: 5px;
  }

  .booth-awning span::before {
    height: 11px;
  }

  .booth-counter {
    height: 114px;
    border-radius: 7px 7px 0 0;
  }

  .booth-counter::before {
    top: 8px;
    height: 7px;
  }

  .booth-sign {
    top: 19px;
    padding: 3px 10px;
    font-size: 12px;
  }

  .booth-prize {
    top: 20px;
    width: 24px;
    height: 27px;
    font-size: 12px;
  }

  .booth-prize--one { left: 5%; }
  .booth-prize--two { right: 5%; }

  .booth-ticket {
    display: none;
  }

  .arcade-cannon {
    top: -64px;
    width: 198px;
  }

  .arcade-cannon__muzzle {
    width: 5px;
    height: 5px;
  }

  .arcade-footer {
    display: none;
  }

  .arcade-result {
    padding: 12px;
    align-items: center;
  }

  .arcade-result__card {
    width: calc(100vw - 24px);
    max-height: 91svh;
    padding: 18px 16px 17px;
    border-radius: 4px 18px 18px 6px;
  }

  .arcade-result__layout {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .arcade-prize {
    min-height: 0;
    padding: 20px 10px 2px;
    border-radius: 3px 14px 14px 5px;
  }

  .arcade-prize__ribbon {
    top: 9px;
    padding: 4px 9px;
    font-size: 8px;
  }

  .arcade-prize__ribbon i {
    font-size: 5px;
  }

  .prize-duo {
    width: min(72%, 190px);
    max-height: 185px;
  }

  .arcade-prize__caption {
    margin-top: -8px;
    font-size: 18px;
  }

  .arcade-prize__caption small {
    display: none;
  }

  .arcade-result__copy {
    padding: 7px 2px 2px;
    text-align: center;
  }

  .arcade-result__stars {
    right: 2px;
    top: 0;
    font-size: 9px;
  }

  .arcade-result__copy h3 {
    font-size: clamp(39px, 11vw, 49px);
    margin-bottom: 5px;
  }

  .arcade-result__line {
    font-size: 11px;
  }

  .arcade-result__line strong {
    font-size: 19px;
  }

  .arcade-result__score {
    justify-content: center;
    margin-top: 9px;
    padding: 8px 0;
  }

  .arcade-result__score > strong {
    font-size: 36px;
  }

  .arcade-result__score small {
    margin-left: 8px;
  }

  .arcade-result__badge {
    margin-top: 8px;
    font-size: 8.5px;
  }

  .arcade-result__prize-note {
    min-height: 0;
    margin: 7px 0 10px;
    font-size: 9.5px;
  }

  .arcade-result__actions {
    justify-content: center;
  }

  .arcade-result__actions .button {
    min-height: 37px;
    font-size: 10px;
    padding: 8px 13px;
  }

  .arcade-field {
    cursor: default;
  }
}

@media (max-width: 400px) {
  .cloud-portal--game {
    --cloud-w: 52vw;
    top: 58%;
  }

  .cloud-portal--game .cloud-tag__title {
    font-size: 18px;
  }

  .arcade-heading {
    top: 54px;
  }

  .arcade-heading h2 {
    font-size: 32px;
  }

  .arcade-hud {
    top: 98px;
    transform: translateX(-50%) scale(.92);
  }

  .arcade-intro {
    top: 47%;
    width: calc(100vw - 24px);
    padding: 22px 18px 16px;
  }

  .arcade-intro h3 {
    font-size: 37px;
  }

  .arcade-intro__copy {
    font-size: 10.5px;
  }

  .arcade-start {
    min-height: 41px;
    font-size: 10px;
  }

  .arcade-intro__hint {
    display: none;
  }

  .arcade-booth {
    width: 100vw;
    height: 138px;
  }

  .booth-counter {
    height: 105px;
  }

  .booth-awning {
    height: 38px;
  }

  .arcade-cannon {
    top: -56px;
    width: 172px;
  }

  .arcade-prize {
    padding-top: 23px;
  }

  .prize-duo {
    width: min(64%, 168px);
    max-height: 160px;
  }

  .arcade-result__copy h3 {
    font-size: 36px;
  }

  .arcade-result__copy .eyebrow {
    font-size: 7px;
  }

  .arcade-result__score > strong {
    font-size: 32px;
  }

  .arcade-result__card {
    padding: 15px 13px 14px;
  }
}

@media (max-width: 900px) and (orientation: landscape) and (max-height: 540px) {
  .cloud-portal--game {
    --cloud-w: 170px;
    left: 50%;
    margin-left: -85px;
    top: 52%;
    animation-delay: 1.03s;
  }

  .cloud-portal--game .cloud-tag {
    width: 82%;
    padding: 7px 8px 6px;
  }

  .cloud-portal--game .cloud-tag__meta {
    font-size: 5.5px;
  }

  .cloud-portal--game .cloud-tag__title {
    font-size: 17px;
  }

  .cloud-portal--game .cloud-tag__desc {
    display: none;
  }

  .arcade-heading {
    top: 53px;
    left: 18px;
    width: auto;
    text-align: left;
    transform: none;
  }

  .arcade-heading h2 {
    font-size: 29px;
  }

  .arcade-heading .eyebrow,
  .arcade-heading > p:last-child {
    display: none;
  }

  .arcade-hud {
    top: 52px;
    right: 16px;
    transform: scale(.78);
    transform-origin: top right;
  }

  .arcade-intro {
    top: 50%;
    left: 22px;
    width: 280px;
    padding: 15px 18px 13px;
    transform: translateY(-50%) rotate(-.4deg) scale(.85);
  }

  .arcade-intro h3 {
    font-size: 32px;
    margin-bottom: 5px;
  }

  .arcade-intro .eyebrow,
  .arcade-intro__hint {
    display: none;
  }

  .arcade-intro__copy {
    font-size: 9px;
    line-height: 1.6;
  }

  .arcade-prize-hint {
    margin: 7px 0;
    padding: 4px 6px;
  }

  .arcade-prize-hint__icon {
    flex-basis: 40px;
    width: 40px;
    height: 28px;
  }

  .arcade-prize-hint b {
    font-size: 8px;
  }

  .arcade-prize-hint small {
    font-size: 6px;
  }

  .arcade-start {
    min-height: 34px;
    padding: 7px 11px;
    font-size: 9px;
  }

  .arcade-booth {
    width: 340px;
    height: 116px;
    bottom: -8px;
  }

  .booth-awning {
    height: 34px;
  }

  .booth-counter {
    height: 90px;
  }

  .booth-sign {
    top: 14px;
    font-size: 10px;
  }

  .booth-prize {
    top: 15px;
    width: 20px;
    height: 22px;
    font-size: 9px;
  }

  .arcade-cannon {
    top: -48px;
    width: 140px;
  }

  .arcade-footer {
    display: none;
  }

  .arcade-result {
    padding: 10px;
  }

  .arcade-result__card {
    width: min(760px, calc(100vw - 20px));
    max-height: 94svh;
    padding: 12px 18px;
  }

  .arcade-result__layout {
    grid-template-columns: 180px 1fr;
    gap: 13px;
  }

  .arcade-prize {
    min-height: 0;
    padding: 20px 4px 0;
  }

  .prize-duo {
    width: 120px;
    max-height: 120px;
  }

  .arcade-prize__caption {
    font-size: 15px;
  }

  .arcade-result__copy h3 {
    font-size: 34px;
  }

  .arcade-result__score {
    margin-top: 4px;
    padding: 5px 0;
  }

  .arcade-result__score > strong {
    font-size: 30px;
  }

  .arcade-result__badge {
    margin-top: 4px;
  }

  .arcade-result__prize-note {
    margin: 4px 0 6px;
    font-size: 8.5px;
  }

  .arcade-result__actions .button {
    min-height: 32px;
    padding: 5px 10px;
    font-size: 9px;
  }

  .arcade-result__line {
    display: none;
  }
}

/* small particles for the balloon game */
.balloon-shard {
  position: fixed;
  z-index: 31;
  display: block;
  width: var(--shard-w, 7px);
  height: var(--shard-h, 9px);
  border-radius: var(--shard-radius, 50%);
  background: var(--shard-color, #e9c583);
  opacity: .9;
  pointer-events: none;
  animation: balloonShardFly var(--shard-dur, .62s) var(--shard-ease, ease-out) forwards;
}

@keyframes balloonShardFly {
  0% { opacity: .95; transform: translate3d(0, 0, 0) scale(.9) rotate(0deg); }
  100% { opacity: 0; transform: translate3d(var(--shard-dx, 28px), var(--shard-dy, -36px), 0) scale(.25) rotate(var(--shard-spin, 80deg)); }
}

.arcade-result {
  overflow: hidden;
}

.water-stream {
  position: fixed;
  inset: 0;
  z-index: 87;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.water-stream path {
  fill: none;
  stroke: rgba(207, 240, 229, .72);
  stroke-linecap: round;
  filter: drop-shadow(0 0 3px rgba(217, 247, 238, .35));
}

.water-stream path:nth-child(1) {
  stroke-width: 5;
  opacity: .3;
}

.water-stream path:nth-child(2) {
  stroke-width: 2.15;
  opacity: .9;
  stroke: rgba(240, 253, 248, .92);
}

/* ————— sliced watermelon harvest ————— */

.melon-feast {
  position: absolute;
  left: 50%;
  bottom: 4px;
  z-index: 9;
  display: block;
  width: clamp(250px, 23vw, 335px);
  aspect-ratio: 925 / 1000;
  opacity: 0;
  transform: translateX(-50%) scale(.56) rotate(-5deg);
  transform-origin: 50% 100%;
  pointer-events: none;
  transition: opacity .5s ease, transform .95s var(--ease-bounce);
}

.feast-glow {
  position: absolute;
  left: 50%;
  top: 39%;
  width: 105%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 236, 180, .56), transparent 65%);
  transform: translate(-50%, -50%);
  opacity: .55;
  filter: blur(10px);
}

.feast-picture,
.feast-picture img {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: auto;
}

.feast-picture img {
  filter: drop-shadow(0 18px 16px rgba(58, 45, 29, .22));
}

.plant-stage.is-eaten[data-stage="5"] .melon-plant {
  opacity: 0;
  transform: translateX(-50%) scale(.62) rotate(7deg);
}

.plant-stage.is-eaten .plant-art {
  z-index: 8;
}

.plant-stage.is-eaten[data-stage="5"] .melon-feast {
  opacity: 1;
  transform: translateX(-50%) scale(1) rotate(0deg);
}

.plant-stage.is-eating .melon-plant {
  animation: melonWobble .48s ease-in-out;
}

@keyframes melonWobble {
  0%, 100% { transform: translateX(-50%) scale(1) rotate(0deg); }
  22% { transform: translateX(-50%) scale(.985) rotate(-2deg); }
  52% { transform: translateX(-50%) scale(1.015) rotate(2deg); }
  78% { transform: translateX(-50%) scale(1) rotate(-1deg); }
}

.plant-stage.is-eaten .plant-halo {
  opacity: .8;
  animation: haloGlow 5s ease-in-out infinite;
}

.feast-fork {
  position: absolute;
  right: -5%;
  top: -18%;
  z-index: 4;
  display: block;
  width: 23%;
  opacity: 0;
  transform-origin: 55% 88%;
  pointer-events: none;
}

.feast-fork svg {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 5px 5px rgba(67, 50, 34, .18));
}

.melon-feast.is-tasting .feast-fork {
  animation: forkBite .95s var(--ease-bounce) both;
}

@keyframes forkBite {
  0% { opacity: 0; transform: translate(7%, -18%) rotate(26deg) scale(.92); }
  28% { opacity: 1; transform: translate(1%, 1%) rotate(3deg) scale(1); }
  47% { opacity: 1; transform: translate(3%, 8%) rotate(-4deg) scale(1); }
  64% { opacity: .95; transform: translate(5%, 3%) rotate(1deg) scale(1); }
  100% { opacity: 0; transform: translate(10%, -19%) rotate(17deg) scale(.94); }
}

.feast-sparkles {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.feast-heart {
  position: fixed;
  z-index: 89;
  color: #e3a197;
  font-family: var(--serif);
  font-size: var(--heart-size, 18px);
  pointer-events: none;
  animation: feastHeart 1.1s var(--ease-soft) forwards;
}

@keyframes feastHeart {
  0% { opacity: 0; transform: translate(-50%, 0) scale(.55) rotate(-8deg); }
  24% { opacity: .95; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--heart-x, 12px)), var(--heart-y, -90px)) scale(1.08) rotate(7deg); }
}

.harvest-slash {
  position: fixed;
  z-index: 89;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 248, 209, .95) 18%, #e4b76a 48%, rgba(255, 248, 209, .9) 82%, transparent);
  box-shadow: 0 0 13px 4px rgba(255, 235, 174, .55);
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(var(--slash-angle, -25deg)) scaleX(.1);
  animation: harvestSlash .58s var(--ease-soft) forwards;
}

@keyframes harvestSlash {
  0% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--slash-angle, -25deg)) scaleX(.1); }
  28% { opacity: 1; transform: translate(-50%, -50%) rotate(var(--slash-angle, -25deg)) scaleX(.85); }
  62% { opacity: .85; transform: translate(-50%, -50%) rotate(var(--slash-angle, -25deg)) scaleX(1.12); }
  100% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--slash-angle, -25deg)) scaleX(1.3) translateY(8px); }
}

.taste-pop {
  position: fixed;
  z-index: 89;
  color: #4a654b;
  font-family: var(--display);
  font-size: 28px;
  line-height: 1;
  pointer-events: none;
  text-shadow: 0 2px 0 rgba(255, 249, 230, .8), 0 5px 14px rgba(84, 79, 51, .18);
}

.water-button.is-feast {
  background:
    radial-gradient(ellipse at 24% 0, rgba(235, 203, 145, .26), transparent 46%),
    linear-gradient(135deg, #6a6545, #4e573c 58%, #3c4936);
}

@media (max-width: 1120px) {
  .melon-feast {
    width: clamp(230px, 24vw, 300px);
  }
}

@media (max-height: 780px) and (min-width: 901px) {
  .melon-feast {
    width: clamp(220px, 23vw, 280px);
  }
}

@media (max-width: 900px) {
  .melon-feast {
    width: min(54vw, 290px);
  }
}

@media (max-width: 760px) {
  .melon-feast {
    width: min(64vw, 260px);
  }

  .feast-fork {
    width: 25%;
    right: -4%;
  }

  .harvest-slash {
    height: 3px;
  }

  .taste-pop {
    font-size: 23px;
  }
}

@media (max-width: 400px) {
  .melon-feast {
    width: min(66vw, 230px);
  }
}

@media (max-width: 900px) and (orientation: landscape) and (max-height: 540px) {
  .melon-feast {
    width: 205px;
  }

  .feast-fork {
    width: 30%;
  }
}

/* ————— progressive bites from the watermelon plate ————— */

.feast-empty-plate {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: block;
  width: 100%;
  height: auto;
  opacity: 0;
  transform: scale(.7) rotate(-4deg);
  transform-origin: 50% 70%;
  pointer-events: none;
  filter: drop-shadow(0 16px 16px rgba(58, 45, 29, .2));
  transition: opacity .45s ease, transform .92s var(--ease-bounce);
}

.melon-feast.is-empty .feast-picture {
  opacity: 0;
  transform: scale(.97);
  transition: opacity .4s ease, transform .55s ease;
}


.melon-feast.is-empty .feast-empty-plate {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}


.feast-fork {
  right: 2%;
  top: -15%;
  width: 20%;
  z-index: 6;
}

.feast-sparkles { z-index: 7; }

/* The can lifts vertically first, tips clockwise toward the pot, then pours. */
.watering-can.is-pouring {
  animation: canPour 2.65s cubic-bezier(.33, .03, .27, .99) both;
  transform-origin: 52% 80%;
}

@keyframes canPour {
  0% { transform: translate(0, 0) rotate(0deg); }
  9% { transform: translate(0, -18px) rotate(0deg); }
  17% { transform: translate(2px, -28px) rotate(4deg); }
  28% { transform: translate(8px, -33px) rotate(18deg); }
  37% { transform: translate(12px, -34px) rotate(27deg); }
  52% { transform: translate(12px, -34px) rotate(25deg); }
  66% { transform: translate(12px, -34px) rotate(27deg); }
  85% { transform: translate(12px, -33px) rotate(26deg); }
  93% { transform: translate(3px, -11px) rotate(5deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

/* Raise the can a little more overall. */
.watering-can { bottom: 186px; }

@media (max-width: 1120px) {
  .watering-can { bottom: 180px; }
}

@media (max-height: 780px) and (min-width: 901px) {
  .watering-can { bottom: 158px; }
}

@media (max-width: 760px) {
  .watering-can { bottom: 164px; }
}

@media (max-width: 400px) {
  .watering-can { bottom: 150px; }
}

@media (max-width: 900px) and (orientation: landscape) and (max-height: 540px) {
  .watering-can { bottom: 136px; }
}
