/* Reset */
body {
  padding: 0;
  margin: 0;
}

/* --- 16:9 WRAPPER (virtual 1920×1080) --- */
#unity-wrapper {
  position: relative;
  width: 100vw;
  height: calc(100vw * 9 / 16); /* maintain 16:9 */
  max-height: 100vh;
  max-width: calc(100vh * 16 / 9);
  margin: 0 auto;
}

/* Centered Unity container */
#unity-container {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Canvas scales to wrapper size */
#unity-canvas {
  width: 100%;
  height: 100%;
  background: #FFFFFF;
  display: block;
}

/* Loading bar in the middle */
#unity-loading-bar {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: none;
}

/* Loading graphics (same as Unity default) */
#unity-logo {
  width: 154px;
  height: 130px;
  background: url('unity-logo-light.png') no-repeat center;
}

#unity-progress-bar-empty {
  width: 141px;
  height: 18px;
  margin-top: 10px;
  margin-left: 6.5px;
  background: url('progress-bar-empty-light.png') no-repeat center;
}

#unity-progress-bar-full {
  width: 0%;
  height: 18px;
  margin-top: 10px;
  background: url('progress-bar-full-light.png') no-repeat center;
}

/* Unity footer (unused in your layout, but kept for compatibility) */
#unity-footer {
  position: relative;
}

#unity-logo-title-footer {
  float: left;
  width: 102px;
  height: 38px;
  background: url('unity-logo-title-footer.png') no-repeat center;
}

#unity-build-title {
  float: right;
  margin-right: 10px;
  line-height: 38px;
  font-family: arial;
  font-size: 18px;
}

#unity-fullscreen-button {
  cursor: pointer;
  float: right;
  width: 38px;
  height: 38px;
  background: url('fullscreen-button.png') no-repeat center;
}

/* Warnings banner */
#unity-warning {
  position: absolute;
  left: 50%;
  top: 5%;
  transform: translate(-50%);
  background: white;
  padding: 10px;
  display: none;
}

/* Mobile (kept for compatibility, even if you don't use it) */
.unity-mobile #unity-container {
  position: fixed;
  width: 100%;
  height: 100%;
}

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

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