body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #0b0b10;
  color: #e8e8f0;
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.game {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

canvas {
  display: block;
  background: #111118;
  border: 2px solid #2a2a38;
  border-radius: 4px;
}

#board {
  width: 300px;
  height: 600px;
}

.panel {
  width: 200px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

h2 {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a9ab0;
}

.stats {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
}

.stats dt {
  color: #9a9ab0;
}

.stats dd {
  margin: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.controls {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: #9a9ab0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

kbd {
  display: inline-block;
  min-width: 18px;
  padding: 1px 5px;
  border: 1px solid #3a3a4c;
  border-radius: 3px;
  background: #1a1a24;
  color: #e8e8f0;
  font-family: inherit;
  font-size: 12px;
  text-align: center;
}
