.f4u-floating-back-to-top {
  position: fixed;
  z-index: 70;
  right: max(clamp(1rem, 2.4vw, 2.4rem), calc(env(safe-area-inset-right, 0px) + 1rem));
  bottom: max(clamp(1rem, 2.4vw, 2.4rem), calc(env(safe-area-inset-bottom, 0px) + var(--f4u-scroll-tool-clearance, 0px) + 1rem));
  display: grid;
  width: 3.25rem;
  height: 3.25rem;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 50%;
  background: var(--f4u-petal);
  color: #fff;
  box-shadow: 0 .6rem 1.4rem rgba(121,58,65,.2);
  cursor: pointer;
  transition: opacity .2s ease, transform .2s ease;
}

.f4u-floating-back-to-top[hidden] { display: none; }
.f4u-floating-back-to-top:hover { transform: translateY(-.12rem); }
.f4u-floating-back-to-top:focus-visible { outline: 3px solid var(--f4u-petrol); outline-offset: 3px; }
.f4u-floating-back-to-top svg { width: 1.35rem; height: 1.35rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }

@media (max-width: 38rem) {
  .f4u-floating-back-to-top { width: 3rem; height: 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  .f4u-floating-back-to-top { transition-duration: .01ms; }
}
