/* Cream, mint and a little peach; the character remains the focus. */
.welcome-screen{background:#faf8f1}
.welcome-orbits i:nth-child(1){background:#e0f0e8}
.welcome-orbits i:nth-child(2){background:#f5e0d9}
.welcome-orbits i:nth-child(3){background:#f3edcc}
.welcome-orbits::after{border-color:#dfc36b}
.welcome-brand{color:#635b5c}
.welcome-eyebrow{color:#738b7c}
.welcome-line{color:#7d7470}
.welcome-music-note,.welcome-ground{color:#8a857a}
.welcome-copy .playful>span:nth-child(3n+1){color:#7963b6}
.welcome-copy .playful>span:nth-child(3n+2){color:#ca8065}
.welcome-copy .playful>span:nth-child(3n){color:#4f9586}
.welcome-enter{background:#7963b6;box-shadow:0 10px 24px #7963b61a}
.welcome-enter:hover{background:#6c56a7}
.welcoming .music-toggle{background:#fffdf8e8;border-color:#e7e0d4;color:#82796f}
.welcoming .music-bars i{background:#9380b5}
.zhan-shadow{background:#ad916327;animation-duration:8s}
.welcome-screen .zhan-spark{color:#c4a253}
.zhan-heart{color:#d59b88}
.zhan-breath{animation:character-breathe 8s ease-in-out infinite;transform-origin:50% 82%}
.mascot-touch{position:absolute;inset:0;background:transparent;padding:0;border:0;cursor:pointer;border-radius:46%;touch-action:manipulation}
.mascot-touch:focus-visible{outline:2px dashed #a595c8;outline-offset:-12px}
.mascot-puppet{overflow:visible;pointer-events:none}
.mascot-head{transform-box:view-box;transform-origin:53.7% 52.4%;animation:character-look 14s ease-in-out infinite}
.heart-light{opacity:.32;transform-box:view-box;transform-origin:53.6% 57%;animation:heart-warmth 7s ease-in-out infinite;pointer-events:none}
.mascot-reply{position:absolute;top:18%;right:0;pointer-events:none;font-family:'Studio Joy',sans-serif;font-size:25px;color:#bc8269;opacity:0;transform:translateY(10px) rotate(7deg);transition:opacity .65s,transform 1s;white-space:nowrap}
.mascot-hint{position:absolute;bottom:1%;left:0;right:0;text-align:center;font-size:11px;letter-spacing:1px;color:#a49483;pointer-events:none}
.is-greeting .mascot-head{animation:character-hello 3.2s ease-in-out both}
.is-greeting .heart-light{animation:heart-greeting 3.2s ease-in-out both}
.is-greeting .mascot-reply{opacity:1;transform:translateY(0) rotate(-5deg)}
.is-greeting .zhan-heart{animation:character-heart 3.2s ease-out both}
.welcome-motion{position:absolute;right:clamp(25px,5vw,80px);top:36px;z-index:4;width:30px;height:30px;border:1px solid #d9d1c5;border-radius:50%;background:transparent;color:#9b8e7c;font-size:12px;display:grid;place-items:center}
.paused .zhan-breath,.paused .mascot-head,.paused .stitch-bulb,.paused .heart-light{animation-play-state:paused!important}
.paused .is-greeting .mascot-head{animation:none;transform:none}
@keyframes character-breathe{0%,100%{transform:translateY(0) scale(1)}50%{transform:translateY(-4px) scale(1.008,1.013)}}
@keyframes character-look{0%,100%{transform:rotate(0deg)}25%{transform:rotate(-1.2deg) translateY(2px)}55%{transform:rotate(.9deg) translateY(-2px)}80%{transform:rotate(-.4deg)}}
@keyframes character-hello{0%,100%{transform:rotate(0deg)}25%{transform:rotate(-2.2deg) translateY(4px)}55%{transform:rotate(1.8deg) translateY(1px)}80%{transform:rotate(-.6deg) translateY(-2px)}}
@keyframes heart-warmth{0%,100%{opacity:.25;transform:scale(.98)}50%{opacity:.65;transform:scale(1.04)}}
@keyframes heart-greeting{0%,100%{opacity:.35;transform:scale(1)}40%{opacity:.95;transform:scale(1.09)}70%{opacity:.65;transform:scale(1.04)}}
@keyframes character-heart{0%{opacity:0;transform:translateY(12px) scale(.8)}40%{opacity:.8;transform:translateY(-8px) scale(1.05)}100%{opacity:0;transform:translateY(-42px) scale(1.1)}}
@media(max-width:600px){.mascot-reply{top:17%;right:10%;font-size:19px}.mascot-hint{bottom:-1%;font-size:9px}.welcome-motion{top:22px;right:24px;width:27px;height:27px}}
@media(max-height:600px) and (max-width:600px){.welcome-ground{background:#faf8f1}.mascot-hint{bottom:-4%}.mascot-reply{top:9%;font-size:17px}.welcome-motion{top:17px}}
@media(prefers-reduced-motion:reduce){.mascot-head,.stitch-bulb,.heart-light{animation:none!important;transform:none}.stitch-bulb{opacity:.65}.heart-light{opacity:.4}.mascot-reply{transition:none}.is-greeting .stitch-bulb{opacity:.9}.is-greeting .heart-light{opacity:.7}.is-greeting .zhan-heart{opacity:.5}}

/* Small stationary glows sit on individual stitches; no connecting light paths. */
.stitch-lights{pointer-events:none}
.stitch-bulb{opacity:.65;animation:stitch-breathe 8s ease-in-out infinite;animation-delay:var(--bulb-delay)}
.stitch-core{opacity:.85}
.is-greeting .stitch-bulb{animation:stitch-greeting 3.2s ease-in-out both}
@keyframes stitch-breathe{0%,100%{opacity:.28}50%{opacity:.9}}
@keyframes stitch-greeting{0%,100%{opacity:.6}40%,65%{opacity:1}}
@media(prefers-reduced-motion:reduce){.stitch-bulb{animation:none!important;opacity:.65}}
