/* Logged-in table discovery: keep the banner and available tables together. */
#lobby.sg-active:not(.sg-training)>.hero{height:auto;min-height:0;aspect-ratio:3/1;margin:8px auto 10px}
#lobby.sg-active:not(.sg-training)>.sg-lobby{max-width:none;padding:0 0 20px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 16px}
#lobby .sg-heading{margin:0;align-self:center}
#lobby .sg-heading h1{font-size:22px;line-height:1.25;margin:0}
#lobby .sg-tabs{margin:0;padding:0;border:0;align-items:center;gap:6px}
#lobby .sg-tabs button{min-height:40px;padding:8px 16px;font-size:14px;margin:0}
#lobby .sg-panel,#lobby .sg-tournaments{grid-column:1/-1;min-width:0}
#lobby .sg-filters{padding:10px 12px;gap:8px;border-radius:10px}
#lobby .sg-game-filter{gap:6px;align-items:center}
#lobby .sg-game-filter legend{font-size:13px;margin-bottom:6px}
#lobby .sg-game-filter button{min-height:40px;padding:5px 12px;font-size:14px;margin:0;border-radius:8px}
#lobby .sg-game-filter button img{width:30px;height:25px}
#lobby .sg-table-choices{padding-top:8px;gap:6px}
#lobby .sg-table-choices button{min-height:36px;padding:6px 14px;font-size:14px;margin:0}
#lobby .sg-rooms{margin-top:10px}
#lobby .sg-rooms:empty{display:none}
#lobby .sg-modality{margin-top:12px}
#lobby .sg-modality-heading{gap:10px;margin-bottom:8px}
#lobby .sg-modality-heading img{width:48px;height:38px}
#lobby .sg-modality-heading h2{font-size:19px;line-height:1.25}
#lobby .sg-group-rules{margin:0 0 8px;font-size:13px}
#lobby .sg-modality-cards{padding:2px 2px 8px;gap:12px}
#lobby .sg-card{min-height:190px;padding:14px!important;gap:8px}
#lobby .sg-card h2{font-size:17px;line-height:1.25;min-height:2.5em}
#lobby .sg-card-info{padding:2px 0 6px}
#lobby .sg-card-info strong{font-size:21px}
#lobby .sg-card button{min-height:44px;padding:8px 10px;font-size:14px}
body.client-shell:not(.playing):has(#lobby.sg-active:not([hidden]))>main{padding-top:12px;padding-bottom:16px}
@media(min-width:1024px) and (max-height:800px){
}
@media(max-width:700px){
 #lobby.sg-active:not(.sg-training)>.hero{height:auto;aspect-ratio:3/1;margin-bottom:10px}
 #lobby.sg-active:not(.sg-training)>.sg-lobby{grid-template-columns:1fr;gap:10px}
 #lobby .sg-heading h1{font-size:20px}
 #lobby .sg-tabs{justify-content:flex-start}
 #lobby .sg-tabs button{flex:0 0 auto;min-height:44px}
 #lobby .sg-game-filter button{min-height:44px;padding:6px 10px}
 #lobby .sg-table-choices button{min-height:44px}
 #lobby .sg-card{min-height:190px}
 #lobby .sg-modality-heading h2{font-size:17px}
}

/* One modality row; its table options always sit below it. */
#lobby .sg-filters{display:flex;flex-direction:column;align-items:stretch}
#lobby .sg-game-filter{flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;padding-bottom:2px;scrollbar-width:thin}
#lobby .sg-game-filter button{flex:0 0 auto;white-space:nowrap}
#lobby .sg-table-choices{justify-content:flex-start}
#lobby .sg-card>small{margin:0;line-height:1.35}
#lobby .sg-card>strong{font-size:18px;line-height:1.35;min-height:2.7em}
#lobby .sg-card>button{position:relative;z-index:1}
#lobby .sg-tabs button,#lobby .sg-game-filter button,#lobby .sg-table-choices button,#lobby .sg-card button{box-sizing:border-box}
#lobby .sg-card button{margin: auto 0 0}
/* The group heading already identifies the Poker variant and table size. */
#lobby .sg-card:has(>strong)>small{display:none}
#lobby .sg-card{gap:6px}
#lobby .sg-tabs button small{display:none}
#lobby .sg-table-choices button{flex:0 0 auto}
#lobby .sg-game-filter legend{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
#lobby .sg-card h2{min-height:2.5em}
#lobby .sg-modality-heading{margin-bottom:4px}
#lobby .sg-modality{margin-top:8px}

/* Navigation starts at the left, without a redundant introductory heading. */
#lobby .sg-heading{display:none}
#lobby .sg-tabs{grid-column:1/-1;justify-self:start;justify-content:flex-start}
