/* Player health restored by a Health Potion or Healthstone (hero-heal-feedback.mjs): the item lands on the top-bar
   health bar, the restored length fills with green light and "+N" rises above the number. Mirrors the red hit pulse. */
.wb-heal-burst{position:fixed;z-index:40;pointer-events:none;overflow:visible;transform-origin:0 0}
.wb-heal-burst i{position:absolute;display:block}
.wb-heal-glow{inset:0;border-radius:2px;background:radial-gradient(ellipse at 50% 0,#5fe06e55,#2a9c3a1f 55%,transparent 80%);box-shadow:inset 0 0 18px #63ff7a8c,0 0 10px #3fe0586b;opacity:0;animation:wb-heal-glow 1.55s ease-out .3s forwards}
@keyframes wb-heal-glow{0%{opacity:0}14%{opacity:1}55%{opacity:.5}100%{opacity:0}}
.wb-heal-bar{left:var(--bar-left);top:var(--bar-top);width:var(--bar-width);height:var(--bar-height)}
.wb-heal-gain{top:0;bottom:0;left:var(--heal-from);width:calc(var(--heal-to) - var(--heal-from));min-width:3px}
.wb-heal-gain::before,.wb-heal-gain::after{content:'';position:absolute;inset:0;border-radius:1px}
/* The empty track slides off the restored length, so the bar visibly fills. */
.wb-heal-gain::before{background:#15120f;transform-origin:100% 50%;animation:wb-heal-fill .55s cubic-bezier(.3,.7,.4,1) .35s both}
@keyframes wb-heal-fill{from{transform:scaleX(1)}to{transform:scaleX(0)}}
.wb-heal-gain::after{background:linear-gradient(#ecffd6,#68e467 55%,#2fa83c);box-shadow:0 0 6px 2px #7cff7aa8;opacity:0;animation:wb-heal-light 1.5s ease-out .35s forwards}
@keyframes wb-heal-light{0%{opacity:0}18%,45%{opacity:1}100%{opacity:0}}
/* A light runs along the filled bar to the new health. */
.wb-heal-shine{top:-1px;bottom:-1px;left:0;width:16px;background:linear-gradient(90deg,transparent,#f2ffe4d9,transparent);opacity:0;animation:wb-heal-shine .75s ease-in-out .45s forwards}
@keyframes wb-heal-shine{0%{opacity:0;left:-8px}15%{opacity:1}85%{opacity:1}100%{opacity:0;left:calc(var(--heal-to) - 8px)}}
/* The item sits on the bar at the new health. */
.wb-heal-burst .wb-heal-item{position:absolute;left:var(--item-left);top:calc(var(--bar-top) + var(--bar-height) / 2 - 18px);width:24px;height:24px;box-sizing:border-box;border:1px solid #000;border-radius:3px;box-shadow:0 0 0 1px #c8aa6e99,0 0 10px 2px #69ff7a8c;animation:wb-heal-item 1.9s ease-out both}
@keyframes wb-heal-item{0%{opacity:0;transform:translateY(-26px) scale(.7)}18%{opacity:1;transform:translateY(0) scale(1.14)}26%{transform:translateY(0) scale(1)}72%{opacity:1;transform:translateY(0) scale(1)}100%{opacity:0;transform:translateY(-6px) scale(.85)}}
.wb-heal-amount{position:absolute;left:var(--label-left);width:var(--label-width);text-align:center;top:calc(var(--bar-top) - 17px);font:400 15px/1 WarbandFriz,Georgia,serif;color:#5fff5f;text-shadow:0 1px 0 #000,1px 1px 1px #000,0 0 4px #000;white-space:nowrap;animation:wb-heal-amount 1.65s ease-out .35s both}
@keyframes wb-heal-amount{0%{opacity:0;transform:translateY(6px) scale(.8)}14%{opacity:1;transform:translateY(-2px) scale(1.18)}28%{transform:translateY(-4px) scale(1)}72%{opacity:1}100%{opacity:0;transform:translateY(-14px)}}
.wb-heal-burst--full .wb-heal-amount{font-size:12px;color:#f0e6d2}
.wb-heal-burst--full :is(.wb-heal-gain,.wb-heal-shine){display:none}
@media(prefers-reduced-motion:reduce){
 .wb-heal-gain::before{animation:none;transform:scaleX(0)}
 .wb-heal-shine{display:none}
 .wb-heal-burst :is(.wb-heal-item,.wb-heal-amount){animation:wb-heal-fade 1.9s ease-out both}
 @keyframes wb-heal-fade{0%,10%{opacity:0}20%,72%{opacity:1}100%{opacity:0}}
}
