body {
  background:
    radial-gradient(circle at top, rgba(34, 197, 94, 0.16), transparent 28%),
    linear-gradient(135deg, #0f172a, #111827 45%, #020617);
}

canvas {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.panel {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border-radius: 1.5rem;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.45);
}

.stat-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.6);
  border-radius: 1rem;
  padding: 1rem;
}

.stat-label {
  color: rgb(148 163 184);
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.stat-value {
  font-size: 1.875rem;
  font-weight: 700;
}

.primary-btn,
.secondary-btn,
.control-btn {
  border: none;
  border-radius: 1rem;
  cursor: pointer;
  transition: 0.2s ease;
}

.primary-btn {
  background: rgb(16 185 129);
  color: rgb(2 6 23);
  font-weight: 700;
  padding: 0.75rem 1rem;
}

.primary-btn:hover {
  background: rgb(52 211 153);
}

.secondary-btn {
  background: rgb(51 65 85);
  color: white;
  font-weight: 700;
  padding: 0.75rem 1rem;
}

.secondary-btn:hover {
  background: rgb(71 85 105);
}

.control-btn {
  background: rgba(30, 41, 59, 0.9);
  color: white;
  font-size: 1.25rem;
  padding: 0.75rem 1rem;
}

.control-btn:hover {
  background: rgb(51 65 85);
}

.primary-btn:disabled,
.secondary-btn:disabled,
.control-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* 粒子特效样式 */
.particle {
  position: absolute;
  pointer-events: none;
  animation: particle-explode 0.6s ease-out forwards;
}

@keyframes particle-explode {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
  }
}

/* 音效开关样式 */
#soundToggle {
  transition: all 0.2s ease;
}

#soundToggle:hover {
  transform: scale(1.1);
}

#soundToggle:checked {
  background-color: #10b981;
}
