@charset "UTF-8";
/* Local 2D world art. The camera owns only the viewport and world transform. */
#map-world { isolation:isolate; background:#c6d5a5; }
#map-world .map-terrain { z-index:0; pointer-events:none; }
.road-lines,.route-preview { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; overflow:visible; }
.road-lines { z-index:1; }
.road-edge { fill:none; stroke:#b5ab87; stroke-width:1.55; stroke-linejoin:round; stroke-linecap:round; opacity:.7; }
.road-center { fill:none; stroke:#f3e6b8; stroke-width:1.05; stroke-linejoin:round; stroke-linecap:round; }
.road-edge.pass-road { stroke:#948e72; stroke-width:1.9; }
.map-pass rect { fill:#c9af80; stroke:#8e825f; stroke-width:.2; }
.map-pass path { fill:none; stroke:#7f7c60; stroke-width:.22; }
.route-preview { z-index:2; }
.route-preview-line { fill:none; stroke:#308b77; stroke-width:.27; stroke-dasharray:.5 .7; opacity:.16; }
#map-world .march-lines { z-index:2; }
#map-world .march-line { stroke-width:.3; vector-effect:none; stroke-dasharray:.55 .7; opacity:.7; fill:none; stroke-linecap:round; stroke-linejoin:round; }
#map-world .march-line.player { stroke:#1b7f6e; }
#map-world .march-line.ai { stroke:#be6254; opacity:.38; }
#map-world .world-annotations { position:absolute; inset:0; z-index:2; pointer-events:none; }
.pass-caption { position:absolute; transform:translate(-50%,25px); white-space:nowrap; color:#69745d; font-size:12px; letter-spacing:2px; text-shadow:0 1px #f4f2d3; }
.pass-caption i { display:block; text-align:center; color:#a3926d; font-style:normal; font-size:16px; margin-bottom:2px; }
#map-world .building-layer { z-index:3; }
#map-world .building { --faction:#b2a181; --faction-deep:#867b63; position:absolute; width:116px; height:130px; padding:0; background:transparent; border:0; border-radius:24px; transform:translate(-50%,-50%); justify-content:flex-start; gap:0; filter:drop-shadow(0 3px 2px #657c4820); }
#map-world .building.owner-player { --faction:#3a9b8a; --faction-deep:#236b64; }
#map-world .building.owner-ai { --faction:#cf715f; --faction-deep:#a05044; }
#map-world .building-base,#map-world .building.capital .building-base { display:block; position:relative; width:110px; height:98px; margin:0; padding:0; border:0; background:transparent; box-shadow:none; border-radius:0; transition:filter .15s; }
#map-world .building.capital { width:132px; height:143px; }
#map-world .building.capital .building-base { width:126px; height:110px; }
#map-world .building-art { display:block; width:100%; height:100%; overflow:visible; transform-origin:50% 85%; }
#map-world .building.owner-player .building-art { filter:drop-shadow(0 0 2px #e9ffe0b0); }
#map-world .building-count { position:absolute; left:50%; bottom:0; min-width:34px; padding:1px 8px 3px; border:2px solid #fff4d4; border-radius:9px; font-size:25px; line-height:1; background:var(--faction-deep); color:#fff7de; text-shadow:0 1px 1px #233f36; box-shadow:0 2px 3px #465a4030; transform:translateX(-50%); z-index:3; }
#map-world .building.owner-neutral .building-count { background:#8c876e; }
#map-world .building-owner-mark { position:absolute; font-size:9px; letter-spacing:1px; opacity:1; top:99px; left:50%; transform:translateX(-50%); color:var(--faction-deep); white-space:nowrap; }
#map-world .building.capital .building-owner-mark { top:110px; }
#map-world .building-name { font-size:13px; line-height:1.3; letter-spacing:1px; margin-top:15px; padding:3px 6px; background:#f0edcebf; border-radius:5px; font-weight:600; text-shadow:none; color:#586548; white-space:nowrap; }
#map-world .building.owner-player .building-name { color:#226859; }
#map-world .building.owner-ai .building-name { color:#934f43; }
#map-world .building-water { top:59px; right:5px; width:22px; height:21px; line-height:18px; font-size:17px; color:#348e9a; border-color:#83b5b3; background:#c7e8df; }
#map-world .building-shield { bottom:auto; top:1px; left:15px; transform:translateX(-50%); font-size:11px; padding:3px 6px; border-radius:6px; box-shadow:0 2px 4px #54839922; }
#map-world .building-trap { top:58px; left:1px; font-size:17px; filter:drop-shadow(0 1px 1px #fff); }
#map-world .building:hover .building-base { transform:translateY(-2px); filter:brightness(1.06); }
#map-world .building.selected .building-base { box-shadow:none; transform:none; }
#map-world .building.selected:before { content:""; position:absolute; width:107px; height:45px; border:3px solid #378f72; border-radius:50%; top:65px; box-shadow:0 0 0 5px #ffffdfb0; background:#79d5a52b; animation:selection-ring 1.4s ease-in-out infinite; }
#map-world .building.capital.selected:before { top:75px; width:124px; }
#map-world .building.shielded .building-base:before { content:""; position:absolute; inset:-7px -2px 0; z-index:2; border:2px solid #8ed2dc; border-radius:48% 48% 42% 42%; background:linear-gradient(145deg,#c5f6f530,#81d5ea16); box-shadow:inset 0 0 15px #edffffb0,0 0 7px #80bac252; pointer-events:none; animation:shield-pulse 2s ease-in-out infinite; }
#map-world .building.under-attack .building-art { animation:town-impact .4s ease-out; filter:sepia(.8) saturate(2) drop-shadow(0 0 8px #dd934d); }
#map-world .building.just-captured .building-art { animation:town-capture 1.6s ease-out; }
#map-world .building.just-captured .town-flag { animation:flag-rise 1.6s ease-out; }
#map-world .army-layer { z-index:4; }
/* R4 marches and melee use approved sprite canvases in r4-art.js. */
#map-world .effect-layer { z-index:5; }
.combat-effect { position:absolute; width:120px; height:100px; transform:translate(-50%,-50%); pointer-events:none; --effect-color:#eac77b; }
.combat-effect.ai { --effect-color:#e8ab83; }
.combat-label { position:absolute; left:50%; top:-18px; transform:translateX(-50%); font-size:14px; color:#226d5e; letter-spacing:1px; white-space:nowrap; text-shadow:0 1px 0 #fff6db,1px 0 #fff6db,-1px 0 #fff6db,0 -1px #fff6db; animation:combat-float 1.9s ease-out both; }
.combat-effect.ai .combat-label { color:#a45040; }.effect-siege .combat-label { display:none; }
.impact-ring { position:absolute; width:75px; height:45px; border:4px solid #f6df9f; border-radius:50%; left:23px; top:31px; box-shadow:0 0 0 2px #c3a46c55; animation:impact-ring .65s ease-out both; }
.smoke { position:absolute; width:28px; height:28px; border-radius:50%; background:#e6d8b7; opacity:0; filter:blur(2px); top:45px; left:48px; animation:battle-smoke 1.6s ease-out both; }.smoke-1 { --smoke-x:-43px; --smoke-y:-33px; }.smoke-2 { --smoke-x:40px; --smoke-y:-45px; animation-delay:.1s; background:#b4b5a1; width:33px; height:33px; }.smoke-3 { --smoke-x:-10px; --smoke-y:-65px; animation-delay:.2s; background:#f0e2bb; }
.impact-spark { position:absolute; left:56px; top:40px; width:4px; height:21px; background:#fff1b5; box-shadow:0 0 7px #ffc557; animation:battle-spark .5s ease-out both; }.spark-1 { --spark-x:-29px; --spark-rotation:-40deg; }.spark-2 { --spark-x:27px; --spark-rotation:40deg; animation-delay:.15s; }
.effect-capture .impact-ring { border-color:#eaffc3; animation:impact-ring 1.1s ease-out both; }.effect-shield .combat-label { color:#388ba0; }.effect-trait .combat-label { color:#9772ae; }
.world-paused *,.world-paused *:before,.world-paused *:after { animation-play-state:paused!important; }
@keyframes selection-ring { 50% { opacity:.6; transform:scale(1.05); } }
@keyframes town-impact { 15%,60% { transform:translate(-4px,1px) rotate(-4deg); } 35%,80% { transform:translate(4px,1px) rotate(4deg); } }
@keyframes town-capture { 0% { opacity:.35; transform:scale(.85,.55) rotate(-8deg); filter:sepia(1); } 30% { opacity:.7; transform:scale(.9,.7) rotate(5deg); } 62% { opacity:1; transform:scale(1.04,1.08); } 100% { transform:none; } }
@keyframes flag-rise { 0%,30% { opacity:0; transform:translateY(28px) scaleY(.1); } 65% { opacity:1; transform:translateY(-5px); } 100% { transform:none; } }
@keyframes aura-breathe { 50% { opacity:.35; } }
@keyframes combat-float { 0% { opacity:0; translate:0 10px; } 15%,70% { opacity:1; } 100% { opacity:0; translate:0 -35px; } }
@keyframes impact-ring { from { opacity:1; scale:.2; } to { opacity:0; scale:1.7; } }
@keyframes battle-smoke { 10% { opacity:.85; scale:.5; } 60% { opacity:.55; } 100% { opacity:0; translate:var(--smoke-x) var(--smoke-y); scale:2; } }
@keyframes battle-spark { from { opacity:1; transform:rotate(var(--spark-rotation)); } to { opacity:0; translate:var(--spark-x) -30px; transform:rotate(var(--spark-rotation)) scale(.3); } }
@media(prefers-reduced-motion:reduce) { #map-world *,#map-world *:before,#map-world *:after { animation:none!important; } }
