/* Boo has his own hit target and animation, independent of Maple's activity. */
.environment-rail{max-height:calc(100% - 112px)}
#world.world.zoo-active{background-position:center 40%!important}
.world.zoo-active:before,.world.zoo-active:after{opacity:0}
#booPet.boo-sprite{height:40.8%;max-width:26.4%;aspect-ratio:1200/1294;padding:0;border:0;background:none;overflow:visible;pointer-events:auto;cursor:pointer;z-index:3;-webkit-tap-highlight-color:transparent}
.boo-art{display:block;width:100%;height:100%;object-fit:contain;transform-origin:50% 95%;pointer-events:none}
#booPet:focus-visible{outline:2px solid #f3dab0;outline-offset:4px;border-radius:30%}
#booPet:disabled{cursor:default}
.boo-hand{display:none;position:absolute;top:-8%;left:39%;width:45%;height:auto;z-index:1;pointer-events:none;transform-origin:50% 80%}
.boo-response{display:none;position:absolute;bottom:105%;left:50%;transform:translateX(-50%);width:max-content;max-width:150px;padding:6px 9px;border-radius:12px;border:1px solid #b99160;background:#fff0d8;color:#294b37;font-size:11px;line-height:1.3;pointer-events:none}
.boo-being-petted .boo-art{animation:booEnjoyScratch .55s ease-in-out infinite}
.boo-being-petted .boo-hand{display:block;animation:booPatAndScratch 1.5s ease-in-out 2}
.boo-being-petted .boo-response{display:block}
@keyframes booEnjoyScratch{0%,100%{transform:rotate(0)}35%{transform:rotate(-4deg) translateY(-2px)}70%{transform:rotate(3deg)}}
@keyframes booPatAndScratch{0%,100%{transform:translate(0,-8px) rotate(-10deg)}20%,40%{transform:translate(-4px,4px) rotate(10deg)}30%{transform:translate(-2px,-2px)}55%,75%,95%{transform:translate(3px,4px) rotate(-7deg)}65%,85%{transform:translate(-4px,1px) rotate(5deg)}}
@media(max-width:650px){.boo-response{font-size:9px;max-width:100px;padding:4px 6px}}


#world.world #booPet{display:none}
#world.world.boo-present #booPet{display:block}
/* Reserve the space above Maple, away from the left environment rail and Boo. */
#world.world.boo-present:not(.screenshot-mode) #bubble{top:-4px;bottom:auto;right:auto;left:50%;transform:translate(-50%,-100%);width:max-content;max-width:min(60%,260px);margin:0;padding:5px 8px;z-index:7}

