select.game-select-native{display:none!important}
button.game-select{display:flex!important;align-items:center;justify-content:space-between;gap:16px;box-sizing:border-box;min-height:44px;width:100%;min-width:0;max-width:100%;margin:0;padding:10px 13px!important;border:1px solid var(--cl-line,#496354)!important;border-radius:10px!important;background:var(--cl-input,#182e25)!important;color:var(--cl-ink,#f4f3e7)!important;font:inherit;text-align:left;line-height:1.35;cursor:pointer;white-space:normal}
button.game-select:after{content:'';flex:0 0 6px;width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);margin:0 2px 4px 0;opacity:.7}
button.game-select[aria-expanded=true]{border-color:#e9c26d!important}
button.game-select:disabled{opacity:.45;cursor:default}
button.game-select:focus-visible{outline:2px solid #ffd05c;outline-offset:2px}
.game-select-popup{display:none;position:fixed;inset:auto;margin:0;padding:6px;box-sizing:border-box;overflow:auto;overscroll-behavior:contain;z-index:10000;border:1px solid #6a8068;border-radius:12px;background:#20392f;color:#f4f3e7;box-shadow:0 12px 32px #0006;font:13px/1.4 system-ui,sans-serif}
.game-select-popup:popover-open,.game-select-popup:not([hidden]){display:block}
.game-select-popup[hidden]{display:none!important}
.game-select-option{display:flex;align-items:center;min-height:42px;padding:10px 12px;box-sizing:border-box;border-radius:7px;cursor:pointer;overflow-wrap:anywhere}
.game-select-option[aria-selected=true]{color:#ffda79;background:#ffd05c12}
.game-select-option[aria-selected=true]:after{content:'✓';margin-left:auto;padding-left:14px}
.game-select-option[data-active=true]{background:#afe2ba20;outline:1px solid #afe2ba35;outline-offset:-1px}
.game-select-option[aria-disabled=true]{opacity:.4;cursor:default}
.game-select-group{padding:12px 12px 5px;font-size:10px;letter-spacing:.09em;text-transform:uppercase;color:#b8cbbd}
.setting-row>button.game-select{grid-column:1/-1}
#menu-root .leaderboard-controls>.game-select{width:100%}

button.game-select[hidden]{display:none!important}

/* Category filters share their row with a growing search field. */
#editor .tray-filters{display:flex;align-items:center;gap:8px;min-width:0}
#editor .tray-filters #palette-search{flex:1 1 0;width:0;min-width:0}
#editor .tray-filters>.game-select{flex:0 1 140px;width:140px;min-width:100px;max-width:42%;white-space:nowrap;overflow:hidden;font-size:12px;gap:8px}

#editor .tray-filters #palette-search{max-width:none}
