.scroll-to-top {
  position: fixed;
  z-index: 10;
  right: 24px;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--mint, #69e0bc);
  border-radius: 10px;
  background: var(--mint, #69e0bc);
  box-shadow: 0 12px 30px #00000040;
  color: #08241e;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  visibility: hidden;
}

.scroll-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.scroll-to-top:focus-visible {
  outline: 3px solid var(--text, #f1f5fb);
  outline-offset: 3px;
}

.scroll-to-top svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

@media (max-width: 600px) {
  .scroll-to-top {
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-to-top {
    transition: none;
  }
}
