/* Approved ordinary-soldier view. No rules apply to captain, guardian or sky fights. */
body[data-combat=game] #game.soldier-field{position:fixed;inset:0;transform:none;width:100%;max-width:1480px;height:100dvh;margin:0 auto;padding:10px 14px;display:flex;flex-direction:column;gap:8px;overflow:auto;background:#faf5e8;box-sizing:border-box}
body[data-combat=game] #game.soldier-field .battle-header{min-height:42px;margin:0;flex:none;flex-wrap:nowrap}
#game.soldier-field .battle-header h2{font-size:18px!important;line-height:1.25!important}
#game.soldier-field .battle-actions{width:auto;flex-wrap:nowrap;gap:6px}
#game.soldier-field .battle-actions button{font-size:12px;padding:8px 10px;min-height:36px}
body[data-combat=game] #game.soldier-field #battleProgress{display:flex;flex:none;min-height:20px;margin:0;padding:0;justify-content:space-around;font-size:11px}
#game.soldier-field #expeditionStatus{display:none}
#game.soldier-field .soldier-combat-grid{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:14px;flex:1 0 540px;min-height:540px}
body[data-combat=game] #game.soldier-field #arena{width:100%;height:100%;min-height:var(--soldier-field-min,540px);max-height:none;margin:0;aspect-ratio:auto;flex:none;border:1px solid #d7d5bd;border-radius:18px;background:#d6dfb5 url('assets/soldiers-battlefield-v2.webp') center/cover no-repeat;isolation:isolate}
#game.soldier-field #targetCastle,#game.soldier-field .castle-banner,#game.soldier-field .arena-caption,#game.soldier-field .threat-arrow{display:none!important}
#game.soldier-field #heroAnchor{position:absolute;bottom:auto;max-height:none;transform:none;transition:none;z-index:6}
#game.soldier-field #heroAnchor:before{display:none}
#game.soldier-field #hero{position:absolute;inset:0;width:100%;height:100%;margin:0}
#game.soldier-field #hero .hero-sprite{height:100%;width:100%}
#game.soldier-field #heroLabel{top:100%;bottom:auto;font-size:11px;padding:3px 8px}
#game.soldier-field #heroAnchor .force-stat{position:absolute;left:50%;top:-36px;transform:translateX(-50%);width:132px;display:block;padding:4px 6px;border-radius:8px;background:#fffaf2ef;border:1px solid #dfd4bd;z-index:10;font-size:10px;line-height:12px;pointer-events:none;color:#554551}
#game.soldier-field #heroAnchor .force-stat span{font-size:10px}#game.soldier-field #heroAnchor .force-stat b{font-size:11px;float:right}
#game.soldier-field #heroAnchor progress{width:100%;height:5px;margin-top:3px;display:block;accent-color:#72a080}
body[data-combat=game] #game.soldier-field #arena .marching-actor{position:absolute;bottom:auto;transform:none;transition:none;max-height:none;z-index:7;pointer-events:auto;cursor:pointer;will-change:left,top}
#game.soldier-field #arena .marching-body{width:100%;height:100%}
body[data-combat=game] #game.soldier-field #arena .marching-actor .enemy{position:absolute;bottom:auto;transform:none;transition:none;width:148px;min-height:0;max-height:none;margin:0;padding:0;border:0;background:transparent;overflow:visible;box-shadow:none;z-index:10}
#game.soldier-field #arena .marching-actor .word-panel{display:block;min-height:0;padding:6px 7px;border:1px solid #a4ad86;border-radius:12px;background:#fffdf3f7;box-shadow:0 4px 12px #63533720;overflow-wrap:anywhere}
#game.soldier-field #arena .enemy b{font-size:22px;line-height:28px;margin:0;display:block}
#game.soldier-field #arena .enemy .kana{display:block;font-size:13px;line-height:17px;margin:1px 0}
#game.soldier-field #arena .enemy .hangul{font-size:11px;line-height:14px;margin:0}
#game.soldier-field #arena .enemy .timer{display:block;font-size:10px;line-height:14px;margin-top:2px;white-space:normal}
#game.soldier-field #arena .enemy .pos{display:none}
#game.soldier-field #arena .enemy progress{display:block;width:100%;height:3px;margin-top:2px}
#game.soldier-field #arena .word-panel:after{display:none}
#game.soldier-field #arena .next-attacker .word-panel{border-color:#bb934c;background:#fff5d8;box-shadow:0 0 0 2px #ffe3a288}
#game.soldier-field #arena .word-selected .word-panel{outline:2px solid #79a38a;outline-offset:1px}
.soldier-number{position:absolute;bottom:0;left:2px;display:grid;place-items:center;width:21px;height:21px;border:1px solid #fff8e3;border-radius:50%;font-size:11px;background:#79977a;color:#fff;font-weight:700;pointer-events:none}
#game.soldier-field .soldier-console{min-width:0;padding:14px;border:1px solid #dfd1ba;border-radius:16px;background:#fffaf1;display:flex;flex-direction:column;gap:8px;align-self:stretch}
body[data-combat=game] #game.soldier-field .soldier-console .battle-stats{display:flex;flex:none;min-height:0;margin:0;padding:0;border:0;box-shadow:none;background:transparent;gap:12px;font-size:12px;justify-content:space-between}
#game.soldier-field .soldier-console .siege-stat{display:none}
#game.soldier-field .soldier-console .combo-stat{width:100%;display:flex;align-items:center;gap:6px}
#game.soldier-field .soldier-console .combo-stat small{margin-left:auto;font-size:11px}
.soldier-question{text-align:center;overflow-wrap:anywhere;padding:6px 0;border-bottom:1px solid #ebdfcd}
.soldier-question>b{display:block;font-size:30px;line-height:1.3;color:#493749;margin:4px 0}
.soldier-question .kana{display:block;font-size:16px;line-height:1.4}.soldier-question .hangul{display:block;font-size:12px;line-height:1.4;color:#947c83}
.soldier-clock{margin:0;font-size:12px;color:#a46448;text-align:right;min-height:17px}
body[data-combat=game] #game.soldier-field #gameChoiceDock{display:flex;flex-direction:column;gap:9px;padding:0;margin:0;border:0;background:transparent;box-shadow:none}
#game.soldier-field #gameChoiceTarget{display:none}
body[data-combat=game] #game.soldier-field .answer-choices{display:grid;grid-template-columns:1fr 1fr;gap:8px;order:1}
body[data-combat=game] #game.soldier-field .answer-choices button{min-height:58px;font-size:16px;padding:10px 8px}
body[data-combat=game] #game.soldier-field .choice-feedback{order:2;display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-height:88px;max-height:none;height:auto;margin:0;padding:10px;background:#f5f1e5;border-radius:10px}
#game.soldier-field .choice-feedback-verdict{font-size:16px}#game.soldier-field .choice-feedback-meaning{font-size:22px}#game.soldier-field .choice-feedback-word{font-size:14px}
body[data-combat=game] #game.soldier-field #answerForm{padding:10px 0;border:0;background:transparent;box-shadow:none}
#game.soldier-field #answerForm>div{flex-wrap:wrap}#game.soldier-field #answer{width:100%;flex-basis:100%;font-size:18px;min-height:44px}
body[data-combat=game] #game.soldier-field #heroTrait{margin-top:auto;font-size:12px;display:block;min-height:0;line-height:1.5;padding:0;background:none}
body[data-combat=game] #game.soldier-field #feedback{height:auto;min-height:24px;max-height:none;font-size:15px;line-height:1.5;overflow:visible}
@media(max-width:1100px){
 body[data-combat=game] #game.soldier-field{padding:6px;gap:5px;height:var(--combat-height,100dvh);top:var(--combat-top,0px);bottom:auto;overflow:auto}
 #game.soldier-field .soldier-combat-grid{display:flex;flex-direction:column;flex:none;min-height:0;gap:5px}
 body[data-combat=game] #game.soldier-field #arena{height:var(--soldier-field-min,440px);min-height:440px;flex:none;border-radius:14px}
 body[data-combat=game] #game.soldier-field #battleProgress{display:none}
 #game.soldier-field .battle-header h2{font-size:13px!important;margin:0!important}
 #game.soldier-field .battle-header .eyebrow{font-size:9px!important}
 #game.soldier-field .battle-actions button{font-size:10px;padding:6px;max-width:100px;white-space:normal}
 #game.soldier-field #heroLabel{display:none}
 #game.soldier-field #heroAnchor .force-stat{width:112px;padding:4px 5px;font-size:9px}
 #game.soldier-field #heroAnchor .force-stat span{font-size:9px}
 #game.soldier-field #arena .marching-actor .word-panel{padding:5px 4px;border-radius:10px}
 #game.soldier-field #arena .enemy b{font-size:20px;line-height:26px}
 #game.soldier-field #arena .enemy .kana{font-size:13px;line-height:17px;letter-spacing:-.2px}
 #game.soldier-field #arena .enemy .hangul{font-size:10px;line-height:13px}
 #game.soldier-field .soldier-console{padding:8px;gap:5px;border-radius:12px}
 .soldier-question{text-align:left;padding:0 0 4px}.soldier-question>b{font-size:24px;line-height:28px;margin:0}.soldier-question .kana{font-size:14px;display:inline}.soldier-question .hangul{font-size:11px;display:inline;margin-left:6px}
 .soldier-clock{font-size:11px;min-height:14px;line-height:14px}
 body[data-combat=game] #game.soldier-field #gameChoiceDock{gap:6px}
 body[data-combat=game] #game.soldier-field .answer-choices{gap:6px}
 body[data-combat=game] #game.soldier-field .answer-choices button{min-height:48px;font-size:16px;padding:8px 6px}
 body[data-combat=game] #game.soldier-field .choice-feedback{min-height:54px;padding:6px 9px;gap:2px}
 #game.soldier-field .choice-feedback-verdict{font-size:13px}#game.soldier-field .choice-feedback-meaning{font-size:18px}#game.soldier-field .choice-feedback-word{font-size:12px}
 body[data-combat=game] #game.soldier-field #heroTrait{font-size:10px;line-height:1.4}
}

/* Keep progress compact so phone controls stay close to the field. */
body[data-combat=game] #game.soldier-field .soldier-console .combo-stat{flex-direction:row;min-height:0;padding:0;line-height:20px}
#game.soldier-field .soldier-console .combo-stat>span,#game.soldier-field .soldier-console .combo-stat>b{display:inline;font-size:12px;margin:0}
@media(max-width:1100px){body[data-combat=game] #game.soldier-field #heroTrait{display:none}body[data-combat=game] #game.soldier-field #feedback{font-size:12px;line-height:16px;min-height:16px;margin:0}}

/* The old siege panorama must not overlay the all-ground battlefield. */
#game.soldier-field #arena:before{display:none!important}

/* Keep the question on the approaching soldier, not above the answer buttons. */
#game.soldier-field .soldier-question{display:none!important}
#game.soldier-field .focus-target .word-panel{border:4px solid #b54c52!important;outline:1px solid #fff4df!important;outline-offset:1px!important;background:#fffaf2!important;box-shadow:0 3px 13px #833b4030!important}
#game.soldier-field .focus-target .marching-body{filter:drop-shadow(1px 0 0 #ab464c) drop-shadow(-1px 0 0 #ab464c) drop-shadow(0 1px 0 #ab464c) drop-shadow(0 -1px 0 #ab464c) drop-shadow(0 0 7px #cb72734a)!important}
#game.soldier-field .focus-target .marching-shadow{outline:none!important;box-shadow:none!important}
#game.soldier-field .focus-target:before{content:none!important;display:none!important}
#game.soldier-field .focus-tag{position:absolute;bottom:-18px;left:50%;transform:translateX(-50%);white-space:nowrap;font-size:10px;font-weight:650;line-height:18px;background:#a9464d;color:#fff9ed;border:1px solid #913c43;border-radius:10px;padding:0 6px;box-shadow:0 2px 4px #53232720;pointer-events:none;z-index:12}
#game.soldier-field .focus-tag[hidden]{display:none}
#game.soldier-field .focus-target-link{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;z-index:4}
.focus-target-link path{fill:none;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.target-line-under{stroke:#fff6e3;stroke-width:6;opacity:.7}
.target-line-main{stroke:url(#soldierTargetLine);stroke-width:2.3;opacity:.9}
.target-line-glint{stroke:#fff8e4;stroke-width:1;stroke-dasharray:8 110;opacity:.55;animation:target-link-flow 4s linear infinite}
.target-line-tip{stroke:#b34f56;stroke-width:2.3}
@keyframes target-link-flow{to{stroke-dashoffset:-118}}
@media(prefers-reduced-motion:reduce){.target-line-glint{animation:none}}
