
:root { --star-speed: 0.8; }

#starfield {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    user-select: none;
}

/* CS-ARENA.PRO 3.2.16 ultra-subtle lower transition */
:root {
    --csa-bg-top: #3a2f29;
    --csa-bg-mid: #2f2420;
    --csa-bg-bottom: #37231a;
}

html, body.csa-sharp-background {
    position: relative;
    isolation: isolate;
    background-color: #2f2420 !important;
    background-image: linear-gradient(180deg,
        #3a2f29 0%,
        #392e28 10%,
        #372c26 20%,
        #352925 30%,
        #332722 40%,
        #312520 50%,
        #30231e 60%,
        #31231d 68%,
        #33231c 76%,
        #35231b 84%,
        #37241a 91%,
        #39251a 96%,
        #3b261b 100%
    ) !important;
    background-repeat: no-repeat !important;
}

body.csa-sharp-background::before,
body.csa-sharp-background::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* Keep only a very soft overall vignette. */
body.csa-sharp-background::before {
    background: radial-gradient(ellipse at 50% 45%, transparent 36%, rgba(15,9,7,.024) 80%, rgba(10,6,4,.068) 100%);
}

/* Lower warmth pushed further below the viewport and made much weaker.
   The goal is for the transition to be practically unnoticeable. */
body.csa-sharp-background::after {
    background:
        radial-gradient(125% 48% at 50% 116%,
            rgba(255, 147, 48, .048) 0%,
            rgba(255, 147, 48, .030) 20%,
            rgba(255, 147, 48, .017) 38%,
            rgba(255, 147, 48, .009) 52%,
            rgba(255, 147, 48, .003) 64%,
            rgba(255, 147, 48, 0) 78%
        ),
        linear-gradient(180deg,
            rgba(255, 137, 40, 0) 0%,
            rgba(255, 137, 40, 0) 66%,
            rgba(255, 138, 41, .002) 73%,
            rgba(255, 140, 42, .006) 80%,
            rgba(255, 143, 44, .012) 87%,
            rgba(255, 146, 46, .022) 93%,
            rgba(255, 149, 48, .038) 100%
        );
}

#csa-sharp-background-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    user-select: none;
}

body.csa-sharp-background > .global-container {
    position: relative;
    z-index: 2;
}

@media (max-width: 760px) {
    body.csa-sharp-background {
        background-image: linear-gradient(180deg,
            #372d28 0%,
            #362b26 14%,
            #342925 28%,
            #312621 42%,
            #2f231f 56%,
            #30231d 68%,
            #33231b 80%,
            #36231a 90%,
            #382419 100%
        ) !important;
    }

    body.csa-sharp-background::after {
        background:
            radial-gradient(138% 50% at 50% 116%,
                rgba(255, 145, 48, .044) 0%,
                rgba(255, 145, 48, .026) 22%,
                rgba(255, 145, 48, .014) 40%,
                rgba(255, 145, 48, .006) 56%,
                rgba(255, 145, 48, .002) 66%,
                rgba(255, 145, 48, 0) 80%
            ),
            linear-gradient(180deg,
                rgba(255, 137, 40, 0) 0%,
                rgba(255, 137, 40, 0) 70%,
                rgba(255, 140, 42, .004) 80%,
                rgba(255, 143, 44, .012) 90%,
                rgba(255, 147, 46, .026) 100%
            );
    }
}
