*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.container{
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: black;
}
.backgrond{
    position: relative;
    width: 100%;
    max-width: 550px;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}
.backgrond img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.main-content{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}
.text{
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.text img{
    width: 100%;
    max-width: 450px;
    height: 100%;
    object-fit: contain;
}
.text2{
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.text2 img{
    width: 100%;
    max-width: 450px;
    height: 100%;
    object-fit: contain;
}
.scratch-container{
    position: absolute;
    top: 65%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 400px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 30px;
    row-gap: 5px;
    padding: 10px;
}
.scratch{
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}
.scratch .prize-image{
    width: 100%;
    height: auto;
    object-fit: contain;
    display: none;
    padding: 5px 10px;
}
.scratch .prize-image.revealed{
    display: block;
}
.scratch .scratch-canvas{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.1);
    cursor: grab;
    touch-action: none;
    border-radius: 12px;
    padding: 5px 10px;
    z-index: 10;
    display: block;
}

.popout-lose{
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
}
.popout-lose.show{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.popout-lose .image-lose{
    width: 100%;
    max-width: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.popout-lose .image-lose img{
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}
.popout-lose .buttons{
    width: 100%;
    max-width: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.popout-lose .buttons img{
    width: 100%;
    height: auto;
    object-fit: contain;
}

.popout-win{
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
}
.popout-win.show{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.popout-win .image-win{
    width: 100%;
    max-width: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.popout-win .image-win img{
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}
.popout-win .buttons{
    width: 100%;
    max-width: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.popout-win .buttons img{
    width: 100%;
    height: auto;
    object-fit: contain;
}
/* Mobile Responsive Styles */
@media screen and (max-width: 480px) {
    .backgrond{
        width: 100%;
        max-width: 100%;
    }
    
    .text{
        top: 20%;
    }
    
    .text img{
        max-width: 80%;
    }
    
    .text2{
        top: 33%;
    }
    
    .text2 img{
        max-width: 90%;
    }
    
    .scratch-container{
        top: 65%;
        max-width: 90%;
        row-gap: 3px;
    }
}
@media (max-width: 375px) {
    .text{
        top: 20%;
    }
    
    .text img{
        max-width: 250px;
    }
    
    .text2{
        top: 32%;
    }
    
    .text2 img{
        max-width: 250px;
    }
}

@media screen and (max-width: 360px) {
    .scratch-container{
        max-width: 95%;
        gap: 8px;
        row-gap: 2px;
        padding: 4px;
    }
}
