.scroll-jump-btn,
.footer-scroll-btn {
  position: fixed;
  right: 1.25rem;
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  z-index: 210;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0;
  background: rgba(8, 8, 8, 0.62);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fafafa;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(0.5rem);
  transition:
    opacity 0.28s ease,
    visibility 0.28s ease,
    transform 0.28s ease,
    border-color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
}

.scroll-jump-btn.is-visible,
.footer-scroll-btn.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-jump-btn:hover,
.footer-scroll-btn:hover {
  border-color: rgba(52, 211, 153, 0.72);
  background: rgba(10, 10, 10, 0.82);
  box-shadow:
    0 0 0 1px rgba(16, 185, 129, 0.22),
    0 0 22px rgba(16, 185, 129, 0.38),
    0 0 44px rgba(16, 185, 129, 0.16),
    0 6px 24px rgba(0, 0, 0, 0.32);
}

.scroll-jump-btn:hover .scroll-jump-btn-icon,
.scroll-jump-btn:hover .footer-scroll-btn-icon,
.footer-scroll-btn:hover .scroll-jump-btn-icon,
.footer-scroll-btn:hover .footer-scroll-btn-icon {
  filter: drop-shadow(0 0 6px rgba(52, 211, 153, 0.55));
}

.scroll-jump-btn:active,
.footer-scroll-btn:active {
  transform: translateY(1px);
}

.scroll-jump-btn:focus-visible,
.footer-scroll-btn:focus-visible {
  outline: 2px solid rgba(16, 185, 129, 0.55);
  outline-offset: 3px;
}

.scroll-jump-btn-icon,
.footer-scroll-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  pointer-events: none;
}

.scroll-jump-btn-icon svg,
.footer-scroll-btn-icon svg {
  width: 1.9rem;
  height: 1.9rem;
  display: block;
}

@media (max-width: 767px) {
  .scroll-jump-btn,
  .footer-scroll-btn {
    right: calc(2.75rem + env(safe-area-inset-right, 0px));
    bottom: calc(2.5rem + env(safe-area-inset-bottom, 0px));
    width: 2.875rem;
    height: 2.875rem;
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(8, 8, 8, 0.7);
  }

  .scroll-jump-btn-icon svg,
  .footer-scroll-btn-icon svg {
    width: 1.6rem;
    height: 1.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-jump-btn,
  .footer-scroll-btn {
    transition: opacity 0.15s ease, visibility 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    transform: none;
  }

  .scroll-jump-btn.is-visible,
  .footer-scroll-btn.is-visible {
    transform: none;
  }

  .scroll-jump-btn:active,
  .footer-scroll-btn:active {
    transform: none;
  }
}