/* Stable instruction height keeps native tile coordinates still when a
   warning or selection appears. Existing full caption text is retained. */
body[data-game=defense] .world-area .battle-guide{height:36.4px;min-height:36.4px;min-width:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;display:flex;flex-direction:column;justify-content:center;gap:1px}
body[data-game=defense] .world-area .battle-guide #coach{height:auto;min-height:0;overflow:visible;margin:0;line-height:1.4}
body[data-game=defense] .world-area .battle-guide .boss-signal,body[data-game=defense] .world-area .battle-guide .battle-focus{position:static;inset:auto;transform:none;width:auto;max-width:none;padding:0;margin:0;border:0;border-radius:0;background:transparent;box-shadow:none;text-align:left;overflow:visible;flex-shrink:0;gap:5px}
body[data-game=defense] .world-area .battle-guide .boss-signal strong{font-size:11px;line-height:1.2;white-space:normal;color:#ffcf83}
body[data-game=defense] .world-area .battle-guide .boss-signal small{font-size:10px;height:auto;min-height:0;line-height:1.2;overflow:visible;color:#c4d6e4}
body[data-game=defense] .world-area .battle-guide .boss-signal i{display:none}
body[data-game=defense] .world-area .battle-guide .battle-focus{font-size:10px;line-height:1.2}
body[data-game=defense] .world-area .battle-guide .battle-focus strong{font-size:10px;line-height:1.2;letter-spacing:0}
.battle-guide[data-focus=false] .battle-focus{display:none!important}
.battle-guide #coach[hidden]{display:none!important}
@media(max-width:800px){body[data-game=defense] .world-area .battle-guide{grid-column:1/-1;height:50.4px;min-height:50.4px}}
@media(max-height:600px) and (min-width:650px){body[data-game=defense] .world-area .battle-guide{grid-column:2;grid-row:1;height:34px;min-height:34px}body[data-game=defense] .world-area .battle-guide .boss-signal strong{font-size:10px}body[data-game=defense] .world-area .battle-guide .boss-signal small{font-size:9px}body[data-game=defense] .world-area .battle-guide .battle-focus,body[data-game=defense] .world-area .battle-guide .battle-focus strong{font-size:9px}}

@media(max-height:600px) and (min-width:650px){body[data-game=defense] .world-area .stage-note{grid-template-columns:max-content minmax(0,1fr);align-items:center;gap:0 9px}}
.unit-contribution{color:#a5ded6!important;border-top:1px solid #506177;padding-top:7px;font-size:12px;line-height:1.5}
body[data-game=defense] .world-area .battle-guide .battle-focus{flex-wrap:wrap;row-gap:1px}
body[data-game=defense] .world-area .battle-guide .battle-focus-stats{flex:0 0 100%;height:auto;min-height:0;white-space:normal;overflow:visible;margin:0;font-size:inherit;line-height:1.25;color:#a5ded6;overflow-wrap:anywhere}
body[data-game=defense] .world-area .battle-guide .battle-focus-stats[hidden]{display:none}

/* Retain the original live warning countdown bar in the instruction dock. */
body[data-game=defense] .world-area .battle-guide .boss-signal{position:relative;display:flex;flex-wrap:wrap;gap:0 8px;padding-bottom:4px}
body[data-game=defense] .world-area .battle-guide .boss-signal strong,body[data-game=defense] .world-area .battle-guide .boss-signal small{flex:0 1 auto}
body[data-game=defense] .world-area .battle-guide .boss-signal i{display:block;position:absolute;left:0;bottom:1px;width:100%;height:2px}
