/* Screen/pane flags (worlds-screen-*, *-pane, .rp-deck-row) replace :has(); `#_` never matches and only keeps the original :has(#id) specificity. */
body.worlds-ui.worlds-screen-lobby:not(#_) #startGameModal.gateway-mode-scene{background:#152d43eb!important;padding:30px!important;overflow:hidden;isolation:isolate;}
.gateway-transition-art{position:absolute;z-index:-1;max-width:none;pointer-events:none;user-select:none;}
body.worlds-ui.worlds-screen-lobby:not(#_) #match-setup-modal.gateway-mode-scene,#worlds-invitation-gate{position:fixed;inset:0;background:#152d43eb!important;overflow:hidden;isolation:isolate;}
#worlds-invitation-gate{z-index:8900;pointer-events:none;}
#worlds-preparation-gate{position:fixed;inset:0;z-index:450;overflow:hidden;isolation:isolate;background:#152d43;pointer-events:none;}
#worlds-preparation-gate.is-continuation{background:linear-gradient(#142d4355,#142d4377),url('/assets/worlds/backdrop.png') center/cover;}
body.worlds-ui .gateway-preparation-panel{z-index:9010!important;background:transparent!important;}
body.worlds-ui .gateway-preparation-panel>.modal{max-height:calc(100dvh - 40px);overflow-y:auto;}
body.worlds-ui #match-setup-modal.gateway-mode-scene>.gateway-setup-options{max-height:calc(100dvh - 40px);overflow-y:auto;min-width:0!important;width:min(420px,calc(100vw - 32px));}
body.worlds-ui.worlds-screen-lobby:not(#_) #startGameModal.gateway-mode-scene>[hidden]{display:none!important;}
body.worlds-ui.worlds-screen-lobby:not(#_) .gateway-child-scene{background:transparent!important;backdrop-filter:none!important;}
body.worlds-ui.worlds-screen-lobby:not(#_) #startGameModal.gateway-mode-scene.gateway-mode-returning{background:transparent!important;transition:background-color .5s ease-in;}
body.worlds-ui.worlds-screen-lobby:not(#_) #startGameModal.gateway-mode-scene>.gateway-mode-options{width:min(600px,48vw)!important;min-width:0!important;max-height:calc(100dvh - 60px)!important;background:none!important;border:0!important;border-image:none!important;padding:8px!important;gap:12px;filter:none!important;overflow:auto;scrollbar-width:thin;position:relative;}
body.worlds-ui.worlds-screen-lobby:not(#_) #startGameModal.gateway-mode-scene>.gateway-mode-options>div:first-child{color:#183a4d;border:0!important;text-align:center;text-shadow:0 1px 3px #fff,0 0 16px #fff;padding:4px 0!important;margin:0;font-size:24px!important;}
body.worlds-ui.worlds-screen-lobby:not(#_) #startGameModal.gateway-mode-scene .gateway-mode-options>button{border:18px solid transparent!important;border-image:url('/assets/worlds/lobby-stone-frame.png') 210 fill / 18px / 0 stretch!important;background:none!important;box-shadow:0 6px 10px #10283f35!important;padding:5px 10px!important;border-radius:0!important;min-height:74px;flex-shrink:0;}
body.worlds-ui #startGameModal.gateway-mode-scene .gateway-mode-options>button>div{min-width:0;}
body.worlds-ui #startGameModal.gateway-mode-scene .gateway-mode-options .btn-label{color:#293844!important;}
body.worlds-ui #startGameModal.gateway-mode-scene .gateway-mode-options .btn-sub{color:#535c57!important;}
body.worlds-ui #startGameModal.gateway-mode-scene .gateway-mode-back{position:absolute;top:16px;right:20px;width:auto;padding:10px 18px!important;color:#263c49!important;}
@media(max-height:700px){body.worlds-ui.worlds-screen-lobby:not(#_) #startGameModal.gateway-mode-scene>.gateway-mode-options{gap:6px;}body.worlds-ui.worlds-screen-lobby:not(#_) #startGameModal.gateway-mode-scene .gateway-mode-options>button{min-height:58px;border-width:12px!important;border-image-width:12px!important;padding:3px 7px!important;}body.worlds-ui #startGameModal.gateway-mode-scene .btn-sub{font-size:11px!important;}}
