:root{color-scheme:dark;--bg-root: #020617;--bg-card: #020617;--border-subtle: #1f2937;--text-main: #e5e7eb;--text-muted: #9ca3af;--accent: #22c55e;--danger: #f97373}*,*:before,*:after{box-sizing:border-box}html,body,#root{margin:0;padding:0;height:100%}body{font-family:system-ui,-apple-system,BlinkMacSystemFont,SF Pro Text,sans-serif;background-color:var(--bg-root);color:var(--text-main)}.scanner-app{min-height:100vh;max-width:640px;margin:0 auto;padding:1rem 1rem 1.25rem;display:flex;flex-direction:column;gap:1rem}.scanner-header{text-align:center;margin-bottom:.5rem}.scanner-header h1{font-size:1.4rem;margin:0}.scanner-header p{margin-top:.3rem;font-size:.9rem;color:var(--text-muted)}.scanner-main{display:flex;flex-direction:column;gap:.9rem}.video-wrapper{position:relative;width:100%;aspect-ratio:16 / 9;border-radius:1.2rem;overflow:hidden;border:1px solid var(--border-subtle);background:#000}.scanner-video{width:100%;height:100%;object-fit:cover}.scan-frame{position:absolute;top:12%;right:12%;bottom:12%;left:12%;border:2px solid rgba(34,197,94,.9);border-radius:1rem;box-shadow:0 0 0 999px #00000059,0 0 20px #22c55ee6;pointer-events:none}.result-card,.error-card{border-radius:1rem;border:1px solid var(--border-subtle);padding:.75rem .9rem;background:radial-gradient(circle at top,#020617,#000)}.result-card h2{font-size:1rem;margin-bottom:.4rem}.code-value{word-break:break-all;font-size:1rem;font-weight:600;margin:.25rem 0 .1rem}.code-time{font-size:.8rem;color:var(--text-muted)}.code-placeholder{font-size:.9rem;color:var(--text-muted)}.error-card{border-color:#f87171b3}.error-card p{margin:.1rem 0}.error-card .hint{font-size:.8rem;color:var(--text-muted)}.no-camera{width:100%;height:100%;display:flex;align-items:center;justify-content:center;padding:1rem;text-align:center;color:var(--text-muted)}@media(max-width:480px){.scanner-app{padding-inline:.75rem}.scan-frame{top:20%;right:20%;bottom:20%;left:20%}}@media(orientation:landscape){.scanner-app{max-width:100%;padding:.75rem}.video-wrapper{aspect-ratio:16 / 9}.scan-frame{top:10%;right:10%;bottom:10%;left:10%}}
