/* Shared floating treatment for the new satin diamond Chemy artwork. */
.chemy-scene{position:relative;display:block;width:130px;max-width:100%;margin:0 auto;isolation:isolate;line-height:0;animation:chemy-arrive .6s ease-out both}
.chemy-scene:before{content:'';position:absolute;z-index:0;top:9%;left:9%;width:82%;height:82%;border-radius:50%;background:radial-gradient(circle,rgba(62,181,192,.2),rgba(62,181,192,0) 70%);animation:chemy-glow 4s ease-in-out infinite}
.chemy-scene:after{content:'';position:absolute;bottom:3%;left:29%;width:42%;height:5%;border-radius:50%;background:rgba(20,70,122,.1);animation:chemy-shadow 4s ease-in-out infinite}
.chemy-orbit{position:absolute;z-index:1;top:4%;left:4%;width:92%;height:92%;border:1px solid rgba(62,181,192,.18);border-radius:50%;animation:chemy-orbit 13s linear infinite;pointer-events:none}
.chemy-orbit:before{content:'';position:absolute;top:50%;left:-3px;width:6px;height:6px;border:1px solid white;border-radius:50%;background:#804397}
.chemy-orbit.second{top:11%;left:11%;width:78%;height:78%;border-color:transparent;animation-duration:17s;animation-direction:reverse}
.chemy-orbit.second:before{width:5px;height:5px;background:#4d9436}
.chemy-scene .chemy{position:relative;z-index:2;display:block;width:100%!important;max-width:100%;height:auto;animation:chemy-hover 4s ease-in-out infinite;transform-origin:50% 58%;will-change:transform}
.chemy .chemy-art{display:block;width:100%;height:auto;max-width:100%}
.chemy picture{display:block}
/* Only the eye interiors change; this layer follows every existing body movement. */
.chemy .chemy-eyelids{position:absolute;inset:0;left:0;top:0;width:100%;height:100%;max-width:none}
.chemy-eyelids{opacity:0;pointer-events:none;animation:chemy-blink 5.8s linear infinite}
.chemy[data-pose]:not([data-pose="idle"]) .chemy-eyelids,#gameFlask[data-pose]:not([data-pose="idle"]) .chemy-eyelids{animation:none;opacity:0}
@keyframes chemy-blink{0%,93.5%,97.5%,100%{opacity:0}94.5%,96.5%{opacity:1}}
.chemy-scene .chemy.happy{animation:hop .45s ease-out,chemy-hover 4s .45s ease-in-out infinite}
.chemy-scene .chemy.sad{animation:wobble .5s ease-in-out 2,chemy-hover 4s 1s ease-in-out infinite}
.chemy-scene .chemy.wow{animation:hop .55s ease-out,chemy-hover 4s .55s ease-in-out infinite}
.chemy-scene .chemy.dance{animation:dance .6s ease-in-out infinite}
/* The current rig animates its own hands, eyes, and expressions together. */
.chemy-scene .chemy[data-pose]{animation:none!important;will-change:auto}
#startFlask .chemy-scene{width:130px;width:clamp(110px,22vw,190px)}
#gameFlask .chemy-scene{width:62px}
#gameFlask .chemy-orbit:before{width:4px;height:4px;left:-2px}
#resFlask .chemy-scene{width:130px}
.form-card .entry-title{font-size:clamp(22px,5vw,28px)}
#wallFlask .chemy-scene{width:180px;width:clamp(120px,14vw,240px)}
@keyframes chemy-hover{0%,100%{transform:translateY(0) rotate(-2deg)}50%{transform:translateY(-5px) rotate(2deg)}}
@keyframes chemy-orbit{to{transform:rotate(360deg)}}
@keyframes chemy-glow{0%,100%{opacity:.5;transform:scale(.94)}50%{opacity:.9;transform:scale(1.06)}}
@keyframes chemy-shadow{0%,100%{opacity:.65;transform:scaleX(1)}50%{opacity:.35;transform:scaleX(.82)}}
@keyframes chemy-arrive{from{opacity:0;transform:translateY(5px) scale(.95)}to{opacity:1;transform:none}}
@media(max-width:380px){#startFlask .chemy-scene{width:100px}}
@media(max-height:700px){#startFlask .chemy-scene{width:90px}}
@media(prefers-reduced-motion:reduce){.chemy-scene,.chemy-scene:before,.chemy-scene:after,.chemy-scene .chemy,.chemy-orbit{animation:none!important;transform:none!important;will-change:auto}.chemy-eyelids{animation:none!important;opacity:0!important}}
