		/* Base styles */
html {
  overflow: hidden;
}
body {
  margin: 0;
  overflow: hidden;
  background: #000;
  color: #fff;
  font-family: 'Courier New', monospace;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100vh;

  * {
    -webkit-user-drag: none;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
  }
}

/* Game canvas */
canvas {
  border: 2px solid #333;
  margin: 0 auto;
  display: block;
  background: #111;
  image-rendering: pixelated;
}

/* Header styles */
h1 {
  color: #ff5555;
  text-shadow: 0 0 5px #ff0000;
}

/* Messages */
.message {
  margin: 10px 0;
  color: #aaa;
}

/* Controls hint */
.controls {
  margin-top: 10px;
  color: #888;
}

/* Game over overlay */
#gameOver {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.8);
  border: 3px solid #ff5555;
  padding: 20px;
  border-radius: 10px;
  max-width: 300px;
  display: none;
  z-index: 100;
  opacity: 0;
  transition: opacity 0.5s ease;
}

#gameOver.show {
  opacity: 1;
}

/* Dark overlay mask */
#gameMask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 50;
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
}

#gameMask.show {
  opacity: 1;
}

#gameOver h2 {
  color: #ff5555;
  margin-top: 0;
}

#gameOver p {
  margin: 10px 0;
}

#gameOver button {
  background: #ff5555;
  color: white;
  border: none;
  padding: 8px 15px;
  font-family: 'Courier New', monospace;
  cursor: pointer;
  border-radius: 5px;
}