:root { color-scheme: dark; --bg: #0b0d0c; --fg: #e8ece9; --dim: #8b948e; --accent: #3ddc84; --err: #ff6b6b; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--fg);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; }
.screen { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px; }
[hidden] { display: none !important; }
h1 { margin: 0; font-size: 28px; letter-spacing: -0.02em; }
.lead, .note { color: var(--dim); max-width: 360px; text-align: center; margin: 0; }
form { display: flex; flex-direction: column; gap: 12px; width: min(320px, 100%); }
label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--dim); }
input { font: inherit; color: var(--fg); background: #161a18; border: 1px solid #2a302d; border-radius: 10px; padding: 10px 12px; }
#code { font-size: 22px; letter-spacing: 0.15em; text-transform: uppercase; text-align: center; }
input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
button { font: inherit; font-weight: 600; border: 0; border-radius: 10px; padding: 10px 16px; background: var(--accent); color: #062312; cursor: pointer; }
button.secondary { background: #20262300; color: var(--fg); border: 1px solid #2a302d; }
.error { color: var(--err); min-height: 1.5em; margin: 0; }
.spinner { width: 32px; height: 32px; border-radius: 50%; border: 3px solid #2a302d; border-top-color: var(--accent); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#play { padding: 0; gap: 0; justify-content: stretch; background: #000; }
#video { flex: 1; width: 100%; min-height: 0; background: #000; object-fit: contain; }
#bar { width: 100%; display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: #0b0d0c; }
#bar .spacer { flex: 1; }
#pad-status { color: var(--dim); font-size: 14px; }
:fullscreen #bar { display: none; }
