/* Game settings menu (public/js/game-menu.js). Sizes and colours from Stake's, measured with the re kit
   (research/re/stake/20261122-014639-page-7abe, dump stake-settings-open): 143 px wide, #213545, radius 8, the tooltip
   shadow, a 12 px padded volume row, 8 px gap, 48 px rows (12 px padding, 20 px icon, 8 px gap, 16/600 text), 4 px at the
   bottom; a row that is on = #3e586c with a 10% dark layer and white text + icon; off = #213545, icon #a1bfd6. */
.gm-menu { position: fixed; z-index: 1600; width: 143px; padding: 12px 0 4px; box-sizing: border-box; border-radius: 8px; background: #213545;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,.2), 0 4px 6px -2px rgba(0,0,0,.1); color: #ecf3f9; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
.gm-vol { display: flex; align-items: center; gap: 8px; height: 20.8px; padding: 0 12px; margin-bottom: 8px; }
.gm-menu:has([data-gm="minesQuickSelection"]) { width: max-content; min-width: 143px; }
.gm-spk { width: 20px; height: 20.8px; flex: none; padding: 0; border: 0; border-radius: 4px; background: none; color: #ecf3f9; cursor: pointer; display: grid; place-items: center; }
.gm-spk svg { width: 20px; height: 20px; }
.gm-range { -webkit-appearance: none; appearance: none; flex: 1; min-width: 0; height: 20.8px; margin: 0; background: transparent; cursor: pointer; --gm-fill: 100%; }
.gm-range::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, #1475e1 var(--gm-fill), #2f4553 var(--gm-fill)); }
.gm-range::-moz-range-track { height: 4px; border-radius: 4px; background: #2f4553; }
.gm-range::-moz-range-progress { height: 4px; border-radius: 4px; background: #1475e1; }
.gm-range::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%; background: #fff; border: 3px solid #1475e1; box-sizing: border-box; }
.gm-range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid #1475e1; box-sizing: border-box; }
.gm-row { display: flex; align-items: center; gap: 8px; width: 100%; height: 48px; padding: 12px; box-sizing: border-box; border: 0; border-radius: 0; background: #213545;
  color: #ecf3f9; font: 600 16px var(--font); line-height: 24px; text-align: left; white-space: nowrap; cursor: pointer; }
.gm-row svg { width: 20px; height: 20px; flex: none; color: #a1bfd6; }
.gm-row:hover { background: #2a4153; }
.gm-row.is-on { background: #3e586c linear-gradient(rgba(7,24,36,.1), rgba(7,24,36,.1)); color: #fff; }
.gm-row.is-on svg { color: #ecf3f9; }
.gm-row:focus-visible, .gm-spk:focus-visible { outline: 2px solid #1475e1; outline-offset: -2px; }

/* Game Info / Hotkeys windows: the Fairness window's look (fair-modal.css), two tabs sized to their text */
.gm-layer .fm-title svg { width: 20px; height: 20px; stroke: none; color: var(--label); }
.gm-tabs { display: inline-grid; justify-self: center; align-self: center; margin-left: auto; margin-right: auto; }
.gm-layer .fm-main { display: flex; flex-direction: column; }
.gm-tabs button { padding: 10px 20px; }
.gm-rules { margin: 0; padding-left: 20px; color: var(--label); font: 400 16px var(--font); line-height: 24px; display: flex; flex-direction: column; gap: 4px; }
.gm-limits { display: flex; flex-direction: column; gap: 8px; }
.gm-lim { display: flex; align-items: center; justify-content: space-between; height: 44px; padding: 0 12px; border-radius: 8px; background: var(--surface-2); }
.gm-lim > span { color: var(--label); font: 600 14px var(--font); }
.gm-lim b { display: inline-flex; align-items: center; gap: 4px; color: var(--text); font: 600 16px var(--font-num); }
.gm-keys { display: flex; flex-direction: column; gap: 8px; }
.gm-key { display: flex; align-items: center; gap: 12px; color: var(--label); font: 400 16px var(--font); }
.gm-key kbd { min-width: 64px; height: 32px; padding: 0 10px; box-sizing: border-box; display: inline-grid; place-items: center; border-radius: 6px; background: var(--surface-3);
  color: var(--text); font: 600 14px var(--font); }
.gm-hk { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; padding: 12px; border-radius: 8px; background: var(--surface-2); color: var(--text); font: 600 16px var(--font); cursor: pointer; }
/* Stake's gear stays plain while its menu is open (only the menu shows it is open) */
.bar-btn[data-panel="settings"][aria-expanded="true"]:not(:hover) { background: transparent; }
.bar-btn[data-panel="settings"][aria-expanded="true"] { color: var(--muted); }

@media (max-height: 380px) { .gm-menu .gm-row { height: 42px; padding-block: 8px; } }
