.stealth-screen{min-height:100dvh;max-width:1100px;margin:auto;padding:8px 12px;background:#241f18;color:#d4b476;font-family:Georgia,serif;box-sizing:border-box;overflow:clip}.stealth-screen header{text-align:center;border-bottom:3px double #977044;padding:4px}.stealth-screen header p{font-size:12px;margin:0;letter-spacing:2px}.stealth-screen h1{font-size:22px;margin:4px}.stealth-screen header span{font-size:14px}.stealth-board{max-width:960px;max-height:66dvh;margin:8px auto;border:3px ridge #977044;aspect-ratio:3/2;background:#171b22;box-sizing:border-box}.stealth-board canvas{width:100%;height:100%;display:block;image-rendering:pixelated;touch-action:none;outline-offset:-4px}.stealth-screen>p{text-align:center;margin:4px;font-size:14px}.stealth-controls{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;max-width:960px;margin:auto}.stealth-controls button{min-height:48px;padding:6px 14px;border:3px ridge #977044;background:#34291c;color:#e0c28d;font-family:Georgia,serif;font-size:15px}.stealth-controls button[aria-pressed=true]{background:#675336}.stealth-resume{display:none}.stealth-resume.available{display:block}.stealth-joystick{display:none;position:relative;flex-shrink:0;width:88px;height:88px;touch-action:none;border:3px ridge #977044;background:repeating-linear-gradient(45deg,#34291c,#34291c 3px,#2a2219 3px,#2a2219 6px)}.stealth-joystick i{position:absolute;left:28px;top:28px;width:26px;height:26px;background:#917045;border:3px ridge #ccb580;box-sizing:border-box}.stealth-joystick span{position:absolute;bottom:2px;left:10px;font-size:12px}.stealth-key-help{font-size:13px;width:100%;text-align:center;margin:4px}.stealth-debug{display:block;font:12px monospace;margin:8px;color:#e0c28d;word-break:break-word}@media(pointer:coarse),(max-width:600px){.stealth-joystick{display:block}.stealth-screen{padding:4px}.stealth-controls{gap:5px}.stealth-controls button{font-size:13px;padding:6px 8px}.stealth-key-help{display:none}.stealth-board{width:100%;height:auto;max-height:none}.stealth-screen h1{font-size:18px}}@media(max-height:480px){.stealth-screen{display:grid;grid-template-columns:minmax(0,1fr) 160px;gap:4px}.stealth-screen header,.stealth-screen>p{grid-column:2;font-size:12px}.stealth-screen header h1{font-size:16px}.stealth-board{grid-column:1;grid-row:1/5;width:auto;height:calc(100dvh - 16px);max-height:none;max-width:100%;margin:auto}.stealth-controls{grid-column:2;gap:3px}.stealth-controls button{min-height:44px;font-size:12px}.stealth-joystick{width:72px;height:72px}.stealth-joystick i{left:20px;top:20px}.stealth-joystick span{font-size:10px}.stealth-key-help{display:none}}
.stealth-shell{position:relative;display:block;min-height:100dvh}.stealth-shell .dialog-dock{display:none}.stealth-shell .dialog-dock:has(#modal[open]){display:block;position:fixed;inset:10px;width:min(720px,calc(100vw - 20px));height:calc(100dvh - 20px);margin:auto;z-index:50}.stealth-shell .dialog-dock #modal[open]{display:flex;flex-direction:column;height:100%;box-sizing:border-box;overflow:hidden}.stealth-shell #modal .window-content{flex:1;min-height:0;overflow:hidden}.stealth-shell #modal .modal-actions{overflow:hidden;max-height:none;flex:none}
