/* Dropdowns (dropdown.mjs): the owner's dropdown bar (CommonDropdown2x, qa/prepare-ui-kit-art.py) in its normal,
   mouse-over, open and disabled states, and the bordered menu box its list opens in. The bars are 184 x 41 art pixels,
   sliced 12 px on the left, top and bottom and 34 px on the right, where the arrow is; --wb-dd-h sets the height and
   every slice scales with it. The :is(#wb-dd…) clause outranks the older per-dialog select and button rules. */
:root{
 --wb-dd-normal:url('./skin/ui-kit/dropdown-normal.png?art=cfbdb2d845e48537');
 --wb-dd-hover:url('./skin/ui-kit/dropdown-hover.png?art=07097876e5b3be1d');
 --wb-dd-pressed:url('./skin/ui-kit/dropdown-pressed.png?art=6ea97d2f352d4975');
 --wb-dd-disabled:url('./skin/ui-kit/dropdown-disabled.png?art=9a33c8b76905aa68');
 --wb-dd-menu:url('./skin/ui-kit/dropdown-menu.png?art=77f5c4438295d4e6');
 --wb-dd-caret:url('./skin/ui-kit/arrow-down.png?art=038888376ae20d00');
}
.wb-dd{--wb-dd-h:32px;position:relative;display:inline-flex;vertical-align:middle;min-width:0;max-width:100%}
.wb-dd[hidden]{display:none!important}
.wb-dd>select.wb-dd-native{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;
 margin:0!important;padding:0!important;border:0!important;opacity:0!important;pointer-events:none!important;appearance:none}
.wb-dd>button.wb-dd-button:is(#wb-dd#wb-dd#wb-dd,.wb-dd-button){
 --wb-dd-art:var(--wb-dd-normal);--u:calc(var(--wb-dd-h) / 41);
 position:relative;display:flex;align-items:center;flex:1;width:100%;min-width:var(--wb-dd-min,128px);height:var(--wb-dd-h);min-height:0!important;
 box-sizing:border-box;margin:0;padding:0 4px 0 7px!important;border:0 solid transparent!important;border-radius:0!important;
 border-image:var(--wb-dd-art) 12 34 12 12 fill / calc(12 * var(--u)) calc(34 * var(--u)) calc(12 * var(--u)) calc(12 * var(--u)) stretch!important;
 background:none!important;box-shadow:none!important;outline:0!important;cursor:pointer;
 color:#f3e6c4!important;font:13px/1.2 WarbandFriz,Georgia,serif!important;letter-spacing:.02em;text-align:left;text-shadow:0 1px 1px #000,0 0 3px #000!important;
}
.wb-dd>button.wb-dd-button:is(#wb-dd#wb-dd#wb-dd,.wb-dd-button):is(:hover,:focus-visible):not(:disabled){--wb-dd-art:var(--wb-dd-hover);color:#fff6dc!important}
.wb-dd.is-open>button.wb-dd-button:is(#wb-dd#wb-dd#wb-dd,.wb-dd-button){--wb-dd-art:var(--wb-dd-pressed)}
.wb-dd>button.wb-dd-button:is(#wb-dd#wb-dd#wb-dd,.wb-dd-button):disabled{--wb-dd-art:var(--wb-dd-disabled);color:#8f8a80!important;cursor:default;opacity:1}
.wb-dd>button.wb-dd-button:is(#wb-dd#wb-dd#wb-dd,.wb-dd-button):active{translate:none;padding:0 4px 0 7px!important}
/* Keyboard focus: the mouse-over art plus a soft gold glow (the art has no room for an outline). */
.wb-dd>button.wb-dd-button:is(#wb-dd#wb-dd#wb-dd,.wb-dd-button):focus-visible{filter:drop-shadow(0 0 3px #f2c75caa)}
.wb-dd-value{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* The list: the owner's bordered menu box, under the bar (or above it when there is no room below). It opens inside the
   nearest modal dialog, and #wb-lobby is a click-through layer (pointer-events:none, only its cards take input), so the
   list takes pointer input itself; otherwise clicks and taps fall through to the panel below and close it. */
.wb-dd-list{position:fixed;z-index:9000;pointer-events:auto;box-sizing:border-box;margin:0;padding:2px;list-style:none;max-width:min(360px,calc(100vw - 8px));max-height:min(320px,60vh);overflow-y:auto;
 border:12px solid transparent;border-image:var(--wb-dd-menu) 24 fill / 12px stretch;filter:drop-shadow(0 8px 16px #000b);
 color:#f3e6c4;font:13px/1.2 WarbandFriz,Georgia,serif;text-shadow:0 1px 1px #000;scrollbar-width:thin;scrollbar-color:#6b5a3c transparent}
.wb-dd-list[hidden]{display:none}
.wb-dd-list [role=option]{padding:6px 10px;border-radius:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}
.wb-dd-list [role=option][aria-selected=true]{color:#ffd100}
.wb-dd-list [role=option].is-active{background:linear-gradient(90deg,#f2c75c38,#f2c75c0a);color:#fff6dc}
.wb-dd-list [role=option][aria-selected=true].is-active{color:#ffe36a}
.wb-dd-list [role=option][aria-disabled=true]{color:#6f6758;cursor:default}
/* Where each dropdown sits: the old select's width and height. */
#wb-match-lobbies :is(.wb-rooms-field,.wb-room-options) .wb-dd,#wb-graphics-options .wb-graphics-row .wb-dd,.wb-survival-setup .wb-dd{display:flex;width:100%}
#wb-match-lobbies .wb-rooms-field .wb-dd{--wb-dd-h:44px}
#wb-match-lobbies .wb-room-options .wb-dd{flex:1;--wb-dd-h:36px}
.wb-ach-cosmetics .wb-dd{width:190px;max-width:100%}
.wb-leaderboard-frame .wb-dd{--wb-dd-h:38px}
#wb-card-panel .wb-dd,#wb-ui .wb-panel-card .wb-dd{--wb-dd-h:28px;--wb-dd-min:110px}
.wb-mobile-training .wb-dd{--wb-dd-min:135px}
:is(.wb-touch-input,.wb-mobile-layout) .wb-dd{--wb-dd-h:44px}
:is(.wb-touch-input,.wb-mobile-layout) .wb-dd-list [role=option]{padding:12px 12px}
@media(max-width:560px){.wb-ach-cosmetics .wb-dd{flex:1;width:auto}}
/* The account menu is a dropdown too: the same menu box and rows, and the small yellow down arrow on its trigger. */
#wb-lobby#wb-lobby .wb-account-secondary{min-width:190px;padding:2px;border:12px solid transparent;border-image:var(--wb-dd-menu) 24 fill / 12px stretch;background:none;box-shadow:none;filter:drop-shadow(0 8px 16px #000b)}
#wb-lobby#wb-lobby #wb-account-secondary :is(button,a){padding:7px 10px!important;border-radius:2px;color:#f3e6c4!important;font:13px/1.2 WarbandFriz,Georgia,serif!important;text-shadow:0 1px 1px #000}
#wb-lobby#wb-lobby #wb-account-secondary :is(button,a):is(:hover,:focus-visible){background:linear-gradient(90deg,#f2c75c38,#f2c75c0a)!important;outline:0;color:#fff6dc!important}
.wb-account-caret{flex:none;width:13px;height:6px;background:var(--wb-dd-caret) center/contain no-repeat;transition:transform .12s ease-out}
.wb-account-trigger[aria-expanded=true] .wb-account-caret{transform:rotate(180deg)}
/* A choice's note (dropdown.mjs data-tip), beside the open list in the same menu box. */
.wb-dd-tip{position:fixed;z-index:9001;pointer-events:none;box-sizing:border-box;max-width:min(280px,calc(100vw - 8px));padding:4px 6px;
 border:12px solid transparent;border-image:var(--wb-dd-menu) 24 fill / 12px stretch;filter:drop-shadow(0 8px 16px #000b);
 color:#ffd36b;font:13px/1.35 WarbandFriz,Georgia,serif;text-shadow:0 1px 1px #000;white-space:normal}
.wb-dd-tip[hidden]{display:none}
