:root { color-scheme: dark; font-family: system-ui, sans-serif; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: #070a0b; color: #f1f5f3; }
button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.login { width: min(400px, calc(100% - 32px)); margin: 15vh auto 0; }
.login h1 { color: #00ff66; font: bold 2rem "Courier New", monospace; }
.login form { display: grid; gap: 12px; margin-top: 30px; }
.login input { padding: 12px; border: 1px solid #718079; border-radius: 8px; background: #12191a; color: #fff; }
.login button, nav button, header button { padding: 10px 14px; border: 1px solid #00b84b; border-radius: 8px; background: #102219; color: #00ff66; font-weight: 700; }
.error { color: #ff6d75; }
.review { display: flex; flex-direction: column; min-height: 100dvh; }
header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: max(10px, env(safe-area-inset-top)) 16px 8px; background: #050807; }
header strong { color: #00ff66; font: bold 1.1rem "Courier New", monospace; }
header span { color: #b9c8be; font-size: .85rem; }
header button { padding: 7px 10px; }
.stage { position: relative; display: grid; place-items: center; flex: 1 1 auto; height: 68dvh; min-height: 45dvh; max-height: 78dvh; overflow: hidden; touch-action: none; background: #000; }
.stage video { display: block; width: 100%; height: 100%; max-height: 78dvh; object-fit: contain; background: #000; }
.stage.portrait video { max-width: min(100%, 50dvh); }
.waiting { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; background: #000c; color: #bcd4c4; }
.drag-hint { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 2; padding: 8px 14px; border-radius: 8px; background: #102219ee; color: #00ff66; font-weight: 700; opacity: 0; pointer-events: none; }
.details { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 8px 16px; color: #b9c8be; font-size: .9rem; }
#notice { color: #ffcf70; }
nav { display: flex; justify-content: center; gap: 8px; padding: 4px 16px; }
nav button { flex: 1 1 0; max-width: 210px; }
nav .delete { border-color: #ff7373; background: #281315; color: #ff9292; }
.help { margin: 4px 0 0; padding: 0 12px max(10px, env(safe-area-inset-bottom)); color: #7f9488; text-align: center; font-size: .75rem; }
@media (min-width: 900px) { .stage { min-height: 65dvh; } .stage.portrait video { max-width: 55dvh; } }
