html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #000;
}

#unity-container {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
}

#unity-canvas {
  width: 100%;
  height: 100%;
  background: #000;
}

#custom-loading-overlay {
  position: absolute;
  inset: 0;
  background: #000;
  z-index: 20;
  transition: opacity 0.3s ease;
}

#custom-loading-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

#brand-logo {
  position: absolute;
  left: 50%;
  top: 44%;
  transform: translate(-50%, -50%);
  width: min(245px, 18vw);
  height: auto;
  object-fit: contain;
}

#progress-track {
  position: absolute;
  left: 8.2%;
  width: 83.6%;
  bottom: 54px;
  height: 12px;
  background: url('progress-bar-empty-dark.png') no-repeat center;
  background-size: 100% 100%;
  overflow: hidden;
}

#progress-fill {
  width: 0;
  height: 100%;
  background: url('progress-bar-full-light.png') no-repeat left center;
  background-size: 100% 100%;
  transition: width 0.1s linear;
}

#orientation-tip {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.82);
  color: #fff;
  z-index: 9999;
  pointer-events: auto;
  touch-action: none;
}

#orientation-tip.hidden {
  display: none;
}

.orientation-tip-content {
  max-width: min(86vw, 420px);
  padding: 18px 22px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  text-align: center;
  font-size: 16px;
  line-height: 1.6;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

#orientation-action-btn {
  margin-top: 14px;
  padding: 12px 18px;
  min-width: 220px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(180deg, #f5d27a 0%, #cf9c33 100%);
  color: #201607;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

#orientation-action-btn:disabled {
  opacity: 0.7;
  cursor: default;
}


/* CSS forced landscape for webviews that don\'t support orientation lock */
body.force-landscape-css #unity-container {
  width: 100vh !important;
  height: 100vw !important;
  transform: rotate(90deg) translateY(-100vw);
  transform-origin: 0 0;
}
