body { padding: 0; margin: 0; background: #131316 }
#unity-container { position: absolute }
#unity-container.unity-desktop { left: 50%; top: 50%; transform: translate(-50%, -50%) }
#unity-container.unity-mobile { position: fixed; width: 100%; height: 100% }
/* block, not inline: an inline canvas sits on a text baseline and the line box's
   descender made the container 4px taller than the canvas, clipping 2px off the top. */
#unity-canvas { background: #131316; display: block }
.unity-mobile #unity-canvas { width: 100%; height: 100% }
/* Opaque over the canvas: it turns into a black GL buffer while the engine starts up. */
#unity-loading-bar { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 10; display: none;
  flex-direction: column; align-items: center; justify-content: center; background: #131316; transition: opacity .25s }
#unity-logo { width: 112px; height: 112px; margin: 0 auto 8px; border-radius: 24px; background: url('vigmon-logo.png') no-repeat center / cover }
#unity-loading-text { margin-top: 14px; color: #e8f0fa; font: 13px/1 -apple-system, "PingFang SC", system-ui, sans-serif; letter-spacing: 1.5px;
  animation: unity-loading-pulse 1.3s ease-in-out infinite }
@keyframes unity-loading-pulse { 0%, 100% { opacity: .55 } 50% { opacity: 1 } }
#unity-progress-bar-empty { width: 141px; height: 18px; margin-top: 10px; background: url('progress-bar-empty-dark.png') no-repeat center }
/* No margin of its own: a flex item doesn't collapse it into the frame's, so it would drop out below. */
#unity-progress-bar-full { width: 0%; height: 18px; background: url('progress-bar-full-dark.png') no-repeat center }
/* Hidden everywhere, not just on mobile: the container is centred as a whole, so the
   footer's 38px pushed half of itself off the top of the viewport and clipped the HUD. */
#unity-footer { display: none }
#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; z-index: 11 }
