.sophia-studio .companion-button{transform:rotate(var(--sophia-look,0deg));transition:transform .3s ease,left .65s ease,right .65s ease,bottom .65s ease;will-change:auto}.sophia-studio .companion-button>span{display:none}.sophia-studio .companion-button.sophia-nuzzle{animation:sophia-nuzzle 1s ease}.sophia-studio #companion-presence{position:absolute;right:4%;bottom:28px;width:320px;max-width:45%;z-index:4;text-align:center;color:#fff}#companion-line{font-size:11px;line-height:1.7;margin:0 auto 9px;max-width:310px;padding:7px 12px;background:#142f23d9;border-radius:18px;width:fit-content}#companion-presence>div{display:flex;justify-content:center;gap:8px}#companion-presence button{font-size:10px;padding:6px 11px;min-height:30px;color:white;border-bottom:1px solid #ffffff66}#companion-presence.presence-quiet>div{display:none}#companion-presence.presence-quiet #companion-line{font-size:10px;background:#162d24bd}.companion-portrait{height:210px;position:relative;background:radial-gradient(ellipse,#d8e3ce,transparent 65%);margin:20px 0 25px}.companion-portrait img{height:190px;margin:auto}.companion-portrait span{position:absolute;bottom:0;width:100%;text-align:center;font-size:11px;color:#53674c}.companion-facts{display:grid;grid-template-columns:repeat(3,1fr);gap:13px;border-block:1px solid #cbd2c5;padding:22px 0;margin:27px 0}.companion-facts strong{font:32px Georgia,serif;display:block}.companion-facts span{font-size:10px;line-height:1.7;display:block;margin-top:9px;color:#56645b}.companion-memories article{border-bottom:1px solid #d4dccd;padding:17px 0}.companion-memories article>span{font-size:10px;color:#53664d}.companion-memories p{font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere;margin:9px 0 0}.companion-prefs{display:flex;gap:10px;margin-top:25px}.companion-prefs button{font-size:11px;flex:1}.sophia-studio:not([data-phase=home]) #companion-presence{left:14%;right:auto;bottom:58px;width:320px;max-width:40%}.sophia-studio[data-companion-phase=bookmark] .companion-button{bottom:105px}.sophia-studio[data-companion-phase=focus] .companion-button{bottom:145px}.is-immersive #companion-presence{left:8%!important;bottom:70px!important}.sophia-studio[data-exploring=true] #companion-presence{display:none}@keyframes sophia-nuzzle{30%{transform:rotate(-6deg) translateY(-6px)}65%{transform:rotate(3deg) translateY(0)}100%{transform:rotate(0)}}
@media(max-width:900px) and (min-width:701px){.sophia-studio:not([data-phase=home]) #companion-presence{left:3%;bottom:115px;width:250px}.sophia-studio:not([data-phase=home]) .companion-button{bottom:210px}}
@media(max-width:700px){.sophia-studio .companion-button{bottom:92px;width:182px;right:1%}.sophia-studio #companion-presence{right:4%;bottom:16px;max-width:57%;width:210px}#companion-line{font-size:9px;padding:6px 9px;margin-bottom:3px}#companion-presence button{font-size:9px;padding:5px 8px;min-height:30px}.sophia-studio .scene-bottom{bottom:25px}.sophia-studio:not([data-phase=home]) .companion-button{bottom:58px!important;right:4%;width:155px;left:auto}.sophia-studio:not([data-phase=home]) #companion-presence{left:auto;right:4%;bottom:8px;max-width:53%;width:200px}.sophia-studio:not([data-phase=home]) #companion-presence>div{display:none}.sophia-studio:not([data-phase=home]) #companion-line{font-size:9px}.sophia-studio.is-immersive #companion-presence{left:auto!important;right:12px!important;bottom:15px!important;max-width:50%}.sophia-studio.is-immersive .companion-button{bottom:47px!important}.companion-portrait{height:190px}.companion-portrait img{height:175px}.companion-facts span{font-size:9px}.companion-facts strong{font-size:29px}}
@media(prefers-reduced-motion:reduce){.sophia-studio .companion-button{animation:none!important;transition:none!important;transform:none!important}}body[data-bird-motion=false] .companion-button{animation:none!important;transition:none!important;transform:none!important}

/* The same bird responds where it is touched, including the mobile room. */
.sophia-interaction{position:fixed;z-index:60;padding:23px 20px 16px;border:1px solid #b8c99c50;border-radius:14px;background:#203629f5;box-shadow:0 16px 35px #07150f4d;color:#f2eedb;backdrop-filter:blur(16px);isolation:isolate}
.sophia-interaction[hidden]{display:none}.sophia-interaction>p{font-size:14px;line-height:1.85;margin:0;padding-right:15px;overflow-wrap:anywhere}
.sophia-interaction-close{position:absolute;right:3px;top:2px;min-width:36px;min-height:36px;background:none;border:0;color:#d5dfc2;font-size:20px}
.sophia-interaction-actions{display:flex;flex-wrap:wrap;gap:5px 16px;margin-top:12px;border-top:1px solid #c4d2aa33;padding-top:8px}
.sophia-interaction-actions button{background:none;border:0;color:#e0d4b1;padding:8px 0;min-height:44px;font-size:13px;text-decoration:underline;text-underline-offset:5px}
.sophia-interaction-actions button:disabled{opacity:.45}.sophia-interaction.is-passive .sophia-interaction-actions{display:none}
.sophia-interaction button:focus-visible{outline:2px solid #eee1aa;outline-offset:3px}
.sh-bird img,.companion-button img{user-select:none;-webkit-user-drag:none}
@media(prefers-reduced-motion:reduce){.sophia-interaction{scroll-behavior:auto}}
