/* Review150: extend the existing mobile lobby artwork and navigation through
   the single-column mode. Review147 owns card/grid positions and dimensions;
   the retained two-column PC presentation starts at1200px. */
@media(max-width:1199px){
 body[data-view=lobby] #lobby-view :is(#lobby-stakes,#marble-stakes){
  border:0;
  background:#0e0e0e;
 }
 body[data-view=lobby] #lobby-view .tiers-panel>.list-head{display:none}
 body[data-view=lobby] #lobby-view :is(#lobby-stakes,#marble-stakes) .tier,
 body[data-view=lobby] #lobby-view :is(#lobby-stakes,#marble-stakes) .tier:nth-child(2n){
  border:0;
  background:transparent;
  isolation:isolate;
 }
 body[data-view=lobby] #lobby-view :is(#lobby-stakes,#marble-stakes) .tier::before{
  content:'';
  position:absolute;
  border:var(--lobby-u) solid transparent;
  border-image:url('./fidelity/source-ui/lobby71/white_bg_lobby.png') 1 fill stretch;
  filter:brightness(.12156862745098039);
  pointer-events:none;
  z-index:-1;
 }
 body[data-view=lobby] #lobby-view :is(#lobby-stakes,#marble-stakes) :is(.tier-name,.six,.tier-blind,.tier-buyin small,.mobile-stats){
  font-family:NastyLobbyComplete,Arial,sans-serif;
 }
 body[data-view=lobby] #lobby-view :is(#lobby-stakes,#marble-stakes) .tier-name{font-weight:400;color:#a0a0a0}
 body[data-view=lobby] #lobby-view :is(#lobby-stakes,#marble-stakes) .tier-blind{color:#dadada}
 body[data-view=lobby] #lobby-view :is(#lobby-stakes,#marble-stakes) .tier-buyin{color:#ffd200}
 body[data-view=lobby] #lobby-view :is(#lobby-stakes,#marble-stakes) :is(.tier-blind small,.tier-buyin small){font-weight:400;color:#8d8d8d}
 body[data-view=lobby] #lobby-view :is(#lobby-stakes,#marble-stakes) .blind-number{font-weight:700}
 body[data-view=lobby] #lobby-view :is(#lobby-stakes,#marble-stakes) .buyin-number{
  font-family:NativeLobbyBuyin71,NastyLobbyComplete,Arial,sans-serif;
  font-weight:700;
  letter-spacing:calc(.26 * var(--lobby-u));
 }
 body[data-view=lobby] #lobby-view :is(#lobby-stakes,#marble-stakes) .six{
  position:relative;
  isolation:isolate;
  width:auto;
  border:0;
  border-radius:0;
  background:transparent;
  color:#fff;
 }
 body[data-view=lobby] #lobby-view :is(#lobby-stakes,#marble-stakes) .six::before{
  content:'';
  position:absolute;
  inset:0;
  border:0 solid transparent;
  border-left-width:calc(14 * var(--lobby-u));
  border-right-width:calc(14 * var(--lobby-u));
  border-image:url('./fidelity/source-ui/lobby71/icon-round.png') 0 14 fill stretch;
  filter:url('./fidelity/source-ui/lobby71/tints.svg#six-blue');
  pointer-events:none;
  z-index:-1;
 }
 body[data-view=lobby] #lobby-view :is(#lobby-stakes,#marble-stakes) .room-flag{
  width:calc(25 * var(--lobby-u));
  height:calc(20 * var(--lobby-u));
 }
 body[data-view=lobby] #lobby-view :is(#lobby-stakes,#marble-stakes) .tier-arrow{
  display:block;
  background:none;
  opacity:1;
  filter:brightness(.8);
 }
 body[data-view=lobby] #lobby-view :is(#lobby-stakes,#marble-stakes) .tier-arrow>svg{display:none}
 body[data-view=lobby] #lobby-view :is(#lobby-stakes,#marble-stakes) .mobile-stats{color:#9c9c9e}
 body[data-view=lobby] #lobby-view :is(#lobby-stakes,#marble-stakes) .mobile-stats .count{
  position:relative;
  isolation:isolate;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:calc(57.7 * var(--lobby-u));
  padding:0 calc(12 * var(--lobby-u));
  border:0;
  border-radius:0;
  background:transparent;
 }
 body[data-view=lobby] #lobby-view :is(#lobby-stakes,#marble-stakes) .mobile-stats .count::before{
  content:'';
  position:absolute;
  inset:0;
  border:0 solid transparent;
  border-left-width:calc(12 * var(--lobby-u));
  border-right-width:calc(12 * var(--lobby-u));
  border-image:url('./fidelity/source-ui/lobby71/icon-table-a.png') 0 12 fill stretch;
  pointer-events:none;
  z-index:-1;
 }
 body[data-view=lobby] #lobby-view :is(#lobby-stakes,#marble-stakes) .mobile-stats .players{
  display:inline-flex;
  align-items:center;
  gap:calc(8 * var(--lobby-u));
  color:#35d03c;
 }
 body[data-view=lobby] #lobby-view :is(#lobby-stakes,#marble-stakes) .lobby-player-icon{
  width:calc(13 * var(--lobby-u));
  height:calc(14 * var(--lobby-u));
  background:none;
  mask:none;
  -webkit-mask:none;
 }
 body[data-view=lobby] #lobby-view :is(#lobby-stakes,#marble-stakes) .lobby-player-icon>svg{display:none}
 body[data-view=lobby] #lobby-view :is(#lobby-stakes,#marble-stakes) .lobby-player-icon>img{filter:url('./fidelity/source-ui/lobby71/tints.svg#player-green')}

 /* The same compact header/footer remains present on both sides of900px. */
 body[data-view=lobby]>.app-header{
  width:100%;
  max-width:var(--lobby-one-column-max,780px);
  height:66px;
  margin-left:auto;
  margin-right:auto;
  padding:0 16px;
  gap:10px;
 }
 body[data-view=lobby]>.app-header .lobby-header-logo.wordmark{width:110px;height:42px}
 body[data-view=lobby]>.app-header>.desktop-tools,
 body[data-view=lobby]>.app-header #account-profile{display:none}
 body[data-view=lobby]>.app-header .account{gap:8px}
 body[data-view=lobby]>.app-header .lobby-header-balance{flex-direction:row;align-items:baseline;gap:4px}
 body[data-view=lobby]>.app-header .lobby-header-balance strong{font-size:18px;letter-spacing:-.2px}
 body[data-view=lobby]>.app-header .lobby-header-balance strong>span{font-size:14px}
 body[data-view=lobby]>.app-header .lobby-header-balance .currency{letter-spacing:0}
 body[data-view=lobby]>.app-header #lobby-wallet-open{min-width:62px;height:44px;padding-left:9px;gap:5px}
 body[data-view=lobby]>.app-header #lobby-wallet-open svg{width:21px;height:21px}
 body[data-view=lobby]>.app-header #lobby-wallet-open>span{font-size:12px}

 body[data-view=lobby][data-game] #lobby-view>.game-tab{
  width:calc(100% - 28px);
  max-width:calc(var(--lobby-one-column-max,780px) - 28px);
  height:44px;
  margin:0 auto;
  gap:22px;
 }
 body[data-view=lobby] #lobby-view>.game-tab>button{height:100%;min-width:0;font-size:18px}
 body[data-view=lobby] #lobby-view>.game-tab>.game-rule{font-size:11px}
 body[data-view=lobby][data-lobby-stage=rooms] #lobby-view>.lobby-heading{
  position:relative;
  height:48px;
  justify-content:center;
  gap:8px;
  margin:0 auto;
  padding:0 16px;
 }
 body[data-view=lobby][data-lobby-stage=rooms] #lobby-view>.lobby-heading h1{
  margin:0;
  font-size:20px;
  font-weight:700;
  letter-spacing:-.35px;
  color:#fff;
 }
 body[data-view=lobby][data-lobby-stage=rooms] #lobby-view #lobby-back{position:absolute;left:13px;margin:0}
 body[data-view=lobby] #lobby-view #lobby-back>svg{display:none}
 body[data-view=lobby] #lobby-view #lobby-back::before{
  content:'';
  display:block;
  width:calc(17 * var(--lobby-u));
  height:calc(25 * var(--lobby-u));
  background:url('./fidelity/source-ui/lobby71/icon_back.png') center/100% 100% no-repeat;
 }
 body[data-view=lobby][data-game=holdem] #lobby-view,
 body[data-view=lobby][data-game=marble] #lobby-view:has(#marble-lobby[data-room-view=list]){
  padding-bottom:calc(76px + env(safe-area-inset-bottom,0px));
 }
 body[data-view=lobby] #lobby-view .lobby-bottom-nav{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:5;
  width:100%;
  max-width:var(--lobby-one-column-max,780px);
  margin-left:auto;
  margin-right:auto;
  display:flex;
  align-items:stretch;
  justify-content:space-around;
  height:74px;
  padding:7px 9px max(8px,env(safe-area-inset-bottom));
  background:#0e0e0e;
  border-top:var(--lobby-u) solid #454545;
 }
 body[data-view=lobby] #lobby-view .lobby-bottom-nav button{
  display:flex;
  flex:1;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  min-width:0;
  padding:0;
  gap:6px;
  font-size:12px;
  font-weight:400;
  line-height:1.25;
  white-space:nowrap;
 }
}

/* Keep the already approved extra-narrow header and card wrapping. */
@media(max-width:350px){
 body[data-view=lobby]>.app-header{padding-left:12px;padding-right:12px;gap:6px}
 body[data-view=lobby]>.app-header .lobby-header-logo.wordmark{width:90px}
 body[data-view=lobby]>.app-header .account{gap:6px}
 body[data-view=lobby]>.app-header .lobby-header-balance strong{font-size:16px}
 body[data-view=lobby]>.app-header #lobby-wallet-open{min-width:58px;padding-left:7px;gap:4px}
 body[data-view=lobby]>.app-header #lobby-wallet-open svg{width:20px;height:20px}
 body[data-view=lobby]>.app-header #lobby-wallet-open>span{font-size:11px}
}
