:root {
  --bg: #0f1115;
  --panel: #171923;
  --text: #e6e8f0;
  --muted: #9aa3b2;
  --accent: #4f46e5;
  --good: #22c55e;
  --warn: #f97316;
  --bad: #ef4444;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Inter, Helvetica, Arial, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--panel);
  border-bottom: 1px solid #232636;
}

.controls button {
  margin-right: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #2a2e3f;
  background: #1f2330;
  color: var(--text);
  cursor: pointer;
}
.controls .opt { margin-left: 8px; font-size: 12px; color: var(--muted); }

.controls button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.main {
  display: flex;
  justify-content: center;
  align-items: center;
  height: calc(100% - 120px);
}

.stage {
  position: relative;
  width: min(96vw, 1280px);
  aspect-ratio: 16/9;
  background: #0a0b10;
  border: 1px solid #232636;
  border-radius: 12px;
  overflow: hidden;
}

.video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1); /* selfie view */
  opacity: 0.12; /* keep low but visible for debugging */
}

.view {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hud {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(15, 17, 21, 0.72);
  backdrop-filter: blur(6px);
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12px;
  color: var(--muted);
}

.footer {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}


