html, body {
  margin: 0;
  height: 100%;
  background: #d8d3c9;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
canvas { position: fixed; left: 0; top: 0; touch-action: none; }
#gl { pointer-events: none; }
.err { position: fixed; inset: 40% 20px auto; font: 15px/1.5 system-ui, sans-serif; color: #3e4146; }

#debug { position: fixed; right: 8px; bottom: 8px; font: 12px/1.3 ui-monospace, Menlo, monospace; color: #222; z-index: 2; text-align: right; }
#debug button { font: inherit; padding: 6px 10px; border: 1px solid #555; border-radius: 6px; background: #f3f1ec; }
#dbg-body { margin-bottom: 6px; padding: 8px; width: 260px; max-height: 70vh; overflow: auto; background: rgba(243, 241, 236, 0.94); border: 1px solid #888; border-radius: 8px; text-align: left; }
#dbg-body label { display: grid; grid-template-columns: 70px 1fr 40px; gap: 6px; align-items: center; margin: 3px 0; }
#dbg-body input { width: 100%; }
#dbg-body textarea { width: 100%; box-sizing: border-box; margin-top: 6px; font: inherit; }
#dbg-body pre { margin: 6px 0 0; white-space: pre-wrap; }
#dbg-body .dbg-row { display: flex; gap: 6px; margin: 4px 0 8px; }
