/* =====================================================
   bet-spinner: "Placing your bet..." moment before the
   Bet Successful panel (js/betsuccess.js)
   ===================================================== */
.bsp-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 200px;
  padding: 28px 16px;
  text-align: center;
}

/* Ring: sea blue -> purple gradient, the middle cut out */
.bsp-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(10, 110, 168, 0) 0deg, #0a6ea8 120deg, #7c3aed 330deg, #7c3aed 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px));
  animation: bsp-spin 0.85s linear infinite;
}
@keyframes bsp-spin { to { transform: rotate(360deg); } }

.bsp-text {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.01em;
}

/* Place Bet while the spinner shows */
#place-bet-btn.bsp-busy { opacity: 0.6; cursor: wait; }

/* No spin: a still ring and the text */
@media (prefers-reduced-motion: reduce) {
  .bsp-ring { animation: none; background: linear-gradient(135deg, #0a6ea8, #7c3aed); }
}

/* Page loader: spinner before every new page (app.js showView).
   Normal pages: under the bottom menu, which stays visible. Full pages (.full): whole screen. */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}
.page-loader.full { z-index: 200; }
.page-loader[hidden] { display: none; }
