:root{font-family:Inter,PingFang SC,Microsoft YaHei,sans-serif;color:#17191f;background:#f4f5f7;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}html,body,#root{min-height:100%;margin:0}body{min-width:320px;background:radial-gradient(circle at 88% 5%,rgba(255,187,38,.2),transparent 25rem),#f4f5f7}button,input{font:inherit}.page-shell{min-height:100vh;min-height:100dvh;padding:0 16px calc(24px + env(safe-area-inset-bottom))}.brand-bar{width:min(100%,520px);height:calc(68px + env(safe-area-inset-top));margin:0 auto;padding:calc(14px + env(safe-area-inset-top)) 4px 10px;display:flex;align-items:center;gap:11px}.brand-mark{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;color:#2c2100;font:700 15px/1 Georgia,serif;background:linear-gradient(145deg,#ffd45e,#f2a900);box-shadow:0 8px 18px #cc8b0033}.brand-bar>span:last-child{display:grid;gap:2px}.brand-bar strong{font-size:17px;letter-spacing:.02em}.brand-bar small{color:#777b84;font-size:11px}.scanner-card{width:min(100%,520px);min-height:calc(100dvh - 98px - env(safe-area-inset-top));margin:0 auto;padding:28px 22px 24px;border:1px solid rgba(20,24,34,.06);border-radius:24px;background:#fffffff2;box-shadow:0 18px 50px #1d212a14}.page-heading{text-align:center}.eyebrow{color:#c48700;font:700 11px/1.2 Inter,sans-serif;letter-spacing:.18em}.page-heading h1{margin:9px 0 24px;font-size:25px;line-height:1.3}.page-heading p{margin:0 0 5px;color:#888c95;font-size:13px}.page-heading strong{display:block;margin-bottom:23px;font-size:19px}.camera-stage{position:relative;width:100%;aspect-ratio:1 / .92;overflow:hidden;margin:0 0 20px;border-radius:20px;background:linear-gradient(145deg,#f7f7f7,#eceef1);border:1px solid #e9e9e9}.camera-stage video{display:none;width:100%;height:100%;object-fit:cover;background:#0d0e11}.camera-stage.is-active video{display:block}.camera-placeholder{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:20px;text-align:center}.camera-placeholder strong{margin:17px 0 7px;font-size:16px}.camera-placeholder p{margin:0;color:#898d96;font-size:13px;line-height:1.7}.qr-outline{position:relative;width:76px;height:76px}.qr-outline i,.scan-frame i{position:absolute;width:22px;height:22px;border-color:#e4a300;border-style:solid}.qr-outline i:nth-child(1),.scan-frame i:nth-child(1){top:0;left:0;border-width:3px 0 0 3px;border-radius:6px 0 0}.qr-outline i:nth-child(2),.scan-frame i:nth-child(2){top:0;right:0;border-width:3px 3px 0 0;border-radius:0 6px 0 0}.qr-outline i:nth-child(3),.scan-frame i:nth-child(3){right:0;bottom:0;border-width:0 3px 3px 0;border-radius:0 0 6px}.qr-outline i:nth-child(4),.scan-frame i:nth-child(4){bottom:0;left:0;border-width:0 0 3px 3px;border-radius:0 0 0 6px}.scan-frame{position:absolute;inset:50% auto auto 50%;width:min(68vw,260px);height:min(68vw,260px);transform:translate(-50%,-50%)}.scan-frame i{width:36px;height:36px;border-color:#ffbd22;border-width:0}.scan-frame i:nth-child(1){border-width:4px 0 0 4px}.scan-frame i:nth-child(2){border-width:4px 4px 0 0}.scan-frame i:nth-child(3){border-width:0 4px 4px 0}.scan-frame i:nth-child(4){border-width:0 0 4px 4px}.scan-frame span{position:absolute;left:8px;right:8px;top:10px;height:2px;background:linear-gradient(90deg,transparent,#ffc02e 12%,#ffc02e 88%,transparent);box-shadow:0 0 8px #ffbb19;animation:scan-line 2.2s ease-in-out infinite}@keyframes scan-line{0%,to{top:10px;opacity:.5}50%{top:calc(100% - 12px);opacity:1}}.primary-button,.secondary-button{width:100%;height:52px;border-radius:999px;display:flex;align-items:center;justify-content:center;gap:9px;cursor:pointer;transition:transform .15s ease,opacity .15s ease}.primary-button{border:0;color:#2c2100;font-weight:700;background:linear-gradient(100deg,#ffb000,#ffc839);box-shadow:0 10px 24px #eba3003d}.secondary-button{margin-top:12px;border:1px solid #dedfe2;color:#34373e;font-weight:600;background:#fff}.primary-button svg,.secondary-button svg{width:20px;height:20px;fill:currentColor}.primary-button:active,.secondary-button:active{transform:scale(.985)}.primary-button:disabled,.secondary-button:disabled{cursor:default;opacity:.55}.privacy-note{margin:17px 0 0;text-align:center;color:#a0a3aa;font-size:11px}.message{margin:0 0 18px;padding:13px 15px;border-radius:12px;font-size:13px;line-height:1.6}.error-message{color:#a72e2e;background:#fff1f0;border:1px solid #ffd8d4}.warning-message{display:grid;gap:3px;color:#765300;background:#fff7df;border:1px solid #f6dfa1}.state-panel{min-height:calc(100dvh - 154px - env(safe-area-inset-top));display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.state-panel p{color:#858993;font-size:14px}.spinner{width:36px;height:36px;border:3px solid #f0dfb4;border-top-color:#e1a000;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.success-icon{width:76px;height:76px;border-radius:50%;display:grid;place-items:center;color:#fff;background:linear-gradient(145deg,#27bb83,#159d6b);box-shadow:0 12px 28px #159d6b38}.success-icon svg{width:44px;height:44px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}.success-panel h1{margin:24px 0 7px;font-size:26px}.success-panel>p{margin:0}.success-tip{margin-top:28px;padding:12px 18px;color:#61656d;background:#f5f6f7;border-radius:12px;font-size:13px}@media(max-width:370px){.scanner-card{padding-inline:17px}.page-heading h1{font-size:23px}}
