:root{--primary-pink: #fc4577;--bg-main: #0f1a2b;--bg-card: #162235;--text-main: #ffffff;--success: #38D6A2;--accent-blue: #3C8DFF}body{margin:0;background-color:var(--bg-main);color:var(--text-main);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;height:100dvh;width:100vw;overflow:hidden;display:flex;flex-direction:column}#camera-container,#qr-container{display:none;width:100%;height:100%;position:relative}#qr-container{display:none;width:100%;height:100%;flex-direction:column;align-items:center;justify-content:center;background:radial-gradient(circle at 50% 50%,#2a2a2a 0%,var(--bg-main) 80%)}.qr-card{position:relative;background:linear-gradient(145deg,#162235e6,#0f1a2bf2);padding:50px 40px;border-radius:24px;border:1px solid rgba(255,255,255,.08);box-shadow:0 20px 60px #0009,0 0 0 1px #0003;text-align:center;max-width:420px;width:90%;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.qr-card:before{content:"";position:absolute;top:0;left:50%;transform:translate(-50%);width:30%;height:4px;background:var(--primary-pink);box-shadow:0 0 20px var(--primary-pink)}.qr-card h2{color:#fff;margin-top:10px;margin-bottom:5px;font-size:1.8rem;letter-spacing:-.5px;font-weight:700}.qr-card p{color:var(--accent-blue);font-size:.95rem;margin-bottom:25px;font-weight:500}#qr-canvas{margin:10px 0 30px;border:12px solid white;border-radius:12px;box-shadow:0 0 30px #3c8dff26,0 10px 20px #0000004d;transition:transform .3s ease}#qr-canvas:hover{transform:scale(1.02);box-shadow:0 0 40px #fc457733}.card-logo{position:absolute;top:25px;left:25px;height:60px;max-width:180px;object-fit:contain;filter:drop-shadow(0 2px 4px rgba(0,0,0,.3));z-index:20}.scan-badge{display:inline-block;background:#ffffff0d;border:1px solid rgba(255,255,255,.1);padding:8px 16px;border-radius:50px;font-size:.8rem;color:#888;margin-top:-10px}video{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;z-index:0}#shutter-flash{position:absolute;top:0;left:0;width:100%;height:100%;background:#fff;opacity:0;pointer-events:none;z-index:50;transition:opacity .1s}.flash-active{opacity:.8!important}.overlay{position:absolute;top:0;left:0;width:100%;height:100%;z-index:10;pointer-events:none}.top-bar{position:absolute;top:0;width:100%;padding-top:max(20px,env(safe-area-inset-top));text-align:center;pointer-events:auto}#status-msg{background:#00000080;color:#fff;padding:8px 16px;border-radius:20px;font-size:14px;font-weight:600;display:inline-block;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);border:1px solid rgba(255,255,255,.1)}.bottom-area{position:absolute;bottom:0;width:100%;padding-bottom:max(30px,env(safe-area-inset-bottom));background:linear-gradient(to top,rgba(0,0,0,.6) 10%,transparent);pointer-events:auto;display:flex;flex-direction:column;align-items:center}#gallery-strip{display:flex;gap:10px;width:100%;padding:10px 20px;box-sizing:border-box;overflow-x:auto;-webkit-overflow-scrolling:touch;margin-bottom:10px;min-height:80px}.thumb-container{position:relative;height:60px;aspect-ratio:1/1;flex-shrink:0;animation:popIn .3s ease}.thumb-img{height:100%;width:100%;object-fit:cover;border-radius:8px;border:2px solid white}.delete-btn{position:absolute;top:-5px;right:-5px;background:var(--primary-pink);color:#fff;border:1px solid white;width:18px;height:18px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:700;cursor:pointer}.controls-row{position:relative;width:100%;height:80px;display:flex;justify-content:center;align-items:center}.shutter-btn{width:72px;height:72px;border-radius:50%;border:4px solid white;background:#ffffff26;display:flex;align-items:center;justify-content:center;cursor:pointer;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.shutter-inner{width:60px;height:60px;background:#fff;border-radius:50%;transition:transform .1s}.shutter-btn:active .shutter-inner{transform:scale(.9)}#upload-btn{position:absolute;right:25px;height:50px;padding:0 20px;border-radius:50px;background-color:var(--success);color:#fff;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:8px;box-shadow:0 4px 12px #0006;font-weight:800;font-size:16px;transition:transform .2s}#upload-btn:active{transform:scale(.95)}#upload-btn svg{width:24px;height:24px;fill:#fff;display:block}#init-btn{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);padding:18px 40px;background:var(--primary-pink);color:#fff;border:none;border-radius:50px;font-size:16px;font-weight:700;z-index:20;box-shadow:0 10px 25px #fc457766}.hp-trap{opacity:0;position:absolute;z-index:-9999}@keyframes popIn{0%{transform:scale(0) translateY(20px)}to{transform:scale(1) translateY(0)}}#consent-overlay,#error-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--bg-main);z-index:100;display:none;flex-direction:column;justify-content:center;align-items:center;padding:30px;box-sizing:border-box;text-align:center}.consent-card{background:var(--bg-card);padding:30px;border-radius:20px;border:1px solid rgba(255,255,255,.1);box-shadow:0 10px 30px #00000080;max-width:400px}.consent-icon{width:60px;height:60px;fill:var(--primary-pink);margin-bottom:20px}.consent-card h2{color:#fff;margin-top:0;font-size:1.5rem}.consent-card p{color:#d5d7db;line-height:1.6;font-size:1rem;margin-bottom:20px}.legal-micro{font-size:.75rem!important;color:#888!important;margin-top:20px!important}#consent-btn{background-color:var(--primary-pink);color:#fff;width:100%;padding:18px;font-size:16px;margin-top:10px;border:none;border-radius:50px;font-weight:700;cursor:pointer}#reload-btn{background-color:#fff;color:#000;margin-top:20px;padding:15px 30px;border-radius:50px;border:none;font-weight:700}
