#mobile-navigation,#mobile-places,.mobile-help{display:none}
.mobile-world{overscroll-behavior:none}
.mobile-world header{padding:calc(12px + env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) 0 max(12px,env(safe-area-inset-left))!important;gap:10px!important;height:auto!important}
.mobile-world .brand{font-size:24px!important;flex-shrink:0}.mobile-world .brand span{font-size:8px!important;letter-spacing:2px!important}
.mobile-world #mobile-places{display:block;pointer-events:auto;min-height:46px;min-width:0;max-width:210px;flex:1;margin-left:auto;border:1px solid #fff9;border-radius:14px;background:#fffdf0f2;color:#174752;font:600 16px system-ui;padding:0 10px}
.mobile-world header #menu-toggle{margin:0!important;width:46px;min-width:46px;justify-content:center;padding:0!important}.mobile-world #menu-toggle span{display:none}
.mobile-world #world-menu{top:calc(70px + env(safe-area-inset-top));right:max(12px,env(safe-area-inset-right));width:min(300px,calc(100vw - 24px));max-height:calc(100dvh - 100px - env(safe-area-inset-top));font-size:16px}
.mobile-world #world-menu button,.mobile-world #world-menu a,.mobile-world #world-menu select{min-height:46px;font-size:16px}
.mobile-world .mobile-help{display:block;font-size:14px;line-height:1.5;margin:12px;color:#526962}
.mobile-world #mobile-navigation{display:flex;position:absolute;inset:auto max(14px,env(safe-area-inset-right)) calc(14px + env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left));align-items:flex-end;justify-content:space-between;gap:8px;z-index:24;pointer-events:none}
#mobile-navigation>*{pointer-events:auto}#mobile-navigation button{min-height:46px;min-width:46px;font:600 14px system-ui;border-radius:14px;background:#fffdf0ee;border:1px solid #fff9;color:#174752;touch-action:none}
.mobile-pad{position:relative;width:110px;height:110px;flex-shrink:0;border-radius:50%;background:#fffdf060;border:1px solid #ffffffb0;touch-action:none;user-select:none;display:flex;align-items:flex-start;justify-content:center;color:#174752;font-size:20px;padding-top:3px}
.mobile-stick{position:absolute;left:33px;top:33px;width:44px;height:44px;background:#174752d9;border:2px solid #fff9;border-radius:50%;pointer-events:none}
.mobile-pad-label{position:absolute;bottom:7px;font:600 12px system-ui;pointer-events:none}.mobile-height{display:grid;gap:5px;text-align:center}.mobile-height button{font-size:23px!important}.mobile-height span{font:600 12px system-ui;color:#174752;background:#fffdf0cc;border-radius:6px;padding:2px}
.mobile-world .zoom,.mobile-world .navigation-hint{display:none!important}.mobile-world #info{display:none!important}
.mobile-world.mobile-options-open #info{display:block!important;left:12px!important;right:12px!important;bottom:calc(142px + env(safe-area-inset-bottom))!important;width:auto!important;max-height:calc(100dvh - 235px - env(safe-area-inset-top) - env(safe-area-inset-bottom));padding:14px!important;z-index:26}
.mobile-world.mobile-options-open #info[hidden]{display:none!important}.mobile-world #info h2{font:600 17px system-ui!important;margin:0 0 8px}.mobile-world #info button{font-size:16px!important;min-height:46px!important}
.mobile-world.workspace-ready #rocks-editor,.mobile-world.workspace-ready #layout-editor,.mobile-world.workspace-ready #terrain-editor{top:auto;bottom:calc(12px + env(safe-area-inset-bottom));left:12px;right:12px;width:auto;max-height:55dvh;z-index:40}
.mobile-world:has(#rocks-editor:not([hidden]):not(.editor-minimized)) #mobile-navigation,.mobile-world:has(#terrain-editor:not([hidden]):not(.editor-minimized)) #mobile-navigation,.mobile-world:has(#layout-editor:not([hidden]):not(.editor-minimized)) #mobile-navigation,.mobile-world:has(dialog[open]) #mobile-navigation{visibility:hidden}
.mobile-world .editor-content input,.mobile-world .editor-content select{font-size:16px!important}.mobile-world .editor-content button,.mobile-world .editor-heading button{min-height:44px!important}
.mobile-world dialog{max-width:calc(100vw - 24px);max-height:calc(100dvh - 30px);overflow:auto}
@media(max-height:500px){.mobile-world .mobile-pad{width:90px;height:90px}.mobile-world .mobile-stick{left:23px;top:23px}.mobile-world.mobile-options-open #info{left:125px!important;right:80px!important;bottom:72px!important;max-height:calc(100dvh - 150px)}}
body #world-menu .mobile-library{display:none}.mobile-world #world-menu .mobile-library{display:flex}.mobile-world header #encyclopedia-toggle{display:none}

/* Compact mobile explorer, matching the selected Luana reference. */
.mobile-location-picker,.mobile-height{display:none}
.mobile-world header{align-items:center!important;gap:10px!important;background:none!important}
.mobile-world .brand{font-size:26px!important;line-height:1!important;width:72px}.mobile-world .brand span{margin-top:7px;font-size:9px!important}
.mobile-world #breadcrumb{display:none!important}
.mobile-world .mobile-location-picker{display:block;position:relative;flex:1;min-width:0;max-width:240px;margin-left:auto;height:46px}
.mobile-world .mobile-location-picker>img{position:absolute;left:12px;top:13px;width:20px;height:20px;pointer-events:none;z-index:1}.mobile-world .mobile-location-picker>.picker-chevron{left:auto;right:12px;width:18px}
.mobile-world #mobile-places{appearance:none;width:100%;max-width:none;margin:0;height:46px;border-radius:28px;padding:0 34px 0 37px;font:600 14px system-ui;background:#fffef0e8;box-shadow:0 3px 14px #123c3220;backdrop-filter:blur(12px)}
.mobile-world header #menu-toggle{border-radius:50%!important;background:#fffef0e8!important;border:1px solid #fff!important;width:46px;height:46px;box-shadow:0 3px 14px #123c3220}
.mobile-world #mobile-navigation{inset:auto 18px calc(22px + env(safe-area-inset-bottom)) 18px}
.mobile-world .mobile-pad{width:104px;height:104px;padding:0;box-sizing:border-box;background:#fffef05c;border:1.5px solid #ffffffe0;backdrop-filter:blur(8px);box-shadow:0 3px 16px #153d3220}
.mobile-world .mobile-stick{left:31px;top:31px;width:40px;height:40px;box-sizing:border-box;background:#164c55df;border:2px solid #fff}
.mobile-pad>img{position:absolute;width:20px;height:20px;pointer-events:none;opacity:.85}.pad-n{top:4px;left:41px}.pad-s{bottom:4px;left:41px}.pad-w{left:4px;top:41px}.pad-e{right:4px;top:41px}
.mobile-actions{display:grid;gap:12px}.mobile-world #mobile-navigation .mobile-actions button{width:48px;height:48px;min-width:48px;padding:11px;border-radius:50%;background:#fffef0eb;border:1.5px solid white;box-shadow:0 3px 16px #153d3220;backdrop-filter:blur(10px)}
.mobile-actions img{width:24px;height:24px}.mobile-world #mobile-navigation button[aria-expanded="true"]{background:#c5e3df}
.mobile-world #world-menu .mobile-height{display:flex;align-items:center;gap:8px;margin:10px 12px}.mobile-world .mobile-height span{flex:1;font:500 14px system-ui;background:none;text-align:left}.mobile-height button{width:44px;padding:10px}.mobile-height img{width:22px;height:22px}
.mobile-world.mobile-options-open #info{bottom:calc(142px + env(safe-area-inset-bottom))!important;border-radius:22px!important;background:#fffef2f5!important;box-shadow:0 8px 30px #103e3430}
.mobile-world .encyclopedia-dialog{position:fixed;inset:auto 0 0;margin:0;width:100%;max-width:100%;max-height:76dvh;border-radius:24px 24px 0 0;padding-bottom:env(safe-area-inset-bottom)}
.mobile-world .encyclopedia-heading{padding:16px}.mobile-world .encyclopedia-heading h2{font-size:18px}.mobile-world .encyclopedia-visual{padding:12px 16px}.mobile-world .encyclopedia-info{padding:16px}
@media(max-width:360px){.mobile-world .brand{width:58px;font-size:23px!important}.mobile-world header{gap:6px!important}.mobile-world #mobile-places{font-size:13px;padding-left:30px;padding-right:28px}.mobile-world .mobile-location-picker>img{left:8px;width:17px}.mobile-world .mobile-location-picker>.picker-chevron{left:auto;right:8px}}
