body.modal-open {
    overflow: hidden !important;
}

.modal-open {
    padding-right: 0px !important;
}

body.modal-open {
    padding-right: 0 !important;
    overflow-y: auto !important;
}

.mainLayout {
    position: relative;
    width: 100%;
    min-height: 100dvh;
    overscroll-behavior: none;

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

    font-family: "PSL_Omyim_Pro", sans-serif;
}


@font-face {
    font-family: "PSL_Omyim_Pro";
    src: url("../font/PSL114pro.ttf") format("truetype");
    font-weight: bold;
    font-style: normal;
    font-display: swap;
    /* ป้องกัน FOIT - ใช้ fallback font ก่อน แล้วค่อย swap */
}

@font-face {
    font-family: "2005_iannnnnMTV";
    src: url("../font/2005_iannnnnMTV.ttf") format("truetype");
    font-weight: bold;
    font-style: normal;
    font-display: swap;
    /* ป้องกัน FOIT - ใช้ fallback font ก่อน แล้วค่อย swap */
}

.font-PSL_Omyim_Pro {
    font-family: "PSL_Omyim_Pro", sans-serif;
}

.font-2005_iannnnnMTV {
    font-family: "2005_iannnnnMTV", sans-serif;
}

.bg-danger {
    background: #f9eae7 !important;
}

.ci-danger-500 {
    color: #fb1401;
}

.ci-danger {
    color: #e01f06;
}

.ci-danger-800 {
    color: #711e17;
}


/* =========== 
    Content
===========  */
.contentMainLayout {
    position: relative;
    width: 100%;
    max-width: 991px;
    min-height: 100dvh;

    background: #000;
    color: #fff;
}

.contentLayout {
    position: relative;
    width: 100%;
    /* min-height: 100dvh; */

    display: flex;
    flex-direction: column;
    align-items: center;
}

.contentTitleObject {
    width: 25px;
}

.contentTitleLayout {
    position: relative;
    width: fit-content;
    min-width: 400px;
    height: 60px;
    padding: 10px 20px;
    border-radius: 0px 0px 30px 30px;


    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    text-align: center;

    font-family: "2005_iannnnnMTV", sans-serif;
}

.contentTitleLayout span {
    font-size: 55px;
    line-height: 28px;
    color: #fff;
    letter-spacing: 2px;
}

.contentTitleLayout.danger {
    background: linear-gradient(180deg, #e74932 0%, #cb1107 100%);
    box-shadow: 0px 4px 0px #941100;
}

.contentTitleLayout.danger span {
    text-shadow:
        -2px -2px 0 #a31300,
        2px -2px 0 #a31300,
        -2px 2px 0 #a31300,
        2px 2px 0 #a31300,
        0px -2px 0 #a31300,
        0px 2px 0 #a31300,
        -2px 0px 0 #a31300,
        2px 0px 0 #a31300,
        3px 3px 4px rgba(0, 0, 0, 0.6);
}

.contentTitleLayout.success {
    background: linear-gradient(180deg, #0d5545 0%, #0d5545 100%);
    box-shadow: 0px 4px 0px #12705c;

    font-family: "PSL_Omyim_Pro", sans-serif;
}

.contentTitleLayout.success span {
    font-size: 40px;
    line-height: 40px;
    text-shadow:
        -2px -2px 0 #093528,
        2px -2px 0 #093528,
        -2px 2px 0 #093528,
        2px 2px 0 #093528,
        0px -2px 0 #093528,
        0px 2px 0 #093528,
        -2px 0px 0 #093528,
        2px 0px 0 #093528,
        3px 3px 2px #0d6d51;
}


/* banner */
.bannerMainLayout {
    position: relative;
    width: 100%;
    min-height: 1300px;
    padding: 0px 20px;
    /* padding-top: 80px; */
    padding-top: 125px;

    background: url("../images/banner/bg.png");
    background-position: top center;
    background-size: cover;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    overflow: hidden;
}

.bannerContentLayout {
    position: relative;
    z-index: 5;

    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.bannerLogo {
    width: 100%;
    max-width: 300px;
    filter: drop-shadow(1px 1px 10px #ffffff);
}

.bannerTitle {
    width: 100%;
    max-width: 600px;
}

.bannerTopicLayout {
    width: fit-content;
    height: 30px;
    border-radius: 50px;
    padding: 2px 10px;

    background: #2497c1;
    box-shadow: 1px 3px 1px #004d6b;

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

    font-size: 25px;
}

.bannerTopic {
    font-size: 25px;
    line-height: 25px;
    font-weight: 800;
    color: #0c3a4a;
    letter-spacing: 1px;

    text-shadow:
        -1px -1px 0 #fff,
        1px -1px 0 #fff,
        -1px 1px 0 #fff,
        1px 1px 0 #fff,
        0px -1px 0 #fff,
        0px 1px 0 #fff,
        -1px 0px 0 #fff,
        1px 0px 0 #fff;
}

.objectTomato_1 {
    position: absolute;
    z-index: 1;
    bottom: 0px;
    left: -50px;

    width: 250px;
}

.objectKumamon {
    position: absolute;
    z-index: 2;
    /* bottom: -80px; */
    bottom: -105px;
    left: 50%;
    transform: translateX(-50%);

    width: 600px;
}

.objectTomato_2 {
    position: absolute;
    z-index: 3;
    bottom: 0px;
    right: -50px;

    width: 280px;
}

.objectLv {
    position: absolute;
    z-index: 4;
    top: 40%;
    right: 150px;
    transform: translateY(-50%);

    width: 120px;
}

/* Intro  */
.introMainLayout {
    position: relative;
    z-index: 6;
    width: 100%;
    height: 650px;
    margin-top: -100px;
    padding: 70px 40px 40px;
    border-bottom: 5px solid #e61b00;

    background: url("../images/intro/frame.png");
    background-position: top center;
    background-size: cover;

    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.introBoxLayout {
    width: 800px;
    height: 450px;
    padding: 50px;


    background: url("../images/intro/box.png");
    background-position: center;
    background-size: cover;

    color: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.introKumamon {
    width: 380px;
}

.introTextBox {
    width: 550px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.introTextBox span {
    font-size: 30px;
    line-height: 28px;
    font-weight: 800;
    color: #000;
    letter-spacing: 1px;

    text-shadow:
        -1px -1px 0 #fff,
        1px -1px 0 #fff,
        -1px 1px 0 #fff,
        1px 1px 0 #fff,
        0px -1px 0 #fff,
        0px 1px 0 #fff,
        -1px 0px 0 #fff,
        1px 0px 0 #fff,
        3px 3px 4px rgba(0, 0, 0, 0.6);
}

/* Limited Collaboration Package */
.lcpMainLayout {
    width: 100%;
    min-height: 100dvh;
    padding: 50px 30px 120px;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.lcpTopic {
    width: 280px;
    height: 75px;
    padding: 20px;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    background: url("../images/title/frame.png");
    background-position: center;
    background-size: cover;

    font-size: 35px;
    line-height: 35px;
    font-weight: 800;
    color: #fff;
}

/* table  */
.tableMainLayout {
    width: 100%;
    min-height: 200px;
    border-radius: 40px;
    overflow: hidden;

    background: #f8f3f2;
    color: #000;

    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.tableHeaderLayout {
    width: 100%;
    height: 60px;
    border-radius: 40px 40px 0px 0px;
    border-bottom: 1px solid #000;

    background: #e01f06;
    box-shadow: inset 0px 2px 0px #ff4830;
    display: flex;
    align-items: center;
}

.tableHeader {
    width: 100%;
    height: 100%;
    padding: 10px 20px;
    border-left: 1px solid #000;
    border-right: 1px solid #000;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    font-size: 28px;
    line-height: 28px;
    font-weight: 800;
    color: #fff;
}

.tableHeader.FixW {
    width: 200px;
    min-width: 200px;
    border-left: 0px solid transparent;
    border-right: 0px solid transparent;
}


.tableContentLayout {
    width: 100%;
    height: 100%;
    min-height: 100px;
    border-bottom: 1px solid #000;

    display: flex;
    align-items: stretch;
}

.tableContentLayout:last-child {
    border-bottom: none;
}

.tableContent {
    width: 100%;
    min-height: 100px;
    height: auto;
    padding: 20px;
    border-left: 1px solid #000;
    border-right: 1px solid #000;

    display: flex;
    flex-direction: column;

    justify-content: center;

    font-size: 25px;
    line-height: 20px;
}

.tableContent.FixW {
    width: 200px;
    min-width: 200px;
    border-left: 0px solid transparent;
    border-right: 0px solid transparent;

    align-items: center;
}

.tableReward {
    width: 90px;
}

.tableReward img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Collaboration Costume (Package) */
.lcpPackageMainLayout {
    position: relative;

    width: 100%;
    min-height: 300px;
    margin-top: 120px;
    border-radius: 30px;
    padding: 80px 30px 50px;
    border: 4px solid #bb1717;

    background: #fff;
    color: #000;

    font-size: 25px;
    line-height: 25px;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.lcpPackageTitleLayout {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);

    width: fit-content;
    min-width: 500px;
    height: 50px;
    padding: 10px 20px;
    border-radius: 30px;


    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    font-family: "2005_iannnnnMTV", sans-serif;
    font-size: 40px;
    line-height: 28px;
    color: #fff;
    letter-spacing: 2px;
    text-shadow:
        -2px -2px 0 #a31300,
        2px -2px 0 #a31300,
        -2px 2px 0 #a31300,
        2px 2px 0 #a31300,
        0px -2px 0 #a31300,
        0px 2px 0 #a31300,
        -2px 0px 0 #a31300,
        2px 0px 0 #a31300,
        3px 3px 4px rgba(0, 0, 0, 0.6);

    background: linear-gradient(180deg, #e74932 0%, #cb1107 100%);
    box-shadow: 0px 4px 0px #941100;
}

.lcpPackageTitleObject {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);

    width: 90px;
}

.lcpPackageMainReward {
    position: relative;
    width: 220px;
    height: 237px;
    padding: 30px 13px 20px 13px;

    background: url("../images/title/costume.png");
    background-position: center;
    background-size: cover;

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

.lcpPackageRewardMain {
    width: 190px;
    height: 193px;
    border-radius: 30px;
    background: #000;
    overflow: hidden;
}

.lcpPackageReward {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.lcpPackageReward img {
    position: absolute;
    top: 50%;
    left: 50%;

    width: 100%;
    height: 100%;
    object-fit: contain;

    transform: translate(-52%, -40%) scale(2.2);
}

.lcpPackageRewardObject {
    position: absolute;
    top: 10px;
    right: -95px;

    width: 90px;
}

.lcpPackageTopicLayout {
    width: 320px;
    height: 50px;
    padding: 5px 10px;
    padding-bottom: 8px;

    background: url("../images/title/frame_2.png");
    background-position: center;
    background-size: cover;

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

    font-size: 30px;
    line-height: 35px;
    font-weight: 800;
    color: #fff;

}

.lcpPackageSkillsLayout {
    max-width: 600px;
    min-height: 100px;
    padding: 30px 50px;
    border-radius: 30px;
    margin-top: 30px;

    background: #f9eae7;

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

.lcpPackageStatusLayout {
    width: 100%;
    min-height: 100px;
    padding: 20px;
    border-radius: 30px;

    background: #f3f3f3;
    border: 2px dashed #000;

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

.lcpPackageRewardPreview {
    width: 170px;
    height: 200px;

    border-radius: 20px;
    overflow: hidden;
}

.lcpPackageRewardPreview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lcpPackageRewardPreviewTitle {
    width: 100%;
    height: 50px;
    padding: 5px 10px;
    border-radius: 10px;

    background: #231916;
    color: #fff;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    box-shadow: 1px 1px 1px #000;
}

/* Let's go to Kumamoto together!  */

.kmtTripMainLayout {
    position: relative;
    width: 100%;
    min-height: 100dvh;
    padding: 0px 50px 150px;

    background: #202928;
    border-top: 5px solid #0d5545;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.kmtTripTitleKumamon {
    position: absolute;
    top: -37px;
    left: 50%;
    transform: translateX(-50%);
}

.kmtTripContentLayout {
    position: relative;
    margin-top: 80px;

    font-size: 20px;
    line-height: 24px;
    text-align: center;
}

.kmtTripContentLayout {
    width: 100%;
    /* max-width: 750px; */
    min-height: 200px;
    padding: 70px 50px 30px;
    border-radius: 30px;

    background: #10201d;
    border: 2px solid #094236;
    box-shadow: 0px 5px 3px 2px #00000073;

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

.kmtTripContentTopic {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);

    width: 250px;
    height: 50px;
    padding-bottom: 3px;

    background: url("../images/title/frame_3.png");
    background-position: center;
    background-size: cover;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    font-size: 27px;
    line-height: 25px;

}

.kmtTripRewardLayout {
    width: 500px;
    min-height: 100px;
    border-radius: 100px;
    padding: 20px;
    border: 2px solid #0b4a3c;

    background: #000;
    box-shadow: 0px 0px 5px 2px #1d8c72d5;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.kmtTripRewardItem {
    width: 110px;
    min-width: 110px;
    height: 110px;
    padding: 15px;
    border-radius: 50%;

    background: #cdc5c5;
}

.kmtTripLocationNpc {
    width: 100%;
    height: auto;
    padding: 5px;
    border-radius: 30px;
    border: 3px solid #0b4a3c;

    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.kmtTripLocationNpc img {
    border-radius: 20px;
}

/* <!-- Daily Mission  --> */
.dailyMissionMainLayout {
    position: relative;
    width: 100%;
    min-height: 100dvh;
    padding: 0px 50px 50px;

    background: linear-gradient(180deg, rgba(0, 0, 0, 1) 0%, rgba(29, 5, 2, 1) 100%);
    border-top: 5px solid #e61b00;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.dailyMissionMainLayout .contentTitleLayout.danger span {
    font-size: 40px;
    line-height: 40px;
}

.dailyMissionContentLayout {
    position: relative;
    margin-top: 80px;

    font-size: 20px;
    line-height: 24px;
    text-align: center;
}

.dailyMissionContentLayout {
    width: 100%;
    /* max-width: 750px; */
    min-height: 200px;
    padding: 70px 50px 30px;
    border-radius: 30px;

    background: #250c04;
    border: 2px solid #911300;
    box-shadow: 0px 5px 3px 2px #00000073;

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


.dailyMissionContentTopic {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);

    width: 375px;
    height: 50px;
    padding-bottom: 3px;

    background: url("../images/title/frame_4.png");
    background-position: center;
    background-size: cover;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    font-size: 27px;
    line-height: 25px;
}

.dailyMissionContentTopic_2 {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);

    width: 260px;
    height: 55px;
    padding-bottom: 3px;

    background: url("../images/title/frame_5.png");
    background-position: center;
    background-size: cover;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    font-size: 27px;
    line-height: 25px;
}

.dailyMissionRewardLayout {
    width: 500px;
    min-height: 100px;
    border-radius: 100px;
    padding: 20px;
    border: 2px solid #620e02;

    background: #000;
    box-shadow: 0px 0px 5px 2px #9f1a09;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.dailyMissionLocationNpc {
    width: 100%;
    height: auto;
    padding: 5px;
    border-radius: 30px;
    border: 3px solid #9f1a09;

    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.dailyMissionLocationNpc img {
    border-radius: 5px;
}

/* table  */
.dailyMissionTableMainLayout {
    width: 100%;
    height: auto;
    min-height: 100px;
    border-radius: 20px;
    overflow: auto;

    background: #fff;
    color: #000;

    display: flex;
    flex-direction: column;
}

.dmTableHeaderLayout {
    width: 100%;
    height: 60px;

    background: #ffd9d4;
    border-bottom: 2px solid #9f1a09;

    display: flex;
    align-items: center;
}

.dmTableHeaderContent {
    width: 100%;
    height: 100%;
    padding: 5px 10px;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

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

.dmTableHeaderContent.fixW {
    width: 180px;
    min-width: 180px;

    border-right: 2px solid #9f1a09;
    background: #b31906;
    color: #fff;
}

.dmTableContentLayout {
    width: 100%;
    height: auto;
    /* min-height: 150px; */

    display: flex;
    align-items: stretch;
    border-bottom: 2px solid #9f1a09;
}

.dmTableContent {
    width: 100%;
    padding: 15px;

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

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

.dmTableContent.fixW {
    width: 180px;
    min-width: 180px;

    border-right: 2px solid #9f1a09;
    background: #b31906;
    color: #fff;
}

.dmTableContent.fixW_2 {
    width: 150px;
    min-width: 150px;

    border-right: 2px solid #9f1a09;
    background: #ffe4e0;
    color: #9f1a09;
}

.dmTableContentReward {
    width: 80px;
    height: 100px;
    border: 2px solid #dddddd;
}

.dailyMissionSpMainLayout {
    position: relative;
    width: 100%;
    min-height: 750px;
    padding: 50px;

    background: url("../images/dailyMission/bg.png");
    background-position: center;
    background-size: cover;

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

.dmsTitleLayout {
    position: relative;
    width: 100%;
    max-width: 700px;
    min-height: 70px;
    border-radius: 50px;
    padding: 10px 115px 10px 20px;
    border: 2px solid #bb1717;

    background: #2f0b05;
    color: #fff;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

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

.dmsTitlePoring {
    position: absolute;
    top: 20%;
    right: -25px;
    transform: translateY(-50%);

    width: 130px;
}

.dmsRewardLayout {
    width: 300px;
    min-width: 300px;
    height: 220px;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid #810505;
}

/* Footer  */
.footerKumamonMainLayout {
    width: 100%;
    min-height: 60px;
    padding: 10px 20px;

    background: #000;
    color: #fff;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

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

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

    display: flex;
    flex-direction: column;
    overflow: hidden;

    background: #ffd9d4;
    color: #000;
}

.dmsTableTitle {
    width: 100%;
    min-height: 50px;
    padding: 5px 10px;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    border-bottom: 2px solid #810505;
    background: #b31906;
    color: #fff;

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

.dmsTableContent {
    width: 100%;
    min-height: 50px;
    padding: 5px 10px;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    border-bottom: 2px solid #810505;

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


.kmtTripLocationNpc img,
.dailyMissionLocationNpc img {
    transition: transform 0.3s;
    border-radius: 20px;
    cursor: zoom-in;
}

.kmtTripLocationNpc img:hover,
.dailyMissionLocationNpc img:hover {
    transform: scale(.98);
}

/* Modal */
.imageModal {
    position: fixed;
    inset: 0;
    z-index: 9999;

    background: rgba(0, 0, 0, 0.9);

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

    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.imageModal.show {
    opacity: 1;
    visibility: visible;
    padding: 15px;
}

#modalImage {
    width: 60%;
    object-fit: contain;

    border-radius: 20px;
}

.closeModal {
    position: absolute;
    top: 20px;
    right: 30px;

    color: #fff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
}

#modalImage {
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.imageModal.show #modalImage {
    transform: scale(1);
}

.rewardButtonModal {
    width: 100%;
    height: fit-content;
    text-align: start;

    border: 0px solid transparent;
    background: transparent;
    padding: 0px;

    color: #e01f06;
    text-decoration: underline;

    transition: .5s;
}

.rewardButtonModal:hover {
    color: #0b7608;
}


.btnBack {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;

    width: fit-content;
    min-width: 90px;
    height: 30px;
    padding: 5px 10px;
    border-radius: 30px;
    border: 0px solid transparent;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    font-family: "2005_iannnnnMTV", sans-serif;

    background: linear-gradient(180deg, #e74a32 0%, #cb1107 100%);
    box-shadow: 0px 4px 0px #941100;
    opacity: .7;

    transition: .5s;
}

.btnBack span {
    font-size: 28px;
    line-height: 28px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    text-shadow: -1px -1px 0 #a31300, 1px -1px 0 #a31300, -1px 1px 0 #a31300, 1px 1px 0 #a31300, 0px -1px 0 #a31300, 0px 1px 0 #a31300, -1px 0px 0 #a31300, 1px 0px 0 #a31300, 3px 3px 4px rgba(0, 0, 0, 0.6);
}

.btnItem {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 65px;
}

.btnBack:hover {
    opacity: 1;
}