/* ===== WHEEL CONTAINER ===== */
.wheel-container {
  position: relative;
  width: 300px;
  margin: 40px auto;
}

/* ===== PERFECT WHEEL ===== */
.wheel {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  position: relative;
  overflow: hidden;

  border: 8px solid rgba(255,255,255,0.15);
  background-color: #111;

  /* ✅ PERFECT: rotated + correct colors */
  background: conic-gradient(
    from 22.5deg,
    #22c55e 0deg 45deg,    /* YES */
    #ef4444 45deg 90deg,   /* NO */
    #22c55e 90deg 135deg,
    #ef4444 135deg 180deg,
    #22c55e 180deg 225deg,
    #ef4444 225deg 270deg,
    #22c55e 270deg 315deg,
    #ef4444 315deg 360deg
  );

  box-shadow:
    0 15px 50px rgba(0,0,0,0.5),
    inset 0 0 25px rgba(255,255,255,0.08);

  transition: transform 4s cubic-bezier(0.17, 0.67, 0.2, 1);
}
/* CENTER HUB */
.wheel::after {
  content: "";
  position: absolute;
  width: 90px;
  height: 90px;
  background: rgba(0,0,0,0.75);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 20px rgba(0,0,0,0.6);
}

/* POINTER */
.wheel-container::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-bottom: 22px solid #fff;
  z-index: 10;
}

/* ===== BUTTON ===== */
.btn-group {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.btn-primary {
  padding: 12px 24px;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  color: #fff;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(124,58,237,0.4);
}

.btn-primary.disabled {
  opacity: 0.6;
  pointer-events: none;
}

/* ===== RESULT ===== */
.output {
  text-align: center;
  margin-top: 20px;
  font-size: 20px;
  font-weight: 600;
}

.result-yes {
  color: #22c55e;
}

.result-no {
  color: #ffffff;
}

/* ===== OVERLAY ===== */
.wheel-overlay {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(0,0,0,0.75);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  opacity: 0;
  pointer-events: none;
  transition: 0.3s ease;
}

.wheel-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.overlay-result {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #fff;
}

.try-again {
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  background: #fff;
  color: #000;
  font-weight: 600;
  cursor: pointer;
}