/* The walking bug (js/bug.js): a cut-out sprite that wanders the page, in front of or behind things.
   z 1 sits under .work (2) and the loose pieces (45); z 39 sits over them but under the nav (40). */
.bugs{position:absolute;left:0;top:0;width:100%;height:0;overflow-x:clip;pointer-events:none} /* he can walk in from past the side without making the page scroll sideways (phones ignore the body clip) */
.bug{position:absolute;left:0;top:0;z-index:39;pointer-events:none;will-change:transform;contain:layout style}
.bug.back{z-index:1}
.bug-in{position:absolute;left:0;top:0;contain:layout style;transform-origin:50% 100%;pointer-events:auto;cursor:pointer;-webkit-tap-highlight-color:transparent}
.bug-in i{position:absolute;display:block;background:url(/media/bug.webp) no-repeat;background-size:380px 1160px}
.bug-legs{position:absolute;left:0;top:0;overflow:visible;pointer-events:none}
.bug-sh{position:absolute;left:0;top:0;border-radius:50%;background:rgba(14,14,14,.14);translate:-50% -50%}
.bug-splat{position:absolute;left:0;top:0;width:150px;height:110px;translate:-50% -72%;pointer-events:none;transition:opacity .9s}
.bug-splat.gone{opacity:0}
.bug-splat svg{display:block;width:100%;height:100%;overflow:visible}
/* the sticker look: the white die-cut edge is drawn into media/bug.webp (and the legs' white strokes in js/bug.js); the shadow is
   two drop-shadows, a firm one close and a soft one wider (a filter that drew the edge live cost too much per frame) */
.bug-in{filter:drop-shadow(0 5px 2.5px rgba(14,14,14,.3)) drop-shadow(0 11px 12px rgba(14,14,14,.14))}
