#dialog-body .rk-pve-battle-view{display:flex;flex-direction:column;gap:9px;color:#ebd6b5}
#dialog-body .rk-pve-battle-heading{display:flex;align-items:center;gap:10px;padding:6px 9px;border:1px solid #a88b57;border-radius:7px;background:#13293b}
#dialog-body .rk-pve-battle-heading>img{width:52px;height:52px;object-fit:contain;flex:none}
#dialog-body .rk-pve-battle-heading>div{display:flex;flex-direction:column;gap:6px;min-width:0}
#dialog-body .rk-pve-battle-heading b{font:600 13px Tahoma;color:#f7dda7}
#dialog-body .rk-pve-battle-heading small{font:11px Tahoma;color:#d8c6a1}
#dialog-body .rk-pve-battle-arena{height:218px;display:grid;grid-template-columns:1fr 28px 1fr;align-items:center;gap:3px;padding:8px 4px;overflow:hidden;position:relative;border:2px solid #b69b66;border-radius:9px;background:radial-gradient(ellipse at 50% 76%,#466049,#233c39 64%,#132a34)}
#dialog-body .rk-pve-battle-arena::after{content:"";position:absolute;bottom:8px;left:7%;width:86%;height:15%;border-radius:50%;background:#07161540;filter:blur(7px);pointer-events:none}
#dialog-body .rk-pve-battle-side{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;gap:4px;position:relative;z-index:1}
#dialog-body .rk-pve-battle-side>img{width:min(100%,100px);height:126px;object-fit:contain;filter:drop-shadow(0 5px 3px #071614ac)}
#dialog-body .rk-pve-battle-side b{font:600 12px Tahoma;color:#ffe0a5}
#dialog-body .rk-pve-battle-side small{font:10px Tahoma;color:#eee0bf;text-align:center}
#dialog-body .rk-pve-battle-direction{width:24px;height:38px;object-fit:contain;opacity:.9;position:relative;z-index:1}
#dialog-body .rk-pve-battle-arena[data-phase="approach"] .rk-pve-battle-friendly{animation:rk-battle-approach 1s ease-out both}
#dialog-body .rk-pve-battle-arena[data-phase="attack"]{box-shadow:inset 0 0 14px #cf9c5b80}
#dialog-body .rk-pve-battle-arena[data-phase="attack"] .rk-pve-battle-direction{animation:rk-battle-impact .35s ease-in-out infinite alternate}
#dialog-body .rk-pve-battle-phase{text-align:center;padding:8px;border:1px solid #a28655;border-radius:5px;background:#172e3e;color:#f8da9e;font:600 12px Tahoma}
#dialog-body .rk-pve-battle-disclaimer{font:11px/1.7 Tahoma;color:#d0c1a5;margin:0}
#dialog-body .rk-pve-battle-enemy-units{padding:5px 8px;background:#203240;border:1px solid #7d725e;border-radius:5px}
#dialog-body .rk-pve-battle-enemy-units summary{cursor:pointer;color:#ecd49f;font:600 12px Tahoma}
#dialog-body .rk-pve-battle-enemy-units p{font:11px/1.8 Tahoma;overflow-wrap:anywhere}
#dialog-body .rk-pve-battle-verdict{padding:9px;border:1px solid #9e8051;background:#112f35;border-radius:8px;text-align:center}
#dialog-body .rk-pve-battle-verdict[hidden]{display:none}
#dialog-body .rk-pve-battle-verdict h3{font:700 18px Tahoma;margin:6px}
#dialog-body .rk-pve-battle-verdict p{font:12px/1.7 Tahoma;margin:7px 0}
#dialog-body .rk-pve-battle-stats{display:flex;justify-content:space-around;gap:6px;font:12px Tahoma}
#dialog-body .rk-pve-battle-stats b{color:#ffe3ae}
#dialog-body .rk-pve-view-report{margin-top:5px;min-height:33px;font:600 12px Tahoma}
@keyframes rk-battle-approach{from{transform:translateX(28px)}to{transform:translateX(0)}}
@keyframes rk-battle-impact{to{transform:scale(1.13);opacity:.65}}
@media(max-width:350px){#dialog-body .rk-pve-battle-arena{height:184px}#dialog-body .rk-pve-battle-side>img{height:92px}}
@media(prefers-reduced-motion:reduce){#dialog-body .rk-pve-battle-side,#dialog-body .rk-pve-battle-direction{animation:none!important}}

/* Unity source prefab's G_TroopDown/G_TroopUp group classes with
   extracted original troop art; exact Unity world transforms NOT asserted. */
#dialog-body .rk-pve-battle-formations{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:7px;align-items:start;direction:rtl;
}
#dialog-body .rk-pve-battle-roster{
  min-width:0;max-height:226px;overflow:auto;border-radius:7px;
  border:1px solid #ad9163;background:linear-gradient(#213d46,#112735);
  padding:6px 5px;
}
#dialog-body .rk-pve-battle-roster h4{
  margin:0 0 6px;text-align:center;color:#f7d69b;
  font:600 12px/1.5 Tahoma;
}
#dialog-body .rk-pve-battle-army-grid{display:grid;grid-template-columns:1fr;gap:5px}
#dialog-body .rk-pve-battle-unit{
  display:flex;align-items:center;gap:4px;min-height:46px;
  border:1px solid #867352;border-radius:5px;padding:3px;
  background:#203340;direction:rtl;
}
#dialog-body .rk-pve-battle-unit img{
  width:36px;height:43px;flex:0 0 36px;object-fit:contain;
  filter:drop-shadow(0 2px 2px #071e2790);
}
#dialog-body .rk-pve-battle-unit span{
 display:flex;flex-direction:column;min-width:0;gap:3px
}
#dialog-body .rk-pve-battle-unit b{
  font:600 10px/1.4 Tahoma;color:#ffdfa5;overflow-wrap:anywhere;
}
#dialog-body .rk-pve-battle-unit small{
  font:9px/1.5 Tahoma;color:#d8c7a7;overflow-wrap:anywhere;
}
#dialog-body .rk-pve-battle-enemy-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
#dialog-body .rk-pve-battle-enemy-slot{
 min-width:0;border:1px solid #846d47;border-radius:5px;
 text-align:center;padding:7px 3px;background:#283c43;
 display:flex;flex-direction:column;gap:4px;
}
#dialog-body .rk-pve-battle-enemy-slot b{font:700 11px Tahoma;color:#f8d49c;overflow-wrap:anywhere}
#dialog-body .rk-pve-battle-enemy-slot small{font:11px Tahoma;color:#dfd3ad}
#dialog-body .rk-pve-battle-missing{
 font:10px/1.6 Tahoma;color:#ccc2a9;grid-column:1/-1;margin:0;padding:4px
}
@media(max-width:355px){
 #dialog-body .rk-pve-battle-formations{gap:5px}
 #dialog-body .rk-pve-battle-roster{padding:5px 3px}
 #dialog-body .rk-pve-battle-unit img{width:28px;flex-basis:28px;height:34px}
 #dialog-body .rk-pve-battle-enemy-grid{grid-template-columns:1fr}
}

#dialog-body .rk-pve-battle-audio-note{
 font:11px/1.7 Tahoma;display:block;text-align:center;color:#c9bba3;
}
#dialog-body #rk-pve-battle-audio[aria-pressed="true"]{
 color:#ffe0a6;border-color:#d8ad64;
}
