html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #f2f2f2;
}

/* Канвас занимает всё окно: размер задают только стили, атрибутов width/height у него нет,
   а загрузчик Unity сам подгоняет буфер отрисовки под CSS-размер. */
#unity-container {
  position: fixed;
  inset: 0;
}

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

/* Экран загрузки центрируется относительно окна */
#unity-loading-bar {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(360px, 70vw);
  text-align: center;
  display: none;
}

#unity-logo {
  width: 100%;
  height: 150px;
  margin-bottom: 28px;
  background: url('logo.png') center / contain no-repeat;
}

#unity-progress-bar-empty {
  width: 100%;
  height: 6px;
  background: #d9d9d9;
  border-radius: 3px;
  overflow: hidden;
}

#unity-progress-bar-full {
  width: 0%;
  height: 100%;
  background: #ffd800;
  border-radius: 3px;
  transition: width 0.15s ease-out;
}

/* Показывается вместо полосы, если после возврата с логина сессии всё ещё нет */
#unity-auth-error {
  display: none;
  font-family: sans-serif;
  color: #192632;
}

#unity-auth-error p {
  margin: 0 0 16px;
  font-size: 15px;
}

#unity-auth-retry {
  border: 0;
  padding: 10px 28px;
  font: inherit;
  font-weight: 600;
  color: #192632;
  background: #ffd800;
  border-radius: 4px;
  cursor: pointer;
}

#unity-auth-retry:hover {
  background: #ffe23d;
}

#unity-warning {
  position: absolute;
  left: 50%;
  top: 16px;
  transform: translate(-50%, 0);
  background: white;
  padding: 10px;
  display: none;
  text-align: center;
  font-family: sans-serif;
  border-radius: 4px;
  z-index: 10;
}
