body {
    padding: 0;
    margin: 0;
    overflow: hidden;
    background: #000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

#unity-container {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#unity-container.unity-desktop {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
}

#unity-container.unity-mobile {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    padding: env(safe-area-inset-top);
    box-sizing: border-box;
    display: block;
}

/* THE TARGET LOOK: Device Frame */
#device-frame {
    position: relative;
    background: linear-gradient(145deg, #1a1a1a, #2d2d2d);
    border-radius: 50px;
    padding: 8px;
    box-shadow: 0 0 0 2px #333, 0 20px 40px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Ekranın yüksekliğine göre otomatik büyür */
    height: 90vh;
    aspect-ratio: 9 / 19.5;
    /* iPhone oranı */
    display: flex;
    flex-direction: column;
}

#device-notch {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 30px;
    background: #1a1a1a;
    border-radius: 0 0 15px 15px;
    z-index: 10;
}

#device-screen {
    position: relative;
    flex: 1;
    width: 100%;
    background: #000;
    border-radius: 42px;
    overflow: hidden;
}

#device-home-indicator {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 134px;
    height: 5px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

#unity-canvas {
    background: #231F20;
    top: 0;
    left: 0;
    display: block;
    width: 100% !important;
    height: 100% !important;
}

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

.unity-mobile #unity-canvas {
    width: 100% !important;
    height: 100% !important;
    position: absolute;
}

/* LOADING BAR STYLE */
#unity-loading-bar {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
}

/* #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;
    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 */
#unity-footer {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 400px;
    color: white;
}

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

#unity-build-title {
    font-size: 16px;
    flex-grow: 1;
}

#unity-fullscreen-button {
    cursor: pointer;
    width: 38px;
    height: 38px;
    background: url('fullscreen-button.png') no-repeat center;
    background-size: contain;
}

