@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0b1b2b;
  color: #ffffff;
  font-family: 'VT323', monospace;
}

canvas {
  display: block;
}

#hud {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: rgba(0, 0, 0, 0.55);
  padding: 8px 12px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  font-size: 20px;
  letter-spacing: 0.5px;
}

.overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  z-index: 3;
}

.overlay-card {
  background: rgba(15, 23, 32, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.2);
  padding: 24px 28px;
  border-radius: 12px;
  width: min(440px, 86vw);
  text-align: center;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

.overlay-card h2 {
  margin: 0 0 12px;
  font-size: 32px;
}

.overlay-card p {
  margin: 8px 0;
  font-size: 20px;
}

.overlay-card button {
  margin-top: 16px;
  padding: 10px 18px;
  font-size: 20px;
  font-family: 'VT323', monospace;
  border: none;
  border-radius: 8px;
  background: #ff4d8d;
  color: #ffffff;
  cursor: pointer;
}

.overlay-card button:hover {
  filter: brightness(1.05);
}
