html, body {
  padding: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  background: #000;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
}
#unity-container { position: absolute }
#unity-container.unity-desktop { left: 50%; top: 50%; transform: translate(-50%, -50%) }
#unity-container.unity-mobile {
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  width: var(--djl-vw, 100%);
  height: var(--djl-vh, 100dvh);
  overflow: hidden;
}
#unity-canvas { background: #231F20 }
.unity-mobile #unity-canvas { width: 100%; height: 100% }
#unity-loading-bar {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  pointer-events: none;
}
#unity-logo {
  width: min(72vw, 560px);
  max-height: 42vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
#unity-logo img {
  width: 100%;
  height: auto;
  max-height: 42vh;
  object-fit: contain;
}
#unity-progress-wrap {
  position: relative;
  width: min(72vw, 560px);
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
#unity-progress-bar-empty {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(120, 84, 16, 0.45);
  border: 1px solid rgba(255, 215, 80, 0.55);
  overflow: hidden;
  box-shadow: 0 0 12px rgba(255, 196, 64, 0.28);
}
#unity-progress-bar-full {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8a6a12 0%, #d4af37 28%, #ffe566 50%, #ffd700 72%, #b8860b 100%);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.75);
}
#unity-progress-text {
  color: #ffd700;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  font-size: 16px;
  letter-spacing: 1px;
  text-shadow: 0 0 8px rgba(255, 200, 80, 0.55);
}
#unity-footer { position: relative }
.unity-mobile #unity-footer { display: none }
#unity-webgl-logo { float:left; width: 204px; height: 38px; background: url('webgl-logo.png') no-repeat center }
#unity-build-title { float: right; margin-right: 10px; line-height: 38px; font-family: arial; font-size: 18px }
#unity-fullscreen-button { 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 }

#djl-native-game {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 20;
  border: none;
  background: #000;
}
#djl-native-game[hidden] { display: none !important; }

#djl-html-close {
  position: fixed;
  z-index: 2147483647;
  left: 12px;
  top: calc(12px + env(safe-area-inset-top, 0px));
  width: 88px;
  height: 88px;
  margin: 0;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 44px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 56px;
  line-height: 84px;
  text-align: center;
  cursor: grab;
  touch-action: none;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
#djl-html-close:active { cursor: grabbing; }
#djl-html-close[hidden] { display: none !important; }
