/* Responsive adaptations only: retain the original game textures on desktop. */
.sw-mobile-menu-toggle{display:none}
.sw-mobile-table{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
@media(max-width:900px){
 html{min-width:0!important}
 body{min-width:0!important;width:100%!important;margin:0!important;box-sizing:border-box}
 body:not(.sw-admin) #pageContent{width:100%!important;min-width:0!important;display:flex;flex-direction:column;margin:0!important;padding:0 8px!important;box-sizing:border-box}
 body:not(.sw-admin) #top{order:0;width:100%!important;height:auto!important;min-height:0;display:flex;flex-direction:column;background-size:auto 100%;padding-bottom:6px}
 #top #headerbarcomponent,#top #bar{position:static!important;width:100%!important;height:auto!important;margin:0!important;box-sizing:border-box}
 #bar{display:flex;flex-wrap:wrap;justify-content:center;gap:4px 10px;padding:6px!important;line-height:1.6}
 #bar li{float:none!important;position:static!important;width:auto!important;margin:0!important}
 #bar a{display:inline-block;padding:4px 2px;min-height:24px}
 #top #pageReloader{position:relative!important;inset:auto!important;align-self:center;flex:none;width:190px;height:70px;order:1}
 #top #resourcesbarcomponent{position:static!important;width:100%!important;height:68px!important;order:2}
 #top #resources{position:static!important;width:100%!important;height:auto!important;padding:0!important;display:flex;justify-content:space-around}
 #resources>li{position:static!important;float:none!important;width:20%!important;margin:0!important;min-width:0;text-align:center}
 #resources .resource{position:relative!important;inset:auto!important;margin:auto!important;max-width:100%}
 #resources .value{font-size:11px!important;overflow-wrap:anywhere}
 #top #commandercomponent{position:static!important;order:3;align-self:center;height:42px!important;margin:2px 0}
 #top #notificationbarcomponent{position:static!important;order:4;width:100%!important;height:44px!important}
 #top #message-wrapper{position:relative!important;inset:auto!important;width:100%!important;height:44px!important;background-size:100% 100%}
 #messages_collapsed{left:95px!important;right:34px!important;width:auto!important}
 #eventboxBlank{width:100%!important;font-size:10px!important;line-height:1.4!important;display:flex;align-items:center;justify-content:center}
 #attack_alert{right:0!important;left:auto!important;width:34px!important}
 body:not(.sw-admin) #left{position:static!important;order:1;width:100%!important;height:auto!important;margin:4px 0!important;float:none!important;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:start}
 #left #ipimenucomponent{width:165px!important}
 .sw-mobile-menu-toggle{display:block;min-height:40px;padding:8px 16px;color:#d5ebff;background:#172b3b;border:1px solid #56778c;font-weight:bold}
 #left #toolbarcomponent{display:none;width:100%!important;height:auto!important;margin:6px 0}
 #left.sw-menu-open #toolbarcomponent{display:block}
 #left #links,#left #menuTable{width:100%!important;height:auto!important;margin:0!important;padding:0!important}
 #left #menuTable{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
 #left #menuTable li{width:100%!important;min-height:40px;height:auto!important;float:none!important;margin:0!important;background-size:100% 100%}
 #left #menuTable li>a.menubutton{width:100%!important;min-height:40px;height:auto!important;box-sizing:border-box;background-size:100% 100%;padding:8px 20px 8px 4px!important;white-space:normal;line-height:1.3;display:flex;align-items:center;justify-content:center}
 #left .menubutton .textlabel{width:auto!important;white-space:normal;font-size:12px}
 #left #advicebarcomponent{width:100%}
 body:not(.sw-admin) #right{order:2;position:static!important;width:100%!important;height:auto!important;float:none!important;margin:4px 0!important}
 #planetbarcomponent,#rechts,#norm,#myWorlds{position:static!important;width:100%!important;height:auto!important;margin:0!important}
 #countColonies{width:100%!important;margin:0!important;background-size:100% 100%;height:25px!important}
 #planetList{display:flex;width:100%!important;overflow-x:auto;gap:8px}
 #planetList .smallplanet{flex:0 0 130px;height:80px!important;margin:0!important}
 #bannerSkyscrapercomponent{display:none}
 body:not(.sw-admin) #middle{order:3;float:none!important;width:100%!important;min-width:0!important;margin:0!important;overflow-x:auto}
 #inhalt,.maincontent,#middle .content-box-s,#middle .content-box-s>.content,#middle .content-box-s>.header,#middle .content-box-s>.footer{width:100%!important;min-width:0!important;box-sizing:border-box;margin-left:0!important;margin-right:0!important;background-size:100% 100%}
 #planet{width:100%!important;margin:0!important;box-sizing:border-box;background-position:center!important;background-size:cover!important}
 #header_text{width:100%!important;box-sizing:border-box}
 #header_text h2{font-size:17px!important;line-height:1.3!important;white-space:normal!important;height:auto!important}
 #overview #planetdata{width:100%!important;left:0!important;right:0!important;box-sizing:border-box;padding:8px}
 #planetDetails,#planetDetails table{width:100%!important}
 #productionboxBottom{display:flex;flex-direction:column;align-items:center;width:100%!important;gap:8px}
 #productionboxBottom>div{float:none!important;max-width:100%}
 #technologies,#technologies>ul,#technologies .technologycontainer{width:100%!important;box-sizing:border-box;float:none!important;min-width:0!important}
 #technologies>ul{display:flex;flex-wrap:wrap;justify-content:center;padding:5px!important;gap:4px}
 #technologies .technology{flex:none}
 #middle .sw-game-panel{width:100%!important;box-sizing:border-box}
 #middle input:not([type=checkbox]):not([type=radio]),#middle textarea,#middle select{max-width:100%;box-sizing:border-box}
 #middle input:not([type=checkbox]):not([type=radio]),#middle select,#middle textarea{font-size:16px}
 #middle button,#middle .btn_blue{min-height:36px;max-width:100%;white-space:normal}
 #middle .mission{gap:10px!important}#middle .mission img{width:64px!important;height:64px!important}
 #traderOverview #planet{height:360px!important;display:grid;grid-template-columns:1fr 1fr;background-size:100% 100%!important}
 #traderOverview #planet>br{display:none}#traderOverview .trader_link{position:relative!important;inset:auto!important;width:100%!important;height:180px!important;box-sizing:border-box}
 #traderOverview .trader_link h2{font-size:15px!important;width:auto!important;white-space:normal}
 #siteFooter{position:static!important;width:100%!important;height:auto!important;min-height:60px;padding:12px 8px 45px!important;box-sizing:border-box;display:flex;flex-wrap:wrap;justify-content:center;gap:10px;line-height:1.7}
 #siteFooter>*{position:static!important;float:none!important;margin:0!important}#siteFooter .language-picker{min-width:100px}
 #chatBar{bottom:0!important;right:0!important;max-width:100vw}#chatBar .chat_box{max-width:calc(100vw - 12px)!important}
 .ui-dialog{max-width:calc(100vw - 12px)!important;box-sizing:border-box;left:6px!important}.ui-dialog-content{max-width:100%;box-sizing:border-box;overflow:auto!important}
 .language-picker__menu{min-width:0!important;width:260px;max-width:calc(100vw - 32px)}
 .sw-admin-heading-actions .language-picker__menu{left:0!important;right:auto!important}
 .sw-admin-workspace,.sw-admin .group{min-width:0!important;max-width:100%;box-sizing:border-box}
 body.sw-admin #pageContent{width:100%!important;box-sizing:border-box}
}
@media(max-width:700px){
 #start,#start #content,#start #header,#start #footerLinks{width:100%!important;min-width:0!important;box-sizing:border-box}
 #start{background-position:top center;background-size:auto 100%;padding:0 10px}
 #start #header{height:100px!important}#start #header h1{left:0!important;max-width:65%;background-size:contain}
 #start #content{display:flex;flex-direction:column;gap:16px;margin:0!important;padding:0!important}
 #start #subscribeForm{position:static!important;width:100%!important;min-height:0;box-sizing:border-box;padding:16px!important;background:#142431}
 #start #subscribeForm input,#start #subscribeForm select{box-sizing:border-box;max-width:100%;font-size:16px}
 #start #menu{position:static!important;width:100%!important;box-sizing:border-box;margin:0!important;padding:0!important}
 #start #tabs{display:flex;width:100%!important;margin:0!important;padding:0!important}
 #start #tabs li{flex:1;min-width:0;width:auto!important;background-size:100% 100%}
 #start #tabs li a{width:100%!important;font-size:11px}
 #start .ui-tabs-panel,#start #ajaxContent{width:100%!important;margin:0!important;box-sizing:border-box;padding:12px!important;background:#0b151e}
 #start #login{max-width:calc(100vw - 20px);right:0!important;left:auto!important}
 #start #footerLinks{position:static!important;line-height:2;padding:15px 0}
}

@media(max-width:900px){
 #bar>ul{display:flex;flex-wrap:wrap;justify-content:center;gap:2px 10px;width:100%!important;height:auto!important;margin:0!important;padding:0!important}
 #bar .OGameClock{display:none}
 #resources .value{width:100%!important;justify-content:center;text-align:center}
 #detailWrapper{width:100%!important;left:0!important;right:0!important;box-sizing:border-box}
 #overview #header_text h2,#overview #header_text h2 a{width:100%!important;padding:6px!important;box-sizing:border-box;font-size:16px!important}
 #countColonies{background:#142a3b!important;box-sizing:border-box;color:#c4e0f4}
 #countColonies p{position:static!important;width:100%!important;line-height:25px;margin:0!important;text-align:center}
 #countColonies .countColonies{position:static!important}
 #siteFooter{min-width:0!important}
 #eventlistcomponent{width:100%!important;min-width:0!important;margin:0!important}
}

@media(max-width:900px){
 body:not(.sw-admin) #top{background:none!important}
 #inhalt{position:relative!important}
 #inhalt .c-right{left:auto!important;right:0!important}#inhalt .c-left{left:0!important}
 #overview #header_text h2{margin:0!important;text-align:center}#overview #header_text h2 a{display:block;white-space:normal!important}
 #overview #header_text .planetNameOverview{display:inline!important;float:none!important;font-size:16px!important}
 #buffBar{max-width:calc(100% - 20px)!important;left:10px!important;box-sizing:border-box;overflow:hidden}
}

@media(max-width:900px){
 #middle div,#middle section,#middle article,#middle header,#middle h2,#middle p,#middle form{max-width:100%!important;box-sizing:border-box}
 #middle h2{white-space:normal!important;margin-left:0!important;margin-right:0!important}
 #header_text h2,#planet>h2{width:100%!important;padding:6px!important;text-align:center}
 #middle .boxWrapper,#middle #buttonz,#middle #preferencesTabs,#middle .contentzs{width:100%!important}
 #middle .header,#middle .footer{background-size:100% 100%!important}
 #shop .sw-shop-catalog{display:flex!important;flex-direction:column;gap:12px;padding:8px!important;width:100%!important;margin:0!important}
 #shop .sw-shop-catalog>div,#shop .sw-shop-catalog>ul{width:100%!important;margin:0!important;float:none!important;position:static!important}
 #shop .sw-shop-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px 4px!important}
 #characterclassselection .characterclass.boxes{grid-template-columns:1fr!important}
 #characterclassselection .characterclass.boxes>div{width:100%!important}
 #preferencesTabs .fieldwrapper,#preferencesTabs .thefield{width:100%!important;float:none!important;margin:0!important;padding:8px!important;height:auto!important}
 #preferencesTabs label.styled{width:100%!important;float:none!important;display:block;margin-bottom:6px}
 #tabs-pref{display:flex;flex-wrap:wrap;width:100%!important;padding:0!important}#tabs-pref li{float:none!important;flex:1 1 120px}
 #premium .officers>ul,#premium #buttonz ul{display:flex;flex-wrap:wrap;gap:6px;padding:8px!important}
 #premium .staff-summary{flex-wrap:wrap}
}

@media(max-width:700px){
 #start #contentWrap,#start #tabContentContainer,#start #contentFooter{width:100%!important;min-width:0!important;box-sizing:border-box;margin:0!important}
 #start #tabs{flex-wrap:wrap}#start #tabs li{flex:1 1 45%}
 #start #tab4{position:static!important;display:block;width:100%!important;text-align:center}
}

@media(max-width:900px){
 #middle header::after,#technologies::before,#technologies::after{width:100%!important;left:0!important;right:0!important;background-size:100% 100%!important}
 #middle header>h2,#middle #planet>h2{left:0!important;right:0!important;width:100%!important;text-align:center;padding:6px!important}
 #premium #building{width:100%!important;display:flex!important;flex-wrap:wrap;gap:6px;padding:8px!important;box-sizing:border-box}
 #preferencesTabs #tabs-pref{width:auto!important;margin:0!important}#preferencesTabs .content{padding:8px!important}
}

@media(max-width:900px){
 #top #resources>.resource_tile{position:static!important;float:none!important;flex:1 1 20%;width:20%!important;min-width:0!important;margin:0!important}
 #top #resources .resource{width:100%!important;max-width:64px!important}#top #resources .resourceIcon{max-width:100%;margin-left:auto!important;margin-right:auto!important}
 #siteFooter .textRight{width:100%!important;text-align:center;white-space:normal}
 body.sw-admin #pageContent{min-width:0!important}
}

@media(max-width:900px){
 #middle .maincontent{position:relative!important}#middle .c-right{left:auto!important;right:0!important}#middle .c-left{left:0!important}
 #galaxyLoading{left:50%!important;transform:translateX(-50%)}
}
@media(min-width:701px) and (max-width:900px){body.sw-admin #pageContent{width:calc(100% - 220px)!important}}

@media(max-width:900px){
 #overview #header_text h2 a{display:flex!important;align-items:center;justify-content:center;flex-wrap:wrap;gap:4px}
 #overview #header_text .planetNameOverview,#overview #planetNameHeader{position:static!important;float:none!important;display:inline!important;width:auto!important;margin:0!important;padding:0!important}
}

@media(max-width:700px){
 #start #subscribe{width:100%!important;box-sizing:border-box;padding:12px!important;margin:0!important;background:none!important}
 #start #tabs{height:auto!important;float:none!important}#start #menu{height:auto!important;display:flow-root}
 #start #tab4{float:none!important;clear:both}
}

/* Keep floating bonuses and fleet notifications clear of mobile controls. */
@media(max-width:600px){
 #sw-daily-open{width:44px!important;height:44px!important;min-width:44px!important;max-width:44px!important;padding:9px!important;right:10px!important;bottom:64px!important;border-radius:50%}
 #sw-daily-open>span{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap!important}
 #top #notificationbarcomponent,#top #message-wrapper{height:auto!important;min-height:76px!important}
 #top #messages_collapsed{position:relative!important;left:auto!important;right:auto!important;top:auto!important;margin:0 32px 0 104px!important;width:auto!important;min-height:70px!important;display:flex;align-items:center}
 #top #eventboxBlank{height:auto!important;min-height:70px!important;white-space:normal!important;box-sizing:border-box;padding:4px!important}
}
