/* Requested map and mailbox presentation; city art and colours are retained. */
#app .map-selection{width:min(290px,calc(100vw - 28px));min-width:0;padding:24px 13px 26px}
#app .map-selection>strong{font-size:13px}
#app .map-selection>.map-selection-capital{margin-top:1px}
#app .map-selection .map-selection-capital img{width:16px;height:14px}
#app :is(.map-selection,.campaign-coordinate-dialog) .map-player-profile{display:grid;grid-template-columns:30px minmax(0,1fr) 30px;gap:2px 0;margin:7px 0 4px;text-align:center;position:relative}
#app :is(.map-selection,.campaign-coordinate-dialog) .map-player-portrait{grid-column:2;grid-row:auto;width:36px;height:36px;margin:0;justify-self:center}
#app :is(.map-selection,.campaign-coordinate-dialog) .player-avatar{width:36px;height:36px}
#app :is(.map-selection,.campaign-coordinate-dialog) .map-player-name,#app :is(.map-selection,.campaign-coordinate-dialog) .map-player-guild,#app :is(.map-selection,.campaign-coordinate-dialog) .map-player-score,#app :is(.map-selection,.campaign-coordinate-dialog) .map-message-link{grid-column:2;min-width:0;margin:0;text-align:center}
#app :is(.map-selection,.campaign-coordinate-dialog) .map-player-name{font-size:14px}
#app :is(.map-selection,.campaign-coordinate-dialog) .map-player-guild{font-size:11px;line-height:1.3}
#app :is(.map-selection,.campaign-coordinate-dialog) .map-player-score{font-size:11px}
#app .map-selection .map-selection-actions{margin-top:7px;gap:5px}
body.game-map-view #app .map-search{bottom:calc(52px + env(safe-area-inset-bottom))}
#app .map-grid.isometric .map-leftover-marker{font-size:23px}
#app .messages-panel .message-tabs{grid-template-columns:repeat(5,minmax(0,1fr))}
#app .messages-panel .message-tabs button{min-width:0;padding:9px 3px;letter-spacing:.02em;font-size:clamp(10px,1.55vw,15px);overflow-wrap:anywhere;gap:4px}
body.game-page[data-game-nation] #app .campaigns-panel>h1{color:#ffebbe}
body.game-page.game-bulgarian-empire #app .campaigns-panel>h1{color:#382719}
@media(orientation:landscape) and (max-height:500px){#app .map-selection{left:auto;right:12px;bottom:14px;transform:none;max-height:calc(100dvh - 82px);overflow:auto}}

body.game-page.game-national-empire[data-game-nation] #app .campaigns-panel>h1{color:var(--nation-light)}




/* Keep all status badges outside the centered portrait and text column. */
#app :is(.map-selection,.campaign-coordinate-dialog) .map-profile-status-side,#app :is(.map-selection,.campaign-coordinate-dialog) .map-player-profile>.map-profile-diplomacy{position:absolute;top:50%;bottom:auto;transform:translateY(-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;width:26px;pointer-events:none;z-index:2}
#app :is(.map-selection,.campaign-coordinate-dialog) .map-profile-status-left,#app :is(.map-selection,.campaign-coordinate-dialog) .map-player-profile>.map-profile-diplomacy{left:0;right:auto}
#app :is(.map-selection,.campaign-coordinate-dialog) .map-profile-status-right{left:auto;right:0}

