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

body {
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  font-family: 'Courier New', monospace;
  overflow: hidden;
}

#game-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
}

#score {
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  padding: 10px;
}

#game {
  border: 4px solid #2121de;
  border-radius: 4px;
}

#mobile-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  margin-top: 15px;
}

#mobile-controls .horizontal {
  display: flex;
  gap: 60px;
}

#mobile-controls button {
  width: 55px;
  height: 55px;
  font-size: 22px;
  background: #2121de;
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
}

#mobile-controls button:active {
  background: #4242ff;
  transform: scale(0.95);
}

#game-over {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.95);
  padding: 30px 40px;
  border-radius: 12px;
  text-align: center;
  border: 3px solid #ffff00;
  z-index: 100;
}

#game-over.hidden {
  display: none;
}

#game-over h2 {
  color: #ff0000;
  margin-bottom: 15px;
  font-size: 28px;
}

#game-over p {
  color: #fff;
  margin-bottom: 20px;
  font-size: 18px;
}

#restart {
  padding: 12px 24px;
  font-size: 16px;
  background: #ffff00;
  color: #000;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-weight: bold;
}

#restart:hover {
  background: #ffcc00;
}

