:root{--bg: #0e0b16;--surface: #17131f;--text: #f4f1f8;--muted: #a89fb8;--grape: #b14ad6;--border: #2a2438}*{box-sizing:border-box}html,body,#root{height:100%}body{margin:0;background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased}.screen{min-height:100%;display:flex;flex-direction:column;padding:max(1.5rem,env(safe-area-inset-top)) 1.5rem 1.5rem}.center{justify-content:center;align-items:center;text-align:center;gap:1rem}h1{font-size:1.6rem;margin:0}p{color:var(--muted);margin:0;max-width:28rem}button{font:inherit;border:none;border-radius:12px;padding:.9rem 1.4rem;font-weight:600;cursor:pointer}.primary{background:var(--grape);color:#fff}.primary:disabled{opacity:.4}.capture-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:.75rem}.event-name{font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.flip{background:var(--surface);border:1px solid var(--border);color:var(--text);padding:.45rem .9rem;font-size:.9rem;flex-shrink:0}.viewfinder{position:relative;overflow:hidden;flex:1;border:1px solid var(--border);border-radius:16px;background:#000;display:grid;place-items:center;color:var(--muted);margin-bottom:1rem}.viewfinder video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.viewfinder video.mirror{transform:scaleX(-1)}.fallback{display:flex;flex-direction:column;align-items:center;gap:.75rem;padding:1.5rem;text-align:center}.flash{position:absolute;inset:0;background:#fff;opacity:0;pointer-events:none;animation:flash .3s ease-out}@keyframes flash{0%{opacity:.8}to{opacity:0}}.roll{display:flex;align-items:center;justify-content:space-between;gap:1rem}.counter{font-variant-numeric:tabular-nums;font-size:1.1rem;font-weight:700}.shutter{width:72px;height:72px;border-radius:50%;background:#fff;border:4px solid var(--grape)}.shutter:disabled{opacity:.35;cursor:default}.status{margin-top:.6rem;min-height:1.2em;text-align:center;font-size:.9rem;align-self:center}.status .ok{color:#7dd87d}.status .warn,.warn{color:#ff6b6b}.stack{display:flex;flex-direction:column;gap:.9rem;width:100%;max-width:20rem}.lens{width:3.5rem;height:3.5rem;border-radius:50%;background:radial-gradient(circle at 32% 30%,#fff 0 12%,var(--grape) 16% 52%,#8b2fb0 56% 100%);box-shadow:0 0 0 3px var(--bg),0 0 0 5px var(--grape);margin-bottom:.5rem}.code-input{font:inherit;text-align:center;letter-spacing:.35em;text-transform:uppercase;font-size:1.5rem;font-weight:700;padding:.9rem 1rem;border-radius:12px;border:1px solid var(--border);background:var(--surface);color:var(--text)}.code-input:focus{outline:none;border-color:var(--grape)}.welcome-img{width:100%;max-width:22rem;max-height:40vh;object-fit:cover;border-radius:16px;border:1px solid var(--border)}.notice{font-size:.95rem}.name-input{font:inherit;width:100%;max-width:20rem;text-align:center;padding:.8rem 1rem;border-radius:12px;border:1px solid var(--border);background:var(--surface);color:var(--text)}.name-input:focus{outline:none;border-color:var(--grape)}.notice-sub{font-size:.8rem;margin-top:-.4rem}.paused{color:var(--text)}.geo-warn{margin:.6rem 0 0;padding:.55rem .75rem;border:1px solid #e0a34a;border-radius:.5rem;background:#e0a34a1f;color:#f0c58a;font-size:.85rem;line-height:1.35;text-align:center}.err{color:#ff6b6b;font-size:.9rem}.ghost{background:transparent;border:1px solid var(--border);color:var(--text)}.link{background:transparent;border:none;color:var(--muted);padding:.5rem;font-weight:500;text-decoration:underline}.spinner{width:32px;height:32px;border-radius:50%;border:3px solid var(--border);border-top-color:var(--grape);animation:spin .8s linear infinite}.head-actions{display:flex;gap:.5rem;flex-shrink:0}.roll-grid{flex:1;overflow-y:auto;display:grid;grid-template-columns:repeat(auto-fill,minmax(9rem,1fr));gap:.75rem;align-content:start}.roll-item{margin:0;border:1px solid var(--border);border-radius:12px;overflow:hidden;background:var(--surface)}.roll-item img{display:block;width:100%;aspect-ratio:1 / 1;object-fit:cover}.roll-badge{display:block;padding:.35rem .5rem;font-size:.78rem;text-align:center;color:var(--muted)}.roll-badge--submitted{color:#7dd87d}.roll-badge--failed{color:#ff6b6b}.roll-empty{flex:1;display:grid;place-items:center;text-align:center}.notify{display:flex;flex-direction:column;align-items:center;gap:.6rem;width:100%;max-width:20rem;margin:1rem auto 0;padding:1rem;border:1px solid var(--border);border-radius:16px;background:var(--surface);text-align:center}.notify .name-input,.notify .primary{width:100%}.notify-title{color:var(--text);font-weight:700;font-size:1rem}.notify-sub{font-size:.85rem}.notify--done{border-color:var(--grape)}@keyframes spin{to{transform:rotate(360deg)}}.preview-overlay{position:fixed;inset:0;z-index:20;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1.5rem;padding:1.25rem;background:#06040cd1;backdrop-filter:blur(6px);animation:preview-in .16s ease-out}@keyframes preview-in{0%{opacity:0;transform:translateY(8px)}}.polaroid{margin:0;width:min(20rem,82vw);background:#faf8f2;padding:.75rem .75rem 0;border-radius:4px;box-shadow:0 18px 40px #00000080;transform:rotate(-1.2deg)}.polaroid-frame{aspect-ratio:1 / 1;overflow:hidden;background:#0e0b16}.polaroid-photo{display:block;width:100%;height:100%;object-fit:cover}.polaroid-chin{display:flex;align-items:center;min-height:3.5rem;padding:.4rem .2rem}.polaroid-caption{width:100%;border:none;background:transparent;color:#1a1524;font-family:Bradley Hand,Segoe Print,Comic Sans MS,cursive;font-size:1.15rem;text-align:center;padding:.2rem}.polaroid-caption::placeholder{color:#9a92a8}.polaroid-caption:focus{outline:none}.preview-actions{display:flex;gap:.75rem;width:min(20rem,82vw)}.preview-btn{flex:1;padding:.8rem 1rem;border-radius:999px;font:inherit;font-weight:700;font-size:1rem;cursor:pointer}.preview-btn:disabled{opacity:.4;cursor:default}.preview-btn--ghost{background:transparent;color:var(--text);border:1px solid rgba(244,241,248,.35)}.preview-btn--keep{background:var(--grape);color:#fff;border:1px solid var(--grape)}
