.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .56);
  border-radius: 50%;
  color: #fff;
  background: #263dba;
  box-shadow: 0 12px 26px rgba(8, 14, 42, .28);
  font-family: 'DM Mono', monospace;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .04em;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .2s, transform .2s, background .2s;
}

.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: #101b5e; }
.back-to-top span { display: block; margin-top: -3px; font-size: 1rem; line-height: .6; }

@media (max-width: 760px) {
  .back-to-top { right: 16px; bottom: 16px; width: 48px; height: 48px; }
}
