/* ============================================================
   CHILLROOM - ECRAN BIENVENUE
   ============================================================ */

html.chillroom-welcome-open,
body.chillroom-welcome-open {
    overflow: hidden !important;
}

#chillroom-welcome-overlay {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483000 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 24px !important;

    background:
        radial-gradient(
            circle at 50% 18%,
            rgba(77, 82, 255, 0.42),
            transparent 34%
        ),
        radial-gradient(
            circle at 22% 74%,
            rgba(168, 48, 255, 0.22),
            transparent 38%
        ),
        radial-gradient(
            circle at 78% 70%,
            rgba(21, 172, 255, 0.18),
            transparent 38%
        ),
        linear-gradient(
            150deg,
            #080414,
            #100528 52%,
            #04020a
        ) !important;

    opacity: 1 !important;
    visibility: visible !important;

    transition:
        opacity 0.75s ease,
        visibility 0s linear 0s !important;
}

#chillroom-welcome-overlay.is-leaving {
    opacity: 0 !important;
    visibility: hidden !important;

    transition:
        opacity 0.75s ease,
        visibility 0s linear 0.75s !important;
}

#chillroom-welcome-card {
    width: min(520px, calc(100vw - 42px)) !important;
    padding: 32px 34px 30px !important;
    box-sizing: border-box !important;

    border: 1px solid rgba(154, 139, 255, 0.42) !important;
    border-radius: 25px !important;

    background:
        linear-gradient(
            145deg,
            rgba(28, 19, 69, 0.91),
            rgba(11, 22, 56, 0.88)
        ) !important;

    box-shadow:
        0 28px 90px rgba(0, 0, 0, 0.54),
        0 0 28px rgba(109, 76, 255, 0.24),
        inset 0 0 24px rgba(255, 255, 255, 0.035) !important;

    text-align: center !important;

    backdrop-filter: blur(22px) !important;
    -webkit-backdrop-filter: blur(22px) !important;

    animation: chillroomWelcomeFloat 5s ease-in-out infinite !important;
}

#chillroom-welcome-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;
    padding: 0 !important;
    margin-bottom: 6px !important;

    border: 0 !important;
    border-radius: 0 !important;

    background: transparent !important;
}

#chillroom-welcome-logo {
    display: block !important;
    width: min(235px, 68vw) !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 112px !important;
    object-fit: contain !important;
    pointer-events: none !important;
    user-select: none !important;

    filter:
        drop-shadow(0 0 10px rgba(255, 99, 244, 0.34))
        drop-shadow(0 0 18px rgba(44, 181, 255, 0.24)) !important;
}

#chillroom-welcome-title {
    margin: 0 0 10px !important;

    color: #ffffff !important;

    font-family: Segoe UI, Arial, sans-serif !important;
    font-size: clamp(36px, 6vw, 58px) !important;
    font-weight: 900 !important;
    line-height: 0.98 !important;
    letter-spacing: -0.045em !important;

    text-shadow:
        0 0 14px rgba(141, 101, 255, 0.62),
        0 0 28px rgba(46, 155, 255, 0.32) !important;
}

#chillroom-welcome-text {
    max-width: 390px !important;
    margin: 0 auto 25px !important;

    color: rgba(217, 211, 255, 0.77) !important;

    font-family: Segoe UI, Arial, sans-serif !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
}

#chillroom-enter-button {
    width: min(100%, 340px) !important;
    min-height: 52px !important;
    box-sizing: border-box !important;

    padding: 14px 22px !important;

    border: 1px solid rgba(171, 125, 255, 0.66) !important;
    border-radius: 15px !important;

    background:
        linear-gradient(
            135deg,
            rgba(126, 48, 244, 0.98),
            rgba(42, 131, 245, 0.96)
        ) !important;

    color: #ffffff !important;

    font-family: Segoe UI, Arial, sans-serif !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    letter-spacing: 0.02em !important;

    cursor: pointer !important;

    box-shadow:
        0 0 18px rgba(132, 74, 255, 0.42),
        0 0 32px rgba(35, 143, 255, 0.23),
        inset 0 0 16px rgba(255, 255, 255, 0.08) !important;

    transition:
        transform 0.18s ease,
        filter 0.18s ease,
        box-shadow 0.18s ease !important;
}

#chillroom-enter-button:hover {
    transform: translateY(-2px) scale(1.025) !important;
    filter: brightness(1.13) !important;

    box-shadow:
        0 0 24px rgba(154, 92, 255, 0.58),
        0 0 42px rgba(38, 170, 255, 0.34),
        inset 0 0 18px rgba(255, 255, 255, 0.11) !important;
}

#chillroom-enter-button:active {
    transform: translateY(1px) scale(0.985) !important;
}

@keyframes chillroomWelcomeFloat {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

@media (max-width: 600px) {
    #chillroom-welcome-card {
        width: calc(100vw - 32px) !important;
        padding: 27px 22px 24px !important;
    }

    #chillroom-welcome-title {
        font-size: 39px !important;
    }
}
