/* Hero cards select. This separate shield commits a native Guard preview. */
body[data-story="true"][data-hero-selected="true"][data-phase="battle"] #game>.formation :is(.hero>.guard-target193,.hero>.unit-card-face>.guard-target193){position:absolute;top:40%;right:-50px;width:54px;height:54px;display:grid;place-items:center;border:4px solid #a9d9a7;border-radius:15px;background:#254a37e8;color:#e2ffe2;box-shadow:0 0 0 4px #163c2aa8,0 0 18px #70be78;cursor:pointer;pointer-events:auto!important;z-index:31;padding:0}
body[data-story="true"][data-hero-selected="true"][data-phase="battle"] #game>.formation :is(.hero>.guard-target193,.hero>.unit-card-face>.guard-target193)>.icon{width:40px;height:40px;grid-area:1/1;filter:drop-shadow(0 1px 2px #13291c)}
body[data-story="true"][data-hero-selected="true"][data-phase="battle"] #game>.formation :is(.hero>.guard-target193,.hero>.unit-card-face>.guard-target193)>span{grid-area:1/1;align-self:end;justify-self:end;margin:0 -8px -8px 0;padding:1px 3px;border:1px solid #a9d9a7;border-radius:3px;background:#173121;color:#fff8dd;font:700 13px/15px var(--fantasy-title);text-shadow:0 1px 2px #000}
body[data-story="true"][data-hero-selected="true"][data-phase="battle"] #game>.formation :is(.hero>.guard-target193,.hero>.unit-card-face>.guard-target193):is(:hover,:focus-visible){outline:3px solid #d6f6cc;outline-offset:2px;background:#35634b;box-shadow:0 0 0 5px #c5efbd,0 0 26px #87d58e}
@media(max-width:700px){body[data-story="true"][data-hero-selected="true"][data-phase="battle"] #game>.formation :is(.hero>.guard-target193,.hero>.unit-card-face>.guard-target193){top:-12px;right:-20px;width:45px;height:45px}body[data-story="true"][data-hero-selected="true"][data-phase="battle"] #game>.formation :is(.hero>.guard-target193,.hero>.unit-card-face>.guard-target193)>.icon{width:34px;height:34px}}

/* Put Health directly above XP on the composed hero card. */
body[data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase] #game>.formation :is(#front,#middle,#rear)>.hero>.unit-card-face .hero-body>.health-track{position:absolute!important;grid-area:auto!important;inset:auto 3px 12px!important;width:auto!important;height:7px!important;min-height:7px!important;z-index:5}

/* Compound discard cards keep their choices on the actual hand and board. */
#hand .direct-discard476{outline:2px solid #e3b86e!important;outline-offset:2px}
#hand .discard-picked476{outline:3px solid #f0a16c!important;outline-offset:3px}
#hand .discard-caption476{position:absolute;left:3px;right:3px;top:36px;bottom:auto;z-index:30;display:block;padding:3px;background:#362515;color:#fff0c8;border:1px solid #d6aa62;font:700 16px/20px Georgia,serif;text-align:center;pointer-events:none}

/* Keep the complete card beside, rather than over, the compound choices. */
@media(min-width:1400px){
 body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase][data-hand-fan24="true"] #game>#handSection #hand[data-discard-choice476="true"]>.ability.shared-ability-card15:is(:hover,:focus-visible,.selected)>.held-card-face{
  width:190px!important;min-width:190px!important;max-width:190px!important;
  transform:translate(var(--discard-peek-x476),var(--discard-peek-y476))!important;transition:none!important;
 }
 body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase][data-hand-fan24="true"] #game>#handSection #hand[data-discard-choice476="true"]>.ability.shared-ability-card15:focus-visible{z-index:128!important}
 body[data-story="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase][data-hand-fan24="true"] #game>#handSection #hand[data-discard-choice476="true"]>.ability.shared-ability-card15:hover{z-index:127!important}
}

/* Essential public effect badges use the board text floor. */
body[data-story="true"] #game #enemies .public-enemy-effects21{font-size:16px;line-height:20px}
