:root {
  color-scheme: dark;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #111111;
  color: #f7f3ea;
}

* {
  box-sizing: border-box;
}

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

body {
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 110%, rgba(231, 76, 60, 0.28), transparent 32%),
    linear-gradient(160deg, #151515 0%, #232323 48%, #111111 100%);
}

.shell {
  width: min(100%, 720px);
}

.hud,
.controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hud {
  margin-bottom: 12px;
}

.hud > div {
  min-width: 104px;
  padding: 10px 12px;
  border: 1px solid rgba(247, 243, 234, 0.16);
  border-radius: 8px;
  background: rgba(15, 15, 15, 0.76);
}

.label {
  display: block;
  margin-bottom: 4px;
  color: #b8b0a0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

strong {
  font-size: clamp(1.2rem, 4vw, 1.9rem);
  line-height: 1;
}

canvas {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 19;
  border: 1px solid rgba(247, 243, 234, 0.18);
  border-radius: 8px;
  background: #1a1716;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  touch-action: none;
}

.controls {
  justify-content: center;
  margin-top: 14px;
}

button {
  min-width: 96px;
  min-height: 42px;
  border: 1px solid rgba(247, 243, 234, 0.2);
  border-radius: 8px;
  background: #f2c94c;
  color: #17120d;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

button:hover {
  background: #ffd95c;
}

button:active {
  transform: translateY(1px);
}

@media (max-width: 560px) {
  body {
    padding: 12px;
  }

  .hud {
    align-items: stretch;
  }

  .hud > div {
    min-width: 0;
    flex: 1;
  }

  .controls {
    justify-content: stretch;
  }

  button {
    flex: 1;
  }
}
