/* Remake-style refinements. Base blue-grey theme lives in starwars-ui.css and
   lobby.css. This layer changes density, not the established visual identity. */
#sw48-lobby {grid-template-columns:clamp(220px,21vw,280px) minmax(0,1fr);}
.lobby-sidebar {padding:34px 24px 26px;}
#sw48-lobby .lobby-brand-button {max-width:220px;margin:0 auto;padding-bottom:24px;}
.lobby-nav {gap:8px;}
#sw48-lobby .lobby-nav-item {min-height:52px;padding:14px 15px;font-size:18px;gap:10px;transition:color .16s,background .16s,border-color .16s;}
.lobby-nav-number {display:none;}
.lobby-nav-arrow {font-size:18px;}
/* Faction colours stay on emblems; navigation uses cool blue-white. */
.lobby-modes {max-width:1050px;padding:32px clamp(20px,4vw,58px);}
.mode-categories {justify-content:flex-start;gap:12px;padding-bottom:16px;}
#sw48-lobby .mode-category {width:156px;min-height:44px;padding:10px 16px;font-size:14px;border-radius:2px;}
.mode-grid {grid-template-columns:repeat(3,minmax(0,245px));gap:22px;justify-content:start;margin:46px 0 24px;}
.mode-art {height:clamp(190px,28vh,260px);}
.faction-composite {width:68%;}
.mode-card-footer {min-height:48px;padding:10px 12px;}
.mode-title {font-size:17px;font-weight:500;letter-spacing:0;}
.mode-arrow {font-size:18px;}
.mode-unavailable {font-size:11px;}
.mode-question {font-size:80px;}
.mode-callsign-content {padding:12px;gap:9px;}
#sw48-lobby .mode-start {letter-spacing:0;}
/* Open settings rows and thin separators; no raised metal housings. */
.lobby-page {padding:30px clamp(20px,4vw,60px);}
#sw48-lobby .lobby-page h1 {font-size:26px;font-weight:500;margin-bottom:24px;}
.lobby-settings {max-width:800px;}
.lobby-setting-group {padding:16px 0;margin-bottom:10px;}
.lobby-settings :is(h2,h3) {font-size:13px;margin-bottom:10px;color:#a4becf;}
.lobby-setting-row {min-height:42px;gap:16px;font-size:14px;}
.sw48-menu-tabs {gap:26px;margin-bottom:22px;}
body.sw48-ui #dialog_frame.sw48-menu-dialog #dialog_content {padding:24px 28px;}
body.sw48-ui #dialog_frame.sw48-menu-dialog .sw48-menu-footer {padding:12px 28px;}
.lobby-help-copy {line-height:1.8;}
.lobby-help-copy :is(h1,h2,h3,h4) {font-size:17px!important;padding-top:15px;}
.lobby-help-links {margin-top:20px;padding-top:12px;}
/* Keep HUD anchors and the original weapon bar. */
body.sw48-ui #upgrade {border:1px solid #566f8390!important;border-top-color:#92b5cb!important;border-radius:2px!important;background:linear-gradient(145deg,#172536ed,#0b141fed)!important;box-shadow:0 2px 8px #0004!important;}
body.sw48-ui #upgrade h2 {font-size:16px;line-height:1.4;color:#dceaf4!important;}
body.sw48-ui #upgrade .sw48-ship-card:hover {border-color:#9dc7de!important;background:#1c2c3a!important;}
body.sw48-ui .sw48-gear {background:#0d1823a6;border:1px solid #668ba14d;}
@media(max-width:1100px) and (min-width:761px) {
 #sw48-lobby {grid-template-columns:200px minmax(0,1fr);}
 .lobby-sidebar {padding:24px 16px;}
 .mode-grid {gap:14px;}
 .mode-title {font-size:15px;}
}
@media(max-width:760px) {
 .lobby-sidebar {padding:12px 12px 0;}
 #sw48-lobby .lobby-brand-button {max-width:150px!important;padding:0 0 8px;margin:0 0 8px;min-height:0;}
 .lobby-nav {gap:4px;padding-bottom:8px;}
 #sw48-lobby .lobby-nav-item {font-size:14px;min-height:44px;padding:10px 6px;gap:5px;}
 .lobby-modes,.lobby-page {padding:18px 14px;padding-bottom:calc(24px + env(safe-area-inset-bottom));}
 .mode-categories {gap:6px;}
 #sw48-lobby .mode-category {min-height:44px;width:145px;}
 .mode-grid {grid-template-columns:repeat(2,minmax(0,245px));justify-content:center;gap:16px;margin-top:24px;}
 .mode-art {height:200px;}
 .lobby-setting-row {min-height:48px;}
 .sw48-menu-tabs {gap:22px;}
 body.sw48-ui :is(#dialog_frame,#sw48-lobby) .sw48-menu-tabs .sw48-menu-tab {min-height:44px;display:inline-flex;align-items:center;}
 body.sw48-ui #dialog_frame.sw48-menu-dialog #dialog_content {padding:22px 16px;}
 body.sw48-ui #dialog_frame.sw48-menu-dialog .sw48-menu-footer {padding:12px 16px;}
}
@media(max-width:500px) {
 .mode-grid {grid-template-columns:minmax(0,260px);}
 .mode-art {height:200px;}
}
@media(max-height:500px) and (min-width:700px) {
 #sw48-lobby {display:grid;grid-template-columns:170px minmax(0,1fr);}
 .lobby-sidebar {padding:14px 12px;border-right:1px solid #b4d5ed22;border-bottom:0;}
 .lobby-nav {flex-direction:column;margin:auto 0;gap:5px;}
 #sw48-lobby .lobby-nav-item {font-size:14px;padding:8px;min-height:44px;justify-content:flex-start;}
 #sw48-lobby .lobby-brand-button {max-width:130px!important;margin:0 auto;padding-bottom:10px;}
 .mode-categories {padding-bottom:8px;}
 .mode-grid {grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:12px;}
 .mode-art {height:110px;}
 .mode-title {font-size:14px;}
 .mode-card-footer {padding:8px;}
 .lobby-modes,.lobby-page {padding:14px;}
}
@media(prefers-reduced-motion:reduce) {#sw48-lobby .lobby-nav-item {transition:none;}}
