.back-to-top{
  position:fixed;
  right:1.5rem;
  bottom:1.5rem;
  z-index:300;
  width:48px;
  height:48px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.2);
  background:rgba(0,8,20,.88);
  color:#90e0ef;
  cursor:pointer;
  opacity:0;
  pointer-events:none;
  transform:translateY(8px);
  transition:opacity .25s ease,transform .25s ease,background .2s ease,border-color .2s ease,color .2s ease;
}

.back-to-top.visible{
  opacity:1;
  pointer-events:auto;
  transform:translateY(0);
}

.back-to-top:hover{
  background:#00b4d8;
  border-color:#00b4d8;
  color:#000814;
}

.back-to-top:focus-visible{
  outline:2px solid #90e0ef;
  outline-offset:3px;
}

@media(max-width:640px){
  .back-to-top{
    right:1rem;
    bottom:1rem;
    width:44px;
    height:44px;
  }
}

@media(prefers-reduced-motion:reduce){
  .back-to-top{
    transition:opacity .01s linear;
  }
}
