/* Base fonts */
body {
  font-family: 'Nunito', sans-serif;
  touch-action: manipulation;
}
.title {
  font-family: 'Poppins', sans-serif;
}

/* Timer display */
.timer-display {
  font-size: clamp(2.5rem, 10vw, 5rem);
  color: #3B82F6;
  font-weight: 800;
}

/* Button base */
.btn {
  transition: all .3s ease;
  background: linear-gradient(135deg, var(--from), var(--to));
  border: none;
  position: relative;
  overflow: hidden;
  font-weight: 700;
  border-radius: 20px;
  padding: 20px 40px;
  font-size: 20px;
  min-width: 120px;
}
.btn-small {
  padding: 12px 16px;
  font-size: 16px;
  min-width: 60px;
  border-radius: 15px;
}
.btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.2), transparent);
  opacity: 0;
  transition: opacity .3s ease;
}
.btn:hover::before { opacity: 1; }
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,.15);
}
.btn:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0,0,0,.2);
}
.btn:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none!important;
}
.btn:disabled:hover {
  box-shadow: none!important;
}

/* Button variants */
.start-btn { --from: #10B981; --to: #059669; }
.stop-btn  { --from: #EF4444; --to: #DC2626; }
.reset-btn { --from: #6366F1; --to: #4F46E5; }
.ok-btn    { --from: #F59E0B; --to: #D97706; }
.mute-btn  { --from: #8B5CF6; --to: #7C3AED; }
.mute-btn.muted { --from: #6B7280; --to: #4B5563; }

/* Mute button fixed positioning */
#muteButton {
  position: fixed;
  bottom: 20px;
  right: 20px;
  --from: #FFFFFF;
  --to: #F0F0F0;
  color: #333;
  z-index: 100;
  border: 2px solid #CBD5E1;
}
#muteButton.muted {
  --from: #E5E7EB;
  --to: #D1D5DB;
  color: #555;
}

/* --- EDIT START: Change canvas background color --- */
canvas {
  width: 100%;
  max-height: 55vh;
  aspect-ratio: 16/9;
  background: #FFFAF0 url('https://www.transparenttextures.com/patterns/light-paper-fibers.png');
}
/* --- EDIT END --- */