/* Game-owned integration guard: preserve native windows without changing shared fullscreen. */
body.shaiam-fullscreen:has(.original-window--side:not([hidden])) #viewport>[data-game-fullscreen],
body.shaiam-fullscreen:has(.original-window--floating:not([hidden])) #viewport>[data-game-fullscreen],
body.shaiam-fullscreen.shaiam-map-open #viewport>[data-game-fullscreen]{visibility:hidden;pointer-events:none}
/* Temporary failure recovery belongs to the existing entrance, outside hidden native HUD. */
#portal-close-retry[hidden]{display:none!important}
#portal-close-retry:not([hidden]){display:inline-block;min-height:44px;max-width:100%;margin:8px 0;white-space:normal;touch-action:manipulation}
