/* Scoped finishing: the action console, chat and navigation keep their layout. */
#battle-root .spell-panel-battle .player-card-effects,#battle-root .spell-panel-battle .enemy-card-effects,#battle-root .spell-panel-battle .roster-open .enemy-card-effects{height:20px;min-height:20px;max-height:20px;padding:1px 3px;margin:0 3px;width:calc(100% - 6px);gap:3px;border:0;align-items:center;scrollbar-width:none}
#battle-root .spell-panel-battle .player-card-effects .combat-effect-icon,#battle-root .spell-panel-battle .enemy-card-effects .combat-effect-icon{box-sizing:border-box;height:18px;min-height:18px;min-width:24px;max-width:39px;padding:1px 2px;gap:2px;border-radius:3px;flex:0 0 auto}
#battle-root .spell-panel-battle .player-card-effects .combat-effect-icon>img,#battle-root .spell-panel-battle .enemy-card-effects .combat-effect-icon>img{width:14px;height:14px;flex:0 0 14px}
#battle-root .spell-panel-battle .player-card-effects .effect-duration,#battle-root .spell-panel-battle .enemy-card-effects .effect-duration{font-size:7px;line-height:10px;min-width:5px}
.valgard-effect-note,#battle-root .enemy-effect-popover{background-color:#ead4a7;background-image:linear-gradient(120deg,#e8c78e33,#d7b57533),url('art/book/parchment-v01722.webp');background-size:100% 100%,330% auto;background-position:center,center 36%;border-color:#a88a55;border-radius:8px;box-shadow:inset 0 0 0 2px #fae3b966,0 5px 18px #243a3026;color:#60472d}
.valgard-effect-note{width:min(294px,calc(100vw - 28px));max-height:min(390px,calc(100dvh - 32px));padding:12px 14px;scrollbar-width:none}
.valgard-effect-note h3{font-size:16px;line-height:1.25}.valgard-effect-note>header{align-items:center;border-color:#a4875355}
.effect-note-text{margin:9px 0;font:13px/1.5 Interface,sans-serif;white-space:normal}.effect-note-lead{color:#4a5138}.effect-note-rule{margin:9px 0 0;padding-top:7px;border-top:1px solid #ab90594a;font:11px/1.45 Interface,sans-serif;color:#78603c}.effect-note-origin{display:block;margin-top:9px;font:italic 11px/1.4 Interface,sans-serif;color:#8b6940}.effect-note-sources{margin-top:7px}.effect-note-sources p{font-size:10px;line-height:1.4}
#battle-root .enemy-effect-popover{max-width:min(284px,calc(100% - 24px));max-height:min(340px,52dvh);padding:10px 12px}#battle-root .enemy-effect-popover .effect-note-text{font:12px/1.45 Interface,sans-serif}
#knowledge-root .skill-facts .skill-fact{background-color:#e7c990;background-image:linear-gradient(145deg,#f5dfac66,#d5b57b33),url('art/book/parchment-v01722.webp');background-size:100% 100%,330% auto;background-position:center,center 36%;border:1px solid #a98e5c70;box-shadow:inset 0 0 0 1px #f8e4b855}
#knowledge-root .mastery-heading{display:grid;grid-template-columns:minmax(0,1fr);justify-items:start;gap:7px;padding:3px 0 13px;font-size:22px;line-height:1.2}#knowledge-root .mastery-heading>small{font:11px/16px Interface,sans-serif;padding:3px 9px;max-width:100%;box-sizing:border-box;white-space:normal}
.warrior-ally-picker.warrior-save-window{position:fixed;left:50%;right:auto;top:50%;transform:translate(-50%,-50%);width:min(310px,calc(100vw - 28px));box-sizing:border-box;display:grid;grid-template-columns:28px minmax(0,1fr);gap:9px 10px;padding:14px;border:1px solid #a39266;border-radius:12px;background:linear-gradient(125deg,#f8efdb,#e7dec4);box-shadow:0 6px 25px #263c3430;max-height:calc(100dvh - 40px);overflow-y:auto}
.warrior-ally-picker.warrior-save-window>img{width:27px;height:29px;object-fit:contain;align-self:center}.warrior-ally-picker strong{font:700 17px/1.2 Interface,sans-serif;color:#355e50}.warrior-ally-picker p{font:11px/1.4 Interface,sans-serif;color:#7f7456;margin:5px 0 0}.warrior-candidate-list{grid-column:1/-1;display:grid;gap:6px}.warrior-candidate-list>label{display:flex;align-items:center;gap:8px;min-height:37px;padding:7px 10px;border:1px solid #b9b89b;border-radius:7px;background:#f6efda;box-sizing:border-box}.warrior-candidate-list>label:has(input:checked){background:#e3e8cf;border-color:#8da080}.warrior-candidate-list input{width:16px;height:16px;accent-color:#4e7664;flex:none}.warrior-candidate-list span{font:600 12px/1.35 Interface,sans-serif;color:#42604b}.warrior-candidate-list small{display:block;font:10px/1.3 Interface,sans-serif;color:#8d8567}.warrior-ally-picker .warrior-save-actions{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:7px}.warrior-ally-picker [data-warrior-choice-error]{grid-column:1/-1;color:#9a5f51;font-size:11px}.combat-skill-row.is-prepared .combat-skill-cooldown{color:#43624f;background:#dce5c8;border-color:#99ad8b}
/* Fallen art stays on the same canvas; no legacy CSS sprite can flash through. */
#battle-root .player-fallen .simple-warrior{filter:saturate(.65) brightness(.83);transition:filter .2s ease}.player-falling .warrior-pose-art,.player-fallen .warrior-pose-art{opacity:1}
@media(prefers-reduced-motion:reduce){#battle-root .player-fallen .simple-warrior{transition:none}}
