:root{font-family:Arial,Helvetica,sans-serif;color:#07633c;font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:#d6f0f2}.app{max-width:480px;min-height:100dvh;margin:auto;padding:28px 27px 18px;overflow:hidden;background:radial-gradient(ellipse at 0 96%,#f0ffffc9,transparent 40%),radial-gradient(ellipse at 90% 90%,#b9eff1,transparent 35%),linear-gradient(155deg,#0084c7 0%,#59b8e4 42%,#c5edf1 100%);display:flex;flex-direction:column}header{text-align:center;margin:0 -10px 34px}.brand{width:100%;max-width:350px;display:block;margin:auto}.brand-logout{display:block;width:100%;padding:0;border:0;background:none;cursor:pointer}.brand,.product{mix-blend-mode:normal;mask-image:linear-gradient(to right,transparent,#000 7%,#000 93%,transparent),linear-gradient(to bottom,transparent,#000 9%,#000 91%,transparent);mask-composite:intersect}h1{text-align:center;color:#fff;font-size:25px;line-height:1.3;text-transform:uppercase;text-shadow:2px 2px #086b39,-1px -1px #086b39,1px -1px #086b39,-1px 1px #086b39;margin:0 0 24px;font-weight:900}h2{font-size:20px}p{line-height:1.45}.intro{text-align:center;color:#fff;font-weight:700;margin:-12px 8px 25px}.button{display:block;border:0;border-radius:5px;background:linear-gradient(100deg,#00ad00,#08d300);color:white;text-align:center;text-decoration:none;font-weight:800;font-size:17px;min-height:46px;padding:13px 18px;cursor:pointer;width:100%}.button:disabled{opacity:.55;cursor:not-allowed}.button.gold,.gold-panel,.stat{background:linear-gradient(105deg,#ffa600,#ffe436);border:3px solid #ffcf1e}.gold-panel{border-radius:22px;padding:22px 18px;box-shadow:0 4px 0 #eaaa1d33}.gold-panel .button{background:white;color:#07633c;margin:15px 0;box-shadow:0 2px 0 #d68e22}.field{margin-bottom:23px}label{display:block;font-weight:800;font-size:15px;margin-bottom:7px}input:not([type=checkbox]),select{width:100%;min-height:46px;border:1px solid #b3c4c2;border-radius:8px;background:white;padding:10px 13px;font:inherit;color:#07633c}input:focus,select:focus,button:focus-visible,a:focus-visible{outline:3px solid #08774a;outline-offset:3px}.product{width:100%;margin-top:20px}.qr-row{display:flex;align-items:center;justify-content:center;gap:24px;color:white;font-size:22px;font-weight:900}.qr{background:white;border:4px solid #ffd83d;border-radius:13px;padding:8px;width:145px;min-height:145px}.qr canvas,.qr img,.qr svg{display:block;width:100%;height:auto}.code{text-align:center;font-size:13px;letter-spacing:2px;font-weight:700;margin:10px 0 20px}.caption{color:white;text-align:center;font-weight:800;margin:12px 0 7px}.stat{border-radius:9px;text-align:center;color:white;font-weight:900;font-size:34px;padding:5px;margin-bottom:22px}.check-row{display:flex;align-items:center;gap:16px;font-weight:800;margin:17px 0;line-height:1.35}.check-row span:last-child{text-shadow:1px 1px white}.check{appearance:none;flex:0 0 46px;width:46px;height:46px;background:white;border:2px solid #ffcf35;border-radius:9px;display:grid;place-content:center;margin:0}.check:checked:after,.check.done:after{content:'✓';font-size:40px;color:#007441;line-height:1}.hint{text-align:center;font-size:14px;font-weight:700}.notice{background:#fff5d8;color:#754500;border:1px solid #ffd34c;border-radius:10px;padding:12px;margin-bottom:18px;line-height:1.4}.notice.success{background:#e7ffe9;color:#07633c}.person-info{font-size:21px;padding:12px;overflow-wrap:anywhere}.person-info+.person-info{font-size:18px}.gift-picture{width:100%;height:300px;object-fit:contain;mix-blend-mode:normal;mask-image:none;-webkit-mask-image:none;filter:none;opacity:1}.gift-name{width:65%;margin:10px auto 20px}.gift-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.gift-grid .check-row{gap:8px;font-size:14px}.gift-grid .check{flex-basis:35px;width:35px;height:35px}.scan-box{background:white;border:4px solid #ffd42e;border-radius:22px;min-height:290px;overflow:hidden;margin-bottom:15px}.scan-box video{width:100%;object-fit:cover}.scan-manual{margin-top:23px}.scan-manual label{font-size:13px}table{width:100%;border-collapse:collapse;font-size:14px;background:white;border-radius:10px;overflow:hidden}th,td{text-align:left;padding:13px 10px;border-bottom:1px solid #e2eee3}th{font-size:12px;background:#f2fff3}td+td,th+th{border-left:1px solid #4a9e78}.report-total{margin-top:15px;display:flex;justify-content:space-between;font-size:22px;padding:10px}.table-wrap{min-height:220px;background:white;border-radius:12px;overflow:hidden}.wheel-wrap{position:relative;margin:20px auto 30px;width:100%;aspect-ratio:1}.wheel{width:100%;height:100%;border-radius:50%;position:relative;transition:transform 8s cubic-bezier(.2,.55,.2,1)}.wheel.wheel-artwork{border:0;background:none;box-shadow:none;line-height:0}.wheel-artwork svg{display:block;width:100%;height:auto;overflow:visible}.pointer{position:absolute;z-index:1;border-left:16px solid transparent;border-right:16px solid transparent;top:-4px;left:calc(50% - 16px);border-top:33px solid #fff0ce;filter:drop-shadow(0 3px 2px #8c540080)}footer{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:auto;padding-top:30px;font-size:12px}footer a,.text-button{color:#07633c}.text-button{border:0;background:none;font:inherit;cursor:pointer}footer form{display:inline}.back{display:block;text-align:center;margin-top:20px;color:#07633c;font-size:14px}.empty{text-align:center;padding:35px 12px;font-size:14px}
.button.wheel-spin-button{width:fit-content;max-width:100%;min-width:210px;min-height:54px;margin:0 auto;padding:12px 25px;border:2px solid #2bd900;border-radius:9px;background:linear-gradient(105deg,#00a800 0%,#00c600 65%,#00d500 100%);box-shadow:inset 0 2px 6px #a0ff4b70,inset 0 -2px 4px #008d0030;color:#fff;font-size:26px;font-weight:900;line-height:1.2;letter-spacing:.5px;text-transform:uppercase;text-shadow:0 1px 0 #ffffff40}.wheel-title{font-size:clamp(24px,6.6vw,31px);letter-spacing:.3px;margin-left:-12px;margin-right:-12px;white-space:nowrap}
.button.zalo-login-button{display:flex;align-items:center;justify-content:flex-start;gap:clamp(12px,4vw,27px);padding:11px 16px;border:3px solid #ffd128;border-radius:20px;background-image:linear-gradient(#ffffff13 1px,transparent 1px),linear-gradient(90deg,#ffffff13 1px,transparent 1px),linear-gradient(100deg,#ff9700 0%,#ffa500 42%,#ffb713 68%,#ffe138 100%);background-size:20px 20px,20px 20px,100% 100%;box-shadow:inset 0 2px 4px #fff27570;color:white;min-height:82px;text-align:left;font-size:clamp(18px,4.8vw,25px);font-weight:900;line-height:1.2;white-space:nowrap;text-shadow:0 1px 0 #ffce5c}.zalo-login-button img{display:block;flex:0 0 auto;width:clamp(42px,12vw,54px);height:clamp(42px,12vw,54px);border-radius:14px}.zalo-login-button span{flex:1;text-align:center}.login-title{font-size:clamp(29px,8vw,36px)}.login-intro{font-size:clamp(18px,4.8vw,22px);line-height:1.4;margin-bottom:28px}
.customer-greeting{font-size:clamp(29px,7.7vw,35px);overflow-wrap:anywhere;margin-bottom:14px}.customer-qr-label{font-size:clamp(28px,7.2vw,33px);line-height:1.15}.customer-greeting+.qr-row{gap:20px;margin-bottom:10px}.customer-greeting+.qr-row .qr{width:160px;min-height:160px;flex:0 0 160px;border:5px solid transparent;border-radius:17px;padding:6px;background:linear-gradient(#fff,#fff) padding-box,linear-gradient(135deg,#ffca00,#ffad00 55%,#ffdc17) border-box}.challenge-count-label{font-size:clamp(18px,5vw,23px);line-height:1.3;margin-top:8px}#count.stat{min-height:76px;display:flex;align-items:center;justify-content:center;padding:8px 12px;font-size:48px;line-height:1.1}.customer-challenge{font-size:clamp(21px,5.6vw,26px);line-height:1.35}.customer-challenge-hint{font-size:clamp(20px,5.2vw,24px);line-height:1.4}.customer-challenge .check{width:60px;height:60px;flex-basis:60px;border:3px solid #ffba00;border-radius:14px;box-shadow:inset 0 0 6px #ffdc6870}.customer-challenge .check.done:after{font-size:50px}.text-green-outline{color:#fff;font-weight:900;-webkit-text-stroke:6px #087b32;paint-order:stroke fill;text-shadow:none}h1.text-green-outline,.customer-challenge>span.text-green-outline{text-shadow:none}.gift-result-title{font-size:clamp(30px,8vw,36px)}.button.gift-name.wheel-spin-button{min-width:220px;margin:10px auto 20px;cursor:default}.gift-redeem-instruction{color:#078536;font-size:clamp(21px,5.6vw,26px);font-weight:900;line-height:1.3;margin:18px -8px}
.pg-login-title{font-size:clamp(30px,8vw,38px)}.pg-login-form{padding:22px 24px;border-radius:28px;background-image:linear-gradient(#ffffff16 1px,transparent 1px),linear-gradient(90deg,#ffffff16 1px,transparent 1px),linear-gradient(120deg,#ff9b00,#ffdf2f);background-size:20px 20px,20px 20px,100% 100%;box-shadow:inset 0 0 8px #fff36b80}.pg-login-form .field{margin-bottom:30px}.pg-login-form label{color:#fff;font-size:clamp(22px,5.8vw,27px);font-weight:900;margin:0 8px 9px}.pg-login-form input,.pg-login-form select{height:64px;border:1px solid #e3bf6c;border-radius:16px;padding:12px 16px;background-color:#fff;color:#078536;-webkit-text-fill-color:#078536;font-size:clamp(21px,5.5vw,25px);font-weight:800;box-shadow:0 3px 4px #8d560045}.pg-login-form select{text-align:center;text-align-last:center;padding-right:28px}.pg-login-form input:autofill{-webkit-text-fill-color:#078536}.pg-channel-select{position:relative}.pg-channel-select select{appearance:none;-webkit-appearance:none;padding-left:36px;padding-right:36px}.pg-channel-chevron{position:absolute;right:20px;top:50%;width:10px;height:10px;border-right:2.5px solid #078536;border-bottom:2.5px solid #078536;transform:translateY(-70%) rotate(45deg);border-radius:1px;pointer-events:none}.pg-login-form .button.pg-login-submit{background:linear-gradient(105deg,#00a800 0%,#00c600 65%,#00d500 100%);color:#fff;font-size:26px;box-shadow:inset 0 2px 6px #a0ff4b70,inset 0 -2px 4px #008d0030;margin:8px auto 0}
@media(prefers-reduced-motion:reduce){.wheel{transition-duration:.01s}}@media(max-width:360px){.app{padding:24px 18px}h1{font-size:22px}.button.zalo-login-button{padding:9px 10px;gap:10px;min-height:69px;font-size:17px}.customer-greeting+.qr-row{gap:13px}.customer-greeting+.qr-row .qr{width:145px;min-height:145px;flex-basis:145px}}

.pg-home-title{font-size:clamp(32px,8.5vw,40px)}.pg-home-menu{padding:32px 24px;display:flex;flex-direction:column;gap:40px;border-radius:28px;background-image:linear-gradient(#ffffff16 1px,transparent 1px),linear-gradient(90deg,#ffffff16 1px,transparent 1px),linear-gradient(120deg,#ff9b00,#ffdf2f);background-size:20px 20px,20px 20px,100% 100%;box-shadow:inset 0 0 8px #fff36b80}.pg-home-menu .button{display:flex;align-items:center;justify-content:center;min-height:64px;margin:0;padding:14px 10px;border:1px solid #e3bf6c;border-radius:16px;background:#fff;color:#078536;font-size:clamp(21px,5.5vw,25px);font-weight:800;line-height:1.25;box-shadow:0 3px 4px #8d560045}
.pg-scan-title{font-size:clamp(30px,8vw,38px)}.pg-camera-frame{position:relative;width:100%;aspect-ratio:1;background:#fff;border:7px solid #ffbd00;border-radius:34px;overflow:hidden;isolation:isolate}.pg-camera-reader{position:absolute!important;inset:0;width:100%;height:100%;border:0!important}.pg-camera-reader video{width:100%!important;height:100%!important;object-fit:cover}.pg-scan-overlay{position:absolute;inset:0;pointer-events:none;z-index:2}.scan-corner{position:absolute;width:24%;height:24%;border:9px solid #c7c7c7;border-radius:0}.scan-corner.top-left{top:6%;left:6%;border-right:0;border-bottom:0;border-top-left-radius:24px}.scan-corner.top-right{top:6%;right:6%;border-left:0;border-bottom:0;border-top-right-radius:24px}.scan-corner.bottom-left{bottom:6%;left:6%;border-right:0;border-top:0;border-bottom-left-radius:24px}.scan-corner.bottom-right{bottom:6%;right:6%;border-left:0;border-top:0;border-bottom-right-radius:24px}.pg-scan-line{position:absolute;left:9%;right:9%;top:12%;height:6px;border-radius:9px;background:#111;box-shadow:0 0 5px #fff9;animation:yuzu-qr-scan 2.6s ease-in-out infinite alternate}.pg-scan-caption{color:#078536;font-size:clamp(23px,6vw,28px);font-weight:900;line-height:1.3;margin:18px 0 4px}#start-camera[hidden]{display:none}@keyframes yuzu-qr-scan{from{top:12%}to{top:86%}}@media(prefers-reduced-motion:reduce){.pg-scan-line{animation:none;top:50%}}

.pg-person-title{font-size:clamp(32px,8.5vw,40px)}.stat.pg-person-info{display:flex;align-items:center;justify-content:center;min-height:70px;padding:12px 16px;margin-bottom:25px;border-radius:16px;font-size:clamp(25px,6.7vw,32px);line-height:1.2;font-weight:900;background-image:linear-gradient(#ffffff16 1px,transparent 1px),linear-gradient(90deg,#ffffff16 1px,transparent 1px),linear-gradient(100deg,#ff9700,#ffb713 68%,#ffe138);background-size:20px 20px,20px 20px,100% 100%;box-shadow:inset 0 2px 4px #fff27570}.pg-person-challenge{margin:22px 0;gap:20px}.pg-person-challenge .check:checked:after{font-size:50px}.button.pg-confirm-button{margin:25px auto 0;font-size:clamp(18px,5vw,23px);min-width:0}

.pg-home-logout{margin-top:24px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.pg-report-title{font-size:clamp(32px,8.5vw,40px)}.pg-report-filter{margin-bottom:28px}.pg-report-filter input[type=date],.pg-report-panel,.pg-report-total{background-image:linear-gradient(#ffffff16 1px,transparent 1px),linear-gradient(90deg,#ffffff16 1px,transparent 1px),linear-gradient(100deg,#ff9700,#ffb713 68%,#ffe138);background-size:20px 20px,20px 20px,100% 100%;border:3px solid #ffcf1e;box-shadow:inset 0 2px 4px #fff27570}.pg-report-filter input[type=date]{display:block;min-width:0;width:100%;height:70px;padding:12px 16px;border-radius:16px;text-align:center;color:white;font-size:clamp(25px,6.5vw,31px);font-weight:900;color-scheme:light}.pg-report-filter input::-webkit-date-and-time-value{text-align:center}.pg-report-filter input::-webkit-calendar-picker-indicator{cursor:pointer;opacity:.85;filter:brightness(0) invert(1)}.pg-report-panel{padding:16px 18px 20px;border-radius:30px}.pg-report-head{display:grid;grid-template-columns:1fr 1fr;gap:6px;text-align:center;color:white;font-size:clamp(17px,4.5vw,21px);font-weight:900;line-height:1.2;margin:0 0 10px}.pg-report-list{position:relative;min-height:270px;background:#fff;border:1px solid #dbad5a;border-radius:17px;overflow:hidden;box-shadow:0 3px 4px #8d560045}.pg-report-list:before{content:'';position:absolute;left:50%;top:14px;bottom:14px;border-left:2px solid #078536;pointer-events:none}.pg-report-table{table-layout:fixed;border-radius:0;position:relative;background:transparent}.pg-report-table td{width:50%;text-align:center;vertical-align:top;padding:20px 10px;font-size:clamp(17px,4.5vw,21px);font-weight:800;color:#078536;border:0;overflow-wrap:anywhere}.pg-report-table td+td{border:0}.pg-report-table .empty{position:relative;background:white;font-size:16px;padding:32px 16px}.pg-report-total{min-height:70px;margin-top:16px;margin-bottom:0;padding:12px 16px;border-radius:16px;align-items:center;font-size:clamp(29px,7.5vw,36px);line-height:1.1;font-weight:900}

.button[aria-disabled="true"]{opacity:.55;cursor:wait}form[aria-busy="true"] button:disabled{cursor:wait}

.pg-gift-grid{gap:18px 14px;margin:28px 0 20px}.pg-gift-grid .check-row{gap:14px;margin:0;font-size:clamp(20px,5.4vw,25px);line-height:1.2}.pg-gift-grid .check{flex:0 0 54px;width:54px;height:54px;border:3px solid #ffba00;border-radius:13px;box-shadow:inset 0 0 6px #ffdc6870}.pg-gift-grid .check.done:after{font-size:46px}.pg-gift-grid .check-row .text-green-outline{text-shadow:none;-webkit-text-stroke:4px #087b32}@media(max-width:360px){.pg-gift-grid .check-row{gap:9px;font-size:19px}.pg-gift-grid .check{flex-basis:46px;width:46px;height:46px}}
