#back-to-top {
  position: fixed;
  right: 28px;
  bottom: calc(104px + env(safe-area-inset-bottom, 0px));
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #a91e2e;
  border-radius: 24px;
  background: #b62233;
  color: #fff;
  font-size: 14px;
  box-shadow: 0 4px 16px #61172326;
  cursor: pointer;
}
#back-to-top[hidden] { display: none; }
#back-to-top:hover { background: #9d1d2c; }
#back-to-top:focus-visible { outline: 3px solid #537fbf; outline-offset: 3px; }
#back-to-top svg { width: 18px; height: 18px; flex: none; }
@media (max-width: 600px) {
  #back-to-top { right: 16px; padding: 10px 12px; font-size: 13px; }
}
