.landing-back-to-top {
  position: fixed;
  right: calc(22px + env(safe-area-inset-right, 0px));
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  z-index: 100;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  padding: 0;
  border: 1px solid #ffffff;
  border-radius: 50%;
  background: #111111;
  color: #ffffff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  translate: 0 10px;
  scale: 0.94;
  transition: opacity 280ms ease, translate 280ms ease, scale 280ms ease, visibility 0s linear 280ms, transform 180ms ease;
}

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

.landing-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  translate: 0 0;
  scale: 1;
  transition-delay: 0s;
}

.landing-back-to-top__label {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: currentColor;
  font-family: "Geist", sans-serif;
  font-size: 10px;
  font-weight: 700;
  animation: landing-back-to-top-spin 24s linear infinite;
  transform-origin: 50% 50%;
}

.landing-back-to-top__arrow {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: landing-back-to-top-bounce 6s ease-in-out infinite;
}

@keyframes landing-back-to-top-spin {
  to { transform: rotate(360deg); }
}

@keyframes landing-back-to-top-bounce {
  0%, 80%, 100% { transform: translateY(0); }
  85%, 93% { transform: translateY(-3px); }
  89%, 97% { transform: translateY(0); }
}

@media (hover: hover) and (pointer: fine) {
  .landing-back-to-top:hover { transform: translateY(-2px); }
}

.landing-back-to-top:focus-visible {
  outline: 3px solid #55b9e9;
  outline-offset: 4px;
}

.landing-back-to-top:active { transform: scale(0.96); }

@media (max-width: 1120px) {
  .landing-back-to-top {
    right: calc(14px + env(safe-area-inset-right, 0px));
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    width: 74px;
    height: 74px;
  }
  .landing-back-to-top__arrow { width: 21px; height: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  .landing-back-to-top { transition: none; }
  .landing-back-to-top__arrow,
  .landing-back-to-top__label { animation: none; }
}
