:root {
  --bg: #080d14;
  --panel: rgba(8, 13, 20, 0.66);
  --text: #d9ecff;
  --accent: #43d1ff;
  --danger: #ff476f;
  --good: #7bff9f;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: radial-gradient(circle at 20% 20%, #112132 0%, var(--bg) 65%);
  color: var(--text);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

canvas {
  display: block;
}

#ui {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

#topBar {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: min(95vw, 1000px);
}

#topBar > div {
  background: var(--panel);
  border: 1px solid rgba(106, 175, 255, 0.28);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 14px;
  backdrop-filter: blur(4px);
}

#crosshair {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 30px;
  color: var(--accent);
  text-shadow: 0 0 10px rgba(67, 209, 255, 0.9);
  user-select: none;
}

#message {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 20px;
  background: linear-gradient(
    to bottom,
    rgba(4, 8, 12, 0.82),
    rgba(6, 16, 26, 0.92)
  );
  pointer-events: auto;
}

#message.show {
  display: flex;
}

#message h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 5vw, 56px);
  letter-spacing: 1px;
}

#message p {
  margin: 4px 0;
  font-size: clamp(14px, 2vw, 18px);
  opacity: 0.95;
}

#startBtn {
  margin-top: 24px;
  padding: 12px 28px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(120deg, #2ec5ff, #0f76ff);
  color: white;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}

#startBtn:hover {
  filter: brightness(1.12);
}

@media (max-width: 700px) {
  #topBar > div {
    font-size: 12px;
    padding: 6px 10px;
  }

  #crosshair {
    font-size: 24px;
  }
}
