/* LIFE QUEST v17.3 — iPhone text-entry auto-zoom & horizontal overflow safeguard.
   Presentation-only: no viewport zoom restrictions, JS/game state or input values changed.
   Mobile Safari zooms focused form controls when their computed font is below 16px. */
@media (max-width:780px) {
  :root { -webkit-text-size-adjust:100%; text-size-adjust:100%; }

  /* Keep the real editable control at 16px+; labels, cards and buttons
     retain their intentionally smaller typography. Do not alter checkbox/radio sizing. */
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="hidden"]):not([type="color"]),
  textarea,
  select {
    font-size:16px !important;
    max-width:100%;
    min-width:0;
  }
  textarea { overflow-wrap:anywhere; }

  /* Nested grids and public reply rows must be allowed to shrink to the
     viewport rather than enlarging the page on text focus / long content. */
  .app-shell, .app-main, .page-content,
  .guild-chat-panel, .guild-chat-panel .guild-chat-log,
  .guild-chat-panel .guild-msg,
  .guild-chat-panel .board-post-row,
  .guild-chat-panel .board-post-content,
  .guild-chat-panel .social-replies,
  .guild-chat-panel .social-reply,
  .guild-chat-panel .social-reply-form,
  .guild-chat-panel .guild-chat-form,
  .modal, .form-field {
    min-width:0;
    max-width:100%;
  }
  .guild-chat-panel :is(.guild-chat-form, .social-reply-form) :is(input,textarea,select) {
    display:block;
    width:100%;
    max-width:100%;
    min-width:0;
  }
  .guild-chat-panel :is(.guild-msg-body,.board-author,.board-reply-meta,.social-reply) {
    overflow-wrap:anywhere;
    word-break:break-word;
  }
  .guild-chat-panel .social-respond,
  .guild-chat-panel .social-respond button {
    min-width:0;
    max-width:100%;
  }
  .bottom-nav {
    width:100%;
    max-width:100%;
  }
}
