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

body {
    overflow: hidden;
    overscroll-behavior: none;
}

.container {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: black;

}

.background {
    position: relative;
    width: 550px;
    height: 100vh;
    overflow: hidden;
}

.background img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.main-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.logo {
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo img {
    width: 100%;
    max-width: 150px;
    height: 100%;
    object-fit: cover;
}

.effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.effect img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.text {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.text img {
    width: 100%;
    max-width: 320px;
    height: 100%;
    object-fit: cover;
}

.frame {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    cursor: pointer;
}

.frame img {
    width: 100%;
    max-width: 400px;
    height: 100%;
    object-fit: cover;
}

.spin {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.spin img {
    width: 100%;
    max-width: 400px;
    height: 100%;
    object-fit: cover;
    transform-origin: 50% 50%;
    cursor: pointer;
    pointer-events: auto;
}

.pointer {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 16;
}

.pointer img {
    width: 100%;
    max-width: 70px;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.buttonspin {
    position: absolute;
    top: 83%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
}

.buttonspin img {
    width: 100%;
    max-width: 200px;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    animation: zoom 2s ease-in-out infinite;
}

@keyframes zoom {
    from {
        transform: scale(1.2);
    }

    to {
        transform: scale(1);
    }
}

.modelphone {
    position: absolute;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 550px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    z-index: 20;
    pointer-events: none;
}

.modelphone img {
    width: 60%;
    max-width: 250px;
    height: auto;
    object-fit: contain;
}

.modelphone .slot1 {
    transform: translateY(50px);
}

.footer {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
}

.footer img {
    width: 100%;
    max-width: 550px;
    height: auto;
    object-fit: contain;
}

/* ── POPOUTS (TRY AGAIN / WIN) ── */
.popout-try,
.popout-win {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    overflow: hidden;
    z-index: 100;
    background-color: rgba(0, 0, 0, 0.4);
}

.popout-active .background img,
.popout-active .main-content {
    filter: blur(2px);
    transition: filter 0.3s ease;
}

.popout-message {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 101;
    cursor: pointer;
}

.popout-message img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 20px;
    object-fit: contain;
}

.popout-button {
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 15px;
    z-index: 102;
}

.popout-try .popout-button img {
    width: 48%;
    max-width: 200px;
    height: auto;
    object-fit: contain;
    cursor: pointer;
    animation: zoom 2s ease-in-out infinite;
}

.popout-win .popout-button img {
    width: 70%;
    max-width: 230px;
    height: auto;
    object-fit: contain;
    cursor: pointer;
    animation: zoom 2s ease-in-out infinite;
}

.popout-button img:hover {
    transform: scale(1.05);
}

.popout-button img:active {
    transform: scale(0.95);
}

/* Mobile */
@media (max-width: 440px) {
    .logo {
        top: 7%;
    }

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

    .text {
        top: 20%;
        width: 100%;
    }

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

    .frame,
    .spin {
        top: 35%;
    }

    .pointer {
        top: 35%;
    }

    .frame img {
        max-width: 83vw;
    }

    .spin img {
        max-width: 90vw;
    }

    .pointer img {
        max-width: 60px;
    }

    .buttonspin {
        top: 81%;
    }

    .buttonspin img {
        max-width: 150px;
    }

    .popout-message img {
        max-width: 80vw;
    }

    .popout-button {
        top: 70%;
        width: 90vw;
    }

    .popout-try .popout-button img,
    .popout-win .popout-button img {
        max-width: 200px;
    }
}

/* Mobile */
@media (max-width: 428px) {

    .buttonspin {
        top: 82%;
    }

    .buttonspin img {
        max-width: 150px;
    }
}

@media (max-width: 390px) {
    .text {
        top: 20%;
    }

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

    .pointer {
        top: 35%;
    }

    .buttonspin {
        top: 82%;
    }

    .buttonspin img {
        max-width: 140px;
    }
}

@media (max-width: 360px) {
    .logo {
        top: 6%;
    }

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

    .text {
        top: 16%;
    }

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



    .pointer {
        top: 35%;
    }

    .spin img {
        max-width: 85vw;
    }

    .buttonspin {
        top: 82%;
    }

    .buttonspin img {
        max-width: 120px;
    }
}