body {
    background: #222;
    margin: 0;
    font-family: 'Press Start 2P', 'Consolas', monospace;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

#game-container {
    position: relative;
    width: 480px;
    height: 640px;
    background: linear-gradient(to bottom, #222 60%, #444 100%);
    box-shadow: 0 0 32px #000a;
    border: 4px solid #fff;
    image-rendering: pixelated;
}

#gameCanvas {
    display: block;
    background: repeating-linear-gradient(45deg, #333 0 8px, #2a2a2a 8px 16px);
    width: 100%;
    height: 100%;
    image-rendering: pixelated;
}

#score {
  position: absolute;
  left: 16px;
  top: 12px;
  color: #fff;
  font-size: 20px;
  text-shadow: 2px 2px 0 #000;
  letter-spacing: 2px;
  z-index: 3;
}
#bestScore {
  color: #ff0;
  font-size: 18px;
  margin-left: 16px;
  text-shadow: 2px 2px 0 #000;
}
#fireworks {
  z-index: 10;
  pointer-events: none;
}

#gameOver {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #111d;
  color: #fff;
  font-size: 28px;
  padding: 32px 40px;
  border: 3px solid #fff;
  border-radius: 8px;
  text-align: center;
  z-index: 2;
  font-family: 'Press Start 2P', 'Consolas', monospace;
}
.gameover-title {
  display: block;
  font-size: 38px;
  color: #ff4444;
  letter-spacing: 4px;
  margin-bottom: 10px;
  font-family: 'Press Start 2P', 'Consolas', monospace;
  text-shadow: 2px 2px 0 #000, 0 0 8px #fff8;
}

#restartBtn {
    margin-top: 18px;
    font-size: 18px;
    padding: 8px 24px;
    background: #fff;
    color: #222;
    border: 2px solid #888;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
}

#restartBtn:hover {
    background: #eee;
}