* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

:root {
  --gold: #d4af37;
  --gold-light: #f5dc7f;
  --midnight: #1a1a2e;
  --smoke: #2d2d2d;
}

/* Jazz Title */
.jazz-title {
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  text-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
  animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
  from { text-shadow: 0 0 20px rgba(212, 175, 55, 0.3); }
  to { text-shadow: 0 0 40px rgba(212, 175, 55, 0.6); }
}

.text-gold {
  color: var(--gold);
}

.text-gold-light {
  color: var(--gold-light);
}

/* Glass Panel */
.glass-panel {
  background: rgba(26, 26, 46, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Timer Display */
.timer-circle {
  width: 100%;
  max-width: 300px;
  height: auto;
  margin: 0 auto;
  display: block;
  filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.3));
}

.timer-display {
  font-size: 4rem;
  font-weight: 300;
  color: white;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
}

.timer-active {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Buttons */
.jazz-button {
  padding: 12px 32px;
  border: none;
  border-radius: 12px;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.jazz-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.jazz-button-primary {
  background: linear-gradient(135deg, var(--gold) 0%, #c9a227 100%);
  color: #1a1a2e;
  font-weight: 600;
}

.jazz-button-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.jazz-button-secondary {
  background: rgba(71, 85, 105, 0.8);
  color: white;
}

.jazz-button-secondary:hover:not(:disabled) {
  background: rgba(100, 116, 139, 0.8);
  transform: translateY(-2px);
}

.jazz-button-danger {
  background: rgba(220, 38, 38, 0.8);
  color: white;
}

.jazz-button-danger:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.9);
  transform: translateY(-2px);
}

.jazz-button-small {
  padding: 8px 16px;
  font-size: 0.875rem;
}

/* Slider */
.slider {
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: rgba(71, 85, 105, 0.5);
  outline: none;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.4);
}

.slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.4);
}

/* Music note animation */
.music-note {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
}

/* Particles background */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.1;
  background-image: 
    radial-gradient(2px 2px at 20% 30%, white, transparent),
    radial-gradient(2px 2px at 60% 70%, var(--gold), transparent),
    radial-gradient(1px 1px at 50% 50%, white, transparent),
    radial-gradient(1px 1px at 80% 10%, var(--gold), transparent),
    radial-gradient(2px 2px at 90% 60%, white, transparent),
    radial-gradient(1px 1px at 33% 85%, var(--gold), transparent);
  background-size: 200% 200%;
  animation: particleFloat 20s ease-in-out infinite;
}

@keyframes particleFloat {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
}

/* Responsive */
@media (max-width: 640px) {
  .timer-display {
    font-size: 3rem;
  }
  
  .jazz-button {
    padding: 10px 24px;
    font-size: 0.875rem;
  }
}