* {
  box-sizing: border-box;
}

body {
  padding: 0;
  margin: 0;
  background: #ffffff;
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: #332d2a;
}

#loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  transition: opacity 0.4s ease;
}

#loading-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

#company-logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 24px;
  width: min(90vw, 560px);
  margin-bottom: 48px;
  user-select: none;
}

#company-logo .company-logo-item {
  height: auto;
  max-height: 120px;
  width: auto;
  max-width: calc(50% - 12px);
  object-fit: contain;
  -webkit-user-drag: none;
}

#loading-status {
  width: min(80vw, 360px);
  text-align: center;
}

#progress-track {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

#progress-fill {
  width: 0%;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #3d8f2e 0%, #7cb342 50%, #aed581 100%);
  transition: width 0.05s linear;
}

#progress-text {
  margin-top: 14px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #3d8f2e;
}

#loading-hint {
  margin-top: 8px;
  font-size: 13px;
  color: rgba(51, 45, 42, 0.55);
}

#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: #231F20;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#unity-canvas.ready {
  opacity: 1;
}

.unity-mobile #unity-canvas {
  width: 100%;
  height: 100%;
}

#unity-footer {
  position: relative;
}

.unity-mobile #unity-footer {
  display: none;
}

#unity-build-title {
  float: right;
  margin-right: 10px;
  line-height: 38px;
  font-size: 14px;
  color: #888;
}

#unity-fullscreen-button {
  cursor: pointer;
  float: right;
  width: 38px;
  height: 38px;
  background: url("fullscreen-button.png") no-repeat center;
  opacity: 0.7;
  transition: opacity 0.2s;
}

#unity-fullscreen-button:hover {
  opacity: 1;
}

#unity-warning {
  position: absolute;
  left: 50%;
  top: 5%;
  transform: translate(-50%);
  background: white;
  padding: 10px;
  display: none;
  z-index: 10000;
}

#build-version {
  position: fixed;
  left: 10px;
  bottom: 8px;
  z-index: 10001;
  font-size: 12px;
  line-height: 1.2;
  color: rgba(51, 45, 42, 0.45);
  pointer-events: none;
  user-select: none;
}
