*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background: #1a1a1a;
  overflow: auto;
}

body {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 24px;
  min-height: 100vh;
}

#game-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#stats-bar {
  display: flex;
  gap: 28px;
  color: #888;
  font-family: monospace;
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 0 2px;
}

#stats-bar .val {
  color: #fff;
  font-weight: bold;
}

/* width/height은 JS에서 내부 해상도와 1:1로 설정 → 정사각형 픽셀 보장 */
#game-canvas {
  display: block;
  border: 2px solid #444;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
