/* Cut is measured from the top of the transparent source, pivot on the center of the neck. */
.mural-bobble{--head-cut:35.2%;--head-pivot-x:51%;--bobble-width:73px;--bobble-ratio:2/3;position:absolute;z-index:2;left:50%;top:68%;transform:translate(-50%,-100%);padding:0;width:max(44px,var(--bobble-width));height:auto;min-height:44px;display:grid;place-items:end center;background:transparent;border:0;border-radius:8px;touch-action:manipulation}
.bobble-puppet{position:relative;display:block;width:var(--bobble-width);aspect-ratio:var(--bobble-ratio);pointer-events:none;filter:drop-shadow(1px 3px 3px #10061488)}
.bobble-puppet img{position:absolute;inset:0;display:block;width:100%;height:100%;user-select:none}
.bobble-body{clip-path:inset(var(--head-cut) 0 0 0)}
.bobble-head{clip-path:inset(0 0 calc(100% - var(--head-cut) - .5%) 0);transform-origin:var(--head-pivot-x) var(--head-cut);animation:bobble-idle 6.8s ease-in-out infinite}
.bobble-hit .bobble-head{animation:bobble-spring 1.02s linear both}
.mural-bobble:hover{filter:drop-shadow(0 0 6px #c27aff9c)}
@keyframes bobble-spring{0%{transform:rotate(0)}12%{transform:rotate(10deg)}27%{transform:rotate(-9deg)}43%{transform:rotate(6deg)}58%{transform:rotate(-4deg)}74%{transform:rotate(2deg)}87%{transform:rotate(-1deg)}100%{transform:rotate(0)}}
@keyframes bobble-idle{0%,78%,100%{transform:rotate(0)}84%{transform:rotate(1.55deg)}89%{transform:rotate(-1.15deg)}95%{transform:rotate(.45deg)}}
@media(prefers-reduced-motion:reduce){.bobble-head,.bobble-hit .bobble-head{animation:none}}
