:root{
  --m1:#01BDB2;
  --m2:#142959;

  --wheel-red:#c41212;
  --wheel-gold:#f6d26a;
  --wheel-cream:#fff2bf;
  --wheel-black:#111111;
}

/* overlay */
.mondial-spin-overlay{
  position:fixed; inset:0;
  background:rgba(5,10,25,.7);
  z-index:999999;
  display:none;
  align-items:center;
  justify-content:center;
  padding:16px;
}

/* popup */
.mondial-spin-popup{
  width:100%;
  max-width:560px;
  background:var(--m2);
  color:#fff;
  border-radius:18px;
  padding:18px;
  position:relative;
  font-family:system-ui, sans-serif;
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 24px 80px rgba(0,0,0,.55);
  display:flex;
  flex-direction:column;
  gap:12px;
}

/* HARD reset inside popup so Elementor doesn't win */
 

/* close */
.mondial-spin-close{
  position:absolute; top:10px; right:10px;
  width:36px; height:36px;
  display:grid; place-items:center;
  background:rgba(255,255,255,.08);
  border-radius:10px;
  font-size:20px;
  border:0px solid;
}

/* header */
.mondial-spin-header{
  text-align:center;
  padding-top:2px;
}
.mondial-spin-header h3{
  margin:0 0 6px;
  font-size:20px;
  font-weight:900;
}
.mondial-spin-header p{
  margin:0;
  font-size:14px;
  font-weight:600;
  color:#d9e4ff;
  line-height:1.4;
}

/* wheel */
.mondial-wheel-area{
  display:grid;
  place-items:center;
  margin-top:20px;
  margin-bottom:40px;
}

.mondial-wheel-wrap{
  position:relative;
  width:min(72vw, 340px) !important;
  height:auto !important;
  aspect-ratio:1/1 !important;     /* ✅ forces square */
  display:grid;
  place-items:center;
}

/* pointer */
/* wheel wrap must be relative (you already have that) */
.mondial-wheel-wrap{
  position: relative;
}

/* RESPONSIVE POINTER */
.mondial-pointer{
  position: absolute;
  top: calc(var(--pointer-size, 22px) * -0.9); /* sits slightly above wheel */
  left: 50%;
  transform: translateX(-50%);

  width: 0;
  height: 0;

  /* triangle pointing DOWN */
  border-left: calc(var(--pointer-size, 22px) * 0.55) solid transparent;
  border-right: calc(var(--pointer-size, 22px) * 0.55) solid transparent;
  border-top: var(--pointer-size, 22px) solid #e8c664;

  filter: drop-shadow(0 4px 8px rgba(0,0,0,.6));
  z-index: 10;
}

/* fine-tune pointer size on smaller screens */
@media (max-width: 480px){
  .mondial-pointer{
    --pointer-size: 18px;
    top: -14px;
  }
}
@media (max-width: 360px){
  .mondial-pointer{
    --pointer-size: 16px;
    top: -12px;
  }
}


/* wheel with rim */
.mondial-wheel{
  width:100% !important;
  height:100% !important;          /* ✅ no oval */
  aspect-ratio:1/1 !important;
  border-radius:50% !important;
  overflow:hidden;
  background:var(--wheel-black);
  position:relative;
  transition:transform 4.8s cubic-bezier(.12,.75,.12,1);

  box-shadow:
    0 0 0 6px var(--wheel-gold),
    0 0 0 18px var(--wheel-red),
    0 0 0 22px var(--wheel-gold),
    0 10px 30px rgba(0,0,0,.7);
}

/* slices */
.mslice{
  position:absolute;
  width:50%;
  height:50%;
  transform-origin:bottom right;
  transform:rotate(calc(45deg * var(--i)));
  clip-path:polygon(0 0, 60% 0, 100% 100%, 0 60%);
  display:flex; justify-content:center; align-items:center;
  background:var(--wheel-cream);
}

.mslice:nth-child(even){
  background:var(--wheel-black);
}

.mslice span{
  transform:rotate(45deg);
  font-size:26px;
  font-weight:900;
  color:#000;
  text-shadow:0 1px 0 rgba(255,255,255,.35);
}

.mslice:nth-child(even) span{
  color:var(--wheel-gold);
  text-shadow:none;
}

/* ✅ CHANGE “Miles” → “Free Spins” */
.mslice span::after{
  content:" Free Spins";
  display:block;
  font-size:10px;
  font-weight:800;
  margin-top:-3px;
  opacity:.95;
}

.mslice.hot{
  background:linear-gradient(135deg, #ffd37a, var(--wheel-gold));
}
.mslice.hot span,
.mslice.hot span::after{
  color:#111;
}

/* center spin cap */
.mondial-spin-btn{
  width:96px !important;
  height:96px !important;
  border-radius:50% !important;  /* ✅ re-round */
  background:radial-gradient(circle at 30% 30%, #ff6b6b, #b30000);
  color:#fff;
  font-weight:900;
  letter-spacing:1px;
  display:grid; place-items:center;
  text-align:center;

  box-shadow:
    inset 0 0 0 6px var(--wheel-gold),
    inset 0 0 0 12px rgba(0,0,0,.35),
    0 8px 18px rgba(0,0,0,.6);
}
.mondial-spin-btn small{
  display:block;
  font-size:10px;
  font-weight:700;
  opacity:.85;
  margin-top:2px;
}

/* ✅ COUNTDOWN forced layout (theme-safe) */
.mondial-countdown-wrap{
  width:100%;
  display:flex !important;
  justify-content:center !important;
  margin-top:2px;
}

.mondial-countdown{
  display:flex !important;           /* ✅ no stacking */
  gap:8px !important;
  width:100%;
  max-width:420px;
}

.mondial-countdown .cbox{
  flex:1 1 0;
  min-width:70px;
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.12);
  border-radius:10px;
  text-align:center;
  padding:8px 6px;
}
.mondial-countdown .cbox span{
  display:block;
  font-size:20px;
  font-weight:900;
  line-height:1;
}
.mondial-countdown .cbox small{
  font-size:10px;
  opacity:.8;
}

/* footer */
.mondial-spin-footer{
  display:flex;
  flex-direction:column;
  gap:8px;
  align-items:center;
}

.mondial-spin-trigger{
  width:100%!important;
  padding:14px 16px!important;
  border-radius:12px!important;
  background:var(--m1)!important;
  color:#fff!important;
  font-size:22px!important;
  font-weight:700!important;
  text-align:center;
  max-width:360px!important;
  border:0px solid!important;
  margin-bottom:40px!important;
}

.mondial-spin-note{
  margin:0;
  font-size:11px;
  color:#c8d6ff;
  opacity:.9;
}
.mondial-spin-close {
    position: absolute;
    top: 10px !important;
    right: 10px !important; 
    display: grid !important;
    place-items: center !important;
    background: transparent !important;
    border-radius: 10px !important;
    font-size: 20px !important;
    border: 0px solid !important;
    padding: .5rem 1rem !important;
}

.mondial-spin-header h3 {
    margin: 20px 0 6px!important;
    font-size: 34px!important;
    font-weight: 700!important;
}

.mondial-spin-header p {
    margin: 0;
    font-size: 18px!important;
    font-weight: 400!important;
    color: #d9e4ff;
    line-height: 1.4;
}