html, body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    width: 100%;
    height: 100%;
    background-color: black;
}

/* Main container */
#unity-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    background-color: black;
}

/* Game canvas */
#unity-canvas {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 100vw;
    max-height: 100vh;
    width: auto;
    height: auto;
    aspect-ratio: 16 / 9;
    background-color: #161313;
    display: block;
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
}

/* Loading bar */
#unity-loading-bar {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: none;
    flex-direction: column;
    align-items: center;
}

/* Logo */
#unity-logo {
    width: 154px;
    height: 130px;
    display: flex;
    justify-content: center;
    align-items: center;
}

    #unity-logo img {
        max-height: 60px;
        max-width: 100%;
        object-fit: contain;
    }

/* Progress bar */
#unity-progress-bar-empty {
    width: 141px;
    height: 18px;
    margin-top: 10px;
    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;
}

/* Warning banner */
#unity-warning {
    position: absolute;
    left: 50%;
    top: 5%;
    transform: translate(-50%);
    background: white;
    padding: 10px;
    display: none;
}

/* Hide old Unity footer UI completely */
#unity-footer,
#unity-logo-title-footer,
#unity-build-title,
#unity-fullscreen-button {
    display: none !important;
}

/* Optional resolution warning */
#resolution-warning {
    display: none;
    justify-content: center;
    align-items: center;
    background-color: black;
    color: white;
    font-size: 20px;
    font-family: sans-serif;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}
