.title-bar h1 a {
  color: inherit;
  text-decoration: none;
}

.bpm-window {
  position: relative;
}

.bpm-tool {
  width: min(320px, calc(100% - 40px));
  margin: 0 auto;
  padding-top: clamp(90px, 17vh, 170px);
  color: #111111;
  text-align: center;
}

.bpm-tool h2 {
  margin: 0 0 6px;
  font-size: 18px;
}

.instructions {
  margin: 0 0 22px;
  font-size: 13px;
}

.bpm-display {
  display: block;
  margin-bottom: 16px;
  color: #1d3551;
  font-variant-numeric: tabular-nums;
}

.bpm-display span {
  display: block;
  min-height: 58px;
  font-size: 52px;
  font-weight: bold;
  line-height: 1;
}

.bpm-display small {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 2px;
}

.tap-button,
.reset-button {
  border: 1px solid #707070;
  border-radius: 3px;
  background: linear-gradient(#ffffff, #dedede);
  color: #111111;
  font-family: Arial, Helvetica, sans-serif;
  cursor: pointer;
}

.tap-button {
  width: 160px;
  height: 62px;
  font-size: 22px;
  font-weight: bold;
  box-shadow: inset 0 1px 0 #ffffff, 0 1px 2px rgb(0 0 0 / 28%);
}

.tap-button:hover {
  background: linear-gradient(#ffffff, #cfe4ef);
}

.tap-button:active,
.tap-button.is-tapping {
  padding-top: 3px;
  background: linear-gradient(#b8d9e8, #eef8fc);
  box-shadow: inset 0 1px 3px rgb(0 0 0 / 32%);
}

.tap-button:focus-visible,
.reset-button:focus-visible {
  outline: 2px solid #2c668f;
  outline-offset: 2px;
}

.tap-count {
  margin: 9px 0 10px;
  color: #666666;
  font-size: 11px;
}

.reset-button {
  padding: 3px 13px;
  font-size: 12px;
}

.keyboard-hint {
  margin-top: 20px;
  color: #777777;
  font-size: 11px;
}

@media (max-height: 560px) {
  .bpm-tool {
    padding-top: 45px;
  }
}

@media (max-width: 600px) {
  .reset-button {
    min-height: 44px;
    padding-right: 18px;
    padding-left: 18px;
  }
}
