* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #02040c;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: #e8f4ff;
}

canvas {
  display: block;
}

#vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, transparent 42%, rgba(0, 4, 16, 0.55) 100%);
}

#vignette::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image:
    repeating-radial-gradient(circle at 30% 20%, transparent 0 2px, rgba(120, 190, 255, 0.08) 3px 4px),
    linear-gradient(115deg, transparent 35%, rgba(80, 150, 255, 0.04), transparent 65%);
  background-size: 9px 9px, 100% 100%;
  mix-blend-mode: screen;
}

#hud {
  position: fixed;
  top: 18px;
  left: 20px;
  right: 20px;
  z-index: 2;
  pointer-events: none;
  text-shadow: 0 0 12px rgba(80, 180, 255, 0.6);
}

#hud .hud-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
  pointer-events: auto;
  text-shadow: none;
}

#hud .hud-actions button {
  min-width: 0;
  padding: 6px 14px;
  font-size: 13px;
}

#hud .row {
  display: flex;
  gap: 28px;
  font-size: 18px;
  letter-spacing: 0.04em;
  align-items: center;
}

#hud b {
  color: #7fe3ff;
}

#hud .hint {
  margin-top: 8px;
  opacity: 0.7;
  font-size: 13px;
}

#crosshair {
  position: fixed;
  left: 50%;
  top: 46%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  z-index: 2;
  pointer-events: none;
  border: 1.5px solid rgba(170, 240, 255, 0.75);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(90, 200, 255, 0.5);
}

#crosshair::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 4px;
  margin: -2px 0 0 -2px;
  border-radius: 50%;
  background: #9be7ff;
}

#overlay {
  position: fixed;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 30%, rgba(20, 50, 90, 0.45), rgba(2, 4, 12, 0.82));
}

#overlay.hidden {
  display: none;
}

.panel {
  text-align: center;
  padding: 36px 42px;
  border: 1px solid rgba(120, 200, 255, 0.35);
  background: rgba(8, 16, 32, 0.82);
  border-radius: 16px;
  box-shadow: 0 0 50px rgba(40, 140, 255, 0.22);
  max-width: 460px;
  backdrop-filter: blur(10px);
}

.panel h1 {
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.panel p {
  opacity: 0.8;
  line-height: 1.45;
  margin-bottom: 22px;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

button,
.actions a {
  cursor: pointer;
  border: 0;
  border-radius: 999px;
  padding: 12px 28px;
  font-size: 16px;
  color: #041018;
  background: linear-gradient(180deg, #9be7ff, #4ec3ff);
  font-weight: 600;
  min-width: 200px;
  text-decoration: none;
}

button.ghost,
.actions a.ghost {
  background: transparent;
  color: #cfe8ff;
  border: 1px solid rgba(160, 220, 255, 0.4);
}

button:hover,
.actions a:hover {
  filter: brightness(1.08);
}

.hidden {
  display: none !important;
}
