:root {
  --nes-dark: #110820;
  --nes-red: #c8102e;
  --nes-gold: #f0c060;
  --nes-bg: #000000;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  background: var(--nes-bg);
  overflow: hidden;
  height: 100%;
  width: 100%;
  user-select: none;
  -webkit-user-select: none;
  font-family: 'Press Start 2P', monospace;
}
#game {
  display: block;
  width: 100vw;
  height: 100vh;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  background: var(--nes-dark);
}
.controls {
  display: none;
  position: fixed;
  bottom: 10px;
  left: 0;
  right: 0;
  justify-content: space-between;
  padding: 0 16px;
  pointer-events: none;
  z-index: 10;
}
.ctrl-btn {
  pointer-events: auto;
  background: rgba(200, 16, 46, 0.7);
  color: #fff;
  border: 3px solid var(--nes-gold);
  border-radius: 8px;
  width: 56px;
  height: 56px;
  font-size: 16px;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
  cursor: pointer;
}
.ctrl-jump, .ctrl-attack {
  width: 72px;
  font-size: 10px;
}
@media (hover: none) and (pointer: coarse) {
  .controls { display: flex; }
}