:root {
  --bg: #0b0b0c;
  --line: #26262a;
  --text: #f2f2f0;
  --muted: #8c8c92;
  --accent: #ff8a3d;
  --on-accent: #141416;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); }
body {
  font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
main {
  max-width: 460px; margin: 0 auto;
  padding: max(28px, env(safe-area-inset-top)) 24px max(28px, env(safe-area-inset-bottom));
  min-height: 100svh; display: flex; flex-direction: column;
}
.mark { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; color: var(--muted); margin: 0 0 12vh; }
.mark img { width: 22px; height: 22px; }
h1 { font-size: 34px; line-height: 1.05; letter-spacing: -.03em; margin: 0 0 12px; font-weight: 700; }
.accent { color: var(--accent); }
.muted { color: var(--muted); margin: 0 0 24px; }
.small { font-size: 13px; }
.bar { height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; margin: 8px 0 10px; }
.bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
#ready { display: flex; flex-direction: column; gap: 14px; margin-top: -6vh; }
#ready[hidden], #waiting[hidden] { display: none; }
video {
  width: min(62vw, 280px); aspect-ratio: 9 / 16; align-self: center; border-radius: 14px;
  background: #111; object-fit: cover; box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}
.primary, .ghost {
  display: block; width: 100%; text-align: center; padding: 16px; border-radius: 999px;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.primary { background: var(--accent); color: var(--on-accent); border: 0; }
.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.primary[hidden], .ghost[hidden] { display: none; }
#ready .muted { text-align: center; margin: 4px 0 0; }
