html,body{width:100%;height:100%;margin:0;overflow:hidden}
#game-options-toggle{position:fixed;right:10px;top:10px;z-index:1100;width:36px;height:36px;padding:0;margin:0;border:0;border-radius:50%;background:#12182099;color:#fff;font:26px/1 system-ui;cursor:pointer;opacity:.65}
#game-options-toggle:hover,#game-options-toggle:focus-visible{opacity:1;background:#121820}
#game-options{position:fixed;right:10px;top:52px;z-index:1100;max-width:min(360px,calc(100vw - 20px));max-height:calc(100dvh - 70px);overflow:auto;background:#121820f5;color:#eee;padding:16px;border-radius:10px;box-shadow:0 8px 30px #0008;font:14px/1.5 system-ui}
#game-options[hidden]{display:none!important}
#game-options header,#game-options footer,#game-options #bar{position:static;display:flex;flex-wrap:wrap;gap:10px;padding:0;margin:0 0 12px;background:none;font:inherit}
#game-options a{position:static!important;color:#ccdfff!important;font:inherit!important}
#game-options button,#game-options select{font:inherit;padding:7px 10px;border:1px solid #687580;background:#28323c;color:#fff;border-radius:5px;cursor:pointer}
#status{position:fixed!important;left:50%!important;bottom:12px!important;transform:translateX(-50%);max-width:calc(100vw - 40px);width:max-content;z-index:1200;padding:8px 12px!important;min-height:0!important;border-radius:6px;background:#121820ed;color:#fff;font:13px/1.5 system-ui!important;pointer-events:none}
#status[hidden]{display:none!important}
html[data-clean-game="freedm"] main{position:absolute;inset:0;width:100%;height:100%;margin:0}
html[data-clean-game="freedm"] canvas{width:100%!important;height:100%!important;max-height:none!important}
.touch,#controls{display:none!important}
@media(pointer:coarse){.touch,#controls{position:fixed;left:0;right:0;bottom:0;display:flex!important;flex-wrap:wrap;justify-content:center;gap:4px;padding:5px;background:#12182099;z-index:10}.touch button,#controls button{min-width:34px;min-height:40px;margin:0;padding:5px;font:12px system-ui;touch-action:none}html[data-clean-game="freedm"] main{height:calc(100% - 60px)}#status{bottom:70px!important}}
