* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.container {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    position: relative;
    background-color: #000;
}

.background {
    width: 550px;
    height: 100%;
    margin: auto;
    overflow: hidden;
}

.background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-content {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    position: absolute;
    top: 8%;
    left: 50%;
    width: 100%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
}

.logo img {
    width: 100%;
    max-width: 150px;
    height: 100%;
    object-fit: cover;
}

.text {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    max-width: 500px;

}

.text-img {
    width: 100%;
    max-width: 450px;
    height: 100%;
    object-fit: cover;
}

.text2 {
    position: absolute;
    top: 26%;
    left: 52%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    max-width: 500px;
}

.text2-img {
    width: 100%;
    max-width: 150px;
    height: 100%;
    object-fit: cover;
}

.text3 {
    position: absolute;
    top: 34%;
    left: 51%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.text3-img {
    width: 100%;
    max-width: 120px;
    height: 100%;
    object-fit: cover;
}

.text4-img {
    width: 100%;
    max-width: 20px;
    height: 100%;
    object-fit: cover;
}

@keyframes zoom-in-out {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* 3 Column Scratch Layout */
.scratch {
    position: absolute;
    top: 58%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 100%;
    max-width: 450px;
    background-color: rgb(88, 87, 87);
    border-radius: 20px;
    overflow: hidden;
}

.left-gift,
.middle-gift,
.right-gift {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    align-items: center;
    justify-content: center;
}

.left-gift img,
.middle-gift img,
.right-gift img {
    width: 100%;
    max-width: 200px;
    height: auto;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.2s ease;
}

/* Canvas wrapper styles for scratch cards */
.scratch canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.scratch>div>div {
    position: relative;
    width: 100%;
    height: 100%;
}

.left-gift img:hover,
.middle-gift img:hover,
.right-gift img:hover {
    transform: scale(1.05);
}



.btnstart {
    position: absolute;
    top: 89%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 7;
}

.btnstart img {
    max-width: 270px;
}



.telegram {
    position: absolute;
    bottom: 3%;
    left: 50%;
    transform: translateX(-50%);
    height: auto;
    z-index: 9;
}


/* Popup Styles */
.popup-win,
.popup-lose {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    padding: 0px 0px;
    box-sizing: border-box;
    z-index: 1000;
    animation: fadeIn 0.3s ease-in-out;
}

.popup-win .popup-content,
.popup-lose .popup-content {
    top: 0;
    position: relative;
    width: min(480px, calc(100% - 0px));
    max-height: calc(100% - 40px);
    animation: popupIn 0.3s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.img-logo {
    width: 100%;
    max-width: 150px;
    height: 100%;
    object-fit: cover;
}

.img-price {
    width: 100%;
    max-width: 350px;
    height: 100%;
    object-fit: cover;
}

.img-text {
    width: 100%;
    max-width: 200px;
    height: 100%;
    object-fit: cover;
}

.img-layout {
    width: 100%;
    max-width: 400px;
    height: 100%;
    object-fit: cover;
}

.img-fix {
    width: 100%;
    max-width: 200px;
    height: 100%;
    object-fit: cover;
}

.img-detals {
    width: 100%;
    max-width: 200px;
    height: 100%;
    object-fit: cover;
}
#claimbtn img {
    max-width: 300px;
}
.btntry{
    max-width: 300px;
}
.popup-win .button-container {
    display: flex;
    flex-direction: row;
    gap: 15px;
    margin-top: -20px;
    background: transparent;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 500px;
}

.popup-win .button-container a {
    display: block;
}

.popup-win .button-container img {
    width: 100%;
    max-width: 300px;
    cursor: pointer;
    transition: transform 0.2s ease;
    mix-blend-mode: screen;
    background: transparent;
}

.popup-win .button-container img:hover {
    transform: scale(1.05);
}

.popup-content img {
    cursor: pointer;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes popupIn {
    from {
        opacity: 0;
        transform: translateY(-100%) scale(0.8);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.telegram img {
    width: 100%;
    max-width: 300px;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    animation: zoomInOut 2s ease-in-out infinite;
}

/* Responsive Styles */
/* Max-width 600px */
@media screen and (max-width: 600px) {
    .background {
        width: 100%;
    }

    .logo {
        top: 10%;
    }

    .logo img {
        max-width: 150px;
    }

    .text {
        position: absolute;
        top: 20%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        width: 100%;
        max-width: 500px;

    }

    .text-img {
        max-width: 400px;
    }

    .text2 {
        top: 26%;
        left: 55%;
    }

    .text2-img {
        max-width: 140px;
    }

    .text3 {
        top: 34%;
        left: 52%;
        gap: 6px;
    }

    .text3-img {
        max-width: 110px;
    }

    .text4-img {
        max-width: 18px;
    }

    .scratch {
        top: 60%;
        max-width: 80%;
        gap: 4px;
        padding: 4px;
    }

    .left-gift,
    .middle-gift,
    .right-gift {
        gap: 4px;
    }

    .left-gift img,
    .middle-gift img,
    .right-gift img {
        max-width: 140px;
        width: 100%;
    }

    .btnstart {
        top: 82%;
    }

    .btnstart img {
        max-width: 240px;
    }



    .popup-win .button-container {
        max-width: 260px;
        gap: 10px;
    }

    .popup-win .button-container img {
        max-width: 210px;
    }

    .popup-win .popup-content {
        max-width: 320px;
        padding: 16px 12px;
        gap: 16px;
    }

    .popup-win .img-logo {
        max-width: 120px;
    }

    .popup-win .img-price {
        max-width: 280px;
    }

    .popup-win .img-text {
        max-width: 230px;
    }

    .popup-win .img-layout {
        max-width: 300px;
    }

    .popup-win .img-fix {
        max-width: 220px;
    }

    .popup-win .img-detals {
        max-width: 230px;
    }

    /* Canvas wrapper adjustments */
    .scratch>div>div {
        width: 100%;
        height: 100%;
    }

    .telegram {
        bottom: 6%;
    }

    .telegram img {
        max-width: 220px;
    }
}

/* Max-width 450px */
@media screen and (max-width: 450px) {
    .logo {
        top: 9%;
    }

    .logo img {
        max-width: 180px;
    }

    .text {
        position: absolute;
        top: 20%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        width: 100%;
        max-width: 500px;

    }

    .text-img {
        max-width: 350px;
    }


    .text2 {
        top: 25%;
        left: 55%;
    }

    .text2-img {
        max-width: 120px;
    }

    .text3 {
        top: 35%;
        left: 60%;
        gap: 4px;
    }

    .text3-img {
        max-width: 95px;
    }

    .text4-img {
        max-width: 16px;
    }

    .scratch {
        top: 56%;
        max-width: 80%;
        gap: 4px;
        padding: 4px;
    }

    .left-gift,
    .middle-gift,
    .right-gift {
        gap: 3px;
    }

    .left-gift img,
    .middle-gift img,
    .right-gift img {
        max-width: 110px;
        width: 100%;
    }

    .btnstart {
        top: 82%;
    }

    .btnstart img {
        max-width: 210px;
    }

    /* Popup Styles */
    .popup-win,
    .popup-lose {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        max-width: 500px;
        background-color: rgba(0, 0, 0, 0.8);
        display: none;
        justify-content: center;
        align-items: center;
        z-index: 1000;
        animation: fadeIn 0.3s ease-in-out;
    }

    .popup-win .popup-content,
    .popup-lose .popup-content {
        position: relative;
        max-width: 500px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .img-logo {
        width: 100%;
        max-width: 150px;
        height: 100%;

    }

    .img-price {
        width: 100%;
        max-width: 250px;
        height: 100%;
        object-fit: cover;
        margin-top: -10px;
    }

    .img-text {
        width: 100%;
        max-width: 100px;
        height: 100%;
        margin-top: -10px;
    }

    .img-layout {
        width: 100%;
        max-width: 400px;
        height: 100%;
        object-fit: cover;
    }

    .img-fix {
        width: 100%;
        max-width: 200px;
        height: 100%;
        object-fit: cover;
    }

    .img-detals {
        width: 100%;
        max-width: 100px;
        height: 100%;
        object-fit: cover;
    }

    #claimbtn img {
        max-width: 200px;
    }

    .btntry {
        max-width: 200px;
    }

    /* Canvas wrapper adjustments */
    .scratch>div>div {
        width: 100%;
        height: 100%;
    }

    .telegram {
        bottom: 6%;
    }

    .telegram img {
        max-width: 200px;
    }
}

/* Max-width 430px */
@media screen and (max-width: 430px) {
    .logo {
        top: 10%;
    }

    .logo img {
        max-width: 150px;
    }

    .text {
        top: 22%;
        left: 50%;
    }

    .text-img {
        max-width: 360px;
    }

    .text2 {
        top: 26%;
        left: 55%;
    }

    .text2-img {
        max-width: 110px;
    }

    .text3 {
        top: 36%;
        left: 60%;
        gap: 4px;
    }

    .text3-img {
        max-width: 90px;
    }

    .text4-img {
        max-width: 15px;
    }

    .scratch {
        top: 54%;
        max-width: 82%;
        gap: 3px;
        padding: 4px;
    }

    .left-gift,
    .middle-gift,
    .right-gift {
        gap: 3px;
    }

    .left-gift img,
    .middle-gift img,
    .right-gift img {
        max-width: 100px;
        width: 100%;
    }

    .btnstart {
        top: 82%;
    }

    .btnstart img {
        max-width: 200px;
    }

    /* Popup Styles */
    .popup-win,
    .popup-lose {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        max-width: 500px;
        background-color: rgba(0, 0, 0, 0.8);
        display: none;
        justify-content: center;
        align-items: center;
        z-index: 1000;
        animation: fadeIn 0.3s ease-in-out;
    }

    .popup-win .popup-content,
    .popup-lose .popup-content {
        position: relative;
        max-width: 500px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .img-logo {
        width: 100%;
        max-width: 150px;
        height: 100%;

    }

    .img-price {
        width: 100%;
        max-width: 250px;
        height: 100%;
        object-fit: cover;
        margin-top: -10px;
    }

    .img-text {
        width: 100%;
        max-width: 100px;
        height: 100%;
        margin-top: -10px;
    }

    .img-layout {
        width: 100%;
        max-width: 400px;
        height: 100%;
        object-fit: cover;
    }

    .img-fix {
        width: 100%;
        max-width: 200px;
        height: 100%;
        object-fit: cover;
    }

    .img-detals {
        width: 100%;
        max-width: 100px;
        height: 100%;
        object-fit: cover;
    }

    #claimbtn img {
        max-width: 200px;
    }

    .btntry {
        max-width: 200px;
    }

    /* Canvas wrapper adjustments */
    .scratch {
        top: 60%;
    }

    .scratch>div>div {
        width: 100%;
        height: 100%;
    }

    .telegram {
        bottom: 6%;
    }

    .telegram img {
        max-width: 190px;
    }
}

/* Max-width 390px */
@media screen and (max-width: 390px) {
    .logo {
        top: 10%;
    }

    .logo img {
        max-width: 140px;
    }

    .text {
        top: 23%;
        left: 50%;
    }

    .text-img {
        max-width: 320px;
    }

    .text2 {
        top: 29%;
        left: 55%;
    }

    .text2-img {
        max-width: 100px;
    }

    .text3 {
        top: 38%;
        left: 56%;
        gap: 3px;
    }

    .text3-img {
        max-width: 82px;
    }

    .text4-img {
        max-width: 14px;
    }

    .scratch {
        top: 60%;
        max-width: 84%;
        gap: 3px;
        padding: 4px;
    }

    .left-gift,
    .middle-gift,
    .right-gift {
        gap: 2px;
    }

    .left-gift img,
    .middle-gift img,
    .right-gift img {
        max-width: 90px;
        width: 100%;
    }

    .btnstart {
        top: 82%;
    }

    .btnstart img {
        max-width: 190px;
    }

    /* Popup Styles */
    .popup-win,
    .popup-lose {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        max-width: 500px;
        background-color: rgba(0, 0, 0, 0.8);
        display: none;
        justify-content: center;
        align-items: center;
        z-index: 1000;
        animation: fadeIn 0.3s ease-in-out;
    }

    .popup-win .popup-content,
    .popup-lose .popup-content {
        position: relative;
        max-width: 500px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .img-logo {
        width: 100%;
        max-width: 80px;
        height: 100%;

    }

    .img-price {
        width: 100%;
        max-width: 200px;
        height: 100%;
        object-fit: cover;
        margin-top: -10px;
    }

    .img-text {
        width: 100%;
        max-width: 100px;
        height: 100%;

    }

    .img-layout {
        width: 100%;
        max-width: 300px;
        height: 100%;
        object-fit: cover;
    }

    .img-fix {
        width: 100%;
        max-width: 200px;
        height: 100%;
        object-fit: cover;
    }

    .img-detals {
        width: 100%;
        max-width: 30px;
        height: 100%;
        object-fit: cover;
    }

    #claimbtn img {
        max-width: 200px;
    }

    .btntry {
        max-width: 200px;
    }

    /* Canvas wrapper adjustments */
    .scratch>div>div {
        width: 100%;
        height: 100%;
    }

    .telegram {
        bottom: 7%;
    }

    .telegram img {
        max-width: 180px;
    }
}

/* Max-width 360px */
@media screen and (max-width: 360px) {
    .logo {
        top: 10%;
    }

    .logo img {
        max-width: 130px;
    }

    .text {
        top: 25%;
        left: 50%;
    }

    .text-img {
        max-width: 250px;
    }

    .text2 {
        top: 30%;
        left: 55%;
    }

    .text2-img {
        max-width: 80px;
    }

    .text3 {
        top: 39%;
        left: 64%;
        gap: 3px;
    }

    .text3-img {
        max-width: 82px;
    }

    .text4-img {
        max-width: 14px;
    }

    .scratch {
        top: 60%;
        max-width: 70%;
        gap: 2px;
        padding: 2px;
    }

    .left-gift,
    .middle-gift,
    .right-gift {
        gap: 2px;
    }

    .left-gift img,
    .middle-gift img,
    .right-gift img {
        max-width: 66px;
        width: 100%;
    }

    .btnstart {
        top: 83%;
    }

    .btnstart img {
        max-width: 180px;
    }

    /* Popup Styles */
    .popup-win,
    .popup-lose {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        max-width: 500px;
        background-color: rgba(0, 0, 0, 0.8);
        display: none;
        justify-content: center;
        align-items: center;
        z-index: 1000;
        animation: fadeIn 0.3s ease-in-out;
    }

    .popup-win .popup-content,
    .popup-lose .popup-content {
        position: relative;
        max-width: 500px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap:2px;
    }

    .img-logo {
        width: 100%;
        max-width: 100px;
        height: 100%;

    }

    .img-price {
        width: 100%;
        max-width: 250px;
        height: 100%;
        object-fit: cover;
        
    }

    .img-text {
        width: 100%;
        max-width: 100px;
        height: 100%;
      
    }

    .img-layout {
        width: 100%;
        max-width: 300px;
        height: 100%;
        object-fit: cover;
    }

    .img-fix {
        width: 100%;
        max-width: 120px;
        height: 100%;
        object-fit: cover;
    }

    .img-detals {
        width: 100%;
        max-width: 100px;
        height: 100%;
        object-fit: cover;
    }
    
    

    .popup-win .popup-content .img-text {
        width: 100%;
        max-width: 100px;
        height: 100%;
      
    }

    .img-layout {
        width: 100%;
        max-width: 300px;
        height: 100%;
        object-fit: cover;
    }

    .popup-win .popup-content .img-fix {
        width: 100%;
        max-width: 120px;
        height: 100%;
        object-fit: cover;
    }

    .popup-win .popup-contentS .img-detals {
        width: 100%;
        max-width: 100px;
        height: 100%;
        object-fit: cover;
    }
    #claimbtn img {
        max-width: 200px;
    }

    .btntry {
        max-width: 200px;
    }

    /* Canvas wrapper adjustments */
    .scratch>div>div {
        width: 100%;
        height: 100%;
    }
}