/* AZURE PWA — compact opening splash (home chat only) */

.azure-splash {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    background: radial-gradient(ellipse at 50% 30%, #0f2744 0%, #020617 55%, #000 100%);
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

.azure-splash--out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Clip square logo.png; glow on frame — drop-shadow on img draws a square halo. */
.azure-splash__logo-frame {
    width: clamp(132px, 34vw, 168px);
    height: clamp(132px, 34vw, 168px);
    border-radius: 22%;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 0 22px rgba(56, 189, 248, 0.45);
    animation: azure-splash-in 0.65s ease both;
}

.azure-splash__logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.azure-splash__tagline {
    margin: 0;
    font-family: "Inter", system-ui, sans-serif;
    font-size: clamp(0.95rem, 2.4vw, 1.15rem);
    font-weight: 300;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #e2e8f0;
    animation: azure-splash-in 0.65s ease both;
}

@keyframes azure-splash-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body.is-azure-splash:has(#azure-splash) .chat-topbar,
body.is-azure-splash:has(#azure-splash) .chat-container,
body.is-azure-splash:has(#azure-splash) .app-footer {
    visibility: hidden;
}

body.is-azure-splash:not(:has(#azure-splash)) .chat-topbar,
body.is-azure-splash:not(:has(#azure-splash)) .chat-container,
body.is-azure-splash:not(:has(#azure-splash)) .app-footer {
    visibility: visible;
    animation: azure-splash-app-in 0.45s ease both;
}

@keyframes azure-splash-app-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .azure-splash__logo-frame,
    .azure-splash__tagline {
        animation: none;
        opacity: 1;
    }

    .azure-splash {
        transition-duration: 0.2s;
    }
}
