@media(max-width:700px){html body>header .header-inner .header-logo-group{display:flex!important;align-items:center!important;gap:10px!important;overflow:visible!important}html body>header .header-inner .header-logo-group .game-logo-top-left{flex:1 1 auto!important;width:calc(100% - 46px)!important;max-width:125px!important;min-width:0!important;object-fit:contain!important}html body>header .header-inner .header-logo-group .faction-emblem:not([hidden]){display:block!important;position:static!important;flex:0 0 34px!important;width:34px!important;height:34px!important;max-width:34px!important;margin:0!important;transform:none!important;object-fit:contain!important}html body main #cityLayout #worldMapPage{aspect-ratio:auto!important;height:auto!important;min-height:0!important;overflow:visible!important;align-self:stretch!important}html body main #cityLayout #worldMapPage .world-map-frame{height:auto!important;display:block!important;overflow:visible!important}html body main #cityLayout #worldMapPage .world-map-stage{height:auto!important;min-height:0!important;display:block!important;flex:none!important;position:relative!important}html body main #cityLayout #worldMapPage #worldMapSvg{display:block!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;aspect-ratio:520/345!important;object-fit:contain!important}html body main #cityLayout #worldMapPage .world-map-controls{display:flex!important;position:relative!important;flex-wrap:wrap!important;gap:6px!important;overflow:visible!important;margin:10px 0!important}html body main #cityLayout #worldMapPage .world-map-controls input{width:60px!important;max-width:22vw!important}}
/* V409: tighter mobile vertical rhythm without shrinking tappable controls. */
@media(max-width:700px){html body main{padding-top:4px!important}html body main .ticker-wrap,html body main .ticker-panel{margin-bottom:5px!important}html body main .territory-bar{margin-top:5px!important;margin-bottom:6px!important;padding:8px 10px!important;gap:4px!important}html body main .territory-bar #productionPlainText{row-gap:4px!important;column-gap:8px!important}html body main .territory-bar #productionPlainText .production-heading{margin-bottom:2px!important;line-height:1.3!important}html body main #cityLayout.layout{row-gap:6px!important;gap:6px!important;margin-top:4px!important;margin-bottom:5px!important}html body main #cityLayout.layout>aside:not(#outerStatusPanel){margin-top:0!important;padding-top:10px!important}html body main #cityLayout.layout>aside:not(#outerStatusPanel) h2{margin-top:0!important;margin-bottom:8px!important}html body main #cityLower.lower{margin-top:6px!important;gap:6px!important}html body main .outer-city,html body main .city{margin-bottom:0!important}}
@media (max-width:700px),(hover:none) and (pointer:coarse){body main .territory-bar #productionPlainText{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;column-gap:10px!important;row-gap:8px!important;white-space:normal!important;overflow:visible!important;font-size:0!important}body main .territory-bar #productionPlainText:before{display:none!important}body main .territory-bar #productionPlainText .production-heading{display:block!important;grid-column:1/-1!important;font-size:16px!important;font-weight:700!important;color:#f3d19c!important;line-height:1.5!important;margin-bottom:12px!important}body main .territory-bar #productionPlainText .production-resource{display:inline-flex!important;min-width:0!important;max-width:100%!important;width:auto!important;white-space:nowrap!important;font-size:clamp(12px,3vw,16px)!important;align-items:center;gap:4px}body main .territory-bar #productionPlainText .resource-img{width:17px!important;height:17px!important;flex-shrink:0}}