* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, #2e3b4e, #4a576c);
  color: #f0f0f0;
}

#unity-container {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: black;
}

#unity-canvas {
  width: 100vw;
  height: 100vh;
  display: block;
  background: black;
}

#unity-preview {
  position: absolute;
  top: 25%;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 120px;
  border: 2px solid #fff;
  border-radius: 10px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.6);
}

#unity-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

#unity-game-title {
  position: absolute;
  top: 12%;
  left: 50%;
  transform: translateX(-50%);
  color: #ffffff;
  font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
  text-align: center;
}

#unity-loading-bar {
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translateX(-50%);
  width: 30%;
  height: 20px;
  border-radius: 15px;
  background: #2c2c2c;
}

#unity-progress-bar-empty {
  width: 100%;
  height: 100%;
  background: #3d3d3d;
  border-radius: 15px;
}

#unity-progress-bar-full {
  height: 100%;
  background: linear-gradient(90deg, #ff8a00, #ff3d00);
  border-radius: 15px;
  width: 0%;
  transition: width 0.3s ease-in-out;
}

#unity-loading-text {
  position: absolute;
  top: 70%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 20px;
  color: #ffffff;
  font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
  font-weight: 600;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.8);
  letter-spacing: 0.5px;
}

#orientation-warning {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center; /* <-- центрирует всё по горизонтали */
  text-align: center;
  background: #000;
  color: #f5f5f5;
  font-size: 24px;
  padding: 40px;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.5;
}

#orientation-warning img {
  width: 150px;
  max-width: 80%;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 10px #00ff00);
  transition: transform 0.3s ease;
}

#orientation-warning img:hover {
  transform: rotate(5deg) scale(1.05);
}

.line-1 {
  font-size: clamp(18px, 6vh, 36px); /* масштаб от 6% высоты экрана */
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.1;
}

.line-2 {
  font-size: clamp(16px, 5.5vh, 32px);
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.1;
}

@media (max-height: 450px) {
  #unity-game-title {
    top: 6%;
  }

  #unity-preview {
    top: 20%;
    width: 140px;
    height: 85px;
  }

  #unity-loading-text {
    font-size: 16px;
  }

  #unity-loading-bar {
    width: 40%;
    height: 14px;
  }
}
