html, body { padding: 0; margin: 0; width: 100%; height: 100%; overflow: hidden; background: #000000 }
#unity-container { position: absolute }
/* 竖屏通用：视口内铺满，按比例缩放，避免横屏/桌面与手机两套布局不一致 */
#unity-container.unity-portrait {
  position: fixed;
  left: 0; top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
#unity-canvas { background: #000000; display: block }
#unity-container.unity-portrait #unity-canvas {
  width: min(100vw, calc(100vh * 600 / 960));
  height: min(100vh, calc(100vw * 960 / 600));
  max-width: 100%;
  max-height: 100%;
}
#unity-loading-bar { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: none }
#unity-logo { width: 154px; height: 130px; background: url('unity-logo-dark.png') no-repeat center }
#unity-progress-bar-empty { width: 141px; height: 18px; margin-top: 10px; margin-left: 6.5px; background: url('progress-bar-empty-dark.png') no-repeat center }
#unity-progress-bar-full { width: 0%; height: 18px; margin-top: 10px; background: url('progress-bar-full-dark.png') no-repeat center }
#unity-footer { position: relative }
#unity-container.unity-portrait #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 { 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 }
