body { padding: 0; margin: 0 }
#unity-container { position: absolute }
#unity-container.unity-desktop { left: 50%; top: 50%; transform: translate(-50%, -50%) }
#unity-container.unity-mobile { position: fixed; width: 100%; height: 100% }
#unity-canvas { background: #231F20 }
.unity-mobile #unity-canvas { width: 100%; height: 100% }
#unity-loading-bar { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: none }
#logo {
    position: relative;
    width: 250px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.box {
    position: absolute;
    width: 100%;
    height: 100%;
}

/* 🔄 Animation de rotation à 20°/seconde */
@keyframes rotateBox {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

#logo1 {
    animation: rotateBox 12s linear infinite;   /* 360° / 30° = 12s pour un tour complet */
    background: url('ShapeLoadingScreen1.png') no-repeat center;
    background-size: contain;
}

#logo2 {
    animation: rotateBox 7.2s linear infinite reverse;   /* 360° / 50° = 7.2s pour un tour complet */
    background: url('ShapeLoadingScreen2.png') no-repeat center;
    background-size: contain;
    width: 50%;
    height: 50%;
}

#logo3 {
    animation: rotateBox 12s linear infinite;   /* 360° / 30° = 12s pour un tour complet */
    background: url('ShapeLoadingScreen3.png') no-repeat center;
    background-size: contain;
    width: 25%;
    height: 25%;
}

#logo4 {
    animation: rotateBox 9s linear infinite reverse;   /* 360° / 40° = 9s pour un tour complet */
    background: url('ShapeLoadingScreen4.png') no-repeat center;
    background-size: contain;
    width: 12.5%;
    height: 12.5%;
}

#unity-progress-bar-empty {
    width: 141px;
    height: 18px;
    margin-top: 100px;
    margin-left: auto;
    margin-right: auto;
    background: url('progress-bar-empty-dark.png') no-repeat center;
    filter: brightness(0.5);
}

#unity-progress-bar-full {
    width: 0%;
    height: 18px;
    margin-top: 10px;
    background: url('progress-bar-full-dark.png') no-repeat center;
    filter: brightness(0.5);
}
#unity-footer { position: relative }
.unity-mobile #unity-footer { display: none }
#unity-logo-title-footer { float:left; width: 102px; height: 38px; background: url('unity-logo-title-footer.png') no-repeat center }
#unity-build-title { float: right; margin-right: 10px; line-height: 38px; font-family: arial; font-size: 18px }
#unity-fullscreen-button { cursor:pointer; float: right; width: 38px; height: 38px; background: url('fullscreen-button.png') no-repeat center }
#unity-warning { position: absolute; left: 50%; top: 5%; transform: translate(-50%); background: white; padding: 10px; display: none }
