.fx {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 40;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.wheel-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: min(72vw, 480px);
}

.scene {
  position: relative;
  width: min(100%, 480px);
  aspect-ratio: 1;
  perspective: 1100px;
  perspective-origin: 50% 35%;
}

.floor-shadow {
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 4%;
  height: 18%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.65), transparent 70%);
  filter: blur(8px);
  transform: rotateX(70deg) scale(1.05);
}

.rig {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(22deg) rotateZ(-2deg);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.rig.is-spinning { transform: rotateX(18deg) rotateZ(0deg); }
.rig.is-dragging { transform: rotateX(26deg) rotateZ(0deg); }

.pointer-3d {
  position: absolute;
  top: -2%;
  left: 50%;
  z-index: 5;
  transform: translateX(-50%) translateZ(40px);
  filter: drop-shadow(0 10px 14px rgba(37, 99, 235, 0.35));
}

.pointer-blade {
  width: 0;
  height: 0;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-top: 42px solid #3b82f6;
  position: relative;
}

.pointer-blade::after {
  content: "";
  position: absolute;
  top: -42px;
  left: -8px;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 28px solid #93c5fd;
  opacity: 0.45;
}

.pointer-base {
  width: 22px;
  height: 14px;
  margin: -6px auto 0;
  border-radius: 6px 6px 8px 8px;
  background: linear-gradient(180deg, #e2e8f0, #64748b);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.wheel-shell {
  position: absolute;
  inset: 7%;
  transform-style: preserve-3d;
  border-radius: 50%;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.wheel-shell:active,
.wheel-shell.is-grabbing { cursor: grabbing; }

.rim-glow {
  position: absolute;
  inset: -4%;
  border-radius: 50%;
  background: conic-gradient(from 20deg, rgba(255, 255, 255, 0.04), rgba(59, 130, 246, 0.35), rgba(255, 255, 255, 0.04), rgba(16, 185, 129, 0.28), rgba(255, 255, 255, 0.04));
  filter: blur(10px);
  opacity: 0.65;
  animation: rim-spin 10s linear infinite;
  pointer-events: none;
}

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

#wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.45));
}

.hub-cap {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14%;
  height: 14%;
  transform: translate(-50%, -50%) translateZ(28px);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0%, #e2e8f0 28%, #64748b 70%, #334155 100%);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45), inset 0 2px 4px rgba(255, 255, 255, 0.75);
  z-index: 3;
  pointer-events: none;
}

.hub-cap::after {
  content: "";
  position: absolute;
  inset: 28%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #60a5fa, #3b82f6 55%, #2563eb);
}

.hint.is-hidden { opacity: 0; }

.options-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.options-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid #1e293b;
  font-size: 0.95rem;
  color: #e2e8f0;
}

.swatch {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 0.65rem;
  flex-shrink: 0;
}

.option-main {
  display: flex;
  align-items: center;
  min-width: 0;
}

.options-list button {
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  color: #93c5fd;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem 0.4rem;
}

.options-list button:hover {
  color: #fff;
}

@media (max-width: 600px) {
  .rig { transform: rotateX(16deg); }
  .scene { width: min(100%, 340px); }
}

@media (prefers-reduced-motion: reduce) {
  .rim-glow { animation: none; }
}
