*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;padding:0;width:100%;height:100%;overflow:hidden;position:fixed;inset:0;overscroll-behavior:none;touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-text-size-adjust:100%;background:#cfe8ff;font-family:"PingFang HK","PingFang TC","Hiragino Sans CNS","Noto Sans CJK HK","Noto Sans CJK TC","Noto Sans TC","Microsoft JhengHei",sans-serif;color:#2b2140}
body.en{font-family:"Arial Rounded MT Bold","Avenir Next","Trebuchet MS","Helvetica Neue",Arial,"Noto Sans CJK HK",sans-serif}
#safe{position:fixed;left:0;top:0;width:0;height:0;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);visibility:hidden;pointer-events:none}
canvas#c{position:fixed;left:0;top:0;display:block;touch-action:none}
.screen{position:fixed;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:12px;padding:calc(env(safe-area-inset-top) + 12px) 14px max(14px, calc(env(safe-area-inset-bottom) + 10px));touch-action:manipulation;z-index:5;background:rgba(43,33,64,.5);overflow:hidden}
#title{background:linear-gradient(180deg,rgba(159,220,255,.55) 0,rgba(227,246,255,.35) 60%,rgba(255,255,255,.15) 100%);justify-content:space-between}
#select,#brief{background:rgba(43,33,64,.35)}
#fail{background:rgba(43,33,64,.28);justify-content:flex-end}
.hidden{display:none!important}
.card{width:100%;max-width:400px;background:#fffdf7;border:3px solid #2b2140;border-radius:22px;padding:14px 16px 12px;text-align:center;box-shadow:0 6px 0 #2b2140;animation:pop .35s cubic-bezier(.2,1.6,.4,1) both;max-height:100%;overflow-y:auto;-webkit-overflow-scrolling:touch;touch-action:pan-y}
.card.wide{max-width:440px}
@keyframes pop{0%{transform:translateY(30px) scale(.9);opacity:0}100%{transform:none;opacity:1}}
.logoWrap{text-align:center;margin-top:4px;animation:pop .45s cubic-bezier(.2,1.6,.4,1) both}
.logo{line-height:0;animation:bob 1.6s ease-in-out infinite;transform-origin:50% 90%}
.logo .wheel{animation:roll 1.6s linear infinite;transform-origin:80px 18px}
@keyframes bob{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-6px) rotate(-3deg)}}
@keyframes roll{0%,40%{transform:translate(0,0) rotate(0)}100%{transform:translate(26px,60px) rotate(540deg);opacity:0}}
.title{font-size:40px;font-weight:900;line-height:1.1;color:#ff4b7d;letter-spacing:1px;-webkit-text-stroke:1.5px #2b2140;text-shadow:0 3px 0 #2b2140;margin-top:6px}
body.en .title{font-size:34px}
.sub{display:inline-block;margin-top:8px;font-size:14px;font-weight:900;color:#2b2140;background:#fff;border:2px solid #2b2140;border-radius:99px;padding:4px 12px}
.lang{display:flex;width:max-content;margin:10px auto 0;border:2.5px solid #2b2140;border-radius:12px;overflow:hidden}
.lang button{appearance:none;border:0;background:#fff;color:#2b2140;font-weight:900;font-size:14px;font-family:inherit;padding:7px 14px;cursor:pointer}
.lang button.on{background:#ff4b7d;color:#fff}
.howto{display:inline-block;background:#ff4b7d;color:#fff;font-weight:900;font-size:20px;border-radius:99px;padding:5px 18px;margin-bottom:8px;border:2px solid #2b2140;letter-spacing:2px}
.tips{list-style:none;padding:0;margin:0 0 8px;font-size:19px;font-weight:900;color:#2b2140;line-height:1.6;text-align:center}
.diff{display:flex;align-items:center;justify-content:center;gap:8px;margin:4px 0 10px}
.diff button{appearance:none;font-family:inherit;font-weight:900;font-size:16px;letter-spacing:1px;min-width:78px;padding:8px 10px;border:2.5px solid #2b2140;border-radius:12px;background:#fff;cursor:pointer}
.diff .d1{color:#2b9a3e}.diff .d2{color:#f08c00}.diff .d3{color:#e03131}
.diff button.on{box-shadow:0 3px 0 #2b2140;transform:translateY(-2px);color:#fff}
.diff .d1.on{background:#40c057}.diff .d2.on{background:#ff922b}.diff .d3.on{background:#fa5252}
.row{display:flex;gap:8px;justify-content:center;margin-top:8px;flex-wrap:wrap}
.btn{appearance:none;-webkit-appearance:none;border:3px solid #2b2140;border-radius:16px;font-family:inherit;font-weight:900;color:#fff;background:#2b9a3e;box-shadow:0 4px 0 #2b2140;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:6px;touch-action:manipulation}
.btn:active{transform:translateY(3px);box-shadow:0 1px 0 #2b2140}
.btn.big{font-size:26px;padding:8px 0;min-height:56px;width:100%}
.btn.small{font-size:19px;min-width:56px;min-height:44px;padding:5px 12px;box-shadow:0 3px 0 #2b2140}
.btn.alt{background:#ff3d7f}
.btn.ghost{background:#fff;color:#2b2140}
.best{font-size:16px;font-weight:900;color:#f08c00;margin-top:6px;min-height:18px}
.brand{margin-top:10px;font-size:12px;font-weight:800;color:#8a7fa0}
.brand a{color:#3b5bdb}
.stHead{font-size:26px;font-weight:900;color:#ff4b7d;margin-bottom:6px}
.selTop{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:4px}
.selTop .stHead{margin:0;font-size:28px}
.selStars{font-weight:900;color:#f08c00;font-size:15px;min-width:56px;text-align:right}
.world{font-size:13px;font-weight:900;color:#8a7fa0;text-align:left;margin:8px 2px 4px}
.stRow{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}
.stBtn{appearance:none;font-family:inherit;border:2.5px solid #2b2140;border-radius:14px;background:#fff;box-shadow:0 3px 0 #2b2140;padding:6px 2px 5px;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:1px;color:#2b2140}
.stBtn b{font-size:22px;line-height:1.1}
.stBtn i{font-style:normal;font-size:10px;font-weight:800;color:#8a7fa0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.stBtn span em,.goal em,.bigStars em{font-style:normal;color:#dee2e6}
.stBtn span em.on,.goal em.on,.bigStars em.on{color:#fcc419;-webkit-text-stroke:1px #2b2140}
.stBtn span{font-size:14px;letter-spacing:1px}
.stBtn.lock{background:#eef0f4;box-shadow:none;opacity:.7}
.cartRow{display:flex;gap:6px;justify-content:center;margin-top:12px;flex-wrap:wrap}
.cartBtn{appearance:none;font-family:inherit;border:2.5px solid #2b2140;border-radius:12px;background:#fff;padding:2px 2px 4px;width:72px;cursor:pointer;color:#2b2140}
.cartBtn img{width:60px;height:45px;display:block;margin:0 auto}
.cartBtn i{font-style:normal;font-size:10px;font-weight:800;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cartBtn.on{background:#fff0f6;box-shadow:0 3px 0 #2b2140;border-color:#ff4b7d}
.cartBtn.lock img{filter:grayscale(1) opacity(.4)}
.newRule{background:#fff3bf;border:2.5px solid #2b2140;border-radius:16px;padding:8px 12px;margin:4px 0 10px}
.newRule .tag{display:inline-block;background:#e03131;color:#fff;font-weight:900;font-size:12px;border-radius:8px;padding:2px 8px;margin-bottom:2px}
.newRule .h{font-size:28px;font-weight:900;color:#2b2140}
.newRule .d{font-size:12.5px;font-weight:700;color:#8a7fa0;line-height:1.4;margin-top:2px}
.goals{display:flex;flex-direction:column;gap:6px;margin:6px 0 10px}
.goal{display:flex;align-items:center;gap:10px;justify-content:center;font-size:22px;font-weight:900;background:#f8f9fc;border-radius:12px;padding:4px 10px}
.goal em{font-size:24px}
.goals.small .goal{font-size:17px;padding:2px 8px}.goals.small .goal em{font-size:19px}
.goal.no{opacity:.55}
.briefDiff{font-size:14px;font-weight:900;color:#8a7fa0;margin-bottom:10px}
.resTitle{font-size:28px;font-weight:900;color:#2b9a3e}
.bigStars{font-size:54px;line-height:1;letter-spacing:6px;margin:4px 0}
.bigStars em{display:inline-block;animation:starIn .5s cubic-bezier(.2,1.8,.4,1) both}
@keyframes starIn{0%{transform:scale(0) rotate(-90deg)}100%{transform:none}}
.shareImg{display:block;width:100%;max-width:200px;margin:8px auto;border-radius:14px;border:3px solid #2b2140;box-shadow:0 4px 0 #2b2140;-webkit-touch-callout:default;pointer-events:auto}
.stats{font-size:17px;font-weight:800;color:#4a4060;line-height:1.5}
.stats b{color:#ff4b7d}
.complaint{border-color:#2b2140;background:#fffaf0}
.failHd{display:flex;justify-content:space-between;align-items:center;font-size:16px;font-weight:900;color:#7950f2;margin-bottom:4px}
.failHd b{font-size:24px;color:#e03131;-webkit-text-stroke:.5px #2b2140}
.quoteRow{display:flex;gap:10px;align-items:center;text-align:left}
.quoteRow img{width:56px;height:56px;flex:none}
.quote{font-size:16px;font-weight:900;color:#2b2140;line-height:1.35}
.who{font-size:12px;font-weight:800;color:#8a7fa0;margin-top:2px}
.cause{display:inline-block;font-size:26px;font-weight:900;color:#e03131;background:#ffe3e3;border:2.5px solid #e03131;border-radius:99px;padding:2px 18px;margin:8px 0 4px}
.tipImg{display:block;width:220px;height:75px;margin:2px auto 8px}
.toast{position:fixed;left:50%;top:calc(env(safe-area-inset-top) + 100px);transform:translateX(-50%) translateY(-20px);background:#2b2140;color:#fff;font-weight:900;padding:10px 18px;border-radius:99px;opacity:0;transition:all .25s;z-index:20;pointer-events:none;white-space:nowrap;font-size:18px}
.toast.show{opacity:1;transform:translateX(-50%)}
@media (max-height:720px){.title{font-size:34px}.logo svg{width:100px;height:72px}.shareImg{max-width:150px}.tips{font-size:17px;line-height:1.45}}
@media (max-height:620px){.tips{display:none}.shareImg{max-width:120px}}
.tips .ic{width:40px;height:24px;vertical-align:-5px}
.tips .y{color:#fcc419;-webkit-text-stroke:1px #2b2140}
.dd.easy{color:#2b9a3e}.dd.normal{color:#f08c00}.dd.hard{color:#e03131}
@media (max-height:740px){#title{gap:8px;padding-top:calc(env(safe-area-inset-top) + 8px)}.logoWrap{margin-top:0}.logo svg{width:86px;height:62px}.title{font-size:31px;margin-top:2px}body.en .title{font-size:27px}.sub{margin-top:5px;font-size:12.5px;padding:3px 10px}.lang{margin-top:6px}.lang button{padding:5px 12px;font-size:13px}#title .card{padding:10px 14px 10px}.tips{font-size:16px;line-height:1.4;margin-bottom:4px}.howto{font-size:18px;margin-bottom:4px}.diff{margin:2px 0 8px}#title .btn.big{min-height:50px}}
@media (max-height:600px){.logo{display:none}.sub{display:none}.tips{display:none}}
body.en .diff button{font-size:21px;line-height:1}
