/* Phone landscape only. Desktop city rules and original artwork are retained. */
@media (pointer:coarse) and (max-width:1000px), (pointer:coarse) and (max-height:600px){:root{color-scheme:only light}}
.landscape-fullscreen{display:none}
@media (orientation:landscape) and (pointer:coarse) and (max-height:600px) {
 body.game-page{min-height:100dvh}
 body.game-page .main,body.game-page .game-layout{min-height:100dvh}
 body.game-capital-view .game-layout{height:100dvh}
 body.game-capital-view .national-capital-wrap.has-phone-city-zoom{padding:0;align-items:flex-start;justify-content:flex-start;height:100dvh;overflow:auto;touch-action:none;overscroll-behavior:contain}
 body.game-capital-view .national-capital-wrap.has-phone-city-zoom.phone-city-overview{align-items:flex-start}
 body.game-capital-view .has-phone-city-zoom .national-capital.settlement-v2{width:var(--phone-city-width);height:auto;min-width:0;margin-inline:auto;aspect-ratio:var(--city-ratio);background-size:100% 100%;--desktop-city-scale:1}
 body.game-capital-view .has-phone-city-zoom .capital-site,
 body.game-capital-view .has-phone-city-zoom .capital-site[data-building=city-walls]{aspect-ratio:var(--landscape-site-aspect,var(--site-aspect,1));--site-image-fit:contain;transform:translate(calc(-1 * var(--site-anchor-x,50%)),calc(-1 * var(--site-anchor-y,80.078125%)))}
 body.game-page.game-capital-view #app .resource-bar{top:8px;left:50%;right:auto;display:flex;flex-wrap:nowrap;gap:6px;max-width:calc(100vw - 180px);width:max-content;padding:5px 8px 14px;transform:translateX(-50%)}
 body.game-page.game-capital-view #app .resource-card{gap:2px;min-width:0}
 body.game-page.game-capital-view #app .resource-card img{width:14px;height:14px;min-width:14px}
 body.game-page.game-capital-view #app .resource-card strong{font-size:10px;white-space:nowrap;-webkit-text-stroke:0}
 body.game-page .map-menu-toggle img{width:55px;height:55px}
 body.game-page .map-menu{top:4px;left:max(6px,env(safe-area-inset-left))}
 body.game-page #map-menu-items{max-height:calc(100dvh - 65px);overflow-y:auto}
 body.game-capital-view .city-zoom-controls{display:flex;position:fixed;z-index:80;left:auto;bottom:4px;right:max(6px,env(safe-area-inset-right));transform:none;align-items:center;padding:3px 4px;gap:3px;border:1px solid #b79557;border-radius:6px;background:#f3dfbd url(/assets/empire-parchment.webp) center/cover;color:#392617;box-shadow:0 3px 12px #0008}
 body.game-capital-view .city-zoom-controls button{min-height:32px;height:32px;width:32px;min-width:32px;padding:0 4px;font-size:19px;line-height:1.15}
 body.game-capital-view .city-zoom-controls .city-zoom-fit{width:72px;font-size:10px;white-space:nowrap}
 body.game-capital-view .city-zoom-controls output{font-size:10px;width:32px}
 body.game-page .game-media-footer{bottom:4px;font-size:10px}
 body.game-page .capital-construction{right:8px;max-width:240px}
 body.game-page .landscape-fullscreen:not([hidden]){display:block;position:fixed;z-index:180;top:max(5px,env(safe-area-inset-top));right:max(6px,env(safe-area-inset-right));padding:8px;border:1px solid #b79557;border-radius:4px;background:#efdab4;color:#3e291b;font:700 11px Arial}
 body.game-army-view .game-layout,body.game-campaigns-view .game-layout,body.game-empire-view .game-layout{padding-top:70px}
 body.game-page .building-quick-window,body.game-page .stable-info-dialog{max-height:calc(100dvh - 24px);overflow:auto}
}
@media (orientation:landscape) and (pointer:coarse) and (max-height:600px) and (max-width:760px) {
 body.game-page.game-capital-view #app .resource-bar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2px 8px;width:calc(100vw - 180px);max-width:none;top:3px;padding:4px 7px 12px}
}
