.back-to-top{position:fixed;right:max(20px,env(safe-area-inset-right));bottom:calc(88px + env(safe-area-inset-bottom));z-index:39;display:grid;place-items:center;width:48px;height:48px;padding:11px;border:2px solid #e4c38b;border-radius:50%;background:#840d2a;color:#fff;box-shadow:0 4px 20px #0b203d40;cursor:pointer;transition:background .2s,transform .2s}
.back-to-top[hidden]{display:none}
.back-to-top:hover{background:#a21b3e;transform:translateY(-2px)}
.back-to-top svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
body:has(.project-tray:not([hidden])) .back-to-top{bottom:calc(168px + env(safe-area-inset-bottom))}
body:has(.analytics-consent) .back-to-top{bottom:calc(248px + env(safe-area-inset-bottom))}
@media(max-width:600px){.back-to-top{right:max(17px,env(safe-area-inset-right))}}
@media(prefers-reduced-motion:reduce){.back-to-top{transition:none}.back-to-top:hover{transform:none}}
html[data-motion=off] .back-to-top:hover,html[data-a11y-motion] .back-to-top:hover{transform:none}
@media(forced-colors:active){.back-to-top{border-color:ButtonText}.back-to-top svg{stroke:ButtonText}}
