/* Keep community panels available below the room instead of covering the pad. */
body:not(.game-fullscreen):has(#room:not([hidden]) .mobile-room-ui) .online-widget,
body:not(.game-fullscreen):has(#room:not([hidden]) .mobile-room-ui) .general-chat-widget {
  position: relative; inset: auto; width: min(560px, calc(100% - 24px)) !important;
  min-width: 0; margin: 12px auto; max-width: calc(100% - 24px);
}
body:not(.game-fullscreen):has(#room:not([hidden]) .mobile-room-ui) #online-panel,
body:not(.game-fullscreen):has(#room:not([hidden]) .mobile-room-ui) #general-chat-panel {
  position: static; width: 100%; max-width: 100%; margin-bottom: 8px;
}
.screen-bottom .fullscreen-chat-toggle,
.game-stage.is-fullscreen .screen-bottom .fullscreen-chat-toggle { display: none; }
.game-stage.is-fullscreen.mobile-room-ui .fullscreen-chat-toggle { display: block; }
.game-stage.is-fullscreen.mobile-room-ui .fullscreen-chat.collapsed { display: none; }
.game-stage.is-fullscreen.mobile-room-ui .fullscreen-chat { width: min(320px, calc(100% - 24px)); right: max(12px, env(safe-area-inset-right)); top: max(12px, env(safe-area-inset-top)); max-height: 50dvh; }
/* iOS zooms small form text on focus, moving the game and touch controls. */
@media (pointer: coarse) {
  input, select, textarea,
  .game-stage.is-fullscreen .fullscreen-chat input,
  .chat-form input, #general-chat-form input,
  .member-form input, .member-form select, .member-form textarea { font-size: 16px; }
}

