* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  color: #f7f9ff;
  background: #070c1f;
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
}

#ui-root {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 2;
}

.hud {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(9, 15, 41, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
}

.overlay {
  pointer-events: auto;
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  text-align: center;
  padding: 20px;
  background: radial-gradient(circle at 50% 38%, rgba(39, 75, 182, 0.45), rgba(9, 12, 27, 0.92));
}

.overlay h1,
.overlay h2 {
  margin: 0;
  font-size: clamp(40px, 8vw, 72px);
  text-shadow: 0 5px 20px rgba(0, 0, 0, 0.45);
}

.overlay p {
  margin: 0;
  max-width: 580px;
  line-height: 1.45;
}

button {
  margin-top: 6px;
  border: 0;
  border-radius: 999px;
  padding: 11px 20px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #071228;
  background: linear-gradient(130deg, #ffd95d, #ffb95c);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

button:hover {
  filter: brightness(1.05);
}

.hidden {
  display: none;
}
