/* ECG heartbeat loader — adapted from https://codepen.io/clowny3/pen/bpvzNz */

.heyat-ecg-loader-wrap,
.heyat-boot-loader-wrap,
.splash-boot-loader-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-shrink: 0;
}

.heyat-ecg-loader {
    display: block;
    width: min(216px, 72vw);
    height: auto;
    overflow: visible;
}

.heyat-ecg-loader__path {
    fill: none;
    stroke: #22d3ee;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 175;
    stroke-dashoffset: 350;
    filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.45));
    animation: heyat-ecg-draw 1.4s linear infinite;
}

.heyat-ecg-loader--accent .heyat-ecg-loader__path {
    stroke: #ec4899;
    filter: drop-shadow(0 0 8px rgba(236, 72, 153, 0.4));
}

.heyat-ecg-loader--light .heyat-ecg-loader__path {
    stroke: #009b3a;
    filter: drop-shadow(0 0 6px rgba(0, 155, 58, 0.35));
}

.heyat-ecg-loader--sm {
    width: min(140px, 56vw);
}

.heyat-ecg-loader__pct,
.heyat-boot-pct {
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1;
    min-width: 2.75em;
    text-align: center;
    font-variant-numeric: tabular-nums;
    color: #f8fafc;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.65);
}

.heyat-ecg-loader-wrap--light .heyat-ecg-loader__pct {
    color: #1e293b;
    text-shadow: none;
}

@keyframes heyat-ecg-draw {
    to {
        stroke-dashoffset: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .heyat-ecg-loader__path {
        animation: none;
        stroke-dashoffset: 0;
    }
}
