.back-to-top {
  position: fixed;
  right: max(26px, env(safe-area-inset-right));
  bottom: max(26px, env(safe-area-inset-bottom));
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 58px;
  height: 58px;
  border: 1px solid #ffffff55;
  border-radius: 50%;
  background: #151715d9;
  color: #eeede9;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 5px 20px #0003;
  text-decoration: none;
  transition: background .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.back-to-top span { font-family: Space, Arial, sans-serif; font-size: 9px; font-weight: 500; line-height: 1; letter-spacing: .1em; }
.back-to-top svg { flex-shrink: 0; }
@media (hover: hover) {
  .back-to-top:hover { background: #ed3834; border-color: #ed3834; transform: translateY(-4px); box-shadow: 0 9px 24px #0005; }
}
.back-to-top:active { transform: scale(.94); background: #b92f28; }
.back-to-top:focus-visible { outline: 2px solid #eeede9; outline-offset: 5px; }
body.modal-open .back-to-top { visibility: hidden; }
@media (max-width: 600px) {
  .back-to-top { right: max(16px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); width: 50px; height: 50px; }
}
@media (prefers-reduced-motion: reduce) {
  .back-to-top { transition: none; }
}
