*{box-sizing:border-box}html,body{margin:0;height:100%;overflow:hidden;background:#100d21;color:#f2e9ff;font:14px system-ui,sans-serif}
#stage{position:relative;width:100%;height:100dvh;overflow:hidden}canvas,#field{position:absolute;inset:0;width:100%;height:100%}#field{z-index:1;touch-action:none;user-select:none}
header{position:absolute;z-index:2;top:max(12px,env(safe-area-inset-top));left:16px;right:16px;pointer-events:none}small{font-size:9px;letter-spacing:1.5px;color:#b4a2ff}h1{font-size:23px;margin:5px 0;font-weight:650}#clock{position:absolute;right:0;top:58px;font-size:22px;font-variant-numeric:tabular-nums}
#message{position:absolute;z-index:2;top:100px;left:5%;width:90%;text-align:center;font-size:12px;color:#a9f9ed;pointer-events:none}
footer{position:absolute;z-index:2;bottom:max(12px,env(safe-area-inset-bottom));width:100%;text-align:center;pointer-events:none}#help{font-size:10px;line-height:1.6}nav{display:flex;justify-content:center;gap:12px}button{min-width:92px;min-height:44px;border:1px solid #bda0ff;border-radius:24px;background:#28203e;color:inherit;font:inherit;pointer-events:auto}:focus-visible{outline:2px solid #abffed;outline-offset:-3px}
#completion{position:absolute;z-index:2;top:23%;width:100%;text-align:center;pointer-events:none}#completion strong{font-size:20px}#completion p{font-size:12px}#error{position:absolute;z-index:3;top:40%;background:#402344;padding:24px}[hidden]{display:none!important}
@media(max-height:500px){header{width:28%;top:6px}h1{font-size:19px}small{letter-spacing:0}#clock{top:87px;left:0}#message{left:71%;width:27%;top:10px}footer{width:29%;right:0;bottom:8px}#help{font-size:9px}nav{gap:4px}button{min-width:72px}#completion{width:27%;top:45%}#completion strong{font-size:17px}}
body[data-production] nav{flex-wrap:wrap;gap:6px;padding:0 8px}body[data-production] button{min-width:72px}#storage,#reward-status{margin:2px;font-size:10px;color:#a9f9ed}dialog{border:1px solid #bda0ff;border-radius:20px;background:#28203e;color:#f2e9ff;text-align:center;max-width:310px}dialog button{margin:4px}@media(max-height:500px){body[data-production] footer{width:36%}body[data-production] #help{display:none}body[data-production] button{min-width:64px;min-height:44px;font-size:11px}}
