/* PC lobby utilities: readable labels and the existing footer icon family.
   Keep current targets/handlers, mobile navigation and game settings intact. */
.lobby-tool-label164{display:none}
@media(min-width:1200px){
 body[data-view=lobby]>.app-header>.desktop-tools{gap:6px}
 body[data-view=lobby]>.app-header>.desktop-tools>button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  width:auto;
  min-width:84px;
  height:40px;
  padding:0 10px;
  border:1px solid transparent;
  border-radius:4px;
  color:#d2d2d6;
  background:transparent;
  font-size:13px;
  font-weight:400;
  line-height:1.25;
  white-space:nowrap;
 }
 body[data-view=lobby]>.app-header>.desktop-tools>button>.lobby-tool-label164{display:block}
 body[data-view=lobby]>.app-header>.desktop-tools>button>svg{display:none}
 body[data-view=lobby]>.app-header>.desktop-tools>button::before{
  content:'';
  display:block;
  flex:none;
  width:21px;
  height:21px;
  background:currentColor;
  -webkit-mask:var(--lobby-tool-icon164) center / contain no-repeat;
  mask:var(--lobby-tool-icon164) center / contain no-repeat;
  filter:none;
 }
 body[data-view=lobby]>.app-header>.desktop-tools>[data-lobby-runtime-panel=settings]{--lobby-tool-icon164:url('./lobby-nav99/settings.svg')}
 body[data-view=lobby]>.app-header>.desktop-tools>[data-lobby-runtime-panel=fairness]{--lobby-tool-icon164:url('./lobby-nav99/fairness.svg')}
 body[data-view=lobby]>.app-header>.desktop-tools>[data-lobby-runtime-panel=games]{--lobby-tool-icon164:url('./lobby-nav99/feedback.svg')}
 body[data-view=lobby]>.app-header>.desktop-tools>button:focus-visible{
  outline:2px solid #d5b475;
  outline-offset:2px;
 }
 @media(hover:hover){
  body[data-view=lobby]>.app-header>.desktop-tools>button:hover{
   background:#ffffff0b;
   border-color:#ffffff12;
   color:#fff;
  }
 }
 /* Inset + auto margins leave transform free for the approved slide/scrim
    controller, including reversal while opening or closing. */
 body[data-view=lobby] dialog#lobby-panel-dialog,
 body[data-view=lobby] dialog#settings-dialog[data-settings-context=lobby]{
  position:fixed;
  inset:0;
  margin:auto;
  width:min(560px,calc(100vw - 64px));
  max-width:calc(100vw - 64px);
  max-height:calc(var(--lobby-visual-height,100dvh) - 64px);
  padding-bottom:0;
 }
 body[data-view=lobby] dialog#lobby-panel-dialog{
  height:min(calc(var(--app-height,100dvh) * .654),650px,calc(var(--lobby-visual-height,100dvh) - 64px));
 }
 body[data-view=lobby] dialog#lobby-panel-dialog[data-wallet119=true]{
  height:min(90dvh,900px,calc(var(--lobby-visual-height,100dvh) - 64px));
 }
 body[data-view=lobby] dialog#lobby-panel-dialog:has(.lobby-runtime-fairness),
 body[data-view=lobby] dialog#settings-dialog[data-settings-context=lobby]{height:fit-content}
 body[data-view=lobby] dialog#lobby-panel-dialog .lobby-panel-frame52{max-height:inherit}
 body[data-view=lobby] dialog#lobby-panel-dialog #lobby-panel-content{min-height:0;overflow-y:auto}
 body[data-view=lobby] dialog#settings-dialog[data-settings-context=lobby] #settings-content{
  max-height:calc(var(--lobby-visual-height,100dvh) - 64px);
  overflow-y:auto;
  overscroll-behavior:contain;
 }
}
