/* ------------------------------------------------------------------
   Full-screen WebAssembly initialization splash.

   Rendered ON TOP of the already prerendered page while the .NET WASM
   runtime is downloaded and started. There is no redirect and no
   separate /initialization page any more.

   Driven by wwwroot/js/wasm-splash.js.
   ------------------------------------------------------------------ */

/* Lock background scrolling while the splash is up. */
html.wasm-splash-open,
html.wasm-splash-open body {
    overflow: hidden;
}

.wasm-splash {
    position: fixed;
    inset: 0;
    z-index: 100000;
    box-sizing: border-box;
    display: flex;
    padding: 16px;
    background: var(--gray-200, #F6F6F7);
    opacity: 1;
    transition: opacity 240ms ease-out;
}

.wasm-splash[hidden] {
    display: none;
}

.wasm-splash.wasm-splash--fading {
    opacity: 0;
    pointer-events: none;
}

.wasm-splash__card {
    flex: 1 1 auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    overflow: auto;
    background: #FFFFFF;
    box-shadow: 0 4px 15px rgba(22, 30, 57, 0.1);
    border-radius: 20px;
}

.wasm-splash__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 100%;
    max-width: 519px;
}

.wasm-splash__texts {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.wasm-splash__title {
    margin: 0;
    width: 100%;
    font-family: var(--third-family, "Montserrat Alternates", sans-serif);
    font-style: normal;
    font-weight: 600;
    font-size: 24px;
    line-height: 32px;
    text-align: center;
    color: var(--gray-700, #54596B);
}

.wasm-splash__subtitle {
    margin: 0;
    width: 100%;
    font-family: var(--font-family, "Mulish", sans-serif);
    font-style: normal;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    text-align: center;
    color: var(--gray-500, #8794A8);
}

.wasm-splash__progress {
    position: relative;
    width: 100%;
    height: 10px;
    background: var(--gray-200, #F6F6F7);
    border-radius: 20px;
    overflow: hidden;
}

.wasm-splash__progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--green-color, #1CCD9D);
    border-radius: 20px;
}

.wasm-splash__image {
    display: block;
    width: 100%;
    max-width: 200px;
    height: auto;
    margin-top: 8px;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

@media (min-width: 768px) {
    .wasm-splash {
        padding: 20px;
    }

    .wasm-splash__card {
        border-radius: 24px;
        padding: 20px;
    }

    .wasm-splash__content {
        gap: 32px;
    }

    .wasm-splash__title {
        font-size: 28px;
        line-height: 40px;
    }

    .wasm-splash__subtitle {
        font-size: 18px;
        line-height: 28px;
    }

    .wasm-splash__image {
        max-width: 240px;
        margin-top: 24px;
    }
}

@media (min-width: 1024px) {
    .wasm-splash {
        padding: 28px;
    }

    .wasm-splash__card {
        border-radius: 30px;
        padding: 28px;
    }

    .wasm-splash__title {
        font-size: 32px;
        line-height: 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wasm-splash {
        transition: none;
    }
}
