
#godToggle{position:absolute;top:calc(56px + env(safe-area-inset-top));right:calc(10px + env(safe-area-inset-right));z-index:51;padding:9px 11px;border:1px solid #44e4f0a6;background:#0c2236e8;color:#e7fcff;border-radius:11px;font:800 12px system-ui;pointer-events:auto;touch-action:manipulation}
#godPanel{display:none;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:min(330px,90vw);max-height:82dvh;overflow:auto;z-index:80;background:#091425f8;border:1px solid #42e5ef9c;box-shadow:0 20px 70px #000c;border-radius:16px;padding:18px;color:#e8fbff;font:13px system-ui;pointer-events:auto}
#godPanel.open{display:block}#godPanel h3{margin:0 0 9px;font-size:18px}
#godPanel p{line-height:1.45;color:#b5dce8}#godPanel label{display:block;margin:10px 0 6px;font-weight:700}
#godPanel input{width:100%;min-height:42px;color:#fff;background:#132b40;border:1px solid #4a859d;border-radius:9px;padding:10px;font:15px system-ui}
#godPanel button{width:100%;min-height:41px;border-radius:9px;border:0;color:#0b1c27;background:#54f0e6;font-weight:900;margin-top:10px}
#godPanel[hidden],#godTools[hidden],#godInventoryDrawer[hidden],#godAdvanced[hidden]{display:none!important}
#godTools{position:absolute;inset:0;z-index:42;pointer-events:none;color:#e7faff;font:12px system-ui}
#godToast{position:absolute;bottom:calc(83px + env(safe-area-inset-bottom));left:12px;max-width:min(400px,78vw);background:#0b1d33cc;border:1px solid #316984c5;border-radius:9px;padding:6px 10px;pointer-events:none}
#godToast strong{color:#60f1ec}#godStatus{font-size:11px;color:#bedae6}
#godToolbar{position:absolute;left:calc(8px + env(safe-area-inset-left));right:calc(8px + env(safe-area-inset-right));bottom:calc(8px + env(safe-area-inset-bottom));display:flex;align-items:center;gap:6px;padding:6px;background:#07182bea;border:1px solid #41798e;border-radius:13px;box-shadow:0 8px 24px #000a;pointer-events:auto}
#godToolScroll{display:flex;flex:1;min-width:0;align-items:center;gap:5px;overflow-x:auto;scrollbar-width:thin;touch-action:pan-x}
#godToolbar button,#godAdvanced button,#godCatalog button{min-height:39px;border:1px solid #47748b;border-radius:9px;background:#19354a;color:#defbff;font:800 12px system-ui;padding:7px 10px;flex:none;white-space:nowrap;touch-action:manipulation}
#godToolbar button:disabled,#godAdvanced button:disabled{opacity:.38}
#godToolbar .godPrimary{background:#37cdb8;color:#051b24;border-color:#44f7e0}
#godToolbar .godCommit{background:#ff8a42;color:#241218;border-color:#f9bc75;font-weight:900}
#godInventoryDrawer,#godAdvanced{position:absolute;left:calc(10px + env(safe-area-inset-left));bottom:calc(75px + env(safe-area-inset-bottom));max-width:min(700px,calc(100vw - 20px));max-height:min(40dvh,240px);overflow:auto;background:#091e32f0;border:1px solid #4fa3b4;border-radius:13px;padding:10px;box-shadow:0 12px 42px #000a;pointer-events:auto;touch-action:pan-y}
#godCatalog{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}
#godCatalog button{min-height:43px;background:#162e47}
#godAdvanced{right:10px;max-width:min(460px,calc(100vw - 20px));}
#godAdvanced .godRow{display:flex;flex-wrap:wrap;gap:5px;margin:6px 0}
#godAdvanced .godSection{padding:6px 0;border-top:1px solid #2c5266}
#godAdvanced label{font-size:10px;color:#aacee1;display:block;margin:5px 0}
#godAdvanced small{color:#b9d4dc}#godAdvanced .godDanger{background:#633048}
#godAdvanced button{font-size:11px;min-height:33px}
#godCoordinates{font:11px monospace}
body.atm-god-editing #godToggle{background:#ff9946;color:#112135;border-color:#ff9946}
body.atm-god-editing #joystick,body.atm-god-editing #firePenny{opacity:.2;pointer-events:none!important}
body.atm-god-editing #hud .top,body.atm-god-editing #mobileActions{pointer-events:none!important;opacity:.2}
@media(max-height:440px){#godToggle{top:calc(45px + env(safe-area-inset-top));padding:6px 9px}#godToast{bottom:calc(68px + env(safe-area-inset-bottom));padding:4px 7px}#godToolbar{padding:4px}#godToolbar button{min-height:35px;padding:5px 8px}#godInventoryDrawer,#godAdvanced{bottom:calc(61px + env(safe-area-inset-bottom));max-height:48dvh}}


/* Free-flight God Mode camera: gameplay thumb controls are replaced by editor flight. */
body.atm-god-editing #joystick,body.atm-god-editing #mobile{visibility:hidden!important;pointer-events:none!important}
body.atm-god-editing #godFlyPad,body.atm-god-editing #godFlyUp,body.atm-god-editing #godFlyDown{display:flex}
#godFlyPad{position:absolute;left:calc(20px + env(safe-area-inset-left));bottom:calc(102px + env(safe-area-inset-bottom));width:100px;height:100px;border:2px solid #52edf1aa;border-radius:50%;background:#0b2434c9;box-shadow:inset 0 0 24px #0009,0 0 15px #35beec42;pointer-events:auto;touch-action:none;align-items:center;justify-content:center;user-select:none}
#godFlyPad:after{content:'MOVE CAMERA';font:800 9px system-ui;letter-spacing:.08em;color:#a0f6fa;position:absolute;bottom:-19px;left:-14px;right:-14px;text-align:center;pointer-events:none}
#godFlyStick{width:44px;height:44px;border-radius:50%;background:linear-gradient(135deg,#52e7e9,#3682c7);border:2px solid #9cffff;box-shadow:0 3px 13px #32c3ff7d;pointer-events:none;will-change:transform}
#godFlyVertical{position:absolute;left:calc(132px + env(safe-area-inset-left));bottom:calc(104px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:6px;pointer-events:auto}
#godFlyVertical button{height:42px;min-width:54px;background:#113148dc;border:1px solid #42a9b8;border-radius:9px;color:#e6fdff;font:800 11px system-ui;touch-action:none}
body.atm-god-editing #world{touch-action:none!important}
#godToast{pointer-events:none;max-width:min(370px,52vw)}
@media(max-height:450px){#godFlyPad{left:calc(13px + env(safe-area-inset-left));bottom:calc(79px + env(safe-area-inset-bottom));width:78px;height:78px}#godFlyStick{width:34px;height:34px}#godFlyVertical{left:calc(99px + env(safe-area-inset-left));bottom:calc(82px + env(safe-area-inset-bottom))}#godFlyVertical button{height:34px;min-width:47px}}
