:root {
  --ink: #16171a;
  --ink-2: #4a4c52;
  --glass: rgba(250, 250, 252, 0.78);
  --line: rgba(20, 22, 26, 0.12);
  --accent: #c8530f;
  --accent-ink: #ffffff;
  --radius: 10px;
  font-family: ui-sans-serif, -apple-system, "Segoe UI", Inter, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #c9c9cb; color: var(--ink); }
#stage { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }

.chrome { position: fixed; left: 24px; right: 24px; display: flex; align-items: flex-start; justify-content: space-between; pointer-events: none; }
.chrome--top { top: 20px; }
.brand h1 { margin: 0; font-size: 15px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 650; }
.brand p { margin: 4px 0 0; font-size: 12px; color: var(--ink-2); letter-spacing: 0.04em; }
.stat { font: 11px/1 ui-monospace, Menlo, monospace; color: var(--ink-2); padding-top: 4px; }

.panel {
  position: fixed; right: 20px; top: 64px; width: 248px;
  background: var(--glass); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid var(--line); border-radius: 14px; padding: 12px 12px 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}
.panel section + section { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.panel h2 { margin: 0 0 8px; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-2); font-weight: 600; }
.row { display: flex; gap: 6px; }
.row + .row { margin-top: 6px; }
.row.wrap { flex-wrap: wrap; }
.row.wrap button { flex: 0 0 calc(33.33% - 4px); }
.row.meta { justify-content: space-between; font: 11px/1.2 ui-monospace, Menlo, monospace; color: var(--ink-2); margin-top: 8px; }

button {
  flex: 1; appearance: none; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.85);
  color: var(--ink); font: 500 12px/1 inherit; font-family: inherit; padding: 8px 6px; border-radius: 8px; cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
button:hover:not(:disabled) { border-color: rgba(20, 22, 26, 0.3); }
button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button[aria-pressed="true"], button.is-on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
button:disabled { opacity: 0.45; cursor: default; }

.slider { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--ink-2); margin-top: 8px; }
.slider input { flex: 1; accent-color: var(--accent); }
.hint { margin: 10px 0 0; font-size: 10.5px; color: var(--ink-2); line-height: 1.4; }

body.capture .panel, body.capture .chrome { display: none; }
