/* TANK BATTLE - Famicom 8-bit Style */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

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

html, body {
  height: 100%;
  background: #000;
  font-family: 'Press Start 2P', monospace;
  color: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#game-container {
  position: relative;
  background: #6b6b6b;
  padding: 16px;
  border: 4px solid #000;
  box-shadow: 0 0 0 4px #b0b0b0, 0 0 30px rgba(255, 200, 0, 0.3);
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

#hud-top, #hud-bottom {
  display: flex;
  justify-content: space-around;
  background: #000;
  padding: 8px 4px;
  font-size: 10px;
  color: #ffcc00;
  letter-spacing: 1px;
}

#hud-bottom { color: #ffffff; }

.hud-item span { color: #ff5050; }

#game {
  display: block;
  background: #000;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  border-top: 4px solid #000;
  border-bottom: 4px solid #000;
}

#overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 10;
}

#overlay.show { display: flex; }

#overlay h1 {
  font-size: 36px;
  color: #ffcc00;
  text-shadow: 4px 4px 0 #ff0000, 8px 8px 0 #800000;
  margin-bottom: 12px;
  letter-spacing: 4px;
  animation: blink 1.2s infinite;
}

#overlay .subtitle {
  color: #50c878;
  font-size: 12px;
  margin-bottom: 32px;
  letter-spacing: 2px;
}

#overlay .controls {
  background: #222;
  border: 2px solid #ffcc00;
  padding: 16px 24px;
  margin-bottom: 24px;
}

#overlay .controls p {
  font-size: 10px;
  line-height: 2;
  color: #fff;
}

#start-btn {
  background: #ffcc00;
  color: #000;
  font-family: inherit;
  font-size: 14px;
  padding: 12px 28px;
  border: 4px solid #fff;
  cursor: pointer;
  letter-spacing: 2px;
  transition: transform 0.1s;
}

#start-btn:hover {
  background: #ff5050;
  color: #fff;
  transform: scale(1.05);
}

#overlay .credit {
  margin-top: 28px;
  font-size: 8px;
  color: #888;
  letter-spacing: 1px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

@media (max-width: 600px) {
  #game-container { transform: scale(0.7); }
}
