@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  z-index: 9999;
  display: flex;
}
.overlay.active { display: flex; }

.modal {
  background: #fff;
  border-radius: 12px;
  padding: 30px 20px;
  width: min(600px, 96%);
  max-width: 600px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  text-align: center;
  animation: fadeIn .4s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal h2 {
  margin: 0 0 30px;
  font-size: 1.1rem;
}

.wheel-wrapper {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

/* 🧩 CORREÇÃO: garante fundo transparente e renderização correta */
.wheel {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  background: radial-gradient(circle at center, #fff 0%, #fafafa 100%);
}
.wheel__inner {
  width: 100%;
  height: 100%;
  transition: transform 6s cubic-bezier(.18, .86, .34, 1);
  transform: rotate(0deg);
  will-change: transform;
}

/* SVG dentro da roleta sem fundo preto */
.wheel__inner svg {
  background: transparent !important;
  border-radius: 50%;
  display: block;
}

/* 🧭 Ponteiro */
.pointer {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -13px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 20px solid #1e293b;
  z-index: 10;
}

#finalMsg span {
  display: block;
  font-size: 120px;
  line-height: 100px;
}

.center-cta {
  margin-top: 15px;
}

.overlay .button {
  padding: 15px 45px;
  text-transform: uppercase;
}
.overlay .button:hover {
  opacity: 0.9 !important;
}

.spin-btn {
  padding: 10px 26px;
  border-radius: 6px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  background: #1e293b;
  color: #fff;
  transition: background 0.3s ease;
}
.spin-btn:hover {
  background: #334155;
}
.spin-btn[disabled] {
  opacity: .5;
  cursor: not-allowed;
}

#claimBtn, #viewRecBtn {
  padding: 10px 26px;
  border-radius: 6px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  background: #16a34a;
  color: #fff;
  transition: background 0.3s ease;
}
#claimBtn:hover,
#viewRecBtn:hover {
  background: #15803d;
}

.prize {
  margin-top: 25px;
  font-weight: 700;
  font-size: 1.05rem;
}

/* Loader */
.loader {
  margin: 10px auto;
  width: 40px;
  height: 40px;
  border: 4px solid #ccc;
  border-top: 4px solid #555;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Responsividade */
@media (max-width:520px){
  .modal { padding: 20px; }
  .wheel { width: 260px; height: 260px; }
}