
:root{font-family:"Noto Sans TC","Microsoft JhengHei",system-ui,sans-serif;color:#194b50;background:#f2f3ea;font-synthesis:none}*{box-sizing:border-box}body{margin:0;overflow:hidden}button,select{font:inherit}button{cursor:pointer;border:0;color:inherit;background:#fff}button:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid #dd9c27;outline-offset:4px}button:disabled{opacity:.6;cursor:wait}#app{position:relative;height:100dvh;min-height:420px;overflow:hidden}#stage{position:absolute;inset:0;touch-action:none;outline:none}canvas{display:block}header{position:absolute;left:40px;right:40px;top:max(24px,env(safe-area-inset-top));display:flex;justify-content:space-between;align-items:center;pointer-events:none}.brand{display:flex;align-items:center;gap:20px}.brand img{width:113px;height:55px;object-fit:contain}.brand>div{border-left:1px solid #164a5030;padding-left:20px}h1{font-size:20px;letter-spacing:.06em;margin:5px 0 0;font-weight:800}.eyebrow{font-size:12px;letter-spacing:.16em;font-weight:600}.scores{display:flex;gap:30px;background:#fffffff0;border:1px solid #fff;padding:14px 25px;border-radius:22px;box-shadow:0 8px 25px #153d4010}.scores>div{display:flex;gap:14px;align-items:center}.scores span{font-size:13px;writing-mode:vertical-rl;letter-spacing:2px}.scores strong{font-size:35px;font-weight:700;font-variant-numeric:tabular-nums}.scores>div+div{border-left:1px solid #d8e2dc;padding-left:25px}.scores>div+div strong{color:#999e80}.tools{position:absolute;right:32px;top:135px;display:flex;flex-direction:column;gap:10px}.tools button{width:55px;height:55px;border-radius:16px;font-size:25px;background:#ffffffd9;box-shadow:0 5px 16px #153d4008}.tools button span{display:block;font-size:10px;line-height:12px}.welcome{position:absolute;left:7%;top:27%;width:310px}.pill{display:inline-block;background:#fff9;padding:9px 14px;border:1px solid #fff;border-radius:30px;font-size:12px;letter-spacing:2px}.welcome h2{font-size:clamp(34px,3.7vw,56px);line-height:1.35;letter-spacing:.03em;margin:20px 0;color:#164f55}.welcome p{line-height:1.9;font-size:15px;color:#597373}.primary{display:inline-block;border-radius:15px;padding:17px 34px;background:#175b62;color:#fff;font-weight:700;box-shadow:0 9px 20px #164f5524}.welcome .primary{margin-top:15px;width:240px}.welcome small{display:block;font-size:11px;margin-top:10px;color:#647b78}.loading{height:3px;background:#cbded6;width:240px;margin-top:13px;border-radius:4px;overflow:hidden}.loading i{display:block;background:#1b6770;height:100%;width:0;transition:width .3s}.camera{position:absolute;bottom:150px;right:38px;display:flex;align-items:center;gap:12px;font-size:12px}.camera button{width:42px;height:42px;border-radius:50%;font-size:23px;background:#fff9}#live{position:absolute;top:130px;left:50%;transform:translateX(-50%);background:#185d64ed;color:#fff;padding:11px 23px;border-radius:30px;font-size:14px;opacity:0;transition:opacity .25s;pointer-events:none;white-space:nowrap}#live.show{opacity:1}footer{position:absolute;bottom:max(20px,env(safe-area-inset-bottom));left:32px;right:32px;display:flex;align-items:center;gap:24px;border:1px solid #fff;background:#fffffff2;box-shadow:0 8px 40px #143d4114;backdrop-filter:blur(12px);border-radius:22px;padding:17px 22px}.next{display:flex;gap:16px;align-items:center;min-width:300px}.next img{height:67px;width:67px;object-fit:contain;border-radius:12px;background:white}.next strong,.next small{display:block}.next strong{font-size:15px;margin:5px 0}.next small{font-size:12px;color:#71877e}.instructions{border-left:1px solid #d8e0d7;padding-left:26px;flex:1}.instructions b{display:block;font-size:14px}.instructions span{display:block;color:#6f817b;font-size:12px;margin-top:7px}.local{font-size:12px;text-align:right;line-height:1.8}.local span{display:block;font-size:11px;color:#83908a}dialog{border:1px solid #e2e9df;border-radius:27px;padding:35px;width:min(480px,calc(100vw - 32px));max-height:85dvh;color:#194b50;box-shadow:0 20px 120px #183d4040;background:#fcfdf8}dialog::backdrop{background:#143c4466;backdrop-filter:blur(6px)}dialog h2{font-size:27px;margin-top:4px}dialog p{line-height:1.8;color:#677d76;font-size:14px}.close{position:absolute;top:12px;right:15px;background:transparent;font-size:26px}dialog .result-score{font-size:75px;line-height:1;font-weight:800;margin:18px 0}dialog .result-score small{font-size:18px;margin-left:10px}dialog .actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px}.secondary{border:1px solid #c8d7cb;background:transparent;border-radius:13px;padding:13px 19px;font-weight:600}.product-list{padding:0;list-style:none;max-height:210px;overflow:auto}.product-list li{display:flex;gap:10px;align-items:center;padding:9px 0;border-bottom:1px solid #e1e6dc}.product-list img{width:45px;height:45px;object-fit:contain}.product-list a{font-size:13px;color:#215e67;text-decoration:none;flex:1}.product-list b{font-size:13px}.copy-field{width:100%;padding:10px;border:1px solid #bdcec2;margin-top:10px;font:inherit;font-size:13px}body.playing .welcome{display:none}body.playing .local{opacity:.65}@media(max-width:850px){header{left:20px;right:20px}.brand img{width:85px}.brand{gap:12px}.brand>div{padding-left:12px}h1{font-size:16px}.brand .eyebrow{font-size:10px}.scores{padding:12px 16px;gap:15px}.scores>div+div{padding-left:15px}.scores strong{font-size:28px}footer{left:16px;right:16px;gap:12px;padding:12px 15px}.local{display:none}.next{min-width:245px}.instructions{padding-left:15px}.welcome{left:6%;width:255px}.tools{right:19px}}@media(max-width:600px){#app{min-height:400px}header{top:max(14px,env(safe-area-inset-top));left:15px;right:15px;align-items:flex-start}.brand{gap:7px}.brand img{width:69px;height:39px}.brand>div{padding-left:8px}.brand .eyebrow{font-size:8px;letter-spacing:.08em}h1{font-size:12px;letter-spacing:0;margin-top:4px}.scores{padding:9px 11px;border-radius:14px;gap:10px}.scores>div{gap:5px}.scores span{font-size:9px;letter-spacing:1px}.scores strong{font-size:23px}.scores>div+div{padding-left:10px}.tools{right:13px;top:90px;gap:8px}.tools button{width:40px;height:40px;font-size:20px;border-radius:13px}.tools button span{font-size:8px;line-height:9px}.welcome{left:24px;top:16%;width:245px}.welcome h2{font-size:34px;margin:13px 0}.welcome p{font-size:12px;margin:6px 0}.pill{font-size:10px;padding:7px 10px}.welcome .primary{width:200px;padding:14px 20px;margin-top:9px}.welcome small{font-size:10px}.loading{width:200px}.camera{bottom:153px;right:20px;gap:10px}.camera span{font-size:10px}.camera button{width:34px;height:34px}footer{bottom:max(12px,env(safe-area-inset-bottom));flex-wrap:wrap;gap:9px;border-radius:17px;padding:10px 13px}.next{min-width:0;width:100%;gap:10px}.next img{width:46px;height:46px}.next .eyebrow{font-size:10px}.next strong{font-size:13px;margin:3px 0}.next small{font-size:10px}.instructions{border-left:0;border-top:1px solid #e2e7de;width:100%;padding:8px 0 0;display:flex;gap:8px;align-items:center}.instructions b{font-size:11px}.instructions span{font-size:9px;margin:0}#live{top:78px;max-width:76vw;white-space:normal;text-align:center;font-size:12px;padding:9px 15px}dialog{padding:25px}.playing .camera{bottom:150px}}@media(max-height:550px) and (min-width:600px){header{top:12px}.brand img{height:40px}.tools{top:90px;flex-direction:row}.welcome{top:24%;left:4%}.welcome h2{font-size:29px;margin:8px 0}.welcome p{display:none}.welcome .primary{margin-top:6px;padding:12px}.welcome .pill{font-size:10px}.camera{bottom:115px}footer{bottom:10px;padding:10px 14px}.next img{height:45px;width:45px}.scores{padding:8px 15px}#live{top:85px}}

@media(max-height:550px){#app{min-height:0}footer{bottom:max(8px,env(safe-area-inset-bottom));}.next small{display:none}}

.scores .timer strong{color:#195d62}.scores .timer .urgent{color:#c44d36}@media(max-width:600px){header{flex-wrap:wrap;gap:8px}.scores{margin-left:auto;gap:8px;padding:7px 10px}.scores strong{font-size:21px}.scores>div+div{padding-left:8px}.scores span{writing-mode:horizontal-tb;font-size:8px;letter-spacing:0}.scores>div{flex-direction:column;gap:0}.tools{top:124px}#live{top:112px}}

.welcome{width:360px}.welcome h2{font-size:clamp(30px,3.1vw,43px)}@media(max-width:600px){.welcome{width:270px}.welcome h2{font-size:31px}}@media(max-height:550px){.welcome h2{font-size:27px}.welcome{top:22%}}

/* Intro copy sits on an opaque panel, clear of the 3D checkout equipment. */
body:not(.playing) footer,body:not(.playing) .camera,body:not(.playing) .tools,body:not(.playing) .scores{display:none}
.welcome{left:5%;top:clamp(110px,22vh,180px);width:390px;max-width:calc(100vw - 40px);max-height:calc(100dvh - clamp(110px,22vh,180px) - 24px);overflow:auto;padding:28px;background:#fcfdf8;border:1px solid #fff;border-radius:26px;box-shadow:0 16px 60px #173f4024;scrollbar-width:thin}
.welcome h2{font-size:36px;line-height:1.35;margin:18px 0 14px;letter-spacing:0}
.welcome p{display:block;font-size:14px;line-height:1.8;margin:0 0 16px;color:#46635e}
.welcome .pill{font-size:11px;letter-spacing:1px;background:#e9efe5;border:0;padding:8px 12px}
.welcome .primary{width:100%;margin-top:0;padding:16px 20px}
.welcome small{font-size:11px;line-height:1.65;margin-top:12px}
.welcome .loading{width:100%}
@media(max-width:600px){.welcome{left:16px;top:110px;width:calc(100vw - 32px);max-width:none;max-height:calc(100dvh - 134px);padding:23px}.welcome h2{font-size:32px}.welcome p{font-size:13px}}
@media(max-height:550px){.welcome{left:24px;top:80px;width:370px;max-height:calc(100dvh - 96px);padding:16px 22px;border-radius:20px}.welcome .pill{display:none}.welcome h2{font-size:26px;margin:0 0 8px}.welcome p{font-size:12px;line-height:1.65;margin:0 0 10px}.welcome .primary{padding:12px}.welcome small{font-size:10px;margin-top:8px}}
.result-egg{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;gap:12px;border-radius:20px;background:#edf3e7;padding:10px 16px;margin:12px 0 22px;min-height:125px}.result-egg strong{position:relative;max-width:240px;color:#235d59;font-size:18px;line-height:1.5}.egg-cat{position:relative;width:150px;flex-shrink:0;animation:egg-bounce 1s ease-in-out 4}.egg-paw{transform-origin:190px 125px;animation:egg-wave .6s ease-in-out 7}.egg-confetti{position:absolute;inset:0;pointer-events:none}.egg-confetti i{position:absolute;left:var(--x);top:-12px;width:7px;height:11px;background:var(--color);animation:egg-fall 2.4s var(--delay) ease-out 2 both}@keyframes egg-bounce{50%{transform:translateY(-6px) rotate(-3deg)}}@keyframes egg-wave{50%{transform:rotate(-24deg)}}@keyframes egg-fall{0%{transform:translateY(-12px) rotate(0);opacity:0}15%{opacity:1}100%{transform:translateY(180px) rotate(240deg);opacity:0}}@media(max-width:480px){.egg-cat{width:108px}.result-egg{gap:6px;padding:8px}.result-egg strong{font-size:16px}}@media(prefers-reduced-motion:reduce){.egg-cat,.egg-paw,.egg-confetti i{animation:none}.egg-confetti{display:none}}
.egg-cat-detailed{width:210px;height:auto;object-fit:contain;filter:drop-shadow(0 5px 8px #345e5010)}.result-egg:has(.egg-cat-detailed){min-height:190px}@media(max-width:480px){.egg-cat-detailed{width:145px}.result-egg:has(.egg-cat-detailed){min-height:150px}}
.result-coupon{margin:20px 0;padding:24px;border:2px dashed #bd9950;border-radius:20px;background:#fff6df;text-align:center;break-inside:avoid}.coupon-label{font-weight:700;color:#806126;letter-spacing:.08em}.result-coupon h3{margin:10px 0;font-size:32px;color:#175b60}.coupon-code{font:700 28px ui-monospace,monospace;letter-spacing:.04em;user-select:all;color:#174b50;padding:12px;background:#fffdf6;border-radius:10px;overflow-wrap:anywhere}.result-coupon strong{display:block;margin:12px 0;color:#805922}.result-coupon p{font-size:16px}.result-coupon #coupon-copy-status:empty{display:none}@media(max-width:480px){.result-coupon{padding:18px}.coupon-code{font-size:25px}}
#sound{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:62px;min-height:82px;border:2px solid #8c9c98;background:#fff;color:#53645f;box-shadow:0 3px 12px #133c3826}#sound svg{width:30px;height:30px;flex-shrink:0}#sound svg path:not(:first-child){fill:none;stroke:currentColor;stroke-width:2.8;stroke-linecap:round}#sound span{font-size:13px;font-weight:800;line-height:1.2}#sound.sound-on{background:#155d62;color:#fff;border-color:#d5eee3}.sound-switch{display:block;width:28px;height:14px;border-radius:10px;background:#a1ada8;position:relative}.sound-switch:after{content:'';position:absolute;left:2px;top:2px;width:10px;height:10px;background:#fff;border-radius:50%}.sound-on .sound-switch{background:#91d6ad}.sound-on .sound-switch:after{left:16px}@media(max-width:600px){#sound{min-width:50px;min-height:68px;padding:6px;border-radius:16px}#sound svg{width:25px;height:25px}#sound span{font-size:12px}}

.result-shop-link{display:block;width:100%;text-align:center;text-decoration:none;margin:20px 0 24px;font-size:18px;line-height:1.5;min-height:54px}.result-shop-link:hover{background:#10494f}
/* Fill the available screen in portrait, landscape and standalone mode. */
html,body{width:100%;height:100%;overscroll-behavior:none}
#app{width:100%;height:100vh;height:100dvh;min-height:0}
html:fullscreen,html:-webkit-full-screen{width:100%;height:100%;background:#f2f3ea}
@media(pointer:coarse){header{left:max(15px,env(safe-area-inset-left));right:max(15px,env(safe-area-inset-right));top:max(14px,env(safe-area-inset-top))}.tools{right:max(13px,env(safe-area-inset-right))}footer{left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));bottom:max(12px,env(safe-area-inset-bottom))}.camera{right:max(20px,env(safe-area-inset-right))}}

#display-mode{position:absolute;left:24px;bottom:150px;padding:12px 18px;border:1px solid #a5c1b7;border-radius:14px;background:#fffffff2;color:#175b62;font-size:14px;font-weight:700;z-index:5}#display-mode[hidden]{display:none}@media(max-height:550px){#display-mode{bottom:115px}}

/* Campaign title: readable type hierarchy instead of one long headline. */
.welcome{background:linear-gradient(145deg,#fffef9,#f4f7ee);border:1px solid #ffffff;border-radius:30px;box-shadow:0 20px 65px #173f4024}
.welcome .intro-tag{color:#557569;font-size:10px;letter-spacing:.12em;background:#e7efe2}
.welcome .intro-title{margin:20px 0 18px}
.intro-name{display:block;font-size:26px;font-weight:800;letter-spacing:-.02em;line-height:1.3}
.intro-name>span{font-size:23px;letter-spacing:.06em;margin-left:5px}
.intro-challenge{display:flex;align-items:center;gap:17px;margin-top:8px}
.intro-challenge>b{font-size:104px;line-height:1;font-weight:850;letter-spacing:-.075em;color:#175b62;font-variant-numeric:lining-nums}
.intro-challenge>span{display:flex;flex-direction:column;gap:5px;border-left:2px solid #d3ad69;padding-left:17px}
.intro-challenge em{font-size:17px;line-height:1.3;font-style:normal;font-weight:500;letter-spacing:.16em;color:#7d704f}
.intro-challenge strong{font-size:34px;line-height:1.2;letter-spacing:.08em}
.welcome .primary{display:flex;align-items:center;justify-content:space-between;border-radius:16px;font-size:17px;box-shadow:0 8px 18px #175b6220}
.welcome .primary>span{font-size:23px;font-weight:400}
@media(max-width:600px){.intro-name{font-size:24px}.intro-name>span{font-size:21px}.intro-challenge>b{font-size:92px}.intro-challenge strong{font-size:30px}.intro-challenge em{font-size:15px}.intro-challenge{gap:14px}.intro-challenge>span{padding-left:14px}.welcome .intro-title{margin:16px 0}}
@media(max-width:360px){.intro-name{font-size:22px}.intro-name>span{font-size:19px}.intro-challenge>b{font-size:78px}.intro-challenge strong{font-size:26px}}
@media(max-height:550px){.welcome .intro-title{margin:0 0 10px}.intro-name,.intro-name>span{font-size:19px}.intro-challenge{margin-top:4px}.intro-challenge>b{font-size:64px}.intro-challenge strong{font-size:25px}.intro-challenge em{font-size:13px}}
body:not(.playing) #display-mode{bottom:24px}.welcome .primary{justify-content:center}
.tools #display-mode{position:static;min-width:62px;width:62px;height:auto;min-height:62px;padding:10px 5px;font-size:12px;line-height:1.5;border-radius:16px;white-space:normal;box-shadow:0 3px 12px #133c3815}
.tools #display-mode[hidden]{display:none}
.intro-name{display:flex;flex-direction:row;align-items:baseline;gap:14px;white-space:nowrap}.intro-name>b{font-size:44px;line-height:1.08;font-weight:850;letter-spacing:-.04em}.intro-name>span{margin:0;font-size:23px;letter-spacing:.02em}.intro-challenge{gap:12px;margin-top:12px}.intro-challenge>b{display:flex;align-items:baseline;gap:6px;font-size:96px}.intro-challenge>b small{font-size:21px;line-height:1;letter-spacing:0;font-weight:600}.intro-challenge>span{padding-left:12px}.intro-challenge strong{font-size:29px;letter-spacing:.04em}
@media(max-width:600px){.intro-name>b{font-size:40px}.intro-challenge>b{font-size:86px}.intro-challenge>b small{font-size:19px}.intro-challenge strong{font-size:27px}}
@media(max-width:360px){.intro-name>b{font-size:36px}.intro-challenge>b{font-size:72px}.intro-challenge strong{font-size:24px}.intro-challenge{gap:9px}.intro-challenge>span{padding-left:9px}}
@media(max-height:550px){.intro-name{flex-direction:row;align-items:baseline;gap:12px}.intro-name>b{font-size:30px}.intro-name>span{font-size:18px}.intro-challenge{margin-top:5px}.intro-challenge>b{font-size:60px}.intro-challenge>b small{font-size:17px}.intro-challenge strong{font-size:24px}}

.scores .score-ratio{display:flex;align-items:baseline;gap:5px;white-space:nowrap}.score-ratio>b{font:inherit}.scores .score-ratio small{font-size:.43em;line-height:1;color:#71857e}.scores .score-ratio small span{font:inherit;writing-mode:horizontal-tb;letter-spacing:0}

@media(max-width:600px),(pointer:coarse){
 dialog .result-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;width:100%}
 dialog .result-actions button{min-width:0;min-height:48px;padding:12px 3px;font-size:clamp(10px,3vw,13px);white-space:nowrap;border-radius:12px;letter-spacing:0}
}
@media(max-width:600px){dialog .result-score{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;line-height:1.15}dialog .result-score small{font-size:13px;margin:0;line-height:1.5}dialog .result-shop-link{font-size:15px;padding:16px 8px;white-space:nowrap}}
