html {
    box-sizing: border-box;
}
*, *:before, *:after {
    box-sizing: inherit;
}
html, body {
    height: 100%;
}
canvas {
    display: block;
}
body {
    margin: 0;
}
#unity-container {
    width: 100%;
    height: 100%;
	position: relative;
}
#unity-canvas {
    width: 100%;
    height: 100%;
    background: #231F20;
}
#loading-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
#unity-loading-bar {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
#unity-logo {
    text-align: center;
}
#unity-logo img {
    max-width: 35vw;
	max-height: 35vh;
}

.light #unity-progress-bar-empty {
    border-color: black;
}
.light #unity-progress-bar-full {
    background: black;
}

#loading-text {
    margin-top: 0px;
    font-size: 26px;
    font-size: clamp(17px, calc(2vw * 0.7 + 12px), 26px);
    font-family: 'DimboRussian', sans-serif;
    font-weight: 400;
    letter-spacing: 0.03em;
    color: #39ff14;
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    text-shadow: 0 0 6px rgba(57, 255, 20, 0.6), 0 0 12px rgba(57, 255, 20, 0.4), 0 0 18px rgba(57, 255, 20, 0.2);
    animation: pulseScale 2s ease-in-out infinite;
}

#loading-text.with-bar {
    margin-top: -11px;
}

#loading-text.show {
    opacity: 0.95;
}

#unity-progress-bar-empty {
    width: 50vw;
    max-width: 500px;
    height: 24px;
    margin: 10px 20px 20px 10px;
    text-align: left;
    border: 1px solid rgba(255, 211, 37, 0.7);
    padding: 2px;
    border-radius: 12px;
}

#unity-progress-bar-full {
    width: 0%;
    height: 100%;
    background: rgba(57, 255, 20, 1);
    border-radius: 10px;
    transition: width 0.15s linear;
    box-shadow: 
        0 0 6px rgba(57, 255, 20, 0.7), 
        0 0 14px rgba(57, 255, 20, 0.5), 
        0 0 24px rgba(57, 255, 20, 0.3);

    animation: barGlowPulse 1.5s ease-in-out infinite;
}

.light #unity-progress-bar-empty {
    border-color: rgba(255, 211, 37, 0.7);
}

.light #unity-progress-bar-full {
    background: rgba(63, 162, 255, 1);
}

@font-face {
    font-family: 'DimboRussian';
    src: url('fonts/dimbo_russian.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@keyframes barGlowPulse {
    0% {
        box-shadow: 0 0 6px rgba(57, 255, 20, 0.7), 0 0 14px rgba(57, 255, 20, 0.5), 0 0 24px rgba(57, 255, 20, 0.3);
    }

    50% {
        box-shadow: 0 0 10px rgba(57, 255, 20, 0.9), 0 0 20px rgba(57, 255, 20, 0.7), 0 0 32px rgba(57, 255, 20, 0.4);
    }

    100% {
        box-shadow: 0 0 6px rgba(57, 255, 20, 0.7), 0 0 14px rgba(57, 255, 20, 0.5), 0 0 24px rgba(57, 255, 20, 0.3);
    }
}

@keyframes pulseScale {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }

    100% {
        transform: scale(1);
    }
}