/* Dominara — ortak can barı animasyonu. Mevcut ölçü ve konumu değiştirmez. */

.dhp-host {
    position: relative;
}

.dhp-delay {
    position: absolute;
    z-index: 0;
    height: auto;
    max-width: 100%;
    border-radius: 999px;
    pointer-events: none;
    background: linear-gradient(180deg, #f8edd6 0%, #f3d48a 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.dhp-host > .dhp-fill {
    position: relative;
    z-index: 1;
    transition: none !important;
}

.dhp-host > .od-hp-bar__fill.dhp-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    height: auto;
}

.dhp-host > .od-hp-bar__label {
    z-index: 3;
}

.dhp-fx {
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
}

.dhp-host.dhp-hit {
    animation: dhp-shake 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    outline: 1px solid rgba(254, 202, 202, 0.95);
    outline-offset: 0;
}

.dhp-host.dhp-hit > .dhp-fx {
    animation: dhp-fx-dmg 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.dhp-host.dhp-heal {
    outline: 1px solid rgba(187, 247, 208, 0.95);
    outline-offset: 0;
}

.dhp-host.dhp-heal > .dhp-fx {
    animation: dhp-fx-heal 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.dhp-float {
    position: fixed;
    z-index: 80;
    pointer-events: none;
    user-select: none;
    font-weight: 800;
    font-size: 0.78rem;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
    animation: dhp-float 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.dhp-float--dmg {
    color: #fca5a5;
}

.dhp-host.dhp-hit-crit {
    animation: dhp-shake-crit 0.58s cubic-bezier(0.36, 0.07, 0.19, 0.97);
    outline: 2px solid rgba(248, 113, 113, 0.95);
    outline-offset: 1px;
}

.dhp-host.dhp-hit-crit > .dhp-fx {
    animation: dhp-fx-dmg-crit 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.dhp-float--crit {
    font-size: 1.12rem;
    color: #ff3b3b;
    animation: dhp-float 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards, dhp-crit-shimmer 0.45s ease-in-out infinite alternate;
    text-shadow:
        0 0 10px rgba(255, 40, 40, 0.95),
        0 2px 4px rgba(0, 0, 0, 0.95);
}

.dhp-float--heal {
    color: #86efac;
}

.evcil-segments.health.dhp-host .evcil-seg {
    transition: none;
}

.evcil-segments.health .evcil-seg.dhp-seg-ghost {
    background-color: rgba(255, 255, 255, 0.08);
    background-image: linear-gradient(
        90deg,
        #f6e7c4 0,
        #f3d48a var(--ghost-end, 0%),
        transparent var(--ghost-end, 0%)
    );
}

@keyframes dhp-shake {
    0% { transform: translateX(0); }
    18% { transform: translateX(-1.5px); }
    36% { transform: translateX(1.5px); }
    54% { transform: translateX(-1px); }
    72% { transform: translateX(0.5px); }
    100% { transform: translateX(0); }
}

@keyframes dhp-shake-crit {
    0% { transform: translate(0, 0) rotate(0deg); }
    12% { transform: translate(-7px, 2px) rotate(-2deg); }
    28% { transform: translate(8px, -2px) rotate(2deg); }
    44% { transform: translate(-6px, 1px) rotate(-1.5deg); }
    60% { transform: translate(5px, -1px) rotate(1.2deg); }
    76% { transform: translate(-3px, 0) rotate(-0.6deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes dhp-crit-shimmer {
    from {
        filter: brightness(1) saturate(1.1);
    }
    to {
        filter: brightness(1.45) saturate(1.35);
    }
}

@keyframes dhp-fx-dmg-crit {
    0% {
        opacity: 0.88;
        background: rgba(220, 38, 38, 0.55);
        box-shadow: inset 0 0 12px rgba(254, 202, 202, 0.95);
    }
    100% {
        opacity: 0;
        background: rgba(220, 38, 38, 0);
        box-shadow: inset 0 0 0 1px rgba(254, 202, 202, 0);
    }
}

@keyframes dhp-fx-dmg {
    0% {
        opacity: 0.72;
        background: rgba(239, 68, 68, 0.42);
        box-shadow: inset 0 0 0 1px rgba(254, 226, 226, 0.85);
    }
    100% {
        opacity: 0;
        background: rgba(239, 68, 68, 0);
        box-shadow: inset 0 0 0 1px rgba(254, 226, 226, 0);
    }
}

@keyframes dhp-fx-heal {
    0% {
        opacity: 0.7;
        background: rgba(74, 222, 128, 0.38);
        box-shadow: inset 0 0 0 1px rgba(220, 252, 231, 0.9);
    }
    100% {
        opacity: 0;
        background: rgba(74, 222, 128, 0);
        box-shadow: inset 0 0 0 1px rgba(220, 252, 231, 0);
    }
}

@keyframes dhp-float {
    from {
        opacity: 1;
        transform: translate(-100%, 0);
    }
    to {
        opacity: 0;
        transform: translate(-100%, -14px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .dhp-host.dhp-hit,
    .dhp-host.dhp-hit-crit,
    .dhp-host.dhp-heal,
    .dhp-host.dhp-hit > .dhp-fx,
    .dhp-host.dhp-heal > .dhp-fx,
    .dhp-float {
        animation: none !important;
    }
}
