@font-face {
    font-family: "JS-Puchong-Normal";
    src: url("../font/JS-Puchong-Normal.ttf") format("truetype");
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "AlieyPersonalUseOnly";
    src: url("../font/AlieyPersonalUseOnlyBold.otf") format("truetype");
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "AlieyPersonalUseOnly";
    src: url("../font/AlieyPersonalUseOnlyRegular.otf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "PSL_Majestic";
    src: url("../font/psl069.ttf") format("truetype");
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

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

.font-JS-Puchong-Normal {
    font-family: "JS-Puchong-Normal", sans-serif;
}

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

.textDetail {
    color: rgba(216, 228, 255, 0.815);
    font-size: 14px;
    line-height: 20px;

    font-family: 'kanit', sans-serif;
}

.textDetail.warning {
    color: #fff8d1;
}

.btnPrimary {
    width: 300px;
    height: 65px;
    padding: 20px;
    border: 0px solid transparent !important;

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

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

    font-size: 18px;
    line-height: 18px;
    font-weight: 700;
    color: #fff;

    transition: .5s;
}

.btnPrimary:hover {
    transform: scale(1.03);
    filter:
        drop-shadow(0 0 5px rgba(70, 135, 255, 0.45)) drop-shadow(0 0 10px rgba(68, 79, 233, 0.35));
}

.btnPrimary:active {
    transform: translateY(0) scale(.98);
    transition-duration: .08s;
}

.btn-primary {
    width: 180px;
    height: 55px;
    padding: 28px 35px 20px;
    opacity: .7;

    border: 0px solid transparent;
    color: #fff;

    background: url("../images/btn.png") center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;

    font-family: "PSL_Majestic", sans-serif;
    font-size: 25px;
    line-height: 25px;
    font-weight: 800;
    text-align: center;

    text-shadow: 2px 2px 0 #630B0C;
    filter: drop-shadow(0 0 10px #ad44e9a4);
    transition:
        transform .25s ease,
        filter .25s ease,
        background-image .25s ease;
    cursor: pointer;
    user-select: none;
}

.btn-primary:hover {
    background-image: url("../images/btnActive.png");
    transform: translateY(-3px) scale(1.03);
    filter:
        drop-shadow(0 0 18px rgba(255, 70, 70, .45)) drop-shadow(0 0 10px rgba(173, 68, 233, .35));
    opacity: 1;
}

.btn-primary:active {
    transform: translateY(0) scale(.98);
    transition-duration: .08s;
}

.buttonBackMainLayout {
    position: fixed;
    z-index: 5;
    top: 140px;
    left: 50%;
    transform: translateX(-50%);
    width: fit-content;
}

/* ================== 
    Scroll Bar 
    ==================  */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #070707;
}

::-webkit-scrollbar-thumb {
    background: #2b0d11;
    border-radius: 20px;
    border: 1px solid rgba(255, 60, 60, .15);
    transition: .3s;
}

::-webkit-scrollbar-thumb:hover {
    background: #6e111d;
    box-shadow:
        0 0 6px rgba(255, 40, 40, .35);
}


body {
    background: #000;
    color: #fff;
    font-family: "JS-Puchong-Normal", sans-serif;
}

.contentMainLayout {
    width: 100%;
    max-width: 765px;
    min-height: 100dvh;
    margin: 0px auto;
}

.headerMainLayout {
    width: 100%;
    min-height: 1600px;
    padding: 50px;
    padding-bottom: 100px;

    background: url("../images/content/background/header.png");
    background-position: 50%;
    background-size: cover;

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

.headerLogoTitle {
    width: 100%;
    max-width: 900px;

    margin-bottom: 100px;
}

.headerDetailLayout {
    position: relative;
    width: 100%;
    max-width: 750px;
    min-height: 300px;
    padding: 20px 50px;

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

    border: 1px solid #c599d334;
    background: #c599d309;

    font-family: "JS-Puchong-Normal", sans-serif;
    font-size: 18px;
    line-height: 20px;
    color: #fffffff1;
}


.headerDetailLayout span {
    background: radial-gradient(circle,
            #fff 60%,
            rgba(197, 153, 211, 1) 100%);

    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.tabMainLayout {
    width: 100%;
    min-height: 60px;
    padding: 0px;

    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #585858;
}

.btnTag {
    position: relative;
    width: 100%;
    min-height: 85px;
    padding: 10px;
    border: 1px solid transparent;
    background: transparent;


    font-family: "Gamja Flower", sans-serif;
    color: #414141;
    font-size: 35px;
    line-height: 30px;

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

    transition: all .35s ease;
}

.btnTag:hover {
    color: #fff;
    text-shadow:
        0 0 4px #ff0000,
        0 0 10px #ff5050cc,
        0 0 20px #ff0000b3,
        0 0 35px #ff000080;
    filter: drop-shadow(0 0 8px #ff000066);
}

.btnTag.active {
    color: #fff;
    text-shadow:
        0 0 5px #ff0000,
        0 0 10px #ff0000,
        0 0 20px #ff0000,
        0 0 40px #ff0000,
        0 0 80px #ff0000;
}

.btnTagIcon {
    display: none;
}


.btnTag.active .btnTagIcon {
    display: flex;
    position: absolute;
    z-index: 5;
    bottom: -13px;
    left: 50%;
    transform: translateX(-50%);

    font-size: 25px;
    color: #585858;

    text-shadow:
        0 0 5px #ff000000,
        0 0 10px #ff000000,
        0 0 20px #ff000000,
        0 0 40px #ff000000,
        0 0 80px #ff000000;
    filter: drop-shadow(0 0 8px #ff000000);
}

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

.tabContentMainLayout {
    display: none;
}

.tabContentMainLayout.show {
    display: flex;
    flex-direction: column;
}

/* ========================
    TAB : Quest
======================== */
.questMainLayout {
    position: relative;
    z-index: 3;
    width: 100%;
    min-height: 100dvh;
    padding: 100px 0px 0px 0px;

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

.questObject {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;

    width: 100%;
}

.questObjectBg {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;

    width: 100%;
    height: 800px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 1) 0%, rgba(255, 243, 145, 0) 10%, rgba(150, 143, 85, 0) 63%, rgba(0, 0, 0, 1) 100%);
}

.questTitle {
    width: 100%;
    max-width: 310px;

    filter:
        drop-shadow(0 0 5px #424242) drop-shadow(0 0 5px #161616) drop-shadow(0 0 5px #161616);
}

.questIcon {
    width: 50px;
}

.questTableContentLayout {
    position: relative;
    width: 735px;
    height: 207px;

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

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


.questTableContent {
    width: 100%;
    min-height: 30px;
    padding: 10px 80px;
    border-bottom: 1px solid #000;

    font-family: 'Kanit', sans-serif;
    font-size: 15px;
    line-height: 20px;

    display: flex;
    align-items: center;
}

.questTableContent:last-child {
    border-bottom: 1px solid transparent;
}

.questTableTopic {
    width: 100px;
    min-width: 100px;
    text-align: start;
    color: #76d7ff;
}

.questTableDes {
    width: 100%;
    color: #cee7fe;

    display: flex;
    flex-direction: column;
    gap: 5px;
}

.quesTopicLayout {
    position: relative;
    width: 735px;
    height: 65px;

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

    padding: 10px 80px;
    border-bottom: 1px solid #000;

    font-family: 'Kanit', sans-serif;
    font-size: 15px;
    line-height: 15px;

    display: flex;
    align-items: center;
}

.quesTopicLayout.secondary {
    background: url("../images/content/background/tableBg_4.png");
    background-position: center;
    background-size: cover;
    height: 58px;
}

.quesTopicLayout.secondary .questTableTopic {
    color: #91c5b0;
}

.quesTopicLayout.secondary .questTableDes {
    color:
        #ffffffc0;
}


.questTableContentLayout.secondary {
    background: url("../images/content/background/tableBg_3.png");
    background-position: center;
    background-size: cover;

    height: 225px;
}

.questTableContentLayout.secondary .questTableContent .questTableTopic {
    color: #91c5b0;
}

.questTableContentLayout.secondary .questTableContent .questTableDes {
    color: #ffffffc0;
    align-items: start;
}

.subQuestMainLayout {
    position: relative;
    z-index: 3;
    width: 100%;
    min-height: 100dvh;
    padding: 100px 0px 50px 0px;

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

.questObjectBg.subQuest {
    height: 500px;
}

.subQuestContent {
    position: relative;
    z-index: 3;

    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;

    padding-top: 180px;
}


/* =======================
    DAILY QUEST
======================= */

.dailyQuestMainLayout {
    position: relative;
    z-index: 3;
    width: 100%;
    min-height: 100dvh;
    padding: 100px 0px 0px 0px;

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

.dailyQuestContent {
    position: relative;
    z-index: 3;

    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;

    padding-top: 280px;
}


/* =======================
    QUEST ; FOOTER
======================= */

.questFooter {
    position: relative;
    width: 100%;
    height: 100%;
}

.questObjectBg_2 {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;

    width: 100%;
    height: 200px;
    background: linear-gradient(0deg, rgba(150, 143, 85, 0) 0%, rgba(0, 0, 0, 1) 100%);
}

/* =======================
   Memorial Dungeon
======================= */
.memoriaDungeonContentLayout {
    width: 100%;
    min-height: 100dvh;
    padding: 50px;

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

/* =======================
   NEW ITEM
======================= */
.newItemContentLayout {
    width: 100%;
    min-height: 100dvh;
    padding: 50px;

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

.newItemTitle {
    width: 100%;
    max-width: 250px;

    filter:
        drop-shadow(0 0 5px #424242) drop-shadow(0 0 5px #161616) drop-shadow(0 0 5px #161616);
}

.newItemTopicItemLayout {
    width: 100%;
    height: 190px;
    padding: 20px;

    background: url("../images/content/newItem/topic.png");
    background-position: center;
    background-size: cover;

    display: flex;
    align-items: center;
    gap: 10px;

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

.newItemTopicItem {
    width: 100px;
    min-width: 100px;
}


.newItemTicketMainLayout {
    position: relative;
    width: 100%;
    height: 1160px;
    padding: 30px;
    padding-top: 250px;
    margin-top: 120px;

    background: url("../images/content/newItem/bgTable.png");
    background-position: top;
    background-size: cover;

    color: #e2f0ff;
}

.ticketObject {
    position: absolute;
    z-index: 1;
    top: -70px;
    left: 50%;
    transform: translateX(-50%);

    width: 500px;
}

.newItemTicketContentLayout {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 300px;

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

.ticketTitle_1 {
    font-size: 60px;
    line-height: 60px;
    font-weight: 700;
    background: linear-gradient(180deg,
            rgba(127, 69, 195, 1) 0%,
            rgba(45, 47, 74, 1) 100%);

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.ticketTitle_2 {
    position: absolute;
    top: 45px;

    font-size: 55px;
    line-height: 55px;
    font-weight: 700;
    font-family: "AlieyPersonalUseOnly", sans-serif;

    background: linear-gradient(180deg, rgba(145, 200, 255, 1) 0%, rgba(255, 255, 255, 1) 100%);

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.itemTicketObject {
    position: relative;
    margin: 30px 0px;
    margin-top: 80px;

    width: 180px;
}

.itemTicketObject img {
    position: relative;
    z-index: 2;
}

.itemTicketTableMainLayout {
    width: 100%;
    min-width: 300px;

    background: #293956;
    border: 2px solid #0e192e;

    display: flex;
    flex-direction: column;
}

.itemTicketTableHeader {
    width: 100%;
    min-height: 55px;
    padding: 10px 20px;

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

    font-size: 18px;
    line-height: 18px;
    font-weight: 700;
    color: #76d7ff;
}

.itemTicketTableContent {
    width: 100%;
    min-height: 70px;

    display: flex;
    align-items: stretch;
    background: #fff;
    border-bottom: 2px dashed #535353;
    color: #212834;

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

.itemTicketTableContent:last-child {
    border-bottom: 2px dashed transparent;
}

.itemTicketTableContentLeft {
    width: 100%;
    padding: 5px 10px;

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

.itemTicketTableContentLeft span {
    width: 250px;
    text-align: center;
}

.itemTicketItem {
    width: 70px;
}

.itemTicketTableContentRight {
    width: 180px;
    min-width: 180px;
    min-height: 70px;
    background: #e1f1f8;

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

.stage {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100px;
}

.stage>div {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    mix-blend-mode: screen;
}

.halo {
    width: 50px;
    height: 50px;
    background: radial-gradient(circle,
            rgba(255, 190, 90, 0.35) 0%,
            rgba(255, 150, 40, 0.15) 35%,
            rgba(255, 120, 20, 0.05) 55%,
            transparent 75%);
}

.core {
    width: 25px;
    height: 25px;
    background: radial-gradient(circle,
            #fffef6 0%,
            #ffe9a6 15%,
            #ffc65c 32%,
            rgba(255, 150, 30, 0.35) 55%,
            transparent 75%);
}

.beam-h-wide {
    width: 150px;
    height: 15px;
    background: radial-gradient(ellipse,
            rgba(255, 229, 176, 0.5) 0%,
            rgba(255, 204, 137, 0.25) 30%,
            transparent 70%);
}

.beam-h-mid {
    width: 130px;
    height: 15px;
    background: radial-gradient(ellipse,
            rgba(255, 240, 199, 0.8) 0%,
            rgba(255, 208, 134, 0.4) 35%,
            transparent 75%);
}

/* =======================
   MODAL
======================= */
.modal-content {
    position: relative;
    background: #f0f0db;
    color: #676360;
    border: 0px solid transparent;

    font-size: 14px;
    line-height: 18px;
    font-weight: 600;
}

.modalBody {
    max-height: calc(90vh - 70px);
    overflow-y: auto;

}

.modalBody {
    overflow-x: hidden;
}

.modalHeader {
    position: sticky;
    top: 0;
    width: 100%;
    min-height: 70px;
    padding: 5px 10px;

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

    font-size: 30px;
    line-height: 30px;
    font-weight: 700;

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

.modalHeader span {
    background: linear-gradient(180deg, rgba(56, 183, 230, 1) 0%, rgba(56, 183, 230, 1) 40%, rgb(201, 245, 255) 100%);

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.modalHeader button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 10px;

    width: 20px;
    height: 20px;
    padding: 0px;
}

.btn-close:focus {
    box-shadow: 1px 1px 1px #00000000;
    opacity: 1;
}

.modalContentMainLayout {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.modalContentLayout {
    width: 100%;
    min-height: 100px;
    padding: 20px 50px;

    display: flex;
    align-items: start;
    gap: 20px;
}

.modalContentLayout:first-child {
    padding: 50px;
    padding-bottom: 10px;
}

.modalContentLayout:last-child {
    padding: 50px;
    padding-top: 20px;
}

.modalContentItem {
    width: 100px;
    min-width: 100px;
    height: 150px;
    padding: 5px;
    border: 1px solid #575661;
    background: #fff;

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

.modalContentItem.itemcard {
    width: 110px;
    min-width: 110px;
    height: 100%;

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

.modalContentDetail {
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: space-between;
    gap: 20px;
}

.modalContentMainLayout hr {
    box-shadow: 0px 1px 0px #ffffff;
    opacity: 1;
    border-color: #b1b1b1;
    margin: 25px 0px;
}

.modalContentMainLayout.enchant {
    padding: 20px;
}


.itemTicketTableMainLayout .overflow-auto {
    overflow-x: auto;
    overflow-y: hidden;

    /* Firefox */
    scrollbar-width: thin;
    scrollbar-color: #122652 #2b2b2b;
}

/* Chrome, Edge, Safari */
.itemTicketTableMainLayout .overflow-auto::-webkit-scrollbar {
    height: 10px;
    /* ความสูงของ scrollbar แนวนอน */
}

.itemTicketTableMainLayout .overflow-auto::-webkit-scrollbar-track {
    background: #2b2b2b;
    border-radius: 999px;
}

.itemTicketTableMainLayout .overflow-auto::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #f8d66d, #d38b14);
    border-radius: 999px;
    border: 2px solid #2b2b2b;
}

.itemTicketTableMainLayout .overflow-auto::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, #ffe38c, #f0a61a);
}

.itemTicketTableMainLayout .overflow-auto::-webkit-scrollbar-corner {
    background: transparent;
}

/* =======================
   MODAL : ENCHANT NEW
======================= */
.modalEnchatNewTableMainLayout {
    width: 100%;
    min-height: 200px;

    background: #e9e8e6;
    border: 1px solid #71707e;
}

.modalEnchantNewTableHeader {
    width: 100%;
    min-height: 60px;
    padding: 20px;

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

    background: #71707e;
    color: #f1f1e6;
    font-size: 20px;
    line-height: 20px;
    font-weight: 700;
}

.modalEnchantNewTableContentMain {
    width: 100%;
    padding: 20px;
}

.modalEnchantNewTableContent {
    width: 100%;
    min-height: 50px;

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

.modalEnchantNewTableContentMain hr {
    margin: 5px 0px;
}

.modalEnchantNewTableContent .title {
    width: 200px;
    min-width: 200px;
    text-align: center;

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

    color: #3d3730;
    font-size: 16px;
    line-height: 16px;
    font-weight: 600;
}

.modalEnchantNewTableContent .detail {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: start;

    font-size: 16px;
    line-height: 22px;
    color: #676360;
}