.boosterPackMainLayout.event {
    overflow: auto;
}

/* Varmundt's New Year : The Uncalculable Fate */
.eventVarmundtNewYearScrollMainLayout {
    position: relative;
    width: 100%;
    min-height: 100px;
    padding: 10px 20px;

    display: flex;
    flex-direction: column;
    overflow: auto;
}

.eventVarmundtNewYearScrollContentMainLayoyut {
    position: relative;
    /* width: 100%; */
    width: max-content;
    /* ความกว้างเท่าการ์ดทั้งหมดจริงๆ */
    min-width: 100%;
    margin-bottom: 30px;

    display: flex;
    align-items: stretch;
    gap: 30px;
}

.eventVarmundtNewYearScrollContentMainLayoyut::before {
    content: "";
    position: absolute;
    z-index: 1;
    top: 24px;
    /* กึ่งกลางวงกลมเลข (สูง 50px) - ครึ่งหนึ่งของเส้น */
    left: 200px;
    /* ครึ่งหนึ่งของ 400px */
    right: 200px;
    height: 2px;
    border-radius: 20px;
    background: #67B9FF;
}

.eventVarmundtNewYearScrollContent {
    position: relative;
    z-index: 2;
    width: 400px;
    min-width: 400px;

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

.evny_scrollCountMainLayout {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 50px;
    border: 1px solid #8cc7f8;
    padding: 3px;
    margin-bottom: 20px;

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

.evny_scrollCountLayout {
    width: 100%;
    height: 100%;
    border-radius: 50px;

    background: linear-gradient(0deg, #2b7fff 0%, #8cc7f8 100%);

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

    font-size: 22px;
    font-weight: 600;
}

.evny_scrollContentMainLayout {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 20px;

    background: linear-gradient(0deg, #1B0A53 0%, #7474E4 100%);

    display: flex;
    flex-direction: column;

}

.evny_scrollContentTitleLayout {
    width: 100%;
    height: 55px;
    padding: 5px 20px;
    border-radius: 20px 20px 0px 0px;

    display: flex;
    align-items: center;

    font-size: 20px;
    line-height: 20px;
    font-weight: 500;
    font-style: italic;

    background: linear-gradient(90deg, rgba(43, 127, 255, 1) 0%, rgba(140, 199, 248, 1) 50%, #7474e4 100%);
}

.evny_scrollContent {
    position: relative;
    width: 100%;
    height: 430px;
    padding: 20px;
    overflow: auto;

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

    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
}

.evny_scrollContentImg {
    width: 200px;
}

.evny_scrollContent_2 {
    position: relative;
    width: 100%;
    /* min-height: 200px; */
    border-radius: 10px;
    padding: 10px;

    background: rgb(255 255 255 / 20%);

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

.evny_scrollContentReward {
    position: relative;
    width: 100%;
    min-height: 170px;
    border-radius: 10px;

    background: #603FCF;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.evny_scrollContentReward #title {
    width: 100%;
    min-height: 65px;
    padding: 10px 10px;

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

.evny_scrollContentRewardItem {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 10px;
    background: #3C3B73;

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

.evny_scrollContentRewardTag {
    width: fit-content;
    min-height: 25px;
    border-radius: 50px;
    padding: 2px 10px;
    margin-bottom: 5px;

    background: #2D2960;

    font-size: 12px;
    line-height: 15px;
    font-weight: 500;

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

.evny_scrollContentRewardItemImg {
    position: relative;
    width: 100%;
    min-height: 50px;
    border-radius: 10px;
    padding: 5px;

    background: #fff;
    color: #000;

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

.evny_scrollContentRewardItemImg img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.evny_scrollContentRewardItemImg #titleItem {
    font-size: 14px;
    line-height: 15px;
    font-weight: 500;
    color: #0F172B;
}

.evny_scrollContentRewardItemImg #subTitle {
    font-size: 12px;
    line-height: 15px;
    font-weight: 500;
    color: #45556C;
}

.evny_scrollContent_3 {
    position: relative;
    width: 100%;
    /* min-height: 135px; */
    border-radius: 10px;
    padding: 10px;

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

    background: linear-gradient(rgb(255, 255, 255) 0%, rgb(219, 165, 245) 100%);
    color: #000;

    font-size: 14px;
}

.evny_scrollContentRewardImg {
    width: 100px;
    height: 100px;
}

.evny_scrollContentRewardImg_2 {
    width: 60px;
    height: 60px;
}

.evny_scrollContentRewardImg_3 {
    width: 45px;
    height: 45px;
}

.evny_scrollContentRewardImg_4 {
    width: 30px;
    min-width: 30px;
    height: 30px;
}

.evny_scrollContentRewardImg_5 {
    width: 50px;
    min-width: 50px;
    height: 50px;
}

.boosterPackTagBtnReward.event {
    font-size: 12px;
    min-width: 85px;
    min-height: 25px;
    padding: 2px 8px;
}

.evny_scrollContentNote {
    width: fit-content;
    min-height: 15px;
    padding: 5px 10px;
    border-radius: 50px;

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

    background: #FB2C36;
    color: #fff;

    font-size: 13px;
    line-height: 15px;
    font-weight: 500;
}

.evny_scrollContentMap {
    width: 100%;
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
}

.eventVarmundtNewYearScrollHr {
    position: absolute;
    top: 30px;
    left: 13%;
    z-index: 1;

    width: calc(100vw - 450px);
    height: 2px;
    border-radius: 20px;
    background: #67B9FF;
}

/* ยังยิงเยา (เลเวล 99 ขึ้นไป) */
.eventYoungYingYaDes {
    position: relative;
    width: 100%;
    border-radius: 30px;
    padding: 20px;

    background: #FCF4F2;
    color: #000;

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

    font-size: 16px;
}

.eventYoungYingYaDes #detail {
    width: 100%;
    max-width: 700px;
}

.newbieItemRewardFooter.event {
    min-height: 35px;
    padding: 2px 25px;
    font-size: 16px;
    line-height: 20px;
}

.evny_scrollContent_3.eventYoungYingYa {
    font-size: 16px;
}

.eventYoungYingYaReward {
    width: 30px;
}

.eventYoungYingYaRewardLayout {
    position: relative;
    width: 100%;
    min-height: 40px;
    border-radius: 50px;
    padding: 5px 15px;

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

    background: linear-gradient(-90deg, #DBA5F5 0%, #603FCF 100%);
    color: #fff;

    font-size: 16px;
}

.eventYoungYingYTableMainLayout {
    position: relative;
    width: 100%;
    min-height: 200px;
    border-radius: 20px;
    padding: 5px;

    background: #feea94;

    display: flex;
    flex-direction: column;
}

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

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

    font-size: 16px;
    font-weight: 600;

    color: #000;
}

.eventYoungYingYTableRowMainLayout {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 0px 0px 20px 20px;

    background: #fff;

    display: flex;
    align-items: stretch;
    overflow: auto;
}

.eventYoungYingYTableCol {
    position: relative;
    width: 100%;
    min-width: 550px;
    padding: 10px 15px;

    display: flex;
    flex-direction: column;
    color: #000;
}

.eventYoungYingYTableCol_2 {
    position: relative;
    width: 250px;
    min-width: 250px;
    padding: 10px 15px;

    display: flex;
    flex-direction: column;
    color: #000;
}

.eventYoungYingYTableCol_3 {
    position: relative;
    width: 150px;
    min-width: 150px;
    padding: 10px 15px;

    display: flex;
    flex-direction: column;
    color: #000;
}


.eventYoungYingYTableColTitle {
    position: relative;
    width: 100%;
    min-height: 45px;

    display: flex;
    align-items: center;

    font-size: 16px;
    font-weight: 600;
}

.eventYoungYingYTableColItemLayout {
    width: 100%;
    min-height: 70px;
    padding: 10px 0px;

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

    font-size: 14px;
}

/* GOAT Mark'27 */
.eventGoatmarkRewardLayout {
    position: relative;
    width: 170px;
    min-width: 170px;
    min-height: 50px;
    padding-right: 10px;

    display: flex;
    align-items: center;
}

.eventGoatmarkRewardItemLayout {
    position: relative;
    width: 100%;
    min-height: 50px;

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

.eventGoatmarkBuffDetail {
    width: 100%;
    min-height: 25px;
    padding: 5px 10px;
    border-radius: 5px;

    background: #CAFEFF;
    color: #000;

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

.eventGoatmarkItem {
    width: 100px;
    height: 100px;
}

/* varmundt's Depth challenge< */
.eventVarmundtDepthMapMainLayout {
    position: relative;
    width: 100%;
    min-height: 250px;
    border-radius: 20px;
    overflow: hidden;

    border: 1px solid #fff;
    background: linear-gradient(0deg, #DBA5F5 0%, #fff 100%);
}

.eventVarmundtDepthMapHeaderLayout {
    position: relative;
    width: 100%;
    min-height: 100px;
    padding: 20px;

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

    font-size: 16px;
    font-family: 500;
    color: #000;
}

.eventVarmundtDepthMapHeaderLayout #title {
    font-size: 18px;
    line-height: 22px;
    font-weight: 600;
}

.eventVarmundtDepthMapHeaderImg {
    width: 280px;
    height: 280px;
    margin: 15px 0px;
    border-radius: 20px;
    overflow: hidden;
}

.eventVarmundtDepthMapFooterLayout {
    position: relative;
    width: 100%;

    background: #3C3B73;
}

.eventVarmundtDepthMapFooterTitle {
    width: 100%;
    min-height: 40px;
    padding: 10px 20px;

    background: #603FCF;
    color: #fff;

    font-size: 16px;
    font-weight: 600;

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

.evdm_footerContentLayout {
    position: relative;
    width: 100%;
    height: 200px;
    padding: 20px;
    overflow: auto;

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

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

.evdm_monsterMainLayout {
    position: relative;
    width: 100%;
    min-height: 100px;
    border-radius: 20px;
    overflow: hidden;

    background: #fff;
}

.evdm_monsterTitleMainLayout {
    position: relative;
    width: 100%;
    min-height: 60px;
    padding: 5px 10px;

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

    font-size: 18px;
    line-height: 20px;
    font-weight: 600;

    color: #000;
    background: #FEEA94;
}

.evdm_monsterTitleItem {
    width: fit-content;
    min-height: 40px;
    padding: 5px 10px;
    border-radius: 50px;

    background: #fff;

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

.evdm_monsterTitleItem img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.evdm_monsterContentMainLayout {
    position: relative;
    width: 100%;
    min-height: 100px;
    padding: 15px;
    color: #000;

    display: flex;
    flex-direction: column;
}

.evdm_monsterContentLayout {
    position: relative;
    width: 100%;
    min-width: 250px;
    min-height: 100px;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    align-items: start;
    gap: 10px;
    color: #fff;
}

.evdm_monsterContentLayout.primary {
    background: linear-gradient(0deg, #603FCF 0%, #DC6AE3 100%);
}

.evdm_monsterContentLayout.secondary {
    background: linear-gradient(0deg, #2B7FFF 0%, #8CC7F8 100%);
}

.evdm_monsterItemLayout {
    width: 120px;
    min-width: 120px;
    min-height: 100px;

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

.evdm_monsterItem {
    width: 100;
}

.boosterPackModalTableColumns.event {
    padding: 30px;
    flex-direction: row;
    align-items: start;
    gap: 10px;

    color: #000;
    font-size: 14px;
    line-height: 18px;
}

.eventModalItem {
    width: 150px;
    min-width: 150px;
}

.eventModalItem_2 {
    width: 90px;
    min-width: 90px;
}

.eventModalItem_4 {
    width: 70px;
    min-width: 70px;
}

/* Quests level 140  > Modal */
.questsLvModalMainLayouyt {
    position: relative;
    width: 100%;
    min-height: 100px;
    border-radius: 20px;
    padding: 20px;

    background: #fff;
    color: #000;

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

.questsLvModalTitle {
    font-size: 22px;
    line-height: 25px;
    font-weight: 600;
}

.quest-table-wrap {
    margin: 24px auto;
    border: 1px solid #e6c8f5;
    border-radius: 16px;
    overflow: hidden;
    overflow-x: auto;
    background: #fff;
}

.quest-table {
    width: 100%;
    white-space: nowrap;
    border-collapse: collapse;
    color: #2b2233;
    font-size: 15px;
    text-align: center;
}

.questsLvModalTitleNote {
    width: fit-content;
    min-height: 20px;
    padding: 5px 15px;
    border-radius: 50px;

    color: #0A0032;
    background: #FEEA94;

    font-weight: 500;
    font-size: 15px;
}

.quest-table th,
.quest-table td {
    padding: 10px 10px;
    border: 1px solid #ecd3f7;
}

/* ตัดเส้นขอบนอกสุดออก ให้ใช้ขอบของ wrapper แทน */
.quest-table tr>*:first-child {
    border-left: 0;
}

.quest-table tr>*:last-child {
    border-right: 0;
}

.quest-table tbody tr:last-child>* {
    border-bottom: 0;
}

/* ---------- Header ---------- */
.quest-table thead th {
    background: #d9a8f8;
    border: 0;
    font-weight: 700;
    color: #2b2233;
    padding: 10px 12px;
}

.quest-table thead .reward-title {
    padding-bottom: 8px;
}

.quest-table thead .sub-row th {
    padding: 8px 14px;
}

.pill {
    display: block;
    background: #ffe98f;
    color: #2b2233;
    border-radius: 8px;
    padding: 5px 6px;
    font-size: 15px;
    font-weight: 700;
}

/* ---------- Body ---------- */
.quest-table tbody td.group {
    width: 16%;
    font-weight: 500;
}

.quest-table tbody td.name {
    text-align: left;
    padding-left: 14px;
}

.quest-table .col-map {
    width: 11%;
}

.quest-table .col-count {
    width: 9%;
}

.quest-table .col-exp,
.quest-table .col-jop {
    width: 11%;
}

.quest-table .col-des {
    width: 220px;
    min-width: 220px;
}

.quest-table .col-des {
    width: 220px;
    min-width: 220px;
}

.quest-table .col-des_2 {
    width: 110px;
    min-width: 110px;
}

.quest-table.varmundtsDepthChallenge {
    white-space: normal;
}

/* ===== Drag to scroll (PC) — เอาไปต่อท้าย event.css ===== */
@media (hover: hover) and (pointer: fine) {
    .eventVarmundtNewYearScrollMainLayout.is-draggable {
        cursor: grab;
    }

    .eventVarmundtNewYearScrollMainLayout.is-dragging {
        cursor: grabbing;
        user-select: none;
        -webkit-user-select: none;
    }

    /* ระหว่างลาก ไม่ให้ hover/คลิกของลูกๆ ทำงาน */
    .eventVarmundtNewYearScrollMainLayout.is-dragging * {
        pointer-events: none;
    }

    /* กันรูปถูกลากเป็นภาพผี */
    .eventVarmundtNewYearScrollMainLayout img {
        -webkit-user-drag: none;
        user-select: none;
    }
}