body {
    height: 100vh;
    background:  url(/img/bg2.png) repeat center center,url(/img/bg.png) no-repeat center center;
    background-size: auto 100px, cover;
    overflow: hidden;
}
.main-content {
    max-width: 800px;
    margin: 0 auto;
    background: url(/img/main_bg.png) no-repeat center center;
    background-size: auto 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
}
.result-bg{
    background: url(/img/result_bg.png) no-repeat center center;
    background-size: auto 120%;
}
.container{
    position: relative;

}
.h-100vh{
    height: 100vh;
}
.main-title-img{
    width: auto;
    height: 15vh;
    max-height: 15vh;
    object-fit: cover;
}
.title-img{
    width: auto;
    height: 13vh;
    max-height: 13vh;
    object-fit: cover;
}
.gift-text-img{
    width: auto;
    height: 8vh;
    max-height: 8vh;
    object-fit: cover;
}
.gift-img{
    width: auto;
    height: 28vh;
    max-height: 28vh;
    object-fit: cover;
}
.gift-img-2{
    width: auto;
    height: 40vh;
    max-height: 40vh;
    object-fit: cover;
    max-width: 100%;
}
.redeem-box-img{
    width: auto;
    height: 55vh;
    max-height: 55vh;
    object-fit: cover;
}
.save-box-img{
    width: auto;
    height: 55vh;
    max-height: 55vh;
    object-fit: cover;
}
.redeem-message-img{
    position: absolute;
    bottom: 25%;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    height: 6vh;
    max-height: 6vh;
    object-fit: cover;
}
.redeem-btn-img{
    width: 100%;
    max-width: 180px;
}
.redeem-btn-box{
    position: absolute;
    bottom: 11%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: end;
    z-index: 10;
}
.joinus-text-img{
    width: auto;
    height: 14vh;
    max-height: 14vh;
    object-fit: cover;
    max-width: 100%;
}
.joinus-btn-img{
    width: 100%;
    max-width: 240px;
}
.save-message-img{
    position: absolute;
    bottom: 16%;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    height: 2vh;
    max-height: 2vh;
    object-fit: cover;
    max-width: 100%;
}

.qrcode-box-img{
    width: auto;
    height: 50vh;
    max-height: 50vh;
    object-fit: cover;
    max-width: 100%;
}
.input-box-img{
    width: auto;
    height: 40vh;
    max-height: 40vh;
    object-fit: cover;
    max-width: 100%;
}
.qrcode,.redeem-qrcode,.save-qrcode{
    position: absolute;
    bottom: 17%;
    left: 50%;
    width: 100%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    padding: 10px;
    background-color: #ffffff;
    max-width: 160px;
    border-radius: 10px;
}
.redeem-qrcode{
    bottom: auto;
    top: 34%;
    max-width: 120px;
}
.save-qrcode{
    bottom: auto;
    top: 36%;
    max-width: 200px;
}
.save-qrcode img{
    width: 100%;
}
.qrcode img, .qrcode canvas, .redeem-qrcode img, .redeem-qrcode canvas{
    width: 100%;
    height: auto;
    max-width: 100%;
}
.roulette-box{
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: start;
}
.roulette-img,.roulette-border-img{
    width: auto;
    height: 60vh;
    max-height: 60vh;
    object-fit: cover;
}
.roulette-img-box,.roulette-border{
    position: absolute;
    top: 0;
    right: -30%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform-origin: center center;
    transition: transform 0s;
}
.character-box-container{
    width: 60%;
    left: -10px;
    bottom: 0;
}
.character-box{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: end;
    position: relative;
}
.character-text-box{
    position: absolute;
    bottom: 20%;
    right: 25%;
    width: 100%;
    color: #15446b;
    font-size: 16px;
    font-weight: bold;
    background: #fff;
    padding: 10px 10px 10px 22px;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    max-width: 240px;
}
.character-img{
    width: auto;
    height: 75vh;
    max-height: 80vh;
    object-fit: cover;
}
.play-btn-box{
    position: absolute;
    bottom: 8vh;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: end;
    z-index: 10;
}


.play-btn-img, .back-btn-img{
    width: 100%;
    max-width: 220px;
}
.main-content-box{
    height: 85vh;
}
.input-box-container{
    position: absolute;
    bottom:31%;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.7);
    padding: 2px 5px;
    border-radius: 5px;
}
.input-box-input{
    border: none;
    background: none;
    width: 100%;

    border-radius: 0;
}
.input-box-btn{
    border: none;
    background: none;
    width: 160px;
}
.input-box-btn img{
    width: 100%;
}

.winner-img-box{
    position: relative;
}
.gift-text-box{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
   
    font-weight: bold;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 65%;
}
.redeem-text-box{
    position: absolute;
    top: 16%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
   
    font-weight: bold;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 65%;
}
.gift-text{
  background: -webkit-linear-gradient(#fff5e7, #ffca7a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 20px;
}
.message-box{
    position: absolute;
    bottom: 23%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    color: #ffffff;
}
.message-overlay{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}
.message-popup{
    position: relative;
    max-width: 600px;
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.message-close-btn{
    position: absolute;
    top: 15px;
    right: 15px;
    max-width: 40px;
    width: 40px;
    height: auto;
    cursor: pointer;
    z-index: 10000;
}
.message-image{
    max-width: 100%;
    width: 100%;
    height: auto;
}
@media (max-width: 768px) {
    .character-box-container{
        width: 50%;
    }
    .roulette-img-box, .roulette-border{
        right: -11vh;
    }
    .character-text-box{
        right: auto;
        left: 0;
    }
    .main-content{
        overflow: hidden;
    }
    .title-img{
        width: 100%;
        height: auto;
        max-height: auto;
        object-fit: contain;
    }
    .gift-img,.gift-text-img{
        width: 100%;
        height: auto;
        max-height: auto;
        object-fit: contain;
    }
    .qrcode-box-img,.input-box-img{
        width: 100%;
        height: auto;
        max-height: auto;
        object-fit: contain;
    }
    .qrcode {
        max-width: 140px;
    }
    .gift-img-2{
        width: 100%;
        height: auto;
        max-height: auto;
        object-fit: contain;
    }
    .redeem-box-img,.save-box-img{
        width: 100%;
        height: auto;
        max-height: auto;
        object-fit: contain;
    }
    .gift-text{
        font-size: 16px;
    }
    .redeem-qrcode{
        max-width: 100px;
    }
    .save-qrcode{
        max-width: 120px;
    }
    .redeem-message-img{
        width: 100%;
        height: auto;
        max-height: none;
        max-width: 220px;
        bottom: 23%;
    }
    .redeem-btn-img{
        max-width: 130px;
    }
    .input-box-container{
        bottom: 28%;
        width: 60%;
    }
    .message-box{
        bottom: 20%;
        font-size: 12px;
    }
    .joinus-text-img{
        width: 100%;
        height: auto;
        max-height: none;
        max-width: 280px;
    
    }
    .joinus-btn-img{
        max-width: 160px;
    }

}

/* ============================================
   Footer Links & Terms Overlay Styles
   ============================================ */

/* Footer Links */
.footer-links {
    z-index: 1000;
    pointer-events: none;
}

.footer-links a {
    pointer-events: auto;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1 !important;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

/* Terms Overlay */
.terms-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.terms-overlay-content {
    background: white;
    border-radius: 10px;
    max-width: 600px;
    max-height: 80vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.terms-overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.terms-overlay-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.terms-close-btn {
    background: none;
    border: none;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.terms-close-btn:hover {
    color: #333;
}

.terms-overlay-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.terms-content h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 20px;
}

.terms-content ol {
    padding-left: 20px;
    margin-bottom: 20px;
}

.terms-content li {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #555;
}

.terms-content p {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #555;
}

.terms-content strong {
    color: #333;
}

/* Responsive for Footer Links */
@media (max-width: 768px) {
    .terms-overlay-content {
        max-width: 95%;
        max-height: 90vh;
    }
    
    .terms-overlay-header {
        padding: 15px;
    }
    
    .terms-overlay-header h2 {
        font-size: 20px;
    }
    
    .terms-overlay-body {
        padding: 15px;
    }
    
    .footer-links {
        padding: 10px !important;
    }
}

/* Hide DebugKit toolbar */
#debug-kit-toolbar,
#debug-kit-toolbar *,
.debug-kit-toolbar {
    display: none !important;
    visibility: hidden !important;
}