#animal-song{position:fixed;inset:0;width:100%;height:100dvh;max-width:none;max-height:none;margin:0;border:0;padding:max(12px,env(safe-area-inset-top)) 16px max(16px,env(safe-area-inset-bottom));box-sizing:border-box;background:linear-gradient(#fff,#fff9e9);color:#654b85;overflow:auto}#animal-song[open]{display:flex;flex-direction:column}#animal-song header,#animal-song footer{display:flex;gap:14px;align-items:center;justify-content:space-between;width:min(100%,750px);margin:auto}#animal-song button{border:0;border-radius:22px;background:#efdefa;color:#684d91;min-width:54px;min-height:54px;font-size:26px;cursor:pointer}#animal-song main{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:0}.as-art{width:min(75vw,48dvh,430px);aspect-ratio:1}.as-art svg,.as-art img{width:100%;height:100%;object-fit:contain}.as-caption{font-family:'Comic Sans MS','Chalkboard SE',sans-serif;font-size:clamp(25px,6vw,44px);font-weight:800;text-align:center;min-height:3em;padding:12px;max-width:90%}.as-caption span{display:inline-block;color:#7951ae;transition:transform .15s}.as-caption span:nth-child(2){color:#e56195}.as-caption span:nth-child(3){color:#239c9e}.as-caption span:last-child{color:#e77e36}.as-caption .as-word-active{transform:translateY(-8px) scale(1.12);text-shadow:0 4px #ffe5a4}.as-seek{flex:1;min-width:60px;accent-color:#ac77ce}.as-round{font-size:14px}.as-creature{transform-origin:140px 250px}.as-playing .as-creature{animation:as-sway 1.2s ease-in-out infinite}.as-playing .as-frog{animation:as-hop 1s infinite}.as-playing .as-cheetah,.as-playing .as-dog{animation:as-hop .65s infinite}.as-playing .as-tail{transform-origin:192px 210px;animation:as-wag .5s infinite alternate}.as-playing .as-ears,.as-playing .as-chicken .as-wings{transform-box:fill-box;transform-origin:center;animation:as-flap .65s infinite alternate}.as-playing .as-trunk{transform-origin:140px 122px;animation:as-wag 1s infinite alternate}@keyframes as-sway{50%{transform:rotate(5deg) translateY(-5px)}}@keyframes as-hop{50%{transform:translateY(-20px) rotate(-3deg)}}@keyframes as-wag{to{transform:rotate(12deg)}}@keyframes as-flap{to{transform:scaleX(.84) rotate(3deg)}}@media(prefers-reduced-motion:reduce){#animal-song *{animation:none!important;transition:none!important}.as-caption .as-word-active{transform:none;text-decoration:underline}}.reduced #animal-song *{animation:none!important}@media(max-height:500px){.as-art{width:35dvh}.as-caption{min-height:1em;font-size:24px;padding:4px}#animal-song button{min-height:40px;min-width:40px}}

#animal-song .as-art img.as-creature{object-fit:contain;transform-origin:50% 90%;padding:8%;box-sizing:border-box;animation-play-state:paused}
#animal-song.as-playing .as-art img.as-creature{animation-play-state:running}
#animal-song.as-playing .as-chicken{animation:as-emoji-peck 1.1s ease-in-out infinite}
#animal-song.as-playing .as-cow,#animal-song.as-playing .as-elephant{animation:as-emoji-sway 1.8s ease-in-out infinite}
#animal-song.as-playing .as-cat,#animal-song.as-playing .as-lion{animation:as-emoji-sway 1.4s ease-in-out infinite}
#animal-song.as-playing .as-frog{animation:as-emoji-hop 1.2s ease-in-out infinite}
#animal-song.as-playing .as-dog,#animal-song.as-playing .as-cheetah{animation:as-emoji-hop .85s ease-in-out infinite}
@keyframes as-emoji-sway{0%,100%{transform:rotate(-3deg)}50%{transform:rotate(3deg) translateY(-5px)}}
@keyframes as-emoji-hop{0%,100%{transform:translateY(0) scale(1.02,.98)}50%{transform:translateY(-17px) scale(.99,1.02)}}
@keyframes as-emoji-peck{0%,100%{transform:rotate(0)}35%{transform:rotate(5deg) translateY(3px)}70%{transform:translateY(-8px) rotate(-3deg)}}
