*{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:#cfdcf0;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,.55);overflow:hidden}
#title{background:linear-gradient(180deg,#eaf1fb 0,#dbe6f6 55%,#c8d8f0 100%);justify-content:space-between}
.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}
@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:slam 1.8s ease-in-out infinite;transform-origin:50% 90%}
@keyframes slam{0%,70%,100%{transform:translateY(0)}80%{transform:translateY(-10px) rotate(-4deg)}88%{transform:translateY(3px) scaleY(.92)}}
.title{font-size:40px;font-weight:900;line-height:1.1;color:#3b5bdb;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:#3b5bdb;color:#fff}
.howto{display:inline-block;background:#e03131;color:#fff;font-weight:900;font-size:17px;border-radius:99px;padding:6px 16px;margin-bottom:8px;border:2px solid #2b2140}
.tips{list-style:none;padding:0;margin:0 0 8px;font-size:14px;font-weight:700;color:#4a4060;line-height:1.55;text-align:left}
.tips li::before{content:"▸ ";color:#e03131}
.tips b{color:#2b2140}
.diff{display:flex;align-items:center;justify-content:center;gap:6px;margin:4px 0 10px;font-weight:900;font-size:14px}
.diff button{appearance:none;font-family:inherit;font-weight:900;font-size:15px;min-width:64px;padding:7px 10px;border:2.5px solid #2b2140;border-radius:12px;background:#fff;color:#2b2140;cursor:pointer}
.diff button.on{background:#ffd43b;box-shadow:0 3px 0 #2b2140;transform:translateY(-2px)}
.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:21px;padding:10px 0;min-height:54px;width:100%}
.btn.small{font-size:14px;padding:7px 12px;box-shadow:0 3px 0 #2b2140}
.btn.alt{background:#ff3d7f}
.btn.ghost{background:#fff;color:#2b2140}
.best{font-size:13px;font-weight:800;color:#6d6385;margin-top:6px;min-height:16px}
.brand{margin-top:10px;font-size:12px;font-weight:800;color:#8a7fa0}
.brand a{color:#3b5bdb}
.stHead{font-size:30px;font-weight:900;color:#3b5bdb;margin-bottom:6px}
.newRule{background:#fff3bf;border:2.5px solid #2b2140;border-radius:16px;padding:10px 12px;margin:4px 0 10px;text-align:left}
.newRule .tag{display:inline-block;background:#e03131;color:#fff;font-weight:900;font-size:13px;border-radius:8px;padding:2px 8px;margin-bottom:4px}
.newRule .h{font-size:22px;font-weight:900;color:#2b2140}
.newRule .d{font-size:15px;font-weight:700;color:#4a4060;line-height:1.5;margin-top:2px}
.briefSp{font-size:16px;font-weight:900;color:#c2255c;margin:4px 0 10px}
.briefAll{text-align:left;font-size:14px;font-weight:800;color:#4a4060;margin-bottom:12px;line-height:1.7}
.briefAll .lb{font-size:12px;color:#8a7fa0}
.briefAll span.r{display:inline-block;background:#eef2f8;border-radius:8px;padding:1px 8px;margin:2px 4px 2px 0;color:#2b2140}
.rbList{text-align:left;margin:4px 0 12px;max-height:60vh;overflow:auto}
.rbList .it{padding:8px 4px;border-bottom:1.5px solid #e6e1ee}
.rbList .it b{display:block;font-size:17px;color:#2b2140}
.rbList .it i{display:block;font-style:normal;font-size:14.5px;font-weight:700;color:#4a4060;line-height:1.5;margin-top:2px}
.rbList .visa{font-size:15px;font-weight:800;color:#2b2140;padding:8px 4px}
.resTitle{font-size:28px;font-weight:900;color:#2b9a3e}
.resTitle.lose{color:#e03131}
.cause{font-size:14px;font-weight:900;color:#e03131;margin:2px 0}
.shareImg{display:block;width:100%;max-width:270px;margin:8px auto;border-radius:16px;border:3px solid #2b2140;box-shadow:0 4px 0 #2b2140;-webkit-touch-callout:default;pointer-events:auto}
.stats{font-size:14px;font-weight:700;color:#4a4060;line-height:1.6}
.stats b{color:#3b5bdb}
.toast{position:fixed;left:50%;top:calc(env(safe-area-inset-top) + 64px);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:15px}
.toast.show{opacity:1;transform:translateX(-50%)}
@media (max-height:720px){.tips{font-size:13px;line-height:1.45}.title{font-size:34px}.logo svg{width:84px;height:70px}.shareImg{max-width:220px}}
@media (max-height:620px){.tips{display:none}.shareImg{max-width:170px}}
