body {
  padding: 0;
  margin: 0;
  background: #050505;
  color: #f5e6c8;
  font-family: Arial, Helvetica, sans-serif;
}

#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: {{{ BACKGROUND_COLOR }}} }
.unity-mobile #unity-canvas { width: 100%; height: 100% }

#xrgp-loading-screen {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at center, rgba(90, 60, 10, 0.35) 0%, rgba(5, 5, 5, 0.96) 65%),
    #050505;
}

#unity-loading-bar {
  position: relative;
  display: none;
  width: min(420px, 86vw);
  text-align: center;
}

#unity-logo {
  display: block;
  width: min(360px, 78vw);
  height: auto;
  margin: 0 auto 18px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(212, 175, 55, 0.35));
}

#xrgp-loading-status {
  margin: 0 0 14px;
  color: #ffe9a8;
  font: 800 clamp(16px, 2.4vw, 28px) Arial, sans-serif;
  letter-spacing: 0.14em;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.55), 0 2px 4px #000;
}

#unity-progress-bar-empty {
  width: 100%;
  height: 22px;
  margin: 0 auto;
  overflow: hidden;
  border: 2px solid #d4af37;
  border-radius: 12px;
  background: rgba(20, 14, 4, 0.9);
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.45);
}

#unity-progress-bar-full {
  width: 0%;
  height: 100%;
  border-radius: 9px;
  background: linear-gradient(90deg, #7a5a12, #d4af37, #fff1c2);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.85);
  transition: width 0.12s linear;
}

#xrgp-loading-sub {
  margin-top: 12px;
  color: rgba(245, 230, 200, 0.72);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#xrgp-partner-bar {
  position: absolute;
  right: 12px;
  left: auto;
  /* Above Cesium ion / Google Maps credit strip, bottom-right */
  bottom: 52px;
  transform: none;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(8px, 1.6vw, 16px);
  padding: 0;
  margin: 0;
  max-width: min(58vw, 520px);
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  pointer-events: none;
}

#xrgp-partner-bar img {
  height: clamp(32px, 5.5vw, 52px);
  width: auto;
  max-width: 18vw;
  object-fit: contain;
  background: transparent;
  border: none;
  box-shadow: none;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.65));
}

.unity-mobile #xrgp-partner-bar {
  right: 8px;
  bottom: 48px;
  gap: 6px;
  padding: 0;
  max-width: 72vw;
}

.unity-mobile #xrgp-partner-bar img {
  height: 28px;
  max-width: 16vw;
}

#unity-footer {
  position: relative;
  height: 42px;
  margin-top: 4px;
  display: flex;
  align-items: center;
}

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

#unity-logo-title-footer {
  float: left;
  height: 36px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  margin-right: 10px;
}

#unity-build-title {
  float: right;
  margin-right: 10px;
  line-height: 38px;
  font-family: Arial, sans-serif;
  font-size: 16px;
  color: #f5e6c8;
}

#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;
  z-index: 30;
}
