
/* A little more colour, a big outdoor celebration. */
#game:not(.is-finished){background-color:#fff}#game[data-world="find"] .play-choice{background:linear-gradient(160deg,#fff 35%,color-mix(in srgb,var(--card-hue),white 45%));border-color:var(--card-hue)}
.star-trail span{--star:#f45870;color:color-mix(in srgb,var(--star),white 62%);display:inline-block;transform:rotate(-9deg);text-shadow:0 2px 0 #fff}.star-trail span:nth-child(2),.finish-stars span:nth-child(2){--star:#f8bd32;transform:rotate(9deg)}.star-trail span:nth-child(3),.finish-stars span:nth-child(3){--star:#45bfa3;transform:rotate(-6deg)}.star-trail span:nth-child(4),.finish-stars span:nth-child(4){--star:#6b9de9;transform:rotate(9deg)}.star-trail span:nth-child(5),.finish-stars span:nth-child(5){--star:#a776da;transform:rotate(-8deg)}.star-trail .earned{color:var(--star);filter:drop-shadow(0 2px 0 #00000013);animation:rainbow-star .5s ease-out}.finish-stars{display:flex;justify-content:center;gap:8px}.finish-stars span{--star:#f45870;color:var(--star);display:inline-block;text-shadow:0 3px #fff;animation:rainbow-star .6s ease-out both}.finish-stars span:nth-child(2){animation-delay:.1s}.finish-stars span:nth-child(3){animation-delay:.2s}.finish-stars span:nth-child(4){animation-delay:.3s}.finish-stars span:nth-child(5){animation-delay:.4s}
#game .replay-voice{background:#ef596d;box-shadow:0 5px #d73b5340}.choice-tick{color:#ef5875}.mission-strip{background:#fff2d6;color:#8a5c44;border:2px solid #ffe4a0}.help-choice{background:#ffd963;color:#88552d}.garden-target>span{color:#ef5b70}.garden-title h2{color:#d95169}.target-dots i.filled:nth-child(3n+1){background:#f2657c}.target-dots i.filled:nth-child(3n+2){background:#ecba38}.target-dots i.filled:nth-child(3n){background:#67bda1}.water-button{background:#ffda64;color:#744e2b;box-shadow:0 6px #e7b846}.garden-flower:nth-child(4n+1) svg g{fill:#f47b96}.learn-letter,.letter-match-model{color:#ed5e78}.learn-letter small{color:#54bfa9}.learn-controls button{background:#ec6279}.letter-match-choices button:first-child{background:#ffd2d8;color:#ad4257;box-shadow:0 6px #e9a5b0}.spell-keys button:first-child{background:#ffb9c6;box-shadow:0 6px #df8c9f}.choice-word{color:#694664}
#game.is-finished{background:#ccf1fb}#game.is-finished #gamebody{width:100%;max-width:none;isolation:isolate;grid-template-rows:auto minmax(0,1fr)}#game.is-finished .play-scenery{display:none}.celebration-scene{position:absolute;inset:0;z-index:-1;background:#d1f3ff url('kids-celebration-garden.svg') center bottom/cover no-repeat;overflow:hidden;pointer-events:none}.party-cloud{position:absolute;width:130px;height:40px;background:#fff;border-radius:70px;filter:drop-shadow(0 5px #a4d6e629);animation:party-cloud-drift 14s ease-in-out infinite alternate}.party-cloud:before,.party-cloud:after{content:'';position:absolute;border-radius:50%;background:#fff;width:65px;height:65px;bottom:6px;left:17px}.party-cloud:after{width:48px;height:48px;left:68px;bottom:5px}.cloud-a{left:8%;top:17%;transform:scale(1.2)}.cloud-b{right:10%;top:27%;animation-delay:-5s}.cloud-c{left:42%;top:8%;width:90px;opacity:.85;animation-delay:-9s}.is-finished .play-toolbar{width:min(100%,900px);margin:0 auto}.is-finished .play-finish{align-self:center;justify-self:center;width:min(94%,480px);padding:20px 20px 22px;border:3px solid #ffffffd9;border-radius:42px;background:#ffffffc9;box-shadow:0 12px 40px #47848412;backdrop-filter:blur(3px);gap:10px;max-height:100%}.is-finished .play-finish h2{color:#ed5369;font-size:clamp(30px,5vw,46px);text-shadow:0 3px #fff}.is-finished #dance-buddy{height:clamp(90px,23vh,200px);max-width:220px;object-fit:contain}.is-finished #dance-buddy.dancing{animation:party-wiggle .65s ease-in-out infinite}.is-finished .dance-button{background:#ef596d;color:white;box-shadow:0 5px #ce3d51;border:2px solid #fff;padding:12px 22px;font-size:20px;border-radius:24px}.is-finished .replay-game{background:#ffd86a;color:#795728}.is-finished .home-game{background:#dcf2e5;color:#42785f}.is-finished .movement-cue{color:#5d6e63}.confetti i:nth-child(3n){border-radius:50%}.confetti{z-index:10;pointer-events:none}
@keyframes party-wiggle{0%,100%{transform:translateY(0) rotate(-9deg) scale(1)}25%{transform:translateY(-9px) rotate(5deg) scale(1.04)}50%{transform:translateY(0) rotate(9deg) scale(1)}75%{transform:translateY(-7px) rotate(-5deg) scale(1.03)}}@keyframes party-cloud-drift{from{translate:-15px 0}to{translate:30px 7px}}@keyframes rainbow-star{0%{scale:.65}65%{scale:1.2}100%{scale:1}}
@media(max-width:600px){.is-finished .play-finish{padding:16px 12px;border-radius:32px;width:92%;margin-top:-35px}.celebration-scene{background-size:auto 100%;background-position:25% bottom}.is-finished .finish-stars{font-size:30px}.cloud-b{right:-20px}.is-finished .dance-button{font-size:18px}.is-finished .finish-actions button{min-height:46px}.is-finished .movement-cue{font-size:14px}}@media(max-height:650px){.is-finished .play-finish{padding:10px 15px;gap:6px}.is-finished #dance-buddy{height:17vh}.is-finished .play-finish h2{font-size:29px;margin:0}.is-finished .dance-button{min-height:44px;font-size:16px;padding:8px 14px}.is-finished .finish-stars{font-size:25px}.is-finished .movement-cue{margin:5px 0}}@media(orientation:landscape) and (max-height:550px){.is-finished .play-finish{width:min(85%,650px);margin:0;grid-template-columns:120px 1fr;padding:8px 25px;gap:5px 22px}.is-finished #dance-buddy{height:120px;width:120px}.is-finished .finish-stars{font-size:23px}.is-finished .movement-cue{font-size:13px}.is-finished .dance-button{font-size:15px}.is-finished .play-finish h2{font-size:28px}}
@media(prefers-reduced-motion:reduce){.party-cloud,.is-finished #dance-buddy.dancing,.star-trail .earned,.finish-stars span{animation:none!important}}.reduced .party-cloud,.reduced .is-finished #dance-buddy.dancing,.reduced .finish-stars span{animation:none!important}

@media(max-width:600px) and (min-height:651px){.celebration-scene{background-size:auto 78%;background-position:left bottom}.is-finished .play-finish{margin-top:-125px}.is-finished #dance-buddy{height:18vh}}

/* Larger rainbow progress and celebration stars. */
#game .star-trail{font-size:36px;gap:3px}#game.is-finished .finish-stars{font-size:56px;gap:10px;line-height:1.1}
@media(max-width:600px){#game .star-trail{font-size:32px;gap:1px}#game.is-finished .finish-stars{font-size:44px;gap:8px}}
@media(max-width:360px){#game .star-trail{font-size:28px;gap:0}#game.is-finished .finish-stars{font-size:39px;gap:6px}}
@media(max-height:550px) and (orientation:landscape){#game .star-trail{font-size:30px}#game.is-finished .finish-stars{font-size:36px;gap:8px}}

/* Find starts in Maya's garden: one friend, one word, time to listen. */
#game.is-teaching{background:#d1f3ff}
#game.is-teaching #gamebody{position:relative;isolation:isolate;width:100%;max-width:none;min-height:100%;grid-template-rows:auto minmax(0,1fr)}
.is-teaching .play-toolbar{width:min(100%,900px);margin:0 auto;position:relative;z-index:2;justify-content:space-between}
.teach-stage{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:0;padding:15px 12px 70px;gap:16px}
.teach-progress{display:flex;gap:12px;background:#ffffffbe;padding:12px 18px;border-radius:30px}
.teach-progress span{width:12px;height:12px;border-radius:50%;background:#cbbddd}
.teach-progress .current{background:#ef607b;box-shadow:0 0 0 5px #fff;transform:scale(1.15)}
.teach-friend{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;background:transparent;border:0;cursor:pointer;padding:15px;min-width:min(75vw,420px);color:#654575;animation:teach-arrive 1s cubic-bezier(.2,.7,.2,1) both}
.teach-art{display:flex;align-items:center;justify-content:center;width:clamp(180px,42vh,360px);height:clamp(180px,42vh,360px);filter:drop-shadow(0 14px 6px #376d4225)}
#game .teach-art svg{width:100%;height:100%;max-width:none;max-height:none}
#game .teach-art .fruit-art{font-size:clamp(140px,30vh,260px)}
#game .teach-art .paint-drop{width:180px;height:200px}
.teach-name{font-size:clamp(36px,7vw,64px);font-weight:900;background:#fffdf3;border:3px solid white;border-radius:28px;padding:5px 28px;box-shadow:0 7px 0 #ead8a3}
.teach-speaker{position:absolute;right:5%;bottom:0;background:#ffda69;border:4px solid white;border-radius:50%;width:56px;height:56px;display:grid;place-items:center;font-size:25px}
.teach-maya{position:absolute;width:clamp(75px,15vw,130px);height:auto;bottom:0;left:5%;filter:drop-shadow(0 6px 0 #00000010)}
.is-teaching .audio-status{min-height:24px;background:#ffffffc9;border-radius:15px;color:#654575}
@keyframes teach-arrive{0%{opacity:0;transform:translateX(-65vw) rotate(-8deg) scale(.75)}70%{opacity:1;transform:translateX(12px) rotate(3deg) scale(1.03)}100%{transform:translateX(0) rotate(0) scale(1)}}
@media(max-width:600px){.teach-stage{padding-bottom:65px}.teach-art{width:min(72vw,34vh);height:min(72vw,34vh)}.teach-name{font-size:40px}.teach-maya{bottom:8px}.is-teaching .celebration-scene{background-size:auto 100%;background-position:25% bottom}}
@media(max-height:500px) and (orientation:landscape){.teach-stage{padding:0;gap:4px}.teach-art{width:150px;height:150px}.teach-name{font-size:28px}.teach-progress{position:absolute;left:15%;top:20px}.teach-friend{padding:0}.teach-maya{width:85px}.teach-speaker{right:-30px}.teach-art .fruit-art{font-size:130px!important}}
@media(prefers-reduced-motion:reduce){.teach-friend{animation:none!important}}.reduced .teach-friend{animation:none!important}

/* Fit the whole landscape; teaching subjects live in the garden. */
#game.is-teaching #gamebody{height:100%;min-height:0;overflow:hidden;display:grid;grid-template-rows:auto minmax(0,1fr);padding-bottom:0}
.is-teaching .star-trail{display:none!important}
#game .scene-teaching{display:block;position:relative;width:100%;height:100%;min-height:0;padding:0;overflow:hidden;background:linear-gradient(#c3eeff,#eafaff 65%,#a7dca1)}
.scene-teaching .teach-progress{position:absolute;top:12px;left:24px;z-index:3}
.teach-caption{position:absolute;top:12%;left:8%;z-index:3;display:flex;align-items:center;gap:16px;background:#fffdf1e8;border:3px solid white;padding:8px 24px;border-radius:28px;box-shadow:0 6px #ddcda54d}
.teach-caption h2{font-size:clamp(30px,5vw,52px);margin:0;text-transform:lowercase;color:#654575}
.teaching-landscape{position:absolute;width:min(100%,1100px,calc((100dvh - 140px)*1.5));aspect-ratio:3/2;max-height:none;left:50%;bottom:0;transform:translateX(-50%);container-type:inline-size}
.teaching-world{position:absolute;inset:0;background:url('kids-celebration-garden.svg') center bottom/100% 100% no-repeat}
#game .scene-teaching .teach-friend{position:absolute;display:block;padding:0;border:0;background:none;min-width:0;min-height:0;gap:0;z-index:2;animation:none;touch-action:manipulation}
#game .scene-teaching .teach-art{width:100%;height:100%;filter:drop-shadow(0 6px 3px #376d4220)}
#game .scene-teaching .teach-art svg{width:100%;height:100%;display:block;overflow:visible}
#game .scene-teaching .teach-art .fruit-art{font-size:clamp(48px,14cqw,130px);line-height:1}
#game .scene-teaching .ground-animal{width:32%;height:26%;left:30%;bottom:8%;animation:garden-walk-in 3s ease-out both}
.full-animal .walk-leg{transform-box:fill-box;transform-origin:50% 0;animation:garden-step .55s ease-in-out 6 alternate}
.full-animal .leg-1,.full-animal .leg-3{animation-direction:alternate-reverse}
.full-animal .walk-tail{transform-box:fill-box;transform-origin:100% 100%;animation:garden-tail 1.2s ease-in-out infinite alternate}
#game .scene-teaching .hanging-fruit{width:15%;height:22%;left:67%;bottom:19%;transform-origin:50% 0;animation:fruit-sway 3s ease-in-out infinite alternate}
.teaching-vine{position:absolute;width:26%;height:34%;right:9%;bottom:13%;z-index:1}
#game .scene-teaching .picnic-fruit{width:18%;height:22%;left:43%;bottom:8%;animation:scene-pop .7s ease-out both}
.picnic-mat{position:absolute;left:38%;bottom:7%;width:29%;height:13%;background:repeating-conic-gradient(#ed8fa5 0 25%,#fff3d6 0 50%) 0/24px 24px;border-radius:50%;transform:skewX(-12deg)}
#game .scene-teaching .sky-friend{width:22%;height:25%;right:35%;top:8%;animation:sky-drift 5s ease-in-out infinite alternate}
#game .scene-teaching .distant-friend{width:28%;height:30%;left:38%;top:27%;animation:scene-pop 1s ease-out both}
#game .scene-teaching .ground-object{width:22%;height:26%;left:44%;bottom:7%;animation:scene-pop .8s ease-out both}
#game .scene-teaching .garden-sign{width:19%;height:25%;left:40%;bottom:16%;animation:scene-pop .8s ease-out both;background:#fff8e7;border:5px solid #ba8d63;border-radius:20px;padding:12px}
.garden-sign:after{content:'';position:absolute;top:100%;height:35%;width:9px;background:#ba8d63;left:48%;z-index:-1}
#game .scene-teaching .paint-drop{width:75%;height:80%;border-radius:50% 50% 45% 45%}
.scene-teaching .teach-maya{width:75px;left:3%;bottom:1%;z-index:3}
.scene-teaching .audio-status{position:absolute;left:20%;right:20%;bottom:0;z-index:4;text-align:center}
@keyframes garden-walk-in{from{left:2%;opacity:0}15%{opacity:1}to{left:30%}}
@keyframes garden-step{from{transform:rotate(-16deg)}to{transform:rotate(16deg)}}
@keyframes garden-tail{from{transform:rotate(-8deg)}to{transform:rotate(8deg)}}
@keyframes fruit-sway{from{transform:rotate(-5deg)}to{transform:rotate(5deg)}}
@keyframes sky-drift{from{transform:translateX(-10px)}to{transform:translateX(12px)}}
@keyframes scene-pop{from{opacity:0;scale:.85}to{opacity:1;scale:1}}
@media(max-width:600px){.teaching-landscape{width:100%;max-height:none;bottom:7%;aspect-ratio:3/2}.scene-teaching .teach-progress{top:14px;left:18px}.teach-caption{top:18%;left:8%;padding:7px 20px}.scene-teaching .teach-maya{width:60px}.scene-teaching:before{content:'☁';position:absolute;font-size:95px;color:white;right:5%;top:27%;opacity:.85}.scene-teaching .audio-status{bottom:1%}}
@media(max-height:500px) and (orientation:landscape){.teaching-landscape{width:auto;height:100%;max-height:100%;aspect-ratio:3/2}.teach-caption{top:24%;left:3%;padding:5px 12px}.teach-caption h2{font-size:28px}.scene-teaching .teach-progress{left:12px;top:5px}.scene-teaching .teach-maya{width:55px}}
@media(prefers-reduced-motion:reduce){#game .scene-teaching *,#game .scene-teaching .teach-friend{animation:none!important}}.reduced .scene-teaching *{animation:none!important}

/* A gentle step closer: house and tree remain inside the mobile frame. */
#game .scene-teaching .teaching-world{background-size:108% 108%;background-position:50% 100%}
@media(max-width:600px){#game .scene-teaching .teaching-landscape{bottom:5%;width:100%;aspect-ratio:3/2}#game .scene-teaching .ground-animal{width:36%;height:29%}#game .scene-teaching .hanging-fruit{width:18%;height:25%}#game .scene-teaching .ground-object{width:25%;height:29%}}
.animal-calling .full-animal{animation:animal-call-bob .45s ease-in-out infinite alternate}
@keyframes animal-call-bob{from{transform:translateY(0)}to{transform:translateY(-4px)}}
@media(prefers-reduced-motion:reduce){.animal-calling .full-animal{animation:none!important}}

#game.is-intro{background:#d1f3ff}
#game.is-intro #gamebody{position:relative;isolation:isolate;max-width:none;width:100%;height:100%;display:grid;grid-template-rows:auto 1fr}
.is-intro .play-toolbar{position:relative;z-index:2}.is-intro .star-trail{visibility:hidden}
.is-intro .celebration-scene{background-size:100% auto;background-position:center bottom}
.find-intro{align-self:center;justify-self:center;text-align:center;display:flex;flex-direction:column;align-items:center;gap:10px;padding:18px;width:min(92%,500px);position:relative;z-index:1;background:#ffffffbd;border:3px solid #fff;border-radius:38px;margin-bottom:10vh}
.find-intro h2{font-size:clamp(28px,6vw,44px);margin:0;color:#754b9b}.find-intro p{margin:0;color:#d74f74;font-weight:800;font-size:22px}
.intro-maya{width:clamp(110px,22vh,200px);height:auto;object-fit:contain;animation:intro-hello 1.8s ease-in-out infinite alternate}
.intro-wave{font-size:40px}.intro-notes{color:#e95f83;font-size:30px;letter-spacing:15px;opacity:0}
.intro-dancing .intro-notes{opacity:1}.intro-dancing .intro-maya{animation:party-wiggle .8s ease-in-out infinite}
.intro-skip{background:#ffda70;color:#70533a;border:3px solid white;border-radius:23px;padding:11px 20px;font:inherit;font-weight:800;min-height:48px;cursor:pointer}
@keyframes intro-hello{from{transform:rotate(-4deg)}to{transform:rotate(4deg)}}
@media(max-height:550px){.find-intro{margin:0;padding:8px;gap:3px}.intro-wave{display:none}.intro-maya{width:85px}.find-intro h2{font-size:25px}.find-intro p{font-size:18px}.intro-notes{font-size:20px}}
@media(prefers-reduced-motion:reduce){.intro-maya{animation:none!important}}.reduced .intro-maya{animation:none!important}
