html,body{margin:0;height:100%;overflow:hidden;background:#111;font-family:Impact,Arial Black,sans-serif;color:#fff}canvas{display:block}
#hud{position:fixed;top:14px;right:18px;text-align:right;text-shadow:0 2px 6px #000}#cash{font-size:34px;color:#7CFC7C}#stars{font-size:28px;color:#ffd400;letter-spacing:3px}#combo{font-size:20px;color:#ff5a3c}
#map{position:fixed;left:14px;bottom:14px;border:2px solid #fff8;border-radius:6px;opacity:.9}
#hp{position:fixed;left:210px;bottom:18px;width:180px;height:12px;background:#0008;border:1px solid #fff6;display:none}#hpi{display:block;height:100%;width:100%;background:#e8452c}
#prompt{position:fixed;bottom:12%;width:100%;text-align:center;font-size:26px;text-shadow:0 2px 6px #000;color:#ffe600}
#toast{position:fixed;top:16%;width:100%;text-align:center;font-size:40px;opacity:0;transition:opacity .3s;text-shadow:0 3px 10px #000;pointer-events:none}
#start{position:fixed;inset:0;background:radial-gradient(#3a1d4aee,#000f);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;font-family:Arial,sans-serif}
#start h1{font:900 110px Impact,sans-serif;margin:0;color:#ff4fa3;text-shadow:0 0 30px #ff4fa3}#start h2{margin:0 0 20px;letter-spacing:12px;color:#ffd400}#start p{max-width:520px;line-height:1.7;color:#ddd}
#go{font:900 26px Impact,sans-serif;padding:12px 50px;margin-top:14px;background:#ffd400;border:0;cursor:pointer}
body{touch-action:none;-webkit-user-select:none;user-select:none}#tc{display:none}
@media(pointer:coarse){#tc{display:block}#map{top:10px;left:10px;bottom:auto;width:100px;height:100px}#hp{left:10px;top:118px;bottom:auto;width:100px}#hud{top:8px;right:12px}#prompt{bottom:44%;font-size:22px}#toast{top:22%;font-size:28px}
.g{position:fixed;bottom:18px;display:grid;gap:10px}#tl{left:16px;grid-template-columns:repeat(2,84px)}#tr{right:16px;grid-template-columns:repeat(3,72px)}
#tc b{display:flex;align-items:center;justify-content:center;height:72px;border-radius:50%;background:#fff3;border:2px solid #fff7;font-size:26px;font-style:normal;touch-action:none}#tl b{height:84px;border-radius:18px}#tc b.s{font-size:15px}#tc b.f{background:#ffd400aa;color:#000}#tc b.on{background:#fff9}}
#fx,#wn{position:fixed;inset:0;pointer-events:none}#fx{background:radial-gradient(transparent 40%,#e00 130%);opacity:0}
#wn.on{animation:wn .8s infinite alternate}@keyframes wn{from{box-shadow:inset 0 0 90px 10px #f003}to{box-shadow:inset 0 0 90px 10px #25f4}}
@media(pointer:coarse){#tc b{position:fixed;flex-direction:column;width:72px;line-height:1}#tc small{font:700 10px Arial,sans-serif;margin-top:3px;opacity:.85}
#tc #bl,#tc #br{bottom:22px;border-radius:20px;width:92px;height:84px}#tc #bl{left:16px}#tc #br{left:116px}
#tc #bg{right:18px;bottom:20px;width:104px;height:104px;background:#3ddc6a88}#tc #bb{right:134px;bottom:20px;background:#ff4a3a77}
#tc #bf{right:30px;bottom:140px;width:84px;height:84px;font-size:30px;background:#ffd400cc;color:#000}
#tc #bh{right:134px;bottom:104px;width:58px;height:58px;font-size:15px}#tc #bs{right:206px;bottom:30px;width:58px;height:58px;font-size:15px}}
@media(pointer:coarse) and (max-width:560px){#tc #bl,#tc #br{width:66px;height:70px}#tc #br{left:90px}#tc #bg{width:84px;height:84px}#tc #bb{right:112px}#tc #bf{bottom:116px}#tc #bh{right:112px;bottom:96px}#tc #bs{right:182px;bottom:96px}}
#stars{display:flex;justify-content:flex-end}#stars svg{width:26px;height:26px;margin-left:3px;fill:#ffffff30;stroke:#0009;stroke-width:1px;transition:fill .2s}#stars svg.on{fill:#ffd400;filter:drop-shadow(0 0 6px #ffb300)}
#tc svg{width:34px;height:34px;pointer-events:none}#tc #bh svg,#tc #bs svg{width:24px;height:24px}#tc #bf svg{width:42px;height:42px}
#sp{position:fixed;inset:0;pointer-events:none;opacity:0;background:repeating-conic-gradient(#fff0 0 3deg,#fff5 3.4deg 3.8deg);-webkit-mask:radial-gradient(circle,transparent 50%,#000 95%);mask:radial-gradient(circle,transparent 50%,#000 95%)}
#smash{font-size:22px;color:#7ad7ff;opacity:0;margin-top:2px}