/* Overlay */
#wheel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  opacity: 0;
  transition: 0.4s;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
#wheel-overlay.active { opacity: 1; }

/* Popup konténer */
#wheel-container {
  background: #fff;
  padding: 25px;
  border-radius: 18px;
  box-shadow: 0 0 25px rgba(0,0,0,0.25);
  max-width: 90%;
  text-align: center;
}

/* Kerék wrapper */
#wheel-wrapper {
  position: relative;
  width: 600px;
  height: 600px;
  margin: 0 auto;
}

/* PNG kerék */
#wheel {
  width: 100%;
  height: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 50%;
  transition: transform 6s cubic-bezier(0.33, 1, 0.68, 1);
}

/* Mobil */
@media (max-width: 768px) {
  #wheel-wrapper {
    width: 320px;
    height: 320px;
  }
}

/* Villogó highlight gyűrű */
.winning-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 115%;
  height: 115%;
  transform-origin: center;
  border-radius: 50%;
  pointer-events: none;
  animation: blink 0.8s infinite alternate;
  mix-blend-mode: screen;
  box-shadow: 0 0 40px 8px rgba(255, 215, 0, 0.8);
  opacity: 0;
}
@keyframes blink {
  from { opacity: 0.2; }
  to   { opacity: 1; }
}

/* Gomb */
#wheel-btn {
  margin-top: 20px;
  background: linear-gradient(135deg, #1e90ff, #3742fa);
  color: #fff;
  padding: 12px 26px;
  font-size: 18px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: 0.2s;
}
#wheel-btn:hover { transform: scale(1.05); }

/* Popup animáció */
#winner-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -40%) scale(0.8);
  background: rgba(255, 255, 255, 0.98);
  text-align: center;
  padding: 1.8rem 2.2rem;
  border-radius: 1rem;
  opacity: 0;
  z-index: 99999;
  transition: transform 0.6s cubic-bezier(0.25,1,0.5,1), opacity 0.6s cubic-bezier(0.25,1,0.5,1);
  box-shadow: 0 0 30px rgba(0,0,0,0.35);
}
#winner-popup.active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}
#winner-popup h2 {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
  color: #1e90ff;
}
#winner-popup p {
  margin-bottom: 1rem;
  font-size: 1rem;
}
#winner-popup button {
  background: linear-gradient(135deg, #1e90ff, #3742fa);
  border: none;
  color: #fff;
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
}
