.popup-mask {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .75);
    opacity: 0;
    z-index: 99999;
    pointer-events: none;
    transition: opacity .5s ease;
}

.popup-mask.active {
    opacity: 1;
    pointer-events: all;
}

.popup-mask.active .event-popup {
    opacity: 1;
    transform: translate(-50%, -50%);
}

/* .popup-mask-demo1,
.popup-mask-demo2 {
    position: static;
    min-height: 100vh;
} */

.popup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 550px;
    width: 95%;
    margin: 0 auto;

    display: flex;
    flex-direction: column;
    align-items: center;

    background: url('../images/popup/popup-confirm-bg.jpg') center center no-repeat;
    background-size: 100% 100%;
}

/* 關閉按鈕 */

.popup-close {
    position: absolute;
    top: 12px;
    right: 12px;

    width: 22px;
    height: 22px;

    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.popup-close img {
    display: block;
    width: 100%;
}

/* 文字 */

.popup-content {
    margin-top: 96px;
    padding: 0 20px;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    color: #555;
}

/* 按鈕 */

.popup-btn {
    position: absolute;
    left: 50%;
    bottom: 12%;
    transform: translateX(-50%);
}

.popup-btn img {
    display: block;
    max-width: 149px;
    height: auto;
}


/* @media (max-width: 480px) {

.popup-content {
    font-size: 22px;
    line-height: 1.2;
}

} */



/* ==========================================
    活動彈窗
========================================== */

.event-popup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    max-width: 550px;
    width: 90%;
    margin: 0 auto;
    background:
        url("../images/popup/popup-event-bg.jpg") center top no-repeat;
    background-size: 100% 100%;
    font-family: "Microsoft JhengHei", "微軟正黑體", sans-serif;
    font-weight: bold;
    border-radius: 5px;
    opacity: 0;
    transition: .5s ease;
}

/* 關閉 */

.event-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    z-index: 20;
}

.event-popup-close img {
    display: block;
    width: 100%;
}

/* 標題 */

.event-popup-title {
    position:absolute;
    left:0;
    top:0;
    width:65%;
    max-width:892px;
    transform:translate(-2%,-50%);
    z-index:10;
}

.event-popup-title img {
    display: block;
    width: 100%;
}

/* Scroll區 */

.event-popup-scroll {
    overflow-y: auto;
    margin: 50px 5% 0 5%;
    padding: 0px 6px;
    height: 477px;
}


/* Banner */

.event-popup-banner {
    width: 100%;
    margin: 0 auto 25px;
    box-shadow: 4px 4px 9px rgba(0, 0, 0, 0.35);
}

.event-popup-banner img {
    width: 100%;
    border-radius: 5px;
}

/* 文案 */

.event-popup-content {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 25px;
    word-break: break-word;
}

.event-popup-content h3 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.4;
}

.event-popup-content p {
    margin-bottom: 18px;
}

.item-text {
    color: #c62828;
    font-weight: 700;
}

/* 獎勵 */

.event-popup-reward {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.reward-label {
    flex-shrink: 0;
    font-size: 18px;
    color: #333;
}

.reward-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* 虛寶示意色塊 */

.reward-list li {
    width: 62px;
    height: 62px;
    list-style: none;
    flex-shrink: 0;
}

.reward-list img {
    display: block;
    width: 100%;
    height: auto;
}

/* 備註 */

.event-popup-note {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

/* 按鈕 */

.event-popup-btn-wrap {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px 0 ;
}

.event-popup-btn {
    display: inline-block;
    transition: .1s ease;
}

.event-popup-btn:hover {
    filter: brightness(1.15);
}

.event-popup-btn img {
    display: block;
    max-width: 160px;
    height: auto;
}

/* Scroll Bar */

.event-popup-scroll::-webkit-scrollbar {
    width: 8px;
}

.event-popup-scroll::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, .05);
}

.event-popup-scroll::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, .25);

    border-radius: 20px;
}

/* ==========================================
   手機
========================================== */

@media (max-width:768px) {

    .event-popup-title{
        width: 75%;
    }

    .event-popup-content {
        font-size: 16px;
    }

    .event-popup-reward {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width:500px) {
    .event-popup-title {
    width: 100%;
}
}

@media (max-width:425px) {
    .event-popup-title {
        transform:translate(-2%,-50%);
    }

/* 
    .event-popup-scroll {
        margin: 50px 15px 50px 10px;
        padding: 0px 10px;
    } */

    .event-popup-content {
        font-size: 16px;
    }
}

@media (max-width:375px) {
    .event-popup-title {
        transform:translate(-2%,-45%);
    }
}