#desktop-bg {
    align-self: stretch;

    @media screen and (min-width: 876px) {
        /* The radial gradient sits behind the AVIF (same pattern as the
           mobile #header): without it the header is white until the image
           loads — or forever in browsers without AVIF support — making the
           white logo invisible. */
        background: url("../images/main-desktop-bg-u0Na-2j.avif") no-repeat, radial-gradient(163.55% 70.2% at 50% 50%, #210853 0%, #090212 100%);
        background-size: cover;
        background-position: top center;

        &.home {
            background: url("../images/desktop-background-POBMexz.avif") no-repeat, radial-gradient(163.55% 70.2% at 50% 50%, #210853 0%, #090212 100%);
            background-size: cover;
            background-position: top center;
        }
    }
}

#connection-status {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    padding: 16px;
    justify-content: center;
    align-items: center;
    align-self: stretch;

    font-size: 12px;
    text-align: center;

    color: white;
    background: #1f0651;
    box-shadow: 0px 20px 40px 0px rgba(0, 0, 0, 0.10);
    backdrop-filter: blur(88px);

    .dash {
        display: none;

        &::after {
            content: "";
        }
    }

    @media screen and (min-width: 876px) {
        background: rgba(27, 4, 82, 0.80);
        padding: 12px;
        font-size: 14px;

        .dash {
            display: inline;
        }

        br {
            display: none;
        }
    }

    span::after {
        content: " | ";
        color: rgba(255, 255, 255, 0.40);
    }

    span:last-child::after {
        content: "";
    }

    .unprotected {
        color: #FF2226;
        font-weight: 600;
    }

    .protected {
        color: #22FF26;
        font-weight: 600;
    }

    a,
    a:visited {
        color: white;
        text-decoration: none;
    }
}

.home {
    #header {
        background: url("../images/header-background-LykErdH.avif") no-repeat, radial-gradient(163.55% 70.2% at 50% 50%, #210853 0%, #090212 100%);

        @media screen and (min-width: 876px) {
            background: none;

            img.bottom {
                padding-left: 45px;
            }

            #title-container {
                h1 {
                    @media screen and (min-width: 876px) {
                        font-size: 64px;
                        line-height: normal;
                    }
                }
            }
        }
    }
}

#header {
    background: url("../images/main-mobile-bg-IU8A2Zt.avif") no-repeat, radial-gradient(163.55% 70.2% at 50% 50%, #210853 0%, #090212 100%);
    background-size: cover;
    background-position: top center;

    @media screen and (min-width: 876px) {
        background: none;
    }

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;

    #logo-banner {
        display: flex;
        padding: 12px 16px;
        justify-content: stretch;
        align-items: center;
        align-self: stretch;

        background: rgba(255, 255, 255, 0.10);
        box-shadow: 0px 20px 40px 0px rgba(0, 0, 0, 0.05);
        backdrop-filter: blur(28px);

        img {
            padding: 10px;
        }

        a.pink {
            margin-left: auto;
            padding: 14px 20px;
            font-weight: 700;

            @media screen and (min-width: 1670px) {
                margin: 0;
                padding: 22px;
            }
        }

        #menu-bar-container {
            max-width: 1670px;
            margin: 0 auto;
            gap: 12px;
            width: 100%;

            display: flex;
            align-items: center;
            justify-content: space-between;
        }
    }

    a#menu {
        display: flex;
        padding: 12px;
        justify-content: center;
        align-items: center;
        gap: 10px;

        border-radius: 12px;
        background: rgba(255, 255, 255, 0.10);
        box-shadow: 0px 0px 16px 0px rgba(255, 255, 255, 0.20) inset;

        @media screen and (min-width: 1670px) {
            display: none;
        }
    }

    #title-container {
        display: flex;
        gap: 1rem;
        flex-direction: column;
        justify-content: center;
        align-items: stretch;

        padding: 0 16px;

        .row {
            display: flex;
            flex-direction: column;
            gap: 1rem;
            justify-content: stretch;
            align-items: stretch;
            align-self: stretch;

            @media screen and (min-width: 876px) {
                flex-direction: row;
                gap: 32px;
                justify-content: center;
                margin: 32px auto;
            }
        }

        h1 {
            margin-top: 40px;
            text-align: center;
            font-family: "Neue Kaine";
            font-size: 36px;
            font-weight: 400;
            line-height: 54px;
            color: #F6F0FF;

            @media screen and (min-width: 876px) {
                font-size: 56px;
                line-height: 84px;
                margin-top: 72px;

                br {
                    display: none;
                }
            }
        }

        h2 {
            color: white;
            font-size: 16px;
            line-height: 1.5;
            font-weight: 700;

            @media screen and (min-width: 876px) {
                font-size: 24px;
                line-height: 1.5;
            }
        }

        p {
            color: #C0B0DB;
            text-align: center;
            font-size: 16px;
            font-weight: 400;
            line-height: 24px;
            max-width: 830px;
            align-self: center;

            @media screen and (min-width: 876px) {
                font-size: 20px;
                line-height: 1.5;
            }

            strong {
                color: #F6F0FF;
                font-weight: 500;
            }
        }

        p.small {
            max-width: 300px;

            @media screen and (min-width: 876px) {
                max-width: none;
                font-size: 16px !important;

                br {
                    display: block;
                    content: " | ";
                }
            }
        }

        .badge {
            display: flex;
            padding: 1rem;
            flex-direction: column;
            gap: 8px;

            border-radius: 28px;
            background: rgba(255, 255, 255, 0.10);
            backdrop-filter: blur(54px);

            @media screen and (min-width: 876px) {
                border-radius: 36px;
                gap: 12px;
                padding: 40px;
            }

            h2 {
                color: white;
                text-align: center;
                font-size: 16px;
                font-weight: 700;
                line-height: 24px;

                @media screen and (min-width: 876px) {
                    font-size: 24px;
                    line-height: normal;
                }
            }
        }

    }

    #ellipse {
        width: 116px;
        height: 104px;
        position: absolute;
        right: -16px;
        top: -22px;

        background: url("../images/header-purple-ellipse-Chi3Xk8.svg");
    }

    img.bottom {
        align-self: stretch;
        padding: 25px 2px 0 2px;
        width: 100%;
        height: auto;
        box-sizing: border-box;
    }

    #desktop-menu {
        display: none;
    }

    @media screen and (min-width: 1670px) {
        #logo-banner {
            #logo-top {
                width: 228px;
                height: 65px;
                padding: 0 36px 0 0;
            }
        }

        #desktop-menu {
            display: flex;
            align-items: center;
            gap: 8px;

            a {
                color: #F3F3F3;
                font-size: 18px;
                font-weight: 500;
                line-height: normal;
                padding: 12px 15px;
                border-radius: 16px;
                text-decoration: none;

                &.selected {
                    padding: 12px 24px;
                    font-weight: 600;
                    background: white;
                    color: #0C041D;
                }
            }

            #language {
                display: flex;
                align-items: center;
                gap: 8px;
                border-radius: 40px;
                background: rgba(255, 255, 255, 0.10);

                img {
                    padding: 0;
                }
            }

            #no-logging-ever-desktop {
                align-items: center;
                justify-content: center;
                color: white;
                text-align: center;
                font-size: 18px;
                font-weight: 500;
                line-height: normal;
                border-radius: 24px;
                background: linear-gradient(to right, #2c1544, #2a1542), linear-gradient(to right, rgba(255, 255, 255, 0), #9B53FF);
                background-origin: border-box;
                background-clip: padding-box, border-box;
                padding: 20px 28px;
                border: 2px solid transparent;
            }
        }
    }
}

.flag {
    font-family: 'Noto Flags';
    font-weight: 400;
    font-size: 18px;
    line-height: 14px;
    font-style: normal;
}