.wheel-sheet .wheel-panel {
  text-align: center;
  overflow: hidden;
}

.wheel-status {
  font-size: 13px;
  margin-bottom: 8px;
}

.wheel-stage {
  position: relative;
  width: min(300px, 88vw);
  height: min(300px, 88vw);
  margin: 8px auto 20px;
  flex-shrink: 0;
}

.wheel-glow {
  position: absolute;
  inset: -6%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.2) 0%, transparent 68%);
  opacity: 0.5;
  pointer-events: none;
}

.wheel-sheet.wheel-won .wheel-glow {
  opacity: 0.85;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.35) 0%, transparent 70%);
}

.wheel-pointer {
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 26px solid var(--accent);
  filter: drop-shadow(0 4px 8px rgba(45, 212, 191, 0.55));
  z-index: 6;
}

.wheel-disc-wrap {
  position: absolute;
  inset: 12px;
}

.wheel-rim {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 0 2px rgba(45, 212, 191, 0.1);
  pointer-events: none;
  z-index: 2;
}

.wheel-disc {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 0 24px rgba(0, 0, 0, 0.45),
    0 12px 40px rgba(0, 0, 0, 0.55);
  transform: rotate(0deg);
  will-change: transform;
}

.wheel-disc::before {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  z-index: 1;
}

.wheel-disc-spinning {
  transition: transform 5.2s cubic-bezier(0.08, 0.82, 0.12, 1);
}

.wheel-confetti {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 8;
  overflow: visible;
}

.wheel-confetti-piece {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  opacity: 0;
  animation: wheelConfettiFly var(--d, 0.9s) ease-out forwards;
}

@keyframes wheelConfettiFly {
  0% {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(0.6);
  }
}

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

.wheel-segment-label {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  transform-origin: center center;
  pointer-events: none;
}

.wheel-segment-text {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 52px;
  height: 118px;
  padding-top: 10px;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.75);
  pointer-events: none;
}

.wheel-segment-text strong {
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
}

.wheel-segment-text small {
  font-size: 13px;
  margin-top: 2px;
  opacity: 0.9;
}

.wheel-hub {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(145deg, #1c1c22, #0c0c0e);
  border: 3px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  z-index: 4;
  pointer-events: none;
}

.wheel-spin-btn {
  margin: 0 auto 12px;
  display: block;
  min-width: 220px;
}

.wheel-spin-btn.disabled,
.wheel-spin-btn:disabled {
  opacity: 0.55;
}

.wheel-result {
  min-height: 72px;
  padding: 14px;
  border-radius: 14px;
  background: var(--bg3);
  border: 1px solid var(--line);
}

.wheel-result-win {
  border-color: rgba(45, 212, 191, 0.45);
  background: linear-gradient(180deg, rgba(45, 212, 191, 0.12), var(--bg3));
  animation: wheelResultPop 0.5s cubic-bezier(0.34, 1.4, 0.64, 1);
}

@keyframes wheelResultPop {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.wheel-win-burst {
  font-size: 42px;
  line-height: 1;
  margin-bottom: 6px;
  animation: wheelBurst 0.6s ease-out;
}

@keyframes wheelBurst {
  0% { transform: scale(0.3) rotate(-20deg); opacity: 0; }
  60% { transform: scale(1.2) rotate(8deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); }
}

.wheel-result h3 {
  font-size: 22px;
  margin: 0 0 4px;
  color: var(--accent);
}

.wheel-result-error .output-error-text {
  margin: 0;
}

.wheel-entry-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.08), var(--bg3));
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.wheel-entry-icon {
  font-size: 28px;
}

.wheel-entry-btn span:last-child {
  margin-left: auto;
  opacity: 0.5;
}
