/* A shared painted stage. Hit targets remain stationary while the actors move. */
.game-focus.battle-layout .standing-battle{background-image:linear-gradient(#10141b38,#10141b48),var(--battle-ground);background-size:cover;background-position:center;border:1px solid #877450;box-shadow:inset 0 0 35px #0b10167a;gap:0}
.standing-battle:after{display:none}.standing-battle>.battle-backdrop{display:none}
.standing-battle .formation-band{position:relative;flex:1 0 auto;justify-content:center;min-height:0}
.standing-battle .combat-row-scroll{padding:7px 3px 4px;scrollbar-width:thin}
.standing-battle [data-row-scroll$="-1"]{padding-inline:3px}
.standing-battle .battle-frontier{height:10px;min-height:10px;margin:0;background:none}
.standing-battle .battle-frontier:before,.standing-battle .battle-frontier:after{display:none}
.game-focus.battle-layout .standing-battle .combatant,.game-focus.battle-layout .standing-battle .combatant.active,.game-focus.battle-layout:has(.action-preview) .standing-battle .combatant{background:transparent;box-shadow:none;border:1px solid transparent;outline:none;padding:2px 2px 4px;animation:none;min-height:0;gap:2px;opacity:1;filter:none;overflow:visible}
.standing-battle .combatant:before,.standing-battle .combatant:after{display:none!important}
.standing-battle .combatant:hover{background:transparent}
.game-focus.battle-layout .standing-battle .combatant:focus-visible{outline:2px solid #ffe1a0;border-radius:8px;outline-offset:-2px}
.game-focus.battle-layout .standing-battle .combatant.target-muted:not(.active){opacity:.43;filter:saturate(.5)}
.game-focus.battle-layout .standing-battle .combatant.ko{opacity:1;filter:none}
.game-focus.battle-layout .standing-battle .combatant>.standing-figure,.game-focus.battle-layout:has(.action-preview) .standing-battle .combatant>.standing-figure{display:block;width:100%;max-width:120px;height:clamp(76px,calc((var(--field-height,500px) - 65px)/var(--rank-count,3) - 62px),150px);aspect-ratio:auto;isolation:isolate;overflow:visible}
.standing-figure .body-action,.standing-figure .body-pose,.standing-figure .body-idle{position:absolute;inset:0;display:block;transform-origin:50% 94%;pointer-events:none}
.body-sprite{display:block;width:100%;height:100%;object-fit:contain;object-position:50% 100%;border:0;filter:brightness(1.1) contrast(1.08) drop-shadow(0 1px 1px #e7d4a133) drop-shadow(0 2px 2px #050a13cc);pointer-events:none;user-select:none}
.standing-figure .body-action{bottom:8px}
.standing-figure .figure-ground{position:absolute;left:50%;bottom:-1px;width:min(76%,calc(var(--figure-height,76px)*.7));height:12px;border-radius:50%;background:radial-gradient(ellipse,#03080dcc 15%,#050c1066 55%,transparent 72%);transform:translateX(-50%) scaleX(1.1);z-index:-1}
.figure-ground:after{content:'';position:absolute;inset:0;border:1px solid transparent;border-radius:50%;transform:scale(1.1)}
.standing-battle .active .figure-ground:after{border-color:#ffe19c;background:#f2cf6230;box-shadow:0 0 9px #f6d47388;animation:figure-turn-glow 2.25s ease-in-out infinite}
.standing-battle .target-eligible .figure-ground:after{border-color:#b5f2c0;background:#5fc28430;box-shadow:0 0 7px #b5f2c055;animation:figure-turn-glow 1.95s ease-in-out infinite}
.standing-battle .combatant.ko .body-pose{transform:translateY(22%) rotate(68deg) scale(.8);opacity:.32;filter:grayscale(1)}
.standing-battle .combatant.ko .body-idle,.standing-battle .combatant.state-stun .body-idle{animation:none}
.standing-battle .combatant[data-pending-fall] .body-pose{transform:none;opacity:1;filter:none}
.standing-battle .combatant.ko .figure-ground{opacity:.4}
.standing-battle .combatant.ko>.combat-status,.standing-battle .combatant.ko .standing-types{opacity:.4}
/* Keep layout stable while removing every floating label from a fallen enemy.
   The body remains inspectable; heroes retain their revival/HP information. */
.standing-battle .combatant.ko[data-side="enemy"]:not([data-pending-fall]):not([data-falling])>:not(.standing-figure),
.standing-battle .combatant.ko[data-side="enemy"]:not([data-pending-fall]):not([data-falling]) .standing-types,
.standing-battle .combatant.ko[data-side="enemy"]:not([data-pending-fall]):not([data-falling]) .status-aura,
.standing-battle .combatant.ko[data-side="enemy"]:not([data-pending-fall]):not([data-falling]) .figure-insignia,
.standing-battle .combatant.ko[data-side="enemy"]:not([data-pending-fall]):not([data-falling]) .actor-badge{visibility:hidden;pointer-events:none}
.standing-battle .combatant.ko .figure-art:after,.standing-battle .combatant.ko .figure-ground:after{display:none}
.standing-battle .standing-types{position:static;--badge-size:16px;gap:1px;line-height:0}
.standing-battle .status-aura{inset:12% 6% 1%;z-index:2}
.standing-battle .aura-runes{height:25%;width:100%;top:auto;bottom:-3%;transform:scaleY(.4)}
.standing-battle .state-slow .figure-art:after{border-radius:40% 40% 10% 10%;box-shadow:inset 0 -7px 13px #91d6e77a}
.standing-battle .state-hidden .body-idle{opacity:.5}.standing-battle .state-hidden .body-sprite{filter:drop-shadow(0 0 5px #957cc2)}
.game-focus.battle-layout .standing-battle .combatant>b{font-size:10px;font-weight:600;line-height:13px;min-height:13px;width:fit-content;max-width:min(78%,84px);margin-top:7px;padding:1px 5px 2px;border-radius:2px 2px 6px 6px;border:1px solid #93764570;border-top:0;background:linear-gradient(#211e17e8,#10171be8);box-shadow:inset 0 -1px #c0a36b22;color:#f0dfbb;text-shadow:0 1px 2px #000}
.standing-battle .combatant>.bar{position:relative;width:min(62%,56px);box-shadow:0 1px 3px #000a,inset 0 1px 2px #000;border:1px solid #a68b5990;height:5px;border-radius:3px;background:#111715}
.standing-battle .combatant>.bar>i{background:linear-gradient(#9db68a,#608d69);border-radius:2px}
.standing-battle .combatant[data-side="enemy"]>.bar>i{background:linear-gradient(#c87365,#aa504a)}
.standing-battle .combatant>small{color:#f4ead9;text-shadow:0 1px 3px #000,0 0 3px #000}
.standing-battle .enemy-intent{font-size:9px;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:#131c22c9;border-radius:4px;padding:1px 3px}
.standing-battle .figure-insignia{position:absolute;left:50%;bottom:-6px;transform:translateX(-50%);display:flex;align-items:center;gap:2px;z-index:4;min-height:18px;padding:1px 3px;white-space:nowrap;border:1px solid #9b8053a6;border-radius:9px 9px 3px 3px;background:linear-gradient(#554730,#201e17 45%,#111a19);box-shadow:inset 0 1px #f0d49a40,0 1px 2px #0008;line-height:0}
.standing-battle .figure-insignia:after{content:'';position:absolute;width:4px;height:4px;left:calc(50% - 2px);bottom:-3px;transform:rotate(45deg);background:#9c8050;border:1px solid #d4bb7e70}
.standing-battle .reach-badge{position:static;display:grid;place-items:center;width:16px;height:16px;line-height:0;border:0;border-radius:50%;background:radial-gradient(#4f4933,#1a211d);color:#e3ce9b;box-shadow:inset 0 0 0 1px #b69c5e66;flex:none}
.standing-battle .reach-badge svg{width:13px;height:13px;filter:drop-shadow(0 1px 1px #000)}
.standing-battle .standing-types .element-badge{filter:drop-shadow(0 1px 1px #000);box-shadow:0 0 0 1px #b69c5e55}
.standing-battle .actor-badge{right:max(1px,calc(50% - (var(--figure-height,76px) - 8px)*.4 - 8px));top:3px;width:27px;height:27px;border:1px solid #c6a86a;background:radial-gradient(circle at 40% 25%,#51462f,#211e18 70%);color:#f8e8bc;box-shadow:0 0 0 1px #25231b,0 0 0 2px #a98a4b80,inset 0 0 0 2px #131c1c,inset 0 0 0 3px #8c75474d,0 2px 4px #0009;font:600 11px/1 Georgia,serif}
.standing-battle .actor-badge:after{content:'';position:absolute;bottom:-4px;left:calc(50% - 2px);width:4px;height:4px;transform:rotate(45deg);background:#ad8e52;border:1px solid #e4c48777}
.standing-battle .actor-badge.urgent{background:radial-gradient(#703e29,#3b1e19);border-color:#e8a06b}
.standing-battle .actor-badge.paused{background:radial-gradient(#40535b,#202c32);border-color:#9db8c2}
.standing-battle .actor-badge.enemy-acting{width:23px;height:23px;color:#ebbc91}
.standing-battle .compact-status{width:fit-content;max-width:92%;gap:2px;padding:1px 3px;margin-top:1px;border-top:1px solid #b89a594d;border-radius:8px;background:linear-gradient(#141c1b70,transparent)}
.standing-battle .compact-status .status-symbol{border-radius:50%;border-color:#b298626b;background:radial-gradient(circle at 40% 25%,#414438,#111b1c 75%);box-shadow:inset 0 0 0 1px #101712,0 1px 2px #0007}
.standing-battle .combat-caption,.standing-battle .battle-caption{background:#111c24e6}
.game-focus.battle-layout .standing-battle .combat-empty{border:0;color:transparent;min-height:76px;background:none}
.game-focus.battle-layout .standing-battle .summon-place{border:1px dashed #b4d994;color:#e8f7d1;background:radial-gradient(ellipse at center,#5c883b77,transparent 70%);min-height:90px!important;border-radius:50% 50% 12px 12px}
.standing-battle .initiative-portraits{background:#0c1720a8;border-radius:8px;padding:3px;flex:none}
.standing-battle .target-odds{position:relative;z-index:5;background:#112016f0;border:1px solid #a7cd8f88;min-height:28px;box-shadow:0 2px 6px #0007}
.standing-battle .card-arriving .body-pose{animation:figure-arrive 975ms cubic-bezier(.2,.7,.2,1) both;animation-delay:var(--arrive-delay,0ms)}
.battle-flight-field{position:fixed;z-index:25;pointer-events:none;overflow:hidden;border-radius:12px}
.battle-actor-flight{position:absolute;pointer-events:none;transform-origin:50% 90%;margin:0;padding:0;line-height:0}
.battle-actor-flight .body-pose,.battle-actor-flight .body-idle{display:block;width:100%;height:100%;animation:none;transform:none;opacity:1;filter:none}
.formation-motion-layer .standing-figure{height:100%;max-width:120px}.formation-motion-layer .body-action,.formation-motion-layer .body-pose,.formation-motion-layer .body-idle{position:absolute;inset:0;display:block;transform-origin:50% 94%}
.game-focus.battle-layout .standing-battle.figure-compact .combatant>.standing-figure{height:clamp(46px,calc((var(--field-height) - 48px)/var(--rank-count,3) - 36px),110px)}
.standing-battle.figure-compact .combatant>small{display:none}
.standing-battle.figure-compact .combat-row-scroll{padding-block:2px}
.standing-battle.figure-compact .combatant>.bar{margin:0;height:5px}
.game-focus.battle-layout .standing-battle.figure-compact .combat-empty{min-height:60px}
.standing-battle.figure-compact .initiative-portraits{min-height:24px;height:24px;padding:0;margin-bottom:2px}
.standing-battle.figure-compact .initiative-actor .portrait{width:20px;height:20px}
.game-focus.battle-layout .standing-battle.figure-compact .combatant{gap:0;padding-block:0}
.game-focus.battle-layout .standing-battle.figure-compact .combatant>b{margin-top:5px;padding:1px 3px;line-height:12px;min-height:12px}
.standing-battle.figure-compact .battle-frontier{height:5px;min-height:5px}
.standing-battle.figure-compact .standing-types{--badge-size:14px}
.standing-battle.figure-compact .figure-insignia{min-height:16px;padding:1px 2px;gap:1px;bottom:-4px}
.standing-battle.figure-compact .reach-badge{width:14px;height:14px}
.standing-battle.figure-compact .actor-badge{width:25px;height:25px;font-size:10px}
.battle-mode:has(.figure-info-layer) .battle-flight-field{visibility:hidden}
.game-focus.battle-layout .standing-battle .combatant>.standing-figure,.game-focus.battle-layout:has(.action-preview) .standing-battle .combatant>.standing-figure,.game-focus.battle-layout .standing-battle.figure-compact .combatant>.standing-figure{height:var(--figure-height,76px)}
.game-focus.battle-layout.formation-motion-layer.standing-battle .formation-flight{background:transparent!important;border-color:transparent!important;box-shadow:none!important;outline:none!important}
.formation-motion-layer.standing-battle .formation-flight:before,.formation-motion-layer.standing-battle .formation-flight:after{display:none!important}
.standing-figure .body-pose,.formation-motion-layer .standing-figure .body-pose{transform-origin:50% 50%}
@keyframes figure-turn-glow{50%{opacity:.45;transform:scale(1.25);box-shadow:0 0 15px #f6d47366}}
@keyframes figure-arrive{from{transform:translateY(-20px) scale(.8);opacity:0;filter:brightness(1.6)}to{transform:none;opacity:1;filter:none}}
@media(min-width:700px){.game-focus.battle-layout .standing-battle .combatant>.standing-figure{max-width:140px}.standing-battle .combatant>b{font-size:12px}}
@media(prefers-reduced-motion:reduce){.standing-battle .body-idle,.standing-battle .body-pose,.standing-battle .figure-ground:after{animation:none!important}}
.reduce-motion .standing-battle .body-idle,.reduce-motion .standing-battle .body-pose,.reduce-motion .standing-battle .figure-ground:after{animation:none!important}
