@charset "UTF-8";
/* Functional mode/garrison presentation. R7 concept art integration is pending. */
.mode-panel{margin-top:16px;padding:12px 16px;background:#fff9e8;border:1px solid #c8b077;border-radius:6px;display:flex;align-items:center;gap:16px;justify-content:space-between}
.mode-panel h2{font-size:14px;color:#284d4b}.mode-panel p{font-size:11px;color:#776b51;margin-top:5px}
.mode-buttons{display:flex;gap:6px;flex-wrap:wrap}.mode-buttons button{padding:7px 14px;min-height:48px;color:#36544e;background:#f4ecd7;border:1px solid #c1ae83;border-radius:5px;font-size:12px}
.mode-buttons small{display:block;font-size:10px;margin-top:4px;opacity:.78}.mode-buttons button[aria-pressed="true"]{color:#fff2cf;background:#244b4c;border-color:#aa904f}
.mode-buttons button:disabled{background:#e9e6dd;color:#858177;cursor:not-allowed;border-style:dashed}
.faction-team-badge{position:absolute;right:1px;top:1px;font:9px/1.2 system-ui,sans-serif;background:#276e64;color:#fff8df;padding:2px 3px;border-radius:2px}
.faction-team-badge.enemy{background:#865645}
.garrison-inspector{font-size:12px;line-height:1.7;padding:9px 0;color:#294f49;border-bottom:1px solid #cbb88c}
#map-world .garrison-count{position:absolute;top:-16px;left:50%;transform:translateX(-50%);font-size:12px;background:#f6f4dc;color:#174f51;padding:3px 7px;border:1px solid #498d91;border-radius:4px;white-space:nowrap;z-index:5}
#map-world .direct-road .road-center{stroke:#39a994;stroke-width:1.05}
#map-world .reachable-road .road-center{stroke:#bd954c;stroke-dasharray:1.1 .6;stroke-width:.8}
#map-world .direct-target .building-base{filter:drop-shadow(0 0 6px #32bba4)}
#map-world .reachable-target .building-base{filter:drop-shadow(0 0 5px #d6ad53)}
body[data-mode="team5"] #battle-screen .battle-scoreboard,body[data-mode="team3"] #battle-screen .battle-scoreboard,body[data-mode="ffa6"] #battle-screen .battle-scoreboard{max-height:calc(100dvh - 320px);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;pointer-events:auto}
#map-world[data-mode]:not([data-mode="legacy4"]) .map-backdrop{object-fit:cover}
@media(max-width:900px){.mode-panel{align-items:flex-start;flex-direction:column;gap:10px}.mode-buttons{width:100%}.mode-buttons button{flex:1;padding:7px 9px;white-space:nowrap}}
@media(max-height:520px) and (orientation:landscape){
  body[data-mode="team5"] #battle-screen .battle-scoreboard,body[data-mode="team3"] #battle-screen .battle-scoreboard,body[data-mode="ffa6"] #battle-screen .battle-scoreboard{max-height:112px}
}
@media(max-width:500px){.mode-buttons button{flex:1 1 27%}.mode-panel{padding:12px}}
