:root{font-family:PingFang SC,Microsoft YaHei,sans-serif;color:#303149;font-synthesis:none;--ink:#343b50;--paper:#fff9e9ee}*{box-sizing:border-box}body{margin:0;overflow:hidden;background:#65b5f2;user-select:none;-webkit-user-select:none}button{font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation;color:var(--ink);border:2px solid var(--ink);background:var(--paper);box-shadow:0 3px #343b5075;transition:background .15s,transform .15s}button:focus-visible{outline:3px solid white;outline-offset:4px}button:active{transform:translateY(3px);box-shadow:none}button svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}button span{pointer-events:none}.symbol-library{position:absolute;width:0;height:0;overflow:hidden}canvas{display:block;width:100vw;height:100vh;touch-action:none;cursor:grab}canvas:active{cursor:grabbing}.top-actions{position:absolute;top:max(20px,env(safe-area-inset-top));right:max(22px,env(safe-area-inset-right));display:flex;gap:9px}.icon-button{width:45px;height:45px;border-radius:14px;display:grid;place-items:center}.icon-button[aria-pressed=true]{background:#8ce5ef}.icon-button svg{width:23px;height:23px}footer{position:absolute;bottom:calc(23px + env(safe-area-inset-bottom));left:50%;transform:translate(-50%)}.forms{display:flex;gap:9px;padding:7px;border-radius:22px;background:#fff2;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}.form{width:68px;height:68px;border-radius:17px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}.form span{font-size:11px;font-weight:700}.form.active{background:#66deee;transform:translateY(-5px);box-shadow:0 5px #343b5075}.form[data-form=puddle].active{background:#8be7df}.form[data-form=ice].active{background:#bdeeff}.form[data-form=vapor].active{background:#e4e2ff}#touch{position:absolute;left:max(16px,env(safe-area-inset-left));right:max(24px,env(safe-area-inset-right));bottom:calc(26px + env(safe-area-inset-bottom));display:flex;justify-content:space-between;align-items:flex-end;pointer-events:none}.actions{display:flex;align-items:flex-end;gap:13px;margin-left:auto}.actions button{pointer-events:auto;touch-action:none;width:62px;height:62px;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;-webkit-touch-callout:none}.actions button span{font-size:10px;font-weight:700}.actions button[data-key=Space]{width:72px;height:72px;background:#9ee9f3ed;margin-bottom:20px}.cooling{opacity:.48}#joystick{display:none;--stick-x:0px;--stick-y:0px;position:relative;width:160px;height:154px;pointer-events:auto;touch-action:none;-webkit-touch-callout:none}.joystick-base{position:absolute;left:12px;top:7px;width:136px;height:136px;border:2px solid #343b5080;border-radius:50%;background:radial-gradient(circle,#fff9e949 0 34%,#e7faff50 35% 65%,#fff8e970 66%);box-shadow:inset 0 0 0 7px #ffffff26,0 3px #343b5035;pointer-events:none}.joystick-axis{position:absolute;left:50%;top:50%;background:#343b5020;transform:translate(-50%,-50%)}.axis-x{width:90px;height:1px}.axis-y{width:1px;height:90px}.joystick-thumb{position:absolute;left:50%;top:50%;width:54px;height:54px;display:grid;place-items:center;border:2px solid var(--ink);border-radius:50%;background:var(--paper);box-shadow:0 4px #343b5065,inset 0 3px #ffffff90;transform:translate(-50%,-50%) translate(var(--stick-x),var(--stick-y));transition:transform .12s ease-out,background .12s;pointer-events:none}.joystick-thumb i{width:13px;height:13px;border:2px solid #458896;border-radius:50%;background:#a6e7ea88}#joystick.engaged .joystick-thumb{background:#69dded;transition:none}#joystick.engaged .joystick-base{border-color:#343b50c0;background:#e6ffff70}#win{position:absolute;top:13%;left:50%;transform:translate(-50%)}#win[hidden]{display:none}.win-card{display:flex;align-items:center;gap:18px;background:var(--paper);border:2px solid var(--ink);border-radius:24px;padding:16px 22px;box-shadow:0 5px #343b5060;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.finish-mark{width:42px;height:42px;fill:none;stroke:#329e90;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.rewards{display:flex;gap:5px}.reward{width:24px;height:30px;fill:none;stroke:#a9b2bc;stroke-width:2}.reward.earned{fill:#ffdc83;stroke:#ae8333}#again{display:flex;align-items:center;gap:9px;padding:12px 16px;white-space:nowrap;font-size:12px;font-weight:700;border-radius:13px;background:#91e5e8}#again svg{width:20px;height:20px}body[data-won=true] footer,body[data-won=true] #touch,body[data-won=true] #checkpoint{display:none}#fallback{position:absolute;inset:30%;padding:30px;background:#fff;z-index:10}@media(max-width:700px),(pointer:coarse),(max-width:1000px)and (max-height:500px){.top-actions{top:max(14px,env(safe-area-inset-top));right:max(15px,env(safe-area-inset-right));gap:7px}.icon-button{width:43px;height:43px}#joystick{display:block}#touch{left:max(8px,env(safe-area-inset-left));right:max(18px,env(safe-area-inset-right));bottom:calc(112px + env(safe-area-inset-bottom))}.actions{gap:9px;padding-bottom:8px}.actions button{width:58px;height:58px}.actions button[data-key=Space]{width:66px;height:66px;margin-bottom:30px}footer{bottom:calc(18px + env(safe-area-inset-bottom))}.forms{gap:8px;padding:6px}.form{width:63px;height:64px;border-radius:16px}.win-card{gap:10px;padding:14px}.finish-mark{width:32px;height:32px}.reward{width:19px}.rewards{gap:2px}}@media(max-height:500px)and (max-width:1000px),(max-height:500px)and (pointer:coarse){#touch{bottom:calc(13px + env(safe-area-inset-bottom));left:max(12px,env(safe-area-inset-left));right:max(18px,env(safe-area-inset-right))}#joystick{width:140px;height:136px}.joystick-base{width:118px;height:118px;left:11px;top:5px}.joystick-thumb{width:50px;height:50px}.actions button{width:52px;height:52px}.actions button[data-key=Space]{width:60px;height:60px;margin-bottom:22px}footer{bottom:calc(14px + env(safe-area-inset-bottom))}.form{width:57px;height:57px;border-radius:14px}.form svg{width:24px;height:24px}.form span{font-size:10px}.forms{gap:6px;padding:5px}.top-actions{top:max(10px,env(safe-area-inset-top))}.icon-button{width:38px;height:38px}#win{top:16%}}#sound[aria-pressed=true]{opacity:.55;background:var(--paper)}@media(prefers-reduced-motion:reduce){button,.joystick-thumb{transition:none}}.form{touch-action:none;-webkit-touch-callout:none}#crystal-counter{position:absolute;top:max(20px,env(safe-area-inset-top));left:max(22px,env(safe-area-inset-left));display:flex;align-items:center;gap:5px;min-width:91px;height:43px;padding:5px 12px 5px 7px;background:#fffaf0e8;border:1.5px solid #536477;border-radius:15px;box-shadow:0 3px #343b5033;pointer-events:none;transform:scale(var(--collect-scale,1));transform-origin:left top;font-variant-numeric:tabular-nums}#crystal-counter svg{width:29px;height:31px}#crystal-count{font-size:18px;font-weight:800;color:#246486}#crystal-counter span{font-size:12px;color:#647180;white-space:nowrap}.crystal-flight{position:fixed;left:0;top:0;width:36px;height:42px;z-index:10;pointer-events:none;filter:drop-shadow(0 0 9px #d4fbff);will-change:transform,opacity}.crystal-flight svg{width:100%;height:100%}#slam-hint{position:absolute;top:max(82px,calc(env(safe-area-inset-top) + 68px));left:50%;transform:translate(-50%);max-width:calc(100vw - 24px);display:flex;align-items:center;gap:10px;padding:10px 16px;border:1.5px solid #568b9d;border-radius:16px;background:#effff9ee;box-shadow:0 3px #45748736;pointer-events:none;white-space:nowrap;font-size:14px;font-weight:700;color:#315d71}#slam-hint[hidden]{display:none}#slam-hint svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.hint-action{outline:3px solid #edffff;outline-offset:4px;animation:hint-glow 1.1s ease-in-out infinite}@keyframes hint-glow{50%{outline-color:#69d9f2;outline-offset:7px}}.reward{filter:grayscale(1);opacity:.35}.reward.earned{filter:none;opacity:1}@media(max-width:700px),(pointer:coarse){#crystal-counter{top:max(14px,env(safe-area-inset-top));left:max(12px,env(safe-area-inset-left));height:43px;min-width:84px;padding-right:10px}#slam-hint{font-size:13px;gap:8px;padding:9px 12px}}@media(max-height:500px){#crystal-counter{top:max(10px,env(safe-area-inset-top));height:38px}#slam-hint{top:60px;font-size:12px;padding:7px 10px}#slam-hint svg{width:22px;height:22px}}@media(prefers-reduced-motion:reduce){.hint-action{animation:none}}
