/* Only knowledge disclosures and the same owned card's temporary back. */
body[data-knowledge="true"] .knowledge-combat-stats{display:flex;align-items:center;justify-content:center;gap:.3rem;font-weight:700;font-size:.875rem;line-height:1.25rem}
body[data-knowledge="true"] .knowledge-combat-stats .icon{width:1.25rem;height:1.25rem}
body[data-knowledge="true"] .knowledge-sneaky .hp{font-variant-numeric:tabular-nums}
body[data-knowledge="true"] .knowledge-sneaky .intent{white-space:normal;overflow-wrap:normal;word-break:normal}
body[data-knowledge="true"] .knowledge-response .departure-health,body[data-knowledge="true"] .knowledge-response .departure-events{display:grid;gap:.4rem}
body[data-knowledge="true"] .knowledge-card-back{padding:0;cursor:help}
body[data-knowledge="true"] .knowledge-card-back-face{display:block;position:relative;width:100%;height:100%;min-height:10rem;overflow:hidden;border-radius:inherit}
body[data-knowledge="true"] .knowledge-card-back-face>img{display:block;width:100%;height:100%;object-fit:cover;position:absolute;inset:0}
body[data-knowledge="true"] .knowledge-card-back-face>strong,body[data-knowledge="true"] .knowledge-card-back-face>small{position:absolute;left:.25rem;right:.25rem;bottom:1.5rem;z-index:1;color:#f3dfb4;background:#14251feb;padding:.2rem;white-space:normal;word-break:normal;text-align:center;font-size:.875rem;line-height:1.25rem}
body[data-knowledge="true"] .knowledge-card-back-face>small{bottom:.2rem;font-size:.75rem;line-height:1rem}
body[data-knowledge="true"] .knowledge-card-back .same-hand-detail{display:none}
body[data-knowledge="true"] .knowledge-card-back .held-card-face{height:100%;padding:0}
@media(prefers-reduced-motion:reduce){body[data-knowledge="true"] .knowledge-card-back-face{transition:none}}

/* Compact public facts use two icon-led intent lines, rather than clipped sentences. */
body[data-knowledge="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase] #game > .encounter #enemies > .enemy.unit-shell>.unit-card-face{grid-template-rows:22px minmax(0,1fr) 16px 28px 18px!important}
body[data-knowledge="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase] #game > .encounter #enemies > .enemy.unit-shell .knowledge-combat-stats{grid-area:5/1/6/-1!important;font-size:12px!important;line-height:16px!important;align-self:center!important}
body[data-knowledge="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase] #game > .encounter #enemies > .enemy.unit-shell>.unit-card-face .enemy-copy>.intent{grid-area:4/1/5/-1!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;font-size:11px!important;line-height:13px!important;height:28px!important;min-height:28px!important;padding:0!important;margin:0!important;white-space:normal!important;overflow:hidden!important}
body[data-knowledge="true"] #game .enemy .intent>span{display:flex;align-items:center;justify-content:center;gap:2px;white-space:nowrap}
body[data-knowledge="true"] #game .enemy .intent .icon{width:12px!important;height:12px!important}
body[data-knowledge="true"] #game .enemy .knowledge-combat-stats .icon{width:16px!important;height:16px!important}

body[data-knowledge="true"] .knowledge-card-back-face{min-height:0!important;max-height:100%!important}
body[data-knowledge="true"] .knowledge-card-back-face>strong{bottom:28px;display:flex;align-items:center;justify-content:center;gap:3px}
body[data-knowledge="true"] .knowledge-card-back-face>small{bottom:2px;white-space:nowrap}
body[data-knowledge="true"] .knowledge-shroud-target>.held-card-face{outline:3px dashed #bfb4d1!important;outline-offset:-5px!important}

body[data-knowledge="true"] #hand .knowledge-card-back>.held-card-face{display:block!important;padding:0!important;background:#201e18 url('themes/scene10/player-cardback.webp') center/cover!important}
body[data-knowledge="true"] #hand .knowledge-card-back .knowledge-card-back-face{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;margin:0!important}
body[data-knowledge="true"] #hand .knowledge-card-back .knowledge-card-back-face>strong{position:absolute!important;top:auto!important;bottom:28px!important;font-size:13px!important;line-height:18px!important}
body[data-knowledge="true"] #hand .knowledge-card-back .knowledge-card-back-face>small{position:absolute!important;top:auto!important;bottom:2px!important;font-size:12px!important;line-height:16px!important}
body[data-knowledge="true"] #hand .knowledge-card-back .knowledge-card-back-face .icon{width:16px!important;height:16px!important}

body[data-knowledge="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase] #game>.encounter #enemies>.enemy>.unit-card-face .enemy-copy>.intent .icon{display:inline-block!important;width:12px!important;height:12px!important}

/* Conditional targets need a visible qualifier as well as accessible detail. */
body[data-knowledge="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase] #game>.encounter #enemies>.enemy.unit-shell>.unit-card-face:has(.knowledge-intent-qualifier){grid-template-rows:22px minmax(0,1fr) 16px 41px 18px!important}
body[data-knowledge="true"][data-style="hybrid"][data-progression="xp"][data-view="expedition"][data-phase="battle"][data-cycle-phase] #game>.encounter #enemies>.enemy.unit-shell>.unit-card-face .enemy-copy>.intent:has(.knowledge-intent-qualifier){height:41px!important;min-height:41px!important}
body[data-knowledge="true"] .knowledge-intent-qualifier{color:#f2d17e;font-style:italic}
