@font-face {
  font-family: 'Cera Round Pro';
  src: url('../../assets/TYPEMATES_CERAROUNDPRO-BOLD_1.OTF') format('opentype');
  font-weight: 400 700;
  font-style: normal;
}

@font-face {
  font-family: 'Cera Round Pro';
  src: url('../../assets/TYPEMATES_CERAROUNDPRO-BLACK_1.OTF') format('opentype');
  font-weight: 800 900;
  font-style: normal;
}

body { padding: 0; margin: 0; background: #6491F9; }

#unity-container { position: absolute; }
#unity-container.unity-desktop { left: 50%; top: 50%; transform: translate(-50%, -50%); }
#unity-container.unity-mobile { position: fixed; width: 100%; height: 100%; }
#unity-canvas { background: #6491F9; }
.unity-mobile #unity-canvas { width: 100%; height: 100%; }

/* ===== Loading overlay ===== */
#unity-loading-bar {
  position: fixed;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: #6491F9;
  z-index: 10;
}

/* Hide Unity defaults */
#unity-logo,
#unity-progress-bar-empty,
#unity-progress-bar-full { display: none !important; }

/* Looping video animation */
.loading-video {
  width: 320px;
  height: auto;
  display: block;
  pointer-events: none;
}

/* "Идет загрузка  42%" row */
.loading-info {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.loading-label {
  font-family: 'Cera Round Pro', Arial, sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: white;
  letter-spacing: 0.2px;
}

.loading-percent {
  font-family: 'Cera Round Pro', Arial, sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: white;
  min-width: 52px;
}

/* Progress bar */
.loading-bar-track {
  width: 480px;
  max-width: 80vw;
  height: 22px;
  border-radius: 100px;
  background: white;
  padding: 3px;
  box-sizing: border-box;
  display: flex;
  align-items: stretch;
}

.loading-bar-fill {
  width: 0%;
  flex-shrink: 0;
  border-radius: 100px;
  background: #6491F9;
  transition: width 0.2s ease;
}

/* Footer / warning */
#unity-footer { position: relative; }
.unity-mobile #unity-footer { display: none; }
#unity-logo-title-footer { float: left; width: 102px; height: 38px; background: url('unity-logo-title-footer.png') no-repeat center; }
#unity-build-title { float: right; margin-right: 10px; line-height: 38px; font-family: Arial; font-size: 18px; }
#unity-fullscreen-button { cursor: pointer; float: right; width: 38px; height: 38px; background: url('fullscreen-button.png') no-repeat center; }
#unity-warning { position: absolute; left: 50%; top: 5%; transform: translate(-50%); background: white; padding: 10px; display: none; }
