.back-to-top {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 9;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0 0 2px;
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 8px;
  background: rgba(7, 11, 49, .94);
  color: white;
  box-shadow: 0 2px 10px rgba(7, 11, 49, .2);
  font: 700 1.55rem / 1 Arial, sans-serif;
  cursor: pointer;
}

.back-to-top[hidden] { display: none; }

.back-to-top:hover { background: #22284e; }

.back-to-top:focus-visible {
  outline: 2px solid var(--pink, #ff006e);
  outline-offset: 3px;
}
