/* Transparent game overlay. No board geometry, state, targeting or click interception. */
#battle-brief[hidden]{display:none}
#setup #stage-world-description,#setup .stage-map-footer>p{display:none}
#game .action-feedback:not([data-error=true]) p{display:none}
#game .arena-column{position:relative;display:grid;grid-template-rows:minmax(0,1fr);min-height:0}
#game .field-caption,#game .bench-help,#game .inspector-note,#game .hud-caption,#game #dock-hint{display:none}
#game .auto-merge-info:empty,#game .merge-hint:empty{display:none}
#game .encounter-minimal{position:absolute;z-index:5;top:8px;left:12px;right:12px;display:block;min-height:0;margin:0;padding:0;background:none;border:0;box-shadow:none;pointer-events:none;color:#fff8dd;text-shadow:0 1px 3px #071d28,0 0 5px #071d28;font-variant-numeric:tabular-nums}
#game .encounter-minimal[hidden]{display:none}
#game .encounter-minimal:before,#game .encounter-minimal:after,#game .encounter-minimal .encounter-emblem,#game .encounter-minimal [data-encounter-label],#game .encounter-minimal .encounter-more{display:none}
#game .encounter-minimal .encounter-vitals{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 14px;align-items:baseline}
#game .encounter-minimal .encounter-heading{display:flex;gap:8px;align-items:baseline;margin:0;min-width:0}
#game .encounter-minimal .encounter-heading>strong{flex:0 1 auto;min-width:0;font-size:14px;line-height:1.3;letter-spacing:0;overflow-wrap:anywhere}
#game .encounter-minimal [data-encounter-zone]{font-size:10px;color:#fff0bf;white-space:nowrap;display:block}
#game .encounter-minimal[data-kind=normal] .encounter-heading>strong{display:none}
#game .encounter-minimal .encounter-life{position:static;transform:none;height:auto;padding:0;margin:0;background:none;border:0;box-shadow:none}
#game .encounter-minimal .encounter-life:after{display:none}
#game .encounter-minimal .encounter-life progress{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden;white-space:nowrap}
#game .encounter-minimal [data-encounter-health-text]{position:static;display:block;inset:auto;transform:none;font-size:14px;line-height:1.3;letter-spacing:0;color:#fff8dd}
#game .encounter-minimal .encounter-pattern{grid-column:1/-1;display:flex;gap:8px;align-items:baseline;margin:0;padding:0;min-width:0;line-height:1.35}
#game .encounter-minimal .encounter-pattern>summary{display:contents;pointer-events:none}
#game .encounter-minimal .encounter-pattern>summary:before{display:none}
#game .encounter-minimal .encounter-pattern strong,#game .encounter-minimal .encounter-pattern>p{font-size:12px;line-height:1.35;font-weight:700;margin:0;padding:0;color:inherit;min-width:0}
#game .encounter-minimal .encounter-pattern strong:empty,#game .encounter-minimal .encounter-pattern>p:empty{display:none}
#game .encounter-minimal[data-kind=warning]{color:#ffe49a}
#game .encounter-minimal[data-kind=active]{color:#ffd0b7}
#game .stage{grid-row:1;height:100%;min-height:0}
/* Preserve the original portrait board scale/scroll. Shrinking 13 rows into a short phone panel
   lets adjacent 44px touch targets cover each other's centers. Do not change the hitbox rules. */
@media(max-width:700px) and (orientation:portrait){#game .arena-column{display:block}#game .stage{height:auto;aspect-ratio:7/13;min-height:312px}}
@media(max-width:600px){#game .encounter-minimal{top:6px;left:8px;right:8px}#game .encounter-minimal .encounter-vitals{gap:2px 8px}#game .encounter-minimal .encounter-heading>strong,#game .encounter-minimal [data-encounter-health-text]{font-size:12px}#game .encounter-minimal [data-encounter-zone]{font-size:9px}#game .encounter-minimal:not([data-kind=normal]) [data-encounter-zone]{display:none}#game .encounter-minimal .encounter-pattern{gap:3px 7px;flex-wrap:wrap}#game .encounter-minimal .encounter-pattern strong,#game .encounter-minimal .encounter-pattern>p{font-size:11px}}
