html{scrollbar-width:none;scrollbar-gutter:auto!important}
html::-webkit-scrollbar,body::-webkit-scrollbar{display:none;width:0;height:0}
body{-ms-overflow-style:none}

.to-top {
  position: fixed;
  inset-inline-end: 28px;
  bottom: 28px;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgb(var(--scene-highlight) / .28);
  border-radius: 50%;
  color: rgb(var(--scene-highlight));
  background: #17131eef;
  box-shadow: 0 4px 14px #0005;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .22s ease, transform .22s ease, background-color .18s ease,
    border-color .18s ease, color .18s ease, visibility 0s linear .22s;
  -webkit-tap-highlight-color: transparent;
}

.to-top.show {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

.to-top:hover {
  color: rgb(var(--scene-white));
  background: #21182cee;
  border-color: rgb(var(--scene-highlight) / .54);
}

.to-top:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.to-top svg { width: 20px; height: 20px; }

@media (max-width: 800px) {
  .to-top { inset-inline-end: 16px; bottom: 16px; width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .to-top { transform: none; transition: none; }
}
