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

body {
  background: #060b0f;
  overflow: hidden;
  width: 100vw;
  height: 100vh;
}

#c {
  display: block;
  width: 100%;
  height: 100%;
}

#hud {
  position: fixed;
  top: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 2.5rem;
  color: #8ecfea;
  font-family: monospace;
  font-size: 1.15rem;
  font-weight: bold;
  pointer-events: none;
  text-shadow: 0 0 8px rgba(80, 180, 255, 0.5);
}

#overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 8, 14, 0.82);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

#overlay.active {
  opacity: 1;
  pointer-events: all;
}

.overlay-box {
  background: #0d141e;
  border: 1px solid #1e3a5a;
  border-radius: 10px;
  padding: 2.5rem 3.5rem;
  text-align: center;
  color: #c0d8f0;
  max-width: 420px;
}

.overlay-box h1 {
  font-size: 3.2rem;
  color: #3dffa0;
  font-family: monospace;
  margin-bottom: 1rem;
  letter-spacing: 0.1em;
}

.overlay-box p {
  line-height: 1.8;
  margin-bottom: 1.8rem;
  font-size: 1rem;
}

button {
  background: #0e2a50;
  border: 1px solid #2a6aaa;
  color: #70c4f8;
  font-size: 1.1rem;
  font-family: monospace;
  padding: 0.65rem 2.2rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

button:hover {
  background: #183a70;
  border-color: #4090d0;
}
