#trgAppSplash { display: none; }

html.trg-splash-enabled,
html.trg-splash-enabled body {
    overflow: hidden !important;
}

html.trg-splash-enabled #trgAppSplash {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 22% 18%, rgba(255,255,255,.08), transparent 28%),
        radial-gradient(circle at 80% 78%, rgba(220,38,38,.13), transparent 30%),
        #0F1E3D;
    color: #fff;
    opacity: 1;
    visibility: visible;
    transition: opacity .34s ease, visibility .34s ease;
    padding:
        max(24px, env(safe-area-inset-top))
        max(24px, env(safe-area-inset-right))
        max(24px, env(safe-area-inset-bottom))
        max(24px, env(safe-area-inset-left));
    box-sizing: border-box;
}

html.trg-splash-enabled.trg-splash-leaving #trgAppSplash {
    opacity: 0;
    visibility: hidden;
}

.trg-splash-content {
    position: relative;
    z-index: 2;
    width: min(82vw, 380px);
    text-align: center;
    animation: trgSplashRise .56s cubic-bezier(.22,.8,.28,1) both;
}

.trg-splash-logo-wrap {
    width: min(72vw, 310px);
    margin: 0 auto 28px;
    padding: 15px 20px;
    border-radius: 18px;
    background: rgba(255,255,255,.98);
    box-shadow:
        0 18px 50px rgba(0,0,0,.20),
        inset 0 0 0 1px rgba(255,255,255,.75);
}

.trg-splash-logo {
    display: block;
    width: 100%;
    height: auto;
    max-height: 82px;
    object-fit: contain;
}

.trg-splash-brand {
    font-size: clamp(22px, 6vw, 30px);
    line-height: 1.12;
    font-weight: 760;
    letter-spacing: -.02em;
}

.trg-splash-tagline {
    margin-top: 8px;
    color: rgba(255,255,255,.74);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .08em;
}

.trg-splash-loader {
    width: min(230px, 58vw);
    height: 3px;
    margin: 34px auto 0;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
}

.trg-splash-loader span {
    display: block;
    width: 42%;
    height: 100%;
    border-radius: inherit;
    background: #DC2626;
    box-shadow: 0 0 14px rgba(220,38,38,.55);
    animation: trgSplashLoad 1.05s cubic-bezier(.4,0,.2,1) infinite;
}

.trg-splash-footer {
    position: absolute;
    z-index: 2;
    left: 24px;
    right: 24px;
    bottom: max(24px, env(safe-area-inset-bottom));
    text-align: center;
    color: rgba(255,255,255,.42);
    font-size: 10px;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: .16em;
}

.trg-splash-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.trg-splash-glow-one {
    width: 250px;
    height: 250px;
    left: -120px;
    top: -80px;
    background: rgba(37,99,235,.12);
}

.trg-splash-glow-two {
    width: 280px;
    height: 280px;
    right: -150px;
    bottom: -110px;
    background: rgba(220,38,38,.11);
}

@keyframes trgSplashLoad {
    0% { transform: translateX(-120%); }
    55% { transform: translateX(110%); }
    100% { transform: translateX(260%); }
}

@keyframes trgSplashRise {
    from { opacity: 0; transform: translateY(10px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .trg-splash-content,
    .trg-splash-loader span {
        animation: none !important;
    }

    html.trg-splash-enabled #trgAppSplash {
        transition-duration: .12s;
    }
}
