/* =========================================================
   TEAM DRAW OVERLAY
========================================================= */

#draw-overlay {

    position: fixed;

    inset: 0;

    z-index: 99999;

    display: flex;

    align-items: center;
    justify-content: center;

    overflow: hidden;

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transition:
        opacity 0.5s ease,
        visibility 0.5s ease;

    color: white;

    background: #05070d;
}


#draw-overlay.draw-visible {

    opacity: 1;

    visibility: visible;
}


/* =========================================================
   BACKGROUND
========================================================= */

.draw-background {

    position: absolute;

    inset: -30%;

    background:
        radial-gradient(
            circle at 50% 45%,
            rgba(255,255,255,0.10),
            transparent 25%
        ),
        radial-gradient(
            circle at 20% 20%,
            var(--draw-color-a),
            transparent 35%
        ),
        radial-gradient(
            circle at 80% 80%,
            var(--draw-color-b),
            transparent 40%
        );

    animation:
        drawBackgroundPulse
        7s
        ease-in-out
        infinite;
}


/* =========================================================
   SUCCESS
========================================================= */

#draw-overlay.draw-success {

    --draw-color-a: #00d084;

    --draw-color-b: #0066ff;

    --draw-glow:
        rgba(0,255,170,0.75);

    background:
        radial-gradient(
            circle at center,
            #12352e 0%,
            #071713 45%,
            #020504 100%
        );
}


#draw-overlay.draw-success
.draw-title {

    background:
        linear-gradient(
            120deg,
            #ffffff,
            #7affd0,
            #00e890
        );

    -webkit-background-clip: text;

    background-clip: text;

    color: transparent;
}


/* =========================================================
   NEXT TIME
========================================================= */

#draw-overlay.draw-next-time {

    --draw-color-a: #536dfe;

    --draw-color-b: #9c27b0;

    --draw-glow:
        rgba(100,120,255,0.5);

    background:
        radial-gradient(
            circle at center,
            #171b39 0%,
            #090b19 50%,
            #020307 100%
        );
}


#draw-overlay.draw-next-time
.draw-title {

    background:
        linear-gradient(
            120deg,
            #ffffff,
            #aab7ff,
            #c875ff
        );

    -webkit-background-clip: text;

    background-clip: text;

    color: transparent;
}


/* =========================================================
   CONTENT
========================================================= */

.draw-content {

    position: relative;

    z-index: 5;

    text-align: center;

    opacity: 0;

    transform:
        scale(0.75)
        translateY(40px);
}


/* =========================================================
   ICON
========================================================= */

.draw-icon {

    width: 150px;

    height: 150px;

    margin:
        0 auto
        40px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    font-size: 76px;

    font-weight: 900;

    background:
        rgba(255,255,255,0.08);

    border:
        2px solid
        rgba(255,255,255,0.25);

    box-shadow:

        0 0 0 15px
        rgba(255,255,255,0.025),

        0 0 80px
        var(--draw-glow);

    animation:
        drawIconFloat
        3s
        ease-in-out
        infinite,

        drawIconGlow
        2s
        ease-in-out
        infinite alternate;
}


/* =========================================================
   TEXT
========================================================= */

.draw-kicker {

    margin-bottom: 20px;

    font-size: 22px;

    font-weight: 700;

    letter-spacing: 0.35em;

    opacity: 0.65;
}


.draw-title {

    margin: 0;

    font-size:
        clamp(
            55px,
            8vw,
            140px
        );

    line-height: 0.95;

    font-weight: 900;

    letter-spacing: -0.045em;

    text-transform: uppercase;

    text-shadow:
        0 5px 30px
        rgba(0,0,0,0.4),

        0 0 60px
        var(--draw-glow);
}


.draw-subtitle {

    margin-top: 30px;

    font-size:
        clamp(
            20px,
            2vw,
            32px
        );

    font-weight: 400;

    color:
        rgba(255,255,255,0.72);
}


/* =========================================================
   PARTICLES
========================================================= */

.draw-particles {

    position: absolute;

    inset: 0;

    overflow: hidden;

    pointer-events: none;

    z-index: 3;
}


.draw-particle {

    position: absolute;

    border-radius: 50%;

    opacity: 0;

    animation:
        drawParticleFly
        2.5s
        ease-out
        forwards;
}


/* =========================================================
   SCANLINES
========================================================= */

.draw-scanlines {

    position: absolute;

    inset: 0;

    z-index: 10;

    pointer-events: none;

    background:
        repeating-linear-gradient(
            to bottom,
            transparent 0px,
            transparent 3px,
            rgba(255,255,255,0.012) 4px
        );
}


/* =========================================================
   ANIMATIONEN
========================================================= */

@keyframes drawContentIn {

    0% {

        opacity: 0;

        transform:
            scale(0.75)
            translateY(40px);
    }

    60% {

        opacity: 1;
    }

    100% {

        opacity: 1;

        transform:
            scale(1)
            translateY(0);
    }
}


@keyframes drawIconFloat {

    0%,
    100% {

        transform:
            translateY(0);
    }

    50% {

        transform:
            translateY(-12px);
    }
}


@keyframes drawIconGlow {

    from {

        box-shadow:

            0 0 0 15px
            rgba(255,255,255,0.025),

            0 0 40px
            var(--draw-glow);
    }

    to {

        box-shadow:

            0 0 0 25px
            rgba(255,255,255,0.015),

            0 0 100px
            var(--draw-glow);
    }
}


@keyframes drawBackgroundPulse {

    0%,
    100% {

        transform:
            scale(1);

        opacity: 0.8;
    }

    50% {

        transform:
            scale(1.08);

        opacity: 1;
    }
}


@keyframes drawParticleFly {

    0% {

        opacity: 0;

        transform:
            translate(0,0)
            scale(0);
    }

    15% {

        opacity: 1;
    }

    100% {

        opacity: 0;

        transform:
            translate(
                var(--particle-x),
                var(--particle-y)
            )
            rotate(
                var(--particle-rotation)
            )
            scale(1);
    }
}


/* =========================================================
   MOBILE / KLEINE SCREENS
========================================================= */

@media (max-width: 700px) {

    .draw-icon {

        width: 110px;

        height: 110px;

        font-size: 55px;

        margin-bottom: 30px;
    }

    .draw-kicker {

        font-size: 15px;

        letter-spacing: 0.25em;
    }

    .draw-title {

        font-size: 48px;
    }

    .draw-subtitle {

        padding:
            0 25px;

        font-size: 18px;
    }
}