/* ═══════════════════════════════════════════════════════════
   PWA Startup Splash — Monochrome Luxury
   ═══════════════════════════════════════════════════════════ */

#pwa-splash-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #ffffff;
    z-index: 100000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    opacity: 1;
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

#pwa-splash-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* Show only in standalone mode (installed PWA) */
@media (display-mode: standalone) {
    body.pwa-initializing #pwa-splash-overlay,
    #pwa-splash-overlay.fade-out {
        display: flex !important;
    }
}

/* ── Central composition ── */
.pwa-splash-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

/* Logo wrapper with spinner ring */
.pwa-splash-logo-wrapper {
    position: relative;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pwa-splash-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    position: absolute;
    z-index: 2;
    opacity: 0;
    animation: pwa-logo-entrance 1.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

/* Ultra-thin monochrome spinner */
.pwa-splash-spinner {
    position: absolute;
    width: 120px;
    height: 120px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-top: 1px solid #000000;
    border-radius: 50%;
    animation: pwa-spin 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    z-index: 1;
}

/* Brand typography */
.pwa-splash-brand {
    font-family: 'Anticva', 'Times New Roman', serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.25em;
    color: #000000;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(12px);
    animation: pwa-text-rise 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

.pwa-splash-tagline {
    font-family: inherit;
    font-size: 9px;
    letter-spacing: 0.5em;
    color: rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    margin-top: -18px;
    opacity: 0;
    animation: pwa-fade-in 1.2s ease 1s forwards;
}

/* ── Keyframes ── */
@keyframes pwa-spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pwa-logo-entrance {
    0%   { opacity: 0; transform: scale(0.85); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes pwa-text-rise {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pwa-fade-in {
    to { opacity: 1; }
}
