/* Site-owned styles for BPM Counter, loaded after /ui/counter-ui.css (see shell.ts §
   stylesheets) — this file only adds rules, it never needs to fight counter-ui.css's cascade. */

.tap-widget {
  text-align: center;
  padding: 2rem 1.25rem;
}

.tap-button {
  width: 100%;
  max-width: 16rem;
  aspect-ratio: 1;
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: var(--accent);
  color: var(--accent-fg);
  border: none;
  cursor: pointer;
  /* touch-action: manipulation suppresses the ~300ms double-tap-to-zoom delay mobile browsers
     otherwise add before delivering pointerdown, which would otherwise show up as a small,
     confusing added latency in every mobile tap reading. */
  touch-action: manipulation;
  user-select: none;
}

.tap-button:active {
  filter: brightness(0.9);
}

#tap-hint {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
}

.tap-readout {
  margin: 1.5rem 0;
}

.tap-bpm {
  margin: 0;
  font-size: 3rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.tap-bpm-unit {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--muted);
}

.tap-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 1rem 0 0;
}

.tap-stats dt {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
}

.tap-stats dd {
  margin: 0.15rem 0 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.tap-reset {
  margin-top: 0.5rem;
}
