.packageModal.modal-fullscreen {
    height: auto;
    min-height: 100%;
    align-items: stretch;
}

.packageModal .modal-content {
    width: 100%;
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
}

.bannerMb {
    display: none;
}

@media (max-width: 1495.98px) {
    .bannerMainFrameLayout {
        left: 49%;
        top: 43%;
        width: 100%;
        height: 100%;
        transform: scale(.95) rotate(-3deg) translate(-50%, -50%);
    }
}

/* ≤ 1400px */
@media (max-width: 1399.98px) {
    .packageNpcLayout {
        right: -5%;
    }

    .packageCoin_1 {
        left: -3%;
    }
}

/* ≤ 1200px */
@media (max-width: 1199.98px) {
    .bannerMainFrameLayout {
        left: 50%;
        top: 46%;
        width: 1250px;
        height: 100%;
        transform: scale(1) rotate(-3deg) translate(-50%, -50%);
    }

    .bannerFrameLayout {
        left: 50%;
        top: 50%;
        width: 1200px;
        height: 100%;
        transform: translate(-50%, -50%) scale(1);
    }

    .bannerMainFrameLayout img,
    .bannerFrameLayout img {
        object-fit: cover;
    }

    .bannerObject {
        z-index: 5;
        right: -30px;
        bottom: 8%;
        width: 100px;
    }

    .bannerObjectDice {
        z-index: 6;
        right: -10px;
        bottom: -10px;
        width: 130px;
    }

    .bannerObjectMap {
        z-index: 5;
        left: -25px;
        bottom: 13%;
        width: 100px;
    }

    .bannerObjectCoin_1 {
        z-index: 5;
        left: -10px;
        top: 86%;
        width: 90px;
    }

    /* ── Package ── */
    .packageModalTitle {
        font-size: 66px;
        line-height: 52px;
    }

    .packageModalNote {
        font-size: 34px;
        line-height: 36px;
    }

    .btn_package {
        width: 270px;
    }

    .packageNpcLayout {
        right: -2%;
        width: 200px;
    }

    .packageCoin_1 {
        left: -2%;
        width: 340px;
    }

    .packageCoin_2 {
        left: -1%;
        width: 70px;
    }

    .packageDetailItem {
        width: 85px;
    }
}

/* ≤ 992px */
@media (max-width: 991.98px) {
    .bannerButtonMainLayout {
        position: relative;
        z-index: 7;
        top: 0px;
        right: 0px;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }

    .bannerMainLayout {
        padding: 50px;
        padding-top: 30px;
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
        justify-content: space-between;
    }

    .bannerContentMainLayout {
        padding-top: 0px;
    }

    .bannerNavbarObject {
        background: linear-gradient(180deg, #28190fe6 0%, #00d4ff00 100%);
    }

    .bannerFooter {
        z-index: 7;
        background: linear-gradient(0deg, #28190fe6 0%, #00d4ff00 100%);
    }

    .bannerMainFrameLayout {
        left: 44%;
    }

    .bannerContentLogoRoc {
        width: 200px;
    }

    .bannerContentLogoLgr {
        width: 200px;
    }

    .bannerContentLogoX {
        font-size: 50px;
        padding-right: 45px;
    }

    .btn.xl {
        min-width: 130px;
        min-height: 35px;
        padding: 5px 10px;
        font-size: 20px;
        line-height: 20px;
    }

    /* ── Package ── */
    .packageModal .modal-content {
        padding: 70px 30px 40px;
    }

    .packageModalTitle {
        font-size: 54px;
        line-height: 44px;
        -webkit-text-stroke-width: 5px;
    }

    .packageModalNote {
        font-size: 30px;
        line-height: 32px;
    }

    .packageFrameContentMainLayout {
        padding: 40px 30px;
    }

    .btn_package {
        width: 230px;
    }

    .packageNpcLayout {
        right: -10px;
        width: 150px;
    }

    .packageCoin_1 {
        left: -10px;
        bottom: -15px;
        width: 260px;
    }

    .packageCoin_2 {
        top: 30px;
        left: -10px;
        width: 60px;
    }

    .packageDetailMainLayout {
        gap: 8px;
        font-size: 26px;
    }

    .packageDetailItem {
        width: 70px;
        flex-shrink: 0;
    }

    .lgrTopicMainLayout {
        position: relative;
        width: 600px;
        height: 85px;

        font-size: 20px;
    }

    .lgrSec1_ncpItem {
        width: 200px;
        min-width: 200px;
    }

    .lgrSec1_ncp {
        width: 250px;
    }

    .lgrSec2_object {
        right: -6%;
        bottom: -10%;
        width: 260px;
    }
}

@media (max-width: 767.98px) {
    .packageModal .modal-content {
        padding: 64px 16px 32px;
    }

    .packageModalTitle {
        max-width: 100%;
        white-space: normal;
        font-size: 44px;
        line-height: 40px;
        -webkit-text-stroke-width: 4px;
        text-shadow: 0 4px 0 #2a1a0a, 0 6px 5px rgba(0, 0, 0, 0.4);
    }

    .packageModalTitle::after {
        inset: 10px;
        white-space: normal;
        text-align: center;
    }

    .packageModalNote {
        font-size: 26px;
        line-height: 28px;
    }

    .packageFrameContentMainLayout {
        --o-r: 20px;
        --i-inset: 10px;
        --i-r: 17px;
        min-height: 0;
        padding: 36px 16px 48px;
    }

    .packageContentMainLayout {
        flex-direction: column;
        gap: 24px;
    }

    .packageItem {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    #PackageModal .packageContentMainLayout .packageItem {
        z-index: 3;
    }

    .btn_package {
        width: 230px;
    }

    .packageDetailMainLayout {
        position: relative;
        top: auto;
        left: auto;
        display: none;
        width: 100%;
        max-width: 360px;
        margin-top: 16px;
        flex-wrap: wrap;
        gap: 8px;
        font-size: 24px;

        opacity: 1;
        visibility: visible;
        transform: none;
        transition: none;
    }

    .packageDetailMainLayout.is-open {
        display: flex;
        transform: none;
        animation: pkgDetailIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    .packageDetailItem {
        width: 72px;
    }

    .packageNpcLayout {
        right: -14px;
        bottom: -10px;
        width: 120px;
    }

    .packageCoin_1 {
        left: -14px;
        bottom: -18px;
        width: 180px;
    }

    .packageCoin_2 {
        top: 14px;
        left: -14px;
        width: 48px;
    }

    .lgrSec2_detailMainLayout {
        padding: 10px 20px;
    }

    .lgrSec2_slideMainLayout {
        flex-direction: column;
        padding: 10px 20px;
        min-height: fit-content;
    }

    .lgrSec2_slideImg {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .lgrSec2_slideBtn {
        width: 40px;
        height: 40px;
    }

    .lgrSec2_slideBtn img {
        width: 14px;
        min-width: 14px;
        height: 14px;
    }

    .lgrSec2_object {
        right: -13%;
        bottom: 6%;
        width: 200px;
    }

    .lgrSec3_TopicLayout {
        width: 455px;
        height: 65px;
        padding: 10px;
        padding-left: 40px;
        padding-right: 110px;

        font-size: 22px;
        line-height: 22px;
    }

    .lgrSec3_TopicItem {
        right: 25px;
        width: 100px;
    }

    .lgrSec3_npcLayout {
        max-width: 220px;
    }

    .lgrMainLayout {
        font-size: 25px;
        line-height: 25px;
    }
}

/* ≤ 576px */
@media (max-width: 575.98px) {
    .bannerContentMainLayout {
        flex-direction: column;
        align-items: center;
    }

    .bannerContentLogoX {
        font-size: 40px;
        line-height: 50px;
        padding-right: 0px;
    }

    .bannerContentLogoLgr img {
        filter: drop-shadow(1px 1px 10px #fff) drop-shadow(1px 1px 20px #fff);
    }

    /* ── Package ── */
    .packageModalClose {
        top: 14px;
        right: 14px;
    }

    .packageModalTitle {
        font-size: 36px;
        line-height: 34px;
        -webkit-text-stroke-width: 3px;
    }

    .packageModalNote {
        font-size: 22px;
        line-height: 24px;
    }

    .btn_package {
        width: 200px;
    }

    .packageDetailMainLayout {
        max-width: 300px;
        padding: 8px;
        gap: 6px;
        font-size: 20px;
    }

    .packageDetailItem {
        width: 60px;
    }

    .packageNpcLayout {
        width: 95px;
    }

    .packageCoin_1 {
        width: 140px;
    }

    .packageCoin_2 {
        width: 40px;
    }

    .lgrTopicMainLayout {
        position: relative;
        width: 100%;
        height: fit-content;
        min-height: 80px;
        border-radius: 50px;
        padding: 10px 20px;
        font-size: 20px;

        background: linear-gradient(180deg, rgb(0 20 41 / 85%) 50%, rgba(5, 71, 140, 1) 100%);
        border: 2px solid #bea037;
    }

    .lgrTitle {
        font-size: 45px;
        line-height: 35px;
        white-space: normal;
    }

    .lgrTitle::after {
        white-space: normal;
    }

    .lgrNote {
        font-size: 25px;
        line-height: 20px;
    }

    .lgrSec1_mainLayout {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .lgrSec2_slideImg {
        border: 2px solid #ffe09e;
    }

    .lgrSec2_object {
        display: none;
    }

    .lgrSec2_object_2 {
        left: -17%;
        top: 15%;
        width: 100px;
    }

    .lgrSec3_TopicLayout {
        position: relative;
        width: 100%;
        max-width: 400px;
        height: fit-content;
        min-height: 70px;
        border-radius: 50px;
        font-size: 20px;
        background: linear-gradient(180deg, rgb(0 20 41 / 85%) 50%, rgba(5, 71, 140, 1) 100%);
        border: 2px solid #bea037;

        padding: 10px;
        padding-left: 30px;
        padding-right: 110px;
    }

    .lgrSec3_TopicItem {
        right: 10px;
        width: 90px;
    }

    .bannerObj,
    .bannerNavbarObject,
    .bannerFooter,
    .bannerFrameLayout,
    .bannerMainFrameLayout {
        display: none;
    }

    .bannerMainLayout {
        padding: 80px;
        display: flex;
        flex-direction: column-reverse;
        justify-content: flex-end;
        align-items: center;
        gap: 40px;

        height: auto;
        min-height: 100dvh;
    }

    .bannerMb {
        display: flex;
    }

    .bannerMb_Frame {
        position: absolute;
        z-index: 1;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);

        width: 100%;
        min-width: 700px;
        height: 100%;
    }

    .btn.xl {
        min-width: 95px;
        min-height: 30px;
        padding: 2px 7px;
        font-size: 17px;
        line-height: 17px;
    }

    .bannerMb.bannerFooter {
        z-index: 1;
    }

    .bannerMap {
        position: absolute;
        z-index: 1;
        bottom: -100px;
        left: 50%;
        transform: translateX(-50%);

        width: 700px;
    }

    .bannerPoring_1 {
        position: absolute;
        z-index: 2;
        bottom: 25%;
        right: 13%;

        width: 100px;
    }

    .bannerPoring_2 {
        position: absolute;
        z-index: 2;
        top: 5%;
        right: 0%;

        width: 200px;
    }

    .bannerCoin_1 {
        position: absolute;
        z-index: 2;
        top: 1%;
        left: 25%;

        width: 60px;
    }

    .bannerCoin_2 {
        position: absolute;
        z-index: 2;
        top: 50%;
        left: 10%;
        transform: translateX(-50%);

        width: 60px;
    }
}

@media (max-width: 505px) {
    .lgrBtnHome {
        top: 110px;
        left: 10px;
    }

    .lgrMainLayout {
        padding: 20px;
        padding-top: 150px;
    }
}

/* ≤ 400px : มือถือจอเล็ก */
@media (max-width: 399.98px) {
    .packageModalTitle {
        font-size: 32px;
        line-height: 30px;
    }

    .btn_package {
        width: 180px;
    }

    .packageDetailItem {
        width: 54px;
    }
}

/* จอกว้างแต่เตี้ย (โน้ตบุ๊ก 1366×650 ฯลฯ) : ย่อให้พอดีจอเดียว */
@media (min-width: 768px) and (max-height: 760px) {
    .packageModal .modal-content {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .packageModalTitle {
        font-size: 56px;
        line-height: 46px;
    }

    .packageModalNote {
        font-size: 28px;
        line-height: 30px;
    }

    .packageFrameContentMainLayout {
        padding-top: 32px;
        padding-bottom: 32px;
    }

    .btn_package {
        width: 220px;
    }

    .packageDetailItem {
        width: 70px;
    }
}

@keyframes pkgDetailIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .packageDetailMainLayout.is-open {
        animation: none;
    }
}