/* ARMY CHESS permanent brand tokens. See BRAND-GUIDE.md. */
.army-chess-wrap{--ac-target:#dc6457;--ac-brass:#d5bd81;--ac-ink:#192318;--ac-paper:#c8b68b;--ac-reticle:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20100%20100%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%221.6%22%3E%3Cpath%20d%3D%22M50%209v23M50%2068v23M9%2050h23M68%2050h23%22%2F%3E%3Cpath%20d%3D%22M29%2023h-6v6M71%2023h6v6M23%2071v6h6M77%2071v6h-6%22%2F%3E%3Ccircle%20cx%3D%2250%22%20cy%3D%2250%22%20r%3D%221.4%22%20fill%3D%22white%22%20stroke%3D%22none%22%2F%3E%3C%2Fsvg%3E")}
.army-chess-wrap[data-reticle=bracket]{--ac-reticle:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20100%20100%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%221.6%22%3E%3Cpath%20d%3D%22M30%2017H17v13M70%2017h13v13M17%2070v13h13M83%2070v13H70M45%2050h10M50%2045v10%22%2F%3E%3C%2Fsvg%3E")}.army-chess-wrap[data-reticle=scope]{--ac-reticle:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20100%20100%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%221.6%22%3E%3Ccircle%20cx%3D%2250%22%20cy%3D%2250%22%20r%3D%2229%22%2F%3E%3Cpath%20d%3D%22M50%2010v25M50%2065v25M10%2050h25M65%2050h25%22%2F%3E%3C%2Fsvg%3E")}
.army-chess-wrap .ac-square.legal[data-capture=yes]::after{inset:8%;width:84%;height:84%;border:0;border-radius:0;background:var(--ac-target);mask-image:var(--ac-reticle);mask-size:100% 100%;-webkit-mask-image:var(--ac-reticle);-webkit-mask-size:100% 100%;z-index:5;filter:drop-shadow(0 0 1px #241312)}
.army-chess-wrap .ac-piece-tag{display:flex;align-items:center;justify-content:center;width:14px;height:15px;min-width:14px;padding:1px;line-height:1;border-radius:1px;right:0;bottom:0}
.ac-piece-icon{display:none;width:11px;height:12px}.army-chess-wrap[data-tags=icons] .ac-piece-icon{display:block}.army-chess-wrap[data-tags=icons] .ac-piece-letter{display:none}
.army-chess-wrap[data-bases=off] .ac-piece.w>.ac-sprite{background-image:url('sprites/runtime/sand-nobase.webp')}.army-chess-wrap[data-bases=off] .ac-piece.b>.ac-sprite{background-image:url('sprites/runtime/olive-nobase.webp')}
.army-chess-wrap[data-effects=on] .ac-piece:not(.type-r)>.ac-sprite:not(.ac-sprite-legs){animation:ac-respire var(--breath,4.7s) ease-in-out var(--delay,-1.3s) infinite!important;transform-origin:50% 65%}
@keyframes ac-respire{0%,100%{transform:translate(0,0) rotate(0)}30%{transform:translate(.18px,-.5px) rotate(.18deg)}55%{transform:translate(.08px,-.65px) rotate(.08deg)}80%{transform:translate(-.1px,-.15px) rotate(-.1deg)}}
.army-chess-wrap[data-effects=on] .ac-piece.w[data-idle-pose]>.ac-sprite:not(.ac-sprite-legs){background-image:url('sprites/runtime/sand-idle.webp');animation:ac-inspect 2.8s ease-in-out!important}
.army-chess-wrap[data-effects=on] .ac-piece.b[data-idle-pose]>.ac-sprite:not(.ac-sprite-legs){background-image:url('sprites/runtime/olive-idle.webp');animation:ac-inspect 2.8s ease-in-out!important}
@keyframes ac-inspect{0%,100%{transform:rotate(0)}40%{transform:rotate(-1.2deg) translateY(.5px)}70%{transform:rotate(.5deg)}}
.army-chess-wrap .ac-combat-canvas{z-index:20;pointer-events:none}.army-chess-wrap .ac-atmos-canvas{display:none}
.ac-capture-victim{position:absolute;z-index:8;display:grid;place-items:center;pointer-events:none}.ac-capture-victim>.ac-piece{width:90%;height:90%}
.army-chess-wrap .ac-aim-ghost .ac-piece>.ac-sprite:not(.ac-sprite-legs){animation:ac-ready-weapon .28s steps(3) both!important}
.army-chess-wrap .ac-aim-ghost .ac-piece>.ac-sprite-legs{animation:none!important}
@keyframes ac-ready-weapon{0%{transform:rotate(-4deg) translateX(-1px)}40%{transform:rotate(-2deg) translateX(-2px)}80%{transform:rotate(1deg) translateX(1px)}100%{transform:rotate(0)}}
.ac-range-row{display:flex;align-items:center;gap:9px}.ac-range-row input{flex:1;min-width:0}.ac-range-row output{font:600 11px Barlow,sans-serif;min-width:40px;text-align:right;color:#d7c997}
.army-chess-wrap .ac-settings-tabs{flex-wrap:wrap}.army-chess-wrap .ac-settings-tabs button{min-width:95px}
.army-chess-wrap .ac-setting-grid{align-items:start}.army-chess-wrap .ac-field{min-width:0}
.army-chess-wrap[data-board-style=generated] .ac-square.light{background:rgb(224 218 179 / calc(var(--ac-grid-opacity)*.78))}.army-chess-wrap[data-board-style=generated] .ac-square.dark{background:rgb(22 34 20 / calc(var(--ac-grid-opacity)*.78))}
@media(min-width:1101px){.army-chess-wrap .ac-command{max-width:min(100%,calc((100dvh - 200px)*var(--ac-user-board-scale,1)))}.army-chess-wrap[data-app=bomber] .ac-command{max-width:min(100%,calc((100dvh - 235px)*var(--ac-user-board-scale,1)))}}
@media(max-width:760px){.army-chess-wrap .ac-shell{padding-left:4px;padding-right:4px}.army-chess-wrap .ac-piece-tag{width:12px;min-width:12px;height:13px}.ac-piece-icon{width:9px;height:10px}.army-chess-wrap .ac-settings-tabs{gap:4px}.army-chess-wrap .ac-settings-tabs button{font-size:10px;min-width:0;padding:9px 6px}}
@media(prefers-reduced-motion:reduce){.army-chess-wrap[data-effects=on] .ac-piece>.ac-sprite{animation:none!important}}

