.va-back-to-top {
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 100;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  padding: 0;
  touch-action: manipulation;
  border: 0;
  background: #211d4f;
  box-shadow: 0 5px 14px rgba(33, 29, 79, 0.16);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, 12px, 0) scale(0.94);
  transition: opacity 240ms ease, visibility 240ms ease, transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

.va-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
}

.va-back-to-top:hover {
  transform: translate3d(0, -2px, 0) scale(1.04);
}

.va-back-to-top:focus-visible {
  outline: 2px solid #7a6aff;
  outline-offset: 3px;
}

.va-back-to-top__asset {
  display: block;
  width: 50px;
  height: 50px;
}

@media (max-width: 767px) {
  .va-back-to-top {
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  .va-back-to-top {
    transition: opacity 120ms ease, visibility 120ms ease;
  }

  .va-back-to-top:hover,
  .va-back-to-top.is-visible {
    transform: none;
  }
}
html.home-booting .va-back-to-top,
html.va-forward-arrival .va-back-to-top,
html.va-back-arrival .va-back-to-top,
body:has(.loading-screen[style*="display: flex"]) .va-back-to-top,
body:has(.va-wave-stage) .va-back-to-top {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}