.background-menu{position:relative;font:600 12px system-ui,sans-serif;z-index:100;color:#263c43}.background-menu>summary{cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:center;gap:7px;min-height:39px;padding:0 11px;border:1px solid #ffffff40;border-radius:13px;background:#ffffff12;color:inherit}.background-menu>summary::-webkit-details-marker{display:none}.background-menu>summary>svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7}.background-menu>summary>span{font-size:11px}.is-playing .background-menu>summary,#app .background-menu>summary{color:#fff4dc}.background-panel{position:absolute;right:0;top:calc(100% + 10px);width:250px;padding:17px;background:#fffcf5;border:1px solid #e5dacb;border-radius:19px;box-shadow:0 15px 45px #10243040;color:#304344;text-align:left;box-sizing:border-box}.background-panel>strong{display:block;font-size:15px;margin-bottom:13px}.background-modes{display:flex;gap:5px;padding:4px;background:#eeeee7;border-radius:12px}.background-modes button{flex:1;font:600 12px system-ui;padding:10px 6px;background:transparent;color:#4c605b;border:0;border-radius:9px;box-shadow:none}.background-modes button[aria-pressed=true]{background:#fff;box-shadow:0 2px 5px #253c431a;color:#734a2c}.background-panel p{font:400 11px/1.5 system-ui;margin:13px 0 9px;color:#65756c}.background-swatches{display:flex;gap:7px}.background-swatches button{background:var(--swatch);border:3px solid #fff;box-shadow:0 0 0 1px #d7ded8;border-radius:50%;width:37px;height:37px;min-width:0;padding:0;color:white;display:grid;place-items:center}.background-swatches button span{visibility:hidden}.background-swatches button[aria-pressed=true]{box-shadow:0 0 0 2px #946e46}.background-swatches button[aria-pressed=true] span{visibility:visible}.background-menu button:focus-visible,.background-menu summary:focus-visible{outline:3px solid #d69936;outline-offset:3px}.background-menu:not([open])>.background-panel{display:none}
.plain-scene .foo-stage,.plain-scene #app{background:var(--plain-background)!important}.plain-scene .foo-stage:before,.plain-scene #worldBackdrop,.plain-scene #atmosphere,.plain-scene #forestHost{display:none!important}.plain-scene .foo-stage .scene-heading{text-shadow:none}.plain-scene #app:before,.plain-scene #app:after{display:none!important}.foo-header{position:relative;z-index:30}
@media(max-width:800px){.background-menu>summary>span{display:none}.background-menu>summary{width:34px;min-height:34px;padding:0}.background-panel{position:fixed;top:64px;right:12px;max-width:calc(100vw - 24px)}.background-swatches button{width:37px;height:37px}}
@media(max-height:550px){.background-panel{max-height:calc(100svh - 70px);overflow:auto}}
/* Subby's world chooser already owns scenery; keep its toolbar compact. */
.inline-background{margin:0 0 16px}.inline-background>summary{display:none}.inline-background>.background-panel{position:static;width:100%;max-width:none;max-height:none;overflow:visible;box-shadow:none;border:1px solid #ffffff26;background:#ffffff09;color:#fff4db;padding:12px;border-radius:14px}.inline-background .background-panel>strong{font-size:13px;margin-bottom:9px}.inline-background .background-panel>p{color:#c8d6d7;margin:9px 0}.inline-background .background-swatches{justify-content:space-between}.inline-background .background-swatches button{width:34px;height:34px;border-width:2px}.inline-background .background-modes{background:#ffffff0d}.inline-background .background-modes button{color:#d9e5df}.inline-background .background-modes button[aria-pressed=true]{color:#65472e}
@media(max-width:400px){#worldMenu>summary #currentWorld{display:none}#worldMenu>summary{padding:5px 7px;gap:3px}#app .play-controls{gap:5px}#app .brand-panel{min-width:0}#app .top-bar{gap:5px}}
