.to-top{position:fixed;right:clamp(16px,2.4vw,34px);bottom:clamp(16px,2.4vw,34px);z-index:50;width:52px;height:52px;border-radius:50%;border:2px solid #fff;background:#5b2197;color:#fff;display:grid;place-items:center;padding:0;cursor:pointer;box-shadow:0 8px 24px #2011338c;opacity:0;transform:translateY(18px) scale(.8);pointer-events:none;transition:opacity .35s ease,transform .35s cubic-bezier(.2,.9,.3,1.2),background .2s,box-shadow .2s}
.to-top.show{opacity:1;transform:none;pointer-events:auto}
.to-top:hover{background:#7131b3;transform:translateY(-4px) scale(1.06);box-shadow:0 14px 30px #20113399}
.to-top:focus-visible{outline:3px solid #b181e1;outline-offset:3px}
.to-top svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.to-top.show svg{animation:toTopBob 1.9s ease-in-out infinite}
.to-top.show::after{content:"";position:absolute;inset:-2px;border-radius:50%;border:2px solid #b181e1;animation:toTopPulse 2.6s ease-out infinite;pointer-events:none}
.to-top:hover svg{animation-duration:.7s}
@keyframes toTopBob{0%,100%{transform:translateY(3px)}50%{transform:translateY(-3px)}}
@keyframes toTopPulse{0%{transform:scale(1);opacity:.7}70%,100%{transform:scale(1.55);opacity:0}}
@media(prefers-reduced-motion:reduce){.to-top,.to-top.show svg,.to-top.show::after{animation:none;transition:opacity .2s}.to-top:hover{transform:none}}
.to-top-slot{display:flex;justify-content:center;padding:34px 0 8px}
.to-top-slot .to-top{position:relative;right:auto;bottom:auto;opacity:1;transform:none;pointer-events:auto;border-color:#f8f8fb}
.to-top-slot .to-top:hover{transform:translateY(-4px) scale(1.06)}
.to-top-slot .to-top svg{animation:toTopBob 1.9s ease-in-out infinite}
.to-top-slot .to-top::after{content:"";position:absolute;inset:-2px;border-radius:50%;border:2px solid #b181e1;animation:toTopPulse 2.6s ease-out infinite;pointer-events:none}
@media(prefers-reduced-motion:reduce){.to-top-slot .to-top svg,.to-top-slot .to-top::after{animation:none}}
