:root {
  --bg: #000;
  --fg: #fff;
  --muted: #8a8a8a;
  --accent: #e0e0e0;
}

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  letter-spacing: 0.02em;
}

#visual-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  background: var(--bg);
}

#ui {
  position: fixed;
  top: 16px;
  left: 16px;
  display: grid;
  grid-auto-flow: row;
  gap: 12px;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  border: 1px solid #222;
  padding: 12px;
}

.group {
  display: grid;
  gap: 8px;
  min-width: 260px;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1.5fr auto;
  align-items: center;
  gap: 8px;
}

label {
  color: var(--accent);
  font-size: 12px;
}

input[type="range"] {
  width: 100%;
}

button {
  background: transparent;
  color: var(--fg);
  border: 1px solid #333;
  padding: 6px 10px;
  cursor: pointer;
}

button:hover {
  border-color: #666;
}

select, input, button {
  font-family: inherit;
  color: inherit;
  background: transparent;
}

[data-out] {
  font-size: 11px;
  color: var(--muted);
  min-width: 40px;
  text-align: right;
}

