body {
    padding: 0;
    margin: 0;
    background: #232323;
    overflow: hidden;
}

/* Unity container stays absolute (Unity expects this) */
#unity-container {
    position: absolute;
}

/* Desktop: true center */
#unity-container.unity-desktop {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

/* Mobile fullscreen */
#unity-container.unity-mobile {
    position: fixed;
    width: 100%;
    height: 100%;
}

/* ===== CANVAS (KEY FIX) ===== */
#unity-canvas {
    background: #231F20;
    height: 100vh;
    width: auto;
    aspect-ratio: 10 / 16;
    margin-top: -12px;
    max-height: 2800px;
    max-width: 1750px;
}

/* Mobile always fullscreen */
.unity-mobile #unity-canvas {
    width: 100vw !important;
        height: 100dvh !important;  /* modern mobile browsers */
        max-width: none;
        max-height: none;
        aspect-ratio: auto !important;
        margin: 0;
}

/* Loading */
#unity-loading-bar {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: none;
}

#unity-logo {
    width: 0px;
    height: 0px;
    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;
}

/* Footer untouched */
#unity-footer { position: relative }
.unity-mobile #unity-footer { display: none }

#unity-warning {
    position: absolute;
    left: 50%;
    top: 5%;
    transform: translateX(-50%);
    background: white;
    padding: 10px;
    display: none;
}
