/* Follow the native keyboard's height directly. Smooth only the discrete
   footer-row change so the text field never trails behind the keyboard. */
html #root .mahjong24-root.mj-game.mj-galaxy-game[data-mj-keyboard-motion]{transition:grid-template-rows 180ms cubic-bezier(.22,.61,.36,1)!important}
html[data-mj-input-layout="portrait"] #root .mahjong24-root.mj-game.mj-galaxy-game[data-mj-keyboard="true"] .mj-chat-dock.is-inline,
html[data-mj-input-layout="portrait"] #root .mahjong24-root.mj-game.mj-galaxy-game[data-mj-keyboard="true"] .mj-chat-dock.is-inline.is-expanded{height:100%!important;max-height:100%!important;justify-content:flex-end;transition:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
@media(prefers-reduced-motion:reduce){html #root .mahjong24-root.mj-game.mj-galaxy-game[data-mj-keyboard-motion]{transition:none!important}}
