*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden}body{background:#263f42;font-family:system-ui,'PingFang SC',sans-serif;display:grid;justify-items:center}main{position:relative;width:100vw;height:100vh;height:100dvh;max-width:75vh;overflow:hidden;container-type:size;touch-action:none;user-select:none;-webkit-user-select:none}img,canvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}output,button,#note{position:absolute;text-align:center}output{top:8.65%;height:3.8%;width:19%;display:grid;place-items:center;font:bold min(5.6cqw,3.9cqh)/1 system-ui;color:#224866;background:#aadefa;font-variant-numeric:tabular-nums}#score{left:13%}#chances{left:40.5%}#best{left:72%}button{border:0;background:transparent;border-radius:999rem;cursor:pointer;-webkit-tap-highlight-color:transparent}button:focus-visible{outline:.6cqw solid #ff8a3d}button:active:not(:disabled){background:#ffffff36}button:disabled{cursor:default}#start{left:29%;top:78.7%;width:42%;height:8.4%;font:800 min(5cqw,3.7cqh)/1 system-ui;color:#803e09}#start:not(:empty){background:linear-gradient(#ffdb55,#ffb521);box-shadow:inset 0 -.4cqh #db8911}#retry,#ad{top:88.7%;height:7%;width:31%}#retry{left:17.4%}#ad{left:52%}#note{top:45.6%;left:50%;transform:translateX(-50%);max-width:93%;width:max-content;color:#fff;background:#233e39e8;border-radius:1em;padding:.4em .9em;font-size:min(4cqw,2.6cqh);pointer-events:none}/* [STATE] 参考图与交互层使用同一比例坐标。 */