/* YASA objective language · charcoal / bronze · presentation only.
   Fortress = Stronghold. Pennon = Standard. Three-part seal = earned Dominion. */
:root{--objective-bronze:#c49c70;--objective-light:#d0aa7f;--objective-ink:#17191b;--objective-ease:cubic-bezier(.22,.72,.18,1)}
.objective-icon{display:block;width:64px;height:64px;flex:none;color:var(--objective-light);overflow:visible;pointer-events:none}
.objective-metal{fill:#c49c701f}.seal-outline{stroke:#c49c7055;stroke-width:1}.seal-segment{fill:#30373c;stroke:#6b7278;stroke-width:1.5}.seal-segment.earned{fill:var(--objective-bronze);stroke:#eee6d7}
/* Permanent architecture uses the card's side gutters, so a garrison never hides it. */
body[data-screen="battle"] .cell.objective-fort{background:linear-gradient(135deg,#493f34,#23292e 50%,#493f34);border:2px solid var(--objective-light);box-shadow:inset 0 0 0 2px #17191b,inset 0 0 0 3px #c49c7080}
.cell.objective-fort:after,.cell.standard:before{display:none!important}
.stronghold-architecture{position:absolute;inset:0;pointer-events:none;color:var(--objective-light);z-index:2;overflow:hidden}
.stronghold-architecture>.objective-icon{position:absolute;width:67%;height:67%;left:16.5%;top:10%;opacity:.8}
.fortress-tower{position:absolute;top:12%;bottom:15%;width:14%;background:linear-gradient(90deg,#c49c70,#645442);border:1px solid #d0aa7f;clip-path:polygon(0 0,30% 0,30% 9%,65% 9%,65% 0,100% 0,100% 100%,0 100%)}
.fortress-tower:after{content:"";position:absolute;top:26%;bottom:20%;left:38%;width:25%;background:repeating-linear-gradient(#17191b 0 3px,transparent 3px 9px)}
.fortress-tower.west{left:2px}.fortress-tower.east{right:2px;transform:scaleX(-1)}
.fortress-name{position:absolute;bottom:0;left:0;right:0;font:700 clamp(6px,calc(var(--cell)*.115),13px)/1.35 Source,sans-serif;letter-spacing:.035em;text-transform:uppercase;color:#17191b;background:#c49c70;border-top:1px solid #d0aa7f;text-align:center}
.fortress-allegiance{position:absolute;right:2px;top:1px;color:var(--army-ink,var(--fort-ink));text-transform:uppercase;font:700 clamp(6px,calc(var(--cell)*.08),9px)/1.2 Source,sans-serif;letter-spacing:.04em}
body[data-screen="battle"] .cell.objective-fort .unit-card{position:relative;z-index:3;display:block;width:76%;height:80%;margin:4% auto 0}
.cell.objective-fort:not(.empty) .stronghold-architecture>.objective-icon{opacity:.2}
body[data-screen="battle"] .cell:is(.fort-occupied,.fort-claimed){box-shadow:inset 0 0 0 2px #17191b,inset 0 0 0 4px var(--army-ink)}
.cell.fort-claimed .fortress-name{color:#17191b;background:var(--army-ink);border-color:var(--army-ink)}
.cell.objective-fort .coordinate{z-index:5}
/* Standards have pennons, a geometric ground seal and distinct troop ownership. */
body[data-screen="battle"] .cell.standard{background:radial-gradient(ellipse at 50% 42%,#655442,#302d28);box-shadow:inset 0 0 0 2px #17191b,inset 0 0 0 3px #c49c7055}
.standard-landmark{position:absolute;inset:0;pointer-events:none;z-index:2;color:var(--objective-light)}
.standard-landmark:before{content:"";position:absolute;inset:16%;border:1px solid #c49c7066;transform:rotate(45deg);border-radius:6px}
.standard-landmark>.objective-icon{position:absolute;width:66%;height:66%;left:17%;top:6%}
.standard-landmark>span{position:absolute;bottom:7%;left:0;right:0;text-align:center;font:600 clamp(6px,calc(var(--cell)*.105),12px)/1 Source,sans-serif;letter-spacing:.08em;text-transform:uppercase;color:var(--objective-light)}
.cell.standard:not(.empty) .standard-landmark>.objective-icon{left:auto;right:1px;top:26%;width:19%;height:42%;filter:drop-shadow(0 1px 2px #17191b)}
.cell.standard:not(.empty) .standard-landmark>span{bottom:0;line-height:1.4;background:#17191bef;font-size:clamp(6px,calc(var(--cell)*.105),12px);letter-spacing:.04em}
body[data-screen="battle"] .cell.standard .unit-card{position:relative;display:block;height:83%;width:80%;margin:1% auto 0;z-index:1}
.cell.standard:not(.empty) .standard-landmark:before{inset:3%;border-radius:0;transform:none}
.cell.standard-held .standard-landmark>.objective-icon{color:var(--army-ink)}
.cell.standard-held .standard-landmark:before{border-color:var(--objective-light)}
body[data-screen="battle"] .cell.standard-winning{box-shadow:inset 0 0 0 3px var(--objective-light)}
/* Preserve selection/preview/attack outlines over objective decoration. */
.cell .target,.cell .command-mark,.cell .preview-badge,.cell .spent{z-index:6}
.dominion-medallion{flex:none;width:38px;height:38px}
.dominion-medallion .objective-icon{width:100%;height:100%}
.dominion-side{gap:7px;min-width:0;padding:1px 7px}
.dominion-owner small{display:block;font:400 12px/1.2 Source,sans-serif;margin-top:4px;color:var(--muted);white-space:nowrap}
.dominion-side b{color:var(--objective-light)}
.dominion-side.point-earned{animation:objective-score 850ms var(--objective-ease)}
.point-earned .dominion-medallion{animation:objective-stamp 600ms var(--objective-ease)}
.point-earned .seal-segment.newest{animation:objective-engrave 650ms ease-out}
.field-toolbar .objective-help{color:var(--objective-light);border-color:#c49c7099}
body[data-screen="battle"] .selection-hint.objective-warning{display:flex;gap:8px;align-items:center;margin:0;padding:5px 8px;border-left:3px solid var(--objective-light);background:#c49c7012;border-radius:3px;line-height:1.25}
.objective-warning>.objective-icon{width:29px;height:29px}.objective-warning>div{min-width:0}.objective-warning strong{display:block;font-size:13px}.objective-warning span{display:block;font-size:12px;margin-top:2px;color:var(--muted)}
.objective-warning.danger{border-color:var(--red)!important}.objective-warning.danger strong,.objective-warning.danger>.objective-icon{color:var(--red)}
.objective-warning.winning{border-color:var(--blue)!important}.objective-warning.winning strong,.objective-warning.winning>.objective-icon{color:var(--blue)}
/* The same visual vocabulary teaches objectives on the home page and in-game. */
.campaign-objectives{padding:90px max(28px,calc((100vw - 1280px)/2));background:radial-gradient(ellipse at 50% 80%,#c49c7010,transparent 65%),var(--ink);border-bottom:1px solid var(--line)}
.campaign-objectives .section-heading{padding:0;margin:0 0 30px}.campaign-objectives h2{font:400 clamp(32px,4vw,54px)/1.16 Literata,serif;letter-spacing:-.035em}.campaign-objectives .objective-intro{display:none}
.objective-guide{max-width:1200px;margin:auto}.objective-intro{color:var(--muted);font-size:18px;margin:0 0 24px}
.victory-routes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;border-block:1px solid var(--bronze-line)}
.victory-routes article{padding:32px 28px;background:linear-gradient(145deg,#c49c7008,transparent)}
.victory-routes article+article{border-left:1px solid var(--bronze-line)}
.victory-routes article>.objective-icon{width:82px;height:82px;margin:0 0 28px}
.victory-routes .eyebrow{font-size:10px;letter-spacing:.13em}.victory-routes h3{font:400 clamp(20px,2.1vw,27px)/1.3 Literata,serif;margin:10px 0 16px;color:var(--text)}
.victory-routes p{font-size:15px;line-height:1.65;color:var(--muted);margin:0}.victory-routes strong{color:var(--text);font-weight:600}
.victory-routes small{display:block;margin-top:13px;font-size:12px;line-height:1.5;color:var(--muted)}
.objective-reading{display:flex;gap:18px;align-items:center;padding:24px 0;color:var(--muted)}.objective-reading>.objective-icon{width:40px;height:50px}.objective-reading p{font-size:13px;line-height:1.6;margin:0}.objective-reading strong{font-weight:600;color:var(--text)}
dialog:has(.objective-guide){width:min(1050px,94vw)}
.exchange-square.demo-fort{border:2px solid var(--objective-light);box-shadow:inset 0 0 0 2px #17191b,inset 0 0 0 3px #c49c7066;background:#493f34}
.exchange-square.demo-fort>img{position:relative;z-index:2;width:72%;height:90%;margin:auto;display:block}
.exchange-square>.demo-fort-mark,.exchange-square>.demo-standard-mark{position:absolute;inset:4%;pointer-events:none;padding:0;display:grid;place-items:center;background:none}
.demo-fort-mark>.objective-icon,.demo-standard-mark>.objective-icon{width:80%;height:80%}
.exchange-square.standard:after{display:none}
.result-objective{display:flex;justify-content:center;margin:-10px 0 20px}.result-objective>.objective-icon{width:88px;height:88px;animation:objective-stamp 600ms var(--objective-ease) both}
.battle-result:has(.result-objective) .result-banner.result-yasa{width:110px;height:107px;margin-bottom:20px}
.motion-standard,.motion-stronghold,.motion-claim{color:var(--objective-light)}
.motion-release{color:#bbc0c3}
.objective-award-layer{position:fixed;inset:0;z-index:26;pointer-events:none;overflow:hidden;contain:strict}
.objective-award-layer svg{width:100%;height:100%;overflow:hidden}
@keyframes objective-score{0%,35%{box-shadow:inset 0 0 0 1px #d0aa7f,0 0 16px #c49c7040}100%{box-shadow:none}}
@keyframes objective-stamp{0%{opacity:.4;transform:scale(1.16)}65%{opacity:1;transform:scale(.97)}100%{transform:scale(1)}}
@keyframes objective-engrave{from{fill:#eee6d7}to{fill:#c49c70}}
@media(max-width:1199px){.dominion-owner small{display:none}.dominion-medallion{width:34px;height:34px}.dominion-side{gap:5px}}
@media(max-width:899px){.dominion-label{width:60px}.dominion-medallion{width:32px;height:32px}.dominion-side{max-width:210px;padding:1px 4px}.dominion-side b{font-size:22px}.dominion-held{font-size:12px}.campaign-objectives{padding:50px 24px}.victory-routes article{padding:24px 18px}.victory-routes h3{font-size:22px}}
@media(max-width:600px){.victory-routes{grid-template-columns:1fr}.victory-routes article{padding:26px 0 26px 74px;position:relative}.victory-routes article+article{border-left:0;border-top:1px solid var(--bronze-line)}.victory-routes article>.objective-icon{width:54px;height:54px;position:absolute;left:0;top:26px}.victory-routes h3{font-size:23px}.objective-reading{align-items:flex-start}.dominion-scoreboard{gap:4px}.dominion-side{gap:4px}.dominion-side b{font-size:20px}.dominion-held{display:none}.dominion-owner{font-size:12px}.dominion-medallion{width:32px;height:32px}}
html[data-motion="reduced"] .point-earned,html[data-motion="reduced"] .point-earned *,html[data-motion="reduced"] .result-objective>*{animation:none!important}
@media(prefers-reduced-motion:reduce){html:not([data-motion="full"]) .point-earned,html:not([data-motion="full"]) .point-earned *,html:not([data-motion="full"]) .result-objective>*{animation:none!important}}

@media (max-width:420px) {
  .dominion-side {
    display:grid; grid-template-columns:24px minmax(0,1fr);
    gap:1px 5px; padding:3px 5px; text-align:center;
  }
  .dominion-side .dominion-medallion { grid-row:span 2; width:24px; height:24px; }
  .dominion-side .dominion-owner { line-height:1.2; }
}
