.back-to-top {
  position: fixed;
  right: 24px;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 16px;
  border: 0;
  background: #f4c616;
  color: #171b1a;
  box-shadow: 0 8px 28px #0003;
  cursor: pointer;
  font: 800 .76rem Arial, Helvetica, sans-serif;
  letter-spacing: .07em;
  text-transform: uppercase;
  transition: background .2s, transform .2s;
}
.back-to-top[hidden] { display: none; }
.back-to-top:hover { background: #171b1a; color: #fff; transform: translateY(-3px); }
.back-to-top:focus-visible { outline: 3px solid #171b1a; outline-offset: 3px; }
@media (max-width: 620px) {
  .back-to-top { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); min-height: 44px; padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .back-to-top { transition: none; }
}
