/* R28: chat is a real usable local practice-room panel, not a dead decoration. */
#gameStage .chat-panel{display:flex!important;flex-direction:column!important;z-index:36!important}
#gameStage .chat-tabs{flex:0 0 31px!important;min-height:31px!important}
#gameStage .chat-log{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;overscroll-behavior:contain!important;touch-action:pan-y!important}
#gameStage .chat-entry{flex:0 0 35px!important;min-height:35px!important}
#gameStage .chat-entry input{font-size:14px!important;padding:0 8px!important}
#gameStage .chat-entry button{min-width:52px!important;font-size:13px!important}
#gameStage .chat-disclaimer{flex:0 0 auto;font-size:10px;color:#91adb0;padding:3px 7px;text-align:center;background:#0b292d}
#gameStage #chatClose{display:none;flex:0 0 32px!important;font-size:22px!important;color:#f0df9c!important}
#gameStage #chatUnread:not([hidden]){display:inline-block;color:#ffcf6c;margin-left:3px}
#gameStage.mobile-landscape .chat-panel{top:auto!important;bottom:7px!important;right:8px!important;left:auto!important;width:320px!important;height:206px!important;max-height:calc(100% - 14px)!important;box-shadow:0 8px 24px #000b!important;background:#0a292e!important}
#gameStage.mobile-landscape .chat-panel.chat-closed{visibility:hidden!important;opacity:0!important;pointer-events:none!important}
#gameStage.mobile-landscape #chatClose{display:block!important}
#gameStage.mobile-landscape #mobileChat{display:inline-flex!important;align-items:center!important}
#gameStage.mobile-landscape .chat-tabs button{font-size:13px!important}
#gameStage.mobile-landscape .chat-log{font-size:13px!important}
#gameStage.mobile-landscape .chat-entry input{font-size:16px!important}
/* Preserve centered hand and controls. The open chat is a dismissible overlay rather than shrinking them. */
#gameStage.mobile-landscape .player-area{margin-inline:auto!important}
#gameStage.mobile-landscape .chat-panel:not(.chat-closed){outline:1px solid #5d8987!important}
@media (pointer:coarse){#gameStage .chat-panel:not(.chat-closed) #chatClose{display:block!important}}
