/* back to top: a round obsidian button with an arrow and a ring that fills with scroll progress.
   Fixed bottom-right above the HUD strip; lifts clear of the footer (--lift, set by assets/js/totop.js). No shadow (tokens). */
.totop{position:fixed;right:20px;bottom:calc(56px + var(--lift,0px));z-index:45;width:48px;height:48px;padding:0;border:0;border-radius:40px;
  background:rgba(39,39,53,.72);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);color:#ededf3;cursor:pointer;
  opacity:0;visibility:hidden;transform:translateY(14px) scale(.85);
  transition:opacity .3s ease,transform .45s cubic-bezier(.2,.9,.25,1.2),visibility 0s linear .45s,background-color .2s ease}
.totop.on{opacity:1;visibility:visible;transform:none;transition:opacity .3s ease,transform .45s cubic-bezier(.2,.9,.25,1.2),visibility 0s,background-color .2s ease}
.totop svg{display:block;width:100%;height:100%;overflow:visible}
.totop circle{fill:none;stroke-width:1.5}
.totop .trk{stroke:rgba(237,237,243,.16)}
.totop .prg{stroke:currentColor;stroke-linecap:round;stroke-dasharray:138.23;stroke-dashoffset:calc(138.23 * (1 - var(--p,0)));transform:rotate(-90deg);transform-origin:50% 50%}
.totop .arw{fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;transition:transform .35s cubic-bezier(.2,.9,.25,1.2)}
.totop:hover{background-color:rgba(39,39,53,.95)}
.totop:hover .arw,.totop:focus-visible .arw{transform:translateY(-3px)}
.totop:active .arw{transform:translateY(-6px)}
.totop:focus-visible{outline:2px solid #ededf3;outline-offset:3px}
@media(max-width:600px){.totop{right:16px;bottom:calc(52px + var(--lift,0px));width:44px;height:44px}}
@media(prefers-reduced-motion:reduce){.totop,.totop.on,.totop .arw{transition:none}}
main:focus{outline:none}   /* focus lands on <main> after Back to top; it's a landmark, not a control */
