:root {
  --void: #080604;
  --panel: #1a120d;
  --chrome: #e6e9ec;
  --dust: #d4a84b;
  --font-display: "Contrail One", system-ui, sans-serif;
  --font-body: "Syne", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  padding: 1rem 1rem 1.5rem;
  font-family: var(--font-body);
  color: var(--chrome);
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(212, 168, 75, 0.12), transparent 55%),
    linear-gradient(180deg, #0c0907, var(--void));
}

.back {
  align-self: flex-start;
  color: var(--dust);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.back:hover {
  color: #fff;
}

.hud {
  width: min(960px, 100%);
  padding: 0.35rem 0.5rem 0;
}

.hud__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.25rem, 3.5vw, 1.65rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hud__hint {
  margin: 0.35rem 0 0.75rem;
  font-size: 0.88rem;
  color: rgba(230, 233, 236, 0.65);
}

.hud__hint strong {
  color: var(--dust);
}

kbd {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  margin: 0 0.08rem;
  border-radius: 0.3rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.35);
}

.hud__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  margin: 0;
}

.hud__stats div {
  display: grid;
  gap: 0.15rem;
}

.hud__stats dt {
  margin: 0;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(230, 233, 236, 0.45);
}

.hud__stats dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 1.05rem;
}

#track {
  width: min(960px, 100%);
  height: auto;
  border-radius: 0.75rem;
  outline: none;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  box-shadow:
    0 0 0 2px rgba(212, 168, 75, 0.25),
    0 18px 50px rgba(0, 0, 0, 0.65);
  background: #be6d09;
  touch-action: none;
}

#track:focus-visible {
  box-shadow:
    0 0 0 3px rgba(212, 168, 75, 0.65),
    0 18px 50px rgba(0, 0, 0, 0.65);
}
