:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #000;
  color: #fff;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { overflow: hidden; }
[hidden] { display: none !important; }
#app { position: fixed; inset: 0; }
.preview {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; background: #000;
}
.badge {
  position: absolute;
  top: calc(env(safe-area-inset-top) + 12px); left: 12px;
  background: #e0201b; color: #fff; font-weight: 700; letter-spacing: 0.08em;
  padding: 4px 10px; border-radius: 6px; font-size: 14px;
}
.panel {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px 16px calc(env(safe-area-inset-bottom) + 16px);
  display: flex; flex-direction: column; gap: 12px; align-items: stretch;
}
body:not([data-state="live"]) .panel { top: 0; justify-content: center; max-width: 480px; margin: 0 auto; }
.message { font-size: 20px; line-height: 1.4; text-align: center; margin: 0; }
.hint {
  margin: 0; text-align: center; font-size: 15px;
  background: rgba(0, 0, 0, 0.6); border-radius: 8px; padding: 8px 12px;
}
.controls { display: flex; flex-direction: column; gap: 10px; }
body[data-state="live"] .controls { flex-direction: row; }
body[data-state="live"] .controls button { flex: 1; }
button {
  font: inherit; font-size: 18px; font-weight: 600;
  min-height: 52px; border: 0; border-radius: 12px; padding: 12px 16px;
  background: rgba(255, 255, 255, 0.18); color: #fff;
}
button.primary { background: #0a84ff; font-size: 22px; min-height: 64px; }
button.danger { background: rgba(224, 32, 27, 0.9); }
.privacy { color: #9ab; text-align: center; font-size: 14px; }
