/* Загрузчик в стиле UI kit «Command Battle UI»: токены совпадают с Assets/Source/UI Kit/UiPalette.asset. */
:root {
    --ground: #0b1118;
    --control: #2a3a4f;
    --accent: #ffb020;
    --text: #eef3f8;
    --text-muted: #9db0c6;
    --cut: 10px;
    --font: "Liberation Sans", Arial, Helvetica, sans-serif;
}

html {
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
}

html, body {
    height: 100%;
    /* Телефон: без прокрутки страницы и «потяни, чтобы обновить» (Яндекс 1.10.2). */
    overscroll-behavior: none;
}

#unity-canvas {
    touch-action: none;
}

canvas {
    display: block;
}

body {
    margin: 0;
    background: var(--ground);
    color: var(--text);
    font-family: var(--font);
}

body, canvas, #canvas {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -webkit-text-size-adjust: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    overflow: hidden;
}

#unity-container {
    width: 100%;
    height: 100%;
}

#unity-canvas {
    width: 100%;
    height: 100%;
    background: var(--ground);
}

#loading-cover {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--ground);
}

#unity-loading-bar {
    width: min(480px, calc(100% - 32px));
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
}

#unity-logo {
    text-align: center;
}

#unity-logo img {
    width: min(200px, 34vh);
    height: auto;
}

#loading-title {
    margin: 0;
    text-align: center;
    font-size: 34px;
    font-weight: 700;
    color: var(--text);
}

#loading-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

#loading-percent {
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}

/* Дорожка и заполнение — срезанные углы как спрайт ui-cut-10. */
#unity-progress-bar-empty {
    position: relative;
    height: 14px;
    background: var(--control);
    clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
    overflow: hidden;
}

#unity-progress-bar-full {
    width: 0%;
    height: 100%;
    background: var(--accent);
    transition: width 0.2s linear;
}

@media (max-height: 420px) {
    #unity-logo img { width: 120px; }
    #loading-title { font-size: 22px; }
}
