#mobile-lobby-dock,.mobile-prep-head{display:none}
@media(max-width:900px){
 body.mobile-map-lobby{--mobile-map-top:72px;--mobile-dock-height:178px}
 .mobile-map-lobby #game-canvas{top:calc(var(--mobile-map-top) + env(safe-area-inset-top));bottom:var(--mobile-dock-height);height:calc(100dvh - var(--mobile-map-top) - env(safe-area-inset-top) - var(--mobile-dock-height))}
 .mobile-map-lobby .course-preview{display:none!important}
 .mobile-map-lobby #lobby{display:none}
 .mobile-map-lobby #mobile-lobby-dock:not([hidden]){display:grid;gap:8px;position:fixed;z-index:11;left:0;right:0;bottom:0;padding:10px max(14px,env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left));background:#111e29;border-top:1px solid #526575}
 .mobile-course-summary{display:flex;align-items:baseline;justify-content:space-between;gap:10px;min-width:0}
 .mobile-course-summary strong{font-size:18px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .mobile-course-summary span{flex-shrink:0;font-size:12px;color:#b8c8d3}
 .mobile-lobby-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
 #mobile-lobby-dock button{min-height:44px;min-width:0;font-size:15px;padding:8px 6px}
 #mobile-lobby-dock #mobile-start{min-height:50px;font-size:18px;font-weight:800}
 #mobile-lobby-error{margin:0;color:#ffc2b3;font-size:14px;line-height:1.4;max-height:60px;overflow-y:auto}
 .mobile-map-lobby.mobile-prep-expanded #lobby:not(.hidden){display:block;z-index:10;left:10px;right:10px;width:auto;top:auto;bottom:calc(var(--mobile-dock-height) + 8px);max-height:calc(100dvh - var(--mobile-map-top) - var(--mobile-dock-height) - 16px - env(safe-area-inset-top));padding:0 16px 16px;background:#111e29;overflow:auto;overscroll-behavior:contain}
 .mobile-map-lobby .mobile-prep-head{display:flex;position:sticky;top:0;z-index:2;align-items:center;justify-content:space-between;gap:10px;padding:10px 0;background:#111e29;border-bottom:1px solid #3d5266;margin-bottom:12px}
 .mobile-prep-head strong{font-size:18px}
 .mobile-prep-head button{min-height:44px;min-width:64px;font-size:16px}
 .mobile-map-lobby #lobby .course-card,.mobile-map-lobby #lobby #theme-label,.mobile-map-lobby #lobby #entry-actions,.mobile-map-lobby #lobby #lobby-error{display:none}
 .mobile-map-lobby #lobby .garage-select{margin-top:4px}
}
@media(max-width:640px){body.mobile-map-lobby{--mobile-map-top:92px}}
@media(max-width:900px) and (max-height:500px) and (orientation:landscape){
 body.mobile-map-lobby{--mobile-map-top:58px}
 .mobile-map-lobby #mobile-lobby-dock:not([hidden]){grid-template-columns:minmax(0,1fr) minmax(0,1.3fr) 180px;align-items:center;gap:12px;padding-top:8px;padding-bottom:calc(8px + env(safe-area-inset-bottom))}
 .mobile-course-summary{display:grid;gap:2px}.mobile-course-summary strong{font-size:16px}
 #mobile-lobby-error{grid-column:1/-1;grid-row:2}
 .mobile-map-lobby.mobile-prep-expanded #lobby:not(.hidden){left:auto;width:min(440px,calc(100vw - 20px))}
}
