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

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 10%, rgba(222, 78, 54, 0.28), transparent 24rem),
    linear-gradient(140deg, #19241d 0%, #171717 48%, #251d19 100%);
}

.game-shell {
  width: 100vw;
  height: 100dvh;
  padding: 10px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 8px;
}

.hud,
.controls {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.hud > div,
.controls > span {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(12, 14, 12, 0.72);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.label {
  color: #bfc7b6;
  font-size: 12px;
  text-transform: uppercase;
}

strong {
  font-size: 22px;
}

.game-stage {
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

canvas {
  min-height: 0;
  display: block;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: #48623b;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.controls {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 0;
  margin-bottom: 0;
  color: #d8ddcf;
  font-size: 13px;
}

kbd {
  min-width: 28px;
  padding: 3px 7px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-bottom-color: rgba(255, 255, 255, 0.45);
  border-radius: 5px;
  background: #242723;
  color: #fff7d2;
  font: 700 12px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (max-width: 760px) {
  .game-shell {
    padding: 10px;
  }

  .hud,
  .controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .controls > span {
    min-height: 42px;
    font-size: 12px;
  }
}
