body { padding: 0; margin: 0; height: 100vh; height: 100dvh; display: grid; place-items: center }
/* Fit the 16:10 game to both viewport dimensions, reserving room for the footer. */
#unity-container { position: relative; width: min(100vw, calc((100vh - 38px) * 1.6)); width: min(100vw, calc((100dvh - 38px) * 1.6)) }
#unity-container.unity-mobile { width: min(100vw, 160vh); width: min(100vw, 160dvh) }
#unity-fullscreen-container { position: relative; width: 100%; aspect-ratio: 8 / 5; background: #231F20 }
#unity-canvas { position: absolute; width: 100%; height: 100%; background: #231F20 }
#unity-fullscreen-container:fullscreen { width: 100%; height: 100%; aspect-ratio: auto }
#unity-fullscreen-container:fullscreen #unity-canvas { width: min(100vw, 160vh); height: min(100vh, 62.5vw); left: 50%; top: 50%; transform: translate(-50%, -50%) }
#unity-loading-container { position: absolute; width: 100%; height: 100%; backdrop-filter: blur(5px); display: none; }
#unity-loading-bar { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
#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; display: flex; align-items: center; height: 38px; gap: 8px }
.unity-mobile #unity-footer { display: none }
#unity-logo-title-footer { flex-shrink: 0; width: 102px; height: 38px; background: url('unity-logo-title-footer.png') no-repeat center }
#unity-build-title { margin-left: auto; line-height: 38px; font-family: arial; font-size: 18px; white-space: nowrap }
#unity-fullscreen-button { cursor:pointer; order: 1; flex-shrink: 0; 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 }
@media (max-width: 600px), (max-height: 300px) {
    #unity-logo-title-footer { display: none }
    #unity-build-title { font-size: 12px }
}
