html[data-lab-game] { height:100%; height:100dvh; overflow:hidden; }
html[data-lab-game] body { width:100%; height:100%; overflow:hidden; overscroll-behavior:none; }
html[data-lab-game] #mainDiv { width:100%!important; height:100%!important; margin:0!important; }
#lab-mobile-tools { position:fixed; left:max(8px,env(safe-area-inset-left)); top:45%; max-width:calc(100vw - 16px); max-height:calc(100dvh - 16px); overflow:auto; z-index:2147483000; color:#fff; font:13px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; text-align:left; }
#lab-mobile-tools summary { display:inline-block; list-style:none; padding:7px 10px; background:#14253fe8; border:1px solid #b9c8db80; border-radius:18px; cursor:grab; touch-action:none; user-select:none; }
#lab-mobile-tools summary::-webkit-details-marker { display:none; }
#lab-mobile-tools .lab-actions { display:flex; flex-wrap:wrap; gap:6px; margin-top:5px; }
#lab-mobile-tools button[aria-pressed="true"] { background:#12623b; }
#lab-mobile-tools button, #lab-mobile-help button { border:1px solid #b9c8db80; border-radius:7px; padding:8px 11px; color:white; background:#14253ff2; font:inherit; cursor:pointer; touch-action:manipulation; }
#lab-mobile-help { position:fixed; z-index:2147483100; inset:0; margin:auto; max-width:440px; width:calc(100% - 32px); max-height:85vh; overflow:auto; border:1px solid #bcc9d9; border-radius:14px; padding:23px; color:#15233b; background:#fff; font:15px/1.65 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; text-align:left; }
#lab-mobile-help::backdrop { background:#0009; }
#lab-mobile-help:not([open]) { display:none; }
#lab-mobile-help[open] { display:block; }
#lab-fullscreen-reason[hidden] { display:none; }
#lab-mobile-help h2 { margin:0 0 12px; font-size:20px; }
#lab-mobile-help li { margin:9px 0; }
#lab-mobile-help .lab-help-note { color:#53657c; font-size:13px; }
#lab-mobile-toast { position:fixed; left:50%; bottom:max(20px,env(safe-area-inset-bottom)); transform:translateX(-50%); z-index:2147483200; width:max-content; max-width:85vw; padding:10px 16px; border-radius:9px; background:#14253ff0; color:white; font:14px/1.5 sans-serif; pointer-events:none; }
#lab-mobile-toast[hidden] { display:none; }

#lab-mobile-tools[hidden], #lab-tools-restore[hidden] { display:none!important; }
#lab-tools-restore { position:fixed; left:env(safe-area-inset-left,0px); top:45%; z-index:2147483000; width:24px; padding:10px 3px; border:1px solid #b9c8db80; border-radius:0 8px 8px 0; background:#14253fbf; color:#fff; font:12px/1.4 sans-serif; cursor:pointer; touch-action:manipulation; }
#lab-tools-safe-area { position:fixed; inset:max(8px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left)); visibility:hidden; pointer-events:none; }
#lab-tools-handle:focus-visible, #lab-tools-restore:focus-visible { outline:2px solid #fff; outline-offset:2px; }
