*{box-sizing:border-box}html,body{margin:0;height:100%;background:#000;color:#ddd;font-family:ui-monospace,Menlo,Consolas,monospace;overscroll-behavior:none}body{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}#app{height:100%;display:flex;flex-direction:column;align-items:center;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}.bar{width:100%;max-width:640px;display:flex;justify-content:space-between;align-items:center;padding:8px 12px;font-size:13px}.bar a{color:#8a8a8a;text-decoration:none}.bar a:hover{color:#fff}.tools{display:flex;gap:8px}button{font:inherit;color:#ddd;background:#111;border:1px solid #333;border-radius:6px;padding:4px 10px;cursor:pointer;touch-action:manipulation}button:hover{border-color:#666}button:focus-visible{outline:2px solid #33ff33}#stage{flex:1 1 auto;min-height:0;width:100%;display:flex;align-items:center;justify-content:center;padding:0 8px;overflow:hidden}#screen{display:block;image-rendering:pixelated;image-rendering:crisp-edges;background:#000}#touch{display:none}.help{margin:8px 0 12px;font-size:12px;color:#666;text-align:center}body.touch .help{display:none}body.touch #touch{width:100%;max-width:640px;display:flex;justify-content:space-between;align-items:center;gap:16px;padding:12px 16px 16px;touch-action:none}body.touch #touch .move{display:flex;gap:12px}body.touch #touch button{width:72px;height:72px;border-radius:50%;font-size:22px;background:#0b1a0b;border:2px solid #1f5f1f;color:#3f3;touch-action:none}body.touch #touch #btn-fire{width:96px;height:96px;font-size:18px;font-weight:700;background:#1a0b0b;border-color:#6f1f1f;color:#ff4040}body.touch #touch button.down{filter:brightness(1.8)}
