﻿/* Splash overlay */
#splash {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 9999;
    opacity: 1;
    transition: opacity .6s ease;
    display: grid;
    place-items: center;
}

    #splash.hide {
        opacity: 0;
        pointer-events: none;
    }

/* Canvas full screen (sits at base) */
#stars {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 0; /* <-- ensure stars stay behind */
}

/* Logo starts small + animates IN CSS */
#splash-logo {
    width: min(38vmin, 320px);
    transform: scale(.15);
    opacity: 0;
    z-index: 2;
    /* duration 3.2s + delay 0.4s => ~3.6s total */
    animation: logo-zoom 3.2s cubic-bezier(.22,1,.36,1) .4s forwards;
}

/* Skip button visible & clickable above everything */
#skip-splash {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    padding: .5rem .8rem;
    color: #fff;
    background: rgba(0,0,0,.35);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: .6rem;
    z-index: 3; /* <-- above canvas & logo */
}

    #skip-splash:hover {
        background: rgba(255,255,255,.12);
        border-color: rgba(255,255,255,.45);
    }

/* Keyframes */
@keyframes logo-zoom {
    0% {
        transform: scale(.15);
        opacity: 0;
        filter: blur(2px);
    }

    60% {
        opacity: 1;
        filter: blur(0);
    }

    78% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* 🔧 For testing: disable this block for now
@media (prefers-reduced-motion: reduce) {
  #splash-logo { animation: none; opacity: 1; transform: none; }
}
*/
