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;
  bottom: 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 }
#unity-logo { width: 40vmin; height: 40vmin; margin: 0 auto; background: url('loading.png') no-repeat center; background-size: 100% 100%; animation: App-logo-spin infinite 1s linear; }
@keyframes App-logo-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

