html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  background: black;
}

/* Use Unity's original centering approach */
#unity-container {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

/* Maintain 16:9 based on width */
#unity-canvas {
  display: block;

  width: 100vw;
  height: calc(100vw * 9 / 16);

  max-height: 100vh;
  max-width: calc(100vh * 16 / 9);

  background: #000;
}
#unity-container:fullscreen {
  display: flex;
  align-items: center;

  transform: none;
  left: 0;
  top: 0;
}

#fullscreen-btn {
  position: absolute;
  top: 30px;
  right: 10px;
  z-index: 10;

  padding: 8px 12px;
  font-size: 18px;
  cursor: pointer;

  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  border-radius: 6px;
}

#unity-loading-bar { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: none; text-align: center; }
#unity-progress-bar-empty {
  width: 220px;
  height: 3px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  overflow: hidden;
}
#unity-progress-bar-full {
  width: 0%;
  height: 100%;
  background: #ffffff;
  border-radius: 2px;
  transition: width 0.2s ease-out;
}

