*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent}
html,body{width:100%;height:100%;overflow:hidden;background:#f3eee6;font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:#3b3442;touch-action:none;user-select:none}
#cv{position:fixed;inset:0;width:100%;height:100%;display:block}
#hud{position:fixed;top:max(8px,env(safe-area-inset-top));left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:6px;background:rgba(255,255,255,.88);border-radius:22px;padding:5px 8px;box-shadow:0 2px 10px rgba(0,0,0,.12);z-index:5;white-space:nowrap}
.hb{border:0;background:#efe8dd;border-radius:14px;min-width:34px;height:34px;font-size:18px;color:#3b3442;cursor:pointer}
.hb:active{transform:scale(.94)}
#lvl{font-weight:800;min-width:42px;text-align:center}
#stat{font-size:13px;color:#6b6272;min-width:86px;text-align:center}
.chip{position:fixed;z-index:4;width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-size:26px;font-weight:900;box-shadow:0 3px 10px rgba(0,0,0,.18);pointer-events:none;opacity:.93;text-shadow:0 1px 2px rgba(0,0,0,.25)}
.c0{background:#f2b632;top:64px;left:50%;margin-left:-22px}
.c1{background:#3e9ef0;right:8px;top:50%;margin-top:-22px}
.c2{background:#9d6cf0;bottom:max(14px,env(safe-area-inset-bottom));left:50%;margin-left:-22px}
.c3{background:#4fbf55;left:8px;top:50%;margin-top:-22px}
.chip.flash{animation:fl .35s}
@keyframes fl{50%{transform:scale(1.35)}}
#win,#help{position:fixed;inset:0;background:rgba(40,34,48,.35);display:flex;align-items:center;justify-content:center;z-index:9}
.hide{display:none!important}
.card{background:#fff;border-radius:20px;padding:22px 26px;text-align:center;box-shadow:0 8px 30px rgba(0,0,0,.25);max-width:86vw}
#wTitle{font-size:28px;font-weight:900;margin-bottom:6px}
#wSub{color:#6b6272;margin-bottom:16px;font-size:14px}
.card button{border:0;background:#3e9ef0;color:#fff;font-size:18px;font-weight:800;border-radius:14px;padding:10px 34px;cursor:pointer}
.ht{font-size:18px;font-weight:800;margin-bottom:12px;line-height:1.4}
.hrow{font-size:22px;font-weight:900;margin-bottom:12px}
.sw{display:inline-block;width:20px;height:20px;border-radius:5px;vertical-align:-3px;margin:0 2px 0 8px}
.s0{background:#f2b632}.s1{background:#3e9ef0}.s2{background:#9d6cf0}.s3{background:#4fbf55}
.hs{font-size:13px;color:#6b6272;margin-bottom:16px;line-height:1.5}
