* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Courier New', monospace;
}

body {
  background-color: #000;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.game-container {
  position: relative;
  width: 800px;
  height: 600px;
  border: 2px solid #333;
}

canvas {
  background-color: #000;
  display: block;
}

.game-ui {
  position: absolute;
  top: 10px;
  left: 10px;
  color: #0f0;
  font-size: 18px;
  font-weight: bold;
  display: flex;
  gap: 20px;
}

.game-message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #0f0;
  font-size: 24px;
  font-weight: bold;
  text-align: center;
}

.screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  color: #0f0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
  z-index: 10;
}

.hidden {
  display: none;
}

h1 {
  font-size: 48px;
  letter-spacing: 8px;
  text-align: center;
}

.controls {
  font-size: 18px;
  text-align: center;
  line-height: 1.5;
}

button {
  background-color: transparent;
  color: #0f0;
  border: 2px solid #0f0;
  padding: 10px 20px;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s;
}

button:hover {
  background-color: #0f0;
  color: #000;
}

#final-score {
  font-size: 24px;
  margin-bottom: 20px;
}