* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
}

html, body, #root {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: 'Nunito', system-ui, sans-serif;
  background: #1a1a2e;
  color: #e0dcd4;
}

@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.85; }
}

@keyframes pulseRing {
  0% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.15); opacity: 0.2; }
  100% { transform: scale(1); opacity: 0.6; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes indicatorPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.7; }
}

.breathing-bg {
  animation: breathe 4s ease-in-out infinite;
  will-change: transform, opacity;
}

.pulse-ring {
  animation: pulseRing 2s ease-in-out infinite;
}

.fade-in {
  animation: fadeIn 400ms ease forwards;
}

.indicator-pulse {
  animation: indicatorPulse 3s ease-in-out infinite;
}

/* Custom range slider */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-track {
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(240, 236, 227, 0.9);
  margin-top: -11px;
  box-shadow: 0 0 12px rgba(240, 236, 227, 0.4);
}

input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
}

input[type="range"]::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(240, 236, 227, 0.9);
  border: none;
  box-shadow: 0 0 12px rgba(240, 236, 227, 0.4);
}

.frosted-glass {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(26, 26, 46, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.sound-btn-active {
  box-shadow: 0 0 20px var(--glow-color, rgba(255, 200, 100, 0.3));
}

.transition-all-smooth {
  transition: all 400ms ease;
}