/* Mobile HUD hotfix. Group containers participate in normal document flow. */
#hudTelemetry{display:none}#chatMinimize{display:none}
@media(max-width:900px),(pointer:coarse) and (max-width:1200px),(max-height:600px) and (max-width:1200px){
 body #game .hud #mobileSecondaryMenu{
  display:none!important;position:fixed!important;inset:auto!important;
  top:calc(var(--af-viewport-top,0px) + max(8px,env(safe-area-inset-top)))!important;
  left:max(8px,env(safe-area-inset-left))!important;right:max(8px,env(safe-area-inset-right))!important;
  width:auto!important;height:auto!important;max-width:520px!important;margin:0 0 0 auto!important;
  max-height:calc(var(--af-viewport-height,100dvh) - max(8px,env(safe-area-inset-top)) - max(8px,env(safe-area-inset-bottom)))!important;
  box-sizing:border-box!important;overflow:auto!important;overscroll-behavior:contain;touch-action:pan-y!important;
  flex-flow:row wrap!important;align-items:stretch!important;align-content:flex-start!important;gap:8px!important;padding:10px!important;
  scrollbar-gutter:stable;isolation:isolate;
 }
 body.menu-open #game .hud #mobileSecondaryMenu{display:flex!important}
 #game #mobileSecondaryMenu>*{position:static!important;inset:auto!important;transform:none!important;box-sizing:border-box!important;min-width:0!important;max-width:none!important;margin:0!important;flex:0 0 100%;}
 #game #mobileSecondaryMenu>:is(button,a){flex:0 0 calc((100% - 16px)/3);width:calc((100% - 16px)/3)!important;min-height:56px!important;height:auto!important;white-space:normal!important;overflow-wrap:anywhere;}
 #game #mobileSecondaryMenu>.mobile-menu-heading{display:flex!important;flex-wrap:nowrap;align-items:center;justify-content:space-between;min-height:52px;gap:8px;padding-bottom:8px;}
 #game #mobileSecondaryMenu>.mobile-menu-heading>span{min-width:0}#game #mobileSecondaryMenu>.mobile-menu-heading button{flex:0 0 44px}
 #game #mobileSecondaryMenu>.mobile-options-summary{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(100px,48%);grid-template-rows:auto auto;gap:4px 8px;min-height:66px;height:auto!important;padding:8px;}
 #game #mobileSecondaryMenu .mobile-options-summary>:is(span,strong){grid-column:1;white-space:normal;overflow-wrap:anywhere;line-height:1.4;}
 #game #mobileSecondaryMenu .mobile-options-summary>#hudCredits{position:static!important;inset:auto!important;grid-column:2;grid-row:1/3;width:100%!important;min-width:0!important;max-width:100%!important;min-height:44px!important;height:auto!important;overflow-wrap:anywhere;white-space:normal!important;line-height:1.4!important;}
 #game #mobileSecondaryMenu>:is(.player-tools,.righttools,.mobile-service-links){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-auto-rows:auto!important;gap:8px!important;width:100%!important;height:auto!important;min-height:0!important;}
 #game #mobileSecondaryMenu>.mobile-service-links{grid-template-columns:repeat(3,minmax(0,1fr))!important;padding-top:8px;}
 #game #mobileSecondaryMenu :is(.player-tools,.righttools,.mobile-service-links)>button{position:static!important;inset:auto!important;transform:none!important;margin:0!important;width:100%!important;max-width:none!important;min-width:0!important;min-height:44px!important;height:auto!important;white-space:normal!important;overflow-wrap:anywhere;line-height:1.35!important;}
 #game #mobileSecondaryMenu :is(button,a)[hidden],#game #mobileSecondaryMenu .hidden{display:none!important}
 #game #mobileSecondaryMenu #accountMenu,#game #mobileSecondaryMenu #mobileLayoutMenu{width:100%!important;height:auto!important;min-height:44px!important;}
 #game #mobileSecondaryMenu #accountMenu .account-menu-items{position:static!important;inset:auto!important;width:auto!important;height:auto!important;}
 #game #mobileSecondaryMenu summary{min-height:44px!important;box-sizing:border-box;display:flex;align-items:center;padding:8px!important;}
 #game #mobileSecondaryMenu #mobileLayoutMenu>div{display:grid;grid-template-columns:1fr;gap:8px;}#game #mobileSecondaryMenu #mobileLayoutMenu button{min-height:44px!important;white-space:normal;}
 body #game #hudTelemetry{display:flex;position:absolute;flex-direction:column;width:92px;max-width:45vw;gap:0;z-index:8;box-sizing:border-box;border:1px solid #638a9233;border-radius:3px;background:#06192480;color:#d9f6f4;pointer-events:auto;}
 body #game #hudTelemetry #networkStatus{display:block!important;position:static!important;inset:auto!important;width:100%!important;max-width:none!important;min-height:11px!important;height:11px!important;margin:0!important;padding:0 2px!important;font-size:8px!important;line-height:11px!important;letter-spacing:-.1px!important;white-space:nowrap;background:transparent!important;border:0!important;}
 body #game #hudTelemetry #performanceStatus{display:block!important;position:static!important;inset:auto!important;min-height:11px!important;height:11px!important;margin:0!important;padding:0 2px!important;font:8px/11px monospace!important;white-space:nowrap;text-align:center;opacity:1;}
 body:is(.menu-open,.mini-expanded,.chat-open) #game #hudTelemetry,body:has(dialog[open]) #game #hudTelemetry{visibility:hidden}
 body #game #questVisibilityControls{top:calc(var(--guide-top,190px) + 26px)!important}
 body #game #questTracker{top:calc(var(--guide-top,190px) + 74px)!important}
 body #game #socialDock[data-mobile-chat],body.left-handed #game #socialDock[data-mobile-chat]{position:absolute!important;inset:auto!important;left:var(--chat-compact-left,8px)!important;bottom:var(--chat-compact-bottom,300px)!important;right:auto!important;top:auto!important;width:var(--chat-compact-width,min(220px,calc(50vw - 16px)))!important;transform:none!important;z-index:10!important;}
 body #game #socialDock[data-mobile-chat=compact] #chatToggle{display:none!important}
 body #game #socialDock[data-mobile-chat=compact] #chatPanel{
  display:flex!important;position:static!important;inset:auto!important;transform:none!important;margin:0!important;
  width:100%!important;max-width:none!important;height:var(--chat-compact-height,145px)!important;max-height:var(--chat-compact-height,145px)!important;overflow:hidden!important;
  background:#061c2b75!important;border:1px solid #8fc3c660!important;border-radius:7px!important;box-shadow:none!important;
  backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px);text-shadow:0 1px 3px #000;
 }
 body #game #socialDock[data-mobile-chat=compact] #chatPanel>header{display:flex!important;flex:0 0 44px;padding:0!important;gap:0!important;background:#0b28386b!important;justify-content:flex-end!important;}
 body #game #socialDock[data-mobile-chat=compact] #chatPanel>header :is(strong,#socialManage){display:none!important}
 body #game #socialDock[data-mobile-chat=compact] #chatPanel>header button{display:block!important;flex:0 0 44px!important;width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;margin:0!important;padding:0!important;font-size:18px!important;background:transparent!important;border:0!important;}
 body #game #socialDock[data-mobile-chat=compact] :is(#chatPanel>nav,#chatScope,#chatNotice,#whisperRecipientRow,#chatPlayerActions){display:none!important}
 body #game #socialDock[data-mobile-chat=compact] #chatHistory{height:calc(var(--chat-compact-height,145px) - 90px)!important;min-height:calc(var(--chat-compact-height,145px) - 90px)!important;max-height:calc(var(--chat-compact-height,145px) - 90px)!important;flex:1 1 auto!important;padding:0 6px!important;overflow-y:auto;}
 body #game #socialDock[data-mobile-chat=compact] #chatHistory .chat-line{font-size:11px!important;line-height:17px!important;margin:1px 0!important;}
 body #game #socialDock[data-mobile-chat=compact] #chatHistory .chat-line time{display:none}
 body #game #socialDock[data-mobile-chat=compact] .chat-empty{font-size:11px;padding:8px 0;margin:0;line-height:17px;color:#e0ebee;}
 body #game #socialDock[data-mobile-chat=compact] #chatForm{display:flex;flex:0 0 44px;padding:0 4px!important;border-top:1px solid #8ab1b32b;background:transparent!important;box-sizing:border-box;}
 body #game #socialDock[data-mobile-chat=compact] #chatInput{width:100%!important;min-height:44px!important;height:44px!important;padding:3px!important;font-size:16px!important;border:0;background:transparent!important;}
 body #game #socialDock[data-mobile-chat=compact] #chatInput::placeholder{color:#c0d8df;opacity:1}
 body #game #socialDock[data-mobile-chat=compact] #chatForm button{display:none}
 body #game #socialDock[data-mobile-chat=compact][data-compact-dense=true] #chatForm{display:none!important}
 body #game #socialDock[data-mobile-chat=compact][data-compact-dense=true] #chatHistory{height:58px!important;min-height:58px!important;max-height:58px!important}
 body #game #socialDock[data-mobile-chat=expanded] #chatMinimize{display:block;min-width:44px;min-height:44px}
 body #game #socialDock[data-mobile-chat=closed] #chatToggle{width:44px!important;min-width:44px!important;font-size:0!important;}
 body #game #socialDock[data-mobile-chat=closed] #chatUnread{font-size:10px}
 body #game #socialDock[data-mobile-chat=minimized] #chatToggle{width:78px!important;min-width:78px!important;min-height:44px!important;}
 body.menu-open #game #socialDock,body:has(dialog[open]) #game #socialDock{visibility:hidden!important}
}
