/* Previz Common Styles — shared across all previz HTML files */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: #000; overflow: hidden; font-family: "Helvetica Neue", Arial, sans-serif; }
canvas { display: block; }

#info {
  position: fixed; top: 24px; left: 28px; z-index: 10;
  color: rgba(255,255,255,0.6); font-size: 11px; letter-spacing: 0.06em; line-height: 1.7;
}
#info h1 {
  font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.85);
  margin-bottom: 4px; letter-spacing: 0.08em;
}
#info .spec {
  color: rgba(255,255,255,0.35); font-size: 10px; margin-top: 6px; line-height: 1.5;
}
#info .count {
  color: rgba(255,255,255,0.55); font-size: 11px; margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
#info .led-count {
  color: rgba(255,255,255,0.55); font-size: 11px; margin-top: 4px;
  font-variant-numeric: tabular-nums;
}

#panel {
  position: fixed; top: 24px; right: 28px; z-index: 10;
  width: 220px; display: flex; flex-direction: column; gap: 14px;
}
.panel-section { display: flex; flex-direction: column; gap: 5px; }
.panel-label {
  color: rgba(255,255,255,0.35); font-size: 9px;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.panel-row { display: flex; align-items: center; gap: 8px; }
.panel-row span {
  color: rgba(255,255,255,0.55); font-size: 11px; min-width: 32px;
  text-align: right; font-variant-numeric: tabular-nums;
}
input[type="range"] {
  -webkit-appearance: none; appearance: none;
  flex: 1; height: 2px; background: rgba(255,255,255,0.15);
  outline: none; border-radius: 1px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%;
  background: rgba(255,255,255,0.7); cursor: pointer; border: none;
}
label.check {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  color: rgba(255,255,255,0.5); font-size: 11px; letter-spacing: 0.04em;
}
label.check input { accent-color: #888; }
.panel-divider { height: 1px; background: rgba(255,255,255,0.08); margin: 2px 0; }

.bar-label {
  color: rgba(255,255,255,0.35); font-size: 9px;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.btn-row { display: flex; gap: 6px; flex-wrap: wrap; }
.btn-row button {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18);
  color: #fff; padding: 6px 14px; font-size: 11px; letter-spacing: 0.05em;
  cursor: pointer; transition: background 0.2s, border-color 0.2s;
}
.btn-row button:hover { background: rgba(255,255,255,0.16); }
.btn-row button.active {
  background: rgba(255,255,255,0.22); border-color: rgba(255,255,255,0.5);
}

#bottom-bar {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 10;
}
#cam-bar {
  position: fixed; bottom: 28px; left: 28px; z-index: 10;
  display: flex; flex-direction: column; gap: 8px;
}
#motion-bar {
  position: fixed; bottom: 28px; right: 28px; z-index: 10;
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
}
#shape-bar {
  position: fixed; bottom: 28px; right: 28px; z-index: 10;
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
}

#palette-bar {
  position: fixed; top: 24px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 10;
}
.palette-grid { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; max-width: 600px; }
.palette-btn {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.7); padding: 5px 10px; font-size: 10px;
  letter-spacing: 0.04em; cursor: pointer; transition: background 0.2s, border-color 0.2s;
}
.palette-btn:hover { background: rgba(255,255,255,0.14); }
.palette-btn.active { background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.5); }
.palette-dots { display: flex; gap: 2px; }
.palette-dots span { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
