*, *:before, *:after {
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
    font-size: 0;
    box-sizing: inherit;
}

html, body {
    height: 100%;
    background-color: #93a5ee;
    /* REMOVE SCROLL BAR */
    overflow: hidden;
    /* REMOVE IOS LONG TAP */
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    /* BACKGROUND BEHIND UNITY CONTAINER */
    background-position: center center;
    background-size: cover;
    /*background-image: url('../cover.png');
    filter: brightness(0.5);*/
    background-image: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.9)), url('../cover.png'); 
}

img {
    /* PREVENT IMAGE DRAG AND DROP */
    pointer-events: none;
}

#unity-container {
    display: block;
    position: fixed;
    width: 100%;
    height: 100%;
}

#unity-canvas {
    display: flex;
    width: 100%;
    height: 100%;
    background: none;
}

#diagnostics-icon {
    position: fixed;
    bottom: 10px;
    right: 0px;
}

#diagnostics-icon, #diagnostics-overlay * {
    font-size: 16px;
    pointer-events: all;
}

#diagnostics-btn {
    min-width: 40px;
    min-height: 40px;
}

#unity-loading-bar {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90vw;
    max-height: 90vh;
    padding: 20px;
    box-sizing: border-box;
}

#unity-logo {
    box-sizing: border-box; /* Оставляем, хотя может и не понадобиться */
    width: min(768px, 40vw); /* Ширина не более 768px и не более 80% от ширины вьюпорта */
    /* УДАЛИТЕ высоту (height) */
    aspect-ratio: 768 / 432; /* Задает пропорции 768:432 (или 16:9, если упростить) */
    
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-image: url('../cover.png');
    border-radius: 10px;
    pointer-events: none;
}


#unity-progress-bar-empty {
    margin-left: auto;
    margin-right: auto;
    width: min(1104px, 70vw);
    height: 30px;
    margin-top: 40px;
    background: url('bacground_load_bar.png') no-repeat center;
    background-size: 100% 100%;
    position: relative;
    overflow: hidden;
    padding-left: 3px; /* фиксированный отступ слева вместо margin у fill */
}

#unity-progress-bar-full {
    width: 0%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    margin-left: 0.6%;
    background: url('full_load_bar.png') no-repeat left center;
    background-size: 99% 90%;
    box-sizing: border-box;
}

/* Domain protection - removed (теперь используется бесконечная загрузка вместо сообщения об ошибке) */
