:root {
    --n2s-aurora-opacity: 0.54;
}

body {
    position: relative;
    overflow-x: hidden;
}

.sky {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.photo-layer {
    position: absolute;
    inset: -8% -10%;
    background-size: cover;
    background-position: center;
    filter: saturate(1.2) contrast(1.05) blur(2px);
    mix-blend-mode: screen;
}

.photo-a {
    background-image: url("/official/assets/aurora-borealis-nasa.jpg");
    opacity: 0.18;
    animation: n2s-photo-pan-a 38s ease-in-out infinite alternate;
}

.photo-b {
    background-image: url("/official/assets/aurora-australis-nasa.jpg");
    opacity: 0.14;
    transform: scale(1.1);
    animation: n2s-photo-pan-b 52s ease-in-out infinite alternate;
}

.aurora {
    position: absolute;
    width: 178vw;
    height: 98vh;
    left: -39vw;
    top: -26vh;
    filter: blur(68px);
    opacity: var(--n2s-aurora-opacity);
    mix-blend-mode: screen;
}

.aurora-a {
    background: radial-gradient(circle at 25% 20%, rgba(69, 214, 255, 0.62), transparent 58%);
    animation: n2s-aurora-flow-a 16s ease-in-out infinite;
}

.aurora-b {
    background: radial-gradient(circle at 72% 25%, rgba(95, 129, 255, 0.5), transparent 62%);
    animation: n2s-aurora-flow-b 19s ease-in-out infinite;
}

.aurora-c {
    background: radial-gradient(circle at 50% 8%, rgba(54, 255, 204, 0.42), transparent 62%);
    animation: n2s-aurora-flow-c 22s ease-in-out infinite;
}

.stars {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(229, 242, 255, 0.9) 0.7px, transparent 0.8px),
        radial-gradient(circle, rgba(229, 242, 255, 0.6) 0.5px, transparent 0.6px);
    background-size: 130px 130px, 180px 180px;
    background-position: 0 0, 50px 70px;
    opacity: 0.26;
}

.meteor-field {
    position: absolute;
    inset: 0;
}

.meteor {
    position: absolute;
    width: var(--trail, 150px);
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(199, 235, 255, 0.95) 35%, rgba(199, 235, 255, 0));
    transform: rotate(-28deg);
    filter: drop-shadow(0 0 8px rgba(187, 226, 255, 0.45));
    opacity: 0;
    animation: n2s-meteor-fall linear infinite;
}

.page,
.store-shell,
.shell {
    position: relative;
    z-index: 1;
}

.cursor-fx {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 30;
    display: none;
}

body.cursor-enhanced .cursor-fx {
    display: block;
}

.cursor-ring,
.cursor-dot {
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 50%;
    transform: translate3d(-100px, -100px, 0);
    transition: width 0.12s ease, height 0.12s ease, border-color 0.12s ease, background-color 0.12s ease;
    will-change: transform, opacity;
}

.cursor-ring {
    width: 26px;
    height: 26px;
    margin-left: -13px;
    margin-top: -13px;
    border: 1px solid rgba(142, 213, 255, 0.82);
    background: rgba(73, 164, 255, 0.06);
    box-shadow: 0 0 8px rgba(73, 164, 255, 0.2);
    opacity: 0.72;
}

.cursor-dot {
    width: 7px;
    height: 7px;
    margin-left: -3.5px;
    margin-top: -3.5px;
    background: #d9efff;
    box-shadow: 0 0 8px rgba(177, 223, 255, 0.45);
    opacity: 0.65;
}

.cursor-trail {
    position: absolute;
    inset: 0;
}

.trail-node {
    position: absolute;
    width: 10px;
    height: 10px;
    margin-left: -5px;
    margin-top: -5px;
    border-radius: 50%;
    background-image: url("/official/assets/sprite-disc-threejs.png");
    background-size: cover;
    opacity: 0;
    filter: drop-shadow(0 0 4px rgba(140, 205, 255, 0.3));
    transform: translate3d(-100px, -100px, 0) scale(0.7);
    will-change: transform, opacity;
}

body.cursor-hover .cursor-ring {
    width: 38px;
    height: 38px;
    margin-left: -19px;
    margin-top: -19px;
    border-color: rgba(215, 238, 255, 0.92);
    background: rgba(115, 188, 255, 0.12);
}

body.cursor-active .cursor-ring {
    width: 20px;
    height: 20px;
    margin-left: -10px;
    margin-top: -10px;
}

.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes n2s-aurora-flow-a {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(-9vw, 6vh, 0) scale(1.14);
    }
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes n2s-aurora-flow-b {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(10vw, 4vh, 0) scale(1.12);
    }
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes n2s-aurora-flow-c {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(-7vw, 8vh, 0) scale(1.12);
    }
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes n2s-photo-pan-a {
    0% {
        transform: scale(1.08) translate3d(0, 0, 0);
    }
    100% {
        transform: scale(1.2) translate3d(-2.5vw, 2vh, 0);
    }
}

@keyframes n2s-photo-pan-b {
    0% {
        transform: scale(1.1) translate3d(0, 0, 0);
    }
    100% {
        transform: scale(1.24) translate3d(3vw, -2vh, 0);
    }
}

@keyframes n2s-meteor-fall {
    0% {
        opacity: 0;
        transform: translate3d(0, 0, 0) rotate(-28deg);
    }
    10% {
        opacity: 0.95;
    }
    70% {
        opacity: 0.8;
    }
    100% {
        opacity: 0;
        transform: translate3d(-520px, 380px, 0) rotate(-28deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .photo-layer,
    .aurora,
    .meteor,
    .reveal {
        animation: none !important;
        transition: none !important;
    }

    .trail-node,
    .cursor-ring,
    .cursor-dot {
        transition: none !important;
    }
}