:root {
  color: #f5f0e8;
  background: #151719;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(circle at 50% 0%, #2d3430 0, #151719 52%);
}

.stopwatch-card {
  width: min(100%, 520px);
  padding: clamp(32px, 8vw, 64px) clamp(24px, 8vw, 60px) 32px;
  text-align: center;
  background: #202426;
  border: 1px solid #39403c;
  border-radius: 28px;
  box-shadow: 0 24px 70px #0008;
}

.eyebrow {
  margin: 0 0 12px;
  color: #b7d391;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 { margin: 0; font-size: clamp(1.8rem, 6vw, 2.5rem); letter-spacing: -0.04em; }
.description { margin: 10px 0 38px; color: #aab2ad; }

.display {
  font-variant-numeric: tabular-nums;
  font-size: clamp(4rem, 16vw, 7rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.07em;
  white-space: nowrap;
}

.separator { color: #b7d391; padding: 0 0.04em; }
.milliseconds { color: #929b95; font-size: 0.38em; letter-spacing: -0.04em; }
.status { min-height: 1.5em; margin: 22px 0 28px; color: #b7d391; font-size: 0.9rem; }

.controls { display: flex; gap: 12px; justify-content: center; }
.button {
  min-width: 130px;
  padding: 13px 24px;
  border: 0;
  border-radius: 999px;
  color: #182018;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 150ms ease, filter 150ms ease;
}
.button:hover { filter: brightness(1.08); transform: translateY(-1px); }
.button:active { transform: translateY(1px); }
.button:focus-visible { outline: 3px solid #e4efcf; outline-offset: 3px; }
.button-primary { background: #b7d391; }
.button-secondary { color: #d8ded9; background: #343b38; }

.interval-note { margin-top: 32px; color: #7f8882; font-size: 0.78rem; }
.dot { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #b7d391; }

@media (max-width: 420px) {
  .stopwatch-card { border-radius: 20px; }
  .button { min-width: 0; flex: 1; }
}
