/* ── Prior Network Splash Screens ───────────────────────────────────────────
   1. #pageLoadOverlay  – initial page-load splash (branding over dark bg)
   2. #pn-restart-splash – backend restart/update overlay (same branding + message)
   ────────────────────────────────────────────────────────────────────────── */

/* Shared wordmark */
.pn-splash-wordmark {
    font-family: 'Audiowide', cursive;
    font-size: clamp(1.8rem, 5vw, 3.8rem);
    font-weight: 400;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #fff;
    line-height: 1;
    text-shadow: 0 0 30px rgba(156, 226, 212, .25);
    animation: pn-word-in .65s cubic-bezier(.22, 1, .36, 1) both;
}
.pn-splash-wordmark span { color: #9CE2D4; }

@keyframes pn-word-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Shared loading bar */
.pn-splash-bar {
    width: 52px;
    height: 2px;
    background: rgba(156, 226, 212, .15);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}
.pn-splash-bar::after {
    content: '';
    position: absolute;
    top: 0; left: -60%;
    width: 60%; height: 100%;
    background: #9CE2D4;
    border-radius: 2px;
    animation: pn-bar-sweep 1.5s cubic-bezier(.4, 0, .2, 1) infinite;
}
@keyframes pn-bar-sweep {
    0%   { left: -60%; }
    100% { left: 110%; }
}

/* ── 1. Initial page-load overlay ── */
#pageLoadOverlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.2rem;
}

/* ── 2. Backend restart overlay ── */
#pn-restart-splash {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: #151516;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    transition: opacity .4s ease;
    pointer-events: all;
}
#pn-restart-splash.visible { display: flex; }
#pn-restart-splash.shown   { opacity: 1; }

.pn-restart-message {
    max-width: 380px;
    text-align: center;
    color: rgba(255, 255, 255, .35);
    font-family: 'Audiowide', cursive;
    font-size: .7rem;
    line-height: 1.7;
    letter-spacing: .04em;
    animation: pn-word-in .6s .4s cubic-bezier(.22, 1, .36, 1) both;
    opacity: 0;
}
#pn-restart-splash.shown .pn-restart-message { opacity: 1; }
