/* ===========================================================
   STARNET ONLINE AAA GALACTIC CINEMATIC MENU V1
   =========================================================== */

/* Full-screen video environment */

#yc-game-menu .yc-galaxy-stage {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #010308;
    pointer-events: none;
    z-index: 0;
    isolation: isolate;
}

/* Individual cinematic cameras */

#yc-game-menu .yc-galaxy-video {
    position: absolute;
    inset: 0;

    display: block;
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center center;

    opacity: 0;
    visibility: hidden;

    background: #010308;

    pointer-events: none;

    /* Hard cuts: deliberately NO transitions */
    transition: none !important;

    transform: translateZ(0);
}

/* Active cinematic camera */

#yc-game-menu .yc-galaxy-video.yc-camera-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

/* Dark holographic atmosphere over video */

#yc-game-menu .yc-galaxy-stage::after {
    content: "";

    position: absolute;
    inset: 0;

    z-index: 5;
    pointer-events: none;

    background:
        radial-gradient(
            ellipse at center,
            rgba(0, 4, 13, .48) 0%,
            rgba(0, 4, 13, .25) 38%,
            rgba(0, 4, 13, .08) 75%,
            rgba(0, 0, 0, .20) 100%
        );
}

/* Disable old CSS stars once video is ready */

#yc-game-menu:has(.yc-galaxy-stage.yc-video-ready) .yc-stars {
    display: none !important;
}

/* Keep all existing menu controls above the video */

#yc-game-menu .yc-top {
    position: absolute;
    z-index: 10 !important;
}

#yc-game-menu .yc-content {
    position: relative;
    z-index: 10 !important;
}

#yc-game-menu .yc-bottom {
    position: absolute;
    z-index: 10 !important;
}

/* Make the welcome content readable over any scene */

#yc-game-menu .yc-portal-welcome h1 {
    text-shadow:
        0 3px 20px rgba(0,0,0,.95),
        0 0 40px rgba(0,0,0,.8),
        0 0 22px rgba(20,100,200,.25) !important;
}

#yc-game-menu .yc-portal-welcome .yc-subtitle {
    text-shadow:
        0 2px 12px rgba(0,0,0,.95);
}

/* Floating cinematic menu buttons */

#yc-game-menu .yc-button {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* START CHAT: cinematic activation */

#yc-game-menu .yc-enter {
    position: relative;
    overflow: hidden;

    animation:
        yc-galaxy-button-glow 2.6s ease-in-out infinite;
}

@keyframes yc-galaxy-button-glow {
    0%, 100% {
        box-shadow:
            0 0 15px rgba(255,222,33,.22),
            0 8px 24px rgba(0,0,0,.55);
    }

    50% {
        box-shadow:
            0 0 30px rgba(255,222,33,.50),
            0 0 55px rgba(255,222,33,.15),
            0 8px 24px rgba(0,0,0,.55);
    }
}

#yc-game-menu .yc-enter:hover {
    transform: translateY(-3px) scale(1.035);
}

/* Mobile: same cinematic, center-cropped */

@media (max-width: 767px) {

    #yc-game-menu .yc-galaxy-video {
        object-fit: cover;
        object-position: 50% 50%;
    }

    #yc-game-menu .yc-galaxy-stage::after {
        background:
            linear-gradient(
                to bottom,
                rgba(0,0,0,.20),
                rgba(0,0,0,.42) 32%,
                rgba(0,0,0,.54) 60%,
                rgba(0,0,0,.28)
            );
    }

    #yc-game-menu .yc-content {
        width: min(92vw, 560px);
    }
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {
    #yc-game-menu .yc-enter {
        animation: none !important;
    }
}

/* END STARNET ONLINE AAA GALACTIC CINEMATIC MENU V1 */