/* Matrix purple splash — see mymanga_pkg/prompts/project-matrix-purple-splash.json */

#mymanga-matrix-splash {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #0a0510;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

#mymanga-matrix-splash.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#mymanga-matrix-splash canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

#mymanga-matrix-splash .splash-logo-wrap {
    position: relative;
    z-index: 2;
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: splash-logo-depth 2.1s ease-in-out infinite alternate;
}

#mymanga-matrix-splash .splash-halo {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    animation: splash-halo-pulse 2.1s ease-in-out infinite alternate;
    pointer-events: none;
}

#mymanga-matrix-splash .splash-logo {
    position: relative;
    z-index: 1;
    width: 96px;
    height: 96px;
    border-radius: 22px;
    background: linear-gradient(135deg, #9333ea 0%, #6d28d9 100%);
    border: 3px solid #4c1d95;
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.45);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 2.5rem;
    line-height: 1;
    font-family: system-ui, sans-serif;
}

#mymanga-matrix-splash .splash-logo-lines {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
}

#mymanga-matrix-splash .splash-logo-lines span {
    display: block;
    height: 3px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.45);
}

#mymanga-matrix-splash .splash-logo-lines span:first-child {
    width: 44px;
}

#mymanga-matrix-splash .splash-logo-lines span:last-child {
    width: 36px;
    opacity: 0.75;
}

#mymanga-matrix-splash .splash-version {
    position: absolute;
    bottom: 28px;
    left: 0;
    right: 0;
    z-index: 2;
    text-align: center;
    direction: ltr;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.72);
}

@keyframes splash-halo-pulse {
    from {
        box-shadow:
            0 0 24px 8px rgba(192, 132, 252, 0.25),
            0 0 48px 16px rgba(124, 58, 237, 0.15);
    }
    to {
        box-shadow:
            0 0 36px 14px rgba(192, 132, 252, 0.85),
            0 0 72px 28px rgba(124, 58, 237, 0.45);
    }
}

@keyframes splash-logo-depth {
    from {
        transform: scale(0.94);
    }
    to {
        transform: scale(1.06);
    }
}

@media (prefers-reduced-motion: reduce) {
    #mymanga-matrix-splash .splash-logo-wrap,
    #mymanga-matrix-splash .splash-halo {
        animation: none;
    }
}
