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

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  background: #000;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: #e0e0e0;
}

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

#ui {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 10;
}

#crosshair {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 26px;
  color: rgba(0, 255, 120, 0.75);
  text-shadow: 0 0 10px #0f0;
  font-weight: 300;
  display: none;
}

#hud {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(0, 18, 8, 0.8);
  border: 1px solid rgba(0, 255, 110, 0.4);
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.55;
  display: none;
  min-width: 190px;
}

#hud #status {
  margin-top: 6px;
  color: #8f8;
  font-size: 12px;
}

#instructions {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(4, 14, 8, 0.94);
  border: 1px solid rgba(0, 255, 100, 0.45);
  padding: 28px 34px;
  border-radius: 10px;
  text-align: center;
  max-width: 440px;
  pointer-events: auto;
  box-shadow: 0 0 50px rgba(0, 255, 80, 0.12);
}

#instructions h2 {
  color: #0f8;
  margin-bottom: 14px;
  font-weight: 600;
  letter-spacing: 2px;
}

#instructions p {
  margin: 8px 0;
  font-size: 14px;
  color: #bbb;
}

#startBtn {
  margin-top: 18px;
  padding: 12px 32px;
  background: linear-gradient(180deg, #0a6, #074);
  border: 1px solid #0f8;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  letter-spacing: 1px;
  transition: transform 0.15s, box-shadow 0.15s;
}

#startBtn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 22px rgba(0, 255, 100, 0.45);
}

#explosionOverlay {
  position: absolute; inset: 0;
  background: radial-gradient(circle at center,
    rgba(255, 200, 50, 0.95) 0%,
    rgba(255, 80, 10, 0.7) 25%,
    rgba(255, 30, 0, 0.35) 50%,
    transparent 75%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.08s;
}

.hidden { display: none !important; }
