/* ป้องกัน content กระโดดเวลาปิด/เปิด modal */
body.modal-open {
    padding-right: 0 !important;
}

html {
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
}

.cursor-pointer {
    cursor: pointer;
}

:root {
    --fs-h1: clamp(36px, 2.5vw + 24px, 80px);
    --fs-h2: clamp(30px, 2vw + 20px, 64px);
    --fs-h3: clamp(26px, 1.5vw + 20px, 52px);
    --fs-h4: clamp(23px, 1.2vw + 18px, 35px);
    --fs-h5: clamp(18px, 1vw + 16px, 25px);
    --fs-h6: clamp(16px, 0.8vw + 14px, 20px);
    --fs-p: clamp(14px, 0.5vw + 14px, 14px);
    --fs-small: clamp(12px, 0.25vw + 12px, 12px);
}

html,
body {
    overflow-x: hidden !important;
}

body {
    position: relative;
    font-family: "Kanit", sans-serif;
    background: #001333;
    color: #fff;

    width: 100%;
    min-height: 100dvh;
}

/* ==== font ==== */

h1,
.h1 {
    font-size: var(--fs-h1);
}

h2,
.h2 {
    font-size: var(--fs-h2);
}

h3,
.h3 {
    font-size: var(--fs-h3);
}

h4,
.h4 {
    font-size: var(--fs-h4);
}

h5,
.h5 {
    font-size: var(--fs-h5);
}

h6,
.h6 {
    font-size: var(--fs-h6);
    line-height: 22px;
}

p,
.p {
    font-size: var(--fs-p);
}

small,
.small {
    font-size: var(--fs-small);
}

.ci-primary {
    color: #00aeef;
}

.ci-primary-500 {
    color: #00aeef;
}

/* ==== Button ==== */
.btn {
    width: 200px;
    height: 65px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.btn.small {
    width: 150px;
    height: 50px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.btn.xl {
    width: 300px;
    height: 95px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.btn.primary span {
    font-size: 18px;
    line-height: 20px;
    font-weight: 700;

    color: #003471;
    text-shadow: 0px 1px 1px #fff;
}

.btn.small.primary span {
    font-size: 14px;
    line-height: 20px;
    font-weight: 700;

    color: #003471;
    text-shadow: 0px 1px 1px #fff;
}

.btn.xl.primary span {
    font-size: 20px;
    line-height: 20px;
    font-weight: 700;

    color: #003471;
    text-shadow: 0px 1px 1px #fff;
}

.btn.primary {
    background: url("../images/btn.png");
    background-position: center;
    background-size: cover;
    border: 1px solid transparent;
    transition: all 0.5s;
}

.btn.primary:hover,
.btn:active {
    box-shadow: 0px 0px 10px 1px #2c6fff;
}

.btn:not(:disabled):not(.disabled).active,
.btn:not(:disabled):not(.disabled):active {
    background-image: url("../images/btn.png");
}

.btn_backLayout {
    position: fixed;
    z-index: 2;
    top: 60px;
    left: 20px;
}

/* Style  */
.mainLayout {
    position: relative;
    width: 100%;
    min-height: 100dvh;
    padding: 50px;
    padding-top: 80px;

    background: url("https://img.gnjoy.in.th/2026/13/mySticalpass_bg.png");
    background-position: top;
    background-size: cover;

    display: flex;
    justify-content: center;
}

.mainLayoutContentMain {
    width: 100%;
    max-width: 991px;
    height: 100%;

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

.mainLayout_title {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 25px;
}

.titleImg {
    width: 100%;
    max-width: 500px;
}

.subtitleLayout {
    width: 400px;
    height: 60px;

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

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

.subtitleLayout span {
    color: #000000;
    text-shadow: 0px 1px 0px #fff;

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

    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* REWARD  */
.rewardMainLayout_Main {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rewardMainLayout {
    width: 100%;
    min-height: 250px;
    padding: 25px 50px;
    background: #0c0024;
    box-shadow: inset 0px 0px 20px 0px #000;
    border: 1px solid #b7ccff;

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

.rewarditem_layout {
    min-width: 100px;
    height: 120px;
    padding: 10px 5px;
    display: flex;
    align-items: center;
    justify-content: center;

    background: #fff;
    border: 2px solid #b7ccff;
}

.rewarditem_layout02 {
    min-width: 250px;
    height: 120px;
    padding: 10px 5px;
    display: flex;
    align-items: center;
    justify-content: center;

    background: #fff;
    border: 2px solid #b7ccff;
}

.rewardItemImg {
    width: 100%;
}

.levelPassMainLayout {
    position: relative;
    width: 1480px;
    height: 100%;

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

.level_titleMainLayout {
    width: 200px;
    min-width: 200px;
    height: 100%;

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

.level_titleNormalLayout {
    width: 200px;
    padding: 10px;
}

.level_titlePremiumLayout {
    width: 200px;
    padding: 10px;
}

.rewardSlide_contentLayout {
    cursor: e-resize;
    user-select: none;
    scroll-behavior: smooth;
}

.rewardSlide_contentLayout {
    position: relative;
    width: 1190px;
    height: 700px;
    padding: 10px;
    background: #000711d3;
    border: 3px solid #b7ccff;
    box-shadow: 0 0 12px #1680f899;
    border-radius: 10px;
    display: flex;
    gap: 2px;
    overflow: auto;
}

.rewardSlide_contentLayout::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.rewardSlide_contentLayout::-webkit-scrollbar-track {
    background: #010814;
    border-radius: 10px;
}

.rewardSlide_contentLayout::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #0d4fb8, #1673d6);
    border-radius: 10px;
    box-shadow: 0 0 4px #0d4fb888;
}

.rewardSlide_contentLayout::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #1b86ff, #0d4fb8);
    box-shadow: 0 0 6px #1b86ffaa;
}

/* Slide  */
.rewardSlide_contentItemLayout {
    width: fit-content;
    min-width: 120px;
    max-width: 100%;
    /* min-width: 130px; */
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* gap: 5px; */
}

.rewardSlide_contentItemLayout.xl {
    min-width: 230px;
}

.rewardSlide_contentItemTitle {
    width: 100%;
    height: 30px;
    min-height: 30px;
    background: #4b61ae;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 14px;
    font-weight: 800;
}

.slideNormal_layout {
    width: 100%;
    height: 350px;
    background: #e0e8ff;
    color: #000;

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

    border-top: 15px solid #a7b8f2;
    border-bottom: 15px solid #a7b8f2;
    box-shadow:
        inset 0px 3px 0px 0px #fff,
        inset 0px -3px 0px 0px #fff;
}

.slidePremium_layout {
    width: 100%;
    height: 350px;
    background: #b7ccff;
    color: #000;

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

    border-top: 15px solid #3c63be;
    border-bottom: 15px solid #3c63be;
    box-shadow:
        inset 0px 3px 0px 0px #edcd87,
        inset 0px -3px 0px 0px #edcd87;
}

.item_layoutContentMain {
    width: 230px;
    min-width: 230px;
    height: 100%;
    padding: 5px 10px;
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.item_layout {
    position: relative;
    width: 90px;
    height: 90px;
    min-height: 90px;
    padding: 10px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.item_layout.normal {
    border: 3px solid #ccc;
}

.item_layout.premium {
    border: 3px solid #edcd87;
}

.item_layout.sm {
    width: 55px;
    height: 55px;
    min-height: 55px;
    padding: 5px;
    border-radius: 5px;
}

.item_point {
    position: absolute;
    top: -5px;
    right: -6px;
    width: 17px;
    height: 17px;
    border-radius: 50px;
    background: #ed1c24;
    color: #fff;
    font-size: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.rewardSlide_item img,
.item_layoutObject img,
.item_layout img,
.rewardSlide_arrow img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tooltip-inner {
    font-size: 12px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 6px;
}

/* MODAL  */
.modal-content {
    position: relative;
    width: 1200px;
    padding: 10px;
    background: #000711;
    border: 3px solid #b7ccff;
    box-shadow: 0 0 12px #1680f899;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.rewardTableMainLayout {
    width: 100%;
    /* min-height: 400px; */
    padding: 10px;

    display: flex;
    flex-direction: column;
}

.rewardTable_title {
    width: 100%;
    min-height: 40px;
    min-height: 30px;
    border-radius: 10px 10px 0px 0px;
    border-bottom: 1px solid #a7b8f2;
    background: #4b61ae;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 18px;
    font-weight: 800;
}

.rewardTableContentMainLayout {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: stretch;
    gap: 2px;
}

.rewardTable_ImgMainLayout {
    width: 130px;
    min-width: 130px;
    /* height: 100%; */
    padding: 10px;

    background: #e0e8ff;
    border-top: 1px solid #a7b8f2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rewardTable_Img {
    width: 100px;
    padding: 10px;
    border: 3px solid #edcd87;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rewardTable_ContentLayout {
    width: 100%;
    padding: 10px;
    background: #e0e8ff;
    border-top: 1px solid #a7b8f2;

    color: #000;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
}

.rewardTable_ContentLayout_02 {
    width: 250px;
    min-width: 250px;
    background: #e0e8ff;
    border-top: 1px solid #a7b8f2;

    display: flex;
    align-items: stretch;
    /* gap: 2px; */
}

.modal-custom {
    max-width: 1290px;
    width: 95%;
}

.modal-content {
    width: 100%;
}

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

    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 3px solid #000;

    color: #000;
    font-size: 15px;
}

.rewardTableContentFooter {
    width: 100%;
    min-height: 45px;
    padding: 5px 5px;
    background: #e0e8ff;
    border: 3px solid #000;
    border-left: 0px solid transparent;
    border-radius: 0px 0px 10px 10px;

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

    color: #000;
    font-size: 15px;
}

.rewardTableContentFooter #footer_tittle {
    width: 130px;
    min-width: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#lv_1000 .slidePremium_layout {
    background: #86abfa;
}

.rewardSlideArrow_r {
    background: transparent;
    border: 1px solid transparent;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    position: absolute;
    left: 210px;
    z-index: 3;
}

.rewardSlideArrow_l {
    background: transparent;
    border: 1px solid transparent;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    position: absolute;
    right: 0;
    z-index: 3;
}

.rewardSlide_contentLayout {
    cursor: grab;
    scroll-behavior: smooth;
}

.rewardSlide_contentLayout.dragging {
    cursor: grabbing;
}

.modalSeasonImgLayout {
    width: 120px;
}