/* D-BOT Halloween spider; all layers are decoration, never interactive. */
.dbot-spider-scene{position:fixed;inset:0;z-index:2147483000;pointer-events:none;overflow:hidden;isolation:isolate}
.dbot-spider-web{position:absolute;right:var(--dbot-web-right,0px);top:var(--dbot-web-top,0px);width:clamp(140px,18vw,260px);aspect-ratio:1;background:url('/assets/spider/web-corner.svg') top right/100% 100% no-repeat;opacity:.82;transform-origin:top right;transition:transform .8s cubic-bezier(.2,.7,.1,1),opacity .55s;will-change:transform}
.dbot-spider-thread{position:absolute;top:calc(var(--dbot-web-top,0px) + 74px);right:calc(var(--dbot-web-right,0px) + 48px);width:1.5px;height:155px;background:linear-gradient(to bottom,#eee,#c1c2ce 74%,transparent);transform-origin:top center;opacity:.86}
.dbot-spider-little{position:absolute;top:calc(var(--dbot-web-top,0px) + 183px);right:calc(var(--dbot-web-right,0px) + 26px);width:46px;height:46px;object-fit:contain;filter:drop-shadow(0 0 2px #e5e8e9) drop-shadow(0 0 6px #c51d25);animation:dbot-spider-dangle 3.2s ease-in-out 2 forwards;transform-origin:50% 0}
.dbot-spider-jump{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center center;opacity:0;visibility:hidden;transition:opacity .12s}
.dbot-spider-web-full{position:absolute;top:0;right:0;width:min(480px,75vw);height:min(420px,75vh);background:url('/assets/spider/web-full.svg') center/100% 100% no-repeat;clip-path:circle(0 at 100% 0);opacity:0;transition:clip-path .85s cubic-bezier(.2,.65,.1,1),opacity .75s}
.dbot-spider-scene.is-blooming .dbot-spider-web-full{clip-path:circle(145% at 100% 0);opacity:.65}
.dbot-spider-scene.is-blooming .dbot-spider-thread,.dbot-spider-scene.is-blooming .dbot-spider-little{opacity:0}
.dbot-spider-scene.is-jumping .dbot-spider-jump{visibility:visible;opacity:1}
.dbot-spider-scene.is-complete .dbot-spider-jump{visibility:hidden;opacity:0}
@keyframes dbot-spider-dangle{0%,100%{transform:translateY(0) rotate(-4deg)}35%{transform:translateY(31px) rotate(4deg)}70%{transform:translateY(8px) rotate(-3deg)}}
@media(max-width:600px){.dbot-spider-web{width:150px}.dbot-spider-thread{top:calc(var(--dbot-web-top,0px) + 45px);right:calc(var(--dbot-web-right,0px) + 28px);height:95px}.dbot-spider-little{top:calc(var(--dbot-web-top,0px) + 114px);right:calc(var(--dbot-web-right,0px) + 11px);width:36px;height:36px}.dbot-spider-jump{object-fit:cover}}
@media(prefers-reduced-motion:reduce){.dbot-spider-web,.dbot-spider-jump{transition:none}.dbot-spider-little{animation:none}.dbot-spider-thread,.dbot-spider-little{display:none}}

/* Keep the guest cobweb exactly in the illustrated card's upper-right corner. */
.dbot-spider-scene.is-guest-dashboard .dbot-spider-web{width:130px}
.dbot-spider-scene.is-guest-dashboard .dbot-spider-thread{top:calc(var(--dbot-web-top,0px) + 37px);right:calc(var(--dbot-web-right,0px) + 25px);height:65px}
.dbot-spider-scene.is-guest-dashboard .dbot-spider-little{top:calc(var(--dbot-web-top,0px) + 96px);right:calc(var(--dbot-web-right,0px) + 10px);width:31px;height:31px}
@media(max-width:760px){.dbot-spider-scene.is-guest-dashboard .dbot-spider-web{width:90px}.dbot-spider-scene.is-guest-dashboard .dbot-spider-thread{top:calc(var(--dbot-web-top,0px) + 27px);right:calc(var(--dbot-web-right,0px) + 18px);height:42px}.dbot-spider-scene.is-guest-dashboard .dbot-spider-little{top:calc(var(--dbot-web-top,0px) + 63px);right:calc(var(--dbot-web-right,0px) + 6px);width:27px;height:27px}}
