body,
html {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    font-size: 16px;
    font-family: '微軟正黑體', 'Trebuchet MS', 'Lucida Sans Unicode';
}

body {
    position: relative;
    background: url(../../images/molly/2025-xmas/bg.jpg?1)top center no-repeat;
    background-size: cover;
    display: flex;
    justify-content: center;
}

.clear {
    clear: both;
    display: block;
}

.topTitle {
    margin: 3rem 0 1.5rem 0;
}

.topTitle p {
    font-family: monospace;
    font-weight: bold;
    text-align: center;
    font-size: 1.25rem;
    color: #19af72;
    margin: 0 0 .25rem 0;
    padding: 0;
}

.topTitle .logo {
    display: block;
    width: 120px;
    margin: 0 auto .5rem auto;
}

.topTitle img.tit01,
.topTitle img.tit02 {
    display: block;
    margin: 0 auto;
    width: 320px;
    max-width: 100%;
}

img.tit01 {
    -webkit-animation: brightness 2s -0.14s infinite;
    animation: brightness 2s -0.14s infinite;
}

img.tit02 {
    -webkit-animation: brightness 2.5s -0.18s infinite;
    animation: brightness 2.5s -0.18s infinite;
}

.items {
    position: relative;
    top: 0rem;
    left: 50%;
    transform: translateX(-50%);
    width: 1200px;
    height: 600px;
    margin: 0 auto;
    z-index: 9;
    pointer-events: none;
}

.items img.img_left {
    position: absolute;
    top: 24rem;
    left: -2%;
    max-width: 36rem;
}

.items img.img_right {
    position: absolute;
    right: -8rem;
    top: 18rem;
    max-width: 36rem;
    z-index: 99999;
}

.items .img_gift {
    position: absolute;
    right: 2rem;
    top: 16rem;
    -webkit-animation: UpDown 3.5s infinite;
    animation: UpDown 3.5s infinite;
    z-index: 9999;
}

.items .img_dice {
    position: absolute;
    left: 2rem;
    top: 30rem;
    -webkit-animation: leftRightS 2s infinite;
    animation: leftRightS 2s infinite;
}

@-webkit-keyframes UpDown {
    0% {
        -webkit-transform: translateY(0);
        transform: translateY(0)
    }
    50% {
        -webkit-transform: translateY(-10px);
        transform: translateY(-10px)
    }
    to {
        -webkit-transform: translateY(0);
        transform: translateY(0)
    }
}

@keyframes UpDown {
    0% {
        -webkit-transform: translateY(0);
        transform: translateY(0)
    }
    50% {
        -webkit-transform: translateY(-10px);
        transform: translateY(-10px)
    }
    to {
        -webkit-transform: translateY(0);
        transform: translateY(0)
    }
}

@keyframes brightness {
    0% {
        filter: brightness(100%);
    }
    70% {
        filter: brightness(100%);
    }
    73% {
        filter: brightness(250%);
    }
    76% {
        filter: brightness(100%);
    }
    100% {
        filter: brightness(100%);
    }
}

@-webkit-keyframes leftRightS {
    0% {
        -webkit-transform: translateX(0);
        transform: translateX(0)
    }
    50% {
        -webkit-transform: translateX(-10px);
        transform: translateX(-10px)
    }
    to {
        -webkit-transform: translateX(0);
        transform: translateX(0)
    }
}

@keyframes leftRightS {
    0% {
        -webkit-transform: translateX(0);
        transform: translateX(0)
    }
    50% {
        -webkit-transform: translateX(-10px);
        transform: translateX(-10px)
    }
    to {
        -webkit-transform: translateX(0);
        transform: translateX(0)
    }
}

.slotWrap {
    position: absolute;
    left: 50%;
    top: 16rem;
    width: 508px;
    transform: translateX(-50%);
    margin: 0 auto 1rem auto;
    border-radius: 10px;
    border: 15px solid #cde5ee;
    padding: 5px 2px 0 2px;
    box-shadow: 2px 2px 0 4px #b2cfdc;
    z-index: 999999;
}

.slotWrap div {
    width: calc(100% / 5 - 4px);
    height: 104px;
    margin: 0 2px 4px;
    font-size: 38px;
    display: flex;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    color: #000;
    background: url(../../images/molly/2025-xmas/slot_frame.png) top center no-repeat;
    background-size: cover;
    background-color: #e1edf1;
    box-shadow: rgba(45, 35, 66, 0.4) 0 2px 4px, rgba(35, 36, 66, 0.3) 0 7px 13px -3px, #c1d6dc 0 -8px 0 inset;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    float: left;
    text-align: center;
    border-radius: 8px;
}

.slotWrap div:nth-of-type(odd) {
    color: #ffffff;
    background-image: linear-gradient(to bottom right, #2ac493, #19af72);
    box-shadow: rgba(45, 35, 66, 0.4) 0 2px 4px, rgba(45, 35, 66, 0.3) 0 7px 13px -3px, #138f5e 0 -8px 0 inset;
}

.slotWrap div span {
    display: block;
    font-size: 16px;
    margin: 1px auto;
}

.slotWrap div:not(.no15) img {
    width: 65px;
}

.slotWrap .active {
    color: #fff !important;
    background-image: linear-gradient(to bottom right, #ff4639, #d60834) !important;
    box-shadow: #ffaca6 0 0 15px, #ff705a 0 7px 13px -3px, #c50623 0 -8px 0 inset !important;
    position: relative;
}

.slotWrap .no15 {
    position: relative;
    flex-direction: column;
    text-align: center;
    background: transparent !important;
    box-shadow: none !important;
    width: calc(100% / 1.69);
    box-shadow: none;
}

.divtext {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: table;
    width: 98%;
    font-size: 1.16rem;
    margin: 0 auto;
    padding: 0;
    text-align: center;
    font-weight: bold;
    color: #666;
}

.divtext span {
    display: inline-block !important;
    margin: 0 5px 0 3px !important;
    color: #f73754;
    font-size: 1.5rem !important;
    font-style: italic !important;
}

.slotWrap .no15 img {
    max-width: 120px;
}

.slotWrap .no15.msg span {
    display: block;
}

aside {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translate(0%, -50%);
}

aside a {
    display: block;
    background-image: linear-gradient(to bottom right, #e1edf1, #ffffff, #c2e3ee);
    border-radius: 8px 0 0 8px;
    color: #678093;
    font-size: 1.25rem;
    padding: 1rem 1.5rem;
    line-height: 1.75rem;
    margin: 1rem 0;
    padding: .75rem;
    width: 2rem;
    text-align: center;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    text-decoration: none;
}

aside a:hover {
    box-shadow: none;
}

.button-slot {
    display: block;
    background: linear-gradient(140deg, #ff4f4f, #e60c3b);
    box-shadow: rgba(98, 113, 135, 0.4) 0 2px 4px, rgba(66, 85, 114, 0.3) 0 7px 13px -3px, #c50623 0 -8px 0 inset;
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    outline: 0;
    margin: 1.25rem auto;
    min-width: 60%;
    padding: .85rem 0 1.5rem 0;
    position: relative;
    text-align: center;
    text-decoration: none;
    transition: .2s;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.button-slot.disabled {
    color: #ebebeb;
    padding: .85rem .85rem 1rem .85rem;
    background: linear-gradient(140deg, #6e6e6e, #9b9b9b);
    box-shadow: rgba(45, 35, 66, 0.4) 0 2px 4px;
}

.button-slot.none {
    color: #ebebeb;
    background: linear-gradient(140deg, #6e6e6e, #9b9b9b);
    box-shadow: rgba(45, 35, 66, 0.4) 0 2px 4px;
}

.button-slot.none span.nonetxt {
    display: block;
}

.button-slot.none span.nonetxthover {
    display: none;
}

.button-slot span.qualifications {
    box-shadow: rgba(45, 35, 66, 0.4) 0 2px 4px;
    background: linear-gradient(140deg, #3bbab1, #2878b4);
    transform: translateY(0);
}

.button-slot.none:hover {
    box-shadow: rgba(45, 35, 66, 0.4) 0 2px 4px;
    background: linear-gradient(140deg, #3bbab1, #2878b4);
    transform: translateY(0);
}

.button-slot.none:hover span.nonetxt {
    display: none;
}

.button-slot.none:hover span.nonetxthover {
    display: block;
}

.button-slot:before {
    background-color: initial;
    background-image: linear-gradient(#fb5923 0, rgba(255, 255, 255, 0) 100%);
    border-radius: 12px 12px 50px 50px;
    content: "";
    height: 50%;
    left: 2%;
    opacity: .5;
    position: absolute;
    top: 0;
    transition: all .3s;
    width: 96%;
}

.button-slot:focus {
    border: none;
    outline: none;
    box-shadow: #3e3e3e 0 0 0 1.5px inset, rgba(35, 48, 66, 0.4) 0 2px 4px, rgba(35, 47, 66, 0.3) 0 7px 13px -3px, #7d87a7 0 -3px 0 inset;
}

.button-slot:hover {
    box-shadow: rgba(45, 35, 66, 0.4) 0 4px 8px, rgba(45, 35, 66, 0.3) 0 7px 13px -3px, #e65213 0 -8px 0 inset;
    transform: translateY(-2px);
}

.button-slot:active {
    box-shadow: #fba823 0 3px 7px inset;
    transform: translateY(2px);
}

.light {
    width: 12px;
    height: 12px;
    border-radius: 100%;
    background: #ffffff;
    box-shadow: 0 2px 5px 1px #fd0000;
    position: absolute;
    animation: 1.5s infinite;
}

.light:nth-child(even) {
    animation-name: lightEven;
}

@-webkit-keyframes lightEven {
    0% {
        background: #ffb5d9;
        box-shadow: 0 2px 5px 1px #fd0000;
    }
    50% {
        background: #ffffff;
        box-shadow: 0 2px 5px 5px #fe577c;
    }
    100% {
        background: #ffb5d9;
        box-shadow: 0 2px 5px 1px #fd0000;
    }
}

.light:nth-child(odd) {
    animation-name: lightOdd;
}

@-webkit-keyframes lightOdd {
    0% {
        background: #b5ffdc;
        box-shadow: 0 2px 5px 1px #08d34c;
    }
    50% {
        background: #ffffff;
        box-shadow: 0 2px 5px 3px #75ff70;
    }
    100% {
        background: #b5ffdc;
        box-shadow: 0 2px 5px 1px #08d34c;
    }
}

.light1 {
    top: -3.5%;
    left: -3%;
}

.light2 {
    top: -4%;
    left: 18%;
}

.light3 {
    top: -4%;
    left: 39%;
}

.light4 {
    top: -4%;
    left: 60%;
}

.light5 {
    top: -4%;
    left: 82%;
}

.light6 {
    top: -3.5%;
    left: 100%;
}

.light7 {
    top: 16%;
    left: 100.5%;
}

.light8 {
    top: 38%;
    left: 100.5%;
}

.light9 {
    top: 58%;
    left: 100.5%;
}

.light10 {
    top: 80%;
    left: 100.5%;
}

.light11 {
    top: 100%;
    left: 100.5%;
}

.light12 {
    top: 100%;
    left: 100%;
}

.light13 {
    top: 100%;
    left: 80%;
}

.light14 {
    top: 100%;
    left: 58%;
}

.light15 {
    top: 100%;
    left: 38%;
}

.light16 {
    top: 100%;
    left: 18%;
}

.light17 {
    top: 100%;
    right: 100%;
}

.light18 {
    top: 80%;
    right: 100.5%;
}

.light19 {
    top: 58%;
    right: 100.5%;
}

.light20 {
    top: 38%;
    right: 100.5%;
}

.light21 {
    top: 16%;
    right: 100.5%;
}


/* 彈窗 */

.popup-wrap {
    width: 100%;
    height: 100%;
    display: none;
    position: fixed;
    top: 0px;
    left: 0px;
    content: "";
    background: rgba(0, 0, 0, 0.85);
    z-index: 999999;
}

.popup-box {
    width: 50%;
    padding: 50px 75px 200px;
    transform: translate(-50%, -50%) scale(1);
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 20px;
    text-align: center;
    color: #fff;
    background: rgb(228, 228, 228);
    box-shadow: 0 0 10px #0000009e;
}

.popup-box-l {
    width: 70% !important;
    padding: 30px 75px 120px;
}

.popup-box h2 {
    font-size: 3.65rem;
    font-weight: bold;
    font-style: italic;
    font-family: 'Bahnschrift';
    margin: 0;
    padding: 0;
    background: linear-gradient(140deg, #038c53, #07783a);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.popup-box h3 {
    font-size: 1.75rem;
    letter-spacing: 4px;
    background: linear-gradient(140deg, #038c53, #07783a);
    color: #fff;
    margin-left: -95px;
    margin-right: -95px;
    padding-top: 15px;
    padding-bottom: 15px;
    position: relative;
}

.popup-box h3:before {
    content: "";
    position: absolute;
    top: -20px;
    left: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0px 20px 20px;
    border-color: transparent transparent #066631 transparent;
}

.popup-box h3:after {
    content: "";
    position: absolute;
    top: -20px;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 20px 0 0px 20px;
    border-color: transparent transparent transparent #084021;
}

.popup-box .text {
    display: table;
    font-size: 1.5rem;
    margin: 1rem auto;
    color: #555;
    text-align: left;
}

.popup-box .text ul li {
    margin-bottom: .75rem;
    line-height: 1.5;
}

.popup-box p {
    color: #555;
    text-align: left;
    font-size: 1.5rem;
    line-height: 1.5;
    margin: 0 0 .25rem 0;
}

.close-btn {
    display: inline-block;
    position: absolute;
    bottom: 0;
    transform: translateX(-50%);
    width: 100%;
    border-radius: 0 0 15px 15px;
    font-weight: bold;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(320deg, #bf0404, #d60834);
    line-height: 80px;
    font-size: 1.65rem;
    transition: 0.3s;
}

.close-btn:hover {
    background: #e91845;
}

.transform-in,
.transform-out {
    display: block;
    -webkit-transition: all ease 0.5s;
    transition: all ease 0.5s;
}

.transform-in {
    -webkit-transform: translate(-50%, -50%) scale(1);
    transform: translate(-50%, -50%) scale(1);
}

.transform-out {
    -webkit-transform: translate(-50%, -50%) scale(0.75);
    transform: translate(-50%, -50%) scale(0.75);
}

.tableBox {
    margin-top: 3rem;
    max-height: 90vh;
    overflow-y: auto;
}

.tableBox table {
    position: relative;
    width: 80%;
    margin: 1rem auto 5rem auto;
    border-collapse: collapse;
    font-size: 1.45rem;
    z-index: 99;
    border-radius: 15px 15px 0 0;
    box-shadow: 0 0 25px 0px rgba(0, 0, 0, .1);
}

.tableBox table th {
    color: #fff;
    padding: 1rem .5rem;
    border: none;
    background: #038c53;
}

.tableBox table th:nth-child(1) {
    border-radius: 15px 0 0 0;
}

.tableBox table th:nth-last-child(1) {
    border-radius: 0 15px 0 0;
}

.tableBox table td {
    color: #333;
    padding: .5rem .35rem;
    border: 1px solid #d3d3d3;
    background: #ffffff2c;
}

.tableBox table tr:nth-last-of-type(odd) td {
    background: #ffffff65;
}

.tableBox table tr.userGot td {
    color: #bf0404;
    border: 1px solid #d3d3d3;
    background: #bf040465;
    font-size: 1.5rem;
    font-weight: bold;
    font-style: italic;
}

.datePick {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    width: 75%;
    margin: 1rem auto;
    z-index: 99;
}

.datePick a {
    display: block;
    font-size: 1.25rem;
    padding: 1rem;
    margin: .25rem;
    color: #fff;
    background: #038c53;
    border-radius: 4px;
    text-decoration: none;
    transition: .25s;
}

.datePick a.active {
    color: #fff;
    background: #bf0404;
}

.datePick a:hover {
    color: #fff;
    background: #18b272;
    text-decoration: none;
}

@media (max-width: 1024px) {
    body,
    html {
        font-size: 18px !important;
        overflow-x: hidden;
        position: relative;
    }
    body {
        background: url(../../images/molly/2025-xmas/bg.jpg) 36% center no-repeat;
        background-size: cover;
        background-attachment: fixed;
    }
    .topTitle {
        margin: 5rem 0 1.5rem 0;
    }
    .topTitle img.tit01,
    .topTitle img.tit02 {
        width: 400px;
        max-width: 100%;
    }
    .popup-box {
        width: 100%;
        background-size: cover
    }
    .popup-box-l {
        width: 100% !important;
    }
    .popup-box h3 {
        font-size: 1.65rem;
    }
    .tableBox table {
        width: 100%;
    }
    aside {
        top: 45%;
        z-index: 999;
    }
    .slotWrap {
        top: 20rem;
    }
    .items {
        top: 6rem;
        width: 760px;
        height: auto;
        z-index: 999999;
    }
    .items img.img_left {
        top: 21rem;
        left: -6%;
        max-width: 30rem;
    }
    .items img.img_right {
        right: -3rem;
        top: 20rem;
        max-width: 28rem;
    }
    .items .img_gift {
        right: 0rem;
        top: 18rem;
    }
    .items .img_dice {
        left: 0rem;
        top: 27rem;
    }
}

@media (max-width: 580px) {
    body {
        background-size: cover;
        align-items: baseline;
        padding: 2rem 0 0 0;
        overflow: hidden;
    }
    .topTitle {
        margin: 0 0 1.5rem 0;
    }
    .topTitle .logo {
        width: 100px;
    }
    .topTitle img.tit01,
    .topTitle img.tit02 {
        width: 300px;
        max-width: 100%;
    }
    .topTitle p {
        font-size: 1.05rem;
        margin: 0 0 .2rem 0;
    }
    .slotWrap {
        position: relative;
        left: inherit;
        top: inherit;
        width: 80%;
        transform: inherit;
        margin: 0 auto 1rem auto;
    }
    .slotWrap div {
        width: calc(100% / 5.15 - 3px);
        height: 80px;
    }
    .slotWrap div:not(.no15) img {
        width: 38px;
    }
    .slotWrap .no15 {
        background: transparent !important;
        background-color: transparent !important;
    }
    .slotWrap .no15 img {
        width: 80px;
    }
    .slotWrap .no15 .divtext {
        font-size: 16px;
        line-height: 1;
    }
    .divtext {
        color: #000;
        width: 96%;
        margin: 1rem auto;
        text-align: center;
        font-weight: normal;
    }
    .button-slot {
        min-width: 80%;
    }
    aside {
        top: inherit;
        right: inherit;
        bottom: 0;
        left: 0;
        width: 100%;
        background-image: linear-gradient(to bottom right, #e1edf1, #ffffff, #c2e3ee);
        transform: translate(0%, 0%);
        z-index: 999999999;
    }
    aside a {
        text-shadow: none;
        display: inline-block;
        width: calc(100% / 4.8) !important;
        background: none;
        border-radius: 0;
        font-size: 1rem;
        padding: 1rem 1.5rem;
        margin: 0;
        padding: .75rem .25rem;
        width: auto;
        border-right: 1px solid #dde8f0;
    }
    aside a:nth-last-child(1) {
        border-right: none;
    }
    .datePick {
        width: 100%;
        margin: .5rem auto 2rem auto;
        justify-content: flex-start;
    }
    .datePick a {
        width: 14%;
        font-size: 1rem;
        padding: .5rem;
        margin: .15rem;
    }
    .tableBox {
        margin-top: .5rem;
        max-height: 540px;
    }
    .tableBox table tr.userGot td {
        font-size: 1.16rem;
    }
    .tableBox table th:nth-child(1) {
        border-radius: 8px 0 0 0;
    }
    .tableBox table th:nth-last-child(1) {
        border-radius: 0 8px 0 0;
    }
    .tableBox table {
        width: 100%;
        font-size: 1rem;
        margin: 0rem auto 2rem auto;
    }
    .tableBox table th,
    .tableBox table td {
        padding: .5rem .75rem;
    }
    .popup-wrap {
        overflow-y: auto;
    }
    .close-btn {
        line-height: 60px;
        font-size: 1.15rem;
    }
    .transform-out {
        transform: translate(-50%, -50%) scale(0.75);
    }
    .popup-box {
        padding: 30px 35px 100px;
    }
    .popup-box h2 {
        font-size: 2.75rem;
    }
    .popup-box h3 {
        font-size: 1.35rem;
        margin-left: -55px;
        margin-right: -55px;
    }
    .popup-box p,
    .popup-box .text {
        font-size: 1.16rem;
    }
    .items {
        top: 0;
        width: 100%;
        height: 100%;
    }
    .items img.img_left {
        top: -2rem;
        left: -4%;
        max-width: 14rem;
    }
    .items img.img_right {
        right: 0rem;
        top: -2.85rem;
        max-width: 13rem;
    }
    .items .img_gift {
        right: .5rem;
        top: -2rem;
        max-width: 2.5rem;
        z-index: 999999999;
    }
    .items .img_dice {
        left: .5rem;
        top: 0rem;
        max-width: 1.75rem;
    }
    .divtext span {
        font-size: 1.35rem !important;
    }
}

@media (max-width: 420px) {
    .slotWrap {
        width: 80%;
    }
    .slotWrap div {
        width: calc(100% / 5 - 5px);
        height: 70px;
    }
    .slotWrap div:not(.no15) img {
        width: 38px;
    }
    .slotWrap .no15 img {
        width: 90px;
    }
}

#verify {
    color: #444;
    position: absolute;
    left: 10px;
    top: 10px;
}