body { padding: 0; margin: 0 }
#unity-container { position: absolute }
#unity-container.unity-desktop { left: 50%; top: 50%; transform: translate(-50%, -50%) }
#unity-container.unity-mobile { position: fixed; width: 100%; height: 100% }
#unity-canvas { background: #231F20 }
.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 }
.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-fullscreen-button { cursor:pointer; float: right; width: 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 }
html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

#unity-container {
    position: fixed;
    inset: 0;

    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;
}

#unity-canvas {
    display: block;
    max-width: 100%;
    max-height: 100%;
}
#unity-container {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: calc(100% - 38px);

    display: flex;
    align-items: center;
    justify-content: center;
}
html,
body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    background: #000;
}

#unity-container,
#unity-container.unity-desktop {
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    transform: none !important;

    width: 100vw !important;
    height: 100vh !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#unity-canvas {
    display: block;
}

#unity-footer {
    display: none !important;
}

/* =========================
   ÉCRAN DE DÉMARRAGE
   ========================= */

#start-screen {
    position: fixed !important;
    inset: 0 !important;

    width: 100vw !important;
    height: 100vh !important;

    display: flex;
    align-items: center;
    justify-content: center;

    background: white;

    z-index: 99999 !important;
}

#start-content {
    width: min(90vw, 600px);

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 30px;
}

#ad-placeholder {
    width: min(90vw, 500px);
    aspect-ratio: 16 / 9;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 2px dashed #999;
    box-sizing: border-box;
}

#start-button {
    padding: 12px 32px;
    font-size: 18px;
    cursor: pointer;
}

#unity-loading-bar {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);

    width: 320px;

    text-align: center;
    font-family: Arial, sans-serif;

    color: #514675;

    z-index: 1000;
}


#loading-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 18px;
}


#loading-decoration {
    font-size: 28px;
    color: #ff4b9b;
    margin-bottom: 12px;
}


#loading-text {
    font-size: 14px;
    margin-bottom: 10px;
}


#unity-progress-bar-empty {
    width: 100%;
    height: 12px;

    margin: 0;

    background: rgba(255, 255, 255, 0.9);

    border: 2px solid #8d7fb2;
    border-radius: 20px;

    overflow: hidden;
    box-sizing: border-box;
}


#unity-progress-bar-full {
    width: 0%;
    height: 100%;

    margin: 0;

    background: #ff4b9b;

    border-radius: 20px;
}


#loading-percent {
    margin-top: 8px;

    font-size: 12px;
    color: #8d7fb2;
}
#unity-loading-bar {
    position: fixed !important;

    left: 0 !important;
    top: 0 !important;

    width: 100vw !important;
    height: 100vh !important;

    transform: none !important;

    display: none;

    flex-direction: column;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    background: #b8b7f5;

    text-align: center;
    font-family: Arial, sans-serif;
    color: #514675;

    z-index: 99998 !important;
}
#unity-loading-bar {
    position: fixed !important;
    inset: 0 !important;

    width: 100vw !important;
    height: 100vh !important;

    transform: none !important;

    display: none;

    flex-direction: column;
    align-items: center;
    justify-content: center;

    background: #b8b7f5;

    font-family: Arial, sans-serif;
    text-align: center;

    z-index: 999999 !important;
}


#loading-visual {
    width: 90px;
    height: 90px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 18px;
}


#loading-heart {
    font-size: 54px;
    line-height: 1;

    color: #ff5ca8;
}


#loading-text {
    margin-bottom: 14px;

    font-size: 14px;
    font-weight: 600;

    color: #554d79;
}


#unity-progress-bar-empty {
    width: 280px;
    height: 12px;

    margin: 0;

    background: rgba(255, 255, 255, 0.75);

    border: 2px solid #8175a8;
    border-radius: 999px;

    overflow: hidden;
    box-sizing: border-box;
}


#unity-progress-bar-full {
    width: 0%;
    height: 100%;

    margin: 0;

    background: #ff5ca8;

    border-radius: 999px;

    transition: width 0.12s linear;
}


#loading-percent {
    margin-top: 9px;

    font-size: 12px;

    color: #8175a8;
}
