/* ===========================================================================
   BOB CASINO — Free Spins Wheel (content pages only)
   Fixed launcher bottom-left -> dim modal -> rigged spin -> claim (referral)
   =========================================================================== */

/* ---- Floating launcher (bottom-left, pinned) ---------------------------- */
.bc-wheel-launcher {
  position: fixed;
  left: 20px; bottom: 20px;
  z-index: 150;
  display: flex; align-items: center; gap: 11px;
  padding: 9px 20px 9px 9px;
  background: linear-gradient(180deg,#5a4326,#2c1e13);
  border: 2px solid var(--bc-gold);
  border-radius: 999px;
  box-shadow: 0 12px 30px -6px rgba(0,0,0,.55), 0 0 22px -4px rgba(242,169,0,.45);
  cursor: pointer;
  animation: bc-launch-bounce 2.8s ease-in-out infinite;
  transition: transform .25s ease, opacity .25s ease, visibility .25s, box-shadow .25s;
}
@keyframes bc-launch-bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.bc-wheel-launcher:hover { animation: none; transform: translateY(-3px) scale(1.05); box-shadow: 0 16px 34px -6px rgba(0,0,0,.6), 0 0 0 4px rgba(242,169,0,.35), 0 0 26px -2px rgba(242,169,0,.6); }
.bc-wheel-launcher.is-hidden { opacity: 0; visibility: hidden; transform: translateY(24px); pointer-events: none; animation: none; }

.bc-wheel-launcher-badge {
  position: absolute; top: -11px; right: -9px; z-index: 4;
  background: var(--bc-red); color: #fff; font-weight: 900; font-size: .6rem;
  letter-spacing: .5px; padding: 3px 8px; border-radius: 9px;
  border: 1.5px solid #fff; box-shadow: 0 3px 9px rgba(0,0,0,.45);
  transform: rotate(7deg);
}

.bc-wheel-launcher-disc {
  width: 54px; height: 54px; border-radius: 50%;
  background: conic-gradient(
    var(--bc-green) 0 45deg, #f6efd8 45deg 90deg, var(--bc-red) 90deg 135deg, var(--bc-gold) 135deg 180deg,
    var(--bc-green-2) 180deg 225deg, #f6efd8 225deg 270deg, var(--bc-red) 270deg 315deg, var(--bc-gold) 315deg 360deg);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--bc-gold), inset 0 0 6px rgba(0,0,0,.3);
  animation: bc-wheel-spinicon 7s linear infinite;
  flex: 0 0 auto;
}
@keyframes bc-wheel-spinicon { to { transform: rotate(360deg); } }
.bc-wheel-launcher-txt { color: var(--bc-gold-2); font-weight: 800; font-size: .86rem; line-height: 1.1; text-transform: uppercase; letter-spacing: .4px; }
.bc-wheel-launcher-txt small { display: block; color: #e9dcc0; font-weight: 600; font-size: .68rem; text-transform: none; letter-spacing: 0; }
.bc-wheel-launcher-pulse {
  position: absolute; inset: -2px; border-radius: 999px;
  box-shadow: 0 0 0 0 rgba(242,169,0,.55);
  animation: bc-wheel-pulse 2.2s ease-out infinite;
  pointer-events: none;
}
@keyframes bc-wheel-pulse { to { box-shadow: 0 0 0 16px rgba(242,169,0,0); } }

/* ---- Modal + dimming overlay ------------------------------------------- */
.bc-wheel-overlay {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(18,11,5,.78);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; visibility: hidden; transition: opacity .28s;
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.bc-wheel-overlay.open { opacity: 1; visibility: visible; }

.bc-wheel-modal {
  position: relative;
  width: min(94vw, 440px);
  background: var(--bc-cream);
  background-image: url(../img/pattern.svg);
  border: 3px solid var(--bc-gold);
  border-radius: 20px;
  box-shadow: 0 24px 60px -18px rgba(0,0,0,.7);
  padding: 26px 22px 28px;
  text-align: center;
  transform: translateY(14px) scale(.96);
  transition: transform .28s ease;
}
.bc-wheel-overlay.open .bc-wheel-modal { transform: translateY(0) scale(1); }

.bc-wheel-close {
  position: absolute; top: 10px; right: 10px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--bc-header); color: #f4e9cf; border: 0; cursor: pointer;
  font-size: 1.1rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.bc-wheel-close:hover { background: var(--bc-red); }

.bc-wheel-title { font-family: var(--bc-display); font-weight: 900; font-size: 1.5rem; color: var(--bc-brown); margin: 0 0 2px; text-transform: uppercase; }
.bc-wheel-subtitle { font-size: .9rem; color: var(--bc-muted); margin: 0 0 16px; }

/* ---- The wheel ---------------------------------------------------------- */
.bc-wheel-wrap { position: relative; width: min(78vw, 300px); aspect-ratio: 1; margin: 0 auto 6px; }
.bc-wheel-pointer {
  position: absolute; top: -6px; left: 50%; transform: translateX(-50%); z-index: 3;
  width: 0; height: 0;
  border-left: 15px solid transparent; border-right: 15px solid transparent;
  border-top: 26px solid var(--bc-red);
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.4));
}
.bc-wheel {
  position: absolute; inset: 0; border-radius: 50%;
  border: 8px solid #fff;
  box-shadow: 0 0 0 6px var(--bc-gold), 0 10px 26px -8px rgba(0,0,0,.5);
  background: conic-gradient(
    var(--bc-green)   0deg  45deg,
    #f6efd8          45deg  90deg,
    var(--bc-red)    90deg 135deg,
    var(--bc-gold)  135deg 180deg,
    var(--bc-green-2)180deg 225deg,
    #f6efd8         225deg 270deg,
    var(--bc-red)   270deg 315deg,
    var(--bc-gold)  315deg 360deg);
  transition: transform 5s cubic-bezier(.15,.5,.05,1);
}
.bc-wheel-seg {
  position: absolute; inset: 0;
  transform: rotate(var(--a));
  display: flex; justify-content: center; align-items: flex-start;
  pointer-events: none;
}
.bc-wheel-seg span {
  margin-top: 9%;
  font-weight: 800; font-size: .74rem; color: #3a2812; line-height: 1;
  text-shadow: 0 1px 0 rgba(255,255,255,.35);
  white-space: nowrap;
}
.bc-wheel-seg.on-dark span { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.bc-wheel-hub {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 2;
  width: 54px; height: 54px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #ffd34d 60%, var(--bc-gold));
  border: 4px solid #fff; box-shadow: 0 3px 10px rgba(0,0,0,.35);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--bc-display); font-weight: 900; color: #3a2812; font-size: 1.4rem;
  overflow: hidden;
}
.bc-wheel-hub img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }

.bc-wheel-spin { margin-top: 14px; }
.bc-wheel-spin[disabled] { opacity: .55; cursor: default; transform: none; filter: none; }

/* ---- Result ------------------------------------------------------------- */
.bc-wheel-result { margin-top: 14px; display: none; }
.bc-wheel-result.show { display: block; animation: bc-pop .35s ease; }
@keyframes bc-pop { from { transform: scale(.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.bc-wheel-result-won { font-family: var(--bc-display); font-weight: 800; color: var(--bc-brown); font-size: 1.05rem; margin-bottom: 2px; }
.bc-wheel-result-prize { font-family: var(--bc-display); font-weight: 900; color: var(--bc-red); font-size: 1.7rem; margin-bottom: 12px; }

@media (max-width: 480px) {
  .bc-wheel-launcher-txt { display: none; }
  .bc-wheel-launcher { padding: 6px; }
}
