html, body {
    overscroll-behavior: none; 
    overscroll-behavior-x: none;
    overscroll-behavior-y: none;
    -webkit-overscroll-behavior: none; 
    
    position: fixed; 
    top: 0;
    left: 0;
    /* CHANGE: Use 100% instead of 100vw / 100vh */
    width: 100%;
    height: 100%;
    
    overflow: hidden;
    padding: 0; 
    margin: 0;
    background-color: black;
}

#unity-container { 
    position: absolute; 
    top: 0; 
    left: 0; 
    /* CHANGE: Match the body percentage exactly */
    width: 100%; 
    height: 100%; 
}

#unity-canvas { 
    /* CRITICAL: The !important tag stops Unity from injecting fixed pixel sizes after loading */
    width: 100% !important; 
    height: 100% !important;
    
    background: #231F20;
    display: block; 
    
    touch-action: none; 
    -webkit-user-select: none; 
    user-select: none;
    -webkit-touch-callout: none;
}

/* Loading Bar Elements */
#unity-loading-bar { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: none }
#unity-logo { width: 154px; height: 130px; background: url('unity-logo-dark.png') no-repeat center }
#unity-progress-bar-empty { width: 141px; height: 18px; margin-top: 10px; margin-left: 6.5px; background: url('progress-bar-empty-dark.png') no-repeat center }
#unity-progress-bar-full { width: 0%; height: 18px; margin-top: 10px; background: url('progress-bar-full-dark.png') no-repeat center }

/* Warning / Error Banners */
#unity-warning { position: absolute; left: 50%; top: 5%; transform: translate(-50%); background: white; padding: 10px; display: none; z-index: 999; }
