:root {
  --bg: #0a0a0a; --panel: #161616; --line: #2c2c2c; --text: #f4f1ec; --muted: #a9a49b;
  --accent: #e44d30; --cyan: #4cc9f0; --green: #7bd88f; --amber: #ffb703;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; background: var(--bg); color: var(--text);
  font: 14px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; overflow: hidden; }
.app { display: flex; flex-direction: column; height: 100%; }
.stage { position: relative; flex: 1; min-height: 0; }
canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.readouts { position: absolute; left: 10px; top: 10px; display: grid; gap: 3px; padding: 8px 10px;
  font-size: 12px; background: rgba(10,10,10,.75); border: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.readouts span { color: var(--muted); }
.readouts b { color: var(--text); font-weight: 600; margin-left: 4px; }
.panel { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: flex-end; padding: 10px 14px;
  background: var(--panel); border-top: 1px solid var(--line); }
.ctl { display: flex; flex-direction: column; gap: 4px; flex: 1 1 150px; min-width: 130px; }
.ctl label { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.ctl label b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
input[type=range] { width: 100%; accent-color: var(--accent); margin: 0; }
select, button { font: inherit; color: var(--text); background: #222; border: 1px solid #3c3c3c; border-radius: 0; padding: 6px 10px; }
button { cursor: pointer; }
button:hover, select:hover { border-color: var(--accent); }
button.primary { background: var(--accent); border-color: var(--accent); }
.btns { display: flex; gap: 8px; }
@media (max-width: 520px) { .readouts { font-size: 11px; padding: 6px 8px; } .ctl { flex-basis: 45%; } }
