/* Use the same silver glass and chrome surface as the existing dialogs. */
:is(#matchmakingBar,#tournamentSearch){position:fixed;z-index:120;left:50%;bottom:0;translate:-50% 0;display:flex;align-items:center;gap:10px;width:max-content;max-width:calc(100vw - 32px);box-sizing:border-box;padding:7px 12px max(7px,env(safe-area-inset-bottom));font:500 14px/1.25 'Barlow Condensed',sans-serif}
body :is(#matchmakingBar,#tournamentSearch).fbs-popup{border-radius:10px 10px 0 0!important;border-bottom:0!important}
body :is(#matchmakingBar,#tournamentSearch).fbs-popup::after{padding:var(--fcs-rim-notice) var(--fcs-rim-notice) 0}
:is(#matchmakingBar,#tournamentSearch)[hidden],.playing :is(#matchmakingBar,#tournamentSearch){display:none!important}
.search-copy{min-width:0;max-width:310px}.search-copy strong{display:block;font-size:17px;font-weight:600;line-height:1.2}.search-copy small{display:block;font-size:12px;line-height:1.3;margin-top:3px}.search-time{font-size:18px;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
:is(#matchmakingBar,#tournamentSearch) button,#matchmakingCities button{font:600 15px/1.2 'Barlow Condensed',sans-serif;padding:6px 10px;min-height:32px;cursor:pointer;white-space:nowrap}
:is(#matchmakingBar,#tournamentSearch) button[hidden]{display:none}
.search-light{width:9px;height:11px;flex:none;border-radius:0;clip-path:polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%);background:#467f6c;box-shadow:0 0 8px #467f6c55}.search-paused .search-light{background:#976e39;box-shadow:none}
#matchmakingCities{width:min(380px,calc(100vw - 40px));max-height:calc(100dvh - 32px);box-sizing:border-box;padding:20px;font:500 16px/1.35 'Barlow Condensed',sans-serif}
#matchmakingCities h2{margin:0 0 8px;font:600 25px/1.15 'Barlow Condensed',sans-serif;letter-spacing:.01em}
#matchmakingCities p{font:500 16px/1.35 'Barlow Condensed',sans-serif;margin:0 0 14px}
.search-cities{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:30dvh;overflow:auto;font-size:16px}
.search-cities:empty{display:none}.search-cities .search-empty{grid-column:1/-1;font-size:15px}
.search-cities label{display:flex;gap:8px;align-items:center;padding:8px;background:#ffffff30;border:1px solid #ffffff55;border-radius:8px}
.search-cities input{accent-color:#486d5f;width:16px;height:16px;flex:none}
.search-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}
#matchmakingCities button:disabled{opacity:.45;cursor:default}
@media(max-height:450px){:is(#matchmakingBar,#tournamentSearch){bottom:0;padding:6px 9px max(6px,env(safe-area-inset-bottom));gap:8px}.search-copy{max-width:270px}.search-copy strong{font-size:15px}.search-copy small{font-size:11px}.search-time{font-size:16px}:is(#matchmakingBar,#tournamentSearch) button{font-size:14px;padding:5px 9px}#matchmakingCities{padding:16px}#matchmakingCities h2{font-size:23px}}
@media(max-width:650px){:is(#matchmakingBar,#tournamentSearch){gap:6px;max-width:calc(100vw - 20px)}.search-copy{max-width:200px}:is(#matchmakingBar,#tournamentSearch) button{padding:5px 7px}}

.search-cities .search-empty{padding:12px 14px;border:1px solid #ffffffb3;border-radius:9px;background:linear-gradient(145deg,#ffffff55,#bccdd333);box-shadow:inset 0 1px 4px #253c4812;color:#34424b;line-height:1.4}
