/* Меню гейм-мастера (client/gm.js) */
#gmBtn { position: fixed; top: 8px; left: 8px; z-index: 8; padding: 4px 12px; font-size: 14px; color: #4db8ff; border-color: #2b6a94; }
#gmBtn[hidden] { display: none; }
#gmPanel { position: fixed; top: 50px; left: 8px; width: min(520px, calc(100vw - 16px)); max-height: calc(100vh - 70px); display: flex; flex-direction: column; z-index: 9; padding: 12px 12px 8px; }
#gmPanel[hidden] { display: none; }
#gmPanel h3 { margin: 0 0 8px; color: #4db8ff; font-size: 17px; }
#gmPanel h4 { margin: 10px 0 5px; font-size: 13px; color: var(--gold-hi); }
#gmTabs { display: flex; gap: 4px; margin-bottom: 8px; }
#gmTabs button { flex: 1; padding: 7px 4px; font-size: 14px; }
#gmTabs button.on, #gmPanel button.on { border-color: #4db8ff; color: #bfe6ff; background: linear-gradient(180deg, #27455c, #14232e); }
#gmBody { overflow-y: auto; flex: 1; min-height: 120px; padding-right: 2px; }
#gmBody input, #gmBody select { width: 100%; min-width: 0; margin-bottom: 4px; font: 600 14px var(--serif); color: var(--text); background: rgba(8, 6, 5, 0.85); border: 1px solid var(--bronze); padding: 6px 8px; }
.gmRow { display: flex; gap: 5px; align-items: flex-start; flex-wrap: wrap; }
.gmRow input, .gmRow select { flex: 1 1 110px; width: auto; }
.gmActs { display: flex; flex-wrap: wrap; gap: 5px; margin: 6px 0; }
.gmActs button, .gmRow button { padding: 6px 10px; font-size: 13px; }
.gmGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 5px; }
.gmPlace, .gmPlayer { display: flex; flex-direction: column; align-items: flex-start; text-align: left; width: 100%; padding: 6px 8px; }
.gmPlace small, .gmPlayer small, .gmItem small { opacity: 0.7; font-size: 11px; font-weight: 500; }
.gmPlayer { margin-bottom: 3px; }
.gmMark { display: flex; gap: 2px; } .gmMark .gmPlace { flex: 1; } .gmMark button:last-child { padding: 2px 8px; }
#gmPlList { max-height: 190px; overflow-y: auto; margin-bottom: 6px; }
.gmHint { color: var(--muted); font-size: 12px; margin: 4px 0; }
.gmItem { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 13px; padding: 3px 0; border-bottom: 1px solid rgba(160, 120, 70, 0.15); }
.gmInspect { font-size: 12px; margin-top: 8px; padding: 6px; background: rgba(0, 0, 0, 0.35); max-height: 220px; overflow-y: auto; }
.gmStats { color: var(--muted); }
.gmLog { font-size: 11px; max-height: 180px; overflow-y: auto; margin-top: 8px; }
.gmLogRow { padding: 2px 0; border-bottom: 1px solid rgba(160, 120, 70, 0.12); }
#gmStatus { min-height: 20px; font-size: 13px; padding-top: 6px; border-top: 1px solid rgba(160, 120, 70, 0.25); margin-top: 6px; }
#announce { position: fixed; top: 64px; left: 50%; transform: translateX(-50%); z-index: 30; max-width: min(640px, calc(100vw - 24px)); padding: 10px 22px; text-align: center;
  font: 700 18px var(--title); color: #ffe27a; background: rgba(20, 14, 8, 0.92); border: 1px solid var(--gold); box-shadow: 0 0 24px rgba(255, 200, 80, 0.35); opacity: 0; pointer-events: none; transition: opacity 0.4s; }
#announce.show { opacity: 1; }
@media (max-width: 760px) {
  #gmBtn { top: 56px; padding: 8px 14px; }
  #gmPanel { top: 8px; left: 8px; max-height: calc(100vh - 16px); }
  #gmTabs button, #gmPanel .gmActs button, #gmPanel .gmRow button { min-height: 44px; }
  #gmBody input, #gmBody select { min-height: 42px; font-size: 16px; }
}
