.trimsy-splash {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483000 !important;
    width: 100%;
    height: 100%;
    height: 100dvh;
    overflow: hidden !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #0735C5;
    box-sizing: border-box;
    pointer-events: auto;
    padding: 0;
}

.trimsy-splash *,
.trimsy-splash *::before,
.trimsy-splash *::after {
    box-sizing: border-box;
}

.trimsy-splash.is-out {
    opacity: 0;
    pointer-events: none;
    transition: opacity 280ms ease;
}

.trimsy-splash-decoration {
    position: absolute;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.trimsy-splash-decoration.is-top {
    top: 0;
    left: 0;
    width: 72%;
    height: 26%;
}

.trimsy-splash-decoration.is-bottom {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 30%;
    overflow: visible;
}

.trimsy-splash-decoration svg {
    display: block;
    width: 100%;
    height: 100%;
}

.trimsy-splash-decoration.is-bottom svg {
    overflow: visible;
}

.trimsy-splash-center {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    max-width: 420px;
    margin-top: -8vh;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: visible;
    z-index: 3;
}

.trimsy-splash-logo-frame {
    box-sizing: content-box;
    width: 78%;
    max-width: 320px;
    overflow: visible;
    position: relative;
    z-index: 4;
}

.trimsy-splash-logo {
    display: block;
    width: 100%;
    aspect-ratio: 367 / 369;
    background: url("../img/logo-trimsy-splash-full.png?v=20261117spl12") center / contain no-repeat;
    overflow: visible;
    opacity: 0;
}

.trimsy-splash-tagline {
    margin: 20px 0 0;
    max-width: 280px;
    font-family: Inter, "Plus Jakarta Sans", Nunito, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    color: #FFFFFF;
    text-align: center;
    text-wrap: balance;
    opacity: 0;
}

.trimsy-splash-accent {
    width: 75px;
    height: 3px;
    margin-top: 18px;
    background: #36D4FF;
    border-radius: 20px;
    opacity: 0;
}

.trimsy-splash-loading {
    position: absolute;
    left: 0;
    right: 0;
    bottom: max(12vh, calc(28px + env(safe-area-inset-bottom, 0px)));
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.85);
    font-family: Inter, "Plus Jakarta Sans", Nunito, sans-serif;
    font-size: 13px;
    font-weight: 400;
    z-index: 2;
    opacity: 0;
}

.trimsy-splash-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #5BDFFF;
    border-radius: 50%;
}

.trimsy-splash.is-in .trimsy-splash-logo {
    animation: trimsy-splash-logo-in 600ms ease forwards;
}

.trimsy-splash.is-in .trimsy-splash-tagline {
    animation: trimsy-splash-in 600ms ease 180ms forwards;
}

.trimsy-splash.is-in .trimsy-splash-accent {
    animation: trimsy-splash-in 600ms ease 280ms forwards;
}

.trimsy-splash.is-in .trimsy-splash-loading {
    animation: trimsy-splash-in 500ms ease 360ms forwards;
}

.trimsy-splash.is-busy .trimsy-splash-spinner {
    animation: trimsy-spin 850ms linear infinite;
}

@keyframes trimsy-splash-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes trimsy-splash-logo-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes trimsy-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 360px) {
    .trimsy-splash-center {
        padding: 0 18px;
    }

    .trimsy-splash-logo-frame {
        width: 78%;
    }

    .trimsy-splash-tagline {
        font-size: 15px;
    }
}

@media (max-height: 620px) {
    .trimsy-splash-center {
        margin-top: -4vh;
    }

    .trimsy-splash-logo-frame {
        width: 58%;
        max-width: 220px;
    }

    .trimsy-splash-tagline {
        margin-top: 14px;
        font-size: 15px;
    }

    .trimsy-splash-accent {
        margin-top: 12px;
    }

    .trimsy-splash-loading {
        bottom: max(8vh, calc(16px + env(safe-area-inset-bottom, 0px)));
        gap: 8px;
    }
}

@media (orientation: landscape) and (max-height: 500px) {
    .trimsy-splash-center {
        margin-top: -2vh;
        max-width: 280px;
    }

    .trimsy-splash-logo-frame {
        width: 42%;
        max-width: 160px;
    }

    .trimsy-splash-tagline {
        margin-top: 10px;
        font-size: 14px;
    }

    .trimsy-splash-decoration {
        opacity: 0.55;
    }

    .trimsy-splash-loading {
        bottom: max(6vh, calc(12px + env(safe-area-inset-bottom, 0px)));
    }
}

@media (prefers-reduced-motion: reduce) {
    .trimsy-splash.is-in .trimsy-splash-logo,
    .trimsy-splash.is-in .trimsy-splash-tagline,
    .trimsy-splash.is-in .trimsy-splash-accent,
    .trimsy-splash.is-in .trimsy-splash-loading {
        animation: trimsy-splash-fade 280ms ease forwards;
        transform: none;
    }

    .trimsy-splash.is-busy .trimsy-splash-spinner {
        animation: none;
        border-top-color: rgba(91, 223, 255, 0.7);
    }
}

@keyframes trimsy-splash-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}
