* {
  box-sizing: border-box;
}

body {
  background: #0a0a0a;
  color: #f5f5f5;
  font-family: "Segoe UI", Arial, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
}

h1 {
  margin: 0 0 8px;
  letter-spacing: 4px;
  color: #ffd700;
}

#banner {
  max-width: 640px;
  margin: 0 0 16px;
  padding: 12px 20px;
  text-align: center;
  font-family: "Comic Sans MS", "Segoe UI", cursive, sans-serif;
  font-size: 1.15rem;
  font-weight: bold;
  border-radius: 10px;
  border: 2px solid #ffd700;
  background: linear-gradient(90deg, #ff5f6d, #ffc371, #47cf73, #2196f3, #ff5f6d);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: banner-shimmer 6s ease infinite;
}

@keyframes banner-shimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

#hud {
  display: flex;
  gap: 24px;
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.hud-item {
  background: #111;
  border: 1px solid #333;
  padding: 4px 12px;
  border-radius: 4px;
}

#game-container {
  position: relative;
}

#game-canvas {
  background: #000;
  border: 4px solid #1a1aff;
  display: block;
}

#overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

#overlay.hidden {
  display: none;
}

#overlay-message {
  font-size: 1.5rem;
  color: #ffd700;
  margin: 0;
}

#restart-btn {
  padding: 8px 20px;
  font-size: 1rem;
  cursor: pointer;
  background: #ffd700;
  border: none;
  border-radius: 4px;
  color: #111;
  font-weight: bold;
}

#restart-btn:hover {
  background: #ffe650;
}

#instructions {
  margin-top: 12px;
  color: #999;
  font-size: 0.9rem;
}
