:root {
  color-scheme: dark;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: #16181d;
  color: #f2f5f8;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.game-shell {
  width: min(100%, 780px);
}

.hud {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.hud > div {
  display: grid;
  gap: 4px;
}

.hud-label {
  color: #9ca8b8;
  font-size: 14px;
}

.hud strong {
  font-size: 24px;
}

canvas {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid #334155;
  background: #0b1020;
}

.controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
}

button {
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  padding: 0 18px;
  background: #f6c945;
  color: #1b1d22;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

button:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}

p {
  margin: 0;
  color: #c4cedb;
}

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

  .hud strong {
    font-size: 20px;
  }

  .controls {
    align-items: stretch;
    flex-direction: column;
  }
}
