#sw48-lobby {position:fixed;inset:0;z-index:6;display:grid;grid-template-columns:clamp(220px,24vw,350px) minmax(0,1fr);box-sizing:border-box;pointer-events:auto;background:transparent;color:#e1e8ef;font:16px/1.6 'Segoe UI','Microsoft YaHei',sans-serif;overflow:hidden;}
#sw48-lobby * {box-sizing:border-box;}
#sw48-lobby [hidden] {display:none!important;}
body:has(#dialog_frame) #sw48-lobby {visibility:hidden;pointer-events:none;}
.lobby-sidebar {position:relative;z-index:2;display:flex;flex-direction:column;min-height:0;border-right:1px solid #b4d5ed22;padding:clamp(24px,5vh,60px) clamp(20px,3vw,48px);background:linear-gradient(115deg,#101822,#070c14 80%);}
#sw48-lobby .lobby-brand-button {display:block;width:100%;max-width:250px;border:0;border-radius:0;background:none;padding:0;cursor:pointer;box-shadow:none;}
.lobby-brand-button svg g {stroke:#d9e4ee;}
.lobby-brand-button svg path[fill="#FFE81F"] {fill:#d9e4ee;}
.lobby-brand-button svg path[fill="#050914"] {fill:transparent;}
.lobby-nav {display:flex;flex-direction:column;gap:14px;margin:auto 0;}
#sw48-lobby .lobby-nav-item {width:100%;display:flex;gap:15px;align-items:center;padding:22px 12px;background:transparent;color:#90a0b0;border:1px solid transparent;border-left:2px solid #607c8e35;border-radius:0;box-shadow:none;text-align:left;font:500 clamp(18px,2vw,25px)/1.3 'Segoe UI','Microsoft YaHei',sans-serif;cursor:pointer;transition:background .15s,color .15s;}
#sw48-lobby .lobby-nav-item:hover {color:#edf6ff;background:#bfdfff09;}
#sw48-lobby .lobby-nav-item.selected {color:#e3f3ff;border-left-color:#a9d9ef;background:linear-gradient(90deg,#729db529,transparent);}
.lobby-nav-number {font:11px 'Consolas',monospace;opacity:.55;letter-spacing:.1em;}
.lobby-nav-arrow {margin-left:auto;color:#b2d8ea;opacity:0;font-size:24px;}
.selected .lobby-nav-arrow {opacity:1;}
.lobby-content {min-width:0;min-height:0;position:relative;overflow-y:auto;overflow-x:hidden;background:radial-gradient(ellipse at 70% 15%,#1d344329,transparent 65%);scrollbar-color:#426074 #0d1721;}
.lobby-home {position:absolute;inset:0;background:transparent;}
#sw48-lobby[data-page="home"] .lobby-content {background:none;}
#sw48-lobby[data-page="home"] {
    background: #080a0c url("lobby/death-star-shadow.webp?v=cold-light-1") 72% center / cover no-repeat;
}
@media (orientation:portrait) and (max-width:760px), (orientation:portrait) and (pointer:coarse) {
    #sw48-lobby[data-page="home"] {
        background-image: url("lobby/death-star-shadow-portrait.webp?v=cold-light-1");
        background-position: left center;
    }
    #sw48-lobby[data-page="home"] .lobby-sidebar {
        background: linear-gradient(to bottom, rgb(5 9 14 / 80%), rgb(5 9 14 / 55%));
    }
}
@media (orientation:landscape) and (max-width:699px) and (pointer:coarse) {
    #sw48-lobby[data-page="home"] {
        /* On short phones the navigation sits above the artwork. */
        background-size: 100% auto;
        background-position-y: bottom;
    }
}
.lobby-modes {max-width:1260px;margin:auto;padding:clamp(24px,5vh,60px) clamp(25px,4vw,70px);}
.mode-categories {display:flex;gap:16px;justify-content:center;padding-bottom:24px;border-bottom:1px solid #b6cfe525;}
#sw48-lobby .mode-category {background:#0d1721e6;color:#90a7b9;border:1px solid #6d8aa338;min-height:58px;width:155px;max-width:48%;padding:12px;cursor:pointer;font:500 16px/1.5 'Segoe UI','Microsoft YaHei',sans-serif;border-radius:2px;position:relative;}
#sw48-lobby .mode-category.selected {background:linear-gradient(135deg,#29415185,#15233090);border-color:#b0ccdb8a;color:#e4f2fb;box-shadow:inset 0 -2px #add4e4;}
#sw48-lobby .mode-category:hover {border-color:#bfd7e5;color:#f0f6fa;}
.mode-grid {display:grid;grid-template-columns:repeat(3,minmax(0,245px));justify-content:space-between;align-items:start;gap:clamp(20px,3.5vw,70px);margin:clamp(35px,12vh,145px) auto 40px;max-width:1060px;}
#sw48-lobby .mode-card {min-width:0;border:1px solid #6a87974a;border-radius:3px;background:#101c28;color:#eaf0f4;overflow:hidden;box-shadow:0 10px 30px #0004;transition:border-color .22s,box-shadow .22s,transform .22s ease;}
#sw48-lobby .mode-card:not(.upcoming):hover,#sw48-lobby .mode-card.selected {border-color:#bad6e4;box-shadow:0 0 22px #a0c9e117;}
#sw48-lobby .mode-card-select {display:block;width:100%;padding:0;margin:0;border:0;border-radius:0;background:transparent;color:inherit;text-align:left;cursor:pointer;box-shadow:none;font:inherit;}
#sw48-lobby .mode-card-select:disabled {cursor:default;opacity:1;}
#sw48-lobby .mode-card-select:focus-visible {outline:2px solid #b9deee;outline-offset:-3px;}
.mode-art {display:block;position:relative;height:clamp(270px,34vh,330px);width:100%;overflow:hidden;background:#070c14;}
.mode-title {font-size:19px;font-weight:400;line-height:1.4;letter-spacing:.025em;color:#e2edf5;}
.faction-art {display:grid;place-items:center;}
.civil-war-art {background:radial-gradient(ellipse at 20% 45%,#294d8f35,transparent 65%),radial-gradient(ellipse at 80% 45%,#8b30352e,transparent 65%),#09121c;}
.clone-wars-art {background:radial-gradient(ellipse at 20% 45%,#861E2B30,transparent 65%),radial-gradient(ellipse at 80% 45%,#183B7038,transparent 65%),#09121c;}
.faction-composite {position:relative;display:block;width:72%;aspect-ratio:1;transition:transform .3s ease,opacity .3s ease;}
.faction-half {
    position:absolute;
    inset:0;
    mask:var(--emblem) center / contain no-repeat;
    -webkit-mask:var(--emblem) center / contain no-repeat;
}
.faction-left {clip-path:inset(0 50% 0 0);}
.faction-right {clip-path:inset(0 0 0 50%);}
.emblem-empire {--emblem:url('/data/lobby/emblems/empire.svg');background:#5f84cd;}
.emblem-rebellion {--emblem:url('/data/lobby/emblems/rebellion.svg');background:#e15b56;}
.emblem-republic {--emblem:url('/data/lobby/emblems/republic.svg');background:#861E2B;}
.emblem-separatists {--emblem:url('/data/lobby/emblems/separatists.svg');background:#183B70;}
.faction-divider {
    position:absolute;
    left:calc(50% - .5px);
    top:-12%;
    bottom:-12%;
    width:1px;
    background:linear-gradient(transparent,#c7dfed 22%,#c7dfed 78%,transparent);
    box-shadow:0 0 8px #a9d9f133;
}
.mode-unavailable {position:absolute;z-index:1;top:12px;right:12px;padding:3px 7px;border:1px solid #aab9c14d;background:#111c28df;font-size:10px;letter-spacing:.05em;color:#c5ced4;}
.mode-card-footer {display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:58px;padding:12px 15px;border-top:1px solid #acc6d729;background:linear-gradient(110deg,#1d2e3b,#111c28);color:#aec2cf;font-size:11px;line-height:1.5;}
.mode-arrow {color:#c6e4f2;font-size:21px;transition:transform .24s ease;}
.mode-card.selected .mode-arrow {transform:rotate(90deg);}
.mode-card.selected .faction-composite {transform:scale(1.025);}
.mode-callsign {display:grid;grid-template-rows:0fr;opacity:0;visibility:hidden;transition:grid-template-rows .26s cubic-bezier(.2,.75,.3,1),opacity .18s ease,visibility 0s .26s;}
.mode-card.selected .mode-callsign {grid-template-rows:1fr;opacity:1;visibility:visible;transition-delay:0s;}
.mode-callsign-clip {min-height:0;overflow:hidden;}
.mode-callsign-content {display:grid;gap:11px;padding:14px 15px 16px;border-top:1px solid #acc6d729;transform:translateY(-6px);transition:transform .26s ease;}
.mode-card.selected .mode-callsign-content {transform:translateY(0);}
#sw48-lobby #alias_input {width:100%;height:35px;padding:7px 9px;margin:0;text-align:left;background:#09131d!important;border:1px solid #87acbf66!important;border-radius:2px!important;color:#eef6ff!important;font:400 14px/1.4 'Segoe UI','Microsoft YaHei',sans-serif;box-shadow:none!important;}
#sw48-lobby #alias_input:focus-visible {outline:1px solid #c6e9f7;outline-offset:2px;}
#sw48-lobby .mode-start {display:block;width:100%;min-height:42px;margin:0;padding:9px 12px;border:1px solid #9bbdce!important;border-radius:2px!important;background:linear-gradient(115deg,#b7d2de,#92b6c8)!important;color:#0b1a25!important;box-shadow:0 2px 12px #0002!important;font:600 15px/1.4 'Segoe UI','Microsoft YaHei',sans-serif;letter-spacing:.08em;cursor:pointer;transition:filter .18s,transform .18s,box-shadow .18s;}
#sw48-lobby .mode-start:hover:not(:disabled) {filter:brightness(1.12);box-shadow:0 0 18px #a8d7eb24!important;}
#sw48-lobby .mode-start:active:not(:disabled) {transform:translateY(1px);filter:brightness(.97);}
#sw48-lobby .mode-start:focus-visible {outline:2px solid #daf4ff;outline-offset:3px;}
#sw48-lobby .mode-start:disabled {cursor:default;opacity:.5;}
@media(hover:hover) and (pointer:fine) {#sw48-lobby .mode-card:not(.upcoming):hover {transform:translateY(-3px);}#sw48-lobby .mode-card:not(.upcoming):hover .faction-composite {transform:scale(1.04);}}
.mystery .mode-art {background:radial-gradient(ellipse at 50% 38%,#243c4c80,transparent 67%),#09121c;}
.mode-question {display:grid;place-items:center;height:100%;font:200 100px/1 'Segoe UI',sans-serif;color:#99bbd0;opacity:.7;}
.mode-empty {min-height:350px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#91a7b8;padding:30px;}
:is(#sw48-lobby,.sw48-menu-dialog) h1 {font-size:clamp(28px,3vw,42px);font-weight:400;line-height:1.3;letter-spacing:.035em;margin:0 0 24px;color:#edf1f4;}
.lobby-eyebrow {color:#92bdd1;font-size:12px;letter-spacing:.22em;margin-bottom:18px;}
.lobby-page {padding:35px 4px 35px 0;overflow-y:auto;scrollbar-color:#426074 #0d1721;}
#sw48-lobby .lobby-page h1,.sw48-menu-dialog h1 {font-size:32px;margin-bottom:30px;}
.sw48-menu-tabs {display:flex;align-items:center;gap:30px;margin:0 40px 28px 0;flex-wrap:wrap;}
body.sw48-ui :is(#dialog_frame,#sw48-lobby) .sw48-menu-tabs .sw48-menu-tab {font:400 16px/1.5 'Segoe UI','Microsoft YaHei',sans-serif;color:#aecfdf!important;background:transparent!important;border:0!important;border-bottom:1px solid transparent!important;border-radius:0!important;box-shadow:none!important;padding:5px 0;cursor:pointer;}
body.sw48-ui :is(#dialog_frame,#sw48-lobby) .sw48-menu-tabs .sw48-menu-tab:is(:hover,.active) {color:#eef8ff!important;border-bottom-color:#aecfdf!important;}
.sw48-menu-footer {padding:20px 0 0;margin-top:20px;border-top:1px solid #91b0c026;}
body.sw48-ui :is(#dialog_frame,#sw48-lobby) .sw48-return-home {font:400 15px/1.5 'Segoe UI','Microsoft YaHei',sans-serif;background:transparent!important;color:#aecfdf!important;border:0!important;box-shadow:none!important;padding:8px 0;cursor:pointer;}
body.sw48-ui :is(#dialog_frame,#sw48-lobby) .sw48-return-home:hover {color:#fff!important;text-decoration:underline;}
body.sw48-ui #escape_menu {display:none!important;}
.lobby-settings {max-width:760px;}
.lobby-setting-group {padding:18px 0;border-top:1px solid #91b0c026;margin-bottom:10px;}
.lobby-settings h2,.lobby-settings h3 {font-size:14px;color:#a4becf;font-weight:500;margin:0 0 16px;}
.lobby-setting-row {display:flex;align-items:center;justify-content:space-between;gap:25px;min-height:42px;color:#d2dde5;font-size:14px;}
.lobby-settings input[type=checkbox] {width:17px;height:17px;accent-color:#9fc7da;cursor:pointer;flex-shrink:0;}
.lobby-settings input[type=range] {max-width:230px;width:45%;accent-color:#aecbdc;}
body.sw48-ui .lobby-settings select {background:#152331!important;color:#e0edf4!important;border:1px solid #526d8055!important;padding:8px 12px;border-radius:3px;max-width:100%;}
.lobby-controls {display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0 0 30px;max-width:800px;}
.lobby-controls>div {padding:14px;border:1px solid #91b0c024;display:flex;align-items:center;gap:16px;color:#a4b4c1;font-size:13px;background:#93b9d106;}
.lobby-controls kbd {min-width:75px;color:#d0e5ef;font:12px Consolas,monospace;}
.lobby-help-copy {max-width:800px;color:#a9b8c6;font-size:14px;line-height:1.9;}
.lobby-help-copy :is(h1,h2,h3,h4) {color:#cddce6!important;font-size:19px!important;font-weight:500;margin:28px 0 12px;padding-top:20px;border-top:1px solid #91b0c024;}
.lobby-help-copy p {margin:10px 0 16px;}
.lobby-help-copy>p:first-child {color:#d0e1ec;font-size:15px;}
.lobby-help-copy :is(strong,b) {color:#dcebf3;font-weight:600;}
#sw48-lobby a {color:#a6cede;}
#sw48-lobby .lobby-inline-link {font:inherit;color:#a6cede;background:none;border:0;box-shadow:none;padding:0;text-align:left;text-decoration:underline;cursor:pointer;}
#sw48-lobby .lobby-inline-link:hover {color:#e0f4ff;}
.lobby-ships .sw48-ships-content {max-width:1000px;}
.lobby-ships .ships-back {margin-bottom:20px!important;}

.archive-profile {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:center;gap:1.5rem;}
.archive-profile h3,.archive-weapons h3,.archive-hangar h3 {margin:0 0 .6rem;}
.archive-profile p,.archive-hangar p {margin:.25rem 0 .7rem;}
.archive-hull {display:block;width:min(100%,14rem);height:6rem;object-fit:contain;margin-top:.65rem;}
.archive-profile ul,.archive-weapon-stats ul {margin:0;padding-inline-start:1.25rem;}
.archive-weapons,.archive-hangar {margin-block-start:1.6rem;}
.archive-weapon,.archive-hangar tr {border-bottom:1px solid #7794a938;}
.archive-weapon summary {display:grid;grid-template-columns:.6rem minmax(0,1fr) auto;column-gap:.7rem;align-items:center;min-height:44px;padding:.25rem .3rem;cursor:pointer;list-style:none;text-align:start;}
.archive-weapon summary::-webkit-details-marker {display:none;}
.archive-weapon summary::before {content:"";width:.38rem;height:.38rem;border:solid #99afbd;border-width:0 1.5px 1.5px 0;transform:rotate(-45deg);}
.archive-weapon[open] summary::before {transform:rotate(45deg);}
.archive-weapon summary:hover,.archive-weapon summary:focus-visible {background:#a1b8ce0c;}
.archive-weapon summary:focus-visible {outline:1px solid #a2bece;}
.archive-weapon-count {display:flex;gap:.3rem 1rem;flex-wrap:wrap;justify-content:flex-end;color:#b4c8d7;font-size:.88em;font-variant-numeric:tabular-nums;}
.archive-weapon-stats {display:flex;align-items:center;flex-wrap:wrap;gap:1.25rem;padding:.5rem 1.5rem 1rem;}
.archive-hangar table {width:100%;border-collapse:collapse;text-align:end;font-variant-numeric:tabular-nums;}
.archive-hangar th,.archive-hangar td {padding:.45rem .35rem;font-weight:normal;}
.archive-hangar thead th,.archive-hangar p {color:#b4c8d7;font-size:.88em;}
.archive-hangar th:first-child {text-align:start;}
.archive-aircraft {display:flex;align-items:center;gap:.65rem;}
.archive-aircraft img {width:3.25rem;height:2rem;object-fit:contain;flex:none;}
@media(max-width:600px) {
 .archive-profile {grid-template-columns:1fr;gap:.5rem;}
 .archive-weapon summary {grid-template-columns:.6rem minmax(0,1fr);}
 .archive-weapon-count {grid-column:2;justify-content:flex-start;line-height:1.3;}
 .archive-aircraft {gap:.35rem;}
 .archive-aircraft img {width:2rem;height:1.6rem;}
}
@media(max-width:600px) {
 .lobby-ships .sw48-ships-content ul {padding-left:1.25em;}
}
.sw48-gear {display:grid;place-items:center;width:44px;height:44px;color:#acdfff!important;border-radius:4px;}
.sw48-gear:hover,.sw48-gear:focus-visible {background:#9bcdea18;outline:1px solid #aacfe94d;}
body.sw48-ui div:has(> #dialog_frame.sw48-menu-dialog),
body.sw48-ui div:has(> #dialog_frame.sw48-help-dialog) {position:fixed;z-index:1100;}
body.sw48-ui #dialog_frame.sw48-menu-dialog,
body.sw48-ui #dialog_frame.sw48-help-dialog {box-sizing:border-box;width:min(900px,calc(100vw - 40px));height:min(820px,calc(100dvh - 40px));top:50%;left:50%;right:auto;bottom:auto;transform:translate(-50%,-50%);background:#0b121c!important;border:1px solid #69869970!important;border-radius:4px!important;font:16px/1.6 'Segoe UI','Microsoft YaHei',sans-serif;}
body.sw48-ui #dialog_frame.sw48-menu-dialog #dialog_titlebar {height:0;background:transparent!important;border:0;box-shadow:none;}
body.sw48-ui #dialog_frame.sw48-menu-dialog #dialog_title {display:none;}
body.sw48-ui #dialog_frame.sw48-menu-dialog #x {top:18px;right:20px;z-index:2;width:32px;height:32px;background:transparent!important;border:0!important;box-shadow:none!important;}
body.sw48-ui #dialog_frame.sw48-menu-dialog #dialog_content {position:absolute;inset:0;height:auto;padding:36px 40px;overflow:auto;}
body.sw48-ui #dialog_frame.sw48-menu-dialog:has(.sw48-return-home) #dialog_content {bottom:76px;}
body.sw48-ui #dialog_frame.sw48-menu-dialog .sw48-menu-footer {position:fixed;bottom:0;left:0;right:0;margin:0;padding:14px 40px;background:#0b121c;z-index:3;}
.lobby-help-copy :is(ul,ol) {padding-inline-start:1.5em;padding-inline-end:0;}
.lobby-help-copy li {margin:5px 0;}
@media(max-width:600px) {
 body.sw48-ui #dialog_frame.sw48-menu-dialog,body.sw48-ui #dialog_frame.sw48-help-dialog {width:100%;height:100dvh;border:0!important;border-radius:0!important;}
 body.sw48-ui #dialog_frame.sw48-menu-dialog #dialog_content {padding:24px 20px;}
 body.sw48-ui #dialog_frame.sw48-menu-dialog .sw48-menu-footer {padding:14px 20px;}
 .lobby-setting-row {gap:12px;}
 .lobby-settings input[type=range] {min-width:70px;width:38%;}
 .lobby-setting-row output {min-width:42px;text-align:right;}
}
.lobby-help-links {display:flex;gap:25px;border-top:1px solid #91b0c026;margin-top:30px;padding-top:20px;font-size:14px;}
.lobby-page {padding:clamp(24px,5vh,65px) clamp(25px,5vw,85px);}
@media(max-width:1100px) {#sw48-lobby {grid-template-columns:200px minmax(0,1fr);}.lobby-sidebar {padding:32px 22px;}.lobby-modes,.lobby-page {padding:30px 25px;}.mode-grid {gap:20px;}.mode-card-footer {padding:12px;font-size:10px;}.lobby-controls {grid-template-columns:1fr;}}
@media(max-width:760px) {#sw48-lobby {display:flex;flex-direction:column;}.lobby-sidebar {border-right:0;border-bottom:1px solid #b4d5ed22;padding:20px 20px 0;flex:none;}.lobby-brand-button {max-width:170px!important;margin:0 0 18px;}.lobby-nav {flex-direction:row;gap:4px;margin:0;}.lobby-nav-number,.lobby-nav-arrow {display:none;}#sw48-lobby .lobby-nav-item {padding:13px 8px;font-size:16px;justify-content:center;border-left:0;border-bottom:2px solid transparent;}#sw48-lobby .lobby-nav-item.selected {border-bottom-color:#a9d9ef;}.lobby-content {flex:1;}.lobby-modes,.lobby-page {padding:24px 20px;}.mode-categories {padding-bottom:20px;gap:12px;}#sw48-lobby .mode-category {min-height:52px;font-size:15px;padding:12px;}.mode-grid {grid-template-columns:repeat(2,minmax(0,245px));justify-content:center;margin-top:30px;gap:24px;}.mode-art {height:280px;}.lobby-controls {grid-template-columns:1fr;}}
@media(max-width:500px) {.mode-grid {grid-template-columns:minmax(0,245px);}.mode-art {height:300px;}.mode-card-footer {font-size:11px;}#sw48-lobby #alias_input {font-size:16px;}}
@media(max-height:620px) and (min-width:761px) {#sw48-lobby {grid-template-columns:175px minmax(0,1fr);}.lobby-sidebar {padding:20px;}.lobby-nav {gap:6px;}.lobby-nav-number {display:none;}#sw48-lobby .lobby-nav-item {padding:14px 8px;font-size:17px;gap:8px;}.lobby-modes,.lobby-page {padding:20px 25px;}.mode-categories {padding-bottom:16px;}#sw48-lobby .mode-category {min-height:46px;font-size:15px;}.mode-grid {margin-top:24px;}.mode-art {height:clamp(150px,calc(100dvh - 200px),230px);}.mode-card-footer {min-height:48px;}}
/* Keep touch controls when a phone rotates beyond the narrow-screen breakpoint. */
@media(max-width:600px), (max-width:1100px) and (max-height:600px) and (pointer:coarse) {
 #sw48-lobby {height:100vh;height:100dvh;}
 .lobby-sidebar {min-width:0;padding-top:calc(16px + env(safe-area-inset-top,0px));padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px));}
 .lobby-nav {max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;}
 #sw48-lobby .lobby-nav-item {flex:1 0 auto;width:auto;min-width:44px;min-height:44px;padding:13px 6px;white-space:nowrap;}
 #sw48-lobby .lobby-brand-button {min-height:44px;}
 .lobby-content {min-width:0;overscroll-behavior-y:contain;}
 .lobby-modes,.lobby-page {padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px));padding-bottom:calc(24px + env(safe-area-inset-bottom,0px));}
 #sw48-lobby :is(#alias_input,.mode-start,.lobby-inline-link) {min-height:44px;}
 #sw48-lobby .lobby-inline-link {display:inline-flex;align-items:center;min-width:44px;}
 .lobby-setting-row {min-width:0;min-height:48px;}
 .lobby-setting-row>span {min-width:0;flex:1;overflow-wrap:anywhere;}
 body.sw48-ui .lobby-settings select {box-sizing:border-box;min-width:0;min-height:44px;max-width:55%;flex:0 1 55%;font-size:16px;}
 .lobby-setting-row:has(input[type=range]) {display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:0 12px;}
 .lobby-setting-row:has(input[type=range])>span {grid-column:1 / -1;}
 .lobby-settings input[type=range] {width:100%;min-width:0;max-width:none;height:44px;margin:0;}
 .lobby-help-copy,.sw48-ships-content {min-width:0;overflow-wrap:anywhere;}
 .lobby-help-links {flex-wrap:wrap;gap:8px 20px;}
 .lobby-help-links>a {display:inline-flex;align-items:center;min-width:44px;min-height:44px;}
 .sw48-ships-content ul {padding-inline-start:1.25em;}
 .sw48-ships-content .sw48-ship-card {min-width:44px;min-height:44px;max-width:calc(100% - 16px);}
 .sw48-ships-content .sw48-ship-card>div {white-space:normal!important;}
 .sw48-ships-content img {max-width:100%;object-fit:contain;}
 body.sw48-ui #dialog_frame.sw48-menu-dialog {width:100%;height:100vh;height:100dvh;border:0!important;border-radius:0!important;}
 body.sw48-ui #dialog_frame.sw48-menu-dialog #x {top:calc(12px + env(safe-area-inset-top,0px));right:max(12px,env(safe-area-inset-right,0px));width:44px;height:44px;}
 body.sw48-ui #dialog_frame.sw48-menu-dialog #dialog_content {top:calc(64px + env(safe-area-inset-top,0px));padding:0 max(16px,env(safe-area-inset-right,0px)) calc(24px + env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px));overflow-x:hidden;overscroll-behavior-y:contain;}
 .sw48-menu-tabs {gap:8px 20px;margin-right:48px;margin-bottom:20px;}
 body.sw48-ui #dialog_frame.sw48-menu-dialog .sw48-menu-tabs {position:fixed;top:calc(12px + env(safe-area-inset-top,0px));left:max(16px,env(safe-area-inset-left,0px));right:calc(64px + env(safe-area-inset-right,0px));height:44px;margin:0;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;overscroll-behavior-x:contain;background:#0b121c;z-index:2;}
 body.sw48-ui #dialog_frame.sw48-menu-dialog .sw48-menu-tab {flex:none;white-space:nowrap;}
 body.sw48-ui :is(#dialog_frame,#sw48-lobby) .sw48-menu-tabs .sw48-menu-tab,
 body.sw48-ui :is(#dialog_frame,#sw48-lobby) .sw48-return-home {min-width:44px;min-height:44px;}
 body.sw48-ui #dialog_frame.sw48-menu-dialog:has(.sw48-return-home) #dialog_content {bottom:calc(73px + env(safe-area-inset-bottom,0px));}
 body.sw48-ui #dialog_frame.sw48-menu-dialog .sw48-menu-footer {padding:14px max(16px,env(safe-area-inset-right,0px)) calc(14px + env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px));}
}
@media(prefers-reduced-motion:reduce) {#sw48-lobby * {transition:none!important;}}
