html {
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    margin: 0;
    padding: 0;
    /* Ваш кастомный шрифт */
    font-family: 'GameFont', sans-serif;
}

#unity-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#unity-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

#loading-cover {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: url('background.jpg') center / cover;
    z-index: 9999;
}

/* Удалены старые стили для логотипа и спиннера */
#unity-logo, #unity-progress-bar-empty, .spinner {
    display: none !important;
}

.loading-percentage {
    font-size: 48px;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 20px;
}

.progress-container {
    width: 80%;
    max-width: 500px;
    height: 30px;
    background: rgba(217, 217, 217, 0.3);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 
        0 4px 10px rgba(0,0,0,0.2),
        inset 0 0 8px rgba(0,0,0,0.1);
}

.progress-bar {
    height: 100%;
    background: rgb(253, 54, 212);
    border-radius: 15px;
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 
        inset 0 0 10px rgba(217,217,217,0.3),
        0 0 15px rgba(253, 54, 212, 0.5);
}