:root{--g-bg:#0f0d12;--g-surface:#191613;--g-surface-2:#221e19;--g-border:#3a332a;--g-text:#f5eee1;--g-muted:#b8ad9b;--g-faint:#938876;--g-accent:#ffb62e;--g-sun:#ffb62e;--g-ok:#6fd6a0;--g-warn:#ffc75c;--g-error:#ff8f86;--g-focus:#8fb4ff;--g-admit:#1f9d55;--g-check:#f0a92e;--g-reject:#b92c25;--g-ease:cubic-bezier(.2, .7, .2, 1);--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}*,:before,:after{box-sizing:border-box}body{background:radial-gradient(120% 60% at 50% -10%, #3a1612 0%, transparent 60%), var(--g-bg);min-height:100dvh;color:var(--g-text);-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent;background-attachment:fixed;margin:0;font:17px/1.5 ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,sans-serif}main{max-width:32rem;padding:max(.85rem, env(safe-area-inset-top)) 1rem max(2rem, env(safe-area-inset-bottom));margin:0 auto}h1{letter-spacing:-.02em;margin:1.25rem 0 .35rem;font-size:1.85rem;line-height:1.15}h2{letter-spacing:-.01em;margin:0 0 .25rem;font-size:1.1rem}p{margin:.4rem 0}.muted{color:var(--g-muted)}.small{font-size:.85rem}:focus-visible{outline:3px solid var(--g-focus);outline-offset:2px}.visually-hidden{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.topbar{justify-content:space-between;align-items:center;gap:1rem;display:flex}.brand{letter-spacing:.04em;align-items:center;gap:.55rem;font-size:.92rem;font-weight:800;display:inline-flex}.brand-mark{flex:none;width:2rem;height:2rem;display:block}.brand-mark-tile{fill:var(--g-surface-2)}.brand-mark-line{fill:none;stroke:var(--g-sun);stroke-width:4px;stroke-linecap:round;stroke-linejoin:round}.brand-mark-sun{fill:var(--g-sun)}.pill{background:var(--g-surface);border:1px solid var(--g-border);border-radius:999px;align-items:center;gap:.4rem;padding:.25rem .75rem;font-size:.85rem;font-weight:700;display:inline-flex}.pill:before{content:"";background:currentColor;border-radius:50%;width:.5rem;height:.5rem}.pill.ok{color:var(--g-ok)}.pill.warn{color:var(--g-warn)}.intro{margin:.5rem 0 1.25rem}.card{background:var(--g-surface);border:1px solid var(--g-border);border-radius:18px;margin:.85rem 0;padding:1.15rem;position:relative}.card--glow{background:linear-gradient(160deg, #3a1612, var(--g-surface) 70%);border-color:#5a2a1c}.card-icon{background:var(--g-surface-2);width:2.5rem;height:2.5rem;color:var(--g-sun);border-radius:12px;place-items:center;margin-bottom:.75rem;display:grid}.card .button{margin-top:.75rem}label{margin:.5rem 0 .35rem;font-size:.95rem;font-weight:600;display:block}input,select{border:1px solid var(--g-border);background:var(--g-bg);width:100%;min-height:3.1rem;color:var(--g-text);font:inherit;border-radius:12px;padding:.5rem .9rem}input:focus,select:focus{border-color:var(--g-accent);outline:none;box-shadow:0 0 0 4px #ffb62e40}input::placeholder{color:var(--g-faint)}.row{align-items:stretch;gap:.5rem;margin:.5rem 0;display:flex}.row input{flex:1;min-width:0}.row .button{margin:0}.field{margin:1rem 0}.stack{gap:.75rem;margin:1rem 0;display:grid}.button{background:var(--g-sun);color:#1d1403;min-height:3.1rem;font:inherit;cursor:pointer;transition:transform .12s var(--g-ease), background-color .15s, border-color .15s, color .15s;border:1px solid #0000;border-radius:999px;justify-content:center;align-items:center;gap:.5rem;padding:.5rem 1.3rem;font-weight:700;display:inline-flex}.button:hover:not(:disabled){background:#ffc75c}.button:active:not(:disabled){transform:scale(.98)}.button:disabled{opacity:.5;cursor:not-allowed}.button.block{width:100%}.button.quiet{background:var(--g-surface-2);color:var(--g-text);border-color:var(--g-border)}.button.quiet:hover:not(:disabled){background:var(--g-border)}.button.danger{color:var(--g-error);border-color:var(--g-error);background:0 0}.button.danger:hover:not(:disabled){background:#ff8f861f}.button svg{flex:none}.notice{background:var(--g-surface-2);border:1px solid var(--g-border);border-radius:12px;padding:.7rem .95rem}.notice.error{background:#d93a3226;border-color:#ff8f8666}.spinner{border:4px solid var(--g-border);border-top-color:var(--g-sun);border-radius:50%;width:2.75rem;height:2.75rem;margin:2.5rem auto;animation:.9s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){.spinner{animation-duration:3s}}.loading{min-height:50dvh;color:var(--g-muted);place-items:center;display:grid}.gate-card{background:var(--g-surface);border:1px solid var(--g-border);border-radius:18px;margin:.85rem 0;padding:1rem 1.1rem}.gate-head{justify-content:space-between;align-items:center;gap:1rem;display:flex}.event{letter-spacing:-.01em;margin:0;font-size:1.15rem;font-weight:800}.device{margin:.1rem 0 0}.count{text-align:right;margin:0;line-height:1}.count strong{letter-spacing:-.03em;font-variant-numeric:tabular-nums;color:var(--g-ok);font-size:2.4rem;font-weight:800;display:block}.count span{color:var(--g-muted);text-transform:uppercase;letter-spacing:.08em;font-size:.78rem;font-weight:700}.chips{border-top:1px solid var(--g-border);color:var(--g-muted);flex-wrap:wrap;gap:.35rem;margin:.85rem 0 0;padding:.85rem 0 0;font-size:.8rem;list-style:none;display:flex}.chips li{background:var(--g-surface-2);border-radius:999px;align-items:center;gap:.35rem;padding:.2rem .6rem;display:inline-flex}.chips strong{color:var(--g-text)}.chips svg{color:var(--g-sun);flex:none}.modes{background:var(--g-surface);border:1px solid var(--g-border);border-radius:999px;grid-auto-columns:1fr;grid-auto-flow:column;gap:.25rem;padding:.3rem;display:grid}.modes button{min-height:2.75rem;color:var(--g-muted);font:inherit;cursor:pointer;background:0 0;border:0;border-radius:999px;font-weight:700;transition:background-color .15s,color .15s}.modes button:hover{color:var(--g-text)}.modes button[aria-pressed=true]{background:var(--g-text);color:var(--g-bg)}.camera{aspect-ratio:3/4;border:1px solid var(--g-border);background:#000;border-radius:22px;margin:.85rem 0;position:relative;overflow:hidden}.small-camera{aspect-ratio:1;margin-top:.85rem}.camera video{object-fit:cover;width:100%;height:100%;display:block}.frame{aspect-ratio:1;border-radius:22px;width:68%;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);box-shadow:0 0 0 100vmax #00000059}.frame i{border:4px solid #fff;width:2.4rem;height:2.4rem;position:absolute}.frame i:first-child{border-bottom:0;border-right:0;border-top-left-radius:20px;top:0;left:0}.frame i:nth-child(2){border-bottom:0;border-left:0;border-top-right-radius:20px;top:0;right:0}.frame i:nth-child(3){border-top:0;border-right:0;border-bottom-left-radius:20px;bottom:0;left:0}.frame i:nth-child(4){border-top:0;border-left:0;border-bottom-right-radius:20px;bottom:0;right:0}.scanline{background:linear-gradient(90deg, transparent, var(--g-sun), transparent);height:2px;box-shadow:0 0 12px var(--g-sun);border-radius:2px;position:absolute;top:50%;left:8%;right:8%}@media (prefers-reduced-motion:no-preference){.scanline{animation:2.2s ease-in-out infinite alternate sweep}}@keyframes sweep{0%{top:10%}to{top:90%}}.camera-hint{text-align:center;color:#fff;text-shadow:0 1px 6px #000000b3;pointer-events:none;margin:0;font-size:.9rem;font-weight:600;position:absolute;bottom:.9rem;left:0;right:0}.torch{color:#fff;min-height:2.75rem;font:inherit;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);cursor:pointer;background:#0000008c;border:0;border-radius:999px;align-items:center;gap:.4rem;padding:0 1rem;font-weight:600;transition:background-color .15s,color .15s;display:inline-flex;position:absolute;top:.75rem;right:.75rem}.torch[aria-pressed=true]{color:#000;background:#fff}.camera-off{border:2px dashed var(--g-border);text-align:center;border-radius:22px;align-content:center;place-items:center;gap:.35rem;margin:.85rem 0;padding:2.25rem 1.5rem;display:grid}.camera-off svg{color:var(--g-muted);margin-bottom:.35rem}.camera-off p{margin:0}.camera-off strong{font-size:1.1rem}.foot{justify-content:space-between;gap:.5rem;margin-top:1rem;display:flex}.results{gap:.5rem;margin:.85rem 0;padding:0;list-style:none;display:grid}.results li{background:var(--g-surface);border:1px solid var(--g-border);border-radius:14px;justify-content:space-between;align-items:center;gap:.75rem;padding:.8rem .9rem;display:flex}.results p{margin:.15rem 0 0}.facts{background:var(--g-surface);border:1px solid var(--g-border);border-radius:16px;gap:0;margin:1rem 0;padding:.25rem 1rem;display:grid}.facts div{border-bottom:1px solid var(--g-border);justify-content:space-between;gap:1rem;padding:.7rem 0;display:flex}.facts div:last-child{border-bottom:0}.facts dt{color:var(--g-muted)}.facts dd{text-align:right;margin:0;font-weight:600}.result{z-index:10;text-align:center;color:#0b0a0d;cursor:pointer;flex-direction:column;justify-content:center;align-items:center;gap:.5rem;padding:2rem 1.5rem;display:flex;position:fixed;inset:0}@media (prefers-reduced-motion:no-preference){.result{animation:.18s ease-out result-in}.result .icon{animation:pop .35s var(--g-ease)}}@keyframes result-in{0%{opacity:.4}}@keyframes pop{0%{opacity:0;transform:scale(.6)}}.result.admit{background:radial-gradient(80% 60% at 50% 35%, #2bb868, var(--g-admit))}.result.check{background:radial-gradient(80% 60% at 50% 35%, #ffbe4d, var(--g-check))}.result.reject{background:radial-gradient(80% 60% at 50% 35%, #d33a31, var(--g-reject));color:#fff}.result .icon{background:#ffffff38;border:4px solid;border-radius:50%;place-items:center;width:8.5rem;height:8.5rem;margin-bottom:.5rem;display:grid}.result .title{letter-spacing:-.02em;margin:0;font-size:2.7rem;font-weight:900;line-height:1.05}.result .detail{max-width:26rem;margin:0;font-size:1.25rem;font-weight:600}.result .ticket-line{background:#0000001f;border-radius:999px;margin:.5rem 0 0;padding:.35rem .9rem;font-size:1rem;font-weight:600}.result .dismiss{min-height:3.25rem;color:inherit;font:inherit;cursor:pointer;background:0 0;border:2px solid;border-radius:999px;margin-top:1.75rem;padding:0 2.5rem;font-size:1.1rem;font-weight:800;transition:background-color .15s}.result .dismiss:hover{background:#ffffff2e}.result :focus-visible{outline-color:currentColor}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:0s!important}}
