@font-face { font-family: 'Grandstander'; src: url('fonts/Grandstander.ttf') format('truetype'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Fredoka'; src: url('fonts/Fredoka.ttf') format('truetype'); font-weight: 300 700; font-display: swap; }
html, body, #root { margin: 0; height: 100%; background: #fdf8e8; }
* { box-sizing: border-box; }
.stage { position: relative; width: 100%; height: 100vh; height: 100dvh; min-height: 640px; overflow: hidden; background: #fdf8e8; isolation: isolate; font-family: 'Fredoka', system-ui, sans-serif; color: #4b3a7a; }
.sky { position: absolute; inset: 0; background: #fdf8e8; }
.bar { position: absolute; z-index: 5; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 16px clamp(16px, 3vw, 44px); }
.logo { font-family: 'Grandstander', sans-serif; font-weight: 900; font-size: clamp(40px, 5vw, 64px); line-height: 1; color: #fff; -webkit-text-stroke: 8px #2c8fe0; paint-order: stroke fill; text-shadow: 0 4px 0 #2c8fe0; letter-spacing: .01em; }
.logo span { display: inline-block; animation: bob 3.6s ease-in-out infinite; animation-delay: calc(var(--i) * -.35s); }
.logo span:nth-child(odd) { color: #ffe45e; }
.logo span:nth-child(3n) { color: #ff8fc0; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-3px) rotate(1.5deg); } }
.btns { display: flex; gap: 12px; }
.round { width: 64px; height: 64px; border-radius: 50%; border: 0; background: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 5px 0 rgba(44,143,224,.35), 0 8px 18px rgba(44,100,180,.25); transition: transform .15s; }
.round.dark { background: #4b3a7a; box-shadow: 0 0 0 5px #fff, 0 8px 18px rgba(44,100,180,.3); }
.round:active { transform: scale(.94); }
.hero { position: absolute; z-index: 3; left: 0; right: 0; top: clamp(96px, 16vh, 150px); text-align: center; padding: 0 16px; pointer-events: none; transition: opacity .5s .15s; }
.is-open .hero { opacity: 0; }
.title { margin: 0; font-family: 'Grandstander', sans-serif; font-weight: 900; font-size: clamp(76px, 15vw, 190px); line-height: .95; color: #ff3d85; -webkit-text-stroke: clamp(8px, 1vw, 14px) #fff; paint-order: stroke fill; text-shadow: 0 .05em 0 #fff, 0 .08em 0 #1d9b64, 0 .11em .14em rgba(20,90,60,.35); }
.soon { margin: .1em 0 0; font-family: 'Grandstander', sans-serif; font-weight: 800; font-size: clamp(32px, 5.4vw, 70px); line-height: 1; color: #fff; -webkit-text-stroke: 10px #1d9b64; paint-order: stroke fill; transform: rotate(-2deg); letter-spacing: .02em; }
.scrim { position: absolute; z-index: 6; inset: 0; background: rgba(80,150,230,.10); opacity: 0; pointer-events: none; transition: opacity .35s; }
.is-open .scrim { opacity: 1; pointer-events: auto; }
.card { position: absolute; z-index: 7; left: 50%; top: clamp(92px, 14vh, 140px); width: min(560px, calc(100% - 40px)); transform: translateX(-50%) scale(.6); opacity: 0; pointer-events: none; transform-origin: 50% 20%; transition: transform .45s cubic-bezier(.3,1.5,.5,1), opacity .25s; }
.is-open .card { transform: translateX(-50%) scale(1); opacity: 1; pointer-events: auto; }
.card-in { background: #fffdf8; border-radius: 44px; padding: clamp(24px, 4vw, 40px) clamp(22px, 4vw, 44px) clamp(24px, 4vw, 36px); text-align: center; box-shadow: 14px 12px 0 #bde9ff, 0 0 0 10px #fff, 0 24px 50px rgba(30,80,160,.3); }
.kicker { margin: 0; font-family: 'Grandstander', sans-serif; font-weight: 800; font-size: clamp(20px, 3vw, 28px); letter-spacing: .02em; text-transform: uppercase; color: #4b3a7a; }
.card h2 { margin: 0 0 .1em; font-family: 'Grandstander', sans-serif; font-weight: 900; font-size: clamp(56px, 9vw, 84px); line-height: 1; color: #ff3d85; text-shadow: 0 4px 0 #ffd0e3; }
.body { margin: .4em 0 0; font-size: clamp(17px, 2.2vw, 21px); line-height: 1.5; font-weight: 400; }
.body.small { font-weight: 600; color: #1d9b64; }
.go { margin-top: 20px; min-height: 56px; padding: 0 34px; border: 0; border-radius: 999px; font-family: 'Grandstander', sans-serif; font-weight: 800; font-size: 22px; color: #fff; background: #1fb870; box-shadow: 0 6px 0 #138a52; cursor: pointer; }
.go:active { transform: translateY(3px); box-shadow: 0 3px 0 #138a52; }
@media (max-width: 700px) { .round { width: 54px; height: 54px; } .card-in { border-radius: 36px; } .hero { top: 100px; } }
@media (max-width: 700px) and (max-height: 760px) { .card { top: 84px; } .body.small { display: none; } .card-in { padding: 20px 20px 22px; } .card h2 { font-size: 52px; } .body { font-size: 16px; } }
.body.short { display: none; }
@media (max-width: 700px), (max-aspect-ratio: 1/1) { .body.long { display: none; } .body.short { display: block; } .card { top: 96px; } .body.small { display: none; } }
@media (prefers-reduced-motion: reduce) { .ch, .logo span { animation: none; } .card { transition: none; } }

.world { position: absolute; inset: 0; }
.backdrop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; display: block; }
.cast { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 58%; pointer-events: none; }
.ch { position: absolute; left: var(--l); bottom: var(--b); height: var(--h); width: auto; max-width: none; transform-origin: 50% 100%; filter: drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff) drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff) drop-shadow(0 10px 8px rgba(10,60,30,.35)); animation: hop 3.8s ease-in-out infinite; animation-delay: calc(var(--d) * -.55s); }
@keyframes hop { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-1.6%) scale(1.012); } }
.c-zing { --l: 1%; --h: 58%; --b: 30%; }
.c-nutty { --l: 11%; --h: 58%; --b: 3%; }
.c-thorn { --l: 25%; --h: 68%; --b: 22%; }
.c-mushie { --l: 55%; --h: 50%; --b: 2%; }
.c-petal { --l: 68%; --h: 70%; --b: 20%; }
.c-berry { --l: 64%; --h: 46%; --b: 1%; }
.c-zesty { --l: 84%; --h: 60%; --b: 3%; }
.c-freckles { --l: 33%; --h: 96%; --b: 2%; z-index: 3; }
@media (max-aspect-ratio: 1/1) {
  .cast { height: 56%; bottom: 1%; }
  .c-zing { --l: -3%; --h: 33%; --b: 52%; }
  .c-thorn { --l: 20%; --h: 42%; --b: 50%; }
  .c-petal { --l: 46%; --h: 40%; --b: 50%; }
  .c-zesty { --l: 74%; --h: 36%; --b: 51%; }
  .c-mushie { --l: 17%; --h: 27%; --b: 1%; }
  .c-nutty { --l: -4%; --h: 36%; --b: 2%; }
  .c-berry { --l: 68%; --h: 32%; --b: 3%; }
  .c-freckles { --l: 30%; --h: 64%; --b: 3%; }
}
@media (min-width: 900px) and (min-aspect-ratio: 5/4) {
  .cast { width: 64%; height: 64%; right: auto; left: 0; transition: left .6s cubic-bezier(.3,1.2,.5,1); }
  .is-closed .cast { left: 18%; }
  .card { left: 81%; top: 50%; width: min(470px, 34vw); transform: translate(-50%, -50%) scale(.6); transform-origin: 50% 50%; }
  .is-open .card { transform: translate(-50%, -50%) scale(1); }
  .hero { top: 11%; }
  .card-in { padding: 28px 30px 28px; } .card h2 { font-size: clamp(52px, 5.4vw, 80px); } .kicker { font-size: clamp(18px, 1.8vw, 26px); }
  .body { font-size: clamp(16px, 1.45vw, 20px); }
  .c-zing { --l: 0%; --h: 42%; --b: 42%; }
  .c-thorn { --l: 18%; --h: 50%; --b: 38%; }
  .c-petal { --l: 52%; --h: 48%; --b: 40%; }
  .c-zesty { --l: 78%; --h: 42%; --b: 36%; }
  .c-nutty { --l: -1%; --h: 42%; --b: 3%; }
  .c-freckles { --l: 28%; --h: 74%; --b: 2%; }
  .c-mushie { --l: 56%; --h: 32%; --b: 2%; }
  .c-berry { --l: 71%; --h: 34%; --b: 2%; }
}

/* v4b: trimmed cast (Freckles, Nutty, Berry) */
.c-nutty { --l: 4%; --h: 64%; --b: 3%; }
.c-berry { --l: 66%; --h: 52%; --b: 2%; }
.c-freckles { --l: 30%; --h: 100%; --b: 2%; }
@media (max-aspect-ratio: 1/1) {
  .c-nutty { --l: -4%; --h: 40%; --b: 4%; }
  .c-berry { --l: 64%; --h: 34%; --b: 4%; }
  .c-freckles { --l: 24%; --h: 70%; --b: 3%; }
}
@media (min-width: 900px) and (min-aspect-ratio: 5/4) {
  .c-nutty { --l: 0%; --h: 52%; --b: 3%; }
  .c-berry { --l: 72%; --h: 42%; --b: 3%; }
  .c-freckles { --l: 24%; --h: 84%; --b: 2%; }
}

/* v5: exact cover scene, characters are part of the art */
.cast { display: none !important; }
.sky { display: none; }
.backdrop { object-position: 50% 15%; }
.hero { left: 17%; right: auto; width: 46%; top: 1.5vh; padding: 0; }
.title { font-size: clamp(60px, 9vw, 150px); -webkit-text-stroke-width: clamp(6px, .7vw, 11px); }
.soon { font-size: clamp(24px, 3.3vw, 52px); -webkit-text-stroke-width: 8px; margin-top: .05em; }
@media (max-aspect-ratio: 1/1) {
  .backdrop { object-position: 28% 50%; }
  .hero { left: 0; right: 0; width: auto; top: 76px; }
  .title { font-size: clamp(56px, 17vw, 120px); }
  .soon { font-size: clamp(24px, 7vw, 48px); }
}

/* v6: locked viewport, single brand, tilted smaller card, centred button */
html, body { position: fixed; inset: 0; width: 100%; overflow: hidden; overscroll-behavior: none; touch-action: none; }
.stage { position: fixed; inset: 0; height: auto; min-height: 0; }
.logo { display: none; }
.bar { justify-content: flex-end; }
.card { width: min(480px, calc(100% - 56px)); transform: translateX(-50%) scale(.6) rotate(-2.5deg); }
.is-open .card { transform: translateX(-50%) scale(.92) rotate(-2.5deg); }
.card-in { padding: clamp(20px, 3vw, 32px) clamp(20px, 3vw, 36px) clamp(22px, 3vw, 30px); }
.card h2 { font-size: clamp(48px, 7vw, 68px); }
.go { display: inline-flex; align-items: center; justify-content: center; line-height: 1; padding: 0 34px 3px; min-height: 54px; }
@media (min-aspect-ratio: 1/1) and (min-width: 701px) {
  .card { width: min(400px, 31vw); transform: translate(-50%, -50%) scale(.6) rotate(-2.5deg); }
  .is-open .card { transform: translate(-50%, -50%) scale(1) rotate(-2.5deg); }
  .card h2 { font-size: clamp(44px, 4.6vw, 66px); }
}
@media (max-height: 560px) { .card { top: 4vh; } .is-open .card { transform: translate(-50%,0) scale(.8) rotate(-2.5deg); } }

/* v7: zoomed-out scene inside a jungle frame */
.world, .world picture { position: absolute; inset: 0; display: block; }
.backdrop { object-fit: cover; object-position: 50% 52%; }
.hero { left: 24%; width: 52%; top: 4vh; }
.title { font-size: clamp(44px, 6.4vw, 110px); }
.soon { font-size: clamp(20px, 2.4vw, 40px); }
@media (max-aspect-ratio: 1/1) {
  .backdrop { object-position: 50% 55%; }
  .hero { left: 0; right: 0; width: auto; top: 14vh; }
  .title { font-size: clamp(52px, 16vw, 110px); }
  .soon { font-size: clamp(22px, 6.4vw, 44px); }
}

/* v8: generated full-bleed plate + individual characters */
.backdrop { object-position: 50% 100%; }
.hero { left: 0; right: 0; width: auto; top: 4vh; text-align: center; padding: 0 16px; }
.title { font-size: clamp(56px, 8.5vw, 140px); }
.soon { font-size: clamp(24px, 3vw, 48px); }
.troupe { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.pc { position: absolute; transition: left .7s cubic-bezier(.3,1.2,.5,1); }
.pc img { display: block; height: 100%; width: auto; animation: sway 4.6s ease-in-out infinite; animation-delay: calc(var(--d) * -1.7s); transform-origin: 50% 100%; position: relative; z-index: 1; }
.pc::after { content: ''; position: absolute; left: 8%; right: 8%; bottom: -3%; height: 9%; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(20,60,10,.55), rgba(20,60,10,0) 70%); z-index: 0; }
@keyframes sway { 0%,100% { transform: translateY(0) rotate(-1.2deg); } 50% { transform: translateY(-1.6%) rotate(1.2deg); } }
.pc-nutty { height: 36vh; bottom: 7vh; left: 6%; }
.pc-freckles { height: 58vh; bottom: 11vh; left: 38%; }
.pc-berry { height: 30vh; bottom: 5vh; left: 72%; }
.is-open .pc-nutty { left: 3%; } .is-open .pc-freckles { left: 24%; } .is-open .pc-berry { left: 52%; }
@media (max-aspect-ratio: 1/1) {
  .hero { top: 12vh; }
  .title { font-size: clamp(52px, 16vw, 120px); }
  .soon { font-size: clamp(22px, 6.4vw, 46px); }
  .pc-nutty { height: 24vh; bottom: 12vh; left: 2%; }
  .pc-freckles { height: 38vh; bottom: 17vh; left: 30%; }
  .pc-berry { height: 20vh; bottom: 5vh; left: auto; right: 3%; }
  .is-open .pc-nutty { left: 2%; } .is-open .pc-freckles { left: 30%; } .is-open .pc-berry { left: auto; }
}
@media (prefers-reduced-motion: reduce) { .pc img { animation: none; } }

/* v9: one family group, shared scale, interacting poses from the cover */
.group { position: absolute; left: 50%; bottom: 7vh; height: 40vh; aspect-ratio: 910 / 660; transform: translateX(-50%); transition: left .7s cubic-bezier(.3,1.2,.5,1); }
.is-open .group { left: 33%; }
.pc { position: absolute; transition: none; height: auto; left: auto; bottom: auto; }
.pc::after { display: block; }
.pc img { height: 100%; width: 100%; }
.pc-nutty { left: 0; bottom: 0; width: 48%; z-index: 3; height: 73.8%; }
.pc-freckles { left: 33%; bottom: 19.7%; width: 47%; height: 80%; z-index: 1; }
.pc-berry { left: 57%; bottom: 0; width: 42.5%; height: 62.7%; z-index: 4; }
.is-open .pc-nutty { left: 0; } .is-open .pc-freckles { left: 33%; } .is-open .pc-berry { left: 57%; }
@media (max-aspect-ratio: 1/1) {
  .group { height: auto; width: 88vw; bottom: 13vh; }
  .is-open .group { left: 50%; }
  .pc-nutty { left: 0; bottom: 0; width: 48%; height: 73.8%; right: auto; }
  .pc-freckles { left: 33%; bottom: 19.7%; width: 47%; height: 80%; }
  .pc-berry { left: 57%; bottom: 0; width: 42.5%; height: 62.7%; right: auto; }
  .is-open .pc-nutty { left: 0; } .is-open .pc-freckles { left: 33%; } .is-open .pc-berry { left: 57%; right: auto; }
}
.group { height: 47vh; bottom: 6vh; }
.pc-freckles, .is-open .pc-freckles { left: 31%; }
.pc-berry, .is-open .pc-berry { left: 59%; }
@media (max-aspect-ratio: 1/1) { .group { height: auto; width: 94vw; bottom: 12vh; } .pc-freckles, .is-open .pc-freckles { left: 31%; } .pc-berry, .is-open .pc-berry { left: 59%; } }
/* v10: zoomed out, meadow grounding */
.group { height: 31vh; bottom: 10vh; }
.pc-nutty { height: 64%; left: 2%; width: 44%; }
.pc-freckles { left: 33%; bottom: 14%; height: 82%; width: 46%; }
.pc-berry { height: 56%; left: 58%; width: 38%; }
@media (max-aspect-ratio: 1/1) { .group { height: auto; width: 82vw; bottom: 17vh; } }
@media (min-aspect-ratio: 1/1) { .group { bottom: 14vh; } }
/* v11: desktop optimisation */
@media (min-aspect-ratio: 1/1) and (min-width: 701px) {
  .group { height: 46vh; bottom: 11vh; }
  .is-open .group { left: 31%; }
  .card { left: 79%; width: min(400px, 28vw, 54vh * 1.1); }
  .card-in { padding: clamp(18px, 3vh, 28px) clamp(18px, 2vw, 28px); border-radius: 36px; }
  .card h2 { font-size: clamp(36px, 4.2vw, 62px); }
  .kicker { font-size: clamp(14px, 1.4vw, 22px); }
  .card .body { font-size: clamp(14px, 1.15vw, 18px); line-height: 1.4; }
  .go { min-height: 46px; font-size: clamp(16px, 1.3vw, 22px); }
}
@media (min-aspect-ratio: 1/1) and (min-width: 701px) { .hero { top: 8vh; } }
/* v12: grounded in grass + a few props */
.pp, .tf { position: absolute; display: block; pointer-events: none; height: auto; }
.tf { z-index: 6; }
.tf-a { left: -2%; bottom: -3.5%; width: 26%; }
.tf-b { left: 30%; bottom: 11%; width: 20%; }
.tf-c { left: 76%; bottom: -3%; width: 20%; }
.tf-d { left: 50%; bottom: 6.5%; width: 17%; }
.pp-coconut { left: 41%; bottom: 0%; width: 8%; z-index: 5; animation: toss 2.6s ease-in-out infinite; transform-origin: 50% 100%; }
.pp-basket { left: 86%; bottom: -2%; width: 17%; z-index: 5; }
.pp-hibiscus { left: -5%; bottom: 2%; width: 8%; z-index: 5; }
.pp-butterfly { left: 80%; top: -4%; width: 8%; z-index: 7; animation: flit 5s ease-in-out infinite; }
@keyframes toss { 0%,100% { transform: translateY(0) rotate(0); } 45% { transform: translateY(-120%) rotate(160deg); } 60% { transform: translateY(-110%) rotate(190deg); } }
@keyframes flit { 0%,100% { transform: translate(0,0) rotate(-6deg); } 50% { transform: translate(-40%,-30%) rotate(8deg); } }
@media (prefers-reduced-motion: reduce) { .pp { animation: none; } }
.tf { -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 100%); mask-image: linear-gradient(to bottom, #000 62%, transparent 100%); }
.tf-a { width: 21%; left: 0%; bottom: -1%; } .tf-c { width: 17%; left: 78%; bottom: -1%; }
.tf-b { width: 16%; left: 33%; bottom: 12%; } .tf-d { width: 14%; left: 51%; bottom: 7%; }
.pp-coconut { width: 9%; } .pp-basket { width: 19%; left: 87%; }
@media (min-aspect-ratio: 1/1) and (min-width: 701px) { .group { height: 50vh; bottom: 12vh; } }
@media (max-aspect-ratio: 1/1) { .group { width: 92vw; bottom: 16vh; } }
@media (max-aspect-ratio: 1/1) { .group { width: 90vw; } .pp-basket { left: 80%; width: 17%; } .pp-hibiscus { left: -3%; } }
/* v13: desktop-only refinements */
.pp-butterfly img { display: block; width: 100%; height: auto; }
@media (min-aspect-ratio: 1/1) and (min-width: 701px) {
  .group { height: 56vh; left: 52%; bottom: 12vh; }
  .is-open .group { left: 37%; }
  .pp-coconut { left: 39%; bottom: 1%; width: 8%; animation: roll 7s cubic-bezier(.45,.05,.4,1) infinite; transform-origin: 50% 50%; }
  @keyframes roll {
    0%, 12% { transform: translateX(0) rotate(0deg); }
    38% { transform: translateX(-170%) rotate(-205deg); }
    38.1%, 58% { transform: translateX(-170%) rotate(-205deg); }
    88% { transform: translateX(0) rotate(0deg); }
    100% { transform: translateX(0) rotate(0deg); }
  }
  .pp-butterfly { left: 70%; top: -2%; width: 7%; animation: wander 26s linear infinite; }
  .pp-butterfly img { animation: flap .32s ease-in-out infinite; transform-origin: 50% 55%; }
  @keyframes flap { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(.28); } }
  @keyframes wander {
    0% { transform: translate(0vw,0vh) rotate(8deg); animation-timing-function: ease-in-out; }
    9% { transform: translate(-6vw,-4vh) rotate(-14deg); animation-timing-function: ease-in-out; }
    16% { transform: translate(-10vw,1vh) rotate(10deg); animation-timing-function: ease-out; }
    22% { transform: translate(-10.6vw,.6vh) rotate(4deg); }
    30% { transform: translate(-10.2vw,1.2vh) rotate(-3deg); animation-timing-function: ease-in-out; }
    42% { transform: translate(-2vw,-7vh) rotate(18deg); animation-timing-function: ease-in-out; }
    52% { transform: translate(5vw,-3vh) rotate(-12deg); animation-timing-function: ease-in-out; }
    60% { transform: translate(9vw,-8vh) rotate(14deg); animation-timing-function: ease-in-out; }
    68% { transform: translate(8vw,-4vh) rotate(-8deg); animation-timing-function: ease-out; }
    74% { transform: translate(8.4vw,-3.6vh) rotate(2deg); }
    82% { transform: translate(8vw,-4vh) rotate(-4deg); animation-timing-function: ease-in-out; }
    92% { transform: translate(3vw,-2vh) rotate(10deg); animation-timing-function: ease-in-out; }
    100% { transform: translate(0vw,0vh) rotate(8deg); }
  }
}
@media (prefers-reduced-motion: reduce) { .pp-butterfly img { animation: none; } .pp-butterfly, .pp-coconut { animation: none !important; } }
/* v13b: props sit above the grass, contact shadows, natural motion */
.pp-coconut img { display: block; width: 100%; height: auto; }
.pp-basket, .pp-hibiscus { filter: drop-shadow(0 .5vh .35vh rgba(20,60,10,.4)); }
.pp-hibiscus { transform-origin: 50% 90%; }
@media (min-aspect-ratio: 1/1) and (min-width: 701px) {
  .pp-coconut, .pp-basket, .pp-hibiscus { z-index: 8; }
  .tf-d { display: none; }
  .pp-coconut { left: 40%; bottom: 1%; width: 8%; animation: roll-x 8s cubic-bezier(.5,0,.35,1) infinite; }
  .pp-coconut img { animation: roll-r 8s cubic-bezier(.5,0,.35,1) infinite; }
  .pp-coconut::after { content: ''; position: absolute; left: 6%; right: 2%; bottom: -6%; height: 22%; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(20,60,10,.5), rgba(20,60,10,0) 70%); z-index: -1; }
  .pp-hibiscus { animation: sway2 5s ease-in-out infinite; }
  @keyframes roll-x { 0%, 15% { transform: translateX(0); } 40%, 58% { transform: translateX(90%); } 85%, 100% { transform: translateX(0); } }
  @keyframes roll-r { 0%, 15% { transform: rotate(0deg); } 40%, 58% { transform: rotate(110deg); } 85%, 100% { transform: rotate(0deg); } }
  @keyframes sway2 { 0%, 100% { transform: rotate(-2.5deg); } 50% { transform: rotate(2.5deg); } }
}

/* mobile coconut: rests on the grass and rolls gently, ends upright (no toss) */
@keyframes roll-xm { 0%, 15% { transform: translateX(0); } 40%, 58% { transform: translateX(70%); } 85%, 100% { transform: translateX(0); } }
@keyframes roll-rm { 0%, 15% { transform: rotate(0deg); } 40%, 58% { transform: rotate(100deg); } 85%, 100% { transform: rotate(0deg); } }
@media (max-aspect-ratio: 1/1), (max-width: 700px) {
  .pp-coconut { z-index: 8; bottom: 1%; transform-origin: 50% 50%; animation: roll-xm 8s cubic-bezier(.5,0,.35,1) infinite; }
  .pp-coconut img { animation: roll-rm 8s cubic-bezier(.5,0,.35,1) infinite; }
  .pp-coconut::after { content: ''; position: absolute; left: 6%; right: 2%; bottom: -6%; height: 22%; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(20,60,10,.5), rgba(20,60,10,0) 70%); z-index: -1; }
}
@media (prefers-reduced-motion: reduce) { .pp-coconut, .pp-coconut img { animation: none !important; } }

/* mobile: cast (Freckles' head) sits in front of the pop-up card */
@media (max-aspect-ratio: 1/1) { .troupe { z-index: 8; } }
