:root {
  --navy: #0b1e3a;
}

html, body {
  height: 100%;
  margin: 0;
}

body {
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ddd;
  font: 14px/1.2 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.game-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

h1 {
  color: #fff;
  font: 700 28px/1.2 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  margin: 0;
  text-align: center;
}

.hud {
  height: 16px;
  font-size: 12px;
  color: #bbb;
  opacity: .95;
}

.nav-buttons {
  display: flex;
  gap: 10px;
  margin: 2px 0 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.85);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
}

.btn:hover { filter: brightness(1.05); }
.btn--small { padding: 6px 10px; font-weight: 600; }

canvas {
  background: #000;
  display: block;
  box-shadow: 0 0 16px rgba(0,0,0,0.6);
}

.overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  color: #fff;
  text-align: center;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,.6);
}

.hint {
  font-weight: 400;
  color:#ccc;
  font-size: 14px;
}

/* Controls (difficulty + new game) */
.controls {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #bbb;
  font-size: 12px;
  margin-top: -2px;
}

.controls select {
  background: #111;
  color: #eee;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 6px 8px;
  outline: none;
}
