/* คำสั่งทั้งหมด (client-debug/js/cmdlist.js, Noh 2026-11-07 10:15 "หน้าแชตมือถือ แสดงคำสั่งทั้งหมดที่ใช้ได้ แล้วกดใช้ได้เลย"):
   the ⚡ button beside the phone chat's ✕ and the command list in place of the log. The phone only (html.mhud); linked by
   client/index.html and client-debug/index.html after mobile.css. */

.chat-cmdbtn, .chat-cmds { display: none; }
html.mhud.mh-chat-open #chat .chat-cmdbtn { display: block; position: absolute; right: 46px; top: 4px; width: 34px; height: 34px; min-height: 34px; padding: 0; border-radius: 50% !important;
	font: 700 17px/1 var(--game-font); color: #ffe27a !important; border: 1px solid rgba(255, 220, 120, 0.65) !important; background: rgba(255, 210, 90, 0.16) !important; z-index: 2; box-shadow: none !important; }
html.mhud.mh-chat-open #chat .chat-cmdbtn.on { border: 2px solid #ffe58a !important; background: rgba(120, 90, 20, 0.85) !important; box-shadow: 0 0 10px rgba(255, 220, 120, 0.7) !important; }
html.mhud.mh-chat-open #screen-game #chat .chat-tabs { padding-right: 86px !important; }

html.mhud.mh-chat-open #chat.cmd-open .chat-log { display: none !important; }
html.mhud.mh-chat-open #chat.cmd-open .chat-cmds { display: flex; flex-direction: column; height: min(46vh, calc(100vh - var(--mh-kb, 0px) - 330px)); min-height: 170px; }
html.mhud.mh-land.mh-chat-open #chat.cmd-open .chat-cmds { height: min(220px, calc(100vh - var(--mh-kb, 0px) - 130px)); min-height: 100px; }
#chat .chat-cmds .cmd-top { flex: none; padding: 6px 8px 4px; }
#chat .chat-cmds .cmd-q { display: block; width: 100%; height: 34px; min-height: 34px; box-sizing: border-box; padding: 0 10px; border-radius: 10px; border: 0; font-size: 16px;
	background: rgba(255, 255, 255, 0.92); color: #000; }
#chat .chat-cmds .cmd-body { flex: 1; min-height: 0; overflow-y: auto; padding: 0 8px 10px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
#chat .cmd-sec { margin: 8px 2px 5px; font: 800 12.5px/1.3 var(--game-font); color: #ffe27a; }
#chat .cmd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(98px, 1fr)); gap: 6px; }
#chat button.cmd-it { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1px; width: auto; min-width: 0; min-height: 46px; height: auto;
	padding: 6px 8px; margin: 0; border-radius: 10px !important; text-align: left; text-shadow: none; color: #fff !important; background: rgba(255, 255, 255, 0.08) !important;
	border: 1px solid rgba(255, 255, 255, 0.16) !important; box-shadow: none !important; clip-path: none !important; }
#chat button.cmd-it:active { background: rgba(255, 255, 255, 0.22) !important; }
#chat button.cmd-it b { max-width: calc(100% - 14px); word-break: break-all; font: 700 12.5px/1.25 ui-monospace, Menlo, Consolas, monospace; color: #9fd1ff; }
#chat button.cmd-it span { font: 500 12px/1.25 var(--game-font); color: #e8ecff; overflow-wrap: anywhere; }
#chat button.cmd-it.sure b { color: #ffb8a3; }
#chat button.cmd-it .cmd-more { position: absolute; right: 7px; top: 4px; font-style: normal; font-weight: 700; color: #b9c0dc; }
#chat button.cmd-it .cmd-st { position: absolute; right: 5px; top: 5px; padding: 0 5px; border-radius: 7px; font: 700 10px/15px var(--game-font); font-style: normal; color: #ddd; background: #5a5f73; }
#chat button.cmd-it .cmd-st.on { color: #fff; background: #2fbf71; }
#chat button.cmd-it.set b { max-width: calc(100% - 36px); }
#chat .cmd-wait { margin: 0; padding: 14px; text-align: center; font-size: 13px; color: #c9cfe6; }
#chat .cmd-subhd { display: flex; align-items: center; gap: 8px; margin: 6px 0 8px; color: #fff; font-size: 13px; }
#chat button.cmd-back { flex: none; height: 30px; min-height: 30px; padding: 0 12px; border-radius: 9px !important; color: #fff !important; background: rgba(255, 255, 255, 0.14) !important; border: 1px solid rgba(255, 255, 255, 0.3) !important; }
