*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;background:#101c2a;color:#fff;font-family:system-ui,sans-serif;overscroll-behavior:none}body{display:grid;place-items:center;overflow:hidden}#game{width:min(100vw,470px,calc(100dvh * 440 / 680));position:relative;isolation:isolate;overflow:hidden;border-radius:20px;background:#23394d;user-select:none;container-type:inline-size;box-shadow:0 12px 60px #0006}canvas{display:block;width:100%;height:auto;touch-action:none;cursor:crosshair}[hidden]{display:none!important}button{font:inherit;font-weight:850;color:inherit;border:0;border-radius:10px;cursor:pointer;touch-action:manipulation}button:disabled{opacity:.4;cursor:default}button:focus-visible{outline:2px solid #a6e7ff;outline-offset:2px}.glass{background:#15293ee8;border:1px solid #ffffff28;backdrop-filter:blur(12px);box-shadow:0 4px 15px #10223626}.top{position:absolute;top:10px;left:10px;right:10px;z-index:5;display:flex;justify-content:space-between;gap:6px;pointer-events:none}.stats{display:flex;align-items:center;gap:12px;padding:7px 10px;border-radius:13px;font-size:14px}.level{text-align:center}.level b{font-size:20px;line-height:1}.gold{color:#ffda72}small{display:block;font-size:9px;color:#a9bfd3;font-weight:800;letter-spacing:.5px}i{display:block;width:1px;height:25px;background:#ffffff25}.tools{display:flex;gap:5px;pointer-events:auto}.tools button{width:40px;height:42px;background:#182e43eb;border:1px solid #ffffff28;display:grid;place-items:center}.tools svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.tools .shopbtn{background:#ffd36c;color:#493919}.mission{position:absolute;top:65px;left:16px;right:16px;pointer-events:none;z-index:2}.mission>div:first-child{display:flex;justify-content:space-between;font-size:10px;font-weight:900;letter-spacing:1px;margin-bottom:5px;text-shadow:0 1px 3px #243c4e}.track{height:5px;background:#192e4666;border-radius:8px;overflow:hidden}.track em{display:block;height:100%;width:0;background:#f3f8ff;border-radius:8px}.bottom{position:absolute;bottom:11px;left:13px;right:13px;border-radius:14px;padding:10px 12px;display:flex;align-items:center;gap:15px;pointer-events:none;z-index:3}.bottom *{pointer-events:none}.bottom>div:not(.health){text-align:center}.bottom b{font-size:16px;font-variant-numeric:tabular-nums}.health{flex:1;min-width:55px}.health>div:first-child{display:flex;justify-content:space-between;align-items:center}.health b{font-size:12px;color:#a4efbd}.health .track{height:6px;background:#ffffff22;margin-top:5px}.health .track em{background:#83e6ad;width:100%}.shade{position:absolute;inset:0;z-index:4;display:flex;align-items:center;justify-content:center;padding:14px;background:#0d1d30b8;backdrop-filter:blur(5px)}#shop{z-index:10}.center{text-align:center}.center h1{font-size:45px;line-height:1;font-style:italic;font-weight:1000;text-shadow:0 5px #375d97;margin:0}.center p{font-size:13px;font-weight:850;color:#bdd7ee;margin:16px 0}.center #reward{font-size:25px;color:#ffda72}.primary{background:#7be6ad;color:#193d2b;padding:13px 32px;box-shadow:0 4px #379466}.secondary{background:#36516e;padding:9px 13px}#restart{display:block;margin:15px auto 0}.panel{width:100%;max-height:90%;overflow:auto;border-radius:20px;background:#192d44;border:1px solid #ffffff30;padding:15px}.shophead{display:flex;align-items:center;gap:12px}.shophead h2{margin:0 auto 0 0;font-size:23px}.tabs{display:flex;gap:4px;background:#102037;border-radius:12px;padding:4px;margin:13px 0}.tabs button{flex:1;padding:10px 2px;font-size:10px;background:transparent;color:#a8bfd6}.tabs button.active{background:#426b97;color:white}.items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.item{background:#293e58;border:1px solid #ffffff18;border-radius:12px;padding:10px;text-align:center}.item.active{border-color:#8cebb4}.item button{width:100%;font-size:12px;padding:10px 4px;margin-top:8px}.item small{margin-top:4px;font-size:10px;letter-spacing:0}.item b{font-size:13px}.buy{background:#ffda76;color:#503a17}.equip{background:#477bc2}.equipped{background:#305b4a;color:#a0edbf}#notice{font-size:11px;color:#a0eac1;text-align:center;margin-top:10px;min-height:14px}#toast{position:absolute;top:40%;left:0;right:0;pointer-events:none;text-align:center;font-size:22px;font-weight:950;text-shadow:0 2px 7px #18334a;z-index:3}#loot{position:absolute;bottom:77px;left:50%;transform:translateX(-50%);pointer-events:none;background:#734fc9e8;padding:5px 10px;border-radius:8px;font-size:10px;font-weight:900;white-space:nowrap}@container(max-width:350px){.stats{gap:6px;font-size:11px;padding:6px 8px}.tools button{width:32px;height:36px}.tools{gap:3px}.bottom{gap:9px;padding:8px}.bottom b{font-size:14px}.mission{top:57px}.center h1{font-size:38px}.panel{padding:10px}}@media(max-width:500px){#game{border-radius:0}}
