:root {
    --_--text-size: 22px;
    --_--text-weight: 700;
    --_--text-contur: 0px;
    --_--text-contur-color: #666;

    --_--text-hint-size: 18px;
    --_--text-hint-weight: 700;
    --_--text-contur-hint: 0px;
    --_--text-contur-hint-color: #000;
}

html {
    box-sizing: border-box;
}

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

html,
body {
    height: 100%;
    touch-action: none;
}

canvas {
    display: block;
}

body {
    margin: 0;
}

#unity-container {
    width: 100%;
    height: 100%;
    position: relative;
}

#unity-canvas {
    width: 100%;
    height: 100%;

    background: {
            {
                {
                BACKGROUND_COLOR
            }
        }
    }

    ;
    touch-action: none;
}

#loading-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#unity-loading-bar {
    position: absolute;
    bottom: 7%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

#unity-logo {
    text-align: center;
    pointer-events: none;
}

#unity-logo img {
    max-width: 80%;
    max-height: 80%;
    pointer-events: none;
}

/* ── Glass tube progress bar ───────────────────────────────────────────────── */
#unity-progress-bar-empty-custom {
    width: 66%;
    max-width: 480px;
    min-width: 200px;
    height: 24px;
    margin: 8px 20px 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid rgba(255, 255, 255, 0.45);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        inset 0 -1px 0 rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
}

/* Glass highlight at top of tube */
#unity-progress-bar-empty-custom::before {
    content: '';
    position: absolute;
    top: 1px;
    left: 5px;
    right: 5px;
    height: 50%;
    background: linear-gradient(rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0));
    border-radius: 0 0 50% 50%;
    pointer-events: none;
    z-index: 2;
}

/* Liquid fill */
#unity-progress-bar-full-custom {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #12be1e 0%, #14d320 28%, #4ef85a 52%, #18d626 76%, #12be1e 100%);
    border-radius: 18px;
    transition: width 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    box-shadow: 0 0 18px rgba(20, 211, 32, 0.78);
    overflow: hidden;
}

/* Shimmer sweep across liquid */
#unity-progress-bar-full-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -60%;
    width: 55%;
    height: 100%;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.32) 50%,
            rgba(255, 255, 255, 0) 100%);
    animation: progress-shimmer 2.2s infinite;
    pointer-events: none;
}

/* Top reflection on liquid */
#unity-progress-bar-full-custom::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0));
    border-radius: 18px 18px 0 0;
    pointer-events: none;
}

@keyframes progress-shimmer {
    0% {
        left: -60%;
    }

    100% {
        left: 110%;
    }
}

/* ── Loading text elements ────────────────────────────────────────────────── */
#loading-starting-text {
    color: rgba(255, 255, 255, 0.96);
    font-family: 'Nunito', Arial, sans-serif;
    font-size: var(--_--text-size);
    font-weight: var(--_--text-weight);
    text-align: center;
    text-shadow:
        calc(-1 * var(--_--text-contur)) calc(-1 * var(--_--text-contur)) 2px var(--_--text-contur-color),
        0 calc(-1 * var(--_--text-contur)) 2px var(--_--text-contur-color),
        var(--_--text-contur) calc(-1 * var(--_--text-contur)) 2px var(--_--text-contur-color),
        calc(-1 * var(--_--text-contur)) 0 2px var(--_--text-contur-color),
        var(--_--text-contur) 0 2px var(--_--text-contur-color),
        calc(-1 * var(--_--text-contur)) var(--_--text-contur) 2px var(--_--text-contur-color),
        0 var(--_--text-contur) 2px var(--_--text-contur-color),
        var(--_--text-contur) var(--_--text-contur) 2px var(--_--text-contur-color),
        0 0 8px rgba(0, 0, 0, 0.5);
    margin-bottom: 0px;
    letter-spacing: 0.3px;
}

#loading-hint {
    color: white;
    font-family: 'Nunito', Arial, sans-serif;
    font-size: var(--_--text-hint-size);
    font-weight: var(--_--text-hint-weight);
    text-align: center;
    text-shadow:
        calc(-1 * var(--_--text-contur-hint)) calc(-1 * var(--_--text-contur-hint)) 1px var(--_--text-contur-hint-color),
        0 calc(-1 * var(--_--text-contur-hint)) 1px var(--_--text-contur-hint-color),
        var(--_--text-contur-hint) calc(-1 * var(--_--text-contur-hint)) 1px var(--_--text-contur-hint-color),
        calc(-1 * var(--_--text-contur-hint)) 0 1px var(--_--text-contur-hint-color),
        var(--_--text-contur-hint) 0 1px var(--_--text-contur-hint-color),
        calc(-1 * var(--_--text-contur-hint)) var(--_--text-contur-hint) 1px var(--_--text-contur-hint-color),
        0 var(--_--text-contur-hint) 1px var(--_--text-contur-hint-color),
        var(--_--text-contur-hint) var(--_--text-contur-hint) 1px var(--_--text-contur-hint-color),
        0 0 8px rgba(0, 0, 0, 0.5);
    max-width: 380px;
    padding: 0 10px;
    margin-top: 0px;
    line-height: 1.2;
}

.spinner,
.spinner:after {
    border-radius: 50%;
    width: 5em;
    height: 5em;
}

.spinner {
    margin: 10px;
    font-size: 10px;
    position: relative;
    text-indent: -9999em;
    border-top: 1.1em solid rgba(255, 255, 255, 0.2);
    border-right: 1.1em solid rgba(255, 255, 255, 0.2);
    border-bottom: 1.1em solid rgba(255, 255, 255, 0.2);
    border-left: 1.1em solid #ffffff;
    transform: translateZ(0);
    animation: spinner-spin 1.1s infinite linear;
}

@keyframes spinner-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}



.spinner {
    border-top: 1.1em solid rgba(255, 211, 37, 0.2);
    border-right: 1.1em solid rgba(255, 211, 37, 0.2);
    border-bottom: 1.1em solid rgba(255, 211, 37, 0.2);
    border-left: 1.1em solid rgba(63, 162, 255, 1);
}

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

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

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

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



#unity-progress-bar-empty {
    height: 24px;
}


#unity-progress-bar-empty {
    border-radius: 12px;
}

#unity-progress-bar-full {
    border-radius: 10px;
    transition: width 0.5s ease;
}
