#wheel-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

#wheel-overlay.wheel-hidden {
  display: none !important;
}

.wheel-modal {
  position: relative;
  width: 100%;
  max-width: 360px;
  background: linear-gradient(165deg, #1e2030 0%, #151721 100%);
  border: 1px solid rgba(255, 215, 100, 0.25);
  border-radius: 20px;
  padding: 24px 20px 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 40px rgba(124, 58, 237, 0.15);
  text-align: center;
  animation: wheelPopIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wheel-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.75);
  font-size: 22px;
  line-height: 32px;
  cursor: pointer;
  z-index: 5;
  -webkit-tap-highlight-color: transparent;
}

.wheel-close:active {
  background: rgba(255, 255, 255, 0.16);
}

#wheel-overlay.wheel-locked .wheel-close {
  display: none;
}

@keyframes wheelPopIn {
  from {
    opacity: 0;
    transform: scale(0.88) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.wheel-title {
  font-size: 22px;
  font-weight: 700;
  color: #ffd166;
  margin-bottom: 4px;
  letter-spacing: 1px;
}

.wheel-subtitle {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 20px;
}

.wheel-stage {
  position: relative;
  width: 280px;
  height: 280px;
  margin: 0 auto 20px;
}

.wheel-pointer {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 22px solid #ffd166;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
  z-index: 3;
}

.wheel-disc-wrap {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  padding: 6px;
  background: linear-gradient(135deg, #ffd166, #7c3aed, #ffd166);
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.35);
}

.wheel-disc {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
  transform: rotate(0deg);
  position: relative;
}

.wheel-labels {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
}

.wheel-label {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  margin-left: -20px;
  margin-top: -10px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  transform-origin: center center;
}

.wheel-center-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid #ffd166;
  background: linear-gradient(180deg, #7c3aed, #5b21b6);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  z-index: 4;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  padding: 4px;
  -webkit-tap-highlight-color: transparent;
}

.wheel-center-btn:active:not(:disabled) {
  transform: translate(-50%, -50%) scale(0.95);
}

.wheel-center-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.wheel-tip {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

/* 领取中 */
.wheel-claim {
  display: none;
  flex-direction: column;
  align-items: center;
  padding: 20px 0 8px;
}

.wheel-claim.active {
  display: flex;
}

.wheel-spin-stage.hidden {
  display: none;
}

.wheel-claim-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #ffd166);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 16px;
  animation: wheelPulse 1.5s ease-in-out infinite;
}

@keyframes wheelPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.4); }
  50% { transform: scale(1.05); box-shadow: 0 0 0 12px rgba(124, 58, 237, 0); }
}

.wheel-claim-title {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.wheel-claim-amount {
  font-size: 36px;
  font-weight: 800;
  color: #ffd166;
  margin-bottom: 16px;
  font-family: 'DIN Alternate', 'PingFang SC', sans-serif;
}

.wheel-claim-status {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 20px;
}

.wheel-progress-wrap {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 12px;
}

.wheel-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #7c3aed, #ffd166);
  border-radius: 3px;
  transition: width 0.3s linear;
}

.wheel-claim-hint {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}

.wheel-dots {
  display: inline-flex;
  gap: 4px;
  margin-left: 2px;
}

.wheel-dots span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  animation: wheelDot 1.2s ease-in-out infinite;
}

.wheel-dots span:nth-child(2) { animation-delay: 0.2s; }
.wheel-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes wheelDot {
  0%, 80%, 100% { opacity: 0.3; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}
