.back-to-top {
  position: fixed;
  z-index: 2;
  right: max(1rem, env(safe-area-inset-right));
  bottom: calc(max(1rem, env(safe-area-inset-bottom)) + var(--back-lift, 0px));
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid #fffdf7;
  border-radius: 50%;
  background: #214c39;
  color: #fffdf7;
  box-shadow: 0 2px 8px #24372c38;
  font: 700 24px/1 system-ui, sans-serif;
  cursor: pointer;
}
.back-to-top[hidden] { display: none; }
.back-to-top:hover { background: #133f2c; }
.back-to-top:focus-visible { outline: 3px solid #a13c20; outline-offset: 3px; }
