/* One silhouette-masked fire material for every roster and damage stage. */
.enemy[data-burning="true"] .character-art{background-image:var(--body-mask)!important}
.enemy[data-burning="true"][data-sprite-set="new"] .character-art{background-size:300% 200%!important}
.enemy[data-burning="true"][data-sprite-set="old"] .character-art{background-size:300% 100%!important}
.enemy[data-burning="true"] .burn-vfx{display:block!important;background:none!important;inset:auto 0 0!important;height:calc(100% * var(--actor-scale,1));width:calc(100% * var(--actor-scale,1));mask-image:var(--body-mask);mask-size:300% 100%;mask-position:var(--sprite-x) 0;mask-repeat:no-repeat;filter:none;animation:none!important;pointer-events:none;mix-blend-mode:screen}
.enemy[data-sprite-set="new"][data-burning="true"] .burn-vfx{width:calc(66.666667% * var(--actor-scale,1));mask-size:300% 200%;mask-position:var(--sprite-x) var(--sprite-y)}
.burn-vfx::before,.burn-vfx::after{content:'';position:absolute;inset:-5% 0;background:radial-gradient(ellipse at 18% 90%,#fff4a9 0%,#ffad2e 8%,#f34b12b0 18%,transparent 33%),radial-gradient(ellipse at 68% 70%,#ffe58c 0%,#ff711cb0 14%,transparent 30%),radial-gradient(ellipse at 38% 36%,#ffdf76 0%,#ff6e16c0 12%,transparent 27%),radial-gradient(ellipse at 80% 12%,#ffe794 0%,#fb7018a0 10%,transparent 23%);background-size:100% 60%;animation:body-flames .75s linear infinite;opacity:.85}
.burn-vfx::after{transform:scaleX(-1);animation-duration:1.15s;animation-delay:-.4s;opacity:.65;background-size:100% 85%}
.enemy[data-burning="true"] .character-art{filter:drop-shadow(0 0 4px #ff7d27) drop-shadow(0 0 9px #ec64175c)!important}
.enemy.dead[data-burning="true"] .burn-vfx{opacity:.8}
@keyframes body-flames{0%{background-position:0 120%;filter:brightness(.85)}50%{filter:brightness(1.35)}100%{background-position:0 -30%;filter:brightness(.85)}}
.enemy[data-frozen="true"]:not([data-burning="true"]) .character-art{filter:drop-shadow(0 0 6px #9beaff) sepia(.4) hue-rotate(145deg) saturate(1.5)!important}
.enemy[data-poisoned="true"]:not([data-burning="true"]):not([data-frozen="true"]) .character-art{filter:drop-shadow(0 0 6px #a8d54299)!important}
.gear-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin:12px 0;position:sticky;top:0;z-index:3;background:#19231c;padding:5px 0}
.gear-tabs button{border:1px solid #69634c;border-radius:8px;padding:9px 3px;background:#20291f;color:#ddd4b9;font:inherit;font-size:12px;min-height:58px;cursor:pointer}
.gear-tabs button.selected{border-color:#f1ce76;background:#5b5030;color:#fff4c7;box-shadow:inset 0 0 10px #e7b84b22}
.gear-tabs small{display:block;font-size:10px;margin-top:5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gear-vector{filter:drop-shadow(2px 4px 3px #0009)}
.weapon-choice strong{font-size:12px}.weapon-choice span{font-size:10px}
.weapon-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.weapon-choice{min-width:0}.weapon-choice .weapon-art{max-height:72px}
@media(max-width:380px){.gear-tabs button{font-size:11px}.weapon-choice strong{font-size:11px}.weapon-grid{gap:5px}}
@media(prefers-reduced-motion:reduce){.burn-vfx::before,.burn-vfx::after{animation:none}}
.is-paused .burn-vfx::before,.is-paused .burn-vfx::after{animation-play-state:paused}
.item-slot strong{max-width:100%;white-space:normal;overflow-wrap:anywhere;line-height:1.05;text-align:center;min-height:2.1em;display:flex;align-items:center;justify-content:center;font-size:clamp(11px,2.8vw,18px)}
.item-detail{max-width:100%;white-space:normal;overflow-wrap:anywhere}
.burn-vfx::before,.burn-vfx::after{inset:-8% -5% -2%;background:url('./assets/fire-material.svg') center bottom/100% 100% no-repeat;animation:body-flame-rise .8s ease-in-out infinite alternate;opacity:.88}
.burn-vfx::after{animation-duration:1.3s;animation-delay:-.65s;opacity:.4;transform:scaleX(-1)}
@keyframes body-flame-rise{from{translate:0 3%;scale:1 .96;filter:brightness(.9)}to{translate:0 -3%;scale:1.08 1.06;filter:brightness(1.25)}}
.burn-vfx::before{opacity:.65}.burn-vfx::after{opacity:.3}
/* Raster inventory atlas: matching the original Molotov's painted materials. */
.raster-gear{filter:drop-shadow(1px 3px 3px #0008)}
.name-statuses{display:inline-flex;align-items:center;gap:5px;flex-wrap:wrap;margin-left:5px;vertical-align:middle;max-width:100%}
.name-status{display:inline-flex;align-items:center;gap:3px;font:600 11px/1.2 Arial,sans-serif;white-space:nowrap;letter-spacing:0;text-transform:none;text-shadow:0 1px 2px #000}
.name-frost{color:#c0efff}.name-toxin{color:#c4eb83}
.enemy[data-frozen="true"]:not([data-burning="true"]) .enemy-name-text{color:#dbf6ff;text-shadow:0 0 4px #a1e3ff,0 0 9px #72c6f8}
.enemy[data-poisoned="true"]:not([data-burning="true"]):not([data-frozen="true"]) .enemy-name-text{color:#e0f4a7;text-shadow:0 0 5px #8faf3e,0 0 10px #67ad3177}
.body-status{display:none;position:absolute;inset:auto 0 0;height:calc(100% * var(--actor-scale,1));width:calc(100% * var(--actor-scale,1));margin-inline:auto;pointer-events:none;z-index:2;mask-image:var(--body-mask);mask-repeat:no-repeat;mask-size:300% 100%;mask-position:var(--sprite-x) 0}
.enemy[data-sprite-set="new"] .body-status{width:calc(66.666667% * var(--actor-scale,1));mask-size:300% 200%;mask-position:var(--sprite-x) var(--sprite-y)}
.body-status::before{content:'';position:absolute;inset:0;background-image:url('./assets/status-material-v2.webp');background-size:200% 100%;background-repeat:no-repeat}
.frost-vfx::before{background-position:0 50%;opacity:.7;mix-blend-mode:screen;animation:frost-shimmer 3s ease-in-out infinite alternate}
.toxin-vfx::before{background-position:100% 50%;opacity:.6;animation:toxin-drift 2.6s ease-in-out infinite alternate}
.enemy[data-frozen="true"] .frost-vfx,.enemy[data-poisoned="true"] .toxin-vfx{display:block}
/* Keep skin/clothes recognisable under texture, rather than recolouring the entire sprite. */
.enemy[data-frozen="true"]:not([data-burning="true"]) .character-art{filter:drop-shadow(0 0 5px #ace8f899)!important}
.enemy[data-poisoned="true"]:not([data-burning="true"]):not([data-frozen="true"]) .character-art{filter:drop-shadow(0 0 5px #7c9b3c88)!important}
@keyframes frost-shimmer{from{opacity:.48;filter:brightness(1)}to{opacity:.78;filter:brightness(1.25)}}
@keyframes toxin-drift{from{opacity:.38;translate:0 0}to{opacity:.65;translate:0 -2%}}
.is-paused .body-status::before{animation-play-state:paused}
@media(prefers-reduced-motion:reduce){.body-status::before{animation:none!important}}
@media(max-width:380px){.name-status{font-size:10px}.name-statuses{gap:3px;margin-left:3px}}
.enemy-name-row>strong{flex-wrap:wrap;column-gap:4px;row-gap:2px}.name-statuses:empty{display:none}
