/* InovaFight | Entrada da homepage
   Splash visual independente de banco, bibliotecas de animação, imagens e SVG.
   Por padrão não aparece: precisa da classe inicializada pelo JavaScript. */
#if-entry-loader {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    isolation: isolate;
    align-items: center;
    justify-items: center;
    padding: 28px 20px;
    background:
        radial-gradient(ellipse at 50% 43%, rgba(225, 6, 0, .14), transparent 42%),
        radial-gradient(ellipse at 50% 100%, rgba(113, 7, 4, .09), transparent 48%),
        #090909;
    color: #f9f9f9;
    text-align: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 280ms ease-out, visibility 280ms ease-out;
}
html.if-entry-loading #if-entry-loader { display: grid; }
html.if-entry-loaded #if-entry-loader {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
#if-entry-loader::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(#ffffff04 1px, transparent 1px),
                      linear-gradient(90deg, #ffffff04 1px, transparent 1px);
    background-size: 62px 62px;
    pointer-events: none;
}
#if-entry-loader::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #e10600 30%, #f34d3b 50%, #e10600 70%, transparent);
}
#if-entry-loader .if-entry-content {
    position: relative;
    z-index: 1;
    width: min(100%, 480px);
    display: grid;
    justify-items: center;
}
#if-entry-loader .if-entry-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 25px;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .20em;
    color: #d2d2d2;
    text-transform: uppercase;
}
#if-entry-loader .if-entry-eyebrow::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #e10600;
    box-shadow: 0 0 15px #e10600;
    animation: if-entry-beat 1.25s ease-in-out infinite;
}
#if-entry-loader .if-entry-symbol {
    position: relative;
    display: grid;
    place-items: center;
    width: 102px;
    height: 102px;
    margin: 0 0 25px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 45%, #29110f 0%, #160b0b 68%, #100d0c 100%);
    box-shadow: inset 0 0 0 1px #69302b, 0 18px 60px rgba(0,0,0,.43), 0 0 65px rgba(225,6,0,.12);
}
#if-entry-loader .if-entry-symbol::before {
    content: '';
    position: absolute;
    inset: -9px;
    border: 2px solid transparent;
    border-top-color: #e10600;
    border-right-color: #9c120d;
    border-radius: 50%;
    animation: if-entry-rotate 1.7s linear infinite;
}
#if-entry-loader .if-entry-symbol::after {
    content: '';
    position: absolute;
    inset: -17px;
    border: 1px solid rgba(225,6,0,.13);
    border-radius: 50%;
}
#if-entry-loader .if-entry-symbol i {
    position: relative;
    font-size: 43px;
    color: #e10600;
    filter: drop-shadow(0 0 16px rgba(225,6,0,.4));
}
#if-entry-loader .if-entry-wordmark {
    margin: 0;
    font-family: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
    font-size: clamp(68px, 13vw, 104px);
    line-height: .96;
    letter-spacing: .015em;
    font-weight: 400;
    color: #fff;
    white-space: nowrap;
    text-shadow: 0 5px 28px rgba(0,0,0,.45);
}
#if-entry-loader .if-entry-wordmark span { color: #e10600; }
#if-entry-loader .if-entry-title {
    margin: 23px 0 6px;
    font-family: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
    font-size: clamp(25px, 6.1vw, 36px);
    line-height: 1.15;
    letter-spacing: .12em;
    font-weight: 400;
    color: #eee;
}
#if-entry-loader .if-entry-title strong { color: #e10600; font-weight: 400; }
#if-entry-loader .if-entry-description {
    margin: 0 0 29px;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 13px;
    line-height: 1.5;
    color: #a3a3a3;
}
#if-entry-loader .if-entry-progress {
    width: min(280px, 75vw);
    height: 4px;
    border-radius: 50px;
    overflow: hidden;
    background: #393939;
    box-shadow: 0 0 0 1px #222;
}
#if-entry-loader .if-entry-progress span {
    display: block;
    width: 45%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #a30904, #e10600, #ff6a5f);
    box-shadow: 0 0 15px rgba(225,6,0,.65);
    animation: if-entry-progress 1s cubic-bezier(.5,0,.35,1) infinite alternate;
}
#if-entry-loader .if-entry-footer {
    margin: 25px 0 0;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: #888;
}
@keyframes if-entry-progress {
    from { transform: translateX(-100%); }
    to { transform: translateX(223%); }
}
@keyframes if-entry-rotate { to { transform: rotate(360deg); } }
@keyframes if-entry-beat { 50% { opacity: .4; box-shadow: 0 0 3px #e10600; } }
/* Falha segura: mesmo que algum script pare de executar, o splash desaparece. */
html.if-entry-loading:not(.if-entry-loaded) #if-entry-loader {
    animation: if-entry-failsafe 0s linear 4s forwards;
}
@keyframes if-entry-failsafe { to { opacity: 0; visibility: hidden; pointer-events: none; } }
@media (max-width: 420px) {
    #if-entry-loader .if-entry-symbol { width: 90px; height: 90px; }
    #if-entry-loader .if-entry-symbol i { font-size: 37px; }
    #if-entry-loader .if-entry-eyebrow { letter-spacing: .12em; }
    #if-entry-loader .if-entry-footer { letter-spacing: .1em; }
}
@media (prefers-reduced-motion: reduce) {
    #if-entry-loader, #if-entry-loader *, #if-entry-loader *::before, #if-entry-loader *::after {
        animation: none !important;
        transition: none !important;
    }
}
