* { box-sizing: border-box; }
body { margin: 0; background: #fff; color: #111; font-family: -apple-system, system-ui, sans-serif; min-height: 100vh; display: flex; justify-content: center; align-items: center; }
main { text-align: center; padding: 20px; }
#frame { position: relative; width: 280px; height: 280px; border-radius: 18px; overflow: hidden; background: #000; margin: 0 auto; }
#frame video { width: 100%; height: 100%; object-fit: cover; display: block; visibility: hidden; }
#frame.live video { visibility: visible; }
#frame .laser { position: absolute; left: 0; right: 0; height: 2px; background: #3fb950; animation: sweep 2s infinite linear; }
#frame .veil { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; font-size: 15px; color: #fff; pointer-events: none; }
#frame.dark .veil { background: #000; }
#frame.ok { border: 3px solid #3fb950; }
@keyframes sweep { 0% { top: 6%; } 50% { top: 94%; } 100% { top: 6%; } }
.status { font-size: 13px; color: #666; min-height: 18px; margin: 12px 0 0; }
button { padding: 12px 22px; font-size: 15px; border: 0; border-radius: 10px; background: #111; color: #fff; margin-top: 12px; }
.skip { display: block; margin-top: 12px; color: #999; font-size: 13px; }
