* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 10%, rgba(70, 151, 226, 0.28), transparent 34%),
    radial-gradient(circle at 86% 0%, rgba(255, 204, 77, 0.22), transparent 30%),
    #08192d;
  color: #f9f4e8;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button {
  font: inherit;
}

.tapRace {
  display: grid;
  gap: 14px;
  margin: 0 auto;
  max-width: 540px;
  min-height: 100vh;
  padding: 16px;
}

.trackArt {
  aspect-ratio: 3 / 1;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.3);
  height: auto;
  object-fit: cover;
  width: 100%;
}

h1 {
  font-size: 34px;
  line-height: 1;
  margin: 6px 0 0;
  text-align: center;
}

.subtitle,
.best {
  color: #c9d5e3;
  line-height: 1.45;
  margin: 0 auto;
  max-width: 380px;
  text-align: center;
}

.progress {
  background: rgba(255, 250, 240, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  height: 18px;
  overflow: hidden;
  width: 100%;
}

.progressBar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #35b779, #ffcc4d);
  transition: width 120ms ease-out;
}

.counter {
  align-self: center;
  background: #fff8e8;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
  color: #102033;
  font-size: 30px;
  justify-self: center;
  min-width: 140px;
  padding: 12px 18px;
  text-align: center;
}

.tapButton,
.resetButton {
  border: 0;
  border-radius: 8px;
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.24);
  color: #102033;
  cursor: pointer;
  font-weight: 800;
  min-height: 56px;
  width: 100%;
}

.tapButton {
  background: linear-gradient(180deg, #ffdd63, #ffb340);
}

.resetButton {
  background: rgba(255, 250, 240, 0.94);
}
