* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
    position: fixed;
    width: 100%;
}



.container {
    position: absolute;
    width: 100%;
    height: 100vh;
    z-index: 1;

}

.BG {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    min-height: 100%;
    object-fit: cover;
    z-index: 0;
}

.logo {
    position: absolute;
    z-index: 2;
    top: 5%;
    left: 45%;
    transform: translateX(-50%, -50%);
    text-align: center;
    animation: drop-replace 0.8s ease-out;
    display: flex;
    flex-direction: row;
    gap: 50px;
}

.logo img {
    width: 100%;
    max-width: 120px;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.6));
    animation: glow 2s ease-in-out infinite alternate;

}

@keyframes glow {
    from {
        filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.6));
    }

    to {
        filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.9));
    }
}

@keyframes drop-replace {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }

    60% {
        transform: translateY(0);
        opacity: 1;
    }

    80% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

.text {
    position: absolute;
    z-index: 2;
    top: 20%;
    left: 45%;
    transform: translateX(-50%, -50%);
    margin-bottom: 15px;
    text-align: center;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.text img {
    width: 95%;
    max-width: 320px;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.5));
}

.text2 {
    position: absolute;
    z-index: 2;
    top: 30%;
    left: 45%;
    transform: translateX(-50%, -50%);
    margin-bottom: 15px;
    text-align: center;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.text2 img {
    width: 95%;
    max-width: 320px;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.5));
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.point {
    position: absolute;
    z-index: 993;
    top: 40%;
    left: 40%;
    transform: translateX(-50%, -50%);
    text-align: center;
    animation: bounce 2s ease-in-out infinite;
}

.point img {
    width: 90%;
    max-width: 480px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.scratch-card {
    position: absolute;
    z-index: 3;
    width: 95%;
    max-width: 400px;
    top: 37%;
    left: 42%;
    transform: translateX(-50%, -50%);
    text-align: center;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.scratch-card img {
    width: 100%;
    object-fit: cover;
}

.scratch-card-frame {
    position: absolute;
    z-index: 994;
    width: 100%;
    max-width: 300px;
    top: 44%;
    left: 45%;
    transform: translateX(-50%, -50%);
    text-align: center;
    animation: fadeInUp 1s ease-out 0.6s both;
    cursor: pointer;
    display: inline-block;
}

.scratch-card-frame img {
    width: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    pointer-events: none;
}

.scratch-card-protection {
    position: absolute;
    z-index: 996;
    width: 100%;
    max-width: 300px;
    top: 44.2%;
    left: 45%;
    transform: translateX(-50%, -50%);
    text-align: center;
    animation: fadeInUp 1s ease-out 0.6s both;
    cursor: pointer;
    display: inline-block;
}

.scratch-card-protection img {
    content: url('./images/Scratch_Protection.png');
    width: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    pointer-events: none;
}


.scratch-card img:last-child:hover {
    opacity: 0.95;
}

.scratch-result {
    position: absolute;
    z-index: 995;
    width: 100%;
    max-width: 300px;
    top: 64%;
    left: 45%;
    transform: translateX(-50%, -50%);
    margin-top: -9%;
    text-align: center;
    display: none;
    margin-left: auto;
    margin-right: auto;
    pointer-events: none;
    align-items: center;
    justify-content: center;
}

.scratch-result h1 {
    font-size: 25px;
    font-weight: 900;
    color: #ffffff;
    margin: 0;
    padding: 0;
    text-align: center;
    width: 100%;
}

.scratch-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 997;
    pointer-events: auto;
    cursor: grab;
    cursor: -webkit-grab;
    touch-action: none;
    user-select: none;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.popup-win {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;

    animation: fadeIn 0.5s ease-out;
}

.popup-win-content img {
    position: absolute;
    max-width: 350px;
    max-height: 60vh;
    object-fit: contain;
    top: 40%;
    left: 44%;
    transform: translateX(-50%, -50%);
}

.popup-win a img {
    cursor: pointer;
    transition: transform 0.3s ease;
    width: 100%;
    max-width: 350px;
}

.popup-win a:hover {
    transform: scale(1.05);
}

.popup-win a:active {
    transform: scale(0.95);
}

.button {
    position: absolute;
    top: 62%;
    left: 38%;
    transform: translateX(-50%, -50%);
    display: flex;
    width: 330px;
    cursor: pointer;
    z-index: 99100;
    gap: 40px;
}

.button img {
    position: relative;
    width: 40%;
    height: 100%;
    object-fit: cover;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Floating coins animation */
@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.7;
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 1;
    }
}


.timer {
    position: absolute;
    display: flex;
    justify-content: center;
    width: 330px;
    margin-top: 230px;
    user-select: none;
    z-index: 2;
}

.timer img {
    width: 40%;
}

#timer-container {
    text-align: center;
    font-family: Arial, sans-serif;
    position: absolute;
    margin-top: 4px;
}

#time-control {
    font-size: 18px;
    font-weight: 900;
    margin: 6px 0;
    -webkit-text-stroke: 1px #fff200;
    background: linear-gradient(to bottom, #ff0000, #000000);
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
}

.telegram {
    position: absolute;
    display: flex;
    justify-content: center;
    width: 330px;
    bottom: 10px;
    cursor: pointer;
    z-index: 2;
}

.telegram img {
    width: 38%;
}

/* Responsive Styles for Mobile Devices */

/* Max-width: 768px - Tablets and Mobile */
@media screen and (max-width: 1280px) {
  
    .logo {
        top: 3%;
        left: 50%;
        transform: translateX(-50%);
        gap: 20px;
    }

    .logo img {
        max-width: 85px;
    }

    .text {
        top: 18%;
        left: 40%;
        transform: translateX(-50%);
    }

    .text img {
        max-width: 220px;
    }

    .text2 {
        top: 28%;
        left: 40%;
        transform: translateX(-50%);
    }

    .text2 img {
        max-width: 220px;
    }

    .point {
        top: 38%;
        left: 40%;
        transform: translateX(-50%);
    }

    .point img {
        max-width: 320px;
    }

    .scratch-card {
        top: 37%;
        left: 41%;
        transform: translateX(-50%);
        max-width: 280px;
        
    }

    .scratch-card-frame {
        top: 43%;
        left: 42%;
        transform: translateX(-50%);
        max-width: 250px;
    }

    .scratch-card-protection {
        top: 43%;
        left: 42%;
        transform: translateX(-50%);
        max-width: 250px;
    }

    .scratch-result {
        top: 60%;
        left: 53%;
        transform: translateX(-50%);
        max-width: 200px;

    }

    .scratch-result h1 {
        font-size: 18px;
    }

    .popup-win-content img {
        left: 50%;
        transform: translateX(-50%);
        max-width: 300px;
    }

    .button {
        top: 64%;
        left: 46%;
        transform: translateX(-50%);
        width: 260px;
        gap: 25px;
    }
}
@media screen and (max-width: 1024px) {
  
    .logo {
        top: 3%;
        left: 50%;
        transform: translateX(-50%);
        gap: 20px;
    }

    .logo img {
        max-width: 85px;
    }

    .text {
        top: 18%;
        left: 35%;
        transform: translateX(-50%);
    }

    .text img {
        max-width: 220px;
    }

    .text2 {
        top: 28%;
        left: 35%;
        transform: translateX(-50%);
    }

    .text2 img {
        max-width: 220px;
    }

    .point {
        top: 38%;
        left: 30%;
        transform: translateX(-50%);
    }

    .point img {
        max-width: 320px;
    }

    .scratch-card {
        top: 37%;
        left: 32%;
        transform: translateX(-50%);
        max-width: 280px;
        
    }

    .scratch-card-frame {
        top: 42%;
        left: 35%;
        transform: translateX(-50%);
        max-width: 240px;
    }

    .scratch-card-protection {
        top: 42%;
        left: 35%;
        transform: translateX(-50%);
        max-width: 240px;
    }

    .scratch-result {
        top: 51%;
        left: 50%;
        transform: translateX(-50%);
        max-width: 200px;

    }

    .scratch-result h1 {
        font-size: 18px;
    }

    .popup-win-content img {
        left: 50%;
        transform: translateX(-50%);
        max-width: 300px;
    }

    .button {
        top: 60%;
        left: 42%;
        transform: translateX(-50%);
        width: 260px;
        gap: 25px;
    }
}
@media screen and (max-width: 768px) {
    .BG {
        content: url('./images/BGmob.png');
    }
    .logo {
        top: 3%;
        left: 50%;
        transform: translateX(-50%);
        gap: 20px;
    }

    .logo img {
        max-width: 85px;
    }

    .text {
        top: 18%;
        left: 35%;
        transform: translateX(-50%);
    }

    .text img {
        max-width: 220px;
    }

    .text2 {
        top: 28%;
        left: 35%;
        transform: translateX(-50%);
    }

    .text2 img {
        max-width: 220px;
    }

    .point {
        top: 38%;
        left: 30%;
        transform: translateX(-50%);
    }

    .point img {
        max-width: 320px;
    }

    .scratch-card {
        top: 37%;
        left: 32%;
        transform: translateX(-50%);
        max-width: 280px;
        
    }

    .scratch-card-frame {
        top: 43%;
        left: 35%;
        transform: translateX(-50%);
        max-width: 240px;
    }

    .scratch-card-protection {
        top: 43%;
        left: 35%;
        transform: translateX(-50%);
        max-width: 240px;
    }

    .scratch-result {
        top: 51%;
        left: 50%;
        transform: translateX(-50%);
        max-width: 200px;

    }

    .scratch-result h1 {
        font-size: 18px;
    }

    .popup-win-content img {
        left: 50%;
        transform: translateX(-50%);
        max-width: 300px;
    }

    .button {
        top: 60%;
        left: 42%;
        transform: translateX(-50%);
        width: 260px;
        gap: 25px;
    }
}

@media screen and (max-width: 668px) {

    .logo {
        top: 3%;
        left: 50%;
        transform: translateX(-50%);
        gap: 20px;
    }

    .logo img {
        max-width: 85px;
    }

    .text {
        top: 18%;
        left: 35%;
        transform: translateX(-50%);
    }

    .text img {
        max-width: 220px;
    }

    .text2 {
        top: 28%;
        left: 35%;
        transform: translateX(-50%);
    }

    .text2 img {
        max-width: 220px;
    }

    .point {
        top: 38%;
        left: 30%;
        transform: translateX(-50%);
    }

    .point img {
        max-width: 320px;
    }

    .scratch-card {
        top: 37%;
        left: 32%;
        transform: translateX(-50%);
        max-width: 280px;
        
    }

    .scratch-card-frame {
        top: 43%;
        left: 35%;
        transform: translateX(-50%);
        max-width: 240px;
    }

    .scratch-card-protection {
        top: 43%;
        left: 35%;
        transform: translateX(-50%);
        max-width: 240px;
    }

    .scratch-result {
        top: 51%;
        left: 50%;
        transform: translateX(-50%);
        max-width: 200px;

    }

    .scratch-result h1 {
        font-size: 18px;
    }

    .popup-win-content img {
        left: 50%;
        transform: translateX(-50%);
        max-width: 300px;
    }

    .button {
        top: 60%;
        left: 42%;
        transform: translateX(-50%);
        width: 260px;
        gap: 25px;
    }
}
@media screen and (max-width: 568px) {

    .logo {
        top: 3%;
        left: 50%;
        transform: translateX(-50%);
        gap: 20px;
    }

    .logo img {
        max-width: 85px;
    }

    .text {
        top: 18%;
        left: 32%;
        transform: translateX(-50%);
    }

    .text img {
        max-width: 220px;
    }

    .text2 {
        top: 28%;
        left: 32%;
        transform: translateX(-50%);
    }

    .text2 img {
        max-width: 220px;
    }

    .point {
        top: 38%;
        left: 25%;
        transform: translateX(-50%);
    }

    .point img {
        max-width: 320px;
    }

    .scratch-card {
        top: 37%;
        left: 28%;
        transform: translateX(-50%);
        max-width: 280px;
        
    }

    .scratch-card-frame {
        top: 43%;
        left: 31%;
        transform: translateX(-50%);
        max-width: 240px;
    }

    .scratch-card-protection {
        top: 43%;
        left: 31%;
        transform: translateX(-50%);
        max-width: 240px;
    }

    .scratch-result {
        top: 50%;
        left: 52%;
        transform: translateX(-50%);
        max-width: 200px;

    }

    .scratch-result h1 {
        font-size: 18px;
    }

    .popup-win-content img {
        left: 50%;
        transform: translateX(-50%);
        max-width: 300px;
    }

    .button {
        top: 60%;
        left: 42%;
        transform: translateX(-50%);
        width: 260px;
        gap: 25px;
    }
}
/* Max-width: 430px - Large Mobile */
@media screen and (max-width: 430px) {
    .BG {
        content: url('./images/BGmob.png');
    }

    .logo {
        top: 3%;
        left: 50%;
        transform: translateX(-50%);
        gap: 20px;
    }

    .logo img {
        max-width: 85px;
    }

    .text {
        top: 18%;
        left: 23%;
        transform: translateX(-50%,-50%);
    }

    .text img {
        max-width: 220px;
    }

    .text2 {
        top: 28%;
        left: 23%;
        transform: translateX(-50%,-50%);
    }

    .text2 img {
        max-width: 220px;
    }

    .point {
        top: 38%;
        left: 13%;
        transform: translateX(-50%,-50%);
    }

    .point img {
        max-width: 320px;
    }

    .scratch-card {
        top: 37%;
        left: 18%;
        transform: translateX(-50%,-50%);
        max-width: 280px;
    }

    .scratch-card-frame {
        top: 43%;
        left: 23%;
        transform: translateX(-50%,-50%);
        max-width: 240px;
    }

    .scratch-card-protection {
        top: 43%;
        left: 23%;
        transform: translateX(-50%,-50%);
        max-width: 240px;
    }

    .scratch-result {
        top: 49%;
        left: 50%;
        transform: translateX(-50%,-50%);
        max-width: 200px;

    }

    .scratch-result h1 {
        font-size: 18px;
    }

    .popup-win-content img {
        left: 50%;
        transform: translateX(-50%,-50%);
        max-width: 300px;
    }

    .button {
        top: 64%;
        left: 38%;
        transform: translateX(-50%,-50%);
        width: 260px;
        gap: 25px;
    }
}
@media screen and (max-width: 414px) {
   
    .logo {
        top: 3%;
        left: 50%;
        transform: translateX(-50%,-50%);
        gap: 20px;
    }

    .logo img {
        max-width: 85px;
    }

    .text {
        top: 18%;
        left: 25%;
        transform: translateX(-50%,-50%);
    }

    .text img {
        max-width: 220px;
    }

    .text2 {
        top: 28%;
        left: 25%;
        transform: translateX(-50%,-50%);
    }

    .text2 img {
        max-width: 220px;
    }

    .point {
        top: 39%;
        left: 10%;
        transform: translateX(-50%,-50%);
    }

    .point img {
        max-width: 320px;
    }

    .scratch-card {
        top: 37%;
        left: 15%;
        transform: translateX(-50%,-50%);
        max-width: 280px;
    }

    .scratch-card-frame {
        top: 44%;
        left: 20%;
        transform: translateX(-50%,-50%);
        max-width: 240px;
    }

    .scratch-card-protection {
        top: 44%;
        left: 20%;
        transform: translateX(-50%,-50%);
        max-width: 240px;
    }

    .scratch-result {
        top: 51%;
        left: 50%;
        transform: translateX(-50%,-50%);
        max-width: 200px;

    }

    .scratch-result h1 {
        font-size: 18px;
    }

    .popup-win-content img {
        left: 50%;
        transform: translateX(-50%,-50%);
        max-width: 300px;
    }

    .button {
        top: 66%;
        left: 37%;
        transform: translateX(-50%);
        width: 260px;
        gap: 25px;
    }
}
/* Max-width: 390px - Standard Mobile */
@media screen and (max-width: 390px) {
   
        .logo {
            top: 3%;
            left: 50%;
            transform: translateX(-50%,-50%);
            gap: 20px;
        }

        .logo img {
            max-width: 85px;
        }

        .text {
            top: 18%;
            left: 25%;
            transform: translateX(-50%,-50%);
        }

        .text img {
            max-width: 220px;
        }

        .text2 {
            top: 28%;
            left: 25%;
            transform: translateX(-50%,-50%);
        }

        .text2 img {
            max-width: 220px;
        }

        .point {
            top: 39%;
            left: 10%;
            transform: translateX(-50%,-50%);
        }

        .point img {
            max-width: 320px;
        }

        .scratch-card {
            top: 37%;
            left: 14%;
            transform: translateX(-50%,-50%);
            max-width: 280px;
        }

        .scratch-card-frame {
            top: 44%;
            left: 20%;
            transform: translateX(-50%,-50%);
            max-width: 240px;
        }

        .scratch-card-protection {
            top: 44%;
            left: 20%;
            transform: translateX(-50%,-50%);
            max-width: 240px;
        }

        .scratch-result {
            top: 51%;
            left: 50%;
            transform: translateX(-50%,-50%);
            max-width: 200px;

        }

        .scratch-result h1 {
            font-size: 18px;
        }

        .popup-win-content img {
            left: 50%;
            transform: translateX(-50%,-50%);
            max-width: 300px;
        }

        .button {
            top: 66%;
            left: 37%;
            transform: translateX(-50%);
            width: 260px;
            gap: 25px;
        }
    }

    /* Max-width: 360px - Small Mobile */
    @media screen and (max-width: 360px) {
        .logo {
            top: 3%;
            left: 50%;
            transform: translateX(-50%);
            gap: 20px;
        }

        .logo img {
            max-width: 80px;
        }

        .text {
            top: 19%;
            left: 20%;
            transform: translateX(-50%);
        }

        .text img {
            max-width: 200px;
        }

        .text2 {
            top: 29%;
            left: 20%;
            transform: translateX(-50%);
        }

        .text2 img {
            max-width: 220px;
        }

        .point {
            top: 39%;
            left: 5%;
            z-index: 999;
            transform: translateX(-50%);
        }

        .point img {
            max-width: 320px;
        }

        .scratch-card {
            top: 37%;
            left: 10%;
            transform: translateX(-50%);
            max-width: 280px;
        }

        .scratch-card-frame {
            top: 44%;
            left: 15%;
            transform: translateX(-50%);
            max-width: 240px;
        }

        .scratch-card-protection {
            top: 44%;
            left: 15%;
            transform: translateX(-50%);
            max-width: 240px;
        }

        .scratch-result {
            top: 51%;
            left: 50%;
            transform: translateX(-50%);
            max-width: 200px;

        }

        .scratch-result h1 {
            font-size: 18px;
        }

        .popup-win-content img {
            left: 50%;
            transform: translateX(-50%);
            max-width: 300px;
        }

        .button {
            top: 69%;
            left: 37%;
            transform: translateX(-50%);
            width: 260px;
            gap: 25px;
        }
    }