/* =========================================================
   Site additions — back-to-top button (.scroll-top).
   Injected by assets/js/main.js. Colours from style.css:
   dark surface #000 (header / tab bar), accent gold --gold.
   ========================================================= */

.scroll-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60; /* above sticky header (50) and tab bar (40) */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  border: 2px solid var(--gold, #ffc414);
  border-radius: 50%;
  background: #000;
  color: #fff;
  box-shadow: 0 4px 14px 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;
}
.scroll-top svg { width: 22px; height: 22px; display: block; }

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover,
.scroll-top:focus-visible {
  background: var(--gold, #ffc414);
  color: #000;
}
.scroll-top:focus { outline: none; }
.scroll-top:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

/* Hide while the mobile menu overlay 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 bottom tab bar (style.css, <=760px): 58px links + 1px border
   + safe-area inset. Sit 16px above it. */
@media (max-width: 760px) {
  .scroll-top {
    bottom: calc(75px + env(safe-area-inset-bottom, 0px));
  }
}

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

/* ---------- Casino bonus promo badge (injected by main.js) ---------- */
.promo-badge { position: fixed; right: 20px; bottom: 80px; z-index: 59; }
.promo-badge a {
  display: flex; align-items: center; gap: 10px; padding: 6px; padding-inline-end: 16px;
  background: #000; border: 2px solid var(--gold, #ffc414); border-radius: 999px;
  color: #fff; text-decoration: none; box-shadow: 0 4px 14px rgba(0, 0, 0, .55);
  font-size: .85rem; line-height: 1.25; white-space: nowrap;
}
.promo-badge a:hover { border-color: #fff; }
.promo-text b { display: block; color: var(--gold, #ffc414); font-size: .78rem; }
.promo-wheel { width: 48px; height: 48px; flex: none; animation: promo-spin 4s linear infinite; }
@keyframes promo-spin { to { transform: rotate(360deg); } }
.promo-close {
  position: absolute; top: -8px; left: -8px; width: 24px; height: 24px; padding: 0;
  border: 1px solid var(--gold, #ffc414); border-radius: 50%; background: #000; color: #fff;
  font-size: 16px; line-height: 1; cursor: pointer;
}
.promo-close:hover { background: var(--gold, #ffc414); color: #000; }
body.nav-open .promo-badge { display: none; }

@media (max-width: 760px) {
  .promo-badge { right: 12px; bottom: calc(132px + env(safe-area-inset-bottom, 0px)); }
  .promo-badge a { gap: 8px; padding: 4px; padding-inline-end: 12px; font-size: .78rem; }
  .promo-text b { font-size: .72rem; }
  .promo-wheel { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) { .promo-wheel { animation: none; } }
