/* April's separate absorption pool, after generic shields and before rune armor. */
.has-v3-april-bubbles {
    --april-hp-main: #32e7f1;
    --april-hp-light: #efffff;
    --april-hp-deep: #096879;
    --april-hp-accent: #bca4f8;
    --april-hp-text: #6cffff;
}
[data-april-hp-theme="jeg"] { --april-hp-main: #0c80ed; --april-hp-light: #e2f6ff; --april-hp-deep: #001361; --april-hp-accent: #00cee0; --april-hp-text: #8bdbff; }
[data-april-hp-theme="mesekonyv"] { --april-hp-main: #b33a58; --april-hp-light: #ffddb5; --april-hp-deep: #5b0714; --april-hp-accent: #e991bc; --april-hp-text: #ffb5d4; }
[data-april-hp-theme="halloween"] { --april-hp-main: #f97425; --april-hp-light: #e1fff7; --april-hp-deep: #6b1885; --april-hp-accent: #22e5bb; --april-hp-text: #ffc17e; }
[data-april-hp-theme="sziromvihar"] { --april-hp-main: #f6a1cb; --april-hp-light: #fff3f2; --april-hp-deep: #654263; --april-hp-accent: #e8c48c; --april-hp-text: #ffd3e7; }
.v3-hp-april-bubble-fill {
    position: absolute; top: 0; height: 100%; z-index: 6; overflow: hidden;
    box-sizing: border-box; pointer-events: none; border-left: 1px solid var(--april-hp-light);
    background: linear-gradient(100deg,var(--april-hp-deep),var(--april-hp-main) 55%,var(--april-hp-accent));
    box-shadow: inset 0 0 5px var(--april-hp-light);
    transition: width .3s ease, left .3s ease;
}
.v3-hp-april-bubble-fill.is-terminal { border-radius: 0 999px 999px 0; }
.v3-hp-april-bubble-fill::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(110deg,transparent 20%,#ffffff66 48%,transparent 75%) 0 0 / 220% 100%;
    animation: aprilHpShieldSheen 3s linear infinite;
}
.v3-hp-april-bubble-fill > i {
    position: absolute; left: calc(5% + var(--april-hp-i)*22%); top: 0;
    height: 100%; aspect-ratio: 1; opacity: .85;
    animation: aprilHpBubbleDrift 2400ms ease-in-out calc(var(--april-hp-i)*-430ms) infinite;
}
.v3-hp-april-bubble-fill svg { display: block; width: 100%; height: 100%; stroke: var(--april-hp-light); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
[data-april-hp-theme="jeg"] .v3-hp-april-bubble-fill > i { animation-name: aprilHpCrystalTurn; animation-duration: 6s; }
[data-april-hp-theme="mesekonyv"] .v3-hp-april-bubble-fill > i { animation-name: aprilHpPaperFlutter; }
[data-april-hp-theme="halloween"] .v3-hp-april-bubble-fill > i { animation-name: aprilHpPumpkinGlow; }
[data-april-hp-theme="sziromvihar"] .v3-hp-april-bubble-fill > i { animation-name: aprilHpPetalFloat; animation-duration: 4s; }
.v3-hp-layer-value.is-april-bubble {
    color: var(--april-hp-text); white-space: nowrap;
    text-shadow: 0 1px 2px #021018,0 0 3px #021018,0 0 5px var(--april-hp-deep);
}
.v3-hp-layer-value.is-april-bubble::before {
    background: transparent; border: 1px solid var(--april-hp-main); box-shadow: inset 0 0 3px var(--april-hp-accent),0 0 3px var(--april-hp-main);
    width: 7px; height: 7px; flex: 0 0 auto;
}
.v3-bars .bar.has-v3-april-bubbles .hp-fill,
.v3-bars .bar.has-v3-april-bubbles .hp-bonus-fill,
.v3-bars .bar.has-v3-april-bubbles .v3-hp-shield-fill { border-top-right-radius: 0; border-bottom-right-radius: 0; }
body.v3-compact-mode .v3-compact-vital--hp .v3-compact-vital-value {
    z-index: 7; display: flex; justify-content: center; align-items: center; gap: 4px;
}
body.v3-compact-mode .v3-compact-vital--hp.has-v3-april-bubbles .v3-compact-vital-value {
    font-size: 6px; gap: 2px; white-space: nowrap; letter-spacing: -.1px;
}
.v3-compact-vital-value > span { flex-shrink: 0; white-space: nowrap; }
.v3-compact-vital-value .v3-hp-layer-value { font-size: inherit; }
.v3-compact-vital-value .is-april-bubble::before { width: 4px; height: 4px; }
@keyframes aprilHpShieldSheen { to { background-position: -220% 0; } }
@keyframes aprilHpBubbleDrift { 0%,100% { transform: translateY(25%) scale(.7); } 50% { transform: translateY(-15%) scale(1); } }
@keyframes aprilHpCrystalTurn { to { transform: rotate(360deg); } }
@keyframes aprilHpPaperFlutter { 0%,100% { transform: rotate(-12deg) scaleX(.75); } 50% { transform: rotate(12deg) scaleX(1); } }
@keyframes aprilHpPumpkinGlow { 0%,100% { opacity: .55; transform: translateY(12%); } 50% { opacity: 1; transform: translateY(-8%); } }
@keyframes aprilHpPetalFloat { 0%,100% { transform: translateY(15%) rotate(-25deg); } 50% { transform: translateY(-15%) rotate(35deg); } }
body.v3-vfx-disabled .v3-hp-april-bubble-fill::after,
body.v3-vfx-disabled .v3-hp-april-bubble-fill > i { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
    .v3-hp-april-bubble-fill { transition: none; }
    .v3-hp-april-bubble-fill::after,.v3-hp-april-bubble-fill > i { animation: none !important; }
}
