body {
    font-family: Arial, sans-serif;
    background-color: #000000;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
       -moz-box-orient: vertical;
       -moz-box-direction: normal;
            flex-direction: column;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
       -moz-box-pack: center;
            justify-content: center;
    -webkit-box-align: center !important;
    -webkit-align-items: center !important;
       -moz-box-align: center !important;
            align-items: center !important;
    margin: 0;
    -webkit-user-select: none;
       -moz-user-select: none;
            user-select: none;
}

.main {
    max-width: 380px;
    width: 100%;
}

.image {
    background-position: center;
    background-size: cover;
}

h1 {
    width: 100%;
    font-size: 20px;
    text-align: center;
    color: white;
}

.header {
    width: 100%;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
       -moz-box-align: center;
            align-items: center;
}

.header h1 {
    width: -webkit-calc(100% - 120px);
    width: calc(100% - 120px);
}

.back-btn {
    width: 40px;
    height: 40px;
    margin: 10px;
    background-image: url(../../images/back.382b99b.webp);
    background-size: cover;
}

.ad-container {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: flex;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
       -moz-box-pack: center;
            justify-content: center;
    margin: 16px auto !important;
}

#ad-countdown {
    position: fixed;
    top: 0;
    left: 50%;
    -webkit-transform: translateX(-50%);
            transform: translateX(-50%);
    background: rgb(255, 255, 255);
    color: #000000;
    font-size: 14px;
    padding: 10px;
    border-radius: 0 0 10px 10px;
    display: none;
    z-index: 9999;
}

.p-img {
    background-image: url(../../images/all_calimage.3a00753.webp);
    width: 70%;
    height: 80px;
    aspect-ratio: 1;
    background-size: cover;
    background-repeat: no-repeat;
    margin: auto;
    margin-bottom: 12px;
}

.modal-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
       -moz-box-align: center;
            align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
       -moz-box-pack: center;
            justify-content: center;
    z-index: 999;
}

.modal-box {
    width: 320px;
    background: #fff;
    border-radius: 16px;
    padding: 50px 15px 30px 15px;
    text-align: center;
    -webkit-animation: pop 0.25s ease;
            animation: pop 0.25s ease;
    position: relative;
}

.modal-box .oops-img {
    position: absolute;
    top: -45px;
    left: 50%;
    -webkit-transform: translateX(-50%);
            transform: translateX(-50%);
    width: 150px;
    height: 100px;
    background-image: url(../../images/oops.4518846.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.modal-title {
    font-size: 28px;
    font-weight: bold;
    color: #33cc33;
    margin-bottom: 10px;
}

.modal-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.modal-desc2 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 20px;
}

.watch-btn-wrapper {
    position: relative;
}

.btn-claim {
    width: 85%;
    background: #2d7be5;
    color: #fff;
    border: none;
    border-radius: 24px;
    padding: 12px;
    font-size: 16px;
    cursor: pointer;
}

.btn-skip {
    margin-top: 10px;
    color: #888;
    text-decoration: underline;
    cursor: pointer;
}

/*  */

.resp_about_section {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: flex;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
       -moz-box-pack: center;
            justify-content: center;
    color: #888;
    line-height: 1.4;
}

.about_section {
    width: 316px;
}

.about_section p {
    text-wrap: wrap;
    text-align: start;
    color: #888;
    font-size: 16px;
}

.about_section h1 {
    margin: 10px 0 10px 0;
    text-wrap: wrap;
    text-align: left;
    color: var(--text-color);
    font-size: 22px;
}

.about_section ul {
    padding-left: 10px;
    text-wrap: wrap;
    text-align: left;
    color: #888;
    font-size: 16px;
}

@media screen and (orientation: portrait) {
    .main {
        max-width: 400px;
    }
}
.main {
    color: white;
}

.result-box {
    background: #fff;
    color: #ff5722;
    padding: 18px 25px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
    display: none;
    max-width: 280px;
}

.result-box.show {
    display: block;
}

.congrats {
    color: #4caf50;
    font-size: 20px;
    margin-bottom: 10px;
}

.prize {
    font-size: 22px;
    font-weight: bold;
}

.scratch-container {
    position: relative;
    width: 320px;
    height: 180px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

#reward {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #0CA97E;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: flex;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
       -moz-box-pack: center;
            justify-content: center;
    -webkit-box-align: center;
    -webkit-align-items: center;
       -moz-box-align: center;
            align-items: center;
    font-size: 32px;
    font-weight: bold;
}

canvas {
    position: absolute;
    width: 100%;
    height: 100%;
    margin: 0 auto;
}

.h1scratch {
    font-size: 30px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    margin: 0;
    margin-bottom: 20px;
}

.game-section {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
       -moz-box-orient: vertical;
       -moz-box-direction: normal;
            flex-direction: column;
    -webkit-box-align: center;
    -webkit-align-items: center;
       -moz-box-align: center;
            align-items: center;
}

/* 新增文本样式 */

.grand-prize-tip {
    color: #fff;
    font-size: 13px;
    text-align: center;
    margin: -10px 0 15px;
    /* 紧贴在标题下方 */
    opacity: 0.8;
}

/* 奖励弹窗遮罩层 */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: flex;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
       -moz-box-pack: center;
            justify-content: center;
    -webkit-box-align: center;
    -webkit-align-items: center;
       -moz-box-align: center;
            align-items: center;
    z-index: 1000;
}

/* 弹窗主体 */

.double-modal-box {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    width: 80%;
    max-width: 320px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    -webkit-animation: popIn 0.3s ease-out;
            animation: popIn 0.3s ease-out;
}

@-webkit-keyframes popIn {
    from {
        -webkit-transform: scale(0.8);
                transform: scale(0.8);
        opacity: 0;
    }

    to {
        -webkit-transform: scale(1);
                transform: scale(1);
        opacity: 1;
    }
}

@keyframes popIn {
    from {
        -webkit-transform: scale(0.8);
                transform: scale(0.8);
        opacity: 0;
    }

    to {
        -webkit-transform: scale(1);
                transform: scale(1);
        opacity: 1;
    }
}

.double-modal-box .congrats {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.double-modal-box .prize-text {
    font-size: 18px;
    margin-bottom: 25px;
    color: #666;
}

/* 按钮组 */

.modal-actions {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
       -moz-box-orient: vertical;
       -moz-box-direction: normal;
            flex-direction: column;
    gap: 15px;
}

.modal-actions button {
    width: 100%;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.btn-double {
    background: #ff4080;
    color: white;
    box-shadow: 0 4px 0 #cc3366;
}

.double-btn-claim {
    background: #e0e0e0;
    color: #555;
}

.btn-double:active,
.double-btn-claim:active {
    -webkit-transform: translateY(2px);
            transform: translateY(2px);
    box-shadow: none;
}

.promo-text {
    text-align: center;
    font-size: 15px;
    font-weight: bold;
    margin: 5px 15px 15px 15px;
}
