﻿/* RESET BÁSICO */
body {
    padding: 0;
    margin: 0;
}

/* CONTAINER PADRÃO UNITY */
#unity-container {
    position: absolute;
    width: 100%;
    height: 100%;
}

#unity-canvas {
    background: #231F20;
}

/* BLOCO GERAL DO LOADING (posicionado no centro da tela) */
#unity-loading-bar {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: block;
    text-align: center;
}

/* ====== N O V O : bloco “hero” para subir logo + barra ======
   (agora desce 8vh para ficar mais centralizado) */
#hero {
    position: absolute;
    left: 50%;
    top: 50%;
    /* Move para baixo em vez de subir: +8vh */
    transform: translate(-50%, calc(-50% + 8vh));
    text-align: center;
    width: 100%;
    pointer-events: none; /* não captura cliques do canvas */
}

/* LOGO PRINCIPAL */
#unity-logo {
    width: 350px;
    height: 200px;
    margin: 0 auto 14px auto;
    /* CSS e PNG estão na MESMA pasta */
    background: url('unity-logo-dark.png') no-repeat center;
    /* ou unity-logo-light.png, tanto faz, mas SEM "TemplateData/" */
    background-size: 100% 100%;
    pointer-events: auto;
}

/* BARRA EMPTY (vazia) */
#unity-progress-bar-empty {
    width: 308px;
    height: 18px;
    margin-top: 10px;
    margin-inline: auto;
    background: url('progress-bar-empty-dark.png') no-repeat center;
    background-size: 83% 100%;
    position: relative;
}

/* “Máscara” onde a barra cheia vai crescer */
#unity-progress-bar-full {
    position: absolute;
    left: calc((100% - 83%) / 2); /* mesmo recuo lateral da imagem empty */
    top: 0;
    width: 83%;
    height: 100%;
    overflow: hidden; /* tudo que passar é cortado */
}

/* A barra cheia de verdade */
#unity-progress-fill {
    height: 100%;
    width: 0%; /* começa em 0% */
    background: url('unity-logo-dark.png') no-repeat center;
    background-size: 100% 100%;
}

/* TEXTO DO PROGRESSO */
#unity-progress-text {
    margin-top: 6px;
    font-family: arial, sans-serif;
    font-size: 14px;
    color: #ffffff;
    text-align: center;
}

/* ====== N O V O : faixa de 3 logos no rodapé ====== */
#sponsors {
    position: fixed;
    left: 50%;
    bottom: 26px; /* altura do rodapé */
    transform: translateX(-50%);
    /* Ajustamos a largura para que se centralize automaticamente */
    width: auto;
    max-width: 92vw;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    pointer-events: none; /* não atrapalhar interação do canvas */
}

    #sponsors img {
        flex: 1 1 0;
        max-height: 200px; /* ajuste fino conforme seus PNGs */
        width: auto;
        object-fit: contain;
        pointer-events: auto; /* reativa clique caso queira linkar */
    }

/* RODAPÉ / BOTÃO VR */
#unity-footer {
    position: fixed;
    right: 12px;
    bottom: 12px;
    width: auto;
    line-height: normal;
    z-index: 9999;
}

/* OCULTAR ELEMENTOS DO TEMPLATE ORIGINAL */
#unity-webgl-logo,
#unity-webxr-link,
#unity-build-title,
#enterar {
    display: none !important;
}

/* BOTÃO VR */
#entervr {
    float: none;
    width: 120px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    line-height: 1;
    border-radius: 14px;
    border: 0;
    box-sizing: border-box;
    cursor: pointer !important;
    background-color: #4f4f4f;
    color: #ffffff;
}

    #entervr:disabled {
        background-color: #999999;
        color: #555555;
        cursor: not-allowed !important;
    }

/* ====== RESPONSIVO ====== */
@media (max-width: 720px) {
    #unity-logo {
        width: 70vw;
        height: clamp(350px, 24vw, 200px);
        background-size: contain;
    }

    #unity-progress-bar-empty {
        width: 70vw;
        background-size: 83% 100%;
    }

    #sponsors {
        gap: 12px;
        bottom: 18px;
    }

        #sponsors img {
            max-height: 72px;
        }
}

@media (max-width: 480px) {
    #sponsors {
        width: 92vw;
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 12px;
    }

        #sponsors img {
            flex: 0 1 30%;
            max-height: 60px;
        }
}
