.wheel-wrapper {
  position: relative;
  width: min(620px, 96vw);   /* big wheel */
  aspect-ratio: 1 / 1;
  margin: 0 auto 1.1rem;
  animation: floatWheel 5s ease-in-out infinite;
}

/* Wheel container (button) */
.wheel {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 8px solid #020617;
  background: #020617;
  box-shadow:
    0 22px 45px rgba(0, 0, 0, 0.9),
    inset 0 0 18px rgba(15, 23, 42, 0.9);
  cursor: pointer;
  /* IMPORTANT: no transform transition, we animate in JS */
  transition: box-shadow 0.18s ease;
  outline: none;
  overflow: hidden;
}

.wheel:hover {
  box-shadow:
    0 26px 55px rgba(0, 0, 0, 1),
    inset 0 0 22px rgba(15, 23, 42, 1);
}

.wheel.is-spinning {
  cursor: default;
}

/* The drawn wheel */
.wheel-canvas {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
}

/* Pointer at TOP */
/* Pointer – inside the wheel, pointing DOWN */
.wheel-pointer {
  position: absolute;
  top: 10px; /* inside the wheel */
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;

  /* triangle that points DOWN ( \/ ) */
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-top: 28px solid #f97373; /* this is the colored side now */
  border-bottom: 0;

  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.9));
  z-index: 3;
}


/* Result box */
.result {
  margin-top: 0.25rem;
  font-size: 0.95rem;
  min-height: 1.4rem;
  color: #e5e7eb;
  text-align: center;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #1d2333, #111827);
  border: 1px solid #1f2937;
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.7);
}

.result--error {
  background: linear-gradient(90deg, #3b0b0b, #450a0a);
  border-color: #7f1d1d;
  color: #fecaca;
}

.result--pulse {
  animation: pulseResult 0.5s ease-out;
}

/* Animations */
@keyframes floatWheel {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes pulseResult {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.04);
  }
  100% {
    transform: scale(1);
  }
}
