body fuse-splash-screen {
    --splash-green: #079669;
    --splash-green-dark: #08785b;
    --splash-green-soft: #5fc7ad;
    --splash-ink: #263b43;
    --splash-muted: #73858d;
    --splash-line: #dce9e6;
    --splash-background: #f8fcfb;

    position: fixed;
    inset: 0;
    z-index: 999999;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: var(--splash-ink);
    background:
        radial-gradient(circle at 8% 50%, rgba(95, 199, 173, 0.16), transparent 32%),
        radial-gradient(circle at 92% 45%, rgba(95, 199, 173, 0.14), transparent 30%),
        linear-gradient(135deg, #ffffff 0%, var(--splash-background) 52%, #eef9f6 100%);
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    pointer-events: none;
    opacity: 1;
    visibility: visible;
    transition:
        opacity 350ms ease,
        visibility 350ms ease;
}

body fuse-splash-screen *,
body fuse-splash-screen *::before,
body fuse-splash-screen *::after {
    box-sizing: border-box;
}

body fuse-splash-screen .splash-medical-bg,
body fuse-splash-screen .splash-grid,
body fuse-splash-screen .splash-hexagons {
    position: absolute;
    inset: 0;
}

body fuse-splash-screen .splash-medical-bg {
    overflow: hidden;
}

body fuse-splash-screen .splash-grid {
    opacity: 0.25;
    background-image:
        linear-gradient(rgba(7, 150, 105, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(7, 150, 105, 0.045) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(circle at center, black 10%, transparent 72%);
}

body fuse-splash-screen .splash-hexagons {
    width: 340px;
    height: 420px;
    inset: auto;
    opacity: 0.3;
    background-image:
        linear-gradient(30deg, transparent 24%, rgba(7, 150, 105, 0.16) 25%, rgba(7, 150, 105, 0.16) 26%, transparent 27%, transparent 74%, rgba(7, 150, 105, 0.16) 75%, rgba(7, 150, 105, 0.16) 76%, transparent 77%),
        linear-gradient(150deg, transparent 24%, rgba(7, 150, 105, 0.16) 25%, rgba(7, 150, 105, 0.16) 26%, transparent 27%, transparent 74%, rgba(7, 150, 105, 0.16) 75%, rgba(7, 150, 105, 0.16) 76%, transparent 77%);
    background-size: 84px 146px;
}

body fuse-splash-screen .splash-hexagons--left {
    bottom: -80px;
    left: -90px;
    transform: rotate(-12deg);
}

body fuse-splash-screen .splash-hexagons--right {
    top: -60px;
    right: -90px;
    transform: rotate(14deg);
}

body fuse-splash-screen .splash-dna {
    position: absolute;
    width: 190px;
    height: 450px;
    color: rgba(7, 150, 105, 0.17);
    animation: dna-float 7s ease-in-out infinite;
}

body fuse-splash-screen .splash-dna--left {
    bottom: -55px;
    left: -15px;
    transform: rotate(-14deg);
}

body fuse-splash-screen .splash-dna--right {
    top: -70px;
    right: -10px;
    transform: rotate(166deg);
    animation-delay: -3.5s;
}

body fuse-splash-screen .splash-ecg {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 180px;
    transform: translateY(-50%);
    overflow: visible;
}

body fuse-splash-screen .splash-ecg__base,
body fuse-splash-screen .splash-ecg__pulse {
    fill: none;
    vector-effect: non-scaling-stroke;
}

body fuse-splash-screen .splash-ecg__base {
    stroke: rgba(7, 150, 105, 0.13);
    stroke-width: 2;
}

body fuse-splash-screen .splash-ecg__pulse {
    stroke: var(--splash-green-soft);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 180 1260;
    filter: drop-shadow(0 0 5px rgba(7, 150, 105, 0.25));
    animation: ecg-travel 4.6s linear infinite;
}

body fuse-splash-screen .splash-content {
    position: relative;
    z-index: 2;
    width: min(620px, calc(100vw - 40px));
    min-height: 510px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 54px 36px;
    text-align: center;
}

body fuse-splash-screen .splash-content::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 520px;
    height: 520px;
    max-width: 90vw;
    max-height: 90vw;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.96) 0%,
        rgba(255, 255, 255, 0.88) 48%,
        rgba(255, 255, 255, 0) 74%
    );
}

body fuse-splash-screen .splash-logo {
    width: min(360px, 78vw);
    max-height: 155px;
    object-fit: contain;
    margin-bottom: 26px;
    filter: drop-shadow(0 8px 18px rgba(38, 59, 67, 0.1));
    animation: logo-arrive 700ms ease-out both;
}

body fuse-splash-screen .splash-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

body fuse-splash-screen .splash-status__title {
    color: var(--splash-ink);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.42em;
    text-indent: 0.42em;
}

body fuse-splash-screen .splash-status__subtitle {
    color: var(--splash-muted);
    font-size: 11px;
    letter-spacing: 0.03em;
}

body fuse-splash-screen .splash-progress {
    width: min(280px, 68vw);
    height: 5px;
    margin-top: 19px;
    overflow: hidden;
    border-radius: 999px;
    background: #dfe9e7;
    box-shadow: inset 0 1px 2px rgba(38, 59, 67, 0.08);
}

body fuse-splash-screen .splash-progress__bar {
    display: block;
    width: 42%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--splash-green-dark), var(--splash-green-soft));
    box-shadow: 0 0 10px rgba(7, 150, 105, 0.25);
    animation: progress-slide 1.65s ease-in-out infinite;
}

body fuse-splash-screen .splash-modules {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    margin-top: 38px;
}

body fuse-splash-screen .splash-module {
    position: relative;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(7, 150, 105, 0.32);
    border-radius: 50%;
    color: var(--splash-green);
    background: rgba(255, 255, 255, 0.72);
    box-shadow:
        0 7px 18px rgba(38, 59, 67, 0.06),
        inset 0 0 0 5px rgba(7, 150, 105, 0.035);
    animation: module-pulse 2.5s ease-in-out infinite;
}

body fuse-splash-screen .splash-module:not(:last-child)::after {
    content: "";
    position: absolute;
    left: calc(100% + 1px);
    width: 22px;
    height: 1px;
    background: rgba(7, 150, 105, 0.24);
}

body fuse-splash-screen .splash-module:nth-child(2) {
    animation-delay: 0.18s;
}

body fuse-splash-screen .splash-module:nth-child(3) {
    animation-delay: 0.36s;
}

body fuse-splash-screen .splash-module:nth-child(4) {
    animation-delay: 0.54s;
}

body fuse-splash-screen .splash-module:nth-child(5) {
    animation-delay: 0.72s;
}

body fuse-splash-screen .splash-module svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

body fuse-splash-screen .splash-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 42px;
    color: var(--splash-green-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
}

body fuse-splash-screen .splash-hospital-icon {
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
}

body fuse-splash-screen .splash-hospital-icon svg {
    width: 25px;
    height: 25px;
    fill: currentColor;
}

@keyframes progress-slide {
    0% {
        transform: translateX(-110%);
    }

    55%,
    100% {
        transform: translateX(240%);
    }
}

@keyframes ecg-travel {
    from {
        stroke-dashoffset: 1440;
    }

    to {
        stroke-dashoffset: 0;
    }
}

@keyframes module-pulse {
    0%,
    100% {
        transform: translateY(0);
        border-color: rgba(7, 150, 105, 0.25);
    }

    50% {
        transform: translateY(-4px);
        border-color: rgba(7, 150, 105, 0.65);
        box-shadow:
            0 10px 22px rgba(38, 59, 67, 0.08),
            0 0 0 5px rgba(7, 150, 105, 0.06);
    }
}

@keyframes dna-float {
    0%,
    100% {
        translate: 0 0;
    }

    50% {
        translate: 0 -14px;
    }
}

@keyframes logo-arrive {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 700px) {
    body fuse-splash-screen .splash-content {
        min-height: 450px;
        padding: 34px 20px 26px;
    }

    body fuse-splash-screen .splash-logo {
        width: min(300px, 76vw);
        margin-bottom: 22px;
    }

    body fuse-splash-screen .splash-status__subtitle {
        max-width: 280px;
        line-height: 1.45;
    }

    body fuse-splash-screen .splash-modules {
        gap: 12px;
        margin-top: 30px;
    }

    body fuse-splash-screen .splash-module {
        width: 42px;
        height: 42px;
    }

    body fuse-splash-screen .splash-module:not(:last-child)::after {
        width: 12px;
    }

    body fuse-splash-screen .splash-module svg {
        width: 20px;
        height: 20px;
    }

    body fuse-splash-screen .splash-footer {
        margin-top: 34px;
        font-size: 15px;
    }

    body fuse-splash-screen .splash-dna {
        opacity: 0.55;
    }
}

@media (max-width: 420px) {
    body fuse-splash-screen .splash-modules {
        gap: 8px;
    }

    body fuse-splash-screen .splash-module {
        width: 38px;
        height: 38px;
    }

    body fuse-splash-screen .splash-module:not(:last-child)::after {
        width: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body fuse-splash-screen *,
    body fuse-splash-screen *::before,
    body fuse-splash-screen *::after {
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
    }
}

body:not(.fuse-splash-screen-hidden) {
    overflow: hidden;
}

body.fuse-splash-screen-hidden fuse-splash-screen {
    visibility: hidden;
    opacity: 0;
}
