/* Custom styles & animations for Kẹo Con Music Guessing Game */

:root {
  --easy-color: #22c55e;
  --medium-color: #eab308;
  --hard-color: #f97316;
  --expert-color: #ef4444;
  --impossible-color: #a855f7;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #080c10;
  color: #f1f5f9;
  user-select: none;
  -webkit-font-smoothing: antialiased;
}

/* Glassmorphism containers */
.glass-panel {
  background: rgba(18, 24, 33, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-dropdown {
  background: rgba(15, 20, 28, 0.96);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.7);
}

/* Big Circular Play Button */
.play-btn-wrapper {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-btn-circle {
  width: 116px;
  height: 116px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 30px -4px currentColor;
}

.play-btn-circle:hover {
  transform: scale(1.06);
}

.play-btn-circle:active {
  transform: scale(0.96);
}

/* SVG Radial Timer Ring */
.progress-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 140px;
  height: 140px;
  transform: rotate(-90deg);
  pointer-events: none;
}

.progress-ring__circle {
  transition: stroke-dashoffset 0.05s linear;
  stroke-linecap: round;
}

/* Difficulty glow themes */
.glow-easy {
  box-shadow: 0 0 25px rgba(34, 197, 94, 0.35);
}
.glow-medium {
  box-shadow: 0 0 25px rgba(234, 179, 8, 0.35);
}
.glow-hard {
  box-shadow: 0 0 25px rgba(249, 115, 22, 0.35);
}
.glow-expert {
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.35);
}
.glow-impossible {
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.35);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Pulse animation when playing */
@keyframes audio-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.12);
    opacity: 0.3;
  }
}

.pulsing-wave {
  animation: audio-pulse 1.2s infinite ease-in-out;
}
