/* debug/hud.css — lightweight, non-blocking HUD */
#dbg-wrap {
  position: fixed;
  left: 8px;
  right: 8px;
  bottom: calc(8px + env(safe-area-inset-bottom,0));
  z-index: 2147483600;
  pointer-events: none;
}
#dbg-panel {
  background: rgba(17,17,17,.96);
  border: 1px solid #333;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  pointer-events: auto;
}
#dbg-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  background: #1b1b1b;
  color: #cfe3ff;
  font: 12px -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  touch-action: manipulation;
  cursor: grab;
}
#dbg-head b { font-weight: 600; }
#dbg-actions { margin-left: auto; display: flex; gap: 6px; }
.dbg-btn {
  border: 1px solid #3a3a3a;
  background: #222;
  color: #e7eefc;
  border-radius: 8px;
  font-size: 12px;
  padding: 2px 8px;
}
.dbg-btn:active { background: #2a2a2a; }
.dbg-btn.dbg-danger {
  background: #3b0f12;
  color: #fff;
  border: 1px solid #611;
}
#dbg-body {
  max-height: 34vh;
  overflow: auto;
  padding: 6px 8px;
  background: #0d0d0d;
  color: #d0ffd0;
  font: 12px/1.35 ui-monospace,Menlo,Consolas,monospace;
  white-space: pre-wrap;
}
#dbg-body .L-log { color: #d0ffd0; }
#dbg-body .L-info { color: #a8d2ff; }
#dbg-body .L-warn { color: #ffd47a; }
#dbg-body .L-error { color: #ff9aa2; }

#dbg-wrap.dbg-collapsed #dbg-body { display: none; }
#dbg-wrap.dbg-hidden { display: none; }

/* Quick tools row */
#dbg-tools {
  display: flex;
  gap: 8px;
  padding: 6px 8px;
  border-top: 1px solid #2b2b2c;
  background: #171a22;
}
#dbg-tools .dbg-pill {
  background: #171a22;
  color: #e7eefc;
  border: 1px solid #2b2b2c;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
}

/* Close/reopen puck */
#dbg-hot {
  position: fixed;
  right: 10px;
  bottom: 10px;
  z-index: 2147483601;
  border: 0;
  border-radius: 999px;
  padding: 10px 12px;
  font: 14px/1.1 system-ui,-apple-system,Segoe UI,Roboto;
  background: #111;
  color: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.4);
  opacity: .9;
  pointer-events: auto;
}
#dbg-hot[aria-hidden="true"] { display: none; }

/* triple tap hotspot disabled — puck handles reopening now */