/* ---------------------------------------------------- */
/* NEUE REGELN FÜR 9:16 SEITENVERHÄLTNIS */
/* ---------------------------------------------------- */

/* Wrapper, der das Seitenverhältnis auf Basis der Breite steuert */
.device-ios .aspect-ratio-box {
    height: 80vh;
    width: calc(80vh * (9 / 16));
    position: relative;
    /*margin: 0 auto;*/
    /* Zentrierung für den Portrait-Modus (optional) */
    top: 0%;
    left: -10%;
    transform: translateY(0%);
}
.device-android .aspect-ratio-box {
    height: 100svh;
    width: calc(100svh * (10 / 16));
    position: relative;
    margin: 0 auto;
    /* Zentrierung für den Portrait-Modus (optional) */
    top: 0%;
    left: 0%;
    transform: translateY(0%);
}

/* Anpassung für Querformat (falls der Lock fehlschlägt/ignoriert wird) */
@media (orientation: landscape) {
    .aspect-ratio-box {
        height: 100svh;
        width: calc(100svh * (10 / 16));
        padding-bottom: 0;
        left: 0%;
        transform: translate(0%, 0%);
    }
}

/* ---------------------------------------------------- */
/* IHR ORIGINAL CSS MIT ANPASSUNGEN */
/* ---------------------------------------------------- */

body {
    padding: 0;
    margin: 0;
    overflow: hidden;
}

html, body {
    height: 100%;
}

#unity-container {
    position: absolute;
}

    /* WICHTIG: ÄNDERUNG! 
   Der mobile Container soll jetzt 100% des aspect-ratio-box Wrappers füllen. */
    #unity-container.unity-mobile {
        position: fixed; /* Muss 'absolute' sein, um im Wrapper zu passen */
        width: 100%;
        height: 100%;
        top: 0;
        left: -10%;
    }

    /* Desktop-Stile bleiben unverändert */
    #unity-container.unity-desktop {
        left: 0%;
        top: 0%;
        transform: translate(0%, 0%)
    }

/* Canvas füllt den mobilen Container */
#unity-canvas {
    background: #231F20
}

.unity-mobile #unity-canvas {
    width: 100%;
    height: 100%
}

/* Weitere Unity-Stile bleiben unverändert */
#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
}

.unity-mobile #unity-footer {
    display: none
}

#unity-logo-title-footer {
    float: left;
    width: 102px;
    height: 38px;
    background: url('unity-logo-title-footer.png') no-repeat center
}

#unity-build-title {
    float: right;
    margin-right: 10px;
    line-height: 38px;
    font-family: arial;
    font-size: 18px
}


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