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

html,
body {
    background: #000;
    width: 100%;
    height: 100%;
    overflow: hidden;
}


#bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    
    z-index: 1;
    pointer-events: none;
}

.roulette-container {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 420px;
    
    height: 420px;
    
    transform: translate(-50%, -50%);
    z-index: 2;
}

#wheel {
    position: absolute;
    top: 9%;
    
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform-origin: center;
    transition: transform 6.5s cubic-bezier(.15, .85, .3, 1);
}

#pointer {
    position: absolute;
    top: -120px;
   
    left: 50%;
    width: 320px;
    
    height: auto;
    transform: translateX(-50%);
    z-index: 5;
    pointer-events: none;
}

/* --- APENAS PARA CELULAR --- */
@media (max-width: 768px) {
    #bg {
        object-fit: cover;
        
    }

    .roulette-container {
        width: 85vw;
        
        height: 85vw;
        
        top: 55%;
        
    }

    #wheel {
        top: -1%;
        
    }

#pointer {
    width: 55%;
    
    top: -27%;
    
    left: 50%;
    transform: translateX(-50%);
}
}

.roulette-ready #wheel {
    opacity: 1;
}