.needle {
  filter:
    drop-shadow(0 0 2px rgba(255, 255, 255, .95))
    drop-shadow(0 4px 6px rgba(0, 0, 0, .55));
}

.needle span {
  background: linear-gradient(
    90deg,
    #000 0%,
    #1c1c1c 35%,
    #4a4a4a 48%,
    #111 54%,
    #000 100%
  );
}

.wheel-center {
  width: 124px;
  height: 124px;
  padding: 0;
  border: 8px solid #fff0f6;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.wheel-center span {
  display: block;
  color: #fff;
  font: 800 20px/1 system-ui, sans-serif;
  letter-spacing: .2px;
}

.wheel-center:hover {
  transform: translate(-50%, -50%) scale(1.06);
  box-shadow: 0 9px 28px rgba(77, 8, 43, .72);
  filter: brightness(1.08);
}

.wheel-center:active {
  transform: translate(-50%, -50%) scale(.98);
}

.wheel-center:focus-visible {
  outline: 4px solid #111;
  outline-offset: 4px;
}

.wheel-center:disabled {
  cursor: wait;
  filter: saturate(.65);
}

.result-card {
  margin-top: 14px;
}

.result-card.show {
  height: 150px;
  max-height: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.result-card .result-level {
  display: block;
  margin: 2px 0 5px;
  color: #a1285d;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .3px;
}

.result-card .result-level[hidden] {
  display: none;
}

.celebration {
  position: absolute;
  inset: -9%;
  z-index: 8;
  pointer-events: none;
}

.celebration span {
  --delay: 0s;
  --size: 20px;
  --drift: 0px;
  position: absolute;
  opacity: 0;
  color: #ffd044;
  font-size: var(--size);
  line-height: 1;
  transform: translate(-50%, -50%) scale(.15);
  text-shadow:
    0 0 5px #fff,
    0 0 12px rgba(255, 185, 219, .95);
}

.celebration span.heart {
  color: #ed4d91;
}

.celebration span.star:nth-child(4n + 1) {
  color: #fff2a8;
}

.celebration.active span {
  animation: celebration-twinkle .85s ease-in-out var(--delay) 3 both;
}

@keyframes celebration-twinkle {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(.1) rotate(-12deg);
  }
  42% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.35) rotate(8deg);
    filter: brightness(1.25);
  }
  100% {
    opacity: .08;
    transform: translate(calc(-50% + var(--drift)), calc(-50% - 8px)) scale(.45) rotate(18deg);
  }
}

@media (max-width: 650px) {
  .wheel-center {
    width: 96px;
    height: 96px;
    border-width: 6px;
  }

  .wheel-center span {
    font-size: 16px;
  }

  .result-card.show {
    height: 180px;
  }
}
