/* Compact effects retain a clear inner margin in the existing target cards. */
#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{box-sizing:border-box;height:25px;min-height:25px;max-height:25px;padding:1px 4px 2px;margin:0 2px;width:calc(100% - 4px);gap:4px;align-items:center;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;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{height:22px;min-height:22px;min-width:31px;max-width:54px;padding:1px 3px;gap:3px;border-radius:4px;flex-shrink:0}
#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:19px;height:19px;flex:0 0 19px;object-fit:contain}
#battle-root .spell-panel-battle .combat-effect-icon .effect-duration{font:600 8px/11px Interface,sans-serif;min-width:6px;text-align:center}
#battle-root .spell-panel-battle .hero-effects .combat-effect-icon{min-width:32px;height:25px;padding:2px 4px;gap:3px;border-radius:4px}
#battle-root .spell-panel-battle .hero-effects .combat-effect-icon>img{width:21px;height:21px;flex-basis:21px}
#battle-root .spell-panel-battle .player-compact,#battle-root .spell-panel-battle .player-compact.player-expanded,#battle-root .spell-panel-battle .enemy-card,#battle-root .spell-panel-battle .roster-open .enemy-card{height:74px;min-height:74px;max-height:74px;padding-bottom:3px;box-sizing:border-box}
.valgard-effect-note,#battle-root .enemy-effect-popover{color:#59452c;background:linear-gradient(130deg,#fff5d9,#ecddba);border:1px solid #b69b6d;border-radius:7px;box-shadow:inset 0 0 0 3px #fff7e222,0 6px 22px #23372f2b}
.valgard-effect-note{position:fixed;z-index:2147482000;width:min(326px,calc(100vw - 16px));max-height:min(520px,calc(100dvh - 16px));box-sizing:border-box;overflow-y:auto;padding:12px 13px;overscroll-behavior:contain;font:13px/1.4 Interface,sans-serif;scrollbar-width:thin}
.valgard-effect-note>header{display:flex;align-items:start;justify-content:space-between;gap:10px;padding-bottom:7px;border-bottom:1px solid #b6a47c66}.valgard-effect-note h3{margin:0;font:700 17px/1.25 Interface,sans-serif;color:#315b4e}.valgard-effect-note>header>button{flex:none;width:26px;height:26px;min-height:26px;border:1px solid #b39c71;border-radius:4px;color:#7e6945;background:#f9edcf;font:20px/20px Interface,sans-serif;padding:0}
.effect-note-facts{margin:8px 0 2px;display:grid;gap:6px;font:12px/1.4 Interface,sans-serif}.effect-note-facts>div{display:grid;grid-template-columns:90px minmax(0,1fr);gap:8px}.effect-note-facts dt{color:#8b7351}.effect-note-facts dd{margin:0;overflow-wrap:anywhere;color:#4f452f}.effect-note-sources{margin-top:9px;padding-top:7px;border-top:1px solid #b6a47c55}.effect-note-sources>small{color:#8b7351}.effect-note-sources>p,.effect-note-explanation{font:11px/1.4 Interface,sans-serif;margin:5px 0}
.effect-note-link{display:inline!important;min-height:0!important;min-width:0!important;width:auto!important;padding:0 1px!important;margin:0!important;border:0!important;border-bottom:1px dotted #8c704e!important;border-radius:0!important;box-shadow:none!important;color:inherit!important;background:none!important;font:inherit!important;line-height:inherit!important;text-align:inherit;cursor:help;vertical-align:baseline}.effect-note-link:focus-visible{outline:1px solid #856437;outline-offset:2px}
#battle-root .enemy-effect-popover{max-width:min(310px,calc(100% - 20px));max-height:min(370px,55dvh);overflow-y:auto;padding:10px 12px}#battle-root .enemy-effect-popover .effect-description-art{width:26px;height:28px}#battle-root .enemy-effect-popover h3{font-size:14px}
#battle-root .combat-popup{border-radius:5px;padding:3px 6px;gap:4px;background:linear-gradient(#fff7e7f5,#eadfc6ed);border:1px solid #b6a38388;box-shadow:0 2px 5px #29392b20;font-size:13px;line-height:18px}#battle-root .combat-popup>img{width:21px;height:21px;object-fit:contain}#battle-root .combat-popup.critical{border-color:#ad835c;background:linear-gradient(#ffefd0,#ead6b0)}
.mastery-tier{box-sizing:border-box;padding-inline:4px}.mastery-node.preview{outline-offset:-2px!important;box-shadow:inset 0 0 0 2px #a98c54!important}.mastery-node{min-width:0;overflow-wrap:anywhere}.mastery-branches path,.mastery-stems i{stroke:#ac9670}.mastery-branches path.chosen{stroke:#648165;filter:none}
@media(max-width:350px){.effect-note-facts>div{grid-template-columns:83px minmax(0,1fr);gap:7px}#battle-root .spell-panel-battle .player-card-effects,#battle-root .spell-panel-battle .enemy-card-effects{padding-inline:3px;gap:3px}}

#battle-root .spell-panel-battle .hero-effects{box-sizing:border-box;min-height:29px;height:29px;padding:2px 3px;align-items:center}
