html, body { width: 100%; height: 100%; padding: 0; margin: 0; overflow: hidden }
#unity-container { position: relative; width: 100%; height: 100%; background: #231F20 }
#unity-container.unity-desktop { display: grid; grid-template-rows: minmax(0, 1fr) 38px; justify-items: center; align-items: center }
#unity-container.unity-mobile { position: fixed; inset: 0 }
#unity-canvas { display: block; min-width: 0; min-height: 0; background: #231F20; object-fit: contain }
/* Fit an 8:5 canvas into the iframe, leaving 38px for the desktop footer. */
.unity-desktop #unity-canvas { width: min(100vw, max(0px, calc((100dvh - 38px) * 1.6))); height: min(62.5vw, max(0px, calc(100dvh - 38px))); aspect-ratio: 8 / 5 }
.unity-mobile #unity-canvas { width: 100%; 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; display: flex; align-items: center; width: 100%; min-width: 0; height: 38px; background: white }
.unity-mobile #unity-footer { display: none }
#unity-webgl-logo { flex: 0 1 204px; min-width: 0; height: 38px; background: url('webgl-logo.png') no-repeat left center; background-size: contain }
#unity-build-title { min-width: 0; margin-left: auto; padding: 0 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 38px; font-family: arial; font-size: 18px }
#unity-fullscreen-button { order: 1; cursor:pointer; flex: 0 0 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 }
