.trimsy-splash {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483000 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #FFFFFF;
    height: 100vh;
    height: 100dvh;
    padding: env(safe-area-inset-top, 0px) 24px env(safe-area-inset-bottom, 0px);
    box-sizing: border-box;
    pointer-events: auto;
}

.trimsy-splash *,
.trimsy-splash *::before,
.trimsy-splash *::after {
    box-sizing: border-box;
}

.trimsy-splash.is-out {
    opacity: 0;
    pointer-events: none;
    transition: opacity 250ms ease;
}

.trimsy-splash-arc {
    position: absolute;
    width: 240px;
    height: 240px;
    border: 36px solid #EDF4FB;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
}

.trimsy-splash-arc.is-tr {
    top: -108px;
    right: -86px;
}

.trimsy-splash-arc.is-bl {
    bottom: -108px;
    left: -86px;
}

.trimsy-splash-brand {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -6vh;
    width: 100%;
    max-width: 290px;
}

.trimsy-splash-logo {
    position: relative;
    display: block;
    width: 248px;
    max-width: min(72%, 290px);
    height: auto;
    overflow: visible;
}

.trimsy-splash-logo img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    overflow: visible;
    opacity: 0;
}

.trimsy-splash-stars {
    position: absolute;
    inset: -18px -22px -8px;
    pointer-events: none;
    z-index: 2;
}

.trimsy-splash-stars svg {
    position: absolute;
    display: block;
    opacity: 0;
    transform: scale(0);
    filter: drop-shadow(0 0 6px rgba(102, 149, 205, 0.55));
}

.trimsy-splash-stars .is-a { width: 22px; height: 22px; left: 38%; top: -6%; }
.trimsy-splash-stars .is-b { width: 14px; height: 14px; left: 8%; top: 18%; }
.trimsy-splash-stars .is-c { width: 11px; height: 11px; left: 72%; top: 6%; }
.trimsy-splash-stars .is-d { width: 16px; height: 16px; left: 92%; top: 32%; }
.trimsy-splash-stars .is-e { width: 10px; height: 10px; left: 2%; top: 62%; }
.trimsy-splash-stars .is-f { width: 13px; height: 13px; left: 58%; top: 78%; }
.trimsy-splash-stars .is-g { width: 9px; height: 9px; left: 86%; top: 70%; }

.trimsy-splash-tagbox {
    overflow: hidden;
    margin: 20px 0 0;
    width: 100%;
}

.trimsy-splash-tag {
    margin: 0;
    color: #687483;
    font-family: Inter, "Plus Jakarta Sans", Nunito, sans-serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 1.5px;
    line-height: 1.3;
    text-align: center;
    opacity: 0;
    transform: translateY(110%);
}

.trimsy-splash-dots {
    position: absolute;
    left: 50%;
    bottom: calc(10% + env(safe-area-inset-bottom, 0px));
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
    z-index: 1;
}

.trimsy-splash-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #6695CD;
    opacity: 0.35;
}

.trimsy-splash.is-in .trimsy-splash-logo img {
    animation: trimsy-splash-logo 1600ms cubic-bezier(0.22, 1, 0.36, 1) 280ms forwards;
}

.trimsy-splash.is-in .trimsy-splash-stars .is-a { animation: trimsy-star-pop 1800ms ease-out 80ms forwards; }
.trimsy-splash.is-in .trimsy-splash-stars .is-b { animation: trimsy-star-pop 1700ms ease-out 0ms forwards; }
.trimsy-splash.is-in .trimsy-splash-stars .is-c { animation: trimsy-star-pop 1850ms ease-out 180ms forwards; }
.trimsy-splash.is-in .trimsy-splash-stars .is-d { animation: trimsy-star-pop 1900ms ease-out 320ms forwards; }
.trimsy-splash.is-in .trimsy-splash-stars .is-e { animation: trimsy-star-pop 1750ms ease-out 460ms forwards; }
.trimsy-splash.is-in .trimsy-splash-stars .is-f { animation: trimsy-star-pop 1850ms ease-out 600ms forwards; }
.trimsy-splash.is-in .trimsy-splash-stars .is-g { animation: trimsy-star-pop 1700ms ease-out 740ms forwards; }

.trimsy-splash.is-in .trimsy-splash-tag {
    animation: trimsy-splash-tag 1400ms cubic-bezier(0.22, 1, 0.36, 1) 1100ms forwards;
}

.trimsy-splash.is-in .trimsy-splash-arc {
    animation: trimsy-splash-arc 1600ms ease forwards;
}

.trimsy-splash.is-busy .trimsy-splash-dots span {
    animation: trimsy-splash-dot 1200ms ease-in-out infinite;
}

.trimsy-splash.is-busy .trimsy-splash-dots span:nth-child(2) {
    animation-delay: 160ms;
}

.trimsy-splash.is-busy .trimsy-splash-dots span:nth-child(3) {
    animation-delay: 320ms;
}

@keyframes trimsy-splash-logo {
    0% {
        opacity: 0;
        filter: brightness(2.4);
        transform: scale(0.94);
    }
    45% {
        opacity: 1;
        filter: brightness(1.55);
        transform: scale(1.02);
    }
    100% {
        opacity: 1;
        filter: brightness(1);
        transform: scale(1);
    }
}

@keyframes trimsy-star-pop {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-25deg);
    }
    18% {
        opacity: 1;
        transform: scale(1.45) rotate(8deg);
    }
    55% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: scale(0.35) rotate(18deg);
    }
}

@keyframes trimsy-splash-tag {
    from {
        opacity: 0;
        transform: translateY(110%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes trimsy-splash-arc {
    to { opacity: 1; }
}

@keyframes trimsy-splash-dot {
    0%, 100% {
        opacity: 0.35;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-3px);
    }
}

@media (max-width: 360px) {
    .trimsy-splash-logo {
        max-width: 68%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .trimsy-splash.is-in .trimsy-splash-logo img,
    .trimsy-splash.is-in .trimsy-splash-tag,
    .trimsy-splash.is-in .trimsy-splash-arc {
        animation: trimsy-splash-fade 400ms ease forwards;
        transform: none;
        filter: none;
    }

    .trimsy-splash.is-in .trimsy-splash-stars svg {
        animation: none !important;
        opacity: 0;
    }

    .trimsy-splash.is-busy .trimsy-splash-dots span {
        animation: none !important;
    }

    .trimsy-splash-dots span {
        opacity: 1;
        transform: none;
    }
}

@keyframes trimsy-splash-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}
