.selector-container {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 500px;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  background: var(--bg-surface);
  color: var(--text-base);
  box-shadow: inset 0 0 0 1px var(--border-base);
}

.canvas-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  touch-action: none;
}

.selector-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.mode-selector {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  background: var(--bg-surface);
  border: 1px solid var(--border-base);
  border-radius: 9999px;
  padding: 3px;
  z-index: 20;
  box-shadow: 0 10px 25px -5px var(--shadow-base), 0 8px 10px -6px var(--shadow-base);
}

.mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dimmed);
  background: transparent;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  white-space: nowrap;
}

.mode-btn:hover {
  color: var(--text-base);
}

.mode-btn.active {
  color: var(--text-base);
  background: var(--bg-muted);
}

.mode-btn svg {
  flex-shrink: 0;
}

.icon-btn {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bg-surface);
  border: 1px solid var(--border-base);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  z-index: 20;
  color: var(--text-dimmed);
}

.icon-btn:hover {
  color: var(--text-base);
  background: var(--bg-muted);
}

.icon-btn.active {
  color: var(--text-base);
  background: var(--bg-muted);
}

.icon-btn.muted {
  opacity: 0.5;
}

.sound-btn {
  top: 20px;
  right: 20px;
}

.reset-btn {
  bottom: 20px;
  right: 20px;
}

.wheel-actions {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 20;
  pointer-events: none;
}

.wheel-actions .action-btn {
  pointer-events: auto;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  font-weight: 600;
  outline: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.action-btn.spin {
  padding: 14px 32px;
  font-size: 16px;
  color: var(--text-on-primary);
  background: var(--primary);
  box-shadow: 0 8px 24px var(--shadow-hover);
}

.action-btn.spin:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px var(--shadow-hover);
}

.action-btn.spin:active {
  transform: translateY(0);
}

.action-btn.spin:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.action-btn.clear {
  padding: 8px 20px;
  font-size: 13px;
  color: var(--text-dimmed);
  background: var(--bg-surface);
  border: 1px solid var(--border-base);
}

.action-btn.clear:hover {
  color: var(--text-base);
  background: var(--bg-muted);
}

.instructions-overlay {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
  z-index: 20;
}

.instructions-text {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-dimmed);
  background: var(--bg-surface);
  padding: 8px 20px;
  border-radius: 9999px;
  border: 1px solid var(--border-base);
  letter-spacing: 0.025em;
  animation: pulse-glow 2s infinite ease-in-out;
}

.instructions-status {
  margin-top: 10px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.instructions-status.countdown {
  color: var(--text-base);
  animation: scale-up-pulse 0.5s infinite alternate ease-in-out;
}

.instructions-status.celebration {
  color: var(--color-warning);
  text-shadow: 0 0 10px var(--shadow-hover);
  animation: winner-bounce 0.6s infinite alternate ease-in-out;
}

@keyframes pulse-glow {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1.0;
  }
}

@keyframes scale-up-pulse {
  from {
    transform: scale(0.95);
  }
  to {
    transform: scale(1.05);
  }
}

@keyframes winner-bounce {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-8px);
  }
}

@media (max-width: 768px) {
  .mode-selector {
    top: 12px;
    padding: 2px;
  }

  .mode-btn {
    padding: 6px 12px;
    font-size: 12px;
    gap: 4px;
  }

  .mode-btn svg {
    width: 16px;
    height: 16px;
  }

  .icon-btn {
    width: 36px;
    height: 36px;
  }

  .icon-btn svg {
    width: 18px;
    height: 18px;
  }

  .sound-btn {
    top: 12px;
    right: 12px;
  }

  .reset-btn {
    bottom: 12px;
    right: 12px;
  }

  .wheel-actions {
    bottom: 90px;
  }

  .action-btn.spin {
    padding: 12px 24px;
    font-size: 14px;
  }

  .action-btn.clear {
    padding: 6px 16px;
    font-size: 12px;
  }

  .instructions-overlay {
    bottom: 30px;
  }
}
