:root {
  --bg: #05060f;
  --panel: #0d1024;
  --accent: #4ee1ff;
  --accent-2: #ff5d73;
  --text: #e8f6ff;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Courier New", monospace;
  display: flex;
  align-items: center;
  justify-content: center;
}

#game-container {
  position: relative;
  width: 800px;
  height: 600px;
  box-shadow: 0 0 40px rgba(78, 225, 255, 0.25);
  border: 2px solid #1c2140;
}

#game-canvas {
  display: block;
  background: #05060f;
  cursor: none; /* on dessine notre propre réticule (game.js) */
}

#hud {
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 16px;
  font-size: 18px;
  text-shadow: 0 0 6px var(--accent);
  pointer-events: none;
}

#hud-lives {
  color: var(--accent-2);
}

#audio-controls {
  position: absolute;
  bottom: 8px;
  right: 8px;
  display: flex;
  gap: 6px;
  z-index: 10;
}

#audio-controls button {
  width: 30px;
  height: 30px;
  padding: 0;
  font-size: 14px;
  line-height: 28px;
  background: rgba(13, 16, 36, 0.75);
  border: 1px solid var(--accent);
  color: var(--accent);
}

#hud-hint {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 12px;
  color: #6f89ad;
  pointer-events: none;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 6, 15, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  padding: 24px;
}

.overlay.hidden {
  display: none;
}

.overlay h1 {
  font-size: 42px;
  letter-spacing: 4px;
  margin: 0;
  color: var(--accent);
  text-shadow: 0 0 12px var(--accent);
}

.subtitle {
  margin: 0;
  color: #9fb3d1;
}

.instructions {
  font-size: 13px;
  color: #9fb3d1;
  line-height: 1.6;
}

button {
  background: var(--accent);
  color: #05060f;
  border: none;
  padding: 10px 24px;
  font-family: inherit;
  font-weight: bold;
  letter-spacing: 2px;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 16px var(--accent);
}

.menu-buttons {
  display: flex;
  gap: 10px;
}

button.secondary-btn {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

button.secondary-btn:hover {
  box-shadow: 0 0 12px var(--accent);
}

.help-content {
  max-width: 420px;
  text-align: left;
  font-size: 14px;
  line-height: 1.6;
  color: #cfe0f5;
}

.help-content p {
  margin: 0 0 10px;
}

.help-content .credit {
  margin: 12px 0 0;
  font-size: 12px;
  color: #6f89ad;
}

.help-content .credit a {
  color: var(--accent);
}

.help-content ul {
  margin: 0;
  padding-left: 20px;
}

.help-content li {
  margin-bottom: 6px;
}

#score-form {
  display: flex;
  gap: 8px;
}

#player-name {
  background: var(--panel);
  border: 1px solid var(--accent);
  color: var(--text);
  padding: 8px 10px;
  font-family: inherit;
}

#submit-status {
  min-height: 18px;
  font-size: 13px;
  color: var(--accent-2);
  margin: 0;
}

.leaderboard {
  width: 280px;
  border-top: 1px solid #1c2140;
  padding-top: 10px;
  font-size: 14px;
}

.leaderboard h2 {
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--accent);
  margin: 0 0 8px;
}

.leaderboard ol {
  list-style: decimal;
  margin: 0;
  padding-left: 20px;
  text-align: left;
}

.leaderboard li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 0;
}

.leaderboard .score {
  color: var(--accent-2);
}
