/* =========================================================
   MEMBER WELCOME MODAL
========================================================= */

.member-welcome {
    position: fixed;
    inset: 0;
    z-index: 200;

    display: none;

    width: 100%;
    height: 100%;

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

    padding: 24px;
}

.member-welcome.is-open {
    display: flex;
}

/* =========================================================
   背景遮罩
========================================================= */

.member-welcome__backdrop {
    position: absolute;
    inset: 0;

    background-color: rgba(3, 9, 18, 0.78);

    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

/* =========================================================
   對話框
========================================================= */

.member-welcome__dialog {
    position: relative;
    z-index: 1;

    width: 100%;
    max-width: 480px;

    padding:
        34px
        32px
        28px;

    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;

    background:
        linear-gradient(
            180deg,
            rgba(16, 32, 51, 0.99) 0%,
            rgba(7, 17, 29, 0.99) 100%
        );

    box-shadow:
        0 28px 90px -28px rgba(0, 0, 0, 0.90);
}

/* 上方光暈 */
.member-welcome__dialog::before {
    position: absolute;
    top: -120px;
    left: 50%;

    width: 320px;
    height: 220px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(245, 154, 35, 0.30) 0%,
            rgba(245, 154, 35, 0.08) 45%,
            rgba(245, 154, 35, 0) 72%
        );

    content: "";

    pointer-events: none;

    transform: translateX(-50%);
}

/* =========================================================
   關閉按鈕
========================================================= */

.member-welcome__close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;

    display: inline-flex;

    width: 36px;
    height: 36px;

    padding: 0;

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

    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 50%;

    color: rgba(255, 255, 255, 0.70);
    background-color: rgba(255, 255, 255, 0.05);

    font-family: Arial, sans-serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 1;

    cursor: pointer;

    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease,
        transform 0.2s ease;
}

.member-welcome__close:hover {
    border-color: rgba(255, 255, 255, 0.18);

    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.10);

    transform: rotate(90deg);
}

/* =========================================================
   吉祥物圖示
========================================================= */

.member-welcome__icon {
    position: relative;
    z-index: 2;

    display: flex;

    width: 82px;
    height: 82px;

    margin:
        0
        auto
        20px;

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

    border-radius: 50%;

    background-color: rgba(255, 255, 255, 0.05);

    box-shadow:
        0 0 0 5px rgba(245, 154, 35, 0.12),
        0 16px 42px -16px rgba(245, 154, 35, 0.55);
}

.member-welcome__icon img {
    display: block;

    width: 76px;
    height: 76px;

    max-width: none;

    border-radius: 50%;

    object-fit: cover;
}

/* =========================================================
   內容
========================================================= */

.member-welcome__content {
    position: relative;
    z-index: 2;

    text-align: center;
}

.member-welcome__eyebrow {
    margin-bottom: 8px;

    color: #f59a23;

    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.12em;
}

.member-welcome__title {
    margin: 0;

    color: #ffffff;

    font-size: 26px;
    font-weight: 900;
    line-height: 1.35;
    letter-spacing: 0.02em;
}

.member-welcome__description {
    max-width: 360px;

    margin:
        12px
        auto
        0;

    color: rgba(255, 255, 255, 0.68);

    font-size: 14px;
    font-weight: 400;
    line-height: 1.75;
}

/* =========================================================
   會員資訊
========================================================= */

.member-welcome__member {
    display: flex;

    width: 100%;

    margin-top: 24px;
    padding:
        14px
        16px;

    align-items: center;
    gap: 12px;

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;

    background-color: rgba(255, 255, 255, 0.04);

    text-align: left;
}

.member-welcome__avatar {
    display: block;

    width: 46px;
    height: 46px;

    max-width: none;

    flex: 0 0 46px;

    border-radius: 50%;

    object-fit: cover;

    box-shadow:
        0 0 0 2px rgba(245, 154, 35, 0.55);
}

.member-welcome__member-info {
    display: flex;

    min-width: 0;

    flex: 1;

    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.member-welcome__member-name {
    overflow: hidden;

    color: rgba(255, 255, 255, 0.95);

    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.member-welcome__member-level {
    display: inline-flex;

    width: fit-content;
    min-height: 20px;

    padding:
        3px
        8px;

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

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;

    color: rgba(255, 255, 255, 0.58);
    background-color: rgba(255, 255, 255, 0.05);

    font-size: 10px;
    font-weight: 700;
    line-height: 1;

    white-space: nowrap;
}

.member-welcome__member-level--vip {
    border-color: rgba(245, 154, 35, 0.42);

    color: #ffc35a;
    background-color: rgba(245, 154, 35, 0.10);
}

/* =========================================================
   提示文字
========================================================= */

.member-welcome__notice {
    margin:
        16px
        0
        0;

    color: rgba(255, 255, 255, 0.46);

    font-size: 12px;
    font-weight: 400;
    line-height: 1.65;
}

/* =========================================================
   操作按鈕
========================================================= */

.member-welcome__actions {
    position: relative;
    z-index: 2;

    display: flex;

    width: 100%;

    margin-top: 26px;

    gap: 10px;
}

.member-welcome__button {
    display: inline-flex;

    min-height: 46px;

    padding:
        11px
        18px;

    flex: 1;

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

    border-radius: 999px;

    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;

    text-align: center;
    text-decoration: none;

    cursor: pointer;

    transition:
        filter 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease,
        transform 0.2s ease;
}

.member-welcome__button--primary {
    border: 0;

    color: #07111d;

    background:
        linear-gradient(
            135deg,
            #ffc35a 0%,
            #f59a23 100%
        );

    box-shadow:
        0 14px 32px -14px rgba(245, 154, 35, 0.65);
}

.member-welcome__button--primary:hover {
    filter: brightness(1.08);

    transform: translateY(-1px);
}

.member-welcome__button--secondary {
    border: 1px solid rgba(255, 255, 255, 0.13);

    color: rgba(255, 255, 255, 0.86);
    background-color: rgba(255, 255, 255, 0.04);
}

.member-welcome__button--secondary:hover {
    border-color: rgba(255, 255, 255, 0.22);

    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.08);
}

/* =========================================================
   開啟時禁止背景滾動
========================================================= */

body.member-welcome-open {
    overflow: hidden;
}

/* =========================================================
   手機版
========================================================= */

@media (max-width: 639px) {
    .member-welcome {
        padding:
            18px
            14px;
    }

    .member-welcome__dialog {
        max-width: 420px;

        padding:
            30px
            20px
            22px;

        border-radius: 18px;
    }

    .member-welcome__close {
        top: 11px;
        right: 11px;

        width: 34px;
        height: 34px;

        font-size: 22px;
    }

    .member-welcome__icon {
        width: 72px;
        height: 72px;

        margin-bottom: 18px;
    }

    .member-welcome__icon img {
        width: 66px;
        height: 66px;
    }

    .member-welcome__title {
        font-size: 22px;
    }

    .member-welcome__description {
        font-size: 13px;
        line-height: 1.7;
    }

    .member-welcome__member {
        margin-top: 20px;

        padding:
            12px
            13px;
    }

    .member-welcome__avatar {
        width: 42px;
        height: 42px;

        flex-basis: 42px;
    }

    .member-welcome__actions {
        flex-direction: column;

        margin-top: 22px;
    }

    .member-welcome__button {
        width: 100%;
        min-height: 44px;

        flex: none;
    }
}

/* =========================================================
   小尺寸手機
========================================================= */

@media (max-width: 380px) {
    .member-welcome {
        padding:
            12px
            10px;
    }

    .member-welcome__dialog {
        padding:
            28px
            16px
            18px;
    }

    .member-welcome__title {
        font-size: 20px;
    }

    .member-welcome__description {
        font-size: 12px;
    }

    .member-welcome__notice {
        font-size: 11px;
    }
}