/**
 * GazExpress — Splash navigation (charte vitrine Yango / orange #f97316)
 */
.gx-splash {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    background:
        radial-gradient(120% 80% at 50% -10%, color-mix(in srgb, var(--gx-accent) 18%, transparent), transparent 55%),
        linear-gradient(180deg, #fff8f3 0%, var(--gx-surface) 38%, var(--gx-bg) 100%);
    overflow: hidden;
    transition:
        opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0.55s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.gx-splash.is-hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.02);
    pointer-events: none;
}

.gx-splash__bar {
    height: 4px;
    background: color-mix(in srgb, var(--gx-accent) 12%, #fff);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.gx-splash__bar-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    background: linear-gradient(90deg, var(--gx-accent), #fbbf24, var(--gx-accent));
    background-size: 200% 100%;
    animation: gxSplashBarShine 1.2s linear infinite;
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.gx-splash__center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 24px 16px;
    text-align: center;
    animation: gxSplashFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.gx-splash__orbit {
    position: relative;
    width: 112px;
    height: 112px;
    margin-bottom: 8px;
}

.gx-splash__orbit-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--gx-accent);
    border-right-color: color-mix(in srgb, var(--gx-accent) 35%, transparent);
    animation: gx-spin 1.1s cubic-bezier(0.55, 0.1, 0.35, 1) infinite;
}

.gx-splash__orbit-ring--delay {
    inset: 10px;
    border-top-color: color-mix(in srgb, var(--gx-accent) 55%, transparent);
    border-right-color: transparent;
    animation-duration: 1.6s;
    animation-direction: reverse;
}

.gx-splash__flame {
    position: absolute;
    inset: 22px;
    width: auto;
    height: auto;
    max-width: 68px;
    max-height: 68px;
    margin: auto;
    object-fit: contain;
    animation: gxSplashFlame 2s ease-in-out infinite;
    filter: drop-shadow(0 8px 18px rgba(249, 115, 22, 0.45));
}

.gx-splash__name {
    font-family: var(--gx-font-display);
    font-weight: 800;
    font-size: clamp(28px, 6vw, 34px);
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-top: 4px;
}

.gx-splash__name b { color: var(--gx-accent); }
.gx-splash__name span { color: var(--gx-night); }

.gx-splash__tag {
    margin-top: 10px;
    max-width: 280px;
    color: var(--gx-text-muted);
    font-size: 14px;
    line-height: 1.45;
}

.gx-splash__status {
    margin-top: 22px;
    min-height: 20px;
    color: var(--gx-chevron);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    animation: gxSplashPulseText 1.8s ease-in-out infinite;
}

.gx-splash__dots {
    display: inline-flex;
    gap: 5px;
    margin-left: 6px;
    vertical-align: middle;
}

.gx-splash__dots i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gx-accent);
    opacity: 0.35;
    animation: gxSplashDot 1.2s ease-in-out infinite;
}

.gx-splash__dots i:nth-child(2) { animation-delay: 0.15s; }
.gx-splash__dots i:nth-child(3) { animation-delay: 0.3s; }

.gx-splash__scene {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 0 20px 20px;
    animation: gxSplashSceneIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.gx-splash__scene::before {
    content: '';
    position: absolute;
    inset: 12% 8% auto;
    height: 40%;
    background: radial-gradient(ellipse at center, rgba(249, 115, 22, 0.18), transparent 70%);
    pointer-events: none;
}

.gx-splash__scene img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -8px 40px rgba(13, 27, 42, 0.08);
}

.gx-splash__route {
    position: absolute;
    left: 12%;
    right: 12%;
    bottom: 28%;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, var(--gx-accent), #fbbf24, transparent);
    opacity: 0.55;
    transform: scaleX(0);
    transform-origin: left center;
    animation: gxSplashRoute 1.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes gxSplashFadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes gxSplashSceneIn {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes gxSplashFlame {
    0%, 100% { transform: scale(1) translateY(0); }
    50% { transform: scale(1.06) translateY(-3px); }
}

@keyframes gxSplashBarShine {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

@keyframes gxSplashDot {
    0%, 80%, 100% { opacity: 0.25; transform: translateY(0); }
    40% { opacity: 1; transform: translateY(-3px); }
}

@keyframes gxSplashPulseText {
    0%, 100% { opacity: 0.75; }
    50% { opacity: 1; }
}

@keyframes gxSplashRoute {
    0% { transform: scaleX(0); opacity: 0; }
    35% { transform: scaleX(1); opacity: 0.7; }
    70% { transform: scaleX(1); opacity: 0.35; }
    100% { transform: scaleX(0); opacity: 0; transform-origin: right center; }
}

[data-theme="dark"] .gx-splash {
    background:
        radial-gradient(120% 80% at 50% -10%, rgba(249, 115, 22, 0.15), transparent 55%),
        linear-gradient(180deg, #1a1208 0%, var(--gx-bg) 45%, #0b1220 100%);
}

[data-theme="dark"] .gx-splash__name span { color: var(--gx-text); }
[data-theme="dark"] .gx-splash__scene img { box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.35); }

.gx-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    z-index: 9999;
    background: linear-gradient(90deg, var(--gx-accent), #fbbf24);
    box-shadow: 0 0 12px rgba(249, 115, 22, 0.55);
    opacity: 0;
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
}

.gx-progress.is-active {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .gx-splash,
    .gx-splash__center,
    .gx-splash__scene,
    .gx-splash__flame,
    .gx-splash__orbit-ring,
    .gx-splash__bar-fill,
    .gx-splash__dots i,
    .gx-splash__status,
    .gx-splash__route,
    .gx-progress {
        animation: none !important;
        transition-duration: 0.01ms !important;
    }
}
