.forest {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 100dvh;
    overflow: hidden;
    isolation: isolate;
    cursor: grab;
    background:
        radial-gradient(
            circle at 50% 115%,
            var(--sky-ground-glow),
            transparent 44%
        ),
        linear-gradient(
            to bottom,
            var(--sky-top) 0%,
            var(--sky-middle) 52%,
            var(--sky-bottom) 100%
        );
    transition: background 900ms ease;

    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

.forest:active {
    cursor: grabbing;
}

.forest::before {
    position: absolute;
    inset: 0;
    z-index: 0;
    content: "";
    pointer-events: none;
    background:
        radial-gradient(
            circle at 20% 22%,
            var(--sky-haze-one),
            transparent 22%
        ),
        radial-gradient(
            circle at 80% 28%,
            var(--sky-haze-two),
            transparent 20%
        );
    transition: background 900ms ease;
}

.forest::after {
    position: absolute;
    inset: 0;
    z-index: 8;
    content: "";
    pointer-events: none;
    background:
        radial-gradient(
            ellipse at center,
            transparent 45%,
            var(--sky-vignette) 100%
        );
    transition: background 900ms ease;
}

#firefly-canvas {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: block;
    width: 100%;
    height: 100%;
}

.mist {
    position: absolute;
    left: -20%;
    z-index: 2;
    width: 140%;
    height: 24%;
    pointer-events: none;
    filter: blur(22px);
    opacity: var(--mist-opacity);
    background:
        radial-gradient(
            ellipse at center,
            var(--mist-color),
            transparent 67%
        );
    transition:
        background 900ms ease,
        opacity 900ms ease;
}

.mist-one {
    bottom: 16%;
    animation: mist-drift-one 24s ease-in-out infinite alternate;
}

.mist-two {
    bottom: 3%;
    opacity: calc(var(--mist-opacity) * 0.62);
    animation: mist-drift-two 30s ease-in-out infinite alternate;
}

@keyframes mist-drift-one {
    from {
        transform: translateX(-4%) scaleX(0.92);
    }

    to {
        transform: translateX(6%) scaleX(1.05);
    }
}

@keyframes mist-drift-two {
    from {
        transform: translateX(5%) scaleX(1.08);
    }

    to {
        transform: translateX(-5%) scaleX(0.94);
    }
}
