/* ---------- Back-to-top button (injected by main.js: initScrollTop) ----------
   Colours: header black (#000) + Betfinal gold accent (--gold #ffc414).
   Sits above page content and the sticky header (z 50), below the skip link (z 100).
   On small screens it is lifted above the fixed mobile tab bar (.tabbar, <=760px). */
.scroll-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  border: 2px solid #ffc414;
  border-radius: 50%;
  background: #000;
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .55);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s, background-color .15s ease, color .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-top svg {
  display: block;
  width: 22px;
  height: 22px;
  pointer-events: none;
}
.scroll-top:hover,
.scroll-top:focus-visible {
  background: #ffc414;
  color: #000;
}
.scroll-top:focus { outline: none; }
.scroll-top:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
/* Hide while the full-screen mobile menu is open */
body.nav-open .scroll-top {
  opacity: 0;
  visibility: hidden;
}

@media (max-width: 767px) {
  .scroll-top {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }
}
/* Mobile tab bar: 58px links + 1px border + safe-area inset */
@media (max-width: 760px) {
  .scroll-top {
    bottom: 75px;
    bottom: calc(59px + 16px + env(safe-area-inset-bottom, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-top { transition: none; }
}
