<!DOCTYPE html >
<html lang="en-us" >
<head >
<meta charset="utf-8" >
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" >
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no" >
<link rel="stylesheet" href="./style.css" >
<!-- Yandex Games SDK -->
<script src="/sdk.js" > </script >

<style >
html {
    box-sizing: border-box;
}

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

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

canvas {
    display: block;
}

body {
    margin: 0;
}

#unity-container {
    /* Фиксируем соотношение сторон 16:9 */
    display: flex;
    aspect-ratio: 16/9;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    position: relative;
    background-color: #231F20;
}

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

{

{

{
    BACKGROUND_COLOR
}

}
}
;
}

#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;
    pointer-events: none;
}

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

#unity-progress-bar-empty {
    width: 40%;
    height: 24px;
    margin: 10px 20px 20px 10px;
    text-align: left;
    border: 1px solid white;
    padding: 2px;
}

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

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

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

.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);
    }
}

</style >
<!-- Additional head modules -->
</head >
<body class="dark" >

<div id="unity-container" class="unity-desktop" >
<canvas id="unity-canvas" tabindex="-1" > </canvas >
</div >
<div id="loading-cover" style="display:none;" >
<div id="unity-loading-bar" >
<div id="unity-logo" > <img src="logo.png" > </div >
<div id="unity-progress-bar-empty" style="display: none;" >
<div id="unity-progress-bar-full" > </div >
</div >
<div class="spinner" > </div >
</div >
</div >

<script >
// Custom script logic goes here, if needed
</script >
</body >
</html >
