* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  height: 100vh;
  display: grid;
  place-items: center;
  background-color: #25335b;
}

.wheel {
  width: 200px;
  height: 200px;
  border: 10px solid #ffd700;
  border-radius: 50%;
  position: relative;
  animation: spin 5s linear infinite;
}

.wheel::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  background-color: #ffd700;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.segment {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  clip-path: polygon(50% 50%, 100% 0, 100% 100%);
  background-color: var(--color);
  transform: rotate(calc(var(--i) * 30deg));
}
