/* One shape per layer. The portrait and skill tile clip the effect to their own bounds. */
.card-portrait,.combat-skill-art{position:relative;overflow:hidden}
.combat-vfx{position:absolute;inset:0;display:block;z-index:4;border-radius:inherit;pointer-events:none;opacity:0;transition:opacity .24s ease}
.combat-vfx.is-visible{opacity:1}
.combat-vfx svg{display:block;width:100%;height:100%;pointer-events:none}
.combat-vfx--seal{inset:auto 1px 1px auto;width:43%;height:43%;max-width:24px;max-height:24px;filter:drop-shadow(0 1px 1px #332310)}
.combat-vfx--seal img{display:block;width:100%;height:100%;object-fit:contain}
.card-impact-content.effect.status-notice b{white-space:normal;text-align:center;line-height:1.15;overflow-wrap:break-word}
.combat-vfx--swallow{overflow:hidden}
.combat-vfx--swallow svg{position:absolute;height:51%;transition:transform .36s cubic-bezier(.25,.66,.3,1)}
.combat-vfx--swallow .maw-upper{top:0;transform:translateY(-101%)}
.combat-vfx--swallow .maw-lower{bottom:0;transform:translateY(101%)}
.combat-vfx--swallow.is-visible svg{transform:translateY(0)}
.combat-vfx--drag{overflow:hidden;transition-duration:.5s}
.combat-vfx--drag svg{position:absolute;bottom:0;height:65%;transform:translateY(103%);transition:transform .52s cubic-bezier(.23,.66,.32,1)}
.combat-vfx--drag.is-visible svg{transform:translateY(0)}
.combat-vfx--web{color:#f0ebd9}
.combat-vfx--web svg{transform:scale(1.13);transition:transform .28s ease-out}
.combat-vfx--web.is-visible svg{transform:scale(1)}
.combat-vfx--stun{color:#edd091}
.combat-vfx--mark{color:#dfb07b}
.card-impact-content.mana-absorbed b,.journal-ward-result b.journal-shield{color:#285c87;font-weight:700}
.combat-vfx--heal{background:linear-gradient(0deg,#6e9b7290,transparent 70%)}
.combat-vfx--howl{inset:15%;border:1px solid #b2966c;border-radius:50%;animation:combat-vfx-ripple .42s ease-out both}
.combat-vfx--tick{background:linear-gradient(0deg,var(--tick-color),transparent 67%);z-index:0;animation:combat-vfx-tick .68s ease-out both}
.combat-vfx--tick[data-kind="burn"]{--tick-color:#b96e4a59}
.combat-vfx--tick[data-kind="poison"]{--tick-color:#6c8c4959}
.combat-vfx--tick[data-kind="chill"]{--tick-color:#7dabb959}
@keyframes combat-vfx-tick{0%,100%{opacity:0}30%{opacity:1}}
@keyframes combat-vfx-ripple{from{opacity:.62;transform:scale(.55)}to{opacity:0;transform:scale(1.4)}}
.card-field #battle-root .battle-unit>.combat-vfx{display:block!important}
.card-field #battle-root .card-event-back>.combat-vfx{z-index:0}
.card-field #battle-root .card-event-back>:is(.card-event-avatar,.card-event-copy){z-index:2}
.card-field #battle-root .summon-fade>.card-face{animation:summon-face-in .32s ease-out both}
@keyframes summon-face-in{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
.reduced-motion .combat-vfx,.reduced-motion .combat-vfx svg{transition:none}
.reduced-motion #battle-root .summon-fade>.card-face{animation:none}
@media(prefers-reduced-motion:reduce){
 .combat-vfx,.combat-vfx svg{transition:none}
 .card-field #battle-root .summon-fade>.card-face{animation:none}
}

/* The book and combat use the same class colors behind the painted motifs. */
img[src*="/class-forms-20261105/relic-return-"]{
 background:radial-gradient(ellipse at 46% 39%,#5a5740,#282c21 80%);
}
img[src*="/class-forms-20261105/warrior-taunt-"]{
 background:radial-gradient(ellipse at 46% 39%,#665442,#372e26 80%);
}

#app .journal-balance-resource img,#modal-root .journal-balance-resource img{width:1.15em;height:1.15em;vertical-align:-.2em;object-fit:contain}
.card-field #battle-root .card-bar.ward{color:#295d89}
.card-field #battle-root .card-bar.ward i>em{background:linear-gradient(90deg,#5289ba,#94c3e2)}
.card-field #battle-root .card-bar.ward .card-bar-icon img{width:12px;height:12px;object-fit:contain}
.card-field #battle-root .card-impact-content.status-notice{flex-direction:column!important;align-items:center;justify-content:center;gap:1px}
.card-field #battle-root .card-impact-content.status-notice>b{max-width:100%;white-space:normal!important;font:600 10.5px/1.2 Interface,sans-serif!important;text-align:center;text-wrap:balance}
.card-field #battle-root .card-impact-content.status-notice>small{font-size:9px;line-height:1.1;text-align:center}
.monster-stun-rays{position:absolute;inset:0;pointer-events:none;z-index:8;overflow:hidden}
.monster-stun-rays i{position:absolute;top:50%;left:50%;width:45%;height:2px;transform-origin:left;background:linear-gradient(90deg,transparent,#f1ca74,#654925,transparent);transform:rotate(var(--angle)) scaleX(0);animation:monster-stun-ray .46s ease-out forwards}
@keyframes monster-stun-ray{0%{transform:rotate(var(--angle)) scaleX(.08);opacity:0}25%{opacity:1}100%{transform:rotate(var(--angle)) scaleX(1);opacity:0}}
@media(prefers-reduced-motion:reduce){.monster-stun-rays{display:none}}

.card-field #battle-root .is-status-notice .card-event-who{display:none}

.card-field #battle-root .battle-unit>.card-event-back.is-hostile-action,
.card-field #battle-root .notice-next.is-hostile-action{background:linear-gradient(140deg,#fffcf8 6%,#fae9e3 72%,#f2d9d1)!important;border-color:#cf9988!important}
.card-field #battle-root .is-hostile-action .card-impact-content.attack,.card-field #battle-root .is-hostile-action .card-impact-content.attack b{color:#8a4034!important}
.card-field #battle-root .card-impact-content.status-notice>small{font:500 9.5px/1.16 Interface,sans-serif;color:#52635a}
#valgard-effect-note.compact-note .effect-note-text{font-size:12px;line-height:1.32}

.drain-result{line-height:1.45}.drain-result small{color:#655f50;white-space:nowrap}.resource-ink{white-space:nowrap}.resource-ink img{width:14px;height:14px;vertical-align:-2px;margin-right:3px}
.drain-result .mana,.card-field #battle-root [data-resource-tone=mana] .card-impact-content b{color:#286b98!important}
.drain-result .energy,.card-field #battle-root [data-resource-tone=energy] .card-impact-content b{color:#806026!important}
.drain-result .might,.card-field #battle-root [data-resource-tone=might] .card-impact-content b{color:#985339!important}
.card-field #battle-root [data-resource-tone=mana] .card-event-trace{color:#649fc1;stroke:#649fc1}

.card-field #battle-root .notice-slide-track{position:absolute;inset:0;display:flex;align-items:stretch;width:100%;height:100%;pointer-events:none;z-index:1}
.card-field #battle-root .notice-slide-face{flex:0 0 100%;min-width:0;box-sizing:border-box;padding:5px 7px;display:grid;grid-template-columns:min(32%,38px) minmax(0,1fr);gap:5px;align-items:center;overflow:hidden}
.card-field #battle-root .notice-slide-face .card-impact-content{max-width:100%}
.card-field #battle-root .notice-next{background:linear-gradient(135deg,#fffbf2,#eee5ce);color:#4a5749}
.card-field #battle-root .notice-next[data-tone=hit]{background:linear-gradient(135deg,#fff8f2,#f1d9d0);color:#913f35}
.card-field #battle-root .notice-next[data-tone=guard]{background:linear-gradient(135deg,#f8faf5,#deeaf0);color:#3d687e}
.notice-next>img{width:100%;max-height:36px;object-fit:contain}.notice-next>span{display:grid;gap:3px;min-width:0;line-height:1.15}
.notice-next b{font-size:12px;overflow-wrap:anywhere}.notice-next small{font-size:10px;overflow-wrap:anywhere}

.notice-slide-face{position:relative}.notice-slide-face,.card-event-back{overflow:hidden}.notice-slide-track{overflow:visible}
.combat-notice-line{position:absolute;pointer-events:none;left:0;right:0;margin-inline:auto;bottom:3%;width:min(67%,108px);height:min(28%,29px);display:block;z-index:2;overflow:hidden}
.combat-notice-line path{stroke-linecap:round;stroke-linejoin:round}
.combat-notice-line .ink-brush{animation:vg-brush-in 940ms ease-out var(--ink-delay,0ms) both}
.combat-notice-line .ink-etch{fill:none;stroke:currentColor;stroke-width:1.05;stroke-dasharray:1;animation:vg-etch-in 1s ease-out var(--ink-delay,0ms) both}
.combat-notice-line .ink-point{stroke:currentColor;stroke-width:.65;animation:vg-point-in 1s ease-out var(--ink-delay,0ms) both}
@keyframes vg-brush-in{0%{opacity:0;clip-path:inset(0 100% 0 0)}55%{opacity:.88;clip-path:inset(0)}83%{opacity:.7}100%{opacity:0;clip-path:inset(0)}}
@keyframes vg-etch-in{0%{opacity:0;stroke-dashoffset:1}20%{opacity:.4}63%{opacity:.9;stroke-dashoffset:0}100%{opacity:0;stroke-dashoffset:0}}
@keyframes vg-point-in{0%,35%{opacity:0}65%{opacity:1}100%{opacity:0}}
.card-field #battle-root .cards-tight .combat-notice-line{height:20%;bottom:1%}
.combat-notice-line.impact-ink,
.card-field #battle-root .cards-tight .combat-notice-line.impact-ink{
 inset:3.5px auto auto 3.5px;width:calc(100% - 7px);height:calc(100% - 7px);margin:0;z-index:3
}
.card-field #battle-root .card-event-show>.card-event-back.is-fresh>.combat-notice-line.impact-ink{animation:none!important}
.impact-ink path{fill:none;stroke:currentColor;stroke-width:1.15px;stroke-dasharray:1;vector-effect:non-scaling-stroke}
.impact-ink .ink-arc,.impact-ink .ink-crack{animation:vg-impact-draw 540ms ease-out var(--ink-delay,0ms) both}
.impact-ink .ink-wake,.impact-ink .ink-branch{stroke:var(--ink-light);stroke-width:.9px;animation:vg-impact-detail 540ms ease-out var(--ink-delay,0ms) both}
.impact-ink .ink-contact{fill:var(--ink-light);stroke:none;animation:vg-impact-contact 540ms ease-out var(--ink-delay,0ms) both}
.impact-ink .ink-incoming{stroke:var(--ink-light);stroke-width:.9px;animation:vg-impact-incoming 550ms ease-out var(--ink-delay,0ms) both}
.impact-ink .ink-reply{stroke-width:1.45px;animation:vg-impact-reply 550ms ease-out var(--ink-delay,0ms) both}
.impact-ink .ink-edge{fill:var(--ink-light);stroke:none;animation:vg-impact-edge 550ms ease-out var(--ink-delay,0ms) both}
.impact-ink:is([data-line=freeze],.ink-heavy){--ink-join:390ms}
.impact-ink .ink-joined-frame{
 color:var(--impact-source,#b98b6d);
 animation:vg-ink-clear 670ms ease-out var(--ink-delay,0ms) both;
}
.impact-ink[data-line=freeze] .ink-joined-frame{color:#507e97;animation-duration:800ms}
.impact-ink .ink-joined-edge{
 x:.75px;y:.75px;width:calc(100% - 1.5px);height:calc(100% - 1.5px);rx:8.5px;ry:8.5px;
 fill:none;stroke:currentColor;stroke-width:1.25px;stroke-linecap:round;stroke-dasharray:0 100;
 animation:card-trace var(--ink-join) cubic-bezier(.35,.1,.3,1) var(--ink-delay,0ms) both;
}
.impact-ink .ink-joined-edge+.ink-joined-edge{stroke-dashoffset:-50}
.impact-ink .ink-frost-corner path{
 stroke-width:.82px;
 animation:vg-ink-grow 145ms ease-out calc(var(--ink-delay,0ms) + 315ms) both;
}
.impact-ink .ink-frost-corner .ink-frost-curve{
 stroke:#7ca6ba;stroke-width:1.35px;
 animation-duration:220ms;
 animation-delay:calc(var(--ink-delay,0ms) + 260ms);
}
.impact-ink .ink-frost-corner .ink-frost-bend{animation-delay:calc(var(--ink-delay,0ms) + 350ms)}
.impact-ink .ink-frost-corner .ink-frost-top{animation-delay:calc(var(--ink-delay,0ms) + 375ms)}
.impact-ink .ink-frost-corner .ink-frost-tips{
 stroke-width:.65px;
 animation-delay:calc(var(--ink-delay,0ms) + 420ms);
}
.card-field #battle-root .combat-notice-line.impact-ink.ink-heavy{z-index:1;--crack-ink:#79645a}
.card-field #battle-root .combat-notice-line.impact-ink[data-line=heavy-break]{--crack-ink:#785447}
.impact-ink .ink-fracture-art{
 --fracture-start:calc(var(--ink-delay,0ms) + var(--ink-join));
 animation:vg-fracture-clear 890ms ease-out var(--ink-delay,0ms) both;
}
.impact-ink .ink-fracture-reveal{
 stroke:white;stroke-width:11px;stroke-dashoffset:1;
 animation:vg-fracture-reveal 315ms cubic-bezier(.29,.12,.46,1) var(--fracture-start) both;
}
.impact-ink :is(.ink-fracture-shadow,.ink-fracture-cut,.ink-fracture-rim,.ink-fracture-grain){stroke-dasharray:none}
.impact-ink .ink-fracture-shadow{stroke:#b38c76;stroke-width:2.6px;opacity:.21}
.impact-ink .ink-fracture-cut{stroke:var(--crack-ink);stroke-width:1px;opacity:.85}
.impact-ink .ink-fracture-rim{stroke:#efceab;stroke-width:.64px;opacity:.8}
.impact-ink .ink-fracture-grain{stroke:var(--crack-ink);stroke-width:.65px;opacity:.62}
.impact-ink .ink-fracture-glint{
 stroke:#e1b288;stroke-width:.8px;stroke-dasharray:.14 1;
 animation:vg-fracture-glint 315ms cubic-bezier(.29,.12,.46,1) var(--fracture-start) both;
}
@keyframes vg-impact-draw{
 0%{opacity:0;stroke-dashoffset:1} 12%{opacity:.73} 38%,64%{opacity:.85;stroke-dashoffset:0} 100%{opacity:0;stroke-dashoffset:0}
}
@keyframes vg-impact-detail{
 0%,25%{opacity:0;stroke-dashoffset:1} 43%{opacity:.84} 59%{stroke-dashoffset:0} 100%{opacity:0;stroke-dashoffset:0}
}
@keyframes vg-impact-contact{0%,16%{opacity:0} 27%{opacity:.86} 48%{opacity:.32} 78%,100%{opacity:0}}
@keyframes vg-impact-incoming{
 0%{opacity:0;stroke-dashoffset:1} 10%{opacity:.55} 26%{opacity:.61;stroke-dashoffset:0} 54%,100%{opacity:0;stroke-dashoffset:0}
}
@keyframes vg-impact-reply{
 0%,23%{opacity:0;stroke-dashoffset:1} 43%{opacity:.85} 58%,72%{opacity:.92;stroke-dashoffset:0} 100%{opacity:0;stroke-dashoffset:0}
}
@keyframes vg-impact-edge{
 0%,28%{opacity:0;clip-path:inset(0 65% 0 0)} 61%{opacity:.62;clip-path:inset(0)} 100%{opacity:0;clip-path:inset(0)}
}
@keyframes vg-ink-grow{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
@keyframes vg-ink-clear{0%,76%{opacity:1}100%{opacity:0}}
@keyframes vg-fracture-clear{0%,87%{opacity:1}100%{opacity:0}}
@keyframes vg-fracture-reveal{0%{opacity:0;stroke-dashoffset:1}6%{opacity:1}100%{opacity:1;stroke-dashoffset:0}}
@keyframes vg-fracture-glint{0%{opacity:0;stroke-dashoffset:.14}14%,85%{opacity:.76}100%{opacity:0;stroke-dashoffset:-.98}}
@media(prefers-reduced-motion:reduce){.combat-notice-line{display:none}}.reduced-motion .combat-notice-line{display:none}

.card-field #battle-root .is-status-notice .card-event-portrait[src*="/monster-actions/"],.card-field #battle-root .notice-slide-face>img[src*="/monster-actions/"]{object-fit:contain;object-position:center;transform:none;padding:1px;box-sizing:border-box;filter:none}

/* Give the title the full card width on small combatants. */
.card-field #battle-root .battle-unit.card-event-show>.card-event-back.is-status-notice,
.card-field #battle-root .is-status-notice .notice-slide-face:first-child,
.card-field #battle-root .notice-next.is-hostile-action{
 display:flex!important;flex-direction:column;justify-content:center!important;align-items:center!important;
 padding:4px 6px!important;gap:3px!important;text-align:center;
}
.card-field #battle-root .is-status-notice .card-event-avatar{line-height:0}
.card-field #battle-root .is-status-notice .card-event-portrait,
.card-field #battle-root .notice-next.is-hostile-action>img{width:25px!important;height:25px!important;object-fit:contain}
.card-field #battle-root .card-event-back.is-status-notice .card-event-copy,
.card-field #battle-root .notice-next.is-hostile-action>span{width:100%!important;max-width:100%;min-width:0;padding:0!important;align-items:center;text-align:center}
.card-field #battle-root .card-event-back.is-status-notice .status-notice{width:100%;min-width:0;max-width:100%;padding:0!important}
.card-field #battle-root .card-event-back.is-status-notice .status-notice>b,
.card-field #battle-root .notice-next.is-hostile-action>span>b{
 display:block!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;
 -webkit-line-clamp:unset!important;word-break:normal;overflow-wrap:normal;hyphens:none;text-wrap:balance;
 font:600 10.5px/1.16 Interface,sans-serif!important;letter-spacing:normal;
}
.card-field #battle-root .battle-unit .is-hostile-action .card-event-trace{--impact-source:#ba786a;animation:fx-fade .18s calc(var(--trace-delay,0ms) + .66s) ease-out forwards!important}
.card-field #battle-root .battle-unit .is-hostile-action .card-event-trace rect{stroke:#ba786a!important;animation-delay:var(--trace-delay,0ms)!important}
@media (prefers-reduced-motion:reduce){.card-field #battle-root .battle-unit .is-hostile-action .card-event-trace{display:none}}

/* Centre the portrait and the actual number together, including the first slide of a chained hit. */
.card-field #battle-root .battle-unit.card-event-show>.card-event-back.is-numeric-impact:not(.is-status-notice),
.card-field #battle-root .is-numeric-impact .notice-slide-face:first-child {
  grid-template-columns: minmax(0,max-content) minmax(0,max-content) !important;
  justify-content: center !important;
  column-gap: 6px !important;
}
.card-field #battle-root .is-numeric-impact .card-event-avatar {width:32px;max-width:100%;justify-self:center}
.card-field #battle-root .is-numeric-impact .card-event-copy,
.card-field #battle-root .is-numeric-impact .card-event-copy>.card-impact-content {width:fit-content;max-width:100%;justify-content:center}
