:root {
  color-scheme: dark;
  --bg: #101515;
  --ink: #e9fffa;
  --accent: #65f7c2;
  --danger: #ff5f57;
}

* {
  box-sizing: border-box;
}

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

canvas {
  display: block;
}

#hud {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill {
  border: 1px solid rgba(101, 247, 194, 0.4);
  background: rgba(8, 20, 20, 0.8);
  backdrop-filter: blur(2px);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 14px;
}

#crosshair {
  position: fixed;
  z-index: 15;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  margin-top: -8px;
  pointer-events: none;
}

#interactHint {
  position: fixed;
  z-index: 16;
  left: 50%;
  bottom: 9vh;
  transform: translateX(-50%);
  min-width: 320px;
  max-width: 90vw;
  text-align: center;
  font-size: 15px;
  color: #d6f7ea;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

#crosshair::before,
#crosshair::after {
  content: "";
  position: absolute;
  background: #ffffffd0;
}

#crosshair::before {
  width: 2px;
  height: 16px;
  left: 7px;
  top: 0;
}

#crosshair::after {
  width: 16px;
  height: 2px;
  left: 0;
  top: 7px;
}

#overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.48);
}

.panel {
  width: min(92vw, 520px);
  border: 1px solid rgba(101, 247, 194, 0.45);
  background: rgba(9, 19, 19, 0.95);
  border-radius: 12px;
  padding: 22px;
  text-align: center;
}

h1 {
  margin: 0 0 10px;
  color: var(--accent);
}

p {
  margin: 0 0 14px;
}

.small {
  color: #b7cec9;
  font-size: 13px;
  min-height: 1.2em;
}

button {
  cursor: pointer;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #1adb8f, #10a56f);
  color: #041410;
  font-size: 16px;
  font-weight: 700;
  padding: 11px 18px;
}
