@media (max-width: 1340px) {
    .objectCharacter_top_02 {
        transform: translateX(10%);
    }
}

/* ≤ 1200px (xl และต่ำกว่า) */
@media (max-width: 1199.98px) {
    .cardItemMainLayout_outside {
        width: 340px;
        min-width: 340px;
        height: 320px;
    }

    .cardItem_itemImg {
        width: 80px;
        min-width: 80px;
        height: 100%;
    }

    .contentLayout_content {
        position: relative;
        width: 100%;
        height: 100%;
        padding: 60px 40px 50px 40px;
        background: radial-gradient(circle, rgba(65, 148, 220, 1) 0%, rgba(33, 54, 100, 1) 100%);
        border-radius: 30px;
        box-shadow: 0px 0px 1px 2px #000, inset 0px 0px 20px 10px #00000086, inset 0px 0px 0px 4px #ffaf02;
        border: 5px solid #f9cb4f;
    }

    .contentLayout_content02 {
        width: 100%;
        height: 100%;
        border-radius: 30px;

        background: radial-gradient(circle, rgba(65, 148, 220, 1) 0%, rgba(33, 54, 100, 1) 100%);
        box-shadow: 0px 0px 1px 2px #000, inset 0px 0px 20px 10px #00000086, inset 0px 0px 0px 4px #ffaf02;
        border: 5px solid #f9cb4f;
    }
}

/* ≤ 992px (lg และต่ำกว่า) */
@media (max-width: 991.98px) {
    .bannerTitleMainLayout {
        position: relative;
        z-index: 3;
        width: 570px;
    }

    .bannerDetailLayout {
        width: 100%;
        padding: 0 50px;
    }

    .bannerLogoLayout {
        width: 200px;
    }

    .lens-flare {
        position: absolute;
        z-index: 1;
        width: 100px;
        height: 90px;
    }

    .lens-flare.left {
        top: 6px;
        left: 14px;
        width: 150px;
        height: 90px;
    }

    .objectCharacter_top_02 {
        width: 250px;
        transform: translateX(0%);
        right: 10px;
    }

    .objectCharacter_top_01 {
        width: 160px;
    }

    .cardItemLayout {
        width: 100%;
        height: 100%;
        border-radius: 15px;
        padding: 15px;
        background: #1a2847;
        display: flex;
        align-items: center;
        gap: 10px;
        box-shadow: inset 1px 1px 10px #000;
        flex-direction: column;
        text-align: center;
    }

    .cardItemMainLayout_outside {
        width: 300px;
        min-width: 300px;
        height: 350px;
        min-height: fit-content;
    }

    .contentLayout_content02 {
        padding: 50px 20px;
    }

    .cardLogoGame {
        width: 170px;
        min-width: 170px;
    }

    .reward_TableTitle {
        width: 130px;
        min-width: 130px;
        min-height: 130px;
    }

    .cardItemLayout.eventMissions {
        width: 100%;
        height: 400px;
        padding: 15px;
    }

    .cardEventStatus {
        position: relative;
        top: 0px;
        right: 0px;
        transform: translateY(0%);
    }

    .cardEventTitle {
        position: relative;
        width: 100%;
        height: 120px;
        min-height: 60px;
        flex-direction: column;
        gap: 5px;
    }

    .rewardFormMainLayout {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 20px;
        flex-direction: column;
    }
}

/* ≤ 768px (md และต่ำกว่า) */
@media (max-width: 767.98px) {
    .btn.md {
        width: 150px;
        min-width: 150px;
        height: 45px;
        padding: 5px 10px;
    }

    .bannerButtonDownload {
        width: 190px;
    }

    .bannerDateMainLayout {
        position: relative;
        z-index: 2;
        width: 500px;
    }

    .content_titleLayout {
        width: 390px;
        height: 52px;
        padding: 5px 100px;
        top: 30px;
        left: 50%;
        transform: translateX(-50%);
    }

    .content_titleLayout span {
        font-family: "FCVision", sans-serif;
        font-weight: 800;
        font-size: 17px;
        line-height: 17px;
        letter-spacing: 2px;
        padding-bottom: 10px;
        color: #fff;
        text-shadow: 2px 2px 0 #2d5389, -2px 2px 0 #2d5389, 2px -2px 0 #2d5389, -2px -2px 0 #2d5389, 2px 0 0 #2d5389, -2px 0 0 #2d5389, 0 2px 0 #2d5389, 0 -2px 0 #2d5389;
    }

    .cardItemMainLayout_outside {
        width: 220px;
        min-width: 220px;
        height: 380px;
        min-height: fit-content;
    }

}

/* ≤ 576px (sm และต่ำกว่า — mobile เล็กสุด) */
@media (max-width: 575.98px) {
    .bannerTitleMainLayout {
        width: 450px;
    }

    .bannerDetailLayout {
        width: 100%;
        padding: 0px;
    }

    .bannerDateMainLayout {
        width: 350px;
        height: 50px;
        font-size: 20px;
        font-weight: 500;
    }

    .bannerMainLayout {
        min-height: fit-content;
        padding: 100px 30px 0px;
        margin-bottom: 0px;
    }

    .lens-flare {
        position: absolute;
        z-index: 1;
        width: 50px;
        height: 30px;
    }

    .lens-flare.right {
        top: 13px;
        right: 0px;
    }

    .lens-flare.left {
        display: none;
    }

    .flare-center {
        position: absolute;
        width: 60px;
        height: 60px;
    }

    .bannerButtonDownload {
        width: 150px;
    }

    .bannerObjectTopLayout,
    .objectCharacter_top_01,
    .objectCharacter_top_02,
    .objectCharacter_Bottom {
        display: none;
    }

    .contentProgressBarMainLayout {
        position: relative;
        width: 100%;
        min-height: 100%;
        height: fit-content;
        padding: 10px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-direction: column;
    }

    .progressBarMainLayout {
        position: relative;
        width: 100%;
        height: 160px;
        border-radius: 20px;
        display: flex;
        align-items: center;
    }

    .progressBarDetail {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        color: #fff;
        justify-content: center;
    }

    .progressBarItem {
        position: relative;
        width: 100px;
        height: 100%;
    }

    .progressBarMainLayouts {
        position: relative;
        width: 10px;
        height: 100%;
    }

    .progressBarMainLayout:first-child .progressBarMainLayouts.active {
        border-radius: 20px 20px 0px 0px;
        border-left: 1px solid #784900;
        border-right: 1px solid #784900 !important;
    }

    .progressBarMainLayout:has(.progressBarMainLayouts.active):not(:has(+ .progressBarMainLayout .progressBarMainLayouts.active)) .progressBarMainLayouts.active {
        border-radius: 0px 0px 20px 20px;
        border-right: 1px solid #784900;
        border-left: 1px solid #784900;
    }

    .progressBarMainLayout:last-child .progressBarMainLayouts {
        border-radius: 0 0px 20px 20px;
        border-right: 1px solid #000;
        border-left: 1px solid #000;

    }

    .contentLayout_content {
        padding: 60px 20px 50px 20px;
        ;
    }

    .cardItemMainLayout_outside {
        width: 100%;
        min-width: 100%;
    }

    .contentMainLayout {
        padding: 50px 20px;
    }

    .reward_TableTitle {
        width: 100%;
        min-width: 130px;
        min-height: 130px;
        border: 1px solid #6c7db9;
        border-right: 1px solid #6c7db9;
    }

    .modalContentMain {
        padding: 50px 20px;
    }

    .cardItemMainLayout_outside {
        height: 100%;
    }

    .btn.socialMedai {
        width: 280px;
    }

    .loginMainLayout {
        padding: 20px;
    }

    .logoTagLayout {
        position: absolute;
        top: 10px;
        right: 0px;
    }

    .modal-content.formReward .btn.modal_close {
        position: absolute;
        top: 30px;
        right: 10px;
        width: 30px;
        min-width: 30px;
        height: 30px;
        padding: 0px;
        background: #323232;
        color: #fff;
        font-size: 18px;
        border-radius: 50%;
    }

    .rewardFormTitle {
        width: 100%;
    }

    .modal-content.formReward {
        position: relative;
        width: 100%;
        height: 100%;
        padding: 50px 20px;
        border-radius: 30px;
        background: radial-gradient(circle, rgba(65, 148, 220, 1) 0%, rgba(33, 54, 100, 1) 100%);
        box-shadow: 0px 0px 1px 2px #000, inset 0px 0px 20px 10px #00000086, inset 0px 0px 0px 4px #ffaf02;
        border: 5px solid #f9cb4f;
        color: #fff;
    }
}

@media (max-width: 482px) {
    .bannerTitleMainLayout {
        width: 320px;
    }

    .bannerLogoLayout {
        width: 120px;
    }

    .bannerDetailLayout span {
        font-family: "FCVision", sans-serif;
        font-size: 16px;
        line-height: 18px;
        font-weight: 700;
        text-shadow: 1px 1px 0 #002054, -1px 1px 0 #2d5389, 1px -1px 0 #2d5389, -1px -1px 0 #2d5389, 1px 0 0 #2d5389, -1px 0 0 #2d5389, 0 1px 0 #2d5389, 0 -1px 0 #2d5389;
    }

    .bannerDetailLayout {
        line-height: 18px;
    }

    .bannerDateMainLayout {
        width: 280px;
        height: 40px;
        font-size: 15px;
        font-weight: 500;
    }

    .cardLogoGame {
        width: 130px;
        min-width: 130px;
    }

    .cardItemMainLayout_outside.logoGame {
        position: relative;
        width: 100px;
        min-width: 100px;
        height: 100px;
        overflow: hidden;
    }

    .cardItemMainLayout_outside.logoGame .cardItemLayout .cardItem_itemImg {
        width: 70px;
        min-width: 70px;
    }

    .cardLogoGame p {
        height: 70px;
    }

    .btn.secondary {
        width: 115px;
        min-width: 115px;
    }
}

@media (max-width: 350px) {
    .bannerTitleMainLayout {
        width: 270px;
    }

    .lens-flare.right {
        display: none;
    }
}