* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

body {
    background: #000000;
    overflow: hidden;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#unity-container {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;

    display: flex;
    align-items: stretch;
    justify-content: center;
}

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

#unity-loading-bar {
    position: fixed;
    left: 0;
    bottom: 120px;      
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;

    pointer-events: none;
    z-index: 10;
}

#unity-logo {
    display: none;      
}

#unity-background {
    width: calc(100% - 100px);
    max-width: 360px;
    height: 48px;

    background: url('progress_back.png') no-repeat center;
    background-size: 100% 100%;

    position: relative;
    margin: 0 auto;
}

#unity-progress-bar-empty {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);

    width: calc(100% - 50px);   
    max-width: 550px;
    height: 18px;

    background: url('progress-bar-empty-dark.png') no-repeat center;
    background-size: cover;

    border-radius: 12px;
    overflow: hidden;
    margin: 0;
}

#unity-progress-bar-full {
    width: 0%;
    height: 100%;

    background: url('progress-bar-full-dark.webp') no-repeat center;
    background-size: cover;

    border-radius: 12px;
    transition: width 0.3s ease;
}

#loading-text {
    position: fixed;
    left: 0;
    bottom: 40px;  
    width: 100%;

    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);

    pointer-events: none;
    z-index: 10;
}

#unity-warning {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;

    background: #ffff00;
    color: #000000;
    font-size: 14px;
    text-align: center;

    padding: 10px;
    display: none;
}

@media (max-width: 768px) {
    #unity-loading-bar {
        bottom: 90px;
    }

    #unity-background {
        width: calc(100% - 40px);
        max-width: 360px;
        height: 40px;
    }

    #unity-progress-bar-empty {
        width: calc(100% - 60px);
        height: 20px;
    }

    #unity-progress-bar-full {
        height: 20px;
    }

    #loading-text {
        font-size: 16px;
        bottom: 24px;
    }
}
