	html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  background: linear-gradient(180deg, #071126 0%, #0a1633 100%);
  font-family: Arial, Helvetica, sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

#unity-container {
  width: 100%;
  max-width: 1100px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 16px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

#unity-canvas {
  display: block;
  width: 100%;
  max-width: 960px;
  height: auto;
  aspect-ratio: 16 / 10;
  background: #000;
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

#unity-loading-bar {
  position: absolute;
  top: 38%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(320px, 70%);
  z-index: 5;
  text-align: center;
}

#unity-logo {
  width: 154px;
  height: 130px;
  margin: 0 auto 14px;
  background: url("unity-logo-dark.png") no-repeat center;
  background-size: contain;
}

#unity-progress-bar-empty {
  width: 100%;
  height: 14px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  overflow: hidden;
}

#unity-progress-bar-full {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #38bdf8 0%, #3b82f6 100%);
  border-radius: 999px;
}

#unity-warning {
  width: 100%;
  max-width: 960px;
  margin-top: 12px;
  box-sizing: border-box;
}

#unity-footer {
  width: 100%;
  max-width: 960px;
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.unity-footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 auto;
}

#unity-logo-title-footer {
  width: 125px;
  height: 42px;
  background: url("unity-logo-title-footer.png") no-repeat center;
  background-size: contain;
}

#unity-build-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
  min-width: 0;
}

.unity-footer-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

#sendLogsBtn {
  padding: 10px 16px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(90deg, #4f8df7 0%, #3b82f6 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#sendLogsBtn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(59, 130, 246, 0.34);
}

#sendLogsBtn:active {
  transform: translateY(0);
}

#unity-fullscreen-button {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background-color: #22c1dc;
  background-image: url("fullscreen-button.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(34, 193, 220, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#unity-fullscreen-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(34, 193, 220, 0.34);
}

#unity-fullscreen-button:active {
  transform: translateY(0);
}

@media (max-width: 1024px) {
  #unity-container {
    padding: 14px;
  }
}

@media (max-width: 768px) {
  body {
    align-items: center;
  }

  #unity-container {
    min-height: 100vh;
    padding: 10px;
    justify-content: center;
  }

  #unity-canvas {
    border-radius: 14px;
  }

  #unity-build-title {
    font-size: 16px;
  }

  #unity-logo-title-footer {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  #sendLogsBtn {
    padding: 10px 14px;
    font-size: 14px;
  }

  #unity-fullscreen-button {
    width: 42px;
    height: 42px;
    background-size: 18px;
  }
}

@media (max-width: 600px) and (orientation: portrait) {
  body {
    align-items: center;
  }

  #unity-container {
    padding: 10px;
    justify-content: center;
  }

  #unity-footer {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 12px;
  }

  .unity-footer-left {
    width: 100%;
    justify-content: center;
  }

  #unity-build-title {
    font-size: 15px;
    text-align: center;
  }

  .unity-footer-actions {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }

  #sendLogsBtn {
    max-width: 220px;
    white-space: normal;
    text-align: center;
  }
}

@media (max-width: 932px) and (orientation: landscape) {
  body {
    align-items: center;
  }

  #unity-container {
    min-height: 100vh;
    padding: 8px 10px;
    justify-content: center;
  }

  #unity-canvas {
    width: auto;
    max-width: min(78vw, 960px);
    max-height: 58vh;
    height: auto;
  }

  #unity-footer {
    width: min(78vw, 960px);
    margin-top: 10px;
    gap: 10px;
  }

  .unity-footer-left {
    gap: 10px;
  }

  #unity-logo-title-footer {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  #unity-build-title {
    font-size: 14px;
  }

  .unity-footer-actions {
    gap: 8px;
  }

  #sendLogsBtn {
    padding: 9px 12px;
    font-size: 13px;
  }

  #unity-fullscreen-button {
    width: 40px;
    height: 40px;
    background-size: 16px;
  }

  #unity-loading-bar {
    top: 34%;
    width: min(240px, 50vw);
  }
}