:root {
  --bg: #020617;
  --text: #e2e8f0;
  --surface: #0f172acc;
  --border: #334155;
  --accent: #38bdf8;
  --accentText: #082f49;
  --muted: #94a3b8;
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Sora", "Space Grotesk", "Inter", ui-sans-serif, system-ui, sans-serif;
}

.timer-shell {
  width: 100%;
}

.timer-numbers {
  font-size: clamp(2.2rem, 12vw, 12rem);
  line-height: 0.95;
  text-wrap: balance;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 30px color-mix(in srgb, var(--accent) 20%, transparent);
  transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1), text-shadow 500ms ease;
}

.finished .timer-numbers {
  animation: zeroPulse 1.2s ease-in-out infinite;
}

@keyframes zeroPulse {
  0%,
  100% {
    transform: scale(1);
    text-shadow: 0 0 20px color-mix(in srgb, var(--accent) 28%, transparent);
  }
  50% {
    transform: scale(1.015);
    text-shadow: 0 0 48px color-mix(in srgb, var(--accent) 56%, transparent);
  }
}

@media (prefers-reduced-motion: reduce) {
  .timer-numbers,
  #options-panel {
    transition: none !important;
    animation: none !important;
  }
}
