* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
html, body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
}
html {
    min-height: 100vh;
    background-image: url("../images/bg_2.jpg");
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
}
body {
    background-color: transparent !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    width: 100%;
}

header {
    text-align: center;
    margin-bottom: 25px;
    padding: 15px;
    width: 100%;
    max-width: 600px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    /* text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); */
}

.subtitle {
    font-size: 1.2rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.logo {
    width: 170px;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.topic > h1 {
    text-align: center;
    color: #ffffff;
    font-size: 50px;
    font-weight: bold;
    margin-bottom: 7%;
}

.footer {
    text-align: center;
    margin-top: 5%;
    padding-top: 5%;
    padding-bottom: 1%;
    margin-left: auto;
    margin-right: auto;
    width: 40%;
}
.footer > img {
    width: 100%;
}

.game-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 15px;
}

.info-box {
    background: rgba(255, 255, 255, 0.15);
    padding: 12px 20px;
    border-radius: 10px;
    min-width: 120px;
    font-weight: bold;
    backdrop-filter: blur(5px);
}

.info-box span {
    font-size: 1.8rem;
    display: block;
    color: #ffeb3b;
}

#game-container {
    padding: 40px;
    width: 100%;
    /* max-width: 600px; */
    max-width: 650px;
    margin-top: 2.5%;
}


.game-board {
    display: grid;
    /* grid-template-columns: repeat(2, 1fr); */
    grid-template-columns: repeat(3, 1fr);
    /* gap: 20px; */
    gap: 20px 40px;
    margin: 0 auto;
    perspective: 1000px;
}

.asus-card {
    height: 180px;
    border-radius: 10px;
    position: relative;
    transform-style: preserve-3d;
    cursor: pointer;
    transition: transform 0.6s;
    /* box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); */
}

.asus-card.flipped {
    transform: rotateY(180deg);
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* overflow: hidden; */
}

.card-front {
    /* background: linear-gradient(45deg, #2196F3, #21CBF3); */
    transform: rotateY(180deg);
}

.card-front img {
    /* width: 90%;
    height: 90%; */
    object-fit: cover;
    border-radius: 25px;
    /* text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    width: 100%;
}

.card-back {
    /* background: linear-gradient(45deg, #FF5722, #FF9800); */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    font-weight: bold;
    /* text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); */
}

.card-back img {
    /* text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); */
    border-radius: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    width: 100%;
}

.asus-card.matched .card-front {
    /* box-shadow: inset 0 0 0 4px #4CAF50, 0 0 20px #4CAF50; */
}

.controls {
    display: flex;
    justify-content: center;
    margin-top: 25px;
    gap: 15px;
}

button {
    background: linear-gradient(to right, #FF5722, #E91E63);
    border: none;
    color: white;
    padding: 12px 25px;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

button:active {
    transform: translateY(1px);
}

.instructions {
    background: rgba(255, 255, 255, 0.15);
    margin-top: 30px;
    padding: 20px;
    border-radius: 15px;
    max-width: 600px;
    text-align: center;
}

.instructions h2 {
    margin-bottom: 15px;
    color: #ffeb3b;
}

.instructions p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.lLight-border {
    display: none;
    width: 100%;
}

/* 開頭網頁頭 */
#start-container {
    max-width: 800px;
    margin-top: 2.5%;
    width: 100%;
    background-image: url("../images/bg-m-w2-1.png"),url("../images/bg-m-w2-2.png"),url("../images/bg-m-w2-3.png"),url("../images/bg-m-w2-4.png"),url("../images/bg-m-w2-5.png");
    background-position: left 12%,right 38%,left bottom,92% bottom,92% top;
    background-repeat: no-repeat;
}

.start-logo {
    width: 100%;
    text-align: center;
    justify-content: center;
}

.start-logo img {
    width: 162px;
    text-align: center;
    justify-content: center;
}

.start-title {
    display: flex;
    justify-content: center;
    margin-top:3%;
}

.start-title img {
    text-align: center;
    width: 469px;
    justify-content: center;
}

.start-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top:3%;
}

.start-text p {
    text-align: center;
    color: #ffffff;
    font-size: 20px;
    font-weight: bold;
}

.start-prize {
    display: flex;
    justify-content: center;
    margin-bottom:3%;
}

.start-prize img {
    width: 469px;
    text-align: center;
    justify-content: center;
}

.round-btn_1 {
    background: #FCDF00;
    width: 150px;
    height: 150px;
    font-size: 41px;
    line-height:50px;
    font-weight: bold;
    color: #4A2700;
    border-radius: 100%;
    border: 0px;
}
.round-btn_1:hover {
    background: #fc5000;
    color: #ffffff;
}
.hold-up {
    width: 100%;
    height: auto;
}
/* 開頭網頁尾 */
/* 挑戰成功網頁頭 */
.challenge-success-logo {
    display: block;
    width: 7%;
    position: absolute;
    top: 1.8%;
    left: 5%;
}
.challenge-success-logo > a > img {
    width: 100%;
}
#challenge-success-container {
    max-width: 800px;
    margin-top: 7.5%;
    margin-bottom: 4%;
    width: 100%;
    background-image: url("../images/bg-m-w2-1.png"),url("../images/bg-m-w2-2.png"),url("../images/bg-m-w2-3.png"),url("../images/bg-m-w2-4.png"),url("../images/bg-m-w2-5.png");
    background-position: left 12%,right 38%,left bottom,92% bottom,92% top;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    flex-direction: column;
}
.challenge-success-prize {
    display: flex;
    justify-content: center;
    margin-top: 3%;
    /* margin-bottom:3%; */
}
.challenge-success-prize img {
    width: 469px;
    text-align: center;
    justify-content: center;
}
.arrow {
    width: 24px;
}
.card-button-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 10%;
}
.card-button-1 {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0;
}
.function-introduction-img {
    width: 166px;
    text-align: center;
    opacity: 1;
}
.function-introduction-img:hover {
    opacity: 0.8;
}
.start-text h1 {
    text-align: center;
    color: #FCDF00;
    font-size: 40px;
    font-weight: bold;
}
.footer_pc {
    display: block;
}
.footer_m {
    display: none;
}
.footer > .footer_pc > img,.footer > .footer_m > img {
    width: 100%;
}
.hold-up-2 {
    width: 100%;
    height: auto;
}
/* 挑戰成功網頁尾 */
/* 功能介紹頁頭 */
#function-introduction-container {
    max-width: 800px;
    margin-top: 2.5%;
    margin-bottom: 0%;
    width: 100%;
    background-image: url("../images/bg-m-w2-1.png"),url("../images/bg-m-w2-2.png"),url("../images/bg-m-w2-3.png"),url("../images/bg-m-w2-4.png");
    background-position: left 12%,right 38%,left bottom,92% bottom;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: auto;
}
.card-prize {
    display: flex;
    justify-content: center;
    margin-top: 8%;
    margin-bottom:1%;
}
.function-introduction-img-2 {
    width: 166px;
    text-align: center;
    opacity: 1;
}
.function-introduction-title {
    display: flex;
    justify-content: center;
    margin-top:1%;
}
.function-introduction-title h1 {
    text-align: center;
    color: #FCDF00;
    font-size: 25px;
    font-weight: bold;
}
.function-introduction-text {
    display: flex;
    flex-direction: column;
    margin-left: auto;
    margin-right: auto;
    width: 75%;
    background-color: rgba(255, 255, 255, 86%);
    padding: 3%;
    border-radius: 30px;
    border: 2px solid #FCDF00;
    margin-top: 2%;
    margin-bottom: 2%;
}
.function-introduction-text p {
    color: #3E3E3E;
    font-size: 20px;
    font-weight: bold;
    /* text-align: justify; */
}
.function-introduction-red {
    color: #C71010 !important;
}
.good-gift {
    display: flex;
    flex-direction: row;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
    align-items: center;
    width: 100%;
}
.good-gift p {
    color: #ffffff;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 0.5%;
}
.line-point {
    width: 72px;
    margin-right: 1%;
}
.good-gift-text {
    display: flex;
    flex-direction: column;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
    align-items: center;
    margin-bottom: 3%;
}
.good-gift-text p {
    color: #ffffff;
    font-size: 23px;
    font-weight: bold;
    text-align: center;
}
.lottery-button {
    background: #FC0000 !important;
    border-radius: 30px;
    color: #ffffff !important;
    box-shadow: none;
    font-size: 20px;
}
.lottery-button:hover {
    background: #FCDF00 !important;
    color: #4A2700 !important;
    box-shadow: none;
}
.previous {
    position: absolute;
    top: 3%;
    right: 0%;
    z-index: 2;
}
.round-btn_2 {
    background: #FCDF00;
    width: 96px;
    height: 96px;
    font-size: 20px;
    line-height:25px;
    font-weight: 600;
    color: #4A2700;
    border-radius: 100%;
    border: 0px;
    padding: 0 !important;
    box-shadow: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    text-decoration: none;
}
.round-btn_2:hover {
    background: #fc5000;
    color: #ffffff;
    box-shadow: none;
}
/* 功能介紹頁尾 */

@media (max-width: 1600px) {
    html {
        background-image: url("../images/bg-2-1366.jpg");
    }
    .start-logo img {
        width: 122px;
    }
    .start-title {
        margin-top: 1%;
    }
    .start-title img {
        width: 369px;
    }
    .start-text {
        margin-top: 1%;
    }
    .start-text p {
        /* margin-bottom: 0; */
    }
    .start-prize {
        margin-bottom: 0%;
    }
    .start-prize img {
        width: 369px;
    }
    .round-btn_1 {
        width: 120px;
        height: 120px;
        font-size: 30px;
        line-height: 35px;
    }
    #challenge-success-container {
        margin-top: 2.5%;
    }
    #game-container {
        margin-top: 0%;
    }
    .topic > h1 {
        font-size: 40px;
        margin-bottom: 3%;
    }
    .challenge-success-prize img {
        width: 369px;
    }
    .start-text h1 {
        font-size: 35px;
    }
    .function-introduction-img {
        width: 120px;
    }
    /* 功能介紹頁頭 */
    #function-introduction-container {
        max-width: 800px;
        margin-top: 2.5%;
        margin-bottom: 0%;
        min-height: auto;
    }
    .card-prize {
        margin-top: 0%;
        margin-bottom:1%;
    }
    .function-introduction-img-2 {
        width: 110px;
    }
    .function-introduction-title {
        margin-top:1%;
    }
    .function-introduction-title h1 {
        font-size: 25px;
    }
    .function-introduction-text {
        display: flex;
        flex-direction: column;
        margin-left: auto;
        margin-right: auto;
        width: 75%;
        background-color: rgba(255, 255, 255, 86%);
        padding: 2%;
        border-radius: 30px;
        border: 2px solid #FCDF00;
        margin-top: 1%;
        margin-bottom: 1%;
    }
    .function-introduction-text p {
        color: #3E3E3E;
        font-size: 16px;
        font-weight: bold;
    }
    .function-introduction-red {
        color: #C71010 !important;
    }
    .good-gift {
        display: flex;
        flex-direction: row;
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    .good-gift p {
        color: #ffffff;
        font-size: 28px;
        font-weight: bold;
        margin-bottom: 0.5%;
    }
    .line-point {
        width: 72px;
        margin-right: 1%;
    }
    .good-gift-text {
        display: flex;
        flex-direction: column;
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
        align-items: center;
        margin-bottom: 3%;
    }
    .good-gift-text p {
        color: #ffffff;
        font-size: 18px;
        font-weight: bold;
        text-align: center;
    }
    .lottery-button {
        background: #FC0000 !important;
        border-radius: 30px;
        color: #ffffff !important;
        box-shadow: none;
        font-size: 16px;
    }
    .lottery-button:hover {
        background: #FCDF00 !important;
        color: #4A2700 !important;
        box-shadow: none;
    }
    .previous {
        position: absolute;
        top: -2%;
        right: 8%;
        z-index: 2;
    }
    .round-btn_2 {
        background: #FCDF00;
        width: 96px;
        height: 96px;
        font-size: 20px;
        line-height:25px;
        font-weight: 600;
        color: #4A2700;
        border-radius: 100%;
        border: 0px;
        padding: 0 !important;
        box-shadow: none;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        text-decoration: none;
    }
    .round-btn_2:hover {
        background: #fc5000;
        color: #ffffff;
        box-shadow: none;
    }
    /* 功能介紹頁尾 */
}

/* iPad Pro 12.9-inch Portrait (直向) */
@media only screen 
  and (min-device-width: 1024px) 
  and (max-device-width: 1024px) 
  and (orientation: portrait) {
    html {
        background-image: url("../images/bg_m.jpg");
        height: 100%;
        min-height: 100vh;
    }
    body {
        position: relative;
    }
    #game-container {
        max-width: 650px;
    }
    .footer {
        text-align: center;
        margin-top: 0%;
        padding-top: 0%;
        margin-left: auto;
        margin-right: auto;
        width: 90%;
        position: absolute;
        bottom: 8%;
        left: 5%;
    }

    /* 開頭網頁頭 */
    .bg-circle {

    }
    .bg-circle::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url("../images/bg-ipad.png");
        background-size: cover;
        background-position: top;
        background-repeat: no-repeat;
        z-index: -1;
    }
    #start-container {
        max-width: 100%;
        margin-top: 18%;
        margin-bottom: 10%;
        position: relative;
        z-index: 1;
    }

    .start-logo img {
        width: 262px;
        text-align: center;
        justify-content: center;
    }

    .start-title {
        margin-top: 5%;
    }

    .start-title img {
        width: 469px;
    }

    .start-text {
        margin-top: 1%;
    }

    .start-text p {
        font-size: 20px;
        margin-bottom: 1rem;
    }

    .start-title img {
        text-align: center;
        width: 60%;
        justify-content: center;
    }

    .start-prize {
        margin-bottom: 0%;
    }
    .start-prize img {
        width: 60%;
        text-align: center;
        justify-content: center;
    }
    .hold-up {
        width: 100%;
        height: 100px;
    }
    /* 開頭網頁尾 */
    /* 挑戰成功網頁頭 */
    .challenge-success-logo {
        display: block;
        width: 15%;
    }
    #challenge-success-container {
        max-width: 100%;
        margin-top: 0%;
        margin-bottom: 10%;
        position: relative;
        z-index: 1;
    }
    .card-button-container {
        width: 70%;
        display: flex;
    }
    .challenge-success-prize img {
        width: 469px;
    }
    .card-button-1 {
        margin-bottom: 0;
    }
    .function-introduction-img {
        width: 166px;
    }
    .footer_pc {
        display: none;
    }
    .footer_m {
        display: block;
    }
    .hold-up-2 {
        width: 100%;
        height: 50px;
    }
    /* 挑戰成功網頁尾 */
    /* 功能介紹頁頭 */
    #function-introduction-container {
        max-width: 100%;
        margin-top: 0%;
        margin-bottom: 5%;
        position: relative;
        z-index: 1;
    }
    .previous {
        position: absolute;
        top: -19%;
        right: 3%;
    }
    .card-prize {
        margin-top: 0%;
        margin-bottom: 1%;
    }
    .function-introduction-title {
        margin-top: 1%;
    }
    .function-introduction-img-2 {
        width: 166px;
    }
    .function-introduction-text p {
        font-size: 20px;
    }
    .good-gift-text p {
        font-size: 23px;
    }
    .lottery-button {
        font-size: 20px;
    }
    /* 功能介紹頁尾 */
}


/* iPad Pro 12.9-inch Portrait (橫向) */
@media screen and (min-width: 1366px) and (max-width: 1366px) and (orientation: landscape) {

}

/* ✅ iPad Air Portrait (768px ~ 820px) */
@media screen and (min-width: 768px) and (max-width: 820px) and (orientation: portrait) {
    html {
        background-image: url("../images/bg_m.jpg");
        height: 100%;
        min-height: 100vh;
    }
    body {
        position: relative;
    }
    #game-container {
        max-width: 90%;
    }
    .footer {
        text-align: center;
        margin-top: 0%;
        padding-top: 0%;
        margin-left: auto;
        margin-right: auto;
        width: 90%;
        position: absolute;
        bottom: 5%;
        left: 5%;
    }
    
    /* 開頭網頁頭 */
    .bg-circle {

    }
    .bg-circle::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url("../images/bg-ipad.png");
        background-size: cover;
        background-position: top;
        background-repeat: no-repeat;
        z-index: -1;
    }
    #start-container {
        max-width: 100%;
        margin-top: 18%;
        margin-bottom: 10%;
        position: relative;
        z-index: 1;
    }

    .start-logo img {
        width: 182px;
        text-align: center;
        justify-content: center;
    }

    .start-title {
        margin-top: 3%;
    }

    .start-text {
        margin-top: 3%;
    }

    .start-text p {
        font-size: 20px;
    }

    .start-title img {
        text-align: center;
        width: 60%;
        justify-content: center;
    }

    .start-prize {
        margin-bottom: 0%;
    }
    .start-prize img {
        width: 60%;
        text-align: center;
        justify-content: center;
    }
    .hold-up {
        width: 100%;
        height: 50px;
    }
    /* 開頭網頁尾 */
    /* 挑戰成功網頁頭 */
    .challenge-success-logo {
        display: block;
        width: 15%;
    }
    #challenge-success-container {
        max-width: 100%;
        margin-top: 5%;
        margin-bottom: 13%;
        position: relative;
        z-index: 1;
    }
    .card-button-container {
        width: 65%;
        display: flex;
    }
    .card-button-1 {
        margin-bottom: 5%;
    }
    .function-introduction-img {
        width: 166px;
    }
    .footer_pc {
        display: none;
    }
    .footer_m {
        display: block;
    }
    .hold-up-2 {
        width: 100%;
        height: 50px;
    }
    /* 挑戰成功網頁尾 */
    /* 功能介紹頁頭 */
    #function-introduction-container {
        max-width: 100%;
        margin-top: 5%;
        margin-bottom: 13%;
        position: relative;
        z-index: 1;
    }
    .previous {
        position: absolute;
        top: -3%;
        right: 3%;
    }
    .card-prize {
        margin-top: 0%;
        margin-bottom: 1%;
    }
    .function-introduction-title {
        margin-top: 1%;
    }
    /* 功能介紹頁尾 */
}

@media (max-width: 600px) {
    .lLight-border, #game-container, .footer { 
        min-width: 0; 
    }
    html {
        background-image: url("../images/bg_m.jpg");
        height: 100%;
        min-height: 90vh;
    }
    body {
        position: relative;
    }
    .lLight-border {
        display: flex;
        width: 100%;
    }
    .lLight-border img {
        width: 100%;
    }
    #game-container {
        max-width: 100%;
        padding: 0 40px;
    }
    .footer {
        text-align: center;
        margin-top: 5%;
        padding-top: 5%;
        margin-left: auto;
        margin-right: auto;
        width: 90%;
        position: absolute;
        bottom: 2%;
        left: 5%;
    }
    .card-back img {
        border-radius: 15px;
    }
    .card-front img {
        border-radius: 15px;
    }
    .game-board {
        gap: 0px 15px;
    }

    h1 {
        font-size: 2.2rem;
    }

    .info-box {
        padding: 8px 15px;
        min-width: 100px;
    }

    .info-box span {
        font-size: 1.5rem;
    }

    .asus-card {
        height: 110px;
    }

    .topic > h1 {
        text-align: center;
        color: #ffffff;
        font-size: 35px;
        font-weight: bold;
        margin-bottom: 7%;
    }

    /* 開頭網頁頭 */
    .bg-circle {

    }
    .bg-circle::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url("../images/bg_m_w.png");
        background-size: cover;
        background-position: top;
        background-repeat: no-repeat;
        z-index: -1;
    }

    #start-container {
        max-width: 100%;
        margin-top: 18%;
        margin-bottom: 10%;
        position: relative;
        z-index: 1;
        background-image: none;
    }

    .start-logo img {
        width: 162px;
        text-align: center;
        justify-content: center;
    }

    .start-title {
        margin-top: 5%;
    }

    .start-text {
        margin-top: 5%;
    }

    .start-text p {
        font-size: 16px;
    }

    .start-title img {
        text-align: center;
        width: 80%;
        justify-content: center;
    }

    .start-prize {
        margin-bottom: 0%;
    }
    .start-prize img {
        width: 80%;
        text-align: center;
        justify-content: center;
    }
    .hold-up {
        width: 100%;
        height: 100px;
    }
    /* 開頭網頁尾 */
    /* 挑戰成功網頁頭 */
    .challenge-success-logo {
        display: block;
        width: 20%;
    }
    #challenge-success-container {
        max-width: 100%;
        margin-top: 13%;
        margin-bottom: 10%;
        position: relative;
        z-index: 1;
        background-image: none;
    }
    .card-button-container {
        width: 70%;
        display: flex;
    }
    .challenge-success-prize {
        display: flex;
        justify-content: center;
        margin-top: 0%;
        /* margin-bottom:3%; */
    }
    .challenge-success-prize img {
        width: 80%;
    }
    .card-button-1 {
        margin-bottom: 5%;
    }
    .function-introduction-img {
        width: 120px;
    }
    .footer_pc {
        display: none;
    }
    .footer_m {
        display: block;
    }
    .hold-up-2 {
        width: 100%;
        height: 100px;
    }
    /* 挑戰成功網頁尾 */
    /* 功能介紹頁頭 */
    #function-introduction-container {
        max-width: 100%;
        margin-top: 10%;
        margin-bottom: 10%;
        position: relative;
        z-index: 1;
        background-image: none;
        justify-content: center;
        min-height: 85vh;
    }
    .card-prize {
        margin-top: 0%;
        margin-bottom:1%;
    }
    .function-introduction-img-2 {
        width: 120px;
        text-align: center;
        opacity: 1;
    }
    .function-introduction-title {
        margin-top: 1%;
    }
    .function-introduction-title h1 {
        font-size: 25px;
        margin-bottom: 0;
    }
    .function-introduction-text {
        width: 90%;
        padding: 3%;
        border-radius: 30px;
        margin-top: 3%;
        margin-bottom: 3%;
    }
    .function-introduction-text p {
        font-size: 16px;
    }
    .good-gift-text p {
        color: #ffffff;
        font-size: 16px;
        font-weight: bold;
        margin-bottom: 2%;
    }
    .previous {
        position: absolute;
        top: -3%;
        right: 3%;
    }
    .round-btn_2 {
        width: 66px;
        height: 66px;
        font-size: 16px;
        line-height:20px;
    }
    /* 功能介紹頁尾 */
}

.win-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s;
}

.win-message.show {
    opacity: 1;
    pointer-events: all;
}

.win-content {
    /* background: linear-gradient(135deg, #4A00E0, #8E2DE2); */
    background-image: url("../images/bg.jpg");
    background-size: cover;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 90%;
    width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.win-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #FFD700;
}

.win-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: #ffffff;
}

.win-content button {
    background: linear-gradient(to right, #00b09b, #96c93d);
    padding: 15px 40px;
    font-size: 1.3rem;
}
.win-content button:hover {
    background: linear-gradient(to right, #0095c2, #77cdff);
    padding: 15px 40px;
    font-size: 1.3rem;
    color: #ffffff;
}

.preview-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.preview-countdown {
    font-size: 10rem;
    font-weight: bold;
    color: #FFD700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.preview-message {
    font-size: 2rem;
    margin-top: 10px;
    text-align: center;
    color: white;
    max-width: 80%;
}