/* GAME-MS V19.1: dropdown-only patch, layered after V19. No server/card changes. */
/* Stop legacy bright-lime hover/selected rules on custom map/mode/sort/status menus. */
body:has(.gm-home) .gm18-picker .gm18-menu,
body:has(.gm-home) .gm18-picker .gm18-menu:hover {
  background:#111e24!important; background-image:none!important;
  overflow-x:hidden!important; overflow-y:auto!important;
  scrollbar-width:thin; scrollbar-color:#42545c #111e24;
}
body:has(.gm-home) .gm18-picker .gm18-menu .gm18-option,
body:has(.gm-home) .gm18-picker .gm18-menu .gm18-option:hover,
body:has(.gm-home) .gm18-picker .gm18-menu .gm18-option:focus,
body:has(.gm-home) .gm18-picker .gm18-menu .gm18-option:focus-visible,
body:has(.gm-home) .gm18-picker .gm18-menu .gm18-option[aria-selected="true"] {
  background:#15252b!important; background-color:#15252b!important;
  background-image:none!important; color:#e8f1f4!important;
  -webkit-text-fill-color:#e8f1f4!important;
  border:0!important; box-shadow:none!important;
  filter:none!important; text-shadow:none!important;
  font-weight:500!important; transform:none!important;
  width:100%!important; min-width:0!important; max-width:100%!important;
  margin:0!important; padding:9px 10px!important;
  box-sizing:border-box!important; border-radius:6px!important;
  display:flex!important; align-items:center!important; gap:10px!important;
  white-space:normal!important; overflow-wrap:anywhere!important;
  min-height:39px!important; height:auto!important;
}
body:has(.gm-home) .gm18-picker .gm18-menu .gm18-option:hover,
body:has(.gm-home) .gm18-picker .gm18-menu .gm18-option:focus-visible {
  background:#20353a!important; background-color:#20353a!important;
}
body:has(.gm-home) .gm18-picker .gm18-menu .gm18-option[aria-selected="true"] {
  background:#1c3330!important; background-color:#1c3330!important;
  color:#b7f43c!important; -webkit-text-fill-color:#b7f43c!important;
}
body:has(.gm-home) .gm18-picker .gm18-menu .gm18-option .gm18-icon {
  flex:0 0 18px!important; width:18px!important; height:18px!important;
  background-color:transparent!important;
}
/* Sorting toolbar: reserve enough space for icon + full labels + arrow. */
body:has(.gm-home) .gm-v5-list-tools > label:has(.gm18-picker) {
  flex:0 0 auto!important; min-width:0!important;
}
body:has(.gm-home) .gm-v5-list-tools .gm18-picker-sort {
  width:190px!important; min-width:190px!important;
}
body:has(.gm-home) .gm-v5-list-tools .gm18-picker-status {
  width:175px!important; min-width:175px!important;
}
body:has(.gm-home) .gm-v5-list-tools .gm18-picker .gm18-trigger {
  width:100%!important; min-width:0!important;
}
body:has(.gm-home) .gm-v5-list-tools .gm18-picker .gm18-menu {
  width:100%!important; min-width:100%!important; max-width:100%!important;
}
body:has(.gm-home) .gm-v5-list-tools .gm18-picker .gm18-label {
  flex:1 1 auto!important; min-width:0!important;
  overflow:hidden!important; text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
/* Country menu keeps the same dark selection language. */
body:has(.gm-home) .gm-v15-country-wrap .gm-v15-country-menu .gm-v15-country-option:hover {
  background:#20353a!important; color:#e8f1f4!important;
}
body:has(.gm-home) .gm-v15-country-wrap .gm-v15-country-menu .gm-v15-country-option.selected {
  background:#1c3330!important; color:#b7f43c!important;
}
@media(max-width:900px){
 body:has(.gm-home) .gm-v5-list-tools{flex-wrap:wrap!important}
 body:has(.gm-home) .gm-v5-list-tools .gm18-picker-sort{width:180px!important;min-width:180px!important}
 body:has(.gm-home) .gm-v5-list-tools .gm18-picker-status{width:175px!important;min-width:175px!important}
}
