.roulette-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

#roulette-wheel {
  position: relative;
  width: min(280px, 70vw);
  height: min(280px, 70vw);
  border-radius: var(--radius-full);
  background: conic-gradient(
    from 0deg,
    var(--arko-blue-dark) 0deg 45deg,
    var(--arko-blue-light) 45deg 90deg,
    var(--arko-blue-dark) 90deg 135deg,
    var(--arko-blue-light) 135deg 180deg,
    var(--arko-blue-dark) 180deg 225deg,
    var(--arko-blue-light) 225deg 270deg,
    var(--arko-blue-dark) 270deg 315deg,
    var(--arko-blue-light) 315deg 360deg
  );
  box-shadow: var(--shadow-card), inset 0 0 0 8px var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow var(--transition-medium);
}

#roulette-wheel::before {
  content: '';
  position: absolute;
  inset: 12%;
  border-radius: var(--radius-full);
  background: var(--white);
  box-shadow: inset 0 2px 12px rgb(0 56 101 / 0.08);
}

#roulette-wheel::after {
  content: '';
  position: absolute;
  top: -4%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 16px solid var(--arko-blue-dark);
  filter: drop-shadow(0 2px 4px rgb(0 56 101 / 0.3));
  z-index: 2;
}

#roulette-wheel.is-spinning {
  animation: wheel-spin 0.8s linear infinite;
}

#roulette-wheel.is-active {
  box-shadow: var(--shadow-card), 0 0 0 4px var(--arko-blue-light);
}

#roulette-wheel.has-winner {
  box-shadow:
    var(--shadow-card),
    0 0 0 4px var(--arko-blue-light),
    0 0 32px rgb(0 156 222 / 0.35);
}

@keyframes wheel-spin {
  to {
    transform: rotate(360deg);
  }
}

.wheel-number {
  position: relative;
  z-index: 1;
  font-size: clamp(2.5rem, 11vw, 4rem);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--arko-gray);
  transition:
    color var(--transition-medium),
    transform var(--transition-medium),
    text-shadow var(--transition-medium);
}

.wheel-number.is-drawing {
  color: var(--arko-blue-light);
  animation: number-pulse 0.35s ease-in-out infinite alternate;
}

.wheel-number.is-winner {
  color: var(--arko-blue-dark);
  font-weight: 800;
  transform: scale(1.08);
  text-shadow:
    0 0 20px rgb(0 156 222 / 0.5),
    0 2px 8px rgb(0 56 101 / 0.15);
  animation: winner-pop 0.5s ease-out;
}

@keyframes number-pulse {
  from {
    opacity: 0.88;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1.04);
  }
}

@keyframes winner-pop {
  0% {
    transform: scale(0.55);
    opacity: 0.5;
  }
  70% {
    transform: scale(1.12);
  }
  100% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  #roulette-wheel.is-spinning {
    animation: none;
  }

  .wheel-number.is-drawing,
  .wheel-number.is-winner {
    animation: none;
  }

  .wheel-number.is-winner {
    transform: none;
  }
}
