* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  width: 100%; height: 100%; overflow: hidden;
  font-family: 'Segoe UI', system-ui, monospace;
  background: #03050a;
}
canvas {
  position: fixed; inset: 0; display: block;
  width: 100vw; height: 100vh; cursor: grab;
}
canvas:active { cursor: grabbing; }
#ui {
  position: absolute; bottom: 16px; left: 16px; right: 16px;
  max-width: 620px; background: rgba(0,0,0,0.88);
  border-radius: 18px; padding: 12px 16px; color: #e0d8c0;
  font-size: 12px; z-index: 20; border: 1px solid #5a4a2e;
  pointer-events: auto;
}
.row { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
button, input, select, .folderLabel {
  background: #1e1c26; border: 1px solid #8a7a50; color: #f0e6c5;
  padding: 6px 12px; border-radius: 12px; font-size: 11px;
  cursor: pointer; flex: 1; text-align: center;
}
button:hover, .folderLabel:hover { background: #2e2a3a; }
.slider-row { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.slider-row span { min-width: 54px; text-align: right; }
.check-group { display: flex; gap: 12px; flex-wrap: wrap; margin: 8px 0; }
.check-group label { display: flex; align-items: center; gap: 5px; }
#cloudflareNote { font-size: 10px; color: #d8c790; margin: 6px 0; }
#log {
  font-family: monospace; font-size: 10px; background: #00000080;
  border-radius: 12px; padding: 6px; max-height: 110px; overflow-y: auto;
  margin-top: 8px; color: #b8f0b0; white-space: pre-wrap;
}
#stats, #fps {
  position: absolute; right: 12px; background: #000000aa; padding: 4px 12px;
  border-radius: 20px; font-size: 11px; font-family: monospace;
  pointer-events: none; z-index: 20; color: #d8f8d0;
}
#stats { top: 12px; }
#fps { top: 40px; }
