.wheel-stage {
  position: relative;
  width: min(92vmin, 720px, calc(100vh - 100px));
  max-height: calc(100vh - 100px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.wheel-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  padding: 14px;
  background:
    radial-gradient(circle at 50% 50%, #2a2a2a 0%, #111 60%, #000 100%);
  box-shadow:
    0 0 0 4px var(--c-accent-strong),
    0 0 0 8px var(--c-bg),
    0 0 0 12px var(--c-accent),
    0 24px 80px rgba(0, 0, 0, 0.6),
    inset 0 0 32px rgba(0, 0, 0, 0.45);
}

.wheel {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--c-bg-soft);
  transform-origin: 50% 50%;
  will-change: transform;
  transition: transform 4.5s cubic-bezier(0.17, 0.67, 0.15, 0.99);
}

.wheel.is-spinning {
  transition: transform 4.5s cubic-bezier(0.17, 0.67, 0.15, 0.99);
}

@media (prefers-reduced-motion: reduce) {
  .wheel { transition: none; }
}

.wheel svg {
  width: 100%;
  height: 100%;
  display: block;
}

.wheel-segment {
  stroke: rgba(0, 0, 0, 0.35);
  stroke-width: 2;
}

.wheel-label {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: var(--letter-spacing-display);
  text-transform: uppercase;
  fill: #1a1a1a;
  font-weight: 400;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.25);
  stroke-width: 0.5;
}

.wheel-label--muted {
  fill: rgba(255, 255, 255, 0.85);
}

.wheel-pointer {
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 22px solid transparent;
  border-right: 22px solid transparent;
  border-top: 38px solid var(--c-accent);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
  z-index: 4;
}

.wheel-pointer::after {
  content: "";
  position: absolute;
  top: -34px;
  left: -8px;
  width: 16px;
  height: 16px;
  background: var(--c-accent);
  border-radius: 50%;
  border: 3px solid var(--c-bg);
}

.spin-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-accent-strong) 100%);
  color: var(--c-bg);
  font-family: var(--font-display);
  font-size: clamp(var(--fs-xl), 3.5vmin, var(--fs-3xl));
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  border: 6px solid var(--c-bg);
  box-shadow:
    0 8px 24px rgba(255, 155, 66, 0.45),
    inset 0 -4px 0 rgba(0, 0, 0, 0.2),
    inset 0 2px 0 rgba(255, 255, 255, 0.3);
  transition: transform var(--dur-fast) var(--ease-out), filter var(--dur-fast) var(--ease-out);
  z-index: 3;
  cursor: pointer;
  display: grid;
  place-items: center;
  user-select: none;
}

.spin-button:hover:not(:disabled) {
  filter: brightness(1.05);
  transform: translate(-50%, -50%) scale(1.04);
}

.spin-button:active:not(:disabled) {
  transform: translate(-50%, -50%) scale(0.97);
}

.spin-button:disabled {
  background: linear-gradient(135deg, #555 0%, #333 100%);
  color: rgba(255, 255, 255, 0.6);
  cursor: not-allowed;
  filter: saturate(0.3);
}

@media (prefers-reduced-motion: reduce) {
  .spin-button:hover:not(:disabled),
  .spin-button:active:not(:disabled) {
    transform: translate(-50%, -50%);
  }
}