/* ═══════════════════════════════════════════
   Debug / developer tools
   ═══════════════════════════════════════════ */

/* ── Debug toggle button (top-left) ── */
#debug-toggle {
  position: fixed;
  top: 1vmin;
  left: 1vmin;
  background: rgba(0, 100, 0, 0.7);
  border: 1px solid #0F0;
  color: #0F0;
  padding: 0.6vmin 1.2vmin;
  font-family: monospace;
  font-size: 1.2vmin;
  cursor: pointer;
  z-index: 5002;
  border-radius: 0.4vmin;
  transition: background 0.2s;
}

#debug-toggle:hover {
  background: rgba(0, 150, 0, 0.9);
}

/* ── Scrollable debug log ── */
#debug-info {
  display: none;
  position: fixed;
  bottom: 1vmin;
  right: 1vmin;
  background: rgba(0, 0, 0, 0.8);
  color: #0F0;
  padding: 1vmin;
  font-family: monospace;
  font-size: 1.2vmin;
  z-index: 5000;
  max-width: 30vw;
  max-height: 20vh;
  overflow-y: auto;
  border: 1px solid #0F0;
}

/* ── Crosshair overlay ── */
#dev-crosshair {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 2.4vmin;
  height: 2.4vmin;
  pointer-events: none;
  z-index: 11000;
}

#dev-crosshair::before,
#dev-crosshair::after {
  content: '';
  position: absolute;
  background: rgba(255, 50, 50, 0.85);
  border-radius: 1px;
}

#dev-crosshair::before {
  width: 2px;
  height: 100%;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

#dev-crosshair::after {
  width: 100%;
  height: 2px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

/* ── Coordinate tracker panel ── */
#coord-tracker {
  display: none;
  position: fixed;
  top: 12vh;
  left: 1vmin;
  background: rgba(0, 0, 0, 0.9);
  color: #0F0;
  padding: 1.2vmin;
  font-family: monospace;
  font-size: 1.3vmin;
  z-index: 5001;
  border: 1px solid #0F0;
  min-width: 24vw;
  border-radius: 0.4vmin;
}

.coord-line {
  margin: 0.4vmin 0;
  font-weight: bold;
}

.coord-label {
  color: #88FF88;
}

.coord-value {
  color: #00FF00;
}

/* ── Time controls panel ── */
#dev-controls {
  display: none;
  position: fixed;
  top: 6vh;
  left: 1vmin;
  background: rgba(0, 0, 0, 0.9);
  border: 1px solid #0F0;
  border-radius: 0.4vmin;
  padding: 0.8vmin 1vmin;
  z-index: 5003;
  font-family: monospace;
}

.dev-controls-label {
  color: #88FF88;
  font-size: 1.1vmin;
  margin-bottom: 0.6vmin;
  text-align: center;
}

.dev-btn {
  display: block;
  width: 100%;
  margin: 0.3vmin 0;
  padding: 0.4vmin 1vmin;
  background: rgba(0, 80, 0, 0.8);
  border: 1px solid #0F0;
  color: #0F0;
  font-family: monospace;
  font-size: 1.2vmin;
  cursor: pointer;
  border-radius: 0.3vmin;
  transition: background 0.15s;
}

.dev-btn:hover {
  background: rgba(0, 150, 0, 0.9);
}
