html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
    font-family: Arial, Helvetica, sans-serif;
}

#unity-container {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background: #000;
}

#unity-canvas {
    display: block;
    width: 100%;
    height: 100%;
    background: #000;
}

#custom-loading-screen {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    opacity: 1;
    transition: opacity 0.8s ease;
}

#splash-video,
#loading-video {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

#loading-video {
    display: none;
}

#loading-progress-container {
    position: absolute;
    left: 50%;
    bottom: 3%;
    transform: translateX(-50%);
    width: min(500px, 70vw);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

#loading-progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

#loading-progress-fill {
    width: 0%;
    height: 100%;
    background: #ffffff;
    border-radius: 999px;
    transition: width 0.15s linear;
}

#loading-percentage {
    font-size: 14px;
    color: white;
    font-weight: bold;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

#custom-loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

#unity-warning {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    z-index: 10000;
}

#unity-footer {
    display: none;
}

#unity-fullscreen-button {
    display: none;
}

#unity-build-title {
    display: none;
}

@media (max-width: 768px) {

    #loading-progress-container {
        width: 70vw;
        bottom: 3%;
    }

    #loading-progress-bar {
        height: 10px;
    }

    #loading-percentage {
        font-size: 12px;
    }
}
