.ugh-back-to-top {
  position: fixed;
  right: max(22px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 900;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #ff902e;
  color: #202020;
  box-shadow: 0 4px 18px #20202024;
  cursor: pointer;
  transition: background-color .2s, color .2s, transform .2s;
}
.ugh-back-to-top[hidden] { display: none !important; }
.ugh-back-to-top:hover { background: #df0047; color: #fff; transform: translateY(-3px); }
.ugh-back-to-top:focus-visible { outline: 3px solid #123d7f; outline-offset: 4px; }
.ugh-back-to-top svg { display: block; pointer-events: none; }
body:has(.grecaptcha-badge) .ugh-back-to-top { bottom: max(88px, env(safe-area-inset-bottom)); }
@media(prefers-reduced-motion: reduce) { .ugh-back-to-top { transition: none; } }

html.ug-menu-open .ugh-back-to-top { display: none; }
