body { padding: 0; margin: 0 }
/* Mobile body styling to remove all spacing */
.unity-mobile body {
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  width: 100vw !important;
  height: 100vh !important;
}

/* Mobile layout-specific background gradients */
.unity-mobile.portrait body {
  background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%) !important;
  transition: background 0.3s ease;
}

.unity-mobile.landscape body {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  transition: background 0.3s ease;
}

#unity-container { position: absolute }
#unity-container.unity-desktop { left: 50%; top: 50%; transform: translate(-50%, -50%) }
#unity-container.unity-mobile { 
  width: 100vw !important; 
  height: 100vh !important; 
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
#unity-canvas { background: #231F20 }
.unity-mobile #unity-canvas { 
  width: 100vw !important; 
  height: 100vh !important; 
  object-fit: contain;
  max-width: 100%;
  max-height: 100%;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Ensure mobile canvas maintains fullscreen regardless of layout */
.unity-mobile.portrait #unity-canvas,
.unity-mobile.landscape #unity-canvas {
  width: 100vw !important;
  height: 100vh !important;
  object-fit: contain;
  max-width: 100%;
  max-height: 100%;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Landscape mode mobile - non-fullscreen to hide skybox */
.unity-mobile.landscape #unity-container {
  width: 60vw !important;
  height: 100vh !important;
  position: fixed !important;
  top: 0 !important;
  left: 20vw !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 10px !important;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3) !important;
}

.unity-mobile.landscape #unity-canvas {
  width: 60vw !important;
  height: 100vh !important;
  object-fit: contain;
  max-width: 60%;
  max-height: 100%;
  position: fixed !important;
  top: 0 !important;
  left: 20vw !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 10px !important;
}

#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 }
/* Hide WebGL logo, build title, and fullscreen button on mobile */
.unity-mobile #unity-webgl-logo { display: none }
.unity-mobile #unity-build-title { display: none }
.unity-mobile #unity-fullscreen-button { 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 }
