*{box-sizing:border-box}html,body{margin:0;height:100%;overflow:hidden;background:#081a30;color:#edf9ff;font:14px system-ui,sans-serif}#stage{position:relative;height:100dvh;overflow:hidden}canvas{display:block;width:100%;height:100%;touch-action:none;user-select:none}header{position:absolute;top:max(14px,env(safe-area-inset-top));left:16px;right:16px;pointer-events:none}small{color:#8fe8df;font-size:10px;letter-spacing:2px}h1{font-size:22px;margin:6px 0}#clock{float:right;font-size:24px}#bells{font-size:24px;color:#ffe3a2}#message{position:absolute;top:116px;left:6%;width:88%;text-align:center;color:#ffe3a2;pointer-events:none}#sides{position:absolute;top:60%;width:100%;display:flex;justify-content:space-between;padding:0 14px;pointer-events:none;font-size:9px;letter-spacing:1px;color:#96b6cf}footer{position:absolute;bottom:max(12px,env(safe-area-inset-bottom));width:100%;text-align:center;pointer-events:none}#help{font-size:11px;line-height:1.6;margin:6px}#variations{font-size:11px;color:#a6ede5;margin:8px}nav{display:flex;justify-content:center;gap:10px}button{min-width:96px;min-height:48px;border:1px solid #a2e0ea;border-radius:24px;background:#17344a;color:inherit;font:inherit;pointer-events:auto}button:disabled{opacity:.5}:focus-visible{outline:3px solid #ffe3a2;outline-offset:-3px}#error{position:absolute;top:40%;width:100%;padding:20px;background:#542f35;text-align:center}[hidden]{display:none!important}
@media(max-width:340px){h1{font-size:19px}#message{top:102px;font-size:12px}footer{bottom:8px}#variations{margin:4px}}
@media(max-height:500px){header{top:8px;width:29%;left:12px}h1{font-size:17px}small{font-size:8px;letter-spacing:1px}#clock{float:none;margin-right:16px}#message{top:8px;left:68%;width:30%;font-size:12px}footer{right:8px;width:28%;bottom:8px}#help{font-size:9px}#variations{font-size:10px}button{min-width:84px}#sides{top:65%;font-size:8px}}
body[data-production] nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;max-width:370px;margin:auto;padding:0 12px}body[data-production] nav button{min-width:44px;min-height:44px;font-size:11px;padding:0 4px}body[data-production] #motion{grid-column:span 2}#storage,#reward-status{font-size:10px;color:#b5d6e5;margin:3px 8px}dialog{max-width:min(340px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;background:#16354d;color:#edf9ff;border:1px solid #9de8ed;border-radius:18px;text-align:center;padding:18px}dialog::backdrop{background:#081a30b8}dialog h2{font-size:21px;margin:4px 0 12px}dialog p{font-size:14px;line-height:1.5}dialog button{min-width:112px;min-height:48px;margin:4px}#loading{position:absolute;inset:0;display:grid;place-items:center;background:#081a30;z-index:8}#error{z-index:10}#error button{min-height:48px}body[data-production] #completion-reward{color:#ffe3a2}
@media(max-height:500px){body[data-production] footer{width:30%;right:5px}body[data-production] nav{padding:0 4px;gap:4px}body[data-production] #help{font-size:9px}body[data-production] #storage,body[data-production] #reward-status{font-size:9px}dialog{padding:12px}dialog h2{font-size:19px}}
